{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/passtru/json-schema/passtru-passtru-app-create-request-schema.json",
  "title": "PasstruAppCreateRequest",
  "x-generated": "2026-12-03",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/passtru-openapi.yml#/components/schemas/PasstruAppCreateRequest",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "display_name"
  ],
  "properties": {
    "display_name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 200
    },
    "environment": {
      "$ref": "#/$defs/PublicEnvironment"
    },
    "capabilities": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "redirect_uris": {
      "type": "array",
      "maxItems": 20,
      "items": {
        "type": "string"
      }
    },
    "allowed_origins": {
      "type": "array",
      "maxItems": 20,
      "items": {
        "type": "string"
      }
    },
    "native_callback_schemes": {
      "type": "array",
      "maxItems": 20,
      "items": {
        "type": "string"
      }
    },
    "deep_link_domains": {
      "type": "array",
      "maxItems": 20,
      "items": {
        "type": "string"
      }
    },
    "webhook_endpoint": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 2048
    },
    "webhook_subscriptions": {
      "type": "array",
      "maxItems": 32,
      "items": {
        "type": "string"
      }
    },
    "validate_only": {
      "type": "boolean",
      "default": false
    }
  },
  "$defs": {
    "PublicEnvironment": {
      "enum": [
        "sandbox",
        "live"
      ]
    }
  }
}