Sha256: b571e4ebc59eb80146ff2d66814c9ff1acc83dd831dd26121c5c566d32134e94

Contents?: true

Size: 1.19 KB

Versions: 11

Compression:

Stored size: 1.19 KB

Contents

{
  "$schema": "http://json-schema.org/draft-07/schema",
  "definitions": {
    "time_integer": {
      "type": "number"
    },
    "dnd_status": {
      "type": "object",
      "description": "(defined by script)",
      "properties": {
        "dnd_enabled": {
          "type": "boolean"
        },
        "next_dnd_end_ts": {
          "$ref": "#/definitions/time_integer"
        },
        "next_dnd_start_ts": {
          "$ref": "#/definitions/time_integer"
        }
      }
    },
    "user_id": {
      "type": "string"
    },
    "dnd_updated": {
      "type": "object",
      "description": "learn more: https://api.slack.com/events/dnd_updated",
      "properties": {
        "dnd_status": {
          "$ref": "#/definitions/dnd_status"
        },
        "type": {
          "const": "dnd_updated"
        },
        "user": {
          "$ref": "#/definitions/user_id"
        }
      },
      "example": {
        "dnd_status": {
          "dnd_enabled": true,
          "next_dnd_start_ts": 1450387800,
          "next_dnd_end_ts": 1450423800,
          "snooze_enabled": true,
          "snooze_endtime": 1450373897
        },
        "type": "dnd_updated",
        "user": "U1234"
      }
    }
  }
}

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
slack_resources-0.1.9 lib/slack_resources/resources/event_api/schemas/dnd_updated.json
slack_resources-0.1.8 lib/slack_resources/resources/event_api/schemas/dnd_updated.json
slack_resources-0.1.7 lib/slack_resources/resources/event_api/schemas/dnd_updated.json
slack_resources-0.1.6 lib/slack_resources/resources/event_api/schemas/dnd_updated.json
slack_resources-0.1.5 lib/slack_resources/resources/event_api/schemas/dnd_updated.json
slack_resources-0.1.4 lib/slack_resources/resources/event_api/schemas/dnd_updated.json
slack_resources-0.0.0 lib/slack_resources/resources/event_api/schemas/dnd_updated.json
slack_resources-0.1.3 lib/slack_resources/resources/event_api/schemas/dnd_updated.json
slack_resources-0.1.2 lib/slack_resources/resources/event_api/schemas/dnd_updated.json
slack_resources-0.1.1 lib/slack_resources/resources/event_api/schemas/dnd_updated.json
slack_resources-0.1.0 lib/slack_resources/resources/event_api/schemas/dnd_updated.json