{
  "openapi": "3.1.0",
  "info": {
    "title": "DROPSZ Public API",
    "version": "1.0.0-alpha.6",
    "summary": "Read-only access to your organization data with an API key.",
    "description": "DROPSZ Public API: read your organization's servers and orders with an API key. Authenticate with `Authorization: Bearer dz_live_<publicId8>_<secret43>`. Errors use `application/problem+json` (RFC 9457) with a stable `code`."
  },
  "servers": [
    {
      "url": "https://sandbox-api.dropsz.gg/v1",
      "description": "Staging (sandbox)"
    },
    {
      "url": "https://api.dropsz.gg/v1",
      "description": "Production"
    }
  ],
  "security": [
    {
      "organizationApiKey": []
    }
  ],
  "tags": [
    {
      "name": "Developer",
      "description": "Read your organization's servers and orders with an API key (`/developer/*`)."
    }
  ],
  "paths": {
    "/developer/orders": {
      "get": {
        "tags": [
          "Developer"
        ],
        "operationId": "listDeveloperOrders",
        "summary": "List orders of the servers the API key can see",
        "description": "Orders sent to the servers the key can see. Ordered by last change, then `id`, ascending: a client that keeps the last `updatedAt` and calls again with `updatedSince` never misses a change. Never returns viewer names or messages. A key that sees more than 100 servers must send `serverId` (400 `SERVER_FILTER_REQUIRED`). Requires the `orders_read` scope.",
        "x-dropsz-api-scopes": [
          "orders_read"
        ],
        "security": [
          {
            "organizationApiKey": []
          }
        ],
        "parameters": [
          {
            "name": "serverId",
            "in": "query",
            "required": false,
            "description": "Only orders of this server. A server the key cannot see returns an empty page. Required when the key sees more than 100 servers (400 `SERVER_FILTER_REQUIRED` without it).",
            "schema": {
              "$ref": "#/components/schemas/Id"
            }
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "description": "Only orders in one of these statuses. Repeat the parameter for more than one (`status=queued&status=running`).",
            "schema": {
              "minItems": 1,
              "maxItems": 11,
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ViewerOrderStatus"
              }
            }
          },
          {
            "name": "actionKey",
            "in": "query",
            "required": false,
            "description": "Only orders of this action.",
            "schema": {
              "$ref": "#/components/schemas/ActionKey"
            }
          },
          {
            "name": "isTest",
            "in": "query",
            "required": false,
            "description": "Only test orders (`true`) or only real orders (`false`).",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "createdFrom",
            "in": "query",
            "required": false,
            "description": "Only orders created at or after this instant (inclusive).",
            "schema": {
              "$ref": "#/components/schemas/Timestamp"
            }
          },
          {
            "name": "createdTo",
            "in": "query",
            "required": false,
            "description": "Only orders created before this instant (exclusive). Must not be earlier than `createdFrom`.",
            "schema": {
              "$ref": "#/components/schemas/Timestamp"
            }
          },
          {
            "name": "updatedSince",
            "in": "query",
            "required": false,
            "description": "Only orders changed at or after this instant (inclusive). Use it to sync incrementally.",
            "schema": {
              "$ref": "#/components/schemas/Timestamp"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "Opaque cursor returned as `nextCursor` by the previous page. Send the same filters as that page.",
            "schema": {
              "type": "string",
              "maxLength": 512
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Items per page (1 to 100).",
            "schema": {
              "default": 50,
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A page of orders.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeveloperOrderList"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "501": {
            "$ref": "#/components/responses/NotImplemented"
          }
        }
      }
    },
    "/developer/orders/{orderId}": {
      "get": {
        "tags": [
          "Developer"
        ],
        "operationId": "getDeveloperOrder",
        "summary": "Get one order",
        "description": "One order of a server the key can see, with the `result` reported by the game when it completed. An order of another organization or of a server outside the key returns 404. Requires the `orders_read` scope.",
        "x-dropsz-api-scopes": [
          "orders_read"
        ],
        "security": [
          {
            "organizationApiKey": []
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/OrderIdPath"
          }
        ],
        "responses": {
          "200": {
            "description": "The order.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeveloperOrder"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "501": {
            "$ref": "#/components/responses/NotImplemented"
          }
        }
      }
    },
    "/developer/self": {
      "get": {
        "tags": [
          "Developer"
        ],
        "operationId": "getApiKeySelf",
        "summary": "Identify the calling API key (organization, scopes and effective servers)",
        "description": "`Authorization: Bearer dz_live_<publicId8>_<secret43>`. A key that does not exist, was revoked, expired, belongs to another environment or is wrong returns the SAME 401 `API_KEY_INVALID`. Requires no scope. Rate limited per key and per organization (429 with `Retry-After`).",
        "security": [
          {
            "organizationApiKey": []
          }
        ],
        "responses": {
          "200": {
            "description": "The key and what it can see right now.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiKeySelf"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "501": {
            "$ref": "#/components/responses/NotImplemented"
          }
        }
      }
    },
    "/developer/servers": {
      "get": {
        "tags": [
          "Developer"
        ],
        "operationId": "listDeveloperServers",
        "summary": "List the servers the API key can see",
        "description": "Servers of the organization that the key can see: the servers chosen for the key (or all of them) that are not archived. Ordered by last change, then `id`, ascending. Requires the `servers_read` scope.",
        "x-dropsz-api-scopes": [
          "servers_read"
        ],
        "security": [
          {
            "organizationApiKey": []
          }
        ],
        "parameters": [
          {
            "name": "gameId",
            "in": "query",
            "required": false,
            "description": "Only servers of this game.",
            "schema": {
              "$ref": "#/components/schemas/GameId"
            }
          },
          {
            "name": "mode",
            "in": "query",
            "required": false,
            "description": "Only servers in this connector mode.",
            "schema": {
              "$ref": "#/components/schemas/ConnectorMode"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "Opaque cursor returned as `nextCursor` by the previous page. Send the same filters as that page.",
            "schema": {
              "type": "string",
              "maxLength": 512
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Items per page (1 to 100).",
            "schema": {
              "default": 50,
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A page of servers.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeveloperServerList"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "501": {
            "$ref": "#/components/responses/NotImplemented"
          }
        }
      }
    },
    "/developer/servers/{serverId}": {
      "get": {
        "tags": [
          "Developer"
        ],
        "operationId": "getDeveloperServer",
        "summary": "Get one server",
        "description": "One server the key can see, with its connector status and the number of players online. A server of another organization, outside the servers of the key or archived returns 404. Requires the `servers_read` scope.",
        "x-dropsz-api-scopes": [
          "servers_read"
        ],
        "security": [
          {
            "organizationApiKey": []
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/ServerIdPath"
          }
        ],
        "responses": {
          "200": {
            "description": "The server.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeveloperServer"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "501": {
            "$ref": "#/components/responses/NotImplemented"
          }
        }
      }
    },
    "/developer/servers/{serverId}/manifest": {
      "get": {
        "tags": [
          "Developer"
        ],
        "operationId": "getDeveloperServerManifest",
        "summary": "Get the last manifest of a server connector",
        "description": "The last manifest sent by the active connector of the server, as the backend answered it: accepted actions and rejected actions with the reason. Useful to debug a mod. No connector or no manifest yet: `null` hashes and dates and empty lists. Requires the `servers_read` scope.",
        "x-dropsz-api-scopes": [
          "servers_read"
        ],
        "security": [
          {
            "organizationApiKey": []
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/ServerIdPath"
          }
        ],
        "responses": {
          "200": {
            "description": "The last manifest.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeveloperServerManifest"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "501": {
            "$ref": "#/components/responses/NotImplemented"
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "organizationApiKey": {
        "type": "http",
        "scheme": "bearer",
        "description": "Organization API key, sent as `Authorization: Bearer dz_live_<publicId>_<secret>` (`dz_test_` keys exist outside production). The secret is shown once, when the key is created. A key has a closed list of scopes (currently `servers_read` and `orders_read`), an optional list of servers it can see, an optional expiration and a per-minute rate limit. A key that does not exist, was revoked, expired, belongs to another environment or is wrong gets the same 401 `API_KEY_INVALID`; a missing scope gets 403 `API_KEY_SCOPE_INSUFFICIENT`. No cookies or CSRF tokens are involved."
      }
    },
    "parameters": {
      "OrderIdPath": {
        "name": "orderId",
        "in": "path",
        "required": true,
        "schema": {
          "$ref": "#/components/schemas/Id"
        }
      },
      "ServerIdPath": {
        "name": "serverId",
        "in": "path",
        "required": true,
        "schema": {
          "$ref": "#/components/schemas/Id"
        }
      }
    },
    "responses": {
      "BadRequest": {
        "description": "The request is invalid: a parameter has the wrong format, a date range is inverted or the cursor is not valid (`VALIDATION_FAILED`, with `errors`).",
        "content": {
          "application/problem+json": {
            "schema": {
              "$ref": "#/components/schemas/Problem"
            }
          }
        }
      },
      "Forbidden": {
        "description": "The API key is valid but cannot do this: it lacks a required scope (`API_KEY_SCOPE_INSUFFICIENT`) or the resource is not available to it.",
        "content": {
          "application/problem+json": {
            "schema": {
              "$ref": "#/components/schemas/Problem"
            }
          }
        }
      },
      "NotFound": {
        "description": "The resource does not exist or the API key cannot see it (another organization, a server outside the key or an archived server). Both cases get the same answer.",
        "content": {
          "application/problem+json": {
            "schema": {
              "$ref": "#/components/schemas/Problem"
            }
          }
        }
      },
      "NotImplemented": {
        "description": "The operation is part of the contract but is not available yet (`NOT_IMPLEMENTED`).",
        "content": {
          "application/problem+json": {
            "schema": {
              "$ref": "#/components/schemas/Problem"
            }
          }
        }
      },
      "TooManyRequests": {
        "description": "Rate limit exceeded for this API key or for its organization (`RATE_LIMITED`). Wait `Retry-After` seconds before trying again.",
        "headers": {
          "Retry-After": {
            "description": "Seconds to wait before trying again.",
            "schema": {
              "type": "integer",
              "minimum": 1
            }
          }
        },
        "content": {
          "application/problem+json": {
            "schema": {
              "$ref": "#/components/schemas/Problem"
            }
          }
        }
      },
      "Unauthorized": {
        "description": "The API key is missing, malformed, unknown, revoked, expired or from another environment (`API_KEY_INVALID`). The response is the same in every case.",
        "content": {
          "application/problem+json": {
            "schema": {
              "$ref": "#/components/schemas/Problem"
            }
          }
        }
      }
    },
    "schemas": {
      "ActionKey": {
        "type": "string",
        "pattern": "^(?:(?!custom\\.)[a-z][a-z0-9]{1,15}|custom\\.[a-z0-9](?:[a-z0-9-]{0,38}[a-z0-9])?)\\.[a-z][a-z0-9_]{1,47}$",
        "description": "Action key, the same format as the Connector Protocol. Official action: `<gameId>.<name>` (for example `dayz.break_leg`). Custom action: `custom.<organizationSlug>.<name>`.",
        "examples": [
          "dayz.break_leg"
        ]
      },
      "ApiKeyScope": {
        "type": "string",
        "enum": [
          "custom_actions_read",
          "custom_actions_write",
          "orders_read",
          "servers_read"
        ],
        "description": "Scope of an API key (closed list). Currently only `servers_read` and `orders_read` can be granted; `custom_actions_*` scopes are reserved and are rejected with `API_KEY_SCOPE_UNAVAILABLE`."
      },
      "ApiKeySelf": {
        "type": "object",
        "properties": {
          "organization": {
            "type": "object",
            "properties": {
              "id": {
                "$ref": "#/components/schemas/Id"
              },
              "slug": {
                "$ref": "#/components/schemas/OrganizationSlug"
              },
              "name": {
                "type": "string"
              }
            },
            "required": [
              "id",
              "slug",
              "name"
            ]
          },
          "apiKey": {
            "type": "object",
            "properties": {
              "id": {
                "$ref": "#/components/schemas/Id"
              },
              "name": {
                "type": "string"
              },
              "prefix": {
                "type": "string"
              },
              "rateLimitPerMinute": {
                "type": "integer",
                "minimum": 1
              },
              "expiresAt": {
                "anyOf": [
                  {
                    "$ref": "#/components/schemas/Timestamp"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "id",
              "name",
              "prefix",
              "rateLimitPerMinute",
              "expiresAt"
            ]
          },
          "scopes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ApiKeyScope"
            },
            "description": "Scopes granted to the key."
          },
          "serverIds": {
            "anyOf": [
              {
                "minItems": 1,
                "maxItems": 100,
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/Id"
                }
              },
              {
                "type": "null"
              }
            ],
            "uniqueItems": true,
            "description": "Servers chosen when the key was created (`null` = all servers of the organization)."
          },
          "effectiveServers": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "$ref": "#/components/schemas/Id"
                },
                "name": {
                  "type": "string"
                }
              },
              "required": [
                "id",
                "name"
              ]
            },
            "description": "Servers the key can see right now: the chosen ones that are not archived. Empty = none."
          }
        },
        "required": [
          "organization",
          "apiKey",
          "scopes",
          "serverIds",
          "effectiveServers"
        ],
        "description": "The API key that made the call (`GET /developer/self`): its organization, the key itself, its scopes and the servers it can see.",
        "examples": [
          {
            "organization": {
              "id": "org_01JA8Z2D4F6H8K0M2P4R6T8V0X",
              "slug": "acme-servers",
              "name": "Acme Servers"
            },
            "apiKey": {
              "id": "key_01JC9X0Z2B4D6F8H0K2M4P6R8T",
              "name": "Clan dashboard",
              "prefix": "dz_live_7Hq2xK9p",
              "rateLimitPerMinute": 120,
              "expiresAt": "2027-10-10T10:00:00.000Z"
            },
            "scopes": [
              "servers_read",
              "orders_read"
            ],
            "serverIds": null,
            "effectiveServers": [
              {
                "id": "srv_01JADXRHEM3E2MSH4DMDZSX9G8",
                "name": "Chernarus PvE #1"
              }
            ]
          }
        ]
      },
      "ConnectorMode": {
        "type": "string",
        "enum": [
          "disabled",
          "sandbox",
          "enabled",
          "emergency_pause"
        ],
        "description": "Connector mode of the server. `disabled`: receives no orders. `sandbox`: only test orders (no real money). `enabled`: production. `emergency_pause`: everything stopped; paid orders not yet executed are canceled at once."
      },
      "CurrencyCode": {
        "type": "string",
        "pattern": "^[A-Z]{3}$",
        "description": "ISO 4217 currency code (for example `BRL`, `USD`). Open on purpose: amounts in different currencies are never added or converted.",
        "examples": [
          "BRL"
        ]
      },
      "DeveloperManifestAction": {
        "type": "object",
        "properties": {
          "actionKey": {
            "$ref": "#/components/schemas/ActionKey"
          },
          "version": {
            "type": "integer",
            "minimum": 1
          },
          "source": {
            "type": "string",
            "enum": [
              "official",
              "custom"
            ],
            "x-extensible-enum": true
          },
          "tier": {
            "type": "string",
            "enum": [
              "free",
              "pro"
            ],
            "x-extensible-enum": true
          },
          "enabledByPlan": {
            "type": "boolean"
          },
          "needsTargetOnline": {
            "type": "boolean"
          },
          "affectsOthers": {
            "type": "boolean"
          },
          "minCooldownSec": {
            "type": "integer",
            "minimum": 0
          },
          "maxDurationSec": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 0
              },
              {
                "type": "null"
              }
            ]
          },
          "interruptible": {
            "type": "boolean"
          },
          "maxLimits": {
            "type": "object",
            "propertyNames": {
              "type": "string",
              "maxLength": 32
            },
            "additionalProperties": {
              "type": "number"
            }
          }
        },
        "required": [
          "actionKey",
          "version",
          "source",
          "tier",
          "enabledByPlan",
          "needsTargetOnline",
          "affectsOthers",
          "minCooldownSec",
          "maxDurationSec",
          "interruptible",
          "maxLimits"
        ],
        "additionalProperties": false,
        "description": "An action accepted in the last manifest, as the backend answered the connector."
      },
      "DeveloperManifestRejection": {
        "type": "object",
        "properties": {
          "actionKey": {
            "type": "string",
            "maxLength": 128
          },
          "version": {
            "type": "integer"
          },
          "reason": {
            "$ref": "#/components/schemas/ManifestRejectionReason"
          }
        },
        "required": [
          "actionKey",
          "version",
          "reason"
        ],
        "additionalProperties": false,
        "description": "An action rejected in the last manifest, with the reason."
      },
      "DeveloperOrder": {
        "type": "object",
        "properties": {
          "id": {
            "$ref": "#/components/schemas/Id"
          },
          "serverId": {
            "$ref": "#/components/schemas/Id"
          },
          "gameId": {
            "$ref": "#/components/schemas/GameId"
          },
          "streamer": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "id": {
                    "$ref": "#/components/schemas/Id"
                  },
                  "slug": {
                    "type": "string",
                    "maxLength": 64
                  },
                  "displayName": {
                    "type": "string",
                    "maxLength": 64
                  }
                },
                "required": [
                  "id",
                  "slug",
                  "displayName"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ],
            "description": "Streamer of the live (the data of the public page). `null` for a test order started from the dashboard."
          },
          "actionKey": {
            "$ref": "#/components/schemas/ActionKey"
          },
          "actionVersion": {
            "type": "integer",
            "minimum": 1
          },
          "params": {
            "$ref": "#/components/schemas/ParamValues"
          },
          "status": {
            "$ref": "#/components/schemas/ViewerOrderStatus"
          },
          "waitingReason": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/WaitingReason"
              },
              {
                "type": "null"
              }
            ]
          },
          "failureReason": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/OrderFailureReason"
              },
              {
                "type": "null"
              }
            ]
          },
          "expiredWhileWaitingFor": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/WaitingReason"
              },
              {
                "type": "null"
              }
            ]
          },
          "mode": {
            "type": "string",
            "enum": [
              "sandbox",
              "live"
            ],
            "x-extensible-enum": true
          },
          "isTest": {
            "type": "boolean"
          },
          "price": {
            "$ref": "#/components/schemas/Money"
          },
          "serverOwnerShare": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "bps": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 10000
                  },
                  "amount": {
                    "$ref": "#/components/schemas/Money"
                  }
                },
                "required": [
                  "bps",
                  "amount"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ],
            "description": "Part of the split that goes to the organization that owns the server. `null` while there is no split (order not paid yet, or dashboard test order)."
          },
          "result": {
            "anyOf": [
              {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              {
                "type": "null"
              }
            ],
            "description": "The `result` object of the final `completed` acknowledgement as the backend stored it (`-0` becomes `0`). Data declared by the mod, never verified: check `resultStatus` before using it. Present for `valid`, `invalid` and `undeclared`; `null` for `absent` and for any status other than `completed`."
          },
          "resultStatus": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "valid",
                  "invalid",
                  "undeclared",
                  "absent"
                ]
              },
              {
                "type": "null"
              }
            ],
            "x-extensible-enum": true,
            "description": "Classification of `result` against the copy of the `resultSchema` pinned to the order on its first delivery (protocol 1.4): `valid` matches, `invalid` does not match, `undeclared` = action without `resultSchema` that sent a `result`, `absent` = no `resultSchema` and no `result`. Written once, on the `completed` acknowledgement; `null` in any other status. It never affects money or the order status."
          },
          "createdAt": {
            "$ref": "#/components/schemas/Timestamp"
          },
          "paidAt": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Timestamp"
              },
              {
                "type": "null"
              }
            ]
          },
          "expiresAt": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Timestamp"
              },
              {
                "type": "null"
              }
            ]
          },
          "finishedAt": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Timestamp"
              },
              {
                "type": "null"
              }
            ]
          },
          "updatedAt": {
            "$ref": "#/components/schemas/Timestamp"
          }
        },
        "required": [
          "id",
          "serverId",
          "gameId",
          "streamer",
          "actionKey",
          "actionVersion",
          "params",
          "status",
          "waitingReason",
          "failureReason",
          "expiredWhileWaitingFor",
          "mode",
          "isTest",
          "price",
          "serverOwnerShare",
          "result",
          "resultStatus",
          "createdAt",
          "paidAt",
          "expiresAt",
          "finishedAt",
          "updatedAt"
        ],
        "additionalProperties": false,
        "description": "An order sent to a server of the organization, as seen by an API key. It never contains the viewer name or message, who paid, the payment method, credit used or the other parts of the split."
      },
      "DeveloperOrderList": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DeveloperOrder"
            }
          },
          "nextCursor": {
            "$ref": "#/components/schemas/PageCursor"
          }
        },
        "required": [
          "items",
          "nextCursor"
        ],
        "additionalProperties": false,
        "description": "A page of orders, in stable order by (`updatedAt`, `id`) ascending."
      },
      "DeveloperServer": {
        "type": "object",
        "properties": {
          "id": {
            "$ref": "#/components/schemas/Id"
          },
          "name": {
            "type": "string",
            "maxLength": 80
          },
          "gameId": {
            "$ref": "#/components/schemas/GameId"
          },
          "mode": {
            "$ref": "#/components/schemas/ConnectorMode"
          },
          "plan": {
            "type": "object",
            "properties": {
              "tier": {
                "type": "string",
                "enum": [
                  "free",
                  "pro"
                ],
                "x-extensible-enum": true
              },
              "proUntil": {
                "anyOf": [
                  {
                    "$ref": "#/components/schemas/Timestamp"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "Until when the server has the `pro` tier (`null` for `free`). Informational only."
              }
            },
            "required": [
              "tier",
              "proUntil"
            ],
            "additionalProperties": false
          },
          "connector": {
            "type": "object",
            "properties": {
              "online": {
                "type": "boolean",
                "description": "The connector of the active binding sent a heartbeat recently."
              },
              "lastSeenAt": {
                "anyOf": [
                  {
                    "$ref": "#/components/schemas/Timestamp"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "protocolVersion": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 64
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "Connector Protocol version of the most recent session of the active binding."
              },
              "connectorVersion": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 64
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "Version of the connector (mod or plugin) reported by the active binding."
              }
            },
            "required": [
              "online",
              "lastSeenAt",
              "protocolVersion",
              "connectorVersion"
            ],
            "additionalProperties": false
          },
          "playersOnlineCount": {
            "type": "integer",
            "minimum": 0,
            "description": "Players online in the last heartbeat (the count only, never the list)."
          }
        },
        "required": [
          "id",
          "name",
          "gameId",
          "mode",
          "plan",
          "connector",
          "playersOnlineCount"
        ],
        "additionalProperties": false,
        "description": "A server of the organization, as seen by an API key. It never contains the player list of the heartbeat nor any connector credential or session."
      },
      "DeveloperServerList": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DeveloperServer"
            }
          },
          "nextCursor": {
            "$ref": "#/components/schemas/PageCursor"
          }
        },
        "required": [
          "items",
          "nextCursor"
        ],
        "additionalProperties": false,
        "description": "A page of servers, in stable order by (last change, `id`) ascending."
      },
      "DeveloperServerManifest": {
        "type": "object",
        "properties": {
          "serverId": {
            "$ref": "#/components/schemas/Id"
          },
          "manifestHash": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 80
              },
              {
                "type": "null"
              }
            ],
            "description": "Hash of the last manifest (`sha256:<hex>`); `null` when no manifest was received."
          },
          "configHash": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 80
              },
              {
                "type": "null"
              }
            ]
          },
          "receivedAt": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Timestamp"
              },
              {
                "type": "null"
              }
            ],
            "description": "When the backend stored this result: the last time the accepted actions, the rejected actions or `enabledByPlan` changed."
          },
          "accepted": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DeveloperManifestAction"
            }
          },
          "rejected": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DeveloperManifestRejection"
            }
          }
        },
        "required": [
          "serverId",
          "manifestHash",
          "configHash",
          "receivedAt",
          "accepted",
          "rejected"
        ],
        "additionalProperties": false,
        "description": "The last manifest of the active connector binding of the server (the `manifest-response`): accepted actions and rejected actions with the reason. A debugging tool for whoever writes the mod. No binding or no manifest yet: `null` hashes and dates and empty lists."
      },
      "EnumValue": {
        "type": "string",
        "pattern": "^[a-z0-9_]{1,32}$"
      },
      "ErrorCode": {
        "type": "string",
        "enum": [
          "VALIDATION_FAILED",
          "UNAUTHENTICATED",
          "FORBIDDEN",
          "NOT_FOUND",
          "CONFLICT",
          "RATE_LIMITED",
          "TOO_MANY_ATTEMPTS",
          "NOT_IMPLEMENTED",
          "INTERNAL_ERROR",
          "IDEMPOTENCY_KEY_REQUIRED",
          "IDEMPOTENCY_KEY_REUSED",
          "CSRF_TOKEN_INVALID",
          "REAUTH_REQUIRED",
          "ACCOUNT_BLOCKED",
          "HOLDER_BLOCKED",
          "NAME_CONTAINS_AT_SIGN",
          "NAME_UNSAFE_CHARACTERS",
          "INVALID_PHONE",
          "OAUTH_PROVIDER_DISABLED",
          "OAUTH_STATE_INVALID",
          "OAUTH_PROVIDER_ERROR",
          "IDENTITY_ALREADY_LINKED",
          "ACCOUNT_LINK_REQUIRED",
          "PROVIDER_EMAIL_UNVERIFIED",
          "LAST_LOGIN_METHOD",
          "EMAIL_CODE_INVALID",
          "EMAIL_CODE_EXPIRED",
          "TOTP_INVALID",
          "TOTP_ALREADY_ENABLED",
          "TOTP_NOT_ENABLED",
          "TOTP_ENROLLMENT_REQUIRED",
          "EMAIL_NOT_VERIFIED",
          "EMAIL_ALREADY_SET",
          "PROVIDER_REAUTH_REQUIRED",
          "PROVIDER_REAUTH_MISMATCH",
          "SESSION_IS_CURRENT",
          "SIGNUP_TICKET_INVALID",
          "ACCOUNT_SECURITY_COOLDOWN",
          "ACCOUNT_DOCUMENT_INVALID",
          "ACCOUNT_DOCUMENT_ALREADY_SET",
          "ACCOUNT_DOCUMENT_IN_USE",
          "PROFILE_ALREADY_EXISTS",
          "PROFILE_REQUIRED",
          "STREAMING_CHANNEL_REQUIRED",
          "STREAMING_CHANNEL_IN_USE",
          "GAME_IDENTITY_REQUIRED",
          "ORGANIZATION_REQUIRED",
          "ACTIVE_ORGANIZATION_MISMATCH",
          "NOT_ORGANIZATION_MEMBER",
          "ORGANIZATION_ROLE_INSUFFICIENT",
          "LAST_OWNER_CANNOT_LEAVE",
          "CANNOT_REMOVE_SELF",
          "SLUG_TAKEN",
          "SLUG_INVALID",
          "INVITE_INVALID",
          "INVITE_EXPIRED",
          "INVITE_EMAIL_MISMATCH",
          "INVITE_ALREADY_PENDING",
          "ALREADY_ORGANIZATION_MEMBER",
          "PLAN_REQUIRED",
          "LICENSE_INACTIVE",
          "GAME_NOT_SUPPORTED",
          "GAME_NOT_ACTIVE",
          "GAME_UNAVAILABLE",
          "MODULE_DISABLED",
          "UNKNOWN_ACTION",
          "ACTION_DISABLED",
          "ACTION_DISABLED_LOCALLY",
          "ACTION_SUSPENDED",
          "ACTION_VERSION_UNSUPPORTED",
          "ACTION_NOT_IN_MANIFEST",
          "AFFECTS_OTHERS_NOT_ALLOWED",
          "INVALID_PARAMS",
          "PARAM_OUT_OF_RANGE",
          "LIMIT_EXCEEDED",
          "PRICE_BELOW_MINIMUM",
          "CURRENCY_NOT_SUPPORTED",
          "COOLDOWN_BELOW_MINIMUM",
          "SERVER_ARCHIVED",
          "SERVER_NOT_APPROVED_FOR_LIVE",
          "CONNECTOR_NOT_PAIRED",
          "CONNECTOR_OFFLINE",
          "CONNECTOR_DISABLED",
          "MODE_MISMATCH",
          "EMERGENCY_PAUSED",
          "PLATFORM_PAUSED",
          "LINK_ALREADY_EXISTS",
          "LINK_NOT_APPROVED",
          "LINK_REVOKED",
          "LINK_INVALID_TRANSITION",
          "STREAMER_OFFLINE",
          "STREAMER_NOT_ON_SERVER",
          "STREAMER_UNAVAILABLE",
          "SERVER_UNAVAILABLE",
          "QUEUE_PAUSED",
          "COOLDOWN_ACTIVE",
          "QUEUE_FULL",
          "TARGET_OFFLINE",
          "TARGET_UNAVAILABLE",
          "TARGET_NOT_LINKED",
          "MODERATION_BLOCKED",
          "ORDER_EXPIRED",
          "ORDER_ALREADY_DELIVERED",
          "ORDER_INVALID_TRANSITION",
          "SKIPPED_BY_STREAMER",
          "PANIC_STOP",
          "CANCELED_BY_ADMIN",
          "EXECUTION_FAILED",
          "EXECUTION_INTERRUPTED",
          "ACK_TIMEOUT",
          "LATE_ACK_RECONCILED",
          "PAYMENT_NOT_CONFIRMED",
          "PAYMENT_FAILED",
          "PAYMENT_EXPIRED",
          "PAYMENT_METHOD_UNAVAILABLE",
          "GUEST_EMAIL_REQUIRED",
          "OFFER_PRICE_CHANGED",
          "OFFER_INACTIVE",
          "STREAMER_SERVER_CHANGED",
          "MESSAGE_NOT_ALLOWED",
          "FX_QUOTE_EXPIRED",
          "DISPUTE_WINDOW_CLOSED",
          "INSUFFICIENT_CREDIT",
          "INSUFFICIENT_BALANCE",
          "PAYOUT_BELOW_MINIMUM",
          "PAYOUT_ABOVE_MAXIMUM",
          "PAYOUT_INVALID_TRANSITION",
          "PAYOUT_METHOD_CURRENCY_MISMATCH",
          "PAYOUT_METHOD_UNVERIFIED",
          "PAYOUT_DESTINATION_COOLDOWN",
          "PIX_KEY_OWNER_MISMATCH",
          "PAYEE_KYC_REQUIRED",
          "FOUR_EYES_REQUIRED",
          "PAYOUT_PROVIDER_UNAVAILABLE",
          "PAYOUT_ROUTE_MANUAL_REQUIRED",
          "PAYOUT_OWNER_CHECK_REQUIRED",
          "PAYOUT_ALREADY_OPEN",
          "PAYOUT_FEE_CHANGED",
          "PAYEE_ALREADY_EXISTS",
          "PAYEE_DOCUMENT_INVALID",
          "PAYOUT_METHOD_DUPLICATE",
          "PAYOUT_METHOD_IN_USE",
          "PAYOUT_METHOD_LIMIT_REACHED",
          "PAYOUT_RAIL_UNAVAILABLE",
          "PIX_KEY_NOT_FOUND",
          "BANK_UNKNOWN",
          "BANK_LOCKED_BY_DICT",
          "PIX_KEY_INVALID",
          "PAYOUT_RETURN_EXCEEDS_PAID",
          "SPLIT_RULE_INVALID",
          "SPLIT_RULE_RETROACTIVE",
          "SPLIT_RULE_OVERLAP",
          "PSP_FEE_SCHEDULE_RETROACTIVE",
          "PSP_MOVEMENT_INVALID_TRANSITION",
          "WEBHOOK_SIGNATURE_INVALID",
          "OVERLAY_TOKEN_INVALID",
          "OVERLAY_TOO_MANY_CONNECTIONS",
          "MODULE_CONFIG_INVALID",
          "MODULE_NOT_CONFIGURED",
          "EMAIL_PROVIDER_UNUSABLE",
          "MODULE_HAS_PENDING",
          "MODULE_CAPABILITY_MISSING",
          "MODULE_UNHEALTHY",
          "MODULE_USES_ACCOUNTS",
          "MODULE_ACCOUNTS_UNSUPPORTED",
          "PROVIDER_ACCOUNT_TEST_FAILED",
          "PROVIDER_ACCOUNT_READ_ONLY",
          "PROVIDER_ACCOUNT_IN_USE",
          "PROVIDER_FUNCTION_UNSUPPORTED",
          "PROVIDER_POOL_FULL",
          "MODE_NOT_ALLOWED_IN_ENVIRONMENT",
          "REVISION_MISMATCH",
          "REFUND_DUAL_APPROVAL_LIMIT_ABOVE_CAP",
          "ADMIN_ACCESS_DENIED",
          "ADMIN_2FA_REQUIRED",
          "SUBSCRIPTION_ALREADY_EXISTS",
          "SUBSCRIPTION_INVALID_TRANSITION",
          "SUBSCRIPTION_NOT_FOUND",
          "PLAN_INACTIVE",
          "INVOICE_NOT_PAYABLE",
          "MANDATE_ALREADY_EXISTS",
          "MANDATE_REQUIRES_OPEN_INVOICE",
          "RECURRING_PROVIDER_UNAVAILABLE",
          "BILLING_PROFILE_REQUIRED",
          "BILLING_DOCUMENT_INVALID",
          "API_KEY_INVALID",
          "API_KEY_SCOPE_INSUFFICIENT",
          "API_KEY_SCOPE_UNAVAILABLE",
          "API_KEY_LIMIT_REACHED",
          "SERVER_FILTER_REQUIRED",
          "PLAN_PRICE_NOTICE_TOO_SHORT",
          "COURTESY_NOT_FOUND",
          "PAYER_BLOCKED",
          "REFUND_REQUEST_INVALID_TRANSITION",
          "ORDER_NOT_FINAL",
          "ORDER_REFUND_EXCEEDS_REFUNDABLE",
          "ORDER_REFUND_BEARER_LOCKED",
          "ORDER_REFUND_IN_FLIGHT",
          "ORDER_NOT_DISPUTABLE",
          "DISPUTE_EXISTS",
          "DISPUTE_ALREADY_RESPONDED",
          "DISPUTE_RESPONSE_WINDOW_CLOSED",
          "DISPUTE_INVALID_TRANSITION",
          "DISPUTE_REFUND_UNAVAILABLE",
          "RECONCILIATION_CASE_STALE",
          "LATE_ACK_FREEZE_NOT_PAUSED",
          "VOICE_DONATION_UNAVAILABLE",
          "VOICE_TEXT_TOO_LONG",
          "VOICE_DONATION_NOT_ACTIONABLE",
          "VOICE_PRICE_BELOW_FLOOR",
          "VOICE_UNAVAILABLE",
          "VOICE_AUDIO_INVALID",
          "APPROVAL_EXPIRED",
          "REJECTED_BY_STREAMER",
          "REMOVED_BY_MODERATION",
          "MODERATION_ITEM_RESOLVED",
          "RESOLUTION_NOT_ALLOWED",
          "REPORT_TARGET_UNAVAILABLE",
          "REPORT_LIMIT_REACHED",
          "PAYER_UNKNOWN",
          "BLOCKED_AFTER_PAYMENT",
          "ORDER_NOT_FOUND",
          "OVERLAY_PLAYBACK_SESSION_REQUIRED",
          "VOICE_DONATION_NOT_NEXT",
          "VOICE_ALREADY_PLAYING",
          "VIDEO_PLAYBACK_OWNED",
          "VIDEO_PLAYBACK_PAUSED",
          "VIDEO_PLAYBACK_FAILED",
          "RECORDING_UPLOAD_MISSING",
          "RECORDING_ALREADY_CONFIRMED",
          "RECORDING_TOO_LARGE",
          "RECORDING_TYPE_MISMATCH",
          "RECORDING_TOO_LONG",
          "RECORDING_INVALID",
          "RECORDING_NOT_AVAILABLE",
          "VIDEO_LOOKUP_UNAVAILABLE",
          "VIDEO_NOT_ALLOWED",
          "WIDGET_DRAFT_CONFLICT",
          "WIDGET_DESIGN_INVALID",
          "WIDGET_DESIGN_TOO_LARGE",
          "WIDGET_COMPONENT_UNKNOWN",
          "WIDGET_TEXT_VARIABLE_UNKNOWN",
          "WIDGET_CONDITION_UNSUPPORTED",
          "WIDGET_MODEL_UNAVAILABLE",
          "WIDGET_MODEL_NOT_EDITABLE",
          "WIDGET_MODEL_IS_DEFAULT",
          "WIDGET_MODEL_KIND_MISMATCH",
          "WIDGET_TEMPLATE_LIMIT",
          "WIDGET_TEMPLATE_NAME_TAKEN",
          "WIDGET_TEMPLATE_IN_USE",
          "WIDGET_TEMPLATE_DRAFT_CONFLICT",
          "WIDGET_TEMPLATE_UNAVAILABLE",
          "WIDGET_TEMPLATE_KIND_MISMATCH",
          "WIDGET_TEMPLATE_BASE_INVALID",
          "WIDGET_TEMPLATE_IS_DEFAULT",
          "WIDGET_TEMPLATE_CONTENT_INVALID",
          "WIDGET_TEMPLATE_ARTIFACT_INVALID",
          "WIDGET_TEMPLATE_ARTIFACT_MISMATCH",
          "WIDGET_TEMPLATE_ARTIFACT_MISSING",
          "WIDGET_TEMPLATE_QUOTA_EXCEEDED",
          "WIDGET_MODELS_REMOVED",
          "WIDGET_NOT_FOUND",
          "WIDGET_ALREADY_EXISTS",
          "VOICE_DONATIONS_ENABLED",
          "VOICE_DONATIONS_PENDING",
          "MEDIA_NOT_USABLE",
          "MEDIA_KIND_MISMATCH",
          "MEDIA_IN_USE",
          "MEDIA_QUOTA_EXCEEDED",
          "MEDIA_TOO_LARGE",
          "MEDIA_TYPE_MISMATCH",
          "MEDIA_TOO_LONG",
          "MEDIA_DIMENSIONS_TOO_LARGE",
          "MEDIA_INVALID",
          "MEDIA_UPLOAD_MISSING",
          "MEDIA_UPLOAD_EXPIRED",
          "MEDIA_STORAGE_UNAVAILABLE",
          "MEDIA_BLOCKED",
          "SOCIAL_LINK_INVALID",
          "SOCIAL_LINK_WRONG_NETWORK",
          "PRIMARY_CHANNEL_REQUIRED",
          "PRIMARY_CHANNEL_HIDDEN",
          "FILE_TOO_LARGE",
          "FILE_TYPE_NOT_ALLOWED",
          "FILE_TYPE_MISMATCH",
          "FILE_INVALID",
          "FILE_DIMENSIONS_OUT_OF_RANGE",
          "FILE_ANIMATED_NOT_ALLOWED",
          "FILE_BUSY",
          "FILE_STORAGE_UNAVAILABLE",
          "AVATAR_PROVIDER_UNAVAILABLE",
          "CLAIM_NOT_FOUND",
          "DONOR_FEE_COVER_UNAVAILABLE",
          "VOICE_NOT_FOUND",
          "VOICE_LANGUAGE_NOT_SUPPORTED",
          "VOICE_CONTENT_REJECTED",
          "VOICE_ADJUSTMENT_UNSUPPORTED",
          "VOICE_GENERATION_FAILED",
          "VOICE_SERVICE_UNAVAILABLE",
          "VOICE_SERVICE_BUSY",
          "VOICE_TEST_TIMEOUT",
          "VOICE_DEFAULT_CANNOT_BE_DISABLED",
          "VOICE_NOT_FOUND_IN_PROVIDER",
          "VOICE_ALREADY_IN_CATALOG",
          "VOICE_RETIRED",
          "VOICE_INVALID_TRANSITION",
          "VOICE_NOT_READY_TO_PUBLISH",
          "VOICE_IS_DEFAULT",
          "VOICE_DEFAULT_MUST_BE_SELF_HOSTED",
          "VOICE_PHOTO_REQUIRED",
          "VOICE_MUST_BE_DISABLED_TO_CHANGE_AUDIO",
          "PROVIDER_POOL_ORDER_INVALID",
          "VOICE_TEST_ACCOUNT_INVALID",
          "VOICE_PROVIDER_BUDGET_TRIPPED",
          "VOICE_PROVIDER_BUDGET_MISCONFIGURED",
          "VOICE_PROVIDER_BUDGET_OVER_CAP",
          "VOICE_PROVIDER_BUDGET_NOT_TRIPPED",
          "VOICE_NO_ACTIVE_ACCOUNT",
          "VOICE_NOT_ALLOWED",
          "VOICE_DEFAULT_WOULD_BE_MUTE",
          "PROVIDER_FUNCTION_SCOPE_MISSING",
          "PROVIDER_ENDPOINT_NOT_ALLOWED",
          "PROVIDER_SECRET_REQUIRED_ON_HOST_CHANGE",
          "APPLICATION_LIMIT_REACHED",
          "APPLICATION_NAME_TAKEN",
          "APPLICATION_TYPE_UNAVAILABLE",
          "APPLICATION_KEY_ROTATION_IN_PROGRESS",
          "APPLICATION_DISABLED",
          "APPLICATION_SUSPENDED",
          "SERVER_ALREADY_BOUND",
          "GAME_MISMATCH",
          "PORTAL_TRANSLATIONS_INCOMPLETE",
          "PORTAL_MARKDOWN_INVALID",
          "MARKDOWN_HTML_NOT_ALLOWED",
          "MARKDOWN_ELEMENT_NOT_ALLOWED",
          "MARKDOWN_LINK_NOT_ALLOWED",
          "PORTAL_SLUG_LOCKED",
          "PORTAL_ANNOUNCEMENT_ACTIVE_EXISTS",
          "PORTAL_ITEM_NOT_DELETABLE",
          "OUTPUT_LINE_INVALID",
          "OUTPUT_LINE_UNKNOWN_VARIABLE",
          "OUTPUT_LINE_UNAVAILABLE",
          "OUTPUT_FORMAT_CHANGED",
          "STUDIO_AUTHORIZATION_CODE_INVALID",
          "STUDIO_DEVICE_LIMIT_REACHED",
          "CREDENTIAL_INVALID",
          "ASSISTANT_DISABLED",
          "ASSISTANT_PROVIDER_CHANGED",
          "ASSISTANT_PAUSED",
          "ASSISTANT_BUSY",
          "ASSISTANT_BUSY_UPSTREAM",
          "ASSISTANT_QUOTA_EXCEEDED",
          "ASSISTANT_ROUND_CONFLICT",
          "ASSISTANT_REQUEST_EXPIRED",
          "ASSISTANT_ROUND_LIMIT",
          "ASSISTANT_CONTEXT_TOO_LARGE",
          "ASSISTANT_TIMEOUT",
          "ASSISTANT_UPSTREAM_ERROR",
          "ASSISTANT_OUTPUT_LIMIT",
          "ASSISTANT_UNAVAILABLE",
          "ASSISTANT_HISTORY_INVALID",
          "ASSISTANT_SUGGESTION_UNKNOWN",
          "ASSISTANT_COOLDOWN",
          "ASSISTANT_RATE_INVALID",
          "ASSISTANT_MODEL_RATE_MISSING",
          "ASSISTANT_BUDGET_NOT_TRIPPED",
          "ASSISTANT_BUDGET_OVER_CAP",
          "TEMPLATE_NOT_EDITABLE",
          "REPLAY_NOT_ALLOWED",
          "IDENTITY_VERIFICATION_ALREADY_APPROVED",
          "IDENTITY_VERIFICATION_IN_REVIEW",
          "IDENTITY_VERIFICATION_NOT_IN_REVIEW",
          "IDENTITY_VERIFICATION_NOT_APPROVED",
          "IDENTITY_DATA_PURGED",
          "IDENTITY_DATA_NOT_SET",
          "IDENTITY_VERIFICATION_NOT_SUBMITTED",
          "IDENTITY_CAPTURE_ACTIVE",
          "IDENTITY_CAPTURE_LINK_INVALID",
          "IDENTITY_CAPTURE_LINK_EXPIRED",
          "IDENTITY_CAPTURE_SESSION_INVALID",
          "IDENTITY_CAPTURE_NOT_CONFIRMED",
          "IDENTITY_CAPTURE_NOT_PENDING",
          "IDENTITY_CAPTURE_INCOMPLETE",
          "IDENTITY_FILE_SLOT_MISMATCH",
          "IDENTITY_UNDERAGE",
          "IDENTITY_PRIVACY_NOTICE_OUTDATED",
          "IDENTITY_LIVENESS_CHALLENGE_INVALID",
          "IDENTITY_LIVENESS_CHALLENGE_EXPIRED",
          "IDENTITY_LIVENESS_SELFIE_MISSING",
          "IDENTITY_LIVENESS_ATTEMPTS_EXHAUSTED",
          "IDENTITY_CHECK_IN_PROGRESS",
          "IDENTITY_CHECK_RERUN_LIMIT",
          "IDENTITY_CHECK_MODULE_UNAVAILABLE"
        ],
        "x-extensible-enum": true,
        "description": "Stable, single list of error codes returned in the `code` field of a problem response. Adding a code is backwards compatible: clients must handle an unknown code with a generic fallback. A code is never renamed or reused with a different meaning. Some codes belong to other parts of the platform and are never returned to an API key.",
        "examples": [
          "ORDER_EXPIRED"
        ]
      },
      "GameId": {
        "type": "string",
        "pattern": "^(?!custom$)[a-z][a-z0-9]{1,15}$",
        "description": "Game id (`dayz`, `rust`...), the same format as the Connector Protocol. `custom` is reserved. Open string: new games are added over time.",
        "examples": [
          "dayz"
        ]
      },
      "Id": {
        "type": "string",
        "pattern": "^[a-z]{2,5}_[0-9A-HJKMNP-TV-Z]{26}$",
        "description": "Opaque identifier: a type prefix plus a ULID (26 Crockford base32 characters), for example `srv_01JADXRHEM3E2MSH4DMDZSX9G8`. Clients must not parse it.",
        "examples": [
          "srv_01JA8Z3E5G7J9M1P3R5T7W9Y1A"
        ]
      },
      "ManifestRejectionReason": {
        "type": "string",
        "enum": [
          "UNKNOWN_OFFICIAL_ACTION",
          "ACTION_VERSION_UNSUPPORTED",
          "SCHEMA_INCOMPATIBLE",
          "CUSTOM_NAMESPACE_MISMATCH",
          "PLAN_REQUIRED",
          "ACTION_SUSPENDED",
          "DUPLICATE_ACTION"
        ],
        "x-extensible-enum": true,
        "description": "Why the backend rejected an action of the manifest (`manifestRejectionCode` of the Connector Protocol)."
      },
      "Money": {
        "type": "object",
        "properties": {
          "amountCents": {
            "type": "integer",
            "minimum": 0,
            "format": "int64",
            "description": "Amount in minor units of the currency (cents)."
          },
          "currency": {
            "$ref": "#/components/schemas/CurrencyCode"
          }
        },
        "required": [
          "amountCents",
          "currency"
        ],
        "additionalProperties": false,
        "description": "Amount in integer minor units (cents) plus currency. Never a float. Amounts in different currencies are never added or converted.",
        "examples": [
          {
            "amountCents": 1000,
            "currency": "BRL"
          }
        ]
      },
      "OrderFailureReason": {
        "type": "string",
        "enum": [
          "PAYMENT_EXPIRED",
          "ORDER_EXPIRED",
          "LINK_REVOKED",
          "LICENSE_INACTIVE",
          "SERVER_NOT_APPROVED_FOR_LIVE",
          "PLAN_REQUIRED",
          "GAME_NOT_ACTIVE",
          "GAME_UNAVAILABLE",
          "UNKNOWN_ACTION",
          "ACTION_DISABLED_LOCALLY",
          "ACTION_SUSPENDED",
          "ACTION_DISABLED",
          "ACTION_VERSION_UNSUPPORTED",
          "INVALID_PARAMS",
          "LIMIT_EXCEEDED",
          "MODE_MISMATCH",
          "MODERATION_BLOCKED",
          "STREAMER_OFFLINE",
          "STREAMER_NOT_ON_SERVER",
          "TARGET_OFFLINE",
          "TARGET_UNAVAILABLE",
          "TARGET_NOT_LINKED",
          "CONNECTOR_OFFLINE",
          "CONNECTOR_DISABLED",
          "EMERGENCY_PAUSED",
          "PLATFORM_PAUSED",
          "QUEUE_PAUSED",
          "COOLDOWN_ACTIVE",
          "QUEUE_FULL",
          "SKIPPED_BY_STREAMER",
          "PANIC_STOP",
          "CANCELED_BY_ADMIN",
          "EXECUTION_FAILED",
          "EXECUTION_INTERRUPTED",
          "ACK_TIMEOUT",
          "STREAMER_UNAVAILABLE",
          "SERVER_UNAVAILABLE",
          "VOICE_UNAVAILABLE",
          "VOICE_AUDIO_INVALID",
          "APPROVAL_EXPIRED",
          "REJECTED_BY_STREAMER",
          "REMOVED_BY_MODERATION",
          "BLOCKED_AFTER_PAYMENT",
          "VIDEO_PLAYBACK_FAILED",
          "LATE_ACK_RECONCILED"
        ],
        "x-extensible-enum": true,
        "description": "Stable reason of a final status other than `completed` (same names as the Connector Protocol). `expired` always has `ORDER_EXPIRED`; what the order was waiting for is in `expiredWhileWaitingFor`. Clients must handle an unknown value with a generic fallback.",
        "examples": [
          "ORDER_EXPIRED"
        ]
      },
      "OrganizationSlug": {
        "type": "string",
        "pattern": "^[a-z0-9](?:[a-z0-9-]{0,38}[a-z0-9])?$",
        "description": "URL-safe name of the organization. It never changes after it is created.",
        "examples": [
          "acme-servers"
        ]
      },
      "PageCursor": {
        "anyOf": [
          {
            "type": "string",
            "maxLength": 512
          },
          {
            "type": "null"
          }
        ],
        "description": "Opaque cursor of the next page. `null` = there are no more items.",
        "examples": [
          "eyJpZCI6Im9yZF8wMUpDREQ3In0"
        ]
      },
      "ParamValue": {
        "oneOf": [
          {
            "type": "number"
          },
          {
            "type": "boolean"
          },
          {
            "$ref": "#/components/schemas/EnumValue"
          }
        ],
        "description": "Value of an action parameter (number, boolean or enum value, never free text)."
      },
      "ParamValues": {
        "type": "object",
        "propertyNames": {
          "type": "string",
          "pattern": "^[a-z][a-z0-9_]{0,31}$"
        },
        "additionalProperties": {
          "$ref": "#/components/schemas/ParamValue"
        },
        "description": "Parameter values by `key` (for example `{ \"count\": 3, \"radius\": 25 }`).",
        "maxProperties": 8,
        "examples": [
          {
            "count": 3,
            "radius": 25
          }
        ]
      },
      "Problem": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "format": "uri-reference",
            "description": "URI that identifies the problem type (for example `https://dropsz.gg/docs/errors/price-below-minimum`)."
          },
          "title": {
            "type": "string",
            "description": "Short summary, in English, for whoever operates the integration."
          },
          "status": {
            "type": "integer",
            "minimum": 400,
            "maximum": 599
          },
          "code": {
            "$ref": "#/components/schemas/ErrorCode"
          },
          "detail": {
            "type": "string",
            "description": "Detail for whoever operates the integration. It never contains secrets or personal data."
          },
          "instance": {
            "type": "string",
            "format": "uri-reference",
            "description": "Identifier of this occurrence (for example the request id, useful for support)."
          },
          "errors": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "path": {
                  "type": "string",
                  "description": "JSON Pointer to the field (for example `/price/amountCents`)."
                },
                "code": {
                  "$ref": "#/components/schemas/ErrorCode"
                }
              },
              "required": [
                "path",
                "code"
              ],
              "additionalProperties": false
            },
            "description": "Errors by field (validation)."
          }
        },
        "required": [
          "type",
          "title",
          "status",
          "code"
        ],
        "description": "Error in the RFC 9457 format (`application/problem+json`). Decide what to do from `code`; `title` and `detail` are meant for logs and may change without notice.",
        "examples": [
          {
            "type": "https://dropsz.gg/docs/errors/price-below-minimum",
            "title": "Price below minimum",
            "status": 422,
            "code": "PRICE_BELOW_MINIMUM",
            "detail": "Minimum price for BRL is 500 cents.",
            "instance": "req_01JCDE7H9K1M3P5R7T9V1X3Z5B",
            "errors": [
              {
                "path": "/price/amountCents",
                "code": "PRICE_BELOW_MINIMUM"
              }
            ]
          }
        ]
      },
      "Timestamp": {
        "type": "string",
        "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{3}Z$",
        "format": "date-time",
        "description": "Instant in UTC with millisecond precision (`2026-10-16T12:00:00.000Z`). The server clock is the reference for every time window.",
        "examples": [
          "2026-10-15T22:41:03.000Z"
        ]
      },
      "ViewerOrderStatus": {
        "type": "string",
        "enum": [
          "pending_payment",
          "payment_expired",
          "paid",
          "queued",
          "delivered",
          "running",
          "completed",
          "failed",
          "expired",
          "rejected",
          "canceled"
        ],
        "x-extensible-enum": true,
        "description": "Order status. `paid`: payment confirmed, checks in progress. `queued`: order created, waiting for its turn (see `waitingReason`). `delivered`: the connector pulled it. `running`: executing. `rejected`: blocked before executing (backend or connector). `canceled`: paid and canceled before executing."
      },
      "WaitingReason": {
        "type": "string",
        "enum": [
          "COOLDOWN_ACTIVE",
          "QUEUE_PAUSED",
          "PLATFORM_PAUSED",
          "CONNECTOR_OFFLINE",
          "TARGET_OFFLINE",
          "TARGET_UNAVAILABLE"
        ],
        "x-extensible-enum": true,
        "description": "Why a `queued` order was not delivered yet. While it waits, its time to live keeps running; after `expiresAt` it becomes `expired` with `ORDER_EXPIRED`."
      }
    }
  }
}
