{
  "openapi": "3.1.0",
  "info": {
    "title": "API pública de DROPSZ",
    "version": "1.0.0-alpha.6",
    "summary": "Acceso de solo lectura a los datos de tu organización con una clave de API.",
    "description": "API pública de DROPSZ: lee los servidores y las órdenes de tu organización con una clave de API. Autentícate con `Authorization: Bearer dz_live_<publicId8>_<secret43>`. Los errores usan `application/problem+json` (RFC 9457) con un `code` estable."
  },
  "servers": [
    {
      "url": "https://sandbox-api.dropsz.gg/v1",
      "description": "Preproducción (sandbox)"
    },
    {
      "url": "https://api.dropsz.gg/v1",
      "description": "Producción"
    }
  ],
  "security": [
    {
      "organizationApiKey": []
    }
  ],
  "tags": [
    {
      "name": "Developer",
      "description": "Lee los servidores y las órdenes de tu organización con una clave de API (`/developer/*`)."
    }
  ],
  "paths": {
    "/developer/orders": {
      "get": {
        "tags": [
          "Developer"
        ],
        "operationId": "listDeveloperOrders",
        "summary": "Listar las órdenes de los servidores que la clave de API puede ver",
        "description": "Órdenes enviadas a los servidores que la clave puede ver. En orden ascendente por última modificación y luego por `id`: un cliente que guarda el último `updatedAt` y vuelve a llamar con `updatedSince` nunca pierde un cambio. Nunca devuelve nombres ni mensajes de espectadores. Una clave que ve más de 100 servidores debe enviar `serverId` (400 `SERVER_FILTER_REQUIRED`). Requiere el alcance `orders_read`.",
        "x-dropsz-api-scopes": [
          "orders_read"
        ],
        "security": [
          {
            "organizationApiKey": []
          }
        ],
        "parameters": [
          {
            "name": "serverId",
            "in": "query",
            "required": false,
            "description": "Solo las órdenes de este servidor. Un servidor que la clave no puede ver devuelve una página vacía. Obligatorio cuando la clave ve más de 100 servidores (sin él, 400 `SERVER_FILTER_REQUIRED`).",
            "schema": {
              "$ref": "#/components/schemas/Id"
            }
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "description": "Solo las órdenes en uno de estos estados. Repite el parámetro para indicar más de uno (`status=queued&status=running`).",
            "schema": {
              "minItems": 1,
              "maxItems": 11,
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ViewerOrderStatus"
              }
            }
          },
          {
            "name": "actionKey",
            "in": "query",
            "required": false,
            "description": "Solo las órdenes de esta acción.",
            "schema": {
              "$ref": "#/components/schemas/ActionKey"
            }
          },
          {
            "name": "isTest",
            "in": "query",
            "required": false,
            "description": "Solo órdenes de prueba (`true`) o solo órdenes reales (`false`).",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "createdFrom",
            "in": "query",
            "required": false,
            "description": "Solo las órdenes creadas en este instante o después (inclusive).",
            "schema": {
              "$ref": "#/components/schemas/Timestamp"
            }
          },
          {
            "name": "createdTo",
            "in": "query",
            "required": false,
            "description": "Solo las órdenes creadas antes de este instante (exclusivo). No puede ser anterior a `createdFrom`.",
            "schema": {
              "$ref": "#/components/schemas/Timestamp"
            }
          },
          {
            "name": "updatedSince",
            "in": "query",
            "required": false,
            "description": "Solo las órdenes modificadas en este instante o después (inclusive). Úsalo para sincronizar de forma incremental.",
            "schema": {
              "$ref": "#/components/schemas/Timestamp"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "Cursor opaco devuelto como `nextCursor` por la página anterior. Envía los mismos filtros que esa página.",
            "schema": {
              "type": "string",
              "maxLength": 512
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Elementos por página (de 1 a 100).",
            "schema": {
              "default": 50,
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Una página de órdenes.",
            "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": "Obtener una orden",
        "description": "Una orden de un servidor que la clave puede ver, con el `result` informado por el juego al completarse. Una orden de otra organización o de un servidor fuera de la clave devuelve 404. Requiere el alcance `orders_read`.",
        "x-dropsz-api-scopes": [
          "orders_read"
        ],
        "security": [
          {
            "organizationApiKey": []
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/OrderIdPath"
          }
        ],
        "responses": {
          "200": {
            "description": "La orden.",
            "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 la clave de API que hizo la llamada (organización, alcances y servidores efectivos)",
        "description": "`Authorization: Bearer dz_live_<publicId8>_<secret43>`. Una clave que no existe, fue revocada, venció, es de otro entorno o es incorrecta devuelve el MISMO 401 `API_KEY_INVALID`. No requiere alcance. Hay un límite de solicitudes por clave y por organización (429 con `Retry-After`).",
        "security": [
          {
            "organizationApiKey": []
          }
        ],
        "responses": {
          "200": {
            "description": "La clave y lo que puede ver ahora.",
            "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 los servidores que la clave de API puede ver",
        "description": "Servidores de la organización que la clave puede ver: los servidores elegidos para la clave (o todos) que no están archivados. En orden ascendente por última modificación y luego por `id`. Requiere el alcance `servers_read`.",
        "x-dropsz-api-scopes": [
          "servers_read"
        ],
        "security": [
          {
            "organizationApiKey": []
          }
        ],
        "parameters": [
          {
            "name": "gameId",
            "in": "query",
            "required": false,
            "description": "Solo los servidores de este juego.",
            "schema": {
              "$ref": "#/components/schemas/GameId"
            }
          },
          {
            "name": "mode",
            "in": "query",
            "required": false,
            "description": "Solo los servidores en este modo de conector.",
            "schema": {
              "$ref": "#/components/schemas/ConnectorMode"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "Cursor opaco devuelto como `nextCursor` por la página anterior. Envía los mismos filtros que esa página.",
            "schema": {
              "type": "string",
              "maxLength": 512
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Elementos por página (de 1 a 100).",
            "schema": {
              "default": 50,
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Una 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": "Obtener un servidor",
        "description": "Un servidor que la clave puede ver, con el estado de su conector y el número de jugadores en línea. Un servidor de otra organización, fuera de los servidores de la clave o archivado devuelve 404. Requiere el alcance `servers_read`.",
        "x-dropsz-api-scopes": [
          "servers_read"
        ],
        "security": [
          {
            "organizationApiKey": []
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/ServerIdPath"
          }
        ],
        "responses": {
          "200": {
            "description": "El 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": "Obtener el último manifiesto del conector de un servidor",
        "description": "El último manifiesto enviado por el conector activo del servidor, tal como lo respondió el backend: acciones aceptadas y acciones rechazadas con el motivo. Útil para depurar un mod. Sin conector o sin manifiesto todavía: hashes y fechas `null` y listas vacías. Requiere el alcance `servers_read`.",
        "x-dropsz-api-scopes": [
          "servers_read"
        ],
        "security": [
          {
            "organizationApiKey": []
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/ServerIdPath"
          }
        ],
        "responses": {
          "200": {
            "description": "El último manifiesto.",
            "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": "Clave de API de la organización, enviada como `Authorization: Bearer dz_live_<publicId>_<secret>` (existen claves `dz_test_` fuera de producción). El secreto se muestra una sola vez, al crear la clave. Una clave tiene una lista cerrada de alcances (hoy `servers_read` y `orders_read`), una lista opcional de servidores que puede ver, una caducidad opcional y un límite de solicitudes por minuto. Una clave que no existe, fue revocada, venció, es de otro entorno o es incorrecta recibe el mismo 401 `API_KEY_INVALID`; la falta de alcance recibe 403 `API_KEY_SCOPE_INSUFFICIENT`. No intervienen cookies ni 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": "La solicitud no es válida: un parámetro tiene el formato incorrecto, un rango de fechas está invertido o el cursor no es válido (`VALIDATION_FAILED`, con `errors`).",
        "content": {
          "application/problem+json": {
            "schema": {
              "$ref": "#/components/schemas/Problem"
            }
          }
        }
      },
      "Forbidden": {
        "description": "La clave de API es válida, pero no puede hacer esto: le falta un alcance necesario (`API_KEY_SCOPE_INSUFFICIENT`) o el recurso no está disponible para ella.",
        "content": {
          "application/problem+json": {
            "schema": {
              "$ref": "#/components/schemas/Problem"
            }
          }
        }
      },
      "NotFound": {
        "description": "El recurso no existe o la clave de API no puede verlo (otra organización, un servidor fuera de la clave o un servidor archivado). Ambos casos reciben la misma respuesta.",
        "content": {
          "application/problem+json": {
            "schema": {
              "$ref": "#/components/schemas/Problem"
            }
          }
        }
      },
      "NotImplemented": {
        "description": "La operación forma parte del contrato, pero todavía no está disponible (`NOT_IMPLEMENTED`).",
        "content": {
          "application/problem+json": {
            "schema": {
              "$ref": "#/components/schemas/Problem"
            }
          }
        }
      },
      "TooManyRequests": {
        "description": "Se superó el límite de solicitudes de esta clave de API o de su organización (`RATE_LIMITED`). Espera `Retry-After` segundos antes de volver a intentarlo.",
        "headers": {
          "Retry-After": {
            "description": "Segundos de espera antes de volver a intentarlo.",
            "schema": {
              "type": "integer",
              "minimum": 1
            }
          }
        },
        "content": {
          "application/problem+json": {
            "schema": {
              "$ref": "#/components/schemas/Problem"
            }
          }
        }
      },
      "Unauthorized": {
        "description": "La clave de API falta, está mal formada, es desconocida, fue revocada, venció o es de otro entorno (`API_KEY_INVALID`). La respuesta es la misma en todos los 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": "Clave de la acción, con el mismo formato del Protocolo del conector. Acción oficial: `<gameId>.<name>` (por ejemplo `dayz.break_leg`). Acción propia: `custom.<organizationSlug>.<name>`.",
        "examples": [
          "dayz.break_leg"
        ]
      },
      "ApiKeyScope": {
        "type": "string",
        "enum": [
          "custom_actions_read",
          "custom_actions_write",
          "orders_read",
          "servers_read"
        ],
        "description": "Alcance de una clave de API (lista cerrada). Hoy solo se pueden conceder `servers_read` y `orders_read`; los alcances `custom_actions_*` están reservados y se rechazan con `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": "Alcances concedidos a la clave."
          },
          "serverIds": {
            "anyOf": [
              {
                "minItems": 1,
                "maxItems": 100,
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/Id"
                }
              },
              {
                "type": "null"
              }
            ],
            "uniqueItems": true,
            "description": "Servidores elegidos al crear la clave (`null` = todos los servidores de la organización)."
          },
          "effectiveServers": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "$ref": "#/components/schemas/Id"
                },
                "name": {
                  "type": "string"
                }
              },
              "required": [
                "id",
                "name"
              ]
            },
            "description": "Servidores que la clave puede ver ahora: los elegidos que no están archivados. Vacío = ninguno."
          }
        },
        "required": [
          "organization",
          "apiKey",
          "scopes",
          "serverIds",
          "effectiveServers"
        ],
        "description": "La clave de API que hizo la llamada (`GET /developer/self`): su organización, la propia clave, sus alcances y los servidores que puede ver.",
        "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 del conector del servidor. `disabled`: no recibe órdenes. `sandbox`: solo órdenes de prueba (sin dinero real). `enabled`: producción. `emergency_pause`: todo detenido; las órdenes pagadas que aún no se ejecutaron se cancelan al instante."
      },
      "CurrencyCode": {
        "type": "string",
        "pattern": "^[A-Z]{3}$",
        "description": "Código de moneda ISO 4217 (por ejemplo `BRL`, `USD`). Abierto a propósito: los importes en monedas distintas nunca se suman ni se convierten.",
        "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": "Una acción aceptada en el último manifiesto, tal como el backend respondió al 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": "Una acción rechazada en el último manifiesto, con el 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 de la transmisión (los datos de la página pública). `null` para una orden de prueba iniciada desde el panel."
          },
          "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 del reparto que va a la organización dueña del servidor. `null` mientras no hay reparto (orden aún sin pagar u orden de prueba del panel)."
          },
          "result": {
            "anyOf": [
              {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              {
                "type": "null"
              }
            ],
            "description": "El objeto `result` de la confirmación final `completed`, tal como el backend lo guardó (`-0` pasa a `0`). Dato declarado por el mod, nunca verificado: comprueba `resultStatus` antes de usarlo. Presente para `valid`, `invalid` y `undeclared`; `null` para `absent` y para cualquier estado distinto de `completed`."
          },
          "resultStatus": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "valid",
                  "invalid",
                  "undeclared",
                  "absent"
                ]
              },
              {
                "type": "null"
              }
            ],
            "x-extensible-enum": true,
            "description": "Clasificación de `result` frente a la copia del `resultSchema` fijada en la orden en su primera entrega (protocolo 1.4): `valid` coincide, `invalid` no coincide, `undeclared` = acción sin `resultSchema` que envió un `result`, `absent` = sin `resultSchema` y sin `result`. Se escribe una sola vez, en la confirmación `completed`; `null` en cualquier otro estado. Nunca afecta al dinero ni al estado de la orden."
          },
          "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": "Una orden enviada a un servidor de la organización, tal como la ve una clave de API. Nunca contiene el nombre ni el mensaje del espectador, quién pagó, el medio de pago, el crédito usado ni las otras partes del reparto."
      },
      "DeveloperOrderList": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DeveloperOrder"
            }
          },
          "nextCursor": {
            "$ref": "#/components/schemas/PageCursor"
          }
        },
        "required": [
          "items",
          "nextCursor"
        ],
        "additionalProperties": false,
        "description": "Una página de órdenes, en orden estable ascendente 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": "Hasta cuándo el servidor tiene el nivel `pro` (`null` para `free`). Solo informativo."
              }
            },
            "required": [
              "tier",
              "proUntil"
            ],
            "additionalProperties": false
          },
          "connector": {
            "type": "object",
            "properties": {
              "online": {
                "type": "boolean",
                "description": "El conector del vínculo activo envió un heartbeat recientemente."
              },
              "lastSeenAt": {
                "anyOf": [
                  {
                    "$ref": "#/components/schemas/Timestamp"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "protocolVersion": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 64
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "Versión del Protocolo del conector de la sesión más reciente del vínculo activo."
              },
              "connectorVersion": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 64
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "Versión del conector (mod o plugin) informada por el vínculo activo."
              }
            },
            "required": [
              "online",
              "lastSeenAt",
              "protocolVersion",
              "connectorVersion"
            ],
            "additionalProperties": false
          },
          "playersOnlineCount": {
            "type": "integer",
            "minimum": 0,
            "description": "Jugadores en línea en el último heartbeat (solo el número, nunca la lista)."
          }
        },
        "required": [
          "id",
          "name",
          "gameId",
          "mode",
          "plan",
          "connector",
          "playersOnlineCount"
        ],
        "additionalProperties": false,
        "description": "Un servidor de la organización, tal como lo ve una clave de API. Nunca contiene la lista de jugadores del heartbeat ni credenciales o sesiones del conector."
      },
      "DeveloperServerList": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DeveloperServer"
            }
          },
          "nextCursor": {
            "$ref": "#/components/schemas/PageCursor"
          }
        },
        "required": [
          "items",
          "nextCursor"
        ],
        "additionalProperties": false,
        "description": "Una página de servidores, en orden estable ascendente por (última modificación, `id`)."
      },
      "DeveloperServerManifest": {
        "type": "object",
        "properties": {
          "serverId": {
            "$ref": "#/components/schemas/Id"
          },
          "manifestHash": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 80
              },
              {
                "type": "null"
              }
            ],
            "description": "Hash del último manifiesto (`sha256:<hex>`); `null` cuando no se recibió ningún manifiesto."
          },
          "configHash": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 80
              },
              {
                "type": "null"
              }
            ]
          },
          "receivedAt": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Timestamp"
              },
              {
                "type": "null"
              }
            ],
            "description": "Cuándo guardó el backend este resultado: la última vez que cambiaron las acciones aceptadas, las acciones rechazadas o `enabledByPlan`."
          },
          "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": "El último manifiesto del vínculo activo del conector del servidor (el `manifest-response`): acciones aceptadas y acciones rechazadas con el motivo. Una herramienta de depuración para quien escribe el mod. Sin vínculo o sin manifiesto todavía: hashes y fechas `null` y listas vacías."
      },
      "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 y estable de los códigos de error devueltos en el campo `code` de una respuesta de problema. Añadir un código es compatible: los clientes deben tratar un código desconocido con un comportamiento genérico. Un código nunca se renombra ni se reutiliza con otro significado. Algunos códigos pertenecen a otras partes de la plataforma y nunca se devuelven a una clave de API.",
        "examples": [
          "ORDER_EXPIRED"
        ]
      },
      "GameId": {
        "type": "string",
        "pattern": "^(?!custom$)[a-z][a-z0-9]{1,15}$",
        "description": "Id del juego (`dayz`, `rust`...), con el mismo formato del Protocolo del conector. `custom` está reservado. Cadena abierta: se añaden juegos nuevos con el tiempo.",
        "examples": [
          "dayz"
        ]
      },
      "Id": {
        "type": "string",
        "pattern": "^[a-z]{2,5}_[0-9A-HJKMNP-TV-Z]{26}$",
        "description": "Identificador opaco: un prefijo de tipo más un ULID (26 caracteres base32 de Crockford), por ejemplo `srv_01JADXRHEM3E2MSH4DMDZSX9G8`. Los clientes no deben interpretarlo.",
        "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 qué el backend rechazó una acción del manifiesto (`manifestRejectionCode` del Protocolo del conector)."
      },
      "Money": {
        "type": "object",
        "properties": {
          "amountCents": {
            "type": "integer",
            "minimum": 0,
            "format": "int64",
            "description": "Importe en unidades menores de la moneda (centavos)."
          },
          "currency": {
            "$ref": "#/components/schemas/CurrencyCode"
          }
        },
        "required": [
          "amountCents",
          "currency"
        ],
        "additionalProperties": false,
        "description": "Importe en unidades menores enteras (centavos) más la moneda. Nunca un float. Los importes en monedas distintas nunca se suman ni se convierten.",
        "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 estable de un estado final distinto de `completed` (mismos nombres del Protocolo del conector). `expired` siempre tiene `ORDER_EXPIRED`; lo que esperaba la orden está en `expiredWhileWaitingFor`. Los clientes deben tratar un valor desconocido con un comportamiento genérico.",
        "examples": [
          "ORDER_EXPIRED"
        ]
      },
      "OrganizationSlug": {
        "type": "string",
        "pattern": "^[a-z0-9](?:[a-z0-9-]{0,38}[a-z0-9])?$",
        "description": "Nombre de la organización seguro para URL. Nunca cambia después de crearse.",
        "examples": [
          "acme-servers"
        ]
      },
      "PageCursor": {
        "anyOf": [
          {
            "type": "string",
            "maxLength": 512
          },
          {
            "type": "null"
          }
        ],
        "description": "Cursor opaco de la página siguiente. `null` = no hay más elementos.",
        "examples": [
          "eyJpZCI6Im9yZF8wMUpDREQ3In0"
        ]
      },
      "ParamValue": {
        "oneOf": [
          {
            "type": "number"
          },
          {
            "type": "boolean"
          },
          {
            "$ref": "#/components/schemas/EnumValue"
          }
        ],
        "description": "Valor de un parámetro de acción (número, booleano o valor de enum, nunca texto libre)."
      },
      "ParamValues": {
        "type": "object",
        "propertyNames": {
          "type": "string",
          "pattern": "^[a-z][a-z0-9_]{0,31}$"
        },
        "additionalProperties": {
          "$ref": "#/components/schemas/ParamValue"
        },
        "description": "Valores de los parámetros por `key` (por ejemplo `{ \"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 el tipo de problema (por ejemplo `https://dropsz.gg/docs/errors/price-below-minimum`)."
          },
          "title": {
            "type": "string",
            "description": "Resumen corto, en inglés, para quien opera la integración."
          },
          "status": {
            "type": "integer",
            "minimum": 400,
            "maximum": 599
          },
          "code": {
            "$ref": "#/components/schemas/ErrorCode"
          },
          "detail": {
            "type": "string",
            "description": "Detalle para quien opera la integración. Nunca contiene secretos ni datos personales."
          },
          "instance": {
            "type": "string",
            "format": "uri-reference",
            "description": "Identificador de esta ocurrencia (por ejemplo el id de la solicitud, útil para el soporte)."
          },
          "errors": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "path": {
                  "type": "string",
                  "description": "JSON Pointer al campo (por ejemplo `/price/amountCents`)."
                },
                "code": {
                  "$ref": "#/components/schemas/ErrorCode"
                }
              },
              "required": [
                "path",
                "code"
              ],
              "additionalProperties": false
            },
            "description": "Errores por campo (validación)."
          }
        },
        "required": [
          "type",
          "title",
          "status",
          "code"
        ],
        "description": "Error en el formato de la RFC 9457 (`application/problem+json`). Decide qué hacer a partir de `code`; `title` y `detail` sirven para los logs y pueden cambiar sin 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 en UTC con precisión de milisegundo (`2026-10-16T12:00:00.000Z`). El reloj del servidor es la referencia de toda ventana de tiempo.",
        "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": "Estado de la orden. `paid`: pago confirmado, comprobaciones en curso. `queued`: orden creada, esperando su turno (ver `waitingReason`). `delivered`: el conector la recogió. `running`: en ejecución. `rejected`: bloqueada antes de ejecutarse (backend o conector). `canceled`: pagada y cancelada antes de ejecutarse."
      },
      "WaitingReason": {
        "type": "string",
        "enum": [
          "COOLDOWN_ACTIVE",
          "QUEUE_PAUSED",
          "PLATFORM_PAUSED",
          "CONNECTOR_OFFLINE",
          "TARGET_OFFLINE",
          "TARGET_UNAVAILABLE"
        ],
        "x-extensible-enum": true,
        "description": "Por qué una orden `queued` aún no se entregó. Mientras espera, su tiempo de vida sigue corriendo; después de `expiresAt` pasa a `expired` con `ORDER_EXPIRED`."
      }
    }
  }
}
