{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/meet-bot/json-schema/meet-bot-user-webhook-schema.json",
  "title": "UserWebhook",
  "description": "CRUD a caller's own webhook. ``pages`` are referenced by primary key\n(slugs collide across team members, so they're not safe identifiers here).",
  "x-generated": "2026-11-18",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/meet-bot-openapi.yml#/components/schemas/UserWebhook",
  "type": "object",
  "properties": {
    "id": {
      "type": "integer",
      "readOnly": true
    },
    "description": {
      "type": "string"
    },
    "webhook_url": {
      "type": "string",
      "format": "uri"
    },
    "coverage": {
      "$ref": "#/$defs/CoverageEnum"
    },
    "scope": {
      "$ref": "#/$defs/ScopeEnum"
    },
    "pages": {
      "type": "array",
      "items": {
        "type": "integer"
      }
    },
    "is_active": {
      "type": "boolean"
    },
    "shared_secret": {
      "type": "string",
      "readOnly": true
    },
    "created": {
      "type": "string",
      "format": "date-time",
      "readOnly": true
    },
    "updated": {
      "type": "string",
      "format": "date-time",
      "readOnly": true
    }
  },
  "required": [
    "created",
    "id",
    "shared_secret",
    "updated",
    "webhook_url"
  ],
  "$defs": {
    "CoverageEnum": {
      "enum": [
        "all",
        "selected"
      ],
      "type": "string",
      "description": "* `all` - All pages\n* `selected` - Selected pages"
    },
    "ScopeEnum": {
      "enum": [
        "self",
        "team"
      ],
      "type": "string",
      "description": "* `self` - Just me\n* `team` - My whole team"
    }
  }
}