Sha256: a3f4639b465539fd55ab0ad119208d278ea06d85be34ebeaaf6c4ddf693064e6

Contents?: true

Size: 1.77 KB

Versions: 7

Compression:

Stored size: 1.77 KB

Contents

{
  "$schema": "http://json-schema.org/draft-07/schema",
  "definitions": {
    "channel": {
      "type": "object",
      "description": "(defined by script)",
      "properties": {
        "created": {
          "$ref": "#/definitions/time_integer"
        },
        "id": {
          "$ref": "#/definitions/channel_id"
        },
        "name": {
          "$ref": "#/definitions/channel_name"
        }
      }
    },
    "channel_type": {
      "type": [
        "null",
        "string"
      ],
      "enum": [
        null,
        "app_home",
        "channel",
        "group",
        "im",
        "mpim"
      ]
    },
    "timestamp": {
      "type": "string"
    },
    "ts": {
      "type": "string"
    },
    "user": {
      "type": "object",
      "description": "definition snipped. learn more: https://api.slack.com/events/user_change",
      "properties": {
      }
    },
    "message": {
      "type": "object",
      "description": "learn more: https://api.slack.com/events/message",
      "properties": {
        "channel": {
          "$ref": "#/definitions/channel"
        },
        "channel_type": {
          "$ref": "#/definitions/channel_type"
        },
        "event_ts": {
          "$ref": "#/definitions/timestamp"
        },
        "text": {
          "type": "string"
        },
        "ts": {
          "$ref": "#/definitions/ts"
        },
        "type": {
          "const": "message"
        },
        "user": {
          "$ref": "#/definitions/user"
        }
      },
      "example": {
        "channel": "D0PNCRP9N",
        "channel_type": "app_home",
        "event_ts": "1525215129.000001",
        "text": "How many cats did we herd yesterday?",
        "ts": "1525215129.000001",
        "type": "message",
        "user": "U061F7AUR"
      }
    }
  }
}

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
slack_resources-0.1.9 lib/slack_resources/resources/event_api/schemas/message.json
slack_resources-0.1.8 lib/slack_resources/resources/event_api/schemas/message.json
slack_resources-0.1.7 lib/slack_resources/resources/event_api/schemas/message.json
slack_resources-0.1.6 lib/slack_resources/resources/event_api/schemas/message.json
slack_resources-0.1.5 lib/slack_resources/resources/event_api/schemas/message.json
slack_resources-0.1.4 lib/slack_resources/resources/event_api/schemas/message.json
slack_resources-0.0.0 lib/slack_resources/resources/event_api/schemas/message.json