Jornadas
J-01 Descoberta e demanda do comprador
- Entrar e completar perfil fictício
- Buscar em qualquer tela autenticada
- Ver resultados exatos ou até três alternativas identificadas
- Abrir ficha e perfil comercial contextual do vendedor
- Favoritar, salvar busca ou comparar atributos objetivos
- Enviar pedido privado consentido de captação quando necessário
Descoberta e captação não criam ordem real.
J-02 Jornada compartilhada do comprador
- Admin cria caso com cinco papéis distintos designados
- Vendedor envia oferta fictícia com quantidade, preço e consentimento de simulação
- Comprador preenche mandato com país e faixa de ticket
- Compliance realiza análise simulada explícita da oferta e do comprador
- Vendedor publica a oferta aprovada com análise vigente
- Comprador confere condições publicadas e envia proposta válida
- Vendedor contrapropõe ou aceita; ambos aprovam a mesma versão da cotação
- Rails fornece instruções; comprador e vendedor confirmam exatamente a versão atual
- Rails inicia explicitamente a liquidação e congela as instruções confirmadas
- Rails registra evidências simuladas separadas de caixa e entrega
- Auditor concilia após as duas pernas; pendências exigem resolução independente e depois a continuidade do fluxo restante
O catálogo não cria compra real de autoatendimento; o caso compartilhado exige coordenação administrativa.
J-03 Jornada do titular vendedor
- Entrar com papel holder e completar perfil fictício
- Conferir posição externa fictícia atribuída e restrições de transferência
- Enviar quantidade, preço, opção de agente e custos desconhecidos
- Aguardar compliance simulado e publicar oferta aprovada
- Receber proposta válida antes de ver dados comerciais do comprador
- Negociar e aceitar a mesma versão da proposta
- Conferir destino, direitos, rede, quantidade e valores congelados
- Confirmar instruções e acompanhar as duas pernas simuladas
Emissão primária e cadastro de novos ativos por autoatendimento continuam em especificação separada, não neste runtime de revenda.
J-04 Administração e revisão operacional
- Preparar admin local e usar contas por convite
- Convidar papéis fixos, revogar/redefinir sem expor credenciais
- Criar casos com cinco contas participantes ativas distintas
- Acompanhar casos novos, pendências, atividade e métricas simuladas
- Pausar caso ou globalmente; arquivar com motivo
- Analisar pedidos privados sem publicar cadastros
- Distinguir exportação filtrada de auditoria interna completa
- Fazer backup e validar restauração offline em armazenamento isolado
Admin não executa comandos dos participantes nem lê ensaio individual ou ferramentas de descoberta de outra conta.
J-05 Ensaio individual
- Escolher comprador ou vendedor fictício e cenário
- Aceitar explicitamente o limite de simulação
- Interagir com contrapartes automatizadas determinísticas identificadas
- Gerar recusa, documento faltante, inelegibilidade, vencimento ou divergência
- Aplicar recuperação do cenário ou abandonar
- Exportar feedback de processo privado, separado das métricas compartilhadas
Ações de bots e tempo sintético não comprovam demanda real. Prazos comerciais continuam usando o relógio real.
Catálogo de telas
SCR-SHELL · /?lang=<lang>#<authenticated-route>
{
"id": "SCR-SHELL",
"route": "/?lang=<lang>#<authenticated-route>",
"roles": [
"admin",
"holder",
"buyer",
"compliance",
"rails",
"auditor"
],
"states": [
"authenticated",
"session-expired",
"update-available",
"global-pause"
],
"actions": [
"navigate catalog/deals/utilities",
"global text/voice search",
"change language",
"open comparison dock",
"sign out"
],
"errorCases": [
"401 clears account state",
"network timeout",
"unsaved-change confirmation",
"stale search-return scope"
],
"source": [
"public/app.js:254",
"public/app.js:302",
"public/app.js:335",
"public/app.js:527",
"public/global-search-ui.js:3"
]
}SCR-LOGIN · /?lang=<lang>
{
"id": "SCR-LOGIN",
"route": "/?lang=<lang>",
"roles": [
"admin",
"holder",
"buyer",
"compliance",
"rails",
"auditor"
],
"states": [
"anonymous",
"login-pending",
"login-error",
"file-protocol notice"
],
"actions": [
"enter alias/password",
"submit login",
"change language"
],
"errorCases": [
"credentials",
"rateLimited",
"networkError"
],
"source": [
"public/app.js:183",
"public/app.js:266",
"public/app.js:368",
"server/auth.cjs:77"
]
}SCR-ACTIVATE · /?lang=<lang>#invite=<token> -> #activate
{
"id": "SCR-ACTIVATE",
"route": "/?lang=<lang>#invite=<token> -> #activate",
"roles": [
"admin",
"holder",
"buyer",
"compliance",
"rails",
"auditor"
],
"states": [
"invite-loading",
"join-invitation",
"reset-invitation",
"invalid-invitation"
],
"actions": [
"inspect assigned alias/role/organization",
"set password",
"confirm consent",
"activate/reset"
],
"errorCases": [
"inviteInvalid",
"consentRequired",
"invalid password",
"bootstrapClosed"
],
"source": [
"public/app.js:183",
"public/app.js:369",
"public/app.js:521",
"server/auth.cjs:54"
]
}SCR-CATALOG · #catalog
{
"id": "SCR-CATALOG",
"route": "#catalog",
"roles": [
"admin",
"holder",
"buyer",
"compliance",
"rails",
"auditor"
],
"states": [
"featured",
"exact-results",
"no-exact-results",
"related-suggestions",
"exploration-up-to-three",
"favorites-only",
"sourcing-draft",
"request-saved",
"request-history"
],
"actions": [
"search text/voice",
"filter market/category/benefit",
"toggle quick category",
"sort",
"clear filter/reset",
"favorite",
"select comparison",
"save/apply search",
"open offer",
"submit/withdraw own asset request"
],
"errorCases": [
"voice unavailable/denied/cancelled",
"unsupported query currency",
"empty favorites",
"metadata conflict",
"sourcing validation",
"requestLimit",
"paused"
],
"source": [
"public/app.js:268",
"public/catalog-ui.js:9",
"public/sourcing-ui.js:16",
"public/search.js:48"
]
}SCR-OFFER · #offer=<DEMO-OFFER-id>
{
"id": "SCR-OFFER",
"route": "#offer=<DEMO-OFFER-id>",
"roles": [
"admin",
"holder",
"buyer",
"compliance",
"rails",
"auditor"
],
"states": [
"projected-read-only-example",
"contextual-seller-visible",
"seller-withheld",
"artifact-generated",
"artifact-pending",
"deadline-closed"
],
"actions": [
"expand facts/documents/reference-flow",
"favorite",
"select comparison",
"copy public offer reference",
"export JSON/HTML",
"start private purchase/sale",
"open scenario selector",
"admin create shared case"
],
"errorCases": [
"missing offer",
"clipboard unavailable",
"offerWindowClosed",
"paused rehearsal creation"
],
"source": [
"public/catalog-ui.js:40",
"public/app.js:455",
"public/app.js:470",
"public/app.js:486",
"server/privacy.cjs:49"
]
}SCR-DISCOVERY-SAVE · modal: save search on #catalog
{
"id": "SCR-DISCOVERY-SAVE",
"route": "modal: save search on #catalog",
"roles": [
"admin",
"holder",
"buyer",
"compliance",
"rails",
"auditor"
],
"states": [
"open",
"name-focused",
"validation-error",
"saving"
],
"actions": [
"edit search name",
"save criteria",
"close/Escape"
],
"errorCases": [
"empty or overlong name",
"ten-search limit",
"metadata version conflict",
"networkError"
],
"source": [
"public/app.js:225",
"public/app.js:340",
"public/discovery-tools.js:37",
"public/app.js:513"
]
}SCR-DISCOVERY-SAVED · modal: saved searches on authenticated route
{
"id": "SCR-DISCOVERY-SAVED",
"route": "modal: saved searches on authenticated route",
"roles": [
"admin",
"holder",
"buyer",
"compliance",
"rails",
"auditor"
],
"states": [
"empty",
"saved-list",
"delete-confirmation",
"write-error"
],
"actions": [
"apply search",
"confirm delete",
"close/Escape"
],
"errorCases": [
"metadata version conflict",
"cancelled delete",
"networkError"
],
"source": [
"public/discovery-tools.js:40",
"public/app.js:240",
"public/app.js:443",
"public/app.js:513"
]
}SCR-DISCOVERY-COMPARE · modal: compare from authenticated dock
{
"id": "SCR-DISCOVERY-COMPARE",
"route": "modal: compare from authenticated dock",
"roles": [
"admin",
"holder",
"buyer",
"compliance",
"rails",
"auditor"
],
"states": [
"one-selected dock disabled",
"two-selected",
"three-selected",
"fourth-add disabled",
"under-two modal closed"
],
"actions": [
"compare objective fields",
"open offer",
"remove selection",
"clear dock",
"close/Escape"
],
"errorCases": [
"minimum two selections",
"maximum three selections",
"unknown offer ignored"
],
"source": [
"public/discovery-tools.js:29",
"public/discovery-tools.js:43",
"public/app.js:225",
"public/app.js:432",
"public/app.js:513"
]
}SCR-PROFILE · #profile
{
"id": "SCR-PROFILE",
"route": "#profile",
"roles": [
"admin",
"holder",
"buyer",
"compliance",
"rails",
"auditor"
],
"states": [
"incomplete",
"completed",
"unsaved-draft",
"saved"
],
"actions": [
"set country/qualification/categories",
"edit history/referrals",
"toggle reference sharing",
"set channel preferences",
"confirm fictional-data consent",
"save profile",
"change password"
],
"errorCases": [
"consentRequired",
"invalid fields",
"version conflict",
"current-password credentials error"
],
"source": [
"public/app.js:191",
"public/app.js:370",
"server/service.cjs:21",
"server/auth.cjs:88"
]
}SCR-OPERATIONS · #operations
{
"id": "SCR-OPERATIONS",
"route": "#operations",
"roles": [
"admin",
"holder",
"buyer",
"compliance",
"rails",
"auditor"
],
"states": [
"empty",
"accessible-case-list",
"filtered",
"paused/archived indicators"
],
"actions": [
"filter title/ID/asset text",
"filter status/category",
"open case",
"reload"
],
"errorCases": [
"401 session expired",
"networkError",
"case integrity failure"
],
"source": [
"public/app.js:187",
"public/app.js:332",
"server/service.cjs:37",
"server/service.cjs:57"
]
}SCR-CASE · #case=<PILOT-id>
{
"id": "SCR-CASE",
"route": "#case=<PILOT-id>",
"roles": [
"admin",
"holder",
"buyer",
"compliance",
"rails",
"auditor"
],
"states": [
"not_started",
"review",
"approved",
"listed",
"negotiating",
"agreement",
"settlement",
"reconciled",
"rejected",
"cancelled",
"expired",
"issue-open",
"paused",
"archived",
"profile-pending",
"update-available"
],
"actions": [
"inspect journey/participants/economics",
"holder offer/publish/cancel",
"buyer mandate",
"compliance review/reject/close agreement",
"propose/accept/message",
"rails instructions/begin/cash/delivery",
"party acknowledge/sign",
"auditor reconcile",
"raise/resolve issue",
"private feedback",
"export report/audit/CSV",
"admin case controls",
"reload"
],
"errorCases": [
"missing membership",
"profilePending",
"forbidden role",
"conflict",
"quoteExpired",
"buyerIneligible",
"staleProof",
"offerWindowClosed",
"evidence mismatch/reuse",
"issueOpen",
"independence",
"paused/archived",
"corrupt/auditIntegrity"
],
"source": [
"public/app.js:97",
"public/app.js:133",
"public/app.js:153",
"public/app.js:202",
"public/app.js:283",
"server/service.cjs:77"
]
}SCR-ADMIN · #admin[&sourceOffer=<id>]
{
"id": "SCR-ADMIN",
"route": "#admin[&sourceOffer=<id>]",
"roles": [
"admin"
],
"states": [
"metrics-loaded",
"pending/used/revoked/expired invites",
"active/inactive accounts",
"profile complete/pending",
"private-link visible",
"backup-created",
"global-pause",
"asset-request overview"
],
"actions": [
"issue/copy/dismiss/revoke invitation",
"prefill fictional company",
"assign five case roles",
"create template/offer case",
"disable/enable account",
"generate reset link",
"set global pause with reason",
"create backup",
"inspect security events",
"inspect sourcing requests",
"reload"
],
"errorCases": [
"forbidden non-admin",
"aliasUnavailable",
"memberUnavailable",
"independence",
"template/offer mismatch",
"offerWindowClosed",
"invalid control reason",
"backupFailed/rateLimited"
],
"source": [
"public/app.js:195",
"public/app.js:196",
"public/app.js:209",
"public/app.js:328",
"server/service.cjs:63",
"server/service.cjs:120",
"server/app.cjs:124"
]
}SCR-NOTIFICATIONS · #notifications
{
"id": "SCR-NOTIFICATIONS",
"route": "#notifications",
"roles": [
"admin",
"holder",
"buyer",
"compliance",
"rails",
"auditor"
],
"states": [
"empty",
"unread",
"read"
],
"actions": [
"open linked case",
"mark own entry read",
"reload"
],
"errorCases": [
"missing foreign notification",
"401 session expired",
"networkError"
],
"source": [
"public/app.js:200",
"public/app.js:502",
"server/service.cjs:140"
]
}SCR-REHEARSALS · #rehearsals[&sourceOffer=<id>]
{
"id": "SCR-REHEARSALS",
"route": "#rehearsals[&sourceOffer=<id>]",
"roles": [
"admin",
"holder",
"buyer",
"compliance",
"rails",
"auditor"
],
"states": [
"empty",
"active-filter",
"complete-filter",
"all-filter",
"advanced-scenario-selector",
"expired options disabled"
],
"actions": [
"inspect progress counts",
"continue/view owned rehearsal",
"start new deal",
"select offer",
"choose simulated buyer/holder",
"choose scenario",
"create rehearsal"
],
"errorCases": [
"paused",
"rehearsalLimit",
"invalid role/scenario",
"missing offer",
"offerWindowClosed"
],
"source": [
"public/rehearsal-ui.js:68",
"public/rehearsal-ui.js:78",
"public/app.js:272",
"public/app.js:360",
"server/rehearsal.cjs:195"
]
}SCR-REHEARSAL · #rehearsal=<REHEARSAL-id>
{
"id": "SCR-REHEARSAL",
"route": "#rehearsal=<REHEARSAL-id>",
"roles": [
"admin",
"holder",
"buyer",
"compliance",
"rails",
"auditor"
],
"states": [
"offer",
"documents",
"eligibility",
"negotiation",
"agreement",
"settlement",
"mismatch",
"reconciliation",
"complete",
"abandoned",
"blocked-attempt"
],
"actions": [
"follow available action",
"propose/accept",
"acknowledge",
"restore documents",
"correct eligibility",
"renew quote",
"settle/resolve mismatch/reconcile",
"confirm abandonment",
"inspect activity/outcomes/counters",
"save feedback",
"export JSON/HTML"
],
"errorCases": [
"missing foreign session",
"consentRequired",
"invalid decimal/quantity/ticket",
"checklistRequired",
"buyerIneligible",
"quoteExpired",
"issueOpen",
"offerWindowClosed",
"conflict",
"paused",
"rehearsalLimit",
"corrupt"
],
"source": [
"public/rehearsal-ui.js:109",
"public/rehearsal-ui.js:212",
"public/app.js:361",
"server/rehearsal.cjs:58",
"server/rehearsal.cjs:125",
"server/rehearsal.cjs:201"
]
}SCR-HELP · #help
{
"id": "SCR-HELP",
"route": "#help",
"roles": [
"admin",
"holder",
"buyer",
"compliance",
"rails",
"auditor"
],
"states": [
"localized guide"
],
"actions": [
"read shared-pilot scope",
"read flow/negative exercises/measurement/limits",
"navigate through shell"
],
"errorCases": [
"401 session expired"
],
"source": [
"public/app.js:208",
"public/app.js:259",
"public/app.js:268"
]
}Contrato de estados e comandos
Para novos comandos compartilhados: papel fixo autenticado e vínculo ao caso, perfil completo, participantes designados ativos, ausência de pausa global/do caso ou arquivamento, versões exatas atuais e validação estrita do payload. Repetição bem-sucedida da mesma conta/chave/payload não é novo comando e não avança o estado; pode retornar a projeção atual antes de rever gates de pausa de novos comandos.
APIs
API GET/POST da mesma origem, com sessões por cookie. Todo POST verifica Origin e tamanho do JSON; POST autenticado exige também CSRF. O OpenAPI é uma referência de interface; a validação executável prevalece. URLs localhost no contrato baixável descrevem o piloto local, não uma publicação remota.
GET /api/discovery-tools · getOwnDiscoveryTools
Own account favorites and saved searches only, without an administrator override
Requisição
{
"parameters": [],
"requestBody": null,
"security": [
{
"HttpsCookie": []
},
{
"LocalCookie": []
}
]
}Respostas
{
"200": {
"description": "Own record; default version 0 has empty lists and updatedAt:null",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/DiscoveryTools"
}
}
}
},
"default": {
"$ref": "#/components/responses/Error"
}
}POST /api/discovery-tools · saveOwnDiscoveryTools
Strict version-checked own metadata update; stale version 409. Does not execute trades and remains available during financial pause.
Requisição
{
"parameters": [
{
"$ref": "#/components/parameters/Origin"
},
{
"$ref": "#/components/parameters/Csrf"
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/DiscoveryToolsInput"
}
}
}
},
"security": [
{
"HttpsCookie": []
},
{
"LocalCookie": []
}
]
}Respostas
{
"200": {
"description": "Full updated own record with incremented version",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/DiscoveryTools"
}
}
}
},
"default": {
"$ref": "#/components/responses/Error"
}
}GET /api/asset-requests · listOwnAssetRequests
Own private simulated sourcing briefs only, never a participant directory
Requisição
{
"parameters": [],
"requestBody": null,
"security": [
{
"HttpsCookie": []
},
{
"LocalCookie": []
}
]
}Respostas
{
"200": {
"description": "simulation:true and requests[]",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"simulation": {
"const": true
},
"requests": {
"type": "array",
"items": {
"$ref": "#/components/schemas/AssetRequest"
}
}
}
}
}
}
},
"default": {
"$ref": "#/components/responses/Error"
}
}POST /api/asset-requests · createAssetRequest
Buyer/holder/admin only; 50 records per owner including withdrawn; same-key retry replays, different payload returns 409; global pause blocks new requests
Requisição
{
"parameters": [
{
"$ref": "#/components/parameters/Origin"
},
{
"$ref": "#/components/parameters/Csrf"
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AssetRequestInput"
}
}
}
},
"security": [
{
"HttpsCookie": []
},
{
"LocalCookie": []
}
]
}Respostas
{
"201": {
"description": "Created or idempotently replayed record; replay adds replayed:true",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AssetRequestCreated"
}
}
}
},
"default": {
"$ref": "#/components/responses/Error"
}
}GET /api/asset-requests/{requestId} · getAssetRequest
Owner or internal administrator; other accounts receive 404
Requisição
{
"parameters": [],
"requestBody": null,
"security": [
{
"HttpsCookie": []
},
{
"LocalCookie": []
}
]
}Respostas
{
"200": {
"description": "Private sourcing record",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AssetRequest"
}
}
}
},
"default": {
"$ref": "#/components/responses/Error"
}
}POST /api/asset-requests/{requestId}/withdraw · withdrawAssetRequest
Owner/admin withdrawal; expectedVersion required, stale version 409; no deletion or deal mutation
Requisição
{
"parameters": [
{
"$ref": "#/components/parameters/Origin"
},
{
"$ref": "#/components/parameters/Csrf"
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"additionalProperties": false,
"required": [
"expectedVersion"
],
"properties": {
"expectedVersion": {
"type": "integer",
"minimum": 0
}
}
}
}
}
},
"security": [
{
"HttpsCookie": []
},
{
"LocalCookie": []
}
]
}Respostas
{
"200": {
"description": "Withdrawn record; current-version repeat is unchanged",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AssetRequest"
}
}
}
},
"default": {
"$ref": "#/components/responses/Error"
}
}GET /api/admin/asset-requests · listAdminAssetRequests
Internal administrator only; queue with internal ownerId; no external outreach or commercial commitment
Requisição
{
"parameters": [],
"requestBody": null,
"security": [
{
"HttpsCookie": []
},
{
"LocalCookie": []
}
]
}Respostas
{
"200": {
"description": "simulation:true and requests[]; each record includes ownerId",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"simulation": {
"const": true
},
"requests": {
"type": "array",
"items": {
"$ref": "#/components/schemas/AdminAssetRequest"
}
}
}
}
}
}
},
"default": {
"$ref": "#/components/responses/Error"
}
}GET /api/rehearsals · listPersonalRehearsals
List only the authenticated owner's isolated rehearsals; administrators have no override
Requisição
{
"parameters": [],
"requestBody": null,
"security": [
{
"HttpsCookie": []
},
{
"LocalCookie": []
}
]
}Respostas
{
"200": {
"description": "simulation:true, mode:individual-rehearsal, sessions[]"
},
"default": {
"$ref": "#/components/responses/Error"
}
}POST /api/rehearsals · startPersonalRehearsal
Create one fictional buyer/holder rehearsal without changing the account role or shared cases
Requisição
{
"parameters": [
{
"$ref": "#/components/parameters/Origin"
},
{
"$ref": "#/components/parameters/Csrf"
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"additionalProperties": false,
"required": [
"offerId",
"role",
"scenario"
],
"properties": {
"offerId": {
"type": "string",
"pattern": "^DEMO-OFFER-[0-9]{3}$"
},
"role": {
"enum": [
"buyer",
"holder"
]
},
"scenario": {
"enum": [
"standard",
"counter_refused",
"missing_documents",
"ineligible_buyer",
"expired_quote",
"settlement_mismatch"
]
}
}
}
}
}
},
"security": [
{
"HttpsCookie": []
},
{
"LocalCookie": []
}
]
}Respostas
{
"201": {
"description": "Private rehearsal projection; generated bot steps explicitly attributed"
},
"default": {
"$ref": "#/components/responses/Error"
}
}GET /api/rehearsals/{rehearsalId} · getPersonalRehearsal
Owner-only filtered view using the chosen synthetic role; no actual administrator disclosure override
Requisição
{
"parameters": [],
"requestBody": null,
"security": [
{
"HttpsCookie": []
},
{
"LocalCookie": []
}
]
}Respostas
{
"200": {
"description": "Private projection, pending actions, positions, economics, steps and blocked attempts; no retry fingerprints. Synthetic buyer hidden from seller until its successful proposal; not the full internal snapshot."
},
"default": {
"$ref": "#/components/responses/Error"
}
}POST /api/rehearsals/{rehearsalId}/commands · commandPersonalRehearsal
Idempotent, revision-checked fictional step; expected process blocks return 200 with commandError and an unchanged financial state
Requisição
{
"parameters": [
{
"$ref": "#/components/parameters/Origin"
},
{
"$ref": "#/components/parameters/Csrf"
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"additionalProperties": false,
"required": [
"action",
"payload",
"expectedRevision",
"idempotencyKey"
],
"properties": {
"action": {
"enum": [
"offer",
"propose",
"accept",
"acknowledge",
"settle",
"reconcile",
"restore_documents",
"correct_eligibility",
"renew_quote",
"resolve_mismatch",
"abandon"
]
},
"payload": {
"type": "object",
"description": "Action-specific strict fields in server/rehearsal.cjs FIELDS. Decimal values are ungrouped strings. Offer:quantity,price,agent,acknowledged. Propose:price. Abandon:confirmed. Others:acknowledged. No state, actor or real evidence accepted."
},
"expectedRevision": {
"type": "integer",
"minimum": 0
},
"idempotencyKey": {
"type": "string",
"pattern": "^[a-zA-Z0-9_-]{12,90}$"
}
}
}
}
}
},
"security": [
{
"HttpsCookie": []
},
{
"LocalCookie": []
}
]
}Respostas
{
"200": {
"description": "Updated projection with commandError:null or a recorded block; same-key same-payload retry is not repeated"
},
"default": {
"$ref": "#/components/responses/Error"
}
}POST /api/rehearsals/{rehearsalId}/feedback · savePersonalRehearsalFeedback
Owner-only editable process feedback, never commercial demand evidence
Requisição
{
"parameters": [
{
"$ref": "#/components/parameters/Origin"
},
{
"$ref": "#/components/parameters/Csrf"
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"additionalProperties": false,
"required": [
"score",
"body",
"expectedRevision"
],
"properties": {
"score": {
"type": "integer",
"minimum": 1,
"maximum": 5
},
"body": {
"type": "string",
"maxLength": 1200
},
"expectedRevision": {
"type": "integer",
"minimum": 0
}
}
}
}
}
},
"security": [
{
"HttpsCookie": []
},
{
"LocalCookie": []
}
]
}Respostas
{
"200": {
"description": "Updated private rehearsal projection"
},
"default": {
"$ref": "#/components/responses/Error"
}
}GET /api/rehearsals/{rehearsalId}/export · exportPersonalRehearsal
Owner-only role-filtered JSON report; process counters, synthetic versus wall time and zero real revenue
Requisição
{
"parameters": [],
"requestBody": null,
"security": [
{
"HttpsCookie": []
},
{
"LocalCookie": []
}
]
}Respostas
{
"200": {
"description": "glemo.individual-rehearsal-report/1; same synthetic-role disclosure as the session, not a full internal snapshot; client may render a standalone localized HTML report"
},
"default": {
"$ref": "#/components/responses/Error"
}
}GET /api/health · health
Transport-checked liveness, not an integrity scan
Requisição
{
"parameters": [],
"requestBody": null,
"security": []
}Respostas
{
"200": {
"description": "Alive; instance ID is a non-secret launcher process match, not authentication",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"status": {
"const": "ok"
},
"simulation": {
"const": true
},
"instanceId": {
"type": "string"
}
}
}
}
}
},
"default": {
"$ref": "#/components/responses/Error"
}
}POST /api/auth/login · login
login
Requisição
{
"parameters": [
{
"$ref": "#/components/parameters/Origin"
}
],
"requestBody": {
"$ref": "#/components/requestBodies/Login"
},
"security": []
}Respostas
{
"200": {
"description": "Sets session cookie",
"headers": {
"Set-Cookie": {
"schema": {
"type": "string"
}
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/LoginResult"
}
}
}
},
"default": {
"$ref": "#/components/responses/Error"
}
}POST /api/auth/invite · inspectInvite
Inspect a private unexpired, unused, unrevoked join/reset token
Requisição
{
"parameters": [
{
"$ref": "#/components/parameters/Origin"
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"additionalProperties": false,
"required": [
"token"
],
"properties": {
"token": {
"$ref": "#/components/schemas/Token"
}
}
}
}
}
},
"security": []
}Respostas
{
"200": {
"description": "Invitation metadata; no raw token returned",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/InviteInfo"
}
}
}
},
"default": {
"$ref": "#/components/responses/Error"
}
}POST /api/auth/accept · acceptInvite
Register or reset password using a single-use private invitation
Requisição
{
"parameters": [
{
"$ref": "#/components/parameters/Origin"
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"additionalProperties": false,
"required": [
"token",
"password",
"consent"
],
"properties": {
"token": {
"$ref": "#/components/schemas/Token"
},
"password": {
"$ref": "#/components/schemas/Password"
},
"consent": {
"const": true
}
}
}
}
}
},
"security": []
}Respostas
{
"200": {
"description": "Sets fresh cookie; accepted reset revokes old sessions",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/LoginResult"
}
}
}
},
"default": {
"$ref": "#/components/responses/Error"
}
}GET /api/auth/session · session
Optional cookie; nullable session/profile when logged out
Requisição
{
"parameters": [
{
"$ref": "#/components/parameters/Activity"
}
],
"requestBody": null,
"security": []
}Respostas
{
"200": {
"description": "Session snapshot; no expiresAt field",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"user": {
"anyOf": [
{
"$ref": "#/components/schemas/User"
},
{
"type": "null"
}
]
},
"csrf": {
"type": [
"string",
"null"
]
},
"profile": {
"anyOf": [
{
"$ref": "#/components/schemas/Profile"
},
{
"type": "null"
}
]
},
"globalPaused": {
"type": "boolean"
},
"serverTime": {
"type": "string",
"format": "date-time"
}
}
}
}
}
},
"default": {
"$ref": "#/components/responses/Error"
}
}POST /api/auth/logout · logout
logout
Requisição
{
"parameters": [
{
"$ref": "#/components/parameters/Origin"
},
{
"$ref": "#/components/parameters/Csrf"
}
],
"requestBody": {
"$ref": "#/components/requestBodies/Empty"
},
"security": [
{
"HttpsCookie": []
},
{
"LocalCookie": []
}
]
}Respostas
{
"200": {
"$ref": "#/components/responses/Ok"
},
"default": {
"$ref": "#/components/responses/Error"
}
}POST /api/auth/password · changePassword
Revoke all own sessions and pending resets, then rotate current cookie
Requisição
{
"parameters": [
{
"$ref": "#/components/parameters/Origin"
},
{
"$ref": "#/components/parameters/Csrf"
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"additionalProperties": false,
"required": [
"currentPassword",
"newPassword"
],
"properties": {
"currentPassword": {
"type": "string",
"maxLength": 512
},
"newPassword": {
"$ref": "#/components/schemas/Password"
}
}
}
}
}
},
"security": [
{
"HttpsCookie": []
},
{
"LocalCookie": []
}
]
}Respostas
{
"200": {
"description": "Rotated session cookie; no expiresAt field",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"user": {
"$ref": "#/components/schemas/User"
},
"csrf": {
"type": "string"
}
}
}
}
}
},
"default": {
"$ref": "#/components/responses/Error"
}
}GET /api/profile · ownProfile
ownProfile
Requisição
{
"parameters": [],
"requestBody": null,
"security": [
{
"HttpsCookie": []
},
{
"LocalCookie": []
}
]
}Respostas
{
"200": {
"description": "Own profile",
"content": {
"application/json": {
"schema": {
"anyOf": [
{
"$ref": "#/components/schemas/Profile"
},
{
"type": "null"
}
]
}
}
}
},
"default": {
"$ref": "#/components/responses/Error"
}
}POST /api/profile · saveProfile
saveProfile
Requisição
{
"parameters": [
{
"$ref": "#/components/parameters/Origin"
},
{
"$ref": "#/components/parameters/Csrf"
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ProfileInput"
}
}
}
},
"security": [
{
"HttpsCookie": []
},
{
"LocalCookie": []
}
]
}Respostas
{
"200": {
"description": "Updated profile/version",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Profile"
}
}
}
},
"default": {
"$ref": "#/components/responses/Error"
}
}GET /api/templates · templates
templates
Requisição
{
"parameters": [],
"requestBody": null,
"security": [
{
"HttpsCookie": []
},
{
"LocalCookie": []
}
]
}Respostas
{
"200": {
"description": "Four independent fictional resale templates",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"templates": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Template"
}
}
}
}
}
}
},
"default": {
"$ref": "#/components/responses/Error"
}
}GET /api/cases · listCases
Administrator: all cases; others: explicit memberships only
Requisição
{
"parameters": [],
"requestBody": null,
"security": [
{
"HttpsCookie": []
},
{
"LocalCookie": []
}
]
}Respostas
{
"200": {
"description": "Visible summaries",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"cases": {
"type": "array",
"items": {
"type": "object"
}
},
"globalPaused": {
"type": "boolean"
},
"serverTime": {
"type": "string",
"format": "date-time"
}
}
}
}
}
},
"default": {
"$ref": "#/components/responses/Error"
}
}POST /api/cases · createCase
Assign one active distinct account of each of five fixed participant roles
Requisição
{
"parameters": [
{
"$ref": "#/components/parameters/Origin"
},
{
"$ref": "#/components/parameters/Csrf"
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/CaseInput"
}
}
}
},
"security": [
{
"HttpsCookie": []
},
{
"LocalCookie": []
}
]
}Respostas
{
"201": {
"$ref": "#/components/responses/Projection"
},
"default": {
"$ref": "#/components/responses/Error"
}
}GET /api/cases/{caseId} · getCase
Case member or administrator; absent/inaccessible returns 404
Requisição
{
"parameters": [],
"requestBody": null,
"security": [
{
"HttpsCookie": []
},
{
"LocalCookie": []
}
]
}Respostas
{
"200": {
"$ref": "#/components/responses/Projection"
},
"default": {
"$ref": "#/components/responses/Error"
}
}POST /api/cases/{caseId}/commands · command
Fixed-role member command; administrator cannot execute
Requisição
{
"parameters": [
{
"$ref": "#/components/parameters/Origin"
},
{
"$ref": "#/components/parameters/Csrf"
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Command"
}
}
}
},
"security": [
{
"HttpsCookie": []
},
{
"LocalCookie": []
}
]
}Respostas
{
"200": {
"$ref": "#/components/responses/Projection"
},
"default": {
"$ref": "#/components/responses/Error"
}
}POST /api/cases/{caseId}/control · controlCase
Pause/archive flags; reversible, no deletion or workflow revision increment
Requisição
{
"parameters": [
{
"$ref": "#/components/parameters/Origin"
},
{
"$ref": "#/components/parameters/Csrf"
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"additionalProperties": false,
"required": [
"reason"
],
"properties": {
"paused": {
"type": "boolean"
},
"archived": {
"type": "boolean"
},
"reason": {
"$ref": "#/components/schemas/ControlReason"
}
}
}
}
}
},
"security": [
{
"HttpsCookie": []
},
{
"LocalCookie": []
}
]
}Respostas
{
"200": {
"$ref": "#/components/responses/Projection"
},
"default": {
"$ref": "#/components/responses/Error"
}
}GET /api/cases/{caseId}/audit · caseAudit
Assigned member/admin; filtered audit view, not independently certified or a verifiable full chain
Requisição
{
"parameters": [],
"requestBody": null,
"security": [
{
"HttpsCookie": []
},
{
"LocalCookie": []
}
]
}Respostas
{
"200": {
"description": "Context/feedback-filtered case audit. Non-admin actor identifiers may be replaced with role labels. Stored append-only records/hashes are unchanged; full internal chain verification requires the administrator record.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Audit"
}
}
}
},
"default": {
"$ref": "#/components/responses/Error"
}
}GET /api/cases/{caseId}/export · exportCase
Assigned member/admin filtered report; contextual counterpart/reference/feedback gates also apply to nested state and audit; records export event
Requisição
{
"parameters": [],
"requestBody": null,
"security": [
{
"HttpsCookie": []
},
{
"LocalCookie": []
}
]
}Respostas
{
"200": {
"description": "Simulated filtered JSON process report, not a full database dump or independently verifiable full-chain export",
"content": {
"application/json": {
"schema": {
"allOf": [
{
"$ref": "#/components/schemas/Projection"
},
{
"type": "object",
"properties": {
"format": {
"const": "glemo.shared-pilot-report/1"
},
"simulation": {
"const": true
},
"generatedAt": {
"type": "string",
"format": "date-time"
},
"evidenceScope": {
"type": "string"
},
"feeCollectionStatus": {
"const": "NOT_INVOICED_NOT_COLLECTED_SIMULATION"
},
"audit": {
"$ref": "#/components/schemas/Audit"
}
}
}
]
}
}
}
},
"default": {
"$ref": "#/components/responses/Error"
}
}GET /api/notifications · notifications
Own newest 100 persistent in-app notifications; no email/push delivery
Requisição
{
"parameters": [],
"requestBody": null,
"security": [
{
"HttpsCookie": []
},
{
"LocalCookie": []
}
]
}Respostas
{
"200": {
"description": "Notifications",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"notifications": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"caseId": {
"type": [
"string",
"null"
]
},
"action": {
"type": "string"
},
"read": {
"type": "integer",
"enum": [
0,
1
]
},
"createdAt": {
"type": "string",
"format": "date-time"
}
}
}
}
}
}
}
}
},
"default": {
"$ref": "#/components/responses/Error"
}
}POST /api/notifications/{id}/read · readNotification
Own notification only; others return 404
Requisição
{
"parameters": [
{
"$ref": "#/components/parameters/Origin"
},
{
"$ref": "#/components/parameters/Csrf"
}
],
"requestBody": {
"$ref": "#/components/requestBodies/Empty"
},
"security": [
{
"HttpsCookie": []
},
{
"LocalCookie": []
}
]
}Respostas
{
"200": {
"$ref": "#/components/responses/Ok"
},
"default": {
"$ref": "#/components/responses/Error"
}
}GET /api/admin/users · users
users
Requisição
{
"parameters": [],
"requestBody": null,
"security": [
{
"HttpsCookie": []
},
{
"LocalCookie": []
}
]
}Respostas
{
"200": {
"description": "Users, no password hashes",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"users": {
"type": "array",
"items": {
"allOf": [
{
"$ref": "#/components/schemas/User"
},
{
"type": "object",
"properties": {
"profileComplete": {
"type": "boolean"
}
}
}
]
}
}
}
}
}
}
},
"default": {
"$ref": "#/components/responses/Error"
}
}POST /api/admin/users/{id}/control · controlUser
Non-admin target; disable revokes sessions and pauses cases; enable does not resume cases
Requisição
{
"parameters": [
{
"$ref": "#/components/parameters/Origin"
},
{
"$ref": "#/components/parameters/Csrf"
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"additionalProperties": false,
"required": [
"active"
],
"properties": {
"active": {
"type": "boolean"
}
}
}
}
}
},
"security": [
{
"HttpsCookie": []
},
{
"LocalCookie": []
}
]
}Respostas
{
"200": {
"description": "Target user",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/User"
}
}
}
},
"default": {
"$ref": "#/components/responses/Error"
}
}POST /api/admin/users/{id}/reset · resetUser
Private reset link for active non-admin; sessions revoked on acceptance
Requisição
{
"parameters": [
{
"$ref": "#/components/parameters/Origin"
},
{
"$ref": "#/components/parameters/Csrf"
}
],
"requestBody": {
"$ref": "#/components/requestBodies/Empty"
},
"security": [
{
"HttpsCookie": []
},
{
"LocalCookie": []
}
]
}Respostas
{
"201": {
"$ref": "#/components/responses/PrivateInvite"
},
"default": {
"$ref": "#/components/responses/Error"
}
}GET /api/admin/invites · invites
invites
Requisição
{
"parameters": [],
"requestBody": null,
"security": [
{
"HttpsCookie": []
},
{
"LocalCookie": []
}
]
}Respostas
{
"200": {
"description": "Metadata only, no raw tokens/links",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"invites": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"kind": {
"enum": [
"join",
"reset"
]
},
"alias": {
"type": "string"
},
"role": {
"$ref": "#/components/schemas/Role"
},
"orgAlias": {
"type": "string"
},
"targetUser": {
"type": [
"string",
"null"
]
},
"expiresAt": {
"type": "string",
"format": "date-time"
},
"usedAt": {
"type": [
"string",
"null"
]
},
"revoked": {
"type": "integer",
"enum": [
0,
1
]
},
"createdAt": {
"type": "string",
"format": "date-time"
}
}
}
}
}
}
}
}
},
"default": {
"$ref": "#/components/responses/Error"
}
}POST /api/admin/invites · inviteUser
Invite fixed participant role; no additional administrator through HTTP
Requisição
{
"parameters": [
{
"$ref": "#/components/parameters/Origin"
},
{
"$ref": "#/components/parameters/Csrf"
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"additionalProperties": false,
"required": [
"alias",
"role",
"orgAlias"
],
"properties": {
"alias": {
"type": "string",
"pattern": "^[a-z0-9][a-z0-9._-]{2,39}$"
},
"role": {
"$ref": "#/components/schemas/ParticipantRole"
},
"orgAlias": {
"type": "string",
"maxLength": 100,
"pattern": "^DEMO[ -]"
}
}
}
}
}
},
"security": [
{
"HttpsCookie": []
},
{
"LocalCookie": []
}
]
}Respostas
{
"201": {
"$ref": "#/components/responses/PrivateInvite"
},
"default": {
"$ref": "#/components/responses/Error"
}
}POST /api/admin/invites/{id}/revoke · revokeInvite
revokeInvite
Requisição
{
"parameters": [
{
"$ref": "#/components/parameters/Origin"
},
{
"$ref": "#/components/parameters/Csrf"
}
],
"requestBody": {
"$ref": "#/components/requestBodies/Empty"
},
"security": [
{
"HttpsCookie": []
},
{
"LocalCookie": []
}
]
}Respostas
{
"200": {
"$ref": "#/components/responses/Ok"
},
"default": {
"$ref": "#/components/responses/Error"
}
}POST /api/admin/control · globalControl
Pause participant commands; reads/admin/auth operations remain available
Requisição
{
"parameters": [
{
"$ref": "#/components/parameters/Origin"
},
{
"$ref": "#/components/parameters/Csrf"
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"additionalProperties": false,
"required": [
"paused",
"reason"
],
"properties": {
"paused": {
"type": "boolean"
},
"reason": {
"$ref": "#/components/schemas/ControlReason"
}
}
}
}
}
},
"security": [
{
"HttpsCookie": []
},
{
"LocalCookie": []
}
]
}Respostas
{
"200": {
"description": "Current global pause flag",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"paused": {
"type": "boolean"
}
}
}
}
}
},
"default": {
"$ref": "#/components/responses/Error"
}
}GET /api/admin/metrics · metrics
Illustrative metrics; realRevenueCents is zero, not proof of demand
Requisição
{
"parameters": [],
"requestBody": null,
"security": [
{
"HttpsCookie": []
},
{
"LocalCookie": []
}
]
}Respostas
{
"200": {
"description": "Simulation counts and cents",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"simulation": {
"const": true
},
"globalPaused": {
"type": "boolean"
},
"cases": {
"type": "integer"
},
"reconciled": {
"type": "integer"
},
"blocked": {
"type": "integer"
},
"illustrativeVolumeCents": {
"type": "string",
"pattern": "^[0-9]+$"
},
"users": {
"type": "integer"
},
"feedback": {
"type": "integer"
},
"realRevenueCents": {
"const": 0
}
}
}
}
}
},
"default": {
"$ref": "#/components/responses/Error"
}
}GET /api/admin/security · securityEvents
securityEvents
Requisição
{
"parameters": [],
"requestBody": null,
"security": [
{
"HttpsCookie": []
},
{
"LocalCookie": []
}
]
}Respostas
{
"200": {
"description": "Newest 200 security events; detail is canonical JSON text",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"events": {
"type": "array",
"items": {
"type": "object"
}
}
}
}
}
}
},
"default": {
"$ref": "#/components/responses/Error"
}
}POST /api/admin/backup · backup
Create private server-side SQLite backup, metadata only; 3 per hour/user
Requisição
{
"parameters": [
{
"$ref": "#/components/parameters/Origin"
},
{
"$ref": "#/components/parameters/Csrf"
}
],
"requestBody": {
"$ref": "#/components/requestBodies/Empty"
},
"security": [
{
"HttpsCookie": []
},
{
"LocalCookie": []
}
]
}Respostas
{
"201": {
"description": "Snapshot remains under private PILOT_DATA_DIR/backups",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"bytes": {
"type": "integer"
},
"sha256": {
"type": "string",
"pattern": "^[a-f0-9]{64}$"
}
}
}
}
}
},
"default": {
"$ref": "#/components/responses/Error"
}
}GET /api/admin/fixtures · internalFictionalFixtureSelector
Administrator-only minimal fictional company selector; never a participant directory
Requisição
{
"parameters": [],
"requestBody": null,
"security": [
{
"HttpsCookie": []
},
{
"LocalCookie": []
}
]
}Respostas
{
"200": {
"description": "Internal selection fields only; authenticated non-admin requests fail",
"content": {
"application/json": {
"schema": {
"type": "object",
"additionalProperties": false,
"required": [
"companies"
],
"properties": {
"companies": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": false,
"required": [
"id",
"name",
"role",
"country"
],
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"role": {
"enum": [
"seller",
"buyer"
]
},
"country": {
"type": "string"
}
}
}
}
}
}
}
}
},
"default": {
"$ref": "#/components/responses/Error"
}
}GET /api/catalog · fictionalCatalog
24 fictional offers only; no company array, company IDs/profiles or participant directory
Requisição
{
"parameters": [],
"requestBody": null,
"security": [
{
"HttpsCookie": []
},
{
"LocalCookie": []
}
]
}Respostas
{
"200": {
"description": "Read-only offer summaries. sellerId, referenceBuyerId and issuer identity are not serialized; source company fixtures remain internal.",
"content": {
"application/json": {
"schema": {
"type": "object",
"additionalProperties": false,
"required": [
"simulation",
"version",
"offers"
],
"properties": {
"simulation": {
"const": true
},
"version": {
"type": "string"
},
"offers": {
"type": "array",
"minItems": 24,
"maxItems": 24,
"items": {
"type": "object",
"not": {
"anyOf": [
{
"required": [
"sellerId"
]
},
{
"required": [
"referenceBuyerId"
]
},
{
"required": [
"issuer"
]
}
]
}
}
}
}
}
}
}
},
"default": {
"$ref": "#/components/responses/Error"
}
}GET /api/catalog/offers/{offerId}/example · fictionalOfferExample
Generated offer factsheet: role-filtered seller, buyer always null, four public artifacts; not a received proposal or private-case evidence
Requisição
{
"parameters": [
{
"name": "offerId",
"in": "path",
"required": true,
"schema": {
"type": "string",
"pattern": "^DEMO-OFFER-[0-9]{3}$"
}
}
],
"requestBody": null,
"security": [
{
"HttpsCookie": []
},
{
"LocalCookie": []
}
]
}Respostas
{
"200": {
"description": "Limited synthetic factsheet. Seller commercial profile only for buyer/admin, otherwise null. Sample buyer is null for every role. Four public artifacts only; no mandate, private negotiation, settlement dossier or external-account/token rows. Missing evidence remains pending.",
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"simulation",
"generatedExample",
"readOnly",
"version",
"offer",
"seller",
"buyer",
"state",
"artifacts"
],
"properties": {
"simulation": {
"const": true
},
"generatedExample": {
"const": true
},
"readOnly": {
"const": true
},
"version": {
"type": "string"
},
"offer": {
"type": "object",
"description": "Fictional asset terms including original issuer; no sellerId or referenceBuyerId",
"not": {
"anyOf": [
{
"required": [
"sellerId"
]
},
{
"required": [
"referenceBuyerId"
]
}
]
}
},
"seller": {
"description": "Limited seller commercial context for buyer/admin only; no login/contact/registration or counterparty-history links",
"oneOf": [
{
"$ref": "#/components/schemas/FictionalCommercialProfile"
},
{
"type": "null"
}
]
},
"buyer": {
"const": null,
"description": "Never disclosed by a catalog illustration, including for administrators"
},
"state": {
"type": "object",
"description": "Limited illustrative state with positions/request terms and event action/role/time; not a full internal snapshot, buyer mandate or private dossier"
},
"artifacts": {
"type": "array",
"minItems": 4,
"maxItems": 4,
"items": {
"type": "object",
"required": [
"type"
],
"properties": {
"type": {
"enum": [
"factsheet",
"ownership",
"checklist",
"costs"
]
}
}
}
}
}
}
}
}
},
"default": {
"$ref": "#/components/responses/Error"
}
}Schemas dos DTOs
SavedDiscoverySearch
{
"type": "object",
"additionalProperties": false,
"required": [
"id",
"name",
"query",
"country",
"category",
"benefit",
"sort",
"favoritesOnly"
],
"properties": {
"id": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]{12,90}$"
},
"name": {
"type": "string",
"description": "Trimmed nonempty name of at most 60 characters"
},
"query": {
"type": "string",
"description": "Trimmed query of at most 200 characters"
},
"country": {
"enum": [
"",
"AE",
"SG",
"US",
"HK",
"GB"
]
},
"category": {
"enum": [
"",
"Real estate",
"Private credit",
"Treasury",
"Commodities"
]
},
"benefit": {
"enum": [
"",
"discount",
"time",
"volume",
"points"
]
},
"sort": {
"enum": [
"featured",
"minTicketAsc",
"minTicketDesc",
"closing"
]
},
"favoritesOnly": {
"type": "boolean"
}
}
}DiscoveryFavorites
{
"type": "array",
"maxItems": 32,
"uniqueItems": true,
"items": {
"type": "string",
"pattern": "^DEMO-OFFER-[0-9]{3}$"
},
"description": "Every ID must exist in the current catalog"
}DiscoverySearches
{
"type": "array",
"maxItems": 10,
"items": {
"$ref": "#/components/schemas/SavedDiscoverySearch"
},
"description": "Search IDs must be unique"
}DiscoveryTools
{
"type": "object",
"additionalProperties": false,
"required": [
"version",
"favorites",
"savedSearches",
"updatedAt",
"simulation"
],
"properties": {
"version": {
"type": "integer",
"minimum": 0
},
"favorites": {
"$ref": "#/components/schemas/DiscoveryFavorites"
},
"savedSearches": {
"$ref": "#/components/schemas/DiscoverySearches"
},
"updatedAt": {
"type": [
"string",
"null"
],
"format": "date-time"
},
"simulation": {
"const": true
}
}
}DiscoveryToolsInput
{
"type": "object",
"additionalProperties": false,
"required": [
"expectedVersion",
"favorites",
"savedSearches"
],
"properties": {
"expectedVersion": {
"type": "integer",
"minimum": 0
},
"favorites": {
"$ref": "#/components/schemas/DiscoveryFavorites"
},
"savedSearches": {
"$ref": "#/components/schemas/DiscoverySearches"
}
}
}AssetRequestCreated
{
"type": "object",
"additionalProperties": false,
"required": [
"id",
"query",
"category",
"country",
"minimumTicketCents",
"maximumTicketCents",
"timeframe",
"description",
"status",
"version",
"createdAt",
"updatedAt",
"simulation"
],
"properties": {
"id": {
"type": "string"
},
"query": {
"type": "string",
"maxLength": 200
},
"category": {
"enum": [
"Real estate",
"Private credit",
"Treasury",
"Commodities",
"Other"
]
},
"country": {
"enum": [
"AE",
"SG",
"US",
"HK",
"GB",
"Other"
]
},
"minimumTicketCents": {
"type": [
"integer",
"null"
],
"minimum": 1
},
"maximumTicketCents": {
"type": [
"integer",
"null"
],
"minimum": 1
},
"timeframe": {
"enum": [
"now",
"30d",
"90d",
"flexible"
]
},
"description": {
"type": "string",
"minLength": 20,
"maxLength": 2000
},
"status": {
"enum": [
"submitted",
"withdrawn"
]
},
"version": {
"type": "integer",
"minimum": 0,
"maximum": 1
},
"createdAt": {
"type": "string",
"format": "date-time"
},
"updatedAt": {
"type": "string",
"format": "date-time"
},
"simulation": {
"const": true
},
"replayed": {
"const": true
}
}
}AdminAssetRequest
{
"type": "object",
"additionalProperties": false,
"required": [
"id",
"query",
"category",
"country",
"minimumTicketCents",
"maximumTicketCents",
"timeframe",
"description",
"status",
"version",
"createdAt",
"updatedAt",
"simulation",
"ownerId"
],
"properties": {
"id": {
"type": "string"
},
"query": {
"type": "string",
"maxLength": 200
},
"category": {
"enum": [
"Real estate",
"Private credit",
"Treasury",
"Commodities",
"Other"
]
},
"country": {
"enum": [
"AE",
"SG",
"US",
"HK",
"GB",
"Other"
]
},
"minimumTicketCents": {
"type": [
"integer",
"null"
],
"minimum": 1
},
"maximumTicketCents": {
"type": [
"integer",
"null"
],
"minimum": 1
},
"timeframe": {
"enum": [
"now",
"30d",
"90d",
"flexible"
]
},
"description": {
"type": "string",
"minLength": 20,
"maxLength": 2000
},
"status": {
"enum": [
"submitted",
"withdrawn"
]
},
"version": {
"type": "integer",
"minimum": 0,
"maximum": 1
},
"createdAt": {
"type": "string",
"format": "date-time"
},
"updatedAt": {
"type": "string",
"format": "date-time"
},
"simulation": {
"const": true
},
"ownerId": {
"type": "string"
}
}
}AssetRequest
{
"type": "object",
"additionalProperties": false,
"required": [
"id",
"query",
"category",
"country",
"minimumTicketCents",
"maximumTicketCents",
"timeframe",
"description",
"status",
"version",
"createdAt",
"updatedAt",
"simulation"
],
"properties": {
"id": {
"type": "string"
},
"query": {
"type": "string",
"maxLength": 200
},
"category": {
"enum": [
"Real estate",
"Private credit",
"Treasury",
"Commodities",
"Other"
]
},
"country": {
"enum": [
"AE",
"SG",
"US",
"HK",
"GB",
"Other"
]
},
"minimumTicketCents": {
"type": [
"integer",
"null"
],
"minimum": 1
},
"maximumTicketCents": {
"type": [
"integer",
"null"
],
"minimum": 1
},
"timeframe": {
"enum": [
"now",
"30d",
"90d",
"flexible"
]
},
"description": {
"type": "string",
"minLength": 20,
"maxLength": 2000
},
"status": {
"enum": [
"submitted",
"withdrawn"
]
},
"version": {
"type": "integer",
"minimum": 0,
"maximum": 1
},
"createdAt": {
"type": "string",
"format": "date-time"
},
"updatedAt": {
"type": "string",
"format": "date-time"
},
"simulation": {
"const": true
}
}
}AssetRequestInput
{
"type": "object",
"additionalProperties": false,
"required": [
"query",
"category",
"country",
"minimumTicket",
"maximumTicket",
"timeframe",
"description",
"consent",
"idempotencyKey"
],
"properties": {
"query": {
"type": "string",
"maxLength": 200
},
"category": {
"enum": [
"Real estate",
"Private credit",
"Treasury",
"Commodities",
"Other"
]
},
"country": {
"enum": [
"AE",
"SG",
"US",
"HK",
"GB",
"Other"
]
},
"minimumTicket": {
"type": "string",
"description": "Empty for unknown, otherwise positive ungrouped USD decimal; at most two decimal places"
},
"maximumTicket": {
"type": "string",
"description": "Empty for unknown; positive USD decimal, >= minimum when both supplied"
},
"timeframe": {
"enum": [
"now",
"30d",
"90d",
"flexible"
]
},
"description": {
"type": "string",
"minLength": 20,
"maxLength": 2000
},
"consent": {
"const": true
},
"idempotencyKey": {
"type": "string",
"pattern": "^[a-zA-Z0-9_-]{12,90}$"
}
}
}FictionalCommercialProfile
{
"type": "object",
"additionalProperties": false,
"description": "Allowlisted fictional commercial projection, not a registration. No company ID, login, contact, mandate, private preferences or counterparty-history links. Context authorization is required independently of the schema.",
"required": [
"name",
"role",
"country",
"city",
"categories",
"descriptionKey",
"fictional",
"realIdentityVerified",
"history"
],
"properties": {
"name": {
"type": "string"
},
"role": {
"enum": [
"seller",
"buyer"
]
},
"country": {
"type": "string"
},
"city": {
"type": "string"
},
"categories": {
"type": "array",
"items": {
"type": "string"
}
},
"descriptionKey": {
"type": "string"
},
"fictional": {
"const": true
},
"realIdentityVerified": {
"const": false
},
"history": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": false,
"required": [
"category",
"country",
"principalCents",
"at",
"fictional",
"verified"
],
"properties": {
"category": {
"type": "string"
},
"country": {
"type": "string"
},
"principalCents": {
"type": "integer"
},
"at": {
"type": "string"
},
"fictional": {
"const": true
},
"verified": {
"const": false
}
}
}
}
}
}Role
{
"type": "string",
"enum": [
"admin",
"holder",
"buyer",
"compliance",
"rails",
"auditor"
]
}ParticipantRole
{
"type": "string",
"enum": [
"holder",
"buyer",
"compliance",
"rails",
"auditor"
]
}Token
{
"type": "string",
"pattern": "^[A-Za-z0-9_-]{43}$",
"description": "PRIVATE bearer secret; returned only at issuance; never log/package/share in reports"
}Password
{
"type": "string",
"minLength": 14,
"maxLength": 128,
"writeOnly": true,
"description": "Unicode code points; server also rejects simple repetitions and a short obvious-password list"
}Reference
{
"type": "string",
"pattern": "^DEMO-[A-Z0-9-]{1,100}$"
}Money
{
"type": "string",
"maxLength": 64,
"pattern": "^(0|[1-9][0-9]*)(\\.[0-9]{1,2})?$",
"description": "Unsigned USD decimal, at most two fractional digits; semantic positive/safe-integer checks apply"
}Quantity
{
"type": "string",
"maxLength": 64,
"pattern": "^(0|[1-9][0-9]*)(\\.[0-9]{1,6})?$",
"description": "Unsigned decimal, at most six fractional digits; must match available/frozen case units"
}Reason
{
"type": "string",
"minLength": 1,
"maxLength": 1000,
"pattern": "\\S"
}ControlReason
{
"type": "string",
"minLength": 1,
"maxLength": 1200,
"pattern": "\\S"
}User
{
"type": "object",
"properties": {
"id": {
"type": "string"
},
"alias": {
"type": "string"
},
"role": {
"$ref": "#/components/schemas/Role"
},
"orgId": {
"type": "string"
},
"orgAlias": {
"type": "string"
},
"active": {
"type": "boolean"
}
}
}LoginResult
{
"type": "object",
"properties": {
"user": {
"$ref": "#/components/schemas/User"
},
"csrf": {
"type": "string"
},
"expiresAt": {
"type": "string",
"format": "date-time"
}
}
}InviteInfo
{
"type": "object",
"properties": {
"alias": {
"type": "string"
},
"role": {
"$ref": "#/components/schemas/Role"
},
"kind": {
"enum": [
"join",
"reset"
]
},
"orgAlias": {
"type": "string"
},
"expiresAt": {
"type": "string",
"format": "date-time"
}
}
}Preferences
{
"type": "object",
"additionalProperties": false,
"required": [
"inApp",
"email",
"push"
],
"properties": {
"inApp": {
"type": "boolean"
},
"email": {
"type": "boolean",
"description": "Stored only; no email sent"
},
"push": {
"type": "boolean",
"description": "Stored only; no push sent"
}
}
}ProfileInput
{
"type": "object",
"additionalProperties": false,
"required": [
"country",
"qualified",
"categories",
"history",
"referrals",
"shareReferences",
"preferences",
"consent",
"expectedVersion"
],
"properties": {
"country": {
"enum": [
"AE",
"SG",
"US",
"BR",
"HK",
"GB"
]
},
"qualified": {
"type": "boolean"
},
"categories": {
"type": "array",
"maxItems": 4,
"items": {
"enum": [
"Real estate",
"Private credit",
"Treasury",
"Commodities"
]
}
},
"history": {
"type": "string",
"maxLength": 1200
},
"referrals": {
"type": "string",
"maxLength": 1200
},
"shareReferences": {
"type": "boolean"
},
"preferences": {
"$ref": "#/components/schemas/Preferences"
},
"consent": {
"const": true
},
"expectedVersion": {
"type": "integer",
"minimum": 0
}
}
}Profile
{
"type": "object",
"description": "Own private profile, not a counterpart response or global lookup. Reference text is fictional/self-declared. Counterpart references require both contextual authorization and shareReferences opt-in; private preferences/registration are never counterpart fields.",
"properties": {
"completed": {
"type": "boolean"
},
"country": {
"type": "string"
},
"qualified": {
"type": "boolean"
},
"categories": {
"type": "array",
"items": {
"type": "string"
}
},
"history": {
"type": "string"
},
"referrals": {
"type": "string"
},
"shareReferences": {
"type": "boolean"
},
"preferences": {
"$ref": "#/components/schemas/Preferences"
},
"consentVersion": {
"const": "fictional-data-v1"
},
"version": {
"type": "integer"
},
"updatedAt": {
"type": "string",
"format": "date-time"
}
}
}TemplateId
{
"enum": [
"ae-property",
"ae-credit",
"sg-treasury",
"ae-gold"
]
}Template
{
"type": "object",
"properties": {
"id": {
"$ref": "#/components/schemas/TemplateId"
},
"asset": {
"type": "string"
},
"category": {
"type": "string"
},
"country": {
"enum": [
"AE",
"SG"
]
},
"city": {
"type": "string"
},
"buyers": {
"type": "array",
"items": {
"type": "string"
}
},
"image": {
"type": "string"
}
}
}CaseInput
{
"type": "object",
"additionalProperties": false,
"required": [
"title",
"template",
"members"
],
"properties": {
"title": {
"type": "string",
"minLength": 1,
"maxLength": 100,
"pattern": "\\S"
},
"template": {
"$ref": "#/components/schemas/TemplateId"
},
"members": {
"type": "object",
"additionalProperties": false,
"required": [
"holder",
"buyer",
"compliance",
"rails",
"auditor"
],
"properties": {
"holder": {
"type": "string"
},
"buyer": {
"type": "string"
},
"compliance": {
"type": "string"
},
"rails": {
"type": "string"
},
"auditor": {
"type": "string"
}
}
},
"offerId": {
"type": "string",
"pattern": "^DEMO-OFFER-[0-9]{3}$",
"description": "Optional fictional offer source. Must match template; context is server-owned. No participant commands are auto-created."
}
}
}Projection
{
"type": "object",
"properties": {
"meta": {
"type": "object"
},
"state": {
"type": "object",
"description": "SIMULATED filtered projection, not the full stored snapshot. Context gates apply to nested seller/buyer data and buyer mandate/review; feedback is filtered by role and fingerprints removed. Seller sees buyer commercial context only after successful buyer proposal. Integer unit strings, USD cents; not a public asset ledger or independently verifiable full-chain dump."
},
"participants": {
"type": "array",
"description": "Viewer/context-filtered. Own and internal admin rows are distinct from limited counterpart commercial projections. Before the buyer's successful proposal no buyer profile is sent to the seller. A counterpart row has no login alias, activation/completion flags, credentials, contact or private preferences; references additionally require shareReferences opt-in.",
"items": {
"type": "object"
}
},
"globalPaused": {
"type": "boolean"
},
"serverTime": {
"type": "string",
"format": "date-time"
},
"replayed": {
"const": true
}
}
}Audit
{
"type": "object",
"description": "Filtered projection of stored append-only audit; full internal chain verification requires the administrator record. Non-admin feedback/actor filtering means response hashes do not independently verify the complete original chain. Stored snapshot/hash/audit remain unchanged; no external certification or anchor.",
"properties": {
"simulation": {
"const": true
},
"caseId": {
"type": "string"
},
"integrity": {
"type": "string"
},
"events": {
"type": "array",
"items": {
"type": "object",
"properties": {
"case_id": {
"type": "string"
},
"sequence": {
"type": "integer"
},
"at": {
"type": "string"
},
"actor_id": {
"type": "string",
"description": "May be a role label replacing another actor's internal ID for a non-admin viewer; not a company-profile lookup key"
},
"role": {
"type": "string"
},
"action": {
"type": "string"
},
"revision": {
"type": "integer"
},
"state_hash": {
"type": "string"
},
"previous_hash": {
"type": "string"
},
"event_hash": {
"type": "string"
}
}
}
}
}
}Command
{
"type": "object",
"additionalProperties": false,
"required": [
"action",
"payload",
"expectedRevision",
"expectedDealVersion",
"idempotencyKey"
],
"properties": {
"action": {
"type": "string"
},
"payload": {
"type": "object"
},
"expectedRevision": {
"type": "integer",
"minimum": 0
},
"expectedDealVersion": {
"type": [
"integer",
"null"
],
"minimum": 1
},
"idempotencyKey": {
"type": "string",
"pattern": "^[a-zA-Z0-9_-]{12,90}$"
}
},
"oneOf": [
{
"properties": {
"action": {
"const": "offer"
},
"payload": {
"$ref": "#/components/schemas/Offer"
}
}
},
{
"properties": {
"action": {
"const": "mandate"
},
"payload": {
"$ref": "#/components/schemas/Mandate"
}
}
},
{
"properties": {
"action": {
"const": "verify"
},
"payload": {
"$ref": "#/components/schemas/Verify"
}
}
},
{
"properties": {
"action": {
"enum": [
"publish",
"expire"
]
},
"payload": {
"$ref": "#/components/schemas/Empty"
}
}
},
{
"properties": {
"action": {
"const": "propose"
},
"payload": {
"$ref": "#/components/schemas/Propose"
}
}
},
{
"properties": {
"action": {
"const": "accept"
},
"payload": {
"$ref": "#/components/schemas/Accept"
}
}
},
{
"properties": {
"action": {
"const": "instructions"
},
"payload": {
"$ref": "#/components/schemas/Instructions"
}
}
},
{
"properties": {
"action": {
"const": "sign"
},
"payload": {
"$ref": "#/components/schemas/Sign"
}
}
},
{
"properties": {
"action": {
"enum": [
"begin",
"reconcile"
]
},
"payload": {
"$ref": "#/components/schemas/ReferenceOnly"
}
}
},
{
"properties": {
"action": {
"const": "cash"
},
"payload": {
"$ref": "#/components/schemas/Cash"
}
}
},
{
"properties": {
"action": {
"const": "delivery"
},
"payload": {
"$ref": "#/components/schemas/Delivery"
}
}
},
{
"properties": {
"action": {
"enum": [
"cancel",
"reject",
"issue"
]
},
"payload": {
"$ref": "#/components/schemas/ReasonOnly"
}
}
},
{
"properties": {
"action": {
"const": "resolve"
},
"payload": {
"$ref": "#/components/schemas/Resolve"
}
}
},
{
"properties": {
"action": {
"const": "closeAgreement"
},
"payload": {
"$ref": "#/components/schemas/CloseAgreement"
}
}
},
{
"properties": {
"action": {
"const": "message"
},
"payload": {
"$ref": "#/components/schemas/Message"
}
}
},
{
"properties": {
"action": {
"const": "feedback"
},
"payload": {
"$ref": "#/components/schemas/Feedback"
}
}
}
]
}Empty
{
"type": "object",
"additionalProperties": false
}Offer
{
"type": "object",
"additionalProperties": false,
"required": [
"quantity",
"price",
"acknowledged"
],
"properties": {
"quantity": {
"$ref": "#/components/schemas/Quantity"
},
"price": {
"$ref": "#/components/schemas/Money"
},
"agent": {
"type": "boolean"
},
"thirdParty": {
"anyOf": [
{
"$ref": "#/components/schemas/Money"
},
{
"const": ""
}
]
},
"acknowledged": {
"const": true
}
}
}Mandate
{
"type": "object",
"additionalProperties": false,
"required": [
"country",
"qualified",
"min",
"max"
],
"properties": {
"country": {
"enum": [
"AE",
"SG",
"US",
"BR",
"HK",
"GB"
]
},
"qualified": {
"type": "boolean"
},
"min": {
"$ref": "#/components/schemas/Money"
},
"max": {
"$ref": "#/components/schemas/Money"
}
}
}Verify
{
"type": "object",
"additionalProperties": false,
"required": [
"ownership",
"transfer",
"issuer",
"jurisdiction",
"unencumbered",
"gateway",
"documents",
"buyerReview",
"reference"
],
"properties": {
"ownership": {
"const": true
},
"transfer": {
"const": true
},
"issuer": {
"const": true
},
"jurisdiction": {
"const": true
},
"unencumbered": {
"const": true
},
"gateway": {
"const": true
},
"documents": {
"const": true
},
"buyerReview": {
"const": true
},
"reference": {
"$ref": "#/components/schemas/Reference"
}
}
}Propose
{
"type": "object",
"additionalProperties": false,
"required": [
"price"
],
"properties": {
"price": {
"$ref": "#/components/schemas/Money"
}
}
}Accept
{
"type": "object",
"additionalProperties": false,
"required": [
"proposalVersion",
"acknowledged"
],
"properties": {
"proposalVersion": {
"type": "integer",
"minimum": 1
},
"acknowledged": {
"const": true
}
}
}Instructions
{
"type": "object",
"additionalProperties": false,
"required": [
"destination",
"beneficiary",
"controlRef",
"gatewayRef",
"reference"
],
"properties": {
"destination": {
"$ref": "#/components/schemas/Reference"
},
"beneficiary": {
"$ref": "#/components/schemas/Reference"
},
"controlRef": {
"$ref": "#/components/schemas/Reference"
},
"gatewayRef": {
"$ref": "#/components/schemas/Reference"
},
"reference": {
"$ref": "#/components/schemas/Reference"
}
}
}Sign
{
"type": "object",
"additionalProperties": false,
"required": [
"proposalVersion",
"acknowledged",
"reference"
],
"properties": {
"proposalVersion": {
"type": "integer",
"minimum": 1
},
"acknowledged": {
"const": true
},
"reference": {
"$ref": "#/components/schemas/Reference"
}
}
}ReferenceOnly
{
"type": "object",
"additionalProperties": false,
"required": [
"reference"
],
"properties": {
"reference": {
"$ref": "#/components/schemas/Reference"
}
}
}Cash
{
"type": "object",
"additionalProperties": false,
"required": [
"reference",
"amount",
"beneficiary",
"currency"
],
"properties": {
"reference": {
"$ref": "#/components/schemas/Reference"
},
"amount": {
"$ref": "#/components/schemas/Money"
},
"beneficiary": {
"type": "string",
"description": "Exact frozen beneficiary"
},
"currency": {
"const": "USD"
}
}
}Delivery
{
"type": "object",
"additionalProperties": false,
"required": [
"reference",
"quantity",
"network",
"tokenRef",
"destination",
"sourceAccount"
],
"properties": {
"reference": {
"$ref": "#/components/schemas/Reference"
},
"quantity": {
"$ref": "#/components/schemas/Quantity"
},
"network": {
"type": "string"
},
"tokenRef": {
"type": "string"
},
"destination": {
"type": "string"
},
"sourceAccount": {
"type": "string"
}
},
"description": "All delivery values must equal the frozen simulated settlement"
}ReasonOnly
{
"type": "object",
"additionalProperties": false,
"required": [
"reason"
],
"properties": {
"reason": {
"$ref": "#/components/schemas/Reason"
}
}
}Resolve
{
"type": "object",
"additionalProperties": false,
"required": [
"reason",
"reference"
],
"properties": {
"reason": {
"$ref": "#/components/schemas/Reason"
},
"reference": {
"$ref": "#/components/schemas/Reference"
}
}
}CloseAgreement
{
"type": "object",
"additionalProperties": false,
"required": [
"reference",
"holderReleaseRef",
"buyerReleaseRef",
"providerClosureRef",
"reason",
"noMovement"
],
"properties": {
"reference": {
"$ref": "#/components/schemas/Reference"
},
"holderReleaseRef": {
"$ref": "#/components/schemas/Reference"
},
"buyerReleaseRef": {
"$ref": "#/components/schemas/Reference"
},
"providerClosureRef": {
"$ref": "#/components/schemas/Reference"
},
"reason": {
"$ref": "#/components/schemas/Reason"
},
"noMovement": {
"const": true
}
}
}Message
{
"type": "object",
"additionalProperties": false,
"required": [
"body"
],
"properties": {
"body": {
"type": "string",
"minLength": 1,
"maxLength": 1200,
"pattern": "\\S"
}
}
}Feedback
{
"type": "object",
"additionalProperties": false,
"required": [
"score",
"body"
],
"properties": {
"score": {
"type": "integer",
"minimum": 1,
"maximum": 5
},
"body": {
"type": "string",
"maxLength": 1200
}
}
}OpenAPI candidato produtivo separado