{
  "openapi": "3.1.0",
  "info": {
    "title": "API Pública da DROPSZ",
    "version": "1.0.0-alpha.6",
    "summary": "Acesso somente leitura aos dados da sua organização com uma chave de API.",
    "description": "API Pública da DROPSZ: leia os servidores e as ordens da sua organização com uma chave de API. Autentique com `Authorization: Bearer dz_live_<publicId8>_<secret43>`. Os erros usam `application/problem+json` (RFC 9457) com um `code` estável."
  },
  "servers": [
    {
      "url": "https://sandbox-api.dropsz.gg/v1",
      "description": "Homologação (sandbox)"
    },
    {
      "url": "https://api.dropsz.gg/v1",
      "description": "Produção"
    }
  ],
  "security": [
    {
      "organizationApiKey": []
    }
  ],
  "tags": [
    {
      "name": "Developer",
      "description": "Leia os servidores e as ordens da sua organização com uma chave de API (`/developer/*`)."
    }
  ],
  "paths": {
    "/developer/orders": {
      "get": {
        "tags": [
          "Developer"
        ],
        "operationId": "listDeveloperOrders",
        "summary": "Listar as ordens dos servidores que a chave de API enxerga",
        "description": "Ordens enviadas aos servidores que a chave enxerga. Em ordem crescente da última alteração e, depois, de `id`: um cliente que guarda o último `updatedAt` e chama de novo com `updatedSince` nunca perde uma alteração. Nunca devolve nome nem mensagem do espectador. Uma chave que enxerga mais de 100 servidores deve enviar `serverId` (400 `SERVER_FILTER_REQUIRED`). Exige o escopo `orders_read`.",
        "x-dropsz-api-scopes": [
          "orders_read"
        ],
        "security": [
          {
            "organizationApiKey": []
          }
        ],
        "parameters": [
          {
            "name": "serverId",
            "in": "query",
            "required": false,
            "description": "Só as ordens deste servidor. Um servidor que a chave não enxerga devolve uma página vazia. Obrigatório quando a chave enxerga mais de 100 servidores (sem ele, 400 `SERVER_FILTER_REQUIRED`).",
            "schema": {
              "$ref": "#/components/schemas/Id"
            }
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "description": "Só as ordens em um destes status. Repita o parâmetro para mais de um (`status=queued&status=running`).",
            "schema": {
              "minItems": 1,
              "maxItems": 11,
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ViewerOrderStatus"
              }
            }
          },
          {
            "name": "actionKey",
            "in": "query",
            "required": false,
            "description": "Só as ordens desta ação.",
            "schema": {
              "$ref": "#/components/schemas/ActionKey"
            }
          },
          {
            "name": "isTest",
            "in": "query",
            "required": false,
            "description": "Só ordens de teste (`true`) ou só ordens reais (`false`).",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "createdFrom",
            "in": "query",
            "required": false,
            "description": "Só as ordens criadas neste instante ou depois (inclusive).",
            "schema": {
              "$ref": "#/components/schemas/Timestamp"
            }
          },
          {
            "name": "createdTo",
            "in": "query",
            "required": false,
            "description": "Só as ordens criadas antes deste instante (exclusivo). Não pode ser anterior a `createdFrom`.",
            "schema": {
              "$ref": "#/components/schemas/Timestamp"
            }
          },
          {
            "name": "updatedSince",
            "in": "query",
            "required": false,
            "description": "Só as ordens alteradas neste instante ou depois (inclusive). Use para sincronizar de forma incremental.",
            "schema": {
              "$ref": "#/components/schemas/Timestamp"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "Cursor opaco devolvido como `nextCursor` pela página anterior. Envie os mesmos filtros dessa página.",
            "schema": {
              "type": "string",
              "maxLength": 512
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Itens por página (de 1 a 100).",
            "schema": {
              "default": 50,
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Uma página de ordens.",
            "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": "Obter uma ordem",
        "description": "Uma ordem de um servidor que a chave enxerga, com o `result` informado pelo jogo ao concluir. Uma ordem de outra organização ou de um servidor fora da chave devolve 404. Exige o escopo `orders_read`.",
        "x-dropsz-api-scopes": [
          "orders_read"
        ],
        "security": [
          {
            "organizationApiKey": []
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/OrderIdPath"
          }
        ],
        "responses": {
          "200": {
            "description": "A ordem.",
            "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": "Identificar a chave de API que fez a chamada (organização, escopos e servidores efetivos)",
        "description": "`Authorization: Bearer dz_live_<publicId8>_<secret43>`. Uma chave que não existe, foi revogada, expirou, é de outro ambiente ou está errada devolve o MESMO 401 `API_KEY_INVALID`. Não exige escopo. Há limite de requisições por chave e por organização (429 com `Retry-After`).",
        "security": [
          {
            "organizationApiKey": []
          }
        ],
        "responses": {
          "200": {
            "description": "A chave e o que ela enxerga agora.",
            "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": "Listar os servidores que a chave de API enxerga",
        "description": "Servidores da organização que a chave enxerga: os servidores escolhidos para a chave (ou todos) que não estão arquivados. Em ordem crescente da última alteração e, depois, de `id`. Exige o escopo `servers_read`.",
        "x-dropsz-api-scopes": [
          "servers_read"
        ],
        "security": [
          {
            "organizationApiKey": []
          }
        ],
        "parameters": [
          {
            "name": "gameId",
            "in": "query",
            "required": false,
            "description": "Só os servidores deste jogo.",
            "schema": {
              "$ref": "#/components/schemas/GameId"
            }
          },
          {
            "name": "mode",
            "in": "query",
            "required": false,
            "description": "Só os servidores neste modo de conector.",
            "schema": {
              "$ref": "#/components/schemas/ConnectorMode"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "Cursor opaco devolvido como `nextCursor` pela página anterior. Envie os mesmos filtros dessa página.",
            "schema": {
              "type": "string",
              "maxLength": 512
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Itens por página (de 1 a 100).",
            "schema": {
              "default": 50,
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Uma página de servidores.",
            "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": "Obter um servidor",
        "description": "Um servidor que a chave enxerga, com o status do conector e o número de jogadores online. Um servidor de outra organização, fora dos servidores da chave ou arquivado devolve 404. Exige o escopo `servers_read`.",
        "x-dropsz-api-scopes": [
          "servers_read"
        ],
        "security": [
          {
            "organizationApiKey": []
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/ServerIdPath"
          }
        ],
        "responses": {
          "200": {
            "description": "O servidor.",
            "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": "Obter o último manifesto do conector de um servidor",
        "description": "O último manifesto enviado pelo conector ativo do servidor, como o backend o respondeu: ações aceitas e ações rejeitadas, com o motivo. Útil para depurar um mod. Sem conector ou sem manifesto ainda: hashes e datas `null` e listas vazias. Exige o escopo `servers_read`.",
        "x-dropsz-api-scopes": [
          "servers_read"
        ],
        "security": [
          {
            "organizationApiKey": []
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/ServerIdPath"
          }
        ],
        "responses": {
          "200": {
            "description": "O último manifesto.",
            "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": "Chave de API da organização, enviada como `Authorization: Bearer dz_live_<publicId>_<secret>` (existem chaves `dz_test_` fora de produção). O segredo aparece uma única vez, na criação da chave. Uma chave tem uma lista fechada de escopos (hoje `servers_read` e `orders_read`), uma lista opcional de servidores que ela enxerga, uma expiração opcional e um limite de requisições por minuto. Uma chave que não existe, foi revogada, expirou, é de outro ambiente ou está errada recebe o mesmo 401 `API_KEY_INVALID`; a falta de escopo recebe 403 `API_KEY_SCOPE_INSUFFICIENT`. Não há cookies nem tokens CSRF."
      }
    },
    "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": "A requisição é inválida: um parâmetro está no formato errado, um intervalo de datas está invertido ou o cursor não é válido (`VALIDATION_FAILED`, com `errors`).",
        "content": {
          "application/problem+json": {
            "schema": {
              "$ref": "#/components/schemas/Problem"
            }
          }
        }
      },
      "Forbidden": {
        "description": "A chave de API é válida, mas não pode fazer isso: falta um escopo necessário (`API_KEY_SCOPE_INSUFFICIENT`) ou o recurso não está disponível para ela.",
        "content": {
          "application/problem+json": {
            "schema": {
              "$ref": "#/components/schemas/Problem"
            }
          }
        }
      },
      "NotFound": {
        "description": "O recurso não existe ou a chave de API não o enxerga (outra organização, um servidor fora da chave ou um servidor arquivado). Os dois casos recebem a mesma resposta.",
        "content": {
          "application/problem+json": {
            "schema": {
              "$ref": "#/components/schemas/Problem"
            }
          }
        }
      },
      "NotImplemented": {
        "description": "A operação faz parte do contrato, mas ainda não está disponível (`NOT_IMPLEMENTED`).",
        "content": {
          "application/problem+json": {
            "schema": {
              "$ref": "#/components/schemas/Problem"
            }
          }
        }
      },
      "TooManyRequests": {
        "description": "Limite de requisições excedido para esta chave de API ou para a organização dela (`RATE_LIMITED`). Espere `Retry-After` segundos antes de tentar de novo.",
        "headers": {
          "Retry-After": {
            "description": "Segundos de espera antes de tentar de novo.",
            "schema": {
              "type": "integer",
              "minimum": 1
            }
          }
        },
        "content": {
          "application/problem+json": {
            "schema": {
              "$ref": "#/components/schemas/Problem"
            }
          }
        }
      },
      "Unauthorized": {
        "description": "A chave de API está ausente, malformada, desconhecida, revogada, expirada ou é de outro ambiente (`API_KEY_INVALID`). A resposta é a mesma em todos os casos.",
        "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": "Chave da ação, no mesmo formato do Protocolo do conector. Ação oficial: `<gameId>.<name>` (por exemplo `dayz.break_leg`). Ação própria: `custom.<organizationSlug>.<name>`.",
        "examples": [
          "dayz.break_leg"
        ]
      },
      "ApiKeyScope": {
        "type": "string",
        "enum": [
          "custom_actions_read",
          "custom_actions_write",
          "orders_read",
          "servers_read"
        ],
        "description": "Escopo de uma chave de API (lista fechada). Hoje só `servers_read` e `orders_read` podem ser concedidos; os escopos `custom_actions_*` são reservados e rejeitados com `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": "Escopos concedidos à chave."
          },
          "serverIds": {
            "anyOf": [
              {
                "minItems": 1,
                "maxItems": 100,
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/Id"
                }
              },
              {
                "type": "null"
              }
            ],
            "uniqueItems": true,
            "description": "Servidores escolhidos na criação da chave (`null` = todos os servidores da organização)."
          },
          "effectiveServers": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "$ref": "#/components/schemas/Id"
                },
                "name": {
                  "type": "string"
                }
              },
              "required": [
                "id",
                "name"
              ]
            },
            "description": "Servidores que a chave enxerga agora: os escolhidos que não estão arquivados. Vazio = nenhum."
          }
        },
        "required": [
          "organization",
          "apiKey",
          "scopes",
          "serverIds",
          "effectiveServers"
        ],
        "description": "A chave de API que fez a chamada (`GET /developer/self`): a organização dela, a própria chave, os escopos e os servidores que ela enxerga.",
        "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": "Modo do conector do servidor. `disabled`: não recebe ordens. `sandbox`: só ordens de teste (sem dinheiro real). `enabled`: produção. `emergency_pause`: tudo parado; as ordens pagas ainda não executadas são canceladas na hora."
      },
      "CurrencyCode": {
        "type": "string",
        "pattern": "^[A-Z]{3}$",
        "description": "Código de moeda ISO 4217 (por exemplo `BRL`, `USD`). Aberto de propósito: valores em moedas diferentes nunca são somados nem convertidos.",
        "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": "Uma ação aceita no último manifesto, como o backend respondeu ao conector."
      },
      "DeveloperManifestRejection": {
        "type": "object",
        "properties": {
          "actionKey": {
            "type": "string",
            "maxLength": 128
          },
          "version": {
            "type": "integer"
          },
          "reason": {
            "$ref": "#/components/schemas/ManifestRejectionReason"
          }
        },
        "required": [
          "actionKey",
          "version",
          "reason"
        ],
        "additionalProperties": false,
        "description": "Uma ação rejeitada no último manifesto, com o motivo."
      },
      "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": "Creator da live (os dados da página pública). `null` para uma ordem de teste feita pelo painel."
          },
          "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": "Parte da divisão que vai para a organização dona do servidor. `null` enquanto não há divisão (ordem ainda não paga ou ordem de teste do painel)."
          },
          "result": {
            "anyOf": [
              {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              {
                "type": "null"
              }
            ],
            "description": "O objeto `result` da confirmação final `completed`, como o backend o guardou (`-0` vira `0`). Dado declarado pelo mod, nunca verificado: confira `resultStatus` antes de usá-lo. Presente para `valid`, `invalid` e `undeclared`; `null` para `absent` e para qualquer status diferente de `completed`."
          },
          "resultStatus": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "valid",
                  "invalid",
                  "undeclared",
                  "absent"
                ]
              },
              {
                "type": "null"
              }
            ],
            "x-extensible-enum": true,
            "description": "Classificação de `result` frente à cópia do `resultSchema` fixada na ordem na primeira entrega (protocolo 1.4): `valid` confere, `invalid` não confere, `undeclared` = ação sem `resultSchema` que enviou um `result`, `absent` = sem `resultSchema` e sem `result`. Gravado uma vez, na confirmação `completed`; `null` em qualquer outro status. Nunca afeta o dinheiro nem o status da ordem."
          },
          "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": "Uma ordem enviada a um servidor da organização, como uma chave de API a enxerga. Nunca contém o nome nem a mensagem do espectador, quem pagou, o meio de pagamento, o crédito usado nem as outras partes da divisão."
      },
      "DeveloperOrderList": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DeveloperOrder"
            }
          },
          "nextCursor": {
            "$ref": "#/components/schemas/PageCursor"
          }
        },
        "required": [
          "items",
          "nextCursor"
        ],
        "additionalProperties": false,
        "description": "Uma página de ordens, em ordem estável crescente por (`updatedAt`, `id`)."
      },
      "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": "Até quando o servidor tem o nível `pro` (`null` para `free`). Apenas informativo."
              }
            },
            "required": [
              "tier",
              "proUntil"
            ],
            "additionalProperties": false
          },
          "connector": {
            "type": "object",
            "properties": {
              "online": {
                "type": "boolean",
                "description": "O conector do vínculo ativo enviou um heartbeat recentemente."
              },
              "lastSeenAt": {
                "anyOf": [
                  {
                    "$ref": "#/components/schemas/Timestamp"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "protocolVersion": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 64
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "Versão do Protocolo do conector da sessão mais recente do vínculo ativo."
              },
              "connectorVersion": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 64
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "Versão do conector (mod ou plugin) informada pelo vínculo ativo."
              }
            },
            "required": [
              "online",
              "lastSeenAt",
              "protocolVersion",
              "connectorVersion"
            ],
            "additionalProperties": false
          },
          "playersOnlineCount": {
            "type": "integer",
            "minimum": 0,
            "description": "Jogadores online no último heartbeat (só a contagem, nunca a lista)."
          }
        },
        "required": [
          "id",
          "name",
          "gameId",
          "mode",
          "plan",
          "connector",
          "playersOnlineCount"
        ],
        "additionalProperties": false,
        "description": "Um servidor da organização, como uma chave de API o enxerga. Nunca contém a lista de jogadores do heartbeat nem credencial ou sessão do conector."
      },
      "DeveloperServerList": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DeveloperServer"
            }
          },
          "nextCursor": {
            "$ref": "#/components/schemas/PageCursor"
          }
        },
        "required": [
          "items",
          "nextCursor"
        ],
        "additionalProperties": false,
        "description": "Uma página de servidores, em ordem estável crescente por (última alteração, `id`)."
      },
      "DeveloperServerManifest": {
        "type": "object",
        "properties": {
          "serverId": {
            "$ref": "#/components/schemas/Id"
          },
          "manifestHash": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 80
              },
              {
                "type": "null"
              }
            ],
            "description": "Hash do último manifesto (`sha256:<hex>`); `null` quando nenhum manifesto foi recebido."
          },
          "configHash": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 80
              },
              {
                "type": "null"
              }
            ]
          },
          "receivedAt": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Timestamp"
              },
              {
                "type": "null"
              }
            ],
            "description": "Quando o backend gravou este resultado: a última vez que as ações aceitas, as ações rejeitadas ou `enabledByPlan` mudaram."
          },
          "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": "O último manifesto do vínculo ativo do conector do servidor (o `manifest-response`): ações aceitas e ações rejeitadas, com o motivo. Uma ferramenta de depuração para quem escreve o mod. Sem vínculo ou sem manifesto ainda: hashes e datas `null` e listas vazias."
      },
      "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": "Lista única e estável dos códigos de erro devolvidos no campo `code` de uma resposta de problema. Acrescentar um código é compatível: os clientes devem tratar um código desconhecido com um comportamento genérico. Um código nunca é renomeado nem reaproveitado com outro significado. Alguns códigos pertencem a outras partes da plataforma e nunca são devolvidos a uma chave de API.",
        "examples": [
          "ORDER_EXPIRED"
        ]
      },
      "GameId": {
        "type": "string",
        "pattern": "^(?!custom$)[a-z][a-z0-9]{1,15}$",
        "description": "Id do jogo (`dayz`, `rust`...), no mesmo formato do Protocolo do conector. `custom` é reservado. String aberta: novos jogos são acrescentados com o tempo.",
        "examples": [
          "dayz"
        ]
      },
      "Id": {
        "type": "string",
        "pattern": "^[a-z]{2,5}_[0-9A-HJKMNP-TV-Z]{26}$",
        "description": "Identificador opaco: um prefixo de tipo mais um ULID (26 caracteres base32 de Crockford), por exemplo `srv_01JADXRHEM3E2MSH4DMDZSX9G8`. Os clientes não devem interpretá-lo.",
        "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": "Por que o backend rejeitou uma ação do manifesto (`manifestRejectionCode` do Protocolo do conector)."
      },
      "Money": {
        "type": "object",
        "properties": {
          "amountCents": {
            "type": "integer",
            "minimum": 0,
            "format": "int64",
            "description": "Valor em unidades menores da moeda (centavos)."
          },
          "currency": {
            "$ref": "#/components/schemas/CurrencyCode"
          }
        },
        "required": [
          "amountCents",
          "currency"
        ],
        "additionalProperties": false,
        "description": "Valor em unidades menores inteiras (centavos) mais a moeda. Nunca um float. Valores em moedas diferentes nunca são somados nem convertidos.",
        "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": "Motivo estável de um status final diferente de `completed` (mesmos nomes do Protocolo do conector). `expired` sempre tem `ORDER_EXPIRED`; o que a ordem esperava está em `expiredWhileWaitingFor`. Os clientes devem tratar um valor desconhecido com um comportamento genérico.",
        "examples": [
          "ORDER_EXPIRED"
        ]
      },
      "OrganizationSlug": {
        "type": "string",
        "pattern": "^[a-z0-9](?:[a-z0-9-]{0,38}[a-z0-9])?$",
        "description": "Nome da organização seguro para URL. Nunca muda depois de criado.",
        "examples": [
          "acme-servers"
        ]
      },
      "PageCursor": {
        "anyOf": [
          {
            "type": "string",
            "maxLength": 512
          },
          {
            "type": "null"
          }
        ],
        "description": "Cursor opaco da próxima página. `null` = não há mais itens.",
        "examples": [
          "eyJpZCI6Im9yZF8wMUpDREQ3In0"
        ]
      },
      "ParamValue": {
        "oneOf": [
          {
            "type": "number"
          },
          {
            "type": "boolean"
          },
          {
            "$ref": "#/components/schemas/EnumValue"
          }
        ],
        "description": "Valor de um parâmetro de ação (número, booleano ou valor de enum, nunca texto livre)."
      },
      "ParamValues": {
        "type": "object",
        "propertyNames": {
          "type": "string",
          "pattern": "^[a-z][a-z0-9_]{0,31}$"
        },
        "additionalProperties": {
          "$ref": "#/components/schemas/ParamValue"
        },
        "description": "Valores dos parâmetros por `key` (por exemplo `{ \"count\": 3, \"radius\": 25 }`).",
        "maxProperties": 8,
        "examples": [
          {
            "count": 3,
            "radius": 25
          }
        ]
      },
      "Problem": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "format": "uri-reference",
            "description": "URI que identifica o tipo do problema (por exemplo `https://dropsz.gg/docs/errors/price-below-minimum`)."
          },
          "title": {
            "type": "string",
            "description": "Resumo curto, em inglês, para quem opera a integração."
          },
          "status": {
            "type": "integer",
            "minimum": 400,
            "maximum": 599
          },
          "code": {
            "$ref": "#/components/schemas/ErrorCode"
          },
          "detail": {
            "type": "string",
            "description": "Detalhe para quem opera a integração. Nunca contém segredos nem dados pessoais."
          },
          "instance": {
            "type": "string",
            "format": "uri-reference",
            "description": "Identificador desta ocorrência (por exemplo o id da requisição, útil para o suporte)."
          },
          "errors": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "path": {
                  "type": "string",
                  "description": "JSON Pointer para o campo (por exemplo `/price/amountCents`)."
                },
                "code": {
                  "$ref": "#/components/schemas/ErrorCode"
                }
              },
              "required": [
                "path",
                "code"
              ],
              "additionalProperties": false
            },
            "description": "Erros por campo (validação)."
          }
        },
        "required": [
          "type",
          "title",
          "status",
          "code"
        ],
        "description": "Erro no formato da RFC 9457 (`application/problem+json`). Decida o que fazer a partir de `code`; `title` e `detail` servem para logs e podem mudar sem aviso.",
        "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": "Instante em UTC com precisão de milissegundo (`2026-10-16T12:00:00.000Z`). O relógio do servidor é a referência de toda janela de tempo.",
        "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": "Status da ordem. `paid`: pagamento confirmado, verificações em andamento. `queued`: ordem criada, esperando a vez (veja `waitingReason`). `delivered`: o conector a buscou. `running`: em execução. `rejected`: bloqueada antes de executar (backend ou conector). `canceled`: paga e cancelada antes de executar."
      },
      "WaitingReason": {
        "type": "string",
        "enum": [
          "COOLDOWN_ACTIVE",
          "QUEUE_PAUSED",
          "PLATFORM_PAUSED",
          "CONNECTOR_OFFLINE",
          "TARGET_OFFLINE",
          "TARGET_UNAVAILABLE"
        ],
        "x-extensible-enum": true,
        "description": "Por que uma ordem `queued` ainda não foi entregue. Enquanto espera, o tempo de vida dela continua correndo; depois de `expiresAt` ela vira `expired` com `ORDER_EXPIRED`."
      }
    }
  }
}
