{
  "openapi": "3.1.0",
  "info": {
    "title": "Atlas Sales OS — Action API",
    "version": "1.1.1",
    "description": "Contrato público v1 para capacidades comerciais canônicas. O Atlas resolve internamente a empresa, o sistema conectado e as políticas aplicáveis. A disponibilidade efetiva deve ser consultada em GET /v1/capabilities com a credencial do ambiente. O contrato reconhece 42 ações. Algumas podem estar indisponíveis para uma credencial ou ambiente e retornar CAPABILITY_UNAVAILABLE."
  },
  "servers": [
    {
      "url": "https://atlas-api.guissoppi.com",
      "description": "Ambiente de homologação da Action API. Exige credencial Bearer fornecida pelo Atlas."
    }
  ],
  "tags": [
    {
      "name": "System"
    },
    {
      "name": "Actions"
    },
    {
      "name": "Operations"
    },
    {
      "name": "Capabilities"
    },
    {
      "name": "Orders"
    }
  ],
  "security": [
    {
      "AtlasBearer": []
    }
  ],
  "paths": {
    "/health": {
      "get": {
        "tags": [
          "System"
        ],
        "summary": "Verificar se o processo da API está ativo",
        "operationId": "getHealth",
        "security": [],
        "responses": {
          "200": {
            "description": "Processo ativo",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Health"
                }
              }
            }
          }
        }
      }
    },
    "/ready": {
      "get": {
        "tags": [
          "System"
        ],
        "summary": "Verificar se a API está pronta para receber tráfego",
        "operationId": "getReadiness",
        "security": [],
        "responses": {
          "200": {
            "description": "Dependências disponíveis",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Readiness"
                }
              }
            }
          },
          "503": {
            "description": "Dependências indisponíveis",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Readiness"
                }
              }
            }
          }
        }
      }
    },
    "/v1/actions": {
      "post": {
        "tags": [
          "Actions"
        ],
        "summary": "Solicitar capacidade comercial canônica",
        "operationId": "executeAction",
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "description": "Obrigatório para mutações; estável para a mesma ação e versão. A mesma chave com corpo diferente resulta em 409.",
            "schema": {
              "type": "string",
              "minLength": 8,
              "maxLength": 200
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ActionRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Resultado síncrono, inclusive bloqueio ou indisponibilidade",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ActionResponse"
                }
              }
            }
          },
          "400": {
            "description": "Requisição inválida",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Credencial ausente ou inválida",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Escopo não autorizado",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Chave de idempotência em conflito",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Gateway ou persistência indisponível",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v1/operations/{operation_id}": {
      "get": {
        "tags": [
          "Operations"
        ],
        "summary": "Consultar uma operação registrada",
        "operationId": "getOperation",
        "parameters": [
          {
            "name": "operation_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^op_[a-f0-9-]{36}$"
            }
          },
          {
            "name": "scenario_id",
            "in": "query",
            "description": "Namespace de homologação, quando fornecido pelo Atlas",
            "schema": {
              "type": "string",
              "pattern": "^[a-z0-9][a-z0-9_-]{0,62}$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Estado registrado",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Operation"
                }
              }
            }
          },
          "400": {
            "description": "Requisição inválida",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Credencial ausente ou inválida",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Operação não encontrada ou não visível",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Gateway ou persistência indisponível",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v1/capabilities": {
      "get": {
        "tags": [
          "Capabilities"
        ],
        "summary": "Consultar disponibilidade para a credencial autenticada",
        "operationId": "listCapabilities",
        "responses": {
          "200": {
            "description": "Lista efetiva para a credencial",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Capability"
                      }
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Credencial ausente ou inválida",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Gateway ou persistência indisponível",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v1/orders": {
      "get": {
        "tags": [
          "Orders"
        ],
        "summary": "Rota reservada, indisponível no runtime atual",
        "operationId": "listOrdersReserved",
        "responses": {
          "401": {
            "description": "Credencial ausente ou inválida",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Gateway ou persistência indisponível",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "AtlasBearer": {
        "type": "http",
        "scheme": "bearer",
        "description": "Credencial máquina a máquina por ambiente e empresa, emitida e rotacionada pelo Atlas."
      }
    },
    "schemas": {
      "Conversation": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "id": {
            "type": "string",
            "minLength": 1
          },
          "contact_id": {
            "type": "string",
            "minLength": 1
          },
          "phone": {
            "type": "string",
            "pattern": "^[0-9]{10,15}$"
          }
        },
        "required": [
          "id"
        ]
      },
      "Context": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "flow_version": {
            "type": "string"
          },
          "stage": {
            "type": "string"
          },
          "agent_decision_id": {
            "type": "string"
          },
          "scenario_id": {
            "type": "string",
            "pattern": "^[a-z0-9][a-z0-9_-]{0,62}$",
            "description": "Namespace opcional fornecido pelo Atlas para separar dados de homologação"
          }
        },
        "required": []
      },
      "CustomerResolveArguments": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "contact_id": {
            "type": "string"
          },
          "phone": {
            "type": "string",
            "pattern": "^[0-9]{10,15}$"
          },
          "document": {
            "type": "string",
            "description": "Documento informado; validar acesso antes de consultar dados comerciais"
          }
        },
        "required": []
      },
      "CustomerCreateArguments": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1
          },
          "phone": {
            "type": "string",
            "pattern": "^[0-9]{10,15}$"
          },
          "bairro": {
            "type": "string",
            "minLength": 1
          },
          "reference": {
            "type": "string",
            "minLength": 1
          }
        },
        "required": [
          "name",
          "phone",
          "bairro",
          "reference"
        ]
      },
      "CustomerUpdateArguments": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "customer_ref": {
            "type": "string",
            "minLength": 1
          },
          "bairro": {
            "type": "string",
            "minLength": 1
          },
          "reference": {
            "type": "string",
            "minLength": 1
          }
        },
        "required": [
          "customer_ref"
        ]
      },
      "ProductCreateArguments": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1
          },
          "unit": {
            "type": "string",
            "minLength": 1
          },
          "price": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "amount_minor": {
                "type": "integer",
                "minimum": 0
              },
              "currency": {
                "const": "BRL"
              }
            },
            "required": [
              "amount_minor",
              "currency"
            ]
          }
        },
        "required": [
          "name",
          "unit",
          "price"
        ]
      },
      "ProductUpdateArguments": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "product_ref": {
            "type": "string",
            "minLength": 1
          },
          "expected_version": {
            "type": "integer",
            "minimum": 1
          },
          "name": {
            "type": "string",
            "minLength": 1
          },
          "price": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "amount_minor": {
                "type": "integer",
                "minimum": 0
              },
              "currency": {
                "const": "BRL"
              }
            },
            "required": [
              "amount_minor",
              "currency"
            ]
          }
        },
        "required": [
          "product_ref",
          "expected_version"
        ]
      },
      "CatalogSearchArguments": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "query": {
            "type": "string",
            "minLength": 2
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "maximum": 50
          },
          "customer_ref": {
            "type": "string"
          }
        },
        "required": [
          "query"
        ]
      },
      "PriceLookupArguments": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "product_ref": {
            "type": "string",
            "minLength": 1
          },
          "customer_ref": {
            "type": "string",
            "minLength": 1
          }
        },
        "required": [
          "product_ref",
          "customer_ref"
        ]
      },
      "StockCheckArguments": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "product_ref": {
            "type": "string",
            "minLength": 1
          },
          "quantity": {
            "type": "number",
            "exclusiveMinimum": 0
          },
          "unit": {
            "type": "string"
          }
        },
        "required": [
          "product_ref"
        ]
      },
      "ReferenceArguments": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "ref": {
            "type": "string",
            "minLength": 1
          }
        },
        "required": [
          "ref"
        ]
      },
      "ListArguments": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "cursor": {
            "type": "string"
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "maximum": 100
          },
          "customer_ref": {
            "type": "string"
          }
        },
        "required": []
      },
      "Money": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "amount_minor": {
            "type": "integer",
            "minimum": 0
          },
          "currency": {
            "type": "string",
            "pattern": "^[A-Z]{3}$"
          }
        },
        "required": [
          "amount_minor",
          "currency"
        ]
      },
      "OrderItem": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "product_ref": {
            "type": "string",
            "minLength": 1
          },
          "quantity": {
            "type": "number",
            "exclusiveMinimum": 0
          },
          "unit": {
            "type": "string",
            "minLength": 1
          }
        },
        "required": [
          "product_ref",
          "quantity",
          "unit"
        ]
      },
      "QuoteCreateArguments": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "customer_ref": {
            "type": "string",
            "minLength": 1
          },
          "items": {
            "type": "array",
            "minItems": 1,
            "items": {
              "$ref": "#/components/schemas/OrderItem"
            }
          },
          "notes": {
            "type": "string",
            "maxLength": 500
          }
        },
        "required": [
          "customer_ref",
          "items"
        ]
      },
      "QuoteUpdateArguments": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "quote_ref": {
            "type": "string",
            "minLength": 1
          },
          "quote_version": {
            "type": "integer",
            "minimum": 1
          },
          "items": {
            "type": "array",
            "minItems": 1,
            "items": {
              "$ref": "#/components/schemas/OrderItem"
            }
          }
        },
        "required": [
          "quote_ref",
          "quote_version",
          "items"
        ]
      },
      "Confirmation": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "quote_ref": {
            "type": "string",
            "minLength": 1
          },
          "quote_version": {
            "type": "integer",
            "minimum": 1
          },
          "summary_digest": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$"
          },
          "confirmed_at": {
            "type": "string",
            "format": "date-time"
          },
          "confirmation_event_id": {
            "type": "string",
            "minLength": 1
          }
        },
        "required": [
          "quote_ref",
          "quote_version",
          "summary_digest",
          "confirmed_at",
          "confirmation_event_id"
        ]
      },
      "OrderCreateArguments": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "customer_ref": {
            "type": "string",
            "minLength": 1
          },
          "quote_ref": {
            "type": "string",
            "minLength": 1
          },
          "quote_version": {
            "type": "integer",
            "minimum": 1
          },
          "confirmation": {
            "$ref": "#/components/schemas/Confirmation"
          }
        },
        "required": [
          "customer_ref",
          "quote_ref",
          "quote_version",
          "confirmation"
        ]
      },
      "OrderReconcileArguments": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "quote_ref": {
            "type": "string",
            "minLength": 1
          },
          "confirmation_event_id": {
            "type": "string",
            "minLength": 1
          }
        },
        "required": [
          "quote_ref",
          "confirmation_event_id"
        ]
      },
      "Error": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "code": {
            "type": "string"
          },
          "message_for_agent": {
            "type": "string"
          },
          "safe_customer_message": {
            "type": "string"
          },
          "handoff_required": {
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message_for_agent",
          "safe_customer_message",
          "handoff_required"
        ]
      },
      "ActionResponse": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "schema_version": {
            "const": "v1"
          },
          "request_id": {
            "type": "string"
          },
          "operation_id": {
            "type": "string",
            "pattern": "^op_[a-f0-9-]{36}$"
          },
          "trace_id": {
            "type": "string",
            "pattern": "^trace_[a-f0-9-]{36}$"
          },
          "operation": {
            "type": "string",
            "enum": [
              "customer.resolve",
              "customer.create",
              "customer.update",
              "product.create",
              "product.update",
              "catalog.search",
              "price.lookup",
              "stock.check",
              "quote.get",
              "quote.list",
              "quote.create",
              "quote.update",
              "order.get",
              "order.list",
              "order.create",
              "order.reconcile",
              "invoice.get",
              "invoice.list",
              "document.get",
              "boleto.get",
              "customer.search",
              "product.get",
              "price.list",
              "inventory.list",
              "order.history",
              "order.update",
              "order.cancel",
              "order.confirm",
              "order.fulfillment.get",
              "order.invoice",
              "invoice.status",
              "invoice.issue",
              "receivable.list",
              "receivable.get",
              "boleto.list",
              "payment.list",
              "payment.get",
              "financial-entry.list",
              "financial-entry.create",
              "inventory.movement.create",
              "payment.update",
              "boleto.issue"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "completed",
              "not_found",
              "ambiguous",
              "blocked",
              "failed",
              "not_implemented",
              "reconciliation_required"
            ]
          },
          "result": {
            "type": "object",
            "description": "Resultado canônico da operação; não expõe o formato nativo do sistema conectado"
          },
          "error": {
            "$ref": "#/components/schemas/Error"
          },
          "retryable": {
            "const": false
          },
          "next_actions": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "schema_version",
          "request_id",
          "operation_id",
          "trace_id",
          "operation",
          "status",
          "retryable"
        ]
      },
      "ErrorResponse": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "failed",
              "blocked"
            ]
          },
          "retryable": {
            "const": false
          },
          "error": {
            "$ref": "#/components/schemas/Error"
          }
        },
        "required": [
          "status",
          "retryable",
          "error"
        ]
      },
      "Operation": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "operation_id": {
            "type": "string"
          },
          "request_id": {
            "type": "string"
          },
          "operation": {
            "type": "string",
            "enum": [
              "customer.resolve",
              "customer.create",
              "customer.update",
              "product.create",
              "product.update",
              "catalog.search",
              "price.lookup",
              "stock.check",
              "quote.get",
              "quote.list",
              "quote.create",
              "quote.update",
              "order.get",
              "order.list",
              "order.create",
              "order.reconcile",
              "invoice.get",
              "invoice.list",
              "document.get",
              "boleto.get",
              "customer.search",
              "product.get",
              "price.list",
              "inventory.list",
              "order.history",
              "order.update",
              "order.cancel",
              "order.confirm",
              "order.fulfillment.get",
              "order.invoice",
              "invoice.status",
              "invoice.issue",
              "receivable.list",
              "receivable.get",
              "boleto.list",
              "payment.list",
              "payment.get",
              "financial-entry.list",
              "financial-entry.create",
              "inventory.movement.create",
              "payment.update",
              "boleto.issue"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "completed",
              "not_found",
              "ambiguous",
              "blocked",
              "failed",
              "not_implemented",
              "reconciliation_required"
            ]
          },
          "updated_at": {
            "type": "string",
            "format": "date-time"
          },
          "response": {
            "$ref": "#/components/schemas/ActionResponse"
          }
        },
        "required": [
          "operation_id",
          "request_id",
          "operation",
          "status",
          "updated_at"
        ]
      },
      "Capability": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "operation": {
            "type": "string",
            "enum": [
              "customer.resolve",
              "customer.create",
              "customer.update",
              "product.create",
              "product.update",
              "catalog.search",
              "price.lookup",
              "stock.check",
              "quote.get",
              "quote.list",
              "quote.create",
              "quote.update",
              "order.get",
              "order.list",
              "order.create",
              "order.reconcile",
              "invoice.get",
              "invoice.list",
              "document.get",
              "boleto.get",
              "customer.search",
              "product.get",
              "price.list",
              "inventory.list",
              "order.history",
              "order.update",
              "order.cancel",
              "order.confirm",
              "order.fulfillment.get",
              "order.invoice",
              "invoice.status",
              "invoice.issue",
              "receivable.list",
              "receivable.get",
              "boleto.list",
              "payment.list",
              "payment.get",
              "financial-entry.list",
              "financial-entry.create",
              "inventory.movement.create",
              "payment.update",
              "boleto.issue"
            ]
          },
          "available": {
            "type": "boolean"
          },
          "mode": {
            "type": "string",
            "enum": [
              "sync",
              "async",
              "disabled"
            ]
          },
          "reason_code": {
            "type": "string"
          }
        },
        "required": [
          "operation",
          "available",
          "mode"
        ]
      },
      "Order": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "ref": {
            "type": "string"
          },
          "customer_ref": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "description": "Estado normalizado; sem inferir pagamento, faturamento ou entrega"
          },
          "total": {
            "$ref": "#/components/schemas/Money"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "ref",
          "customer_ref",
          "status"
        ]
      },
      "OrdersPage": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Order"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "data",
          "next_cursor"
        ]
      },
      "Health": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "status": {
            "const": "ok"
          },
          "service": {
            "const": "atlas-action-api"
          },
          "environment": {
            "const": "staging"
          }
        },
        "required": [
          "status",
          "service",
          "environment"
        ]
      },
      "Readiness": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "ready",
              "unavailable"
            ]
          },
          "service": {
            "const": "atlas-action-api"
          }
        },
        "required": [
          "status",
          "service"
        ]
      },
      "Action_customer_resolve": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "schema_version": {
            "const": "v1"
          },
          "request_id": {
            "type": "string",
            "minLength": 1
          },
          "operation": {
            "const": "customer.resolve"
          },
          "conversation": {
            "$ref": "#/components/schemas/Conversation"
          },
          "arguments": {
            "$ref": "#/components/schemas/CustomerResolveArguments"
          },
          "context": {
            "$ref": "#/components/schemas/Context"
          }
        },
        "required": [
          "schema_version",
          "request_id",
          "operation",
          "conversation",
          "arguments"
        ]
      },
      "Action_customer_create": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "schema_version": {
            "const": "v1"
          },
          "request_id": {
            "type": "string",
            "minLength": 1
          },
          "operation": {
            "const": "customer.create"
          },
          "conversation": {
            "$ref": "#/components/schemas/Conversation"
          },
          "arguments": {
            "$ref": "#/components/schemas/CustomerCreateArguments"
          },
          "context": {
            "$ref": "#/components/schemas/Context"
          }
        },
        "required": [
          "schema_version",
          "request_id",
          "operation",
          "conversation",
          "arguments"
        ]
      },
      "Action_customer_update": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "schema_version": {
            "const": "v1"
          },
          "request_id": {
            "type": "string",
            "minLength": 1
          },
          "operation": {
            "const": "customer.update"
          },
          "conversation": {
            "$ref": "#/components/schemas/Conversation"
          },
          "arguments": {
            "$ref": "#/components/schemas/CustomerUpdateArguments"
          },
          "context": {
            "$ref": "#/components/schemas/Context"
          }
        },
        "required": [
          "schema_version",
          "request_id",
          "operation",
          "conversation",
          "arguments"
        ]
      },
      "Action_product_create": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "schema_version": {
            "const": "v1"
          },
          "request_id": {
            "type": "string",
            "minLength": 1
          },
          "operation": {
            "const": "product.create"
          },
          "conversation": {
            "$ref": "#/components/schemas/Conversation"
          },
          "arguments": {
            "$ref": "#/components/schemas/ProductCreateArguments"
          },
          "context": {
            "$ref": "#/components/schemas/Context"
          }
        },
        "required": [
          "schema_version",
          "request_id",
          "operation",
          "conversation",
          "arguments"
        ]
      },
      "Action_product_update": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "schema_version": {
            "const": "v1"
          },
          "request_id": {
            "type": "string",
            "minLength": 1
          },
          "operation": {
            "const": "product.update"
          },
          "conversation": {
            "$ref": "#/components/schemas/Conversation"
          },
          "arguments": {
            "$ref": "#/components/schemas/ProductUpdateArguments"
          },
          "context": {
            "$ref": "#/components/schemas/Context"
          }
        },
        "required": [
          "schema_version",
          "request_id",
          "operation",
          "conversation",
          "arguments"
        ]
      },
      "Action_catalog_search": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "schema_version": {
            "const": "v1"
          },
          "request_id": {
            "type": "string",
            "minLength": 1
          },
          "operation": {
            "const": "catalog.search"
          },
          "conversation": {
            "$ref": "#/components/schemas/Conversation"
          },
          "arguments": {
            "$ref": "#/components/schemas/CatalogSearchArguments"
          },
          "context": {
            "$ref": "#/components/schemas/Context"
          }
        },
        "required": [
          "schema_version",
          "request_id",
          "operation",
          "conversation",
          "arguments"
        ]
      },
      "Action_price_lookup": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "schema_version": {
            "const": "v1"
          },
          "request_id": {
            "type": "string",
            "minLength": 1
          },
          "operation": {
            "const": "price.lookup"
          },
          "conversation": {
            "$ref": "#/components/schemas/Conversation"
          },
          "arguments": {
            "$ref": "#/components/schemas/PriceLookupArguments"
          },
          "context": {
            "$ref": "#/components/schemas/Context"
          }
        },
        "required": [
          "schema_version",
          "request_id",
          "operation",
          "conversation",
          "arguments"
        ]
      },
      "Action_stock_check": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "schema_version": {
            "const": "v1"
          },
          "request_id": {
            "type": "string",
            "minLength": 1
          },
          "operation": {
            "const": "stock.check"
          },
          "conversation": {
            "$ref": "#/components/schemas/Conversation"
          },
          "arguments": {
            "$ref": "#/components/schemas/StockCheckArguments"
          },
          "context": {
            "$ref": "#/components/schemas/Context"
          }
        },
        "required": [
          "schema_version",
          "request_id",
          "operation",
          "conversation",
          "arguments"
        ]
      },
      "Action_quote_get": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "schema_version": {
            "const": "v1"
          },
          "request_id": {
            "type": "string",
            "minLength": 1
          },
          "operation": {
            "const": "quote.get"
          },
          "conversation": {
            "$ref": "#/components/schemas/Conversation"
          },
          "arguments": {
            "$ref": "#/components/schemas/ReferenceArguments"
          },
          "context": {
            "$ref": "#/components/schemas/Context"
          }
        },
        "required": [
          "schema_version",
          "request_id",
          "operation",
          "conversation",
          "arguments"
        ]
      },
      "Action_quote_list": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "schema_version": {
            "const": "v1"
          },
          "request_id": {
            "type": "string",
            "minLength": 1
          },
          "operation": {
            "const": "quote.list"
          },
          "conversation": {
            "$ref": "#/components/schemas/Conversation"
          },
          "arguments": {
            "$ref": "#/components/schemas/ListArguments"
          },
          "context": {
            "$ref": "#/components/schemas/Context"
          }
        },
        "required": [
          "schema_version",
          "request_id",
          "operation",
          "conversation",
          "arguments"
        ]
      },
      "Action_quote_create": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "schema_version": {
            "const": "v1"
          },
          "request_id": {
            "type": "string",
            "minLength": 1
          },
          "operation": {
            "const": "quote.create"
          },
          "conversation": {
            "$ref": "#/components/schemas/Conversation"
          },
          "arguments": {
            "$ref": "#/components/schemas/QuoteCreateArguments"
          },
          "context": {
            "$ref": "#/components/schemas/Context"
          }
        },
        "required": [
          "schema_version",
          "request_id",
          "operation",
          "conversation",
          "arguments"
        ]
      },
      "Action_quote_update": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "schema_version": {
            "const": "v1"
          },
          "request_id": {
            "type": "string",
            "minLength": 1
          },
          "operation": {
            "const": "quote.update"
          },
          "conversation": {
            "$ref": "#/components/schemas/Conversation"
          },
          "arguments": {
            "$ref": "#/components/schemas/QuoteUpdateArguments"
          },
          "context": {
            "$ref": "#/components/schemas/Context"
          }
        },
        "required": [
          "schema_version",
          "request_id",
          "operation",
          "conversation",
          "arguments"
        ]
      },
      "Action_order_get": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "schema_version": {
            "const": "v1"
          },
          "request_id": {
            "type": "string",
            "minLength": 1
          },
          "operation": {
            "const": "order.get"
          },
          "conversation": {
            "$ref": "#/components/schemas/Conversation"
          },
          "arguments": {
            "$ref": "#/components/schemas/ReferenceArguments"
          },
          "context": {
            "$ref": "#/components/schemas/Context"
          }
        },
        "required": [
          "schema_version",
          "request_id",
          "operation",
          "conversation",
          "arguments"
        ]
      },
      "Action_order_list": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "schema_version": {
            "const": "v1"
          },
          "request_id": {
            "type": "string",
            "minLength": 1
          },
          "operation": {
            "const": "order.list"
          },
          "conversation": {
            "$ref": "#/components/schemas/Conversation"
          },
          "arguments": {
            "$ref": "#/components/schemas/ListArguments"
          },
          "context": {
            "$ref": "#/components/schemas/Context"
          }
        },
        "required": [
          "schema_version",
          "request_id",
          "operation",
          "conversation",
          "arguments"
        ]
      },
      "Action_order_create": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "schema_version": {
            "const": "v1"
          },
          "request_id": {
            "type": "string",
            "minLength": 1
          },
          "operation": {
            "const": "order.create"
          },
          "conversation": {
            "$ref": "#/components/schemas/Conversation"
          },
          "arguments": {
            "$ref": "#/components/schemas/OrderCreateArguments"
          },
          "context": {
            "$ref": "#/components/schemas/Context"
          }
        },
        "required": [
          "schema_version",
          "request_id",
          "operation",
          "conversation",
          "arguments"
        ]
      },
      "Action_order_reconcile": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "schema_version": {
            "const": "v1"
          },
          "request_id": {
            "type": "string",
            "minLength": 1
          },
          "operation": {
            "const": "order.reconcile"
          },
          "conversation": {
            "$ref": "#/components/schemas/Conversation"
          },
          "arguments": {
            "$ref": "#/components/schemas/OrderReconcileArguments"
          },
          "context": {
            "$ref": "#/components/schemas/Context"
          }
        },
        "required": [
          "schema_version",
          "request_id",
          "operation",
          "conversation",
          "arguments"
        ]
      },
      "Action_invoice_get": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "schema_version": {
            "const": "v1"
          },
          "request_id": {
            "type": "string",
            "minLength": 1
          },
          "operation": {
            "const": "invoice.get"
          },
          "conversation": {
            "$ref": "#/components/schemas/Conversation"
          },
          "arguments": {
            "$ref": "#/components/schemas/ReferenceArguments"
          },
          "context": {
            "$ref": "#/components/schemas/Context"
          }
        },
        "required": [
          "schema_version",
          "request_id",
          "operation",
          "conversation",
          "arguments"
        ]
      },
      "Action_invoice_list": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "schema_version": {
            "const": "v1"
          },
          "request_id": {
            "type": "string",
            "minLength": 1
          },
          "operation": {
            "const": "invoice.list"
          },
          "conversation": {
            "$ref": "#/components/schemas/Conversation"
          },
          "arguments": {
            "$ref": "#/components/schemas/ListArguments"
          },
          "context": {
            "$ref": "#/components/schemas/Context"
          }
        },
        "required": [
          "schema_version",
          "request_id",
          "operation",
          "conversation",
          "arguments"
        ]
      },
      "Action_document_get": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "schema_version": {
            "const": "v1"
          },
          "request_id": {
            "type": "string",
            "minLength": 1
          },
          "operation": {
            "const": "document.get"
          },
          "conversation": {
            "$ref": "#/components/schemas/Conversation"
          },
          "arguments": {
            "$ref": "#/components/schemas/ReferenceArguments"
          },
          "context": {
            "$ref": "#/components/schemas/Context"
          }
        },
        "required": [
          "schema_version",
          "request_id",
          "operation",
          "conversation",
          "arguments"
        ]
      },
      "Action_boleto_get": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "schema_version": {
            "const": "v1"
          },
          "request_id": {
            "type": "string",
            "minLength": 1
          },
          "operation": {
            "const": "boleto.get"
          },
          "conversation": {
            "$ref": "#/components/schemas/Conversation"
          },
          "arguments": {
            "$ref": "#/components/schemas/BoletoGetArguments"
          },
          "context": {
            "$ref": "#/components/schemas/Context"
          }
        },
        "required": [
          "schema_version",
          "request_id",
          "operation",
          "conversation",
          "arguments"
        ]
      },
      "ActionRequest": {
        "oneOf": [
          {
            "$ref": "#/components/schemas/Action_customer_resolve"
          },
          {
            "$ref": "#/components/schemas/Action_customer_create"
          },
          {
            "$ref": "#/components/schemas/Action_customer_update"
          },
          {
            "$ref": "#/components/schemas/Action_product_create"
          },
          {
            "$ref": "#/components/schemas/Action_product_update"
          },
          {
            "$ref": "#/components/schemas/Action_catalog_search"
          },
          {
            "$ref": "#/components/schemas/Action_price_lookup"
          },
          {
            "$ref": "#/components/schemas/Action_stock_check"
          },
          {
            "$ref": "#/components/schemas/Action_quote_get"
          },
          {
            "$ref": "#/components/schemas/Action_quote_list"
          },
          {
            "$ref": "#/components/schemas/Action_quote_create"
          },
          {
            "$ref": "#/components/schemas/Action_quote_update"
          },
          {
            "$ref": "#/components/schemas/Action_order_get"
          },
          {
            "$ref": "#/components/schemas/Action_order_list"
          },
          {
            "$ref": "#/components/schemas/Action_order_create"
          },
          {
            "$ref": "#/components/schemas/Action_order_reconcile"
          },
          {
            "$ref": "#/components/schemas/Action_invoice_get"
          },
          {
            "$ref": "#/components/schemas/Action_invoice_list"
          },
          {
            "$ref": "#/components/schemas/Action_document_get"
          },
          {
            "$ref": "#/components/schemas/Action_boleto_get"
          },
          {
            "$ref": "#/components/schemas/Action_customer_search"
          },
          {
            "$ref": "#/components/schemas/Action_product_get"
          },
          {
            "$ref": "#/components/schemas/Action_price_list"
          },
          {
            "$ref": "#/components/schemas/Action_inventory_list"
          },
          {
            "$ref": "#/components/schemas/Action_order_history"
          },
          {
            "$ref": "#/components/schemas/Action_order_update"
          },
          {
            "$ref": "#/components/schemas/Action_order_cancel"
          },
          {
            "$ref": "#/components/schemas/Action_order_confirm"
          },
          {
            "$ref": "#/components/schemas/Action_order_fulfillment_get"
          },
          {
            "$ref": "#/components/schemas/Action_order_invoice"
          },
          {
            "$ref": "#/components/schemas/Action_invoice_status"
          },
          {
            "$ref": "#/components/schemas/Action_invoice_issue"
          },
          {
            "$ref": "#/components/schemas/Action_receivable_list"
          },
          {
            "$ref": "#/components/schemas/Action_receivable_get"
          },
          {
            "$ref": "#/components/schemas/Action_boleto_list"
          },
          {
            "$ref": "#/components/schemas/Action_payment_list"
          },
          {
            "$ref": "#/components/schemas/Action_payment_get"
          },
          {
            "$ref": "#/components/schemas/Action_financial_entry_list"
          },
          {
            "$ref": "#/components/schemas/Action_financial_entry_create"
          },
          {
            "$ref": "#/components/schemas/Action_inventory_movement_create"
          },
          {
            "$ref": "#/components/schemas/Action_payment_update"
          },
          {
            "$ref": "#/components/schemas/Action_boleto_issue"
          }
        ],
        "discriminator": {
          "propertyName": "operation",
          "mapping": {
            "customer.resolve": "#/components/schemas/Action_customer_resolve",
            "customer.create": "#/components/schemas/Action_customer_create",
            "customer.update": "#/components/schemas/Action_customer_update",
            "product.create": "#/components/schemas/Action_product_create",
            "product.update": "#/components/schemas/Action_product_update",
            "catalog.search": "#/components/schemas/Action_catalog_search",
            "price.lookup": "#/components/schemas/Action_price_lookup",
            "stock.check": "#/components/schemas/Action_stock_check",
            "quote.get": "#/components/schemas/Action_quote_get",
            "quote.list": "#/components/schemas/Action_quote_list",
            "quote.create": "#/components/schemas/Action_quote_create",
            "quote.update": "#/components/schemas/Action_quote_update",
            "order.get": "#/components/schemas/Action_order_get",
            "order.list": "#/components/schemas/Action_order_list",
            "order.create": "#/components/schemas/Action_order_create",
            "order.reconcile": "#/components/schemas/Action_order_reconcile",
            "invoice.get": "#/components/schemas/Action_invoice_get",
            "invoice.list": "#/components/schemas/Action_invoice_list",
            "document.get": "#/components/schemas/Action_document_get",
            "boleto.get": "#/components/schemas/Action_boleto_get",
            "customer.search": "#/components/schemas/Action_customer_search",
            "product.get": "#/components/schemas/Action_product_get",
            "price.list": "#/components/schemas/Action_price_list",
            "inventory.list": "#/components/schemas/Action_inventory_list",
            "order.history": "#/components/schemas/Action_order_history",
            "order.update": "#/components/schemas/Action_order_update",
            "order.cancel": "#/components/schemas/Action_order_cancel",
            "order.confirm": "#/components/schemas/Action_order_confirm",
            "order.fulfillment.get": "#/components/schemas/Action_order_fulfillment_get",
            "order.invoice": "#/components/schemas/Action_order_invoice",
            "invoice.status": "#/components/schemas/Action_invoice_status",
            "invoice.issue": "#/components/schemas/Action_invoice_issue",
            "receivable.list": "#/components/schemas/Action_receivable_list",
            "receivable.get": "#/components/schemas/Action_receivable_get",
            "boleto.list": "#/components/schemas/Action_boleto_list",
            "payment.list": "#/components/schemas/Action_payment_list",
            "payment.get": "#/components/schemas/Action_payment_get",
            "financial-entry.list": "#/components/schemas/Action_financial_entry_list",
            "financial-entry.create": "#/components/schemas/Action_financial_entry_create",
            "inventory.movement.create": "#/components/schemas/Action_inventory_movement_create",
            "payment.update": "#/components/schemas/Action_payment_update",
            "boleto.issue": "#/components/schemas/Action_boleto_issue"
          }
        }
      },
      "CustomerSelector": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "phone": {
            "type": "string",
            "pattern": "^[0-9]{10,15}$"
          },
          "tax_id": {
            "type": "string",
            "pattern": "^([0-9]{11}|[0-9]{14})$"
          },
          "customer_ref": {
            "type": "string",
            "minLength": 1
          },
          "external_ref": {
            "type": "string",
            "minLength": 1
          }
        },
        "required": [],
        "minProperties": 1
      },
      "SensitiveReadArguments": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "selector": {
            "$ref": "#/components/schemas/CustomerSelector"
          },
          "verified_customer_ref": {
            "type": "string",
            "minLength": 1
          },
          "verification_event_id": {
            "type": "string",
            "minLength": 1
          },
          "cursor": {
            "type": "string",
            "minLength": 1
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "maximum": 100
          },
          "status": {
            "type": "string",
            "enum": [
              "open",
              "overdue",
              "paid",
              "confirmed",
              "failed",
              "reversed",
              "cancelled",
              "all"
            ]
          },
          "from": {
            "type": "string",
            "format": "date"
          },
          "to": {
            "type": "string",
            "format": "date"
          }
        },
        "required": [
          "selector",
          "verified_customer_ref",
          "verification_event_id"
        ]
      },
      "SensitiveReferenceArguments": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "ref": {
            "type": "string",
            "minLength": 1
          },
          "verified_customer_ref": {
            "type": "string",
            "minLength": 1
          },
          "verification_event_id": {
            "type": "string",
            "minLength": 1
          }
        },
        "required": [
          "ref",
          "verified_customer_ref",
          "verification_event_id"
        ]
      },
      "OrderMutationArguments": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "order_ref": {
            "type": "string",
            "minLength": 1
          },
          "expected_version": {
            "type": "integer",
            "minimum": 1
          },
          "items": {
            "type": "array",
            "minItems": 1,
            "items": {
              "$ref": "#/components/schemas/OrderItem"
            }
          },
          "reason": {
            "type": "string",
            "minLength": 1
          },
          "confirmation_event_id": {
            "type": "string",
            "minLength": 1
          }
        },
        "required": [
          "order_ref",
          "expected_version",
          "reason"
        ]
      },
      "OrderDecisionArguments": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "order_ref": {
            "type": "string",
            "minLength": 1
          },
          "expected_version": {
            "type": "integer",
            "minimum": 1
          },
          "decision_event_id": {
            "type": "string",
            "minLength": 1
          }
        },
        "required": [
          "order_ref",
          "expected_version",
          "decision_event_id"
        ]
      },
      "InvoiceIssueArguments": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "order_ref": {
            "type": "string",
            "minLength": 1
          },
          "expected_version": {
            "type": "integer",
            "minimum": 1
          },
          "fiscal_profile_ref": {
            "type": "string",
            "minLength": 1
          },
          "authorization_event_id": {
            "type": "string",
            "minLength": 1
          }
        },
        "required": [
          "order_ref",
          "expected_version",
          "authorization_event_id"
        ]
      },
      "InventoryMovementArguments": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "product_ref": {
            "type": "string",
            "minLength": 1
          },
          "quantity": {
            "type": "number",
            "exclusiveMinimum": 0
          },
          "unit": {
            "type": "string",
            "minLength": 1
          },
          "movement_type": {
            "type": "string",
            "enum": [
              "reserve",
              "release",
              "debit",
              "credit"
            ]
          },
          "source_ref": {
            "type": "string",
            "minLength": 1
          },
          "location_ref": {
            "type": "string",
            "minLength": 1
          }
        },
        "required": [
          "product_ref",
          "quantity",
          "unit",
          "movement_type",
          "source_ref"
        ]
      },
      "FinancialEntryArguments": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "customer_ref": {
            "type": "string",
            "minLength": 1
          },
          "order_ref": {
            "type": "string",
            "minLength": 1
          },
          "type": {
            "type": "string",
            "enum": [
              "receivable",
              "payable",
              "adjustment"
            ]
          },
          "amount": {
            "$ref": "#/components/schemas/Money"
          },
          "due_date": {
            "type": "string",
            "format": "date"
          },
          "authorization_event_id": {
            "type": "string",
            "minLength": 1
          }
        },
        "required": [
          "customer_ref",
          "type",
          "amount",
          "authorization_event_id"
        ]
      },
      "PaymentUpdateArguments": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "payment_ref": {
            "type": "string",
            "minLength": 1
          },
          "expected_version": {
            "type": "integer",
            "minimum": 1
          },
          "status": {
            "type": "string",
            "enum": [
              "confirmed",
              "failed",
              "reversed"
            ]
          },
          "evidence_ref": {
            "type": "string",
            "minLength": 1
          },
          "authorization_event_id": {
            "type": "string",
            "minLength": 1
          }
        },
        "required": [
          "payment_ref",
          "expected_version",
          "status",
          "evidence_ref",
          "authorization_event_id"
        ]
      },
      "BoletoIssueArguments": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "receivable_ref": {
            "type": "string",
            "minLength": 1
          },
          "authorization_event_id": {
            "type": "string",
            "minLength": 1
          }
        },
        "required": [
          "receivable_ref",
          "authorization_event_id"
        ]
      },
      "Action_customer_search": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "schema_version": {
            "const": "v1"
          },
          "request_id": {
            "type": "string",
            "minLength": 1
          },
          "operation": {
            "const": "customer.search"
          },
          "conversation": {
            "$ref": "#/components/schemas/Conversation"
          },
          "arguments": {
            "$ref": "#/components/schemas/SensitiveReadArguments"
          },
          "context": {
            "$ref": "#/components/schemas/Context"
          }
        },
        "required": [
          "schema_version",
          "request_id",
          "operation",
          "conversation",
          "arguments"
        ]
      },
      "Action_product_get": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "schema_version": {
            "const": "v1"
          },
          "request_id": {
            "type": "string",
            "minLength": 1
          },
          "operation": {
            "const": "product.get"
          },
          "conversation": {
            "$ref": "#/components/schemas/Conversation"
          },
          "arguments": {
            "$ref": "#/components/schemas/ReferenceArguments"
          },
          "context": {
            "$ref": "#/components/schemas/Context"
          }
        },
        "required": [
          "schema_version",
          "request_id",
          "operation",
          "conversation",
          "arguments"
        ]
      },
      "Action_price_list": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "schema_version": {
            "const": "v1"
          },
          "request_id": {
            "type": "string",
            "minLength": 1
          },
          "operation": {
            "const": "price.list"
          },
          "conversation": {
            "$ref": "#/components/schemas/Conversation"
          },
          "arguments": {
            "$ref": "#/components/schemas/SensitiveReadArguments"
          },
          "context": {
            "$ref": "#/components/schemas/Context"
          }
        },
        "required": [
          "schema_version",
          "request_id",
          "operation",
          "conversation",
          "arguments"
        ]
      },
      "Action_inventory_list": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "schema_version": {
            "const": "v1"
          },
          "request_id": {
            "type": "string",
            "minLength": 1
          },
          "operation": {
            "const": "inventory.list"
          },
          "conversation": {
            "$ref": "#/components/schemas/Conversation"
          },
          "arguments": {
            "$ref": "#/components/schemas/SensitiveReadArguments"
          },
          "context": {
            "$ref": "#/components/schemas/Context"
          }
        },
        "required": [
          "schema_version",
          "request_id",
          "operation",
          "conversation",
          "arguments"
        ]
      },
      "Action_order_history": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "schema_version": {
            "const": "v1"
          },
          "request_id": {
            "type": "string",
            "minLength": 1
          },
          "operation": {
            "const": "order.history"
          },
          "conversation": {
            "$ref": "#/components/schemas/Conversation"
          },
          "arguments": {
            "$ref": "#/components/schemas/SensitiveReadArguments"
          },
          "context": {
            "$ref": "#/components/schemas/Context"
          }
        },
        "required": [
          "schema_version",
          "request_id",
          "operation",
          "conversation",
          "arguments"
        ]
      },
      "Action_order_update": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "schema_version": {
            "const": "v1"
          },
          "request_id": {
            "type": "string",
            "minLength": 1
          },
          "operation": {
            "const": "order.update"
          },
          "conversation": {
            "$ref": "#/components/schemas/Conversation"
          },
          "arguments": {
            "$ref": "#/components/schemas/OrderMutationArguments"
          },
          "context": {
            "$ref": "#/components/schemas/Context"
          }
        },
        "required": [
          "schema_version",
          "request_id",
          "operation",
          "conversation",
          "arguments"
        ]
      },
      "Action_order_cancel": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "schema_version": {
            "const": "v1"
          },
          "request_id": {
            "type": "string",
            "minLength": 1
          },
          "operation": {
            "const": "order.cancel"
          },
          "conversation": {
            "$ref": "#/components/schemas/Conversation"
          },
          "arguments": {
            "$ref": "#/components/schemas/OrderDecisionArguments"
          },
          "context": {
            "$ref": "#/components/schemas/Context"
          }
        },
        "required": [
          "schema_version",
          "request_id",
          "operation",
          "conversation",
          "arguments"
        ]
      },
      "Action_order_confirm": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "schema_version": {
            "const": "v1"
          },
          "request_id": {
            "type": "string",
            "minLength": 1
          },
          "operation": {
            "const": "order.confirm"
          },
          "conversation": {
            "$ref": "#/components/schemas/Conversation"
          },
          "arguments": {
            "$ref": "#/components/schemas/OrderDecisionArguments"
          },
          "context": {
            "$ref": "#/components/schemas/Context"
          }
        },
        "required": [
          "schema_version",
          "request_id",
          "operation",
          "conversation",
          "arguments"
        ]
      },
      "Action_order_fulfillment_get": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "schema_version": {
            "const": "v1"
          },
          "request_id": {
            "type": "string",
            "minLength": 1
          },
          "operation": {
            "const": "order.fulfillment.get"
          },
          "conversation": {
            "$ref": "#/components/schemas/Conversation"
          },
          "arguments": {
            "$ref": "#/components/schemas/SensitiveReferenceArguments"
          },
          "context": {
            "$ref": "#/components/schemas/Context"
          }
        },
        "required": [
          "schema_version",
          "request_id",
          "operation",
          "conversation",
          "arguments"
        ]
      },
      "Action_order_invoice": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "schema_version": {
            "const": "v1"
          },
          "request_id": {
            "type": "string",
            "minLength": 1
          },
          "operation": {
            "const": "order.invoice"
          },
          "conversation": {
            "$ref": "#/components/schemas/Conversation"
          },
          "arguments": {
            "$ref": "#/components/schemas/InvoiceIssueArguments"
          },
          "context": {
            "$ref": "#/components/schemas/Context"
          }
        },
        "required": [
          "schema_version",
          "request_id",
          "operation",
          "conversation",
          "arguments"
        ]
      },
      "Action_invoice_status": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "schema_version": {
            "const": "v1"
          },
          "request_id": {
            "type": "string",
            "minLength": 1
          },
          "operation": {
            "const": "invoice.status"
          },
          "conversation": {
            "$ref": "#/components/schemas/Conversation"
          },
          "arguments": {
            "$ref": "#/components/schemas/SensitiveReferenceArguments"
          },
          "context": {
            "$ref": "#/components/schemas/Context"
          }
        },
        "required": [
          "schema_version",
          "request_id",
          "operation",
          "conversation",
          "arguments"
        ]
      },
      "Action_invoice_issue": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "schema_version": {
            "const": "v1"
          },
          "request_id": {
            "type": "string",
            "minLength": 1
          },
          "operation": {
            "const": "invoice.issue"
          },
          "conversation": {
            "$ref": "#/components/schemas/Conversation"
          },
          "arguments": {
            "$ref": "#/components/schemas/InvoiceIssueArguments"
          },
          "context": {
            "$ref": "#/components/schemas/Context"
          }
        },
        "required": [
          "schema_version",
          "request_id",
          "operation",
          "conversation",
          "arguments"
        ]
      },
      "Action_receivable_list": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "schema_version": {
            "const": "v1"
          },
          "request_id": {
            "type": "string",
            "minLength": 1
          },
          "operation": {
            "const": "receivable.list"
          },
          "conversation": {
            "$ref": "#/components/schemas/Conversation"
          },
          "arguments": {
            "$ref": "#/components/schemas/SensitiveReadArguments"
          },
          "context": {
            "$ref": "#/components/schemas/Context"
          }
        },
        "required": [
          "schema_version",
          "request_id",
          "operation",
          "conversation",
          "arguments"
        ]
      },
      "Action_receivable_get": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "schema_version": {
            "const": "v1"
          },
          "request_id": {
            "type": "string",
            "minLength": 1
          },
          "operation": {
            "const": "receivable.get"
          },
          "conversation": {
            "$ref": "#/components/schemas/Conversation"
          },
          "arguments": {
            "$ref": "#/components/schemas/SensitiveReferenceArguments"
          },
          "context": {
            "$ref": "#/components/schemas/Context"
          }
        },
        "required": [
          "schema_version",
          "request_id",
          "operation",
          "conversation",
          "arguments"
        ]
      },
      "Action_boleto_list": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "schema_version": {
            "const": "v1"
          },
          "request_id": {
            "type": "string",
            "minLength": 1
          },
          "operation": {
            "const": "boleto.list"
          },
          "conversation": {
            "$ref": "#/components/schemas/Conversation"
          },
          "arguments": {
            "$ref": "#/components/schemas/SensitiveReadArguments"
          },
          "context": {
            "$ref": "#/components/schemas/Context"
          }
        },
        "required": [
          "schema_version",
          "request_id",
          "operation",
          "conversation",
          "arguments"
        ]
      },
      "Action_payment_list": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "schema_version": {
            "const": "v1"
          },
          "request_id": {
            "type": "string",
            "minLength": 1
          },
          "operation": {
            "const": "payment.list"
          },
          "conversation": {
            "$ref": "#/components/schemas/Conversation"
          },
          "arguments": {
            "$ref": "#/components/schemas/SensitiveReadArguments"
          },
          "context": {
            "$ref": "#/components/schemas/Context"
          }
        },
        "required": [
          "schema_version",
          "request_id",
          "operation",
          "conversation",
          "arguments"
        ]
      },
      "Action_payment_get": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "schema_version": {
            "const": "v1"
          },
          "request_id": {
            "type": "string",
            "minLength": 1
          },
          "operation": {
            "const": "payment.get"
          },
          "conversation": {
            "$ref": "#/components/schemas/Conversation"
          },
          "arguments": {
            "$ref": "#/components/schemas/SensitiveReferenceArguments"
          },
          "context": {
            "$ref": "#/components/schemas/Context"
          }
        },
        "required": [
          "schema_version",
          "request_id",
          "operation",
          "conversation",
          "arguments"
        ]
      },
      "Action_financial_entry_list": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "schema_version": {
            "const": "v1"
          },
          "request_id": {
            "type": "string",
            "minLength": 1
          },
          "operation": {
            "const": "financial-entry.list"
          },
          "conversation": {
            "$ref": "#/components/schemas/Conversation"
          },
          "arguments": {
            "$ref": "#/components/schemas/SensitiveReadArguments"
          },
          "context": {
            "$ref": "#/components/schemas/Context"
          }
        },
        "required": [
          "schema_version",
          "request_id",
          "operation",
          "conversation",
          "arguments"
        ]
      },
      "Action_financial_entry_create": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "schema_version": {
            "const": "v1"
          },
          "request_id": {
            "type": "string",
            "minLength": 1
          },
          "operation": {
            "const": "financial-entry.create"
          },
          "conversation": {
            "$ref": "#/components/schemas/Conversation"
          },
          "arguments": {
            "$ref": "#/components/schemas/FinancialEntryArguments"
          },
          "context": {
            "$ref": "#/components/schemas/Context"
          }
        },
        "required": [
          "schema_version",
          "request_id",
          "operation",
          "conversation",
          "arguments"
        ]
      },
      "Action_inventory_movement_create": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "schema_version": {
            "const": "v1"
          },
          "request_id": {
            "type": "string",
            "minLength": 1
          },
          "operation": {
            "const": "inventory.movement.create"
          },
          "conversation": {
            "$ref": "#/components/schemas/Conversation"
          },
          "arguments": {
            "$ref": "#/components/schemas/InventoryMovementArguments"
          },
          "context": {
            "$ref": "#/components/schemas/Context"
          }
        },
        "required": [
          "schema_version",
          "request_id",
          "operation",
          "conversation",
          "arguments"
        ]
      },
      "Action_payment_update": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "schema_version": {
            "const": "v1"
          },
          "request_id": {
            "type": "string",
            "minLength": 1
          },
          "operation": {
            "const": "payment.update"
          },
          "conversation": {
            "$ref": "#/components/schemas/Conversation"
          },
          "arguments": {
            "$ref": "#/components/schemas/PaymentUpdateArguments"
          },
          "context": {
            "$ref": "#/components/schemas/Context"
          }
        },
        "required": [
          "schema_version",
          "request_id",
          "operation",
          "conversation",
          "arguments"
        ]
      },
      "Action_boleto_issue": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "schema_version": {
            "const": "v1"
          },
          "request_id": {
            "type": "string",
            "minLength": 1
          },
          "operation": {
            "const": "boleto.issue"
          },
          "conversation": {
            "$ref": "#/components/schemas/Conversation"
          },
          "arguments": {
            "$ref": "#/components/schemas/BoletoIssueArguments"
          },
          "context": {
            "$ref": "#/components/schemas/Context"
          }
        },
        "required": [
          "schema_version",
          "request_id",
          "operation",
          "conversation",
          "arguments"
        ]
      },
      "BoletoGetArguments": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "ref": {
            "type": "string",
            "minLength": 1
          },
          "verified_customer_ref": {
            "type": "string",
            "minLength": 1
          },
          "verification_event_id": {
            "type": "string",
            "minLength": 1
          }
        },
        "required": [
          "ref"
        ]
      }
    }
  },
  "x-atlas-contract-status": "published-contract-runtime-dependent",
  "x-atlas-webhooks": {
    "status": "unavailable"
  }
}
