{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/fatheron-dev/json-schema/fatheron-dev-push-subscription-create-schema.json",
  "title": "PushSubscriptionCreate",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/fatheron-dev-push-api-openapi.yml#/components/schemas/PushSubscriptionCreate",
  "properties": {
    "kind": {
      "type": "string",
      "pattern": "^(web|fcm|apns)$",
      "title": "Kind"
    },
    "endpoint": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 2048
        },
        {
          "type": "null"
        }
      ],
      "title": "Endpoint"
    },
    "p256dh": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 512
        },
        {
          "type": "null"
        }
      ],
      "title": "P256Dh"
    },
    "auth": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 512
        },
        {
          "type": "null"
        }
      ],
      "title": "Auth"
    },
    "device_token": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 4096
        },
        {
          "type": "null"
        }
      ],
      "title": "Device Token"
    },
    "user_agent": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 400
        },
        {
          "type": "null"
        }
      ],
      "title": "User Agent"
    }
  },
  "type": "object",
  "required": [
    "kind"
  ]
}