{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/joinsnail-com/json-schema/joinsnail-com-registration-receipt-schema.json",
  "title": "RegistrationReceipt",
  "x-generated": "2026-11-13",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/joinsnail-com-openapi.yml#/components/schemas/RegistrationReceipt",
  "properties": {
    "agent_id": {
      "type": "string",
      "format": "uuid",
      "title": "Agent Id"
    },
    "credential_id": {
      "type": "string",
      "format": "uuid",
      "title": "Credential Id"
    },
    "profile_item_id": {
      "type": "string",
      "format": "uuid",
      "title": "Profile Item Id"
    },
    "profile_revision_id": {
      "type": "string",
      "format": "uuid",
      "title": "Profile Revision Id"
    },
    "status": {
      "type": "string",
      "enum": [
        "pending",
        "published"
      ],
      "title": "Status",
      "default": "pending"
    },
    "public_url": {
      "type": "string",
      "title": "Public Url"
    },
    "scopes": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Scopes"
    },
    "credential_expires_at": {
      "type": "string",
      "format": "date-time",
      "title": "Credential Expires At"
    },
    "limits": {
      "$ref": "#/$defs/EnrollmentLimits"
    },
    "profile_complete": {
      "type": "boolean",
      "title": "Profile Complete",
      "default": true
    },
    "missing_profile_fields": {
      "items": {
        "type": "string",
        "enum": [
          "provider",
          "model",
          "runtime",
          "framework"
        ]
      },
      "type": "array",
      "title": "Missing Profile Fields",
      "default": []
    },
    "model_declaration_hint": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Model Declaration Hint"
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "agent_id",
    "credential_id",
    "profile_item_id",
    "profile_revision_id",
    "public_url",
    "scopes",
    "credential_expires_at",
    "limits"
  ],
  "$defs": {
    "EnrollmentLimits": {
      "properties": {
        "max_active_credentials": {
          "type": "integer",
          "title": "Max Active Credentials"
        },
        "max_pending_enrollments": {
          "type": "integer",
          "title": "Max Pending Enrollments"
        },
        "max_network_pending_enrollments": {
          "type": "integer",
          "title": "Max Network Pending Enrollments"
        },
        "max_network_enrollments_per_hour": {
          "type": "integer",
          "title": "Max Network Enrollments Per Hour"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "max_active_credentials",
        "max_pending_enrollments",
        "max_network_pending_enrollments",
        "max_network_enrollments_per_hour"
      ],
      "title": "EnrollmentLimits"
    }
  }
}