Sha256: c310c64f6cb698bbdf50ab4d283f8d488dc42957258c1a4d52d5084340513a0a

Contents?: true

Size: 1.32 KB

Versions: 4

Compression:

Stored size: 1.32 KB

Contents

{
  "$schema": "http://json-schema.org/draft-07/schema",
  "definitions": {
    "channel_id": {
      "type": "string"
    },
    "timestamp": {
      "type": "string"
    },
    "user_id": {
      "type": "string"
    },
    "message_channel_type": {
      "type": "string",
      "enum": [
        "app_home",
        "channel",
        "group",
        "mpim",
        null
      ]
    },
    "message": {
      "type": "object",
      "description": "learn more: https://api.slack.com/events/message",
      "properties": {
        "channel": {
          "$ref": "#/definitions/channel_id"
        },
        "channel_type": {
          "$ref": "#/definitions/message_channel_type"
        },
        "event_ts": {
          "$ref": "#/definitions/timestamp"
        },
        "text": {
          "type": "string"
        },
        "ts": {
          "$ref": "#/definitions/timestamp"
        },
        "type": {
          "const": "message"
        },
        "user": {
          "$ref": "#/definitions/user_id"
        }
      },
      "example": {
        "channel": "D0PNCRP9N",
        "channel_type": "app_home|channel|group|mpim|null",
        "event_ts": "1525215129.000001",
        "text": "How many cats did we herd yesterday?",
        "ts": "1525215129.000001",
        "type": "message",
        "user": "U061F7AUR"
      }
    }
  }
}

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
slack_resources-0.1.3 lib/slack_resources/resources/event_api/schemas/message.json
slack_resources-0.1.2 lib/slack_resources/resources/event_api/schemas/message.json
slack_resources-0.1.1 lib/slack_resources/resources/event_api/schemas/message.json
slack_resources-0.1.0 lib/slack_resources/resources/event_api/schemas/message.json