Created
March 18, 2022 02:20
-
-
Save viccro/734581d3c9777f9733d1f665279e5b54 to your computer and use it in GitHub Desktop.
Slack Export JSON Schemas
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$schema": "https://json-schema.org/draft-04/schema#", | |
"type": "array", | |
"minItems": 0, | |
"items": { | |
"type": "object", | |
"properties": { | |
"client_msg_id": {"type": "string"}, | |
"type": {"type": "string"}, | |
"text": {"type": "string"}, | |
"user": {"type": "string"}, | |
"ts": {"type": "string"}, | |
"team": {"type": "string"}, | |
"user_team": {"type": "string"}, | |
"source_team": {"type": "string"}, | |
"user_profile": {"$ref": "#/definitions/user_profile_type"}, | |
"blocks": {"$ref": "#/definitions/blocks_type"}, | |
"thread_ts": {"type": "string"}, | |
"reply_count": {"type": "integer"}, | |
"reply_users_count": {"type": "integer"}, | |
"latest_reply": {"type": "string"}, | |
"reply_users": {"$ref": "#/definitions/reply_users_type"}, | |
"replies": {"$ref": "#/definitions/replies_type"}, | |
"is_locked": {"type": "boolean"}, | |
"subscribed": {"type": "boolean"}, | |
"last_read": {"type": "string"}, | |
"reactions": {"$ref": "#/definitions/reactions_type"}, | |
"parent_user_id": {"type": "string"} | |
}, | |
"required": [ | |
"client_msg_id", | |
"source_team", | |
"blocks", | |
"thread_ts", | |
"text", | |
"team", | |
"user_profile", | |
"type", | |
"user", | |
"user_team", | |
"ts" | |
] | |
}, | |
"definitions": { | |
"user_profile_type": { | |
"type": "object", | |
"properties": { | |
"avatar_hash": {"type": "string"}, | |
"image_72": {"type": "string"}, | |
"first_name": {"type": "string"}, | |
"real_name": {"type": "string"}, | |
"display_name": {"type": "string"}, | |
"team": {"type": "string"}, | |
"name": {"type": "string"}, | |
"is_restricted": {"type": "boolean"}, | |
"is_ultra_restricted": {"type": "boolean"} | |
} | |
}, | |
"elements_type": { | |
"type": "array", | |
"minItems": 0, | |
"items": { | |
"type": "object", | |
"properties": { | |
"type": {"type": "string"}, | |
"text": {"type": "string"} | |
}, | |
"required": [ | |
"text", | |
"type" | |
] | |
} | |
}, | |
"elements2_type": { | |
"type": "array", | |
"minItems": 0, | |
"items": { | |
"type": "object", | |
"properties": { | |
"type": {"type": "string"}, | |
"elements": {"$ref": "#/definitions/elements_type"}, | |
"border": {"type": "integer"} | |
}, | |
"required": [ | |
"elements", | |
"type" | |
] | |
} | |
}, | |
"blocks_type": { | |
"type": "array", | |
"minItems": 0, | |
"items": { | |
"type": "object", | |
"properties": { | |
"type": {"type": "string"}, | |
"block_id": {"type": "string"}, | |
"elements": {"$ref": "#/definitions/elements2_type"} | |
}, | |
"required": [ | |
"elements", | |
"type", | |
"block_id" | |
] | |
} | |
}, | |
"reply_users_type": { | |
"type": "array", | |
"minItems": 0, | |
"items": {"type": "string"} | |
}, | |
"replies_type": { | |
"type": "array", | |
"minItems": 0, | |
"items": { | |
"type": "object", | |
"properties": { | |
"user": {"type": "string"}, | |
"ts": {"type": "string"} | |
}, | |
"required": [ | |
"user", | |
"ts" | |
] | |
} | |
}, | |
"reactions_type": { | |
"type": "array", | |
"minItems": 0, | |
"items": { | |
"type": "object", | |
"properties": { | |
"name": {"type": "string"}, | |
"users": {"$ref": "#/definitions/reply_users_type"}, | |
"count": {"type": "integer"} | |
}, | |
"required": [ | |
"name", | |
"count", | |
"users" | |
] | |
} | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$schema": "https://json-schema.org/draft-04/schema#", | |
"type": "array", | |
"minItems": 0, | |
"items": { | |
"type": "object", | |
"properties": { | |
"id": {"type": "string"}, | |
"name": {"type": "string"}, | |
"created": {"type": "integer"}, | |
"creator": {"type": "string"}, | |
"is_archived": {"type": "boolean"}, | |
"is_general": {"type": "boolean"}, | |
"members": {"$ref": "#/definitions/members_type"}, | |
"topic": {"$ref": "#/definitions/topic_type"}, | |
"purpose": {"$ref": "#/definitions/topic_type"}, | |
"pins": {"$ref": "#/definitions/pins_type"} | |
}, | |
"required": [ | |
"creator", | |
"is_archived", | |
"purpose", | |
"created", | |
"is_general", | |
"members", | |
"name", | |
"topic", | |
"id" | |
] | |
}, | |
"definitions": { | |
"members_type": { | |
"type": "array", | |
"minItems": 0 | |
}, | |
"topic_type": { | |
"type": "object", | |
"properties": { | |
"value": {"type": "string"}, | |
"creator": {"type": "string"}, | |
"last_set": {"type": "integer"} | |
} | |
}, | |
"pins_type": { | |
"type": "array", | |
"minItems": 0, | |
"items": { | |
"type": "object", | |
"properties": { | |
"id": {"type": "string"}, | |
"type": {"type": "string"}, | |
"created": {"type": "integer"}, | |
"user": {"type": "string"}, | |
"owner": {"type": "string"} | |
}, | |
"required": [ | |
"owner", | |
"created", | |
"id", | |
"type", | |
"user" | |
] | |
} | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$schema": "https://json-schema.org/draft-04/schema#", | |
"type": "array", | |
"minItems": 0, | |
"items": { | |
"type": "object", | |
"properties": { | |
"user_id": {"type": "string"}, | |
"user_name": {"type": "string"}, | |
"date": {"type": "string"}, | |
"change_type": {"type": "string"}, | |
"app_type": {"type": "string"}, | |
"app_id": {"type": "string"}, | |
"scope": {"type": "string"}, | |
"service_id": {"type": "number"}, | |
"service_type": {"type": "string"}, | |
"reason": {"type": "string"}, | |
"channel": {"type": "string"} | |
}, | |
"required": [ | |
"date", | |
"user_id", | |
"user_name", | |
"change_type" | |
] | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$schema": "https://json-schema.org/draft-04/schema#", | |
"type": "array", | |
"minItems": 0, | |
"items": { | |
"type": "object", | |
"properties": { | |
"id": {"type": "string"}, | |
"team_id": {"type": "string"}, | |
"name": {"type": "string"}, | |
"deleted": {"type": "boolean"}, | |
"color": {"type": "string"}, | |
"real_name": {"type": "string"}, | |
"tz": {"type": "string"}, | |
"tz_label": {"type": "string"}, | |
"tz_offset": {"type": "integer"}, | |
"profile": {"$ref": "#/definitions/profile_type"}, | |
"is_admin": {"type": "boolean"}, | |
"is_owner": {"type": "boolean"}, | |
"is_primary_owner": {"type": "boolean"}, | |
"is_restricted": {"type": "boolean"}, | |
"is_ultra_restricted": {"type": "boolean"}, | |
"is_bot": {"type": "boolean"}, | |
"is_app_user": {"type": "boolean"}, | |
"updated": {"type": "integer"}, | |
"is_email_confirmed": {"type": "boolean"}, | |
"who_can_share_contact_card": {"type": "string"}, | |
"is_invited_user": {"type": "boolean"} | |
}, | |
"required": [ | |
"is_app_user", | |
"deleted", | |
"profile", | |
"name", | |
"id", | |
"team_id", | |
"is_bot", | |
"updated" | |
] | |
}, | |
"definitions": { | |
"status_emoji_display_info_type": { | |
"type": "array", | |
"minItems": 0 | |
}, | |
"profile_type": { | |
"type": "object", | |
"properties": { | |
"title": {"type": "string"}, | |
"phone": {"type": "string"}, | |
"skype": {"type": "string"}, | |
"real_name": {"type": "string"}, | |
"real_name_normalized": {"type": "string"}, | |
"display_name": {"type": "string"}, | |
"display_name_normalized": {"type": "string"}, | |
"fields": {"type": "null"}, | |
"status_text": {"type": "string"}, | |
"status_emoji": {"type": "string"}, | |
"status_emoji_display_info": {"$ref": "#/definitions/status_emoji_display_info_type"}, | |
"status_expiration": {"type": "integer"}, | |
"avatar_hash": {"type": "string"}, | |
"image_original": {"type": "string"}, | |
"is_custom_image": {"type": "boolean"}, | |
"email": {"type": "string"}, | |
"pronouns": {"type": "string"}, | |
"first_name": {"type": "string"}, | |
"last_name": {"type": "string"}, | |
"image_24": {"type": "string"}, | |
"image_32": {"type": "string"}, | |
"image_48": {"type": "string"}, | |
"image_72": {"type": "string"}, | |
"image_192": {"type": "string"}, | |
"image_512": {"type": "string"}, | |
"image_1024": {"type": "string"}, | |
"status_text_canonical": {"type": "string"}, | |
"team": {"type": "string"}, | |
"huddle_state": {"type": "string"}, | |
"api_app_id": {"type": "string"}, | |
"always_active": {"type": "boolean"}, | |
"bot_id": {"type": "string"}, | |
"huddle_state_expiration_ts": {"type": "integer"}, | |
"who_can_share_contact_card": {"type": "string"} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment