-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtwcompose.schema.json
1 lines (1 loc) · 2.73 KB
/
twcompose.schema.json
1
{"title": "TwitterComposeModel", "description": "twitter-compose file model", "type": "object", "properties": {"image_tag": {"title": "Image Tag", "type": "string"}, "output": {"$ref": "#/definitions/TwitterOutputDriver"}, "parameters": {"$ref": "#/definitions/TwitterStreamParametersModel"}, "streams": {"title": "Streams", "type": "object", "additionalProperties": {"type": "array", "items": {"$ref": "#/definitions/TwitterStreamRuleModel"}}}, "image_name": {"title": "Image Name", "default": "ghcr.io/smassonnet/twcollect", "type": "string"}}, "required": ["image_tag", "output", "parameters", "streams"], "definitions": {"TwitterOutputDriver": {"title": "TwitterOutputDriver", "type": "object", "properties": {"driver": {"title": "Driver", "type": "string"}, "path": {"title": "Path", "type": "string"}, "options": {"title": "Options", "type": "object", "additionalProperties": {"anyOf": [{"type": "string"}, {"type": "integer"}]}}}, "required": ["driver", "path", "options"]}, "TwitterStreamParametersModel": {"title": "TwitterStreamParametersModel", "type": "object", "properties": {"expansions": {"title": "Expansions", "type": "array", "items": {"enum": ["attachments.poll_ids", "attachments.media_keys", "author_id", "entities.mentions.username", "geo.place_id", "in_reply_to_user_id", "referenced_tweets.id", "referenced_tweets.id.author_id"], "type": "string"}}, "media_fields": {"title": "Media Fields", "type": "array", "items": {"enum": ["duration_ms", "height", "media_key", "preview_image_url", "type", "url", "width", "public_metrics", "alt_text"], "type": "string"}}, "place_fields": {"title": "Place Fields", "type": "array", "items": {"enum": ["contained_within", "country", "country_code", "full_name", "geo", "id", "name", "place_type"], "type": "string"}}, "poll_fields": {"title": "Poll Fields", "type": "array", "items": {"enum": ["duration_minutes", "end_datetime", "id", "options", "voting_status"], "type": "string"}}, "tweet_fields": {"title": "Tweet Fields", "type": "array", "items": {"enum": ["attachments", "author_id", "context_annotations", "conversation_id", "created_at", "entities", "geo", "id", "in_reply_to_user_id", "lang", "public_metrics", "possibly_sensitive", "referenced_tweets", "reply_settings", "source", "text", "withheld"], "type": "string"}}, "user_fields": {"title": "User Fields", "type": "array", "items": {"enum": ["created_at", "description", "entities", "id", "location", "name", "pinned_tweet_id", "profile_image_url", "protected", "public_metrics", "url", "username", "verified", "withheld"], "type": "string"}}}}, "TwitterStreamRuleModel": {"title": "TwitterStreamRuleModel", "type": "object", "properties": {"value": {"title": "Value", "type": "string"}, "tag": {"title": "Tag", "type": "string"}}, "required": ["value", "tag"]}}}