{"openapi":"3.1.0","info":{"title":"Decision Log REST API","version":"1.0.0","description":"A versioned REST façade generated from Decision Log's canonical GraphQL schema. Every operation delegates to the same GraphQL resolver so authorization, immutable-decision rules, supersession, provenance, idempotency, and audit behavior stay consistent across transports.","x-deprecation-policy":"https://www.decisionlog.ai/docs/api-versioning.md","license":{"name":"Proprietary","identifier":"LicenseRef-Proprietary"}},"externalDocs":{"description":"Decision Log API versioning and deprecation policy","url":"https://www.decisionlog.ai/docs/api-versioning.md"},"servers":[{"url":"https://www.decisionlog.ai","description":"Production"},{"url":"https://sandbox.decisionlog.ai","description":"Stable isolated sandbox"}],"tags":[{"name":"Queries","description":"Read operations mapped from GraphQL Query fields."},{"name":"Mutations","description":"Write operations mapped from GraphQL Mutation fields. Mutations preserve the canonical GraphQL idempotency and audit contracts."}],"paths":{"/api/v1/graphql/query/viewer":{"post":{"operationId":"RestQueryViewer","summary":"Read viewer","description":"Return the authenticated actor and organization context.","tags":["Queries"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/OrganizationHeader"},{"$ref":"#/components/parameters/WorkspaceHeader"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"orgSlug":{"type":"string","description":"GraphQL orgSlug argument for this operation."}},"required":["orgSlug"],"additionalProperties":false}}}},"responses":{"200":{"description":"The canonical GraphQL resolver completed successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RestSuccess"}}}},"400":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"401":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"403":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"404":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"405":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"409":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"422":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"500":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}}},"x-graphql-field":"viewer","x-graphql-operation-type":"query","x-required-permissions":[]}},"/api/v1/graphql/query/workspaces":{"post":{"operationId":"RestQueryWorkspaces","summary":"List effectively discoverable workspaces","description":"List Workspaces visible to the authenticated actor.","tags":["Queries"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/OrganizationHeader"},{"$ref":"#/components/parameters/WorkspaceHeader"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"orgSlug":{"type":"string","description":"GraphQL orgSlug argument for this operation."}},"required":["orgSlug"],"additionalProperties":false}}}},"responses":{"200":{"description":"The canonical GraphQL resolver completed successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RestSuccess"}}}},"400":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"401":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"403":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"404":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"405":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"409":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"422":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"500":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}}},"x-graphql-field":"workspaces","x-graphql-operation-type":"query","x-required-permissions":[]}},"/api/v1/graphql/query/projects":{"post":{"operationId":"RestQueryProjects","summary":"Create, list, inspect, and archive Project contexts","description":"List Projects, optionally filtered by the supplied input. Required permissions: projects.read.workspace, projects.manage.workspace.","tags":["Queries"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/OrganizationHeader"},{"$ref":"#/components/parameters/WorkspaceHeader"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"orgSlug":{"type":"string","description":"GraphQL orgSlug argument for this operation."},"input":{"type":"object","additionalProperties":true,"description":"GraphQL input argument for this operation."}},"required":["orgSlug"],"additionalProperties":false}}}},"responses":{"200":{"description":"The canonical GraphQL resolver completed successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RestSuccess"}}}},"400":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"401":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"403":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"404":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"405":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"409":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"422":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"500":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}}},"x-graphql-field":"projects","x-graphql-operation-type":"query","x-required-permissions":["projects.read.workspace","projects.manage.workspace"]}},"/api/v1/graphql/query/project":{"post":{"operationId":"RestQueryProject","summary":"Create, list, inspect, and archive Project contexts","description":"Retrieve one Project by its immutable identifier. Required permissions: projects.read.workspace, projects.manage.workspace.","tags":["Queries"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/OrganizationHeader"},{"$ref":"#/components/parameters/WorkspaceHeader"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"orgSlug":{"type":"string","description":"GraphQL orgSlug argument for this operation."},"id":{"type":"string","minLength":1,"description":"GraphQL id argument for this operation."}},"required":["orgSlug","id"],"additionalProperties":false}}}},"responses":{"200":{"description":"The canonical GraphQL resolver completed successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RestSuccess"}}}},"400":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"401":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"403":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"404":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"405":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"409":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"422":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"500":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}}},"x-graphql-field":"project","x-graphql-operation-type":"query","x-required-permissions":["projects.read.workspace","projects.manage.workspace"]}},"/api/v1/graphql/query/tags":{"post":{"operationId":"RestQueryTags","summary":"Read tags","description":"List the organization's Decision Tags.","tags":["Queries"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/OrganizationHeader"},{"$ref":"#/components/parameters/WorkspaceHeader"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"orgSlug":{"type":"string","description":"GraphQL orgSlug argument for this operation."}},"required":["orgSlug"],"additionalProperties":false}}}},"responses":{"200":{"description":"The canonical GraphQL resolver completed successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RestSuccess"}}}},"400":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"401":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"403":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"404":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"405":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"409":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"422":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"500":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}}},"x-graphql-field":"tags","x-graphql-operation-type":"query","x-required-permissions":[]}},"/api/v1/graphql/query/domains":{"post":{"operationId":"RestQueryDomains","summary":"Read domains","description":"List the organization's Decision Domains.","tags":["Queries"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/OrganizationHeader"},{"$ref":"#/components/parameters/WorkspaceHeader"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"orgSlug":{"type":"string","description":"GraphQL orgSlug argument for this operation."}},"required":["orgSlug"],"additionalProperties":false}}}},"responses":{"200":{"description":"The canonical GraphQL resolver completed successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RestSuccess"}}}},"400":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"401":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"403":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"404":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"405":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"409":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"422":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"500":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}}},"x-graphql-field":"domains","x-graphql-operation-type":"query","x-required-permissions":[]}},"/api/v1/graphql/query/decisions":{"post":{"operationId":"RestQueryDecisions","summary":"List workspace decisions","description":"List Decisions using the canonical filter input. Required permissions: decisions.read.workspace.","tags":["Queries"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/OrganizationHeader"},{"$ref":"#/components/parameters/WorkspaceHeader"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"orgSlug":{"type":"string","description":"GraphQL orgSlug argument for this operation."},"input":{"type":"object","additionalProperties":true,"description":"GraphQL input argument for this operation."}},"required":["orgSlug"],"additionalProperties":false}}}},"responses":{"200":{"description":"The canonical GraphQL resolver completed successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RestSuccess"}}}},"400":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"401":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"403":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"404":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"405":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"409":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"422":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"500":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}}},"x-graphql-field":"decisions","x-graphql-operation-type":"query","x-required-permissions":["decisions.read.workspace"]}},"/api/v1/graphql/query/decisionSearchPage":{"post":{"operationId":"RestQueryDecisionSearchPage","summary":"Keyword and structured decision search","description":"Legacy offset-paginated Decision search result. Required permissions: decisions.read.workspace.","tags":["Queries"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/OrganizationHeader"},{"$ref":"#/components/parameters/WorkspaceHeader"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"orgSlug":{"type":"string","description":"GraphQL orgSlug argument for this operation."},"input":{"$ref":"#/components/schemas/DecisionSearchPageInput","description":"Filters, ordering, and offset pagination for the decision search page."}},"required":["orgSlug"],"additionalProperties":false}}}},"responses":{"200":{"description":"The canonical GraphQL resolver completed successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RestDecisionSearchPageSuccess"}}}},"400":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"401":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"403":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"404":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"405":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"409":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"422":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"500":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}}},"deprecated":true,"x-deprecation-reason":"Use decisionConnection for Relay-style cursor pagination. Supported through 2027-02-19; migration policy: https://www.decisionlog.ai/docs/api-versioning.md","x-sunset":"2027-02-19T00:00:00Z","x-graphql-field":"decisionSearchPage","x-graphql-operation-type":"query","x-required-permissions":["decisions.read.workspace"]}},"/api/v1/graphql/query/decisionConnection":{"post":{"operationId":"RestQueryDecisionConnection","summary":"Read decisionConnection","description":"Cursor-paginated decisions using the standard Relay connection shape.","tags":["Queries"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/OrganizationHeader"},{"$ref":"#/components/parameters/WorkspaceHeader"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"orgSlug":{"type":"string","description":"GraphQL orgSlug argument for this operation."},"first":{"type":"integer","format":"int32","description":"GraphQL first argument for this operation."},"after":{"type":"string","description":"GraphQL after argument for this operation."},"input":{"$ref":"#/components/schemas/DecisionConnectionFilterInput","description":"Decision filters applied before cursor pagination."}},"required":["orgSlug"],"additionalProperties":false}}}},"responses":{"200":{"description":"The canonical GraphQL resolver completed successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RestDecisionConnectionSuccess"}}}},"400":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"401":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"403":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"404":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"405":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"409":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"422":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"500":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}}},"x-graphql-field":"decisionConnection","x-graphql-operation-type":"query","x-required-permissions":[]}},"/api/v1/graphql/query/currentDecision":{"post":{"operationId":"RestQueryCurrentDecision","summary":"Resolve the current contextual decision by stable key","description":"Retrieve the current active Decision for a stable lookup key. Required permissions: decisions.read.workspace.","tags":["Queries"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/OrganizationHeader"},{"$ref":"#/components/parameters/WorkspaceHeader"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"orgSlug":{"type":"string","description":"GraphQL orgSlug argument for this operation."},"input":{"type":"object","additionalProperties":true,"description":"GraphQL input argument for this operation."}},"required":["orgSlug","input"],"additionalProperties":false}}}},"responses":{"200":{"description":"The canonical GraphQL resolver completed successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RestSuccess"}}}},"400":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"401":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"403":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"404":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"405":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"409":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"422":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"500":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}}},"x-graphql-field":"currentDecision","x-graphql-operation-type":"query","x-required-permissions":["decisions.read.workspace"]}},"/api/v1/graphql/query/decision":{"post":{"operationId":"RestQueryDecision","summary":"Get one decision","description":"Retrieve one immutable Decision by identifier. Required permissions: decisions.read.workspace.","tags":["Queries"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/OrganizationHeader"},{"$ref":"#/components/parameters/WorkspaceHeader"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"orgSlug":{"type":"string","description":"GraphQL orgSlug argument for this operation."},"id":{"type":"string","minLength":1,"description":"GraphQL id argument for this operation."}},"required":["orgSlug","id"],"additionalProperties":false}}}},"responses":{"200":{"description":"The canonical GraphQL resolver completed successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RestSuccess"}}}},"400":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"401":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"403":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"404":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"405":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"409":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"422":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"500":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}}},"x-graphql-field":"decision","x-graphql-operation-type":"query","x-required-permissions":["decisions.read.workspace"]}},"/api/v1/graphql/query/batchDecisions":{"post":{"operationId":"RestQueryBatchDecisions","summary":"Read batchDecisions","description":"Retrieve up to 50 known Decisions in the requested identifier order.","tags":["Queries"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/OrganizationHeader"},{"$ref":"#/components/parameters/WorkspaceHeader"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"orgSlug":{"type":"string","description":"GraphQL orgSlug argument for this operation."},"ids":{"type":"array","items":{"type":"string","minLength":1},"description":"GraphQL ids argument for this operation."}},"required":["orgSlug","ids"],"additionalProperties":false}}}},"responses":{"200":{"description":"The canonical GraphQL resolver completed successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RestSuccess"}}}},"400":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"401":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"403":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"404":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"405":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"409":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"422":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"500":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}}},"x-graphql-field":"batchDecisions","x-graphql-operation-type":"query","x-required-permissions":[]}},"/api/v1/graphql/query/decisionRevisions":{"post":{"operationId":"RestQueryDecisionRevisions","summary":"Append and review Decision enrichment","description":"List the recorded revisions associated with a Decision. Required permissions: decisions.enrich.workspace, decisions.review.workspace.","tags":["Queries"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/OrganizationHeader"},{"$ref":"#/components/parameters/WorkspaceHeader"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"orgSlug":{"type":"string","description":"GraphQL orgSlug argument for this operation."},"id":{"type":"string","minLength":1,"description":"GraphQL id argument for this operation."}},"required":["orgSlug","id"],"additionalProperties":false}}}},"responses":{"200":{"description":"The canonical GraphQL resolver completed successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RestSuccess"}}}},"400":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"401":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"403":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"404":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"405":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"409":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"422":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"500":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}}},"x-graphql-field":"decisionRevisions","x-graphql-operation-type":"query","x-required-permissions":["decisions.enrich.workspace","decisions.review.workspace"]}},"/api/v1/graphql/query/decisionSupersession":{"post":{"operationId":"RestQueryDecisionSupersession","summary":"Read supersession history","description":"Retrieve the supersession chain for a Decision. Required permissions: decisions.read.workspace.","tags":["Queries"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/OrganizationHeader"},{"$ref":"#/components/parameters/WorkspaceHeader"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"orgSlug":{"type":"string","description":"GraphQL orgSlug argument for this operation."},"id":{"type":"string","minLength":1,"description":"GraphQL id argument for this operation."}},"required":["orgSlug","id"],"additionalProperties":false}}}},"responses":{"200":{"description":"The canonical GraphQL resolver completed successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RestSuccess"}}}},"400":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"401":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"403":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"404":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"405":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"409":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"422":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"500":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}}},"x-graphql-field":"decisionSupersession","x-graphql-operation-type":"query","x-required-permissions":["decisions.read.workspace"]}},"/api/v1/graphql/query/decisionGovernance":{"post":{"operationId":"RestQueryDecisionGovernance","summary":"Read decision governance state","description":"Retrieve governance and lifecycle state for a Decision. Required permissions: decisions.read.workspace.","tags":["Queries"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/OrganizationHeader"},{"$ref":"#/components/parameters/WorkspaceHeader"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"orgSlug":{"type":"string","description":"GraphQL orgSlug argument for this operation."},"id":{"type":"string","minLength":1,"description":"GraphQL id argument for this operation."}},"required":["orgSlug","id"],"additionalProperties":false}}}},"responses":{"200":{"description":"The canonical GraphQL resolver completed successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RestSuccess"}}}},"400":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"401":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"403":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"404":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"405":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"409":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"422":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"500":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}}},"x-graphql-field":"decisionGovernance","x-graphql-operation-type":"query","x-required-permissions":["decisions.read.workspace"]}},"/api/v1/graphql/query/decisionSources":{"post":{"operationId":"RestQueryDecisionSources","summary":"Read decision provenance links","description":"List provenance sources attached to a Decision. Required permissions: decisions.read.workspace, sources.read.workspace.","tags":["Queries"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/OrganizationHeader"},{"$ref":"#/components/parameters/WorkspaceHeader"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"orgSlug":{"type":"string","description":"GraphQL orgSlug argument for this operation."},"id":{"type":"string","minLength":1,"description":"GraphQL id argument for this operation."}},"required":["orgSlug","id"],"additionalProperties":false}}}},"responses":{"200":{"description":"The canonical GraphQL resolver completed successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RestSuccess"}}}},"400":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"401":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"403":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"404":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"405":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"409":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"422":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"500":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}}},"x-graphql-field":"decisionSources","x-graphql-operation-type":"query","x-required-permissions":["decisions.read.workspace","sources.read.workspace"]}},"/api/v1/graphql/query/decisionApprovalRequests":{"post":{"operationId":"RestQueryDecisionApprovalRequests","summary":"Attest to a governed decision action","description":"List Decision approval requests matching the supplied input. Required permissions: decisions.approve.workspace.","tags":["Queries"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/OrganizationHeader"},{"$ref":"#/components/parameters/WorkspaceHeader"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"orgSlug":{"type":"string","description":"GraphQL orgSlug argument for this operation."},"input":{"type":"object","additionalProperties":true,"description":"GraphQL input argument for this operation."}},"required":["orgSlug"],"additionalProperties":false}}}},"responses":{"200":{"description":"The canonical GraphQL resolver completed successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RestSuccess"}}}},"400":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"401":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"403":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"404":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"405":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"409":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"422":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"500":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}}},"x-graphql-field":"decisionApprovalRequests","x-graphql-operation-type":"query","x-required-permissions":["decisions.approve.workspace"]}},"/api/v1/graphql/query/candidates":{"post":{"operationId":"RestQueryCandidates","summary":"List decision candidates","description":"List reviewable Decision Candidates. Required permissions: candidates.read.workspace.","tags":["Queries"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/OrganizationHeader"},{"$ref":"#/components/parameters/WorkspaceHeader"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"orgSlug":{"type":"string","description":"GraphQL orgSlug argument for this operation."},"input":{"type":"object","additionalProperties":true,"description":"GraphQL input argument for this operation."}},"required":["orgSlug"],"additionalProperties":false}}}},"responses":{"200":{"description":"The canonical GraphQL resolver completed successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RestSuccess"}}}},"400":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"401":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"403":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"404":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"405":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"409":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"422":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"500":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}}},"x-graphql-field":"candidates","x-graphql-operation-type":"query","x-required-permissions":["candidates.read.workspace"]}},"/api/v1/graphql/query/candidate":{"post":{"operationId":"RestQueryCandidate","summary":"Get one decision candidate","description":"Retrieve one Decision Candidate by identifier. Required permissions: candidates.read.workspace.","tags":["Queries"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/OrganizationHeader"},{"$ref":"#/components/parameters/WorkspaceHeader"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"orgSlug":{"type":"string","description":"GraphQL orgSlug argument for this operation."},"id":{"type":"string","minLength":1,"description":"GraphQL id argument for this operation."}},"required":["orgSlug","id"],"additionalProperties":false}}}},"responses":{"200":{"description":"The canonical GraphQL resolver completed successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RestSuccess"}}}},"400":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"401":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"403":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"404":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"405":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"409":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"422":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"500":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}}},"x-graphql-field":"candidate","x-graphql-operation-type":"query","x-required-permissions":["candidates.read.workspace"]}},"/api/v1/graphql/query/sources":{"post":{"operationId":"RestQuerySources","summary":"List source content","description":"List ingested Sources matching the supplied input. Required permissions: sources.read.workspace.","tags":["Queries"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/OrganizationHeader"},{"$ref":"#/components/parameters/WorkspaceHeader"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"orgSlug":{"type":"string","description":"GraphQL orgSlug argument for this operation."},"input":{"type":"object","additionalProperties":true,"description":"GraphQL input argument for this operation."}},"required":["orgSlug"],"additionalProperties":false}}}},"responses":{"200":{"description":"The canonical GraphQL resolver completed successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RestSuccess"}}}},"400":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"401":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"403":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"404":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"405":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"409":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"422":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"500":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}}},"x-graphql-field":"sources","x-graphql-operation-type":"query","x-required-permissions":["sources.read.workspace"]}},"/api/v1/graphql/query/source":{"post":{"operationId":"RestQuerySource","summary":"Get source content","description":"Retrieve one Source by identifier. Required permissions: sources.read.workspace.","tags":["Queries"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/OrganizationHeader"},{"$ref":"#/components/parameters/WorkspaceHeader"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"orgSlug":{"type":"string","description":"GraphQL orgSlug argument for this operation."},"id":{"type":"string","minLength":1,"description":"GraphQL id argument for this operation."}},"required":["orgSlug","id"],"additionalProperties":false}}}},"responses":{"200":{"description":"The canonical GraphQL resolver completed successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RestSuccess"}}}},"400":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"401":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"403":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"404":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"405":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"409":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"422":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"500":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}}},"x-graphql-field":"source","x-graphql-operation-type":"query","x-required-permissions":["sources.read.workspace"]}},"/api/v1/graphql/query/sourceDecisions":{"post":{"operationId":"RestQuerySourceDecisions","summary":"List decisions linked to source content","description":"List Decisions whose provenance includes a Source. Required permissions: sources.read.workspace, decisions.read.workspace.","tags":["Queries"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/OrganizationHeader"},{"$ref":"#/components/parameters/WorkspaceHeader"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"orgSlug":{"type":"string","description":"GraphQL orgSlug argument for this operation."},"id":{"type":"string","minLength":1,"description":"GraphQL id argument for this operation."}},"required":["orgSlug","id"],"additionalProperties":false}}}},"responses":{"200":{"description":"The canonical GraphQL resolver completed successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RestSuccess"}}}},"400":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"401":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"403":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"404":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"405":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"409":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"422":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"500":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}}},"x-graphql-field":"sourceDecisions","x-graphql-operation-type":"query","x-required-permissions":["sources.read.workspace","decisions.read.workspace"]}},"/api/v1/graphql/query/extractionRuns":{"post":{"operationId":"RestQueryExtractionRuns","summary":"Read extractionRuns","description":"List AI Extraction Runs matching the supplied input.","tags":["Queries"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/OrganizationHeader"},{"$ref":"#/components/parameters/WorkspaceHeader"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"orgSlug":{"type":"string","description":"GraphQL orgSlug argument for this operation."},"input":{"type":"object","additionalProperties":true,"description":"GraphQL input argument for this operation."}},"required":["orgSlug"],"additionalProperties":false}}}},"responses":{"200":{"description":"The canonical GraphQL resolver completed successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RestSuccess"}}}},"400":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"401":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"403":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"404":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"405":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"409":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"422":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"500":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}}},"x-graphql-field":"extractionRuns","x-graphql-operation-type":"query","x-required-permissions":[]}},"/api/v1/graphql/query/extractionRun":{"post":{"operationId":"RestQueryExtractionRun","summary":"Read extractionRun","description":"Retrieve one Extraction Run by identifier.","tags":["Queries"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/OrganizationHeader"},{"$ref":"#/components/parameters/WorkspaceHeader"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"orgSlug":{"type":"string","description":"GraphQL orgSlug argument for this operation."},"id":{"type":"string","minLength":1,"description":"GraphQL id argument for this operation."}},"required":["orgSlug","id"],"additionalProperties":false}}}},"responses":{"200":{"description":"The canonical GraphQL resolver completed successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RestSuccess"}}}},"400":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"401":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"403":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"404":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"405":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"409":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"422":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"500":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}}},"x-graphql-field":"extractionRun","x-graphql-operation-type":"query","x-required-permissions":[]}},"/api/v1/graphql/query/ingestionRuns":{"post":{"operationId":"RestQueryIngestionRuns","summary":"Read ingestionRuns","description":"List ingestion pipeline runs matching the supplied input.","tags":["Queries"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/OrganizationHeader"},{"$ref":"#/components/parameters/WorkspaceHeader"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"orgSlug":{"type":"string","description":"GraphQL orgSlug argument for this operation."},"input":{"type":"object","additionalProperties":true,"description":"GraphQL input argument for this operation."}},"required":["orgSlug"],"additionalProperties":false}}}},"responses":{"200":{"description":"The canonical GraphQL resolver completed successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RestSuccess"}}}},"400":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"401":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"403":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"404":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"405":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"409":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"422":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"500":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}}},"x-graphql-field":"ingestionRuns","x-graphql-operation-type":"query","x-required-permissions":[]}},"/api/v1/graphql/query/ingestionRun":{"post":{"operationId":"RestQueryIngestionRun","summary":"Read ingestionRun","description":"Retrieve one Ingestion Run by identifier.","tags":["Queries"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/OrganizationHeader"},{"$ref":"#/components/parameters/WorkspaceHeader"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"orgSlug":{"type":"string","description":"GraphQL orgSlug argument for this operation."},"id":{"type":"string","minLength":1,"description":"GraphQL id argument for this operation."}},"required":["orgSlug","id"],"additionalProperties":false}}}},"responses":{"200":{"description":"The canonical GraphQL resolver completed successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RestSuccess"}}}},"400":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"401":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"403":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"404":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"405":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"409":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"422":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"500":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}}},"x-graphql-field":"ingestionRun","x-graphql-operation-type":"query","x-required-permissions":[]}},"/api/v1/graphql/query/ingestionJob":{"post":{"operationId":"RestQueryIngestionJob","summary":"Read ingestionJob","description":"Poll the typed status of an asynchronous ingestion job.","tags":["Queries"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/OrganizationHeader"},{"$ref":"#/components/parameters/WorkspaceHeader"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"orgSlug":{"type":"string","description":"GraphQL orgSlug argument for this operation."},"id":{"type":"string","minLength":1,"description":"GraphQL id argument for this operation."}},"required":["orgSlug","id"],"additionalProperties":false}}}},"responses":{"200":{"description":"The canonical GraphQL resolver completed successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RestIngestionJobSuccess"}}}},"400":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"401":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"403":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"404":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"405":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"409":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"422":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"500":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}}},"x-graphql-field":"ingestionJob","x-graphql-operation-type":"query","x-required-permissions":[]}},"/api/v1/graphql/query/auditEvents":{"post":{"operationId":"RestQueryAuditEvents","summary":"List organization audit events","description":"List append-only Audit Events matching the supplied input. Required permissions: audit_events.read.organization.","tags":["Queries"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/OrganizationHeader"},{"$ref":"#/components/parameters/WorkspaceHeader"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"orgSlug":{"type":"string","description":"GraphQL orgSlug argument for this operation."},"input":{"type":"object","additionalProperties":true,"description":"GraphQL input argument for this operation."}},"required":["orgSlug"],"additionalProperties":false}}}},"responses":{"200":{"description":"The canonical GraphQL resolver completed successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RestSuccess"}}}},"400":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"401":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"403":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"404":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"405":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"409":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"422":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"500":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}}},"x-graphql-field":"auditEvents","x-graphql-operation-type":"query","x-required-permissions":["audit_events.read.organization"]}},"/api/v1/graphql/query/apiKeys":{"post":{"operationId":"RestQueryApiKeys","summary":"Create, list, and revoke API keys","description":"List API Keys without exposing secret material. Required permissions: api_keys.manage.organization.","tags":["Queries"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/OrganizationHeader"},{"$ref":"#/components/parameters/WorkspaceHeader"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"orgSlug":{"type":"string","description":"GraphQL orgSlug argument for this operation."},"input":{"type":"object","additionalProperties":true,"description":"GraphQL input argument for this operation."}},"required":["orgSlug"],"additionalProperties":false}}}},"responses":{"200":{"description":"The canonical GraphQL resolver completed successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RestSuccess"}}}},"400":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"401":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"403":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"404":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"405":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"409":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"422":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"500":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}}},"x-graphql-field":"apiKeys","x-graphql-operation-type":"query","x-required-permissions":["api_keys.manage.organization"]}},"/api/v1/graphql/query/apiKey":{"post":{"operationId":"RestQueryApiKey","summary":"Read apiKey","description":"Retrieve API Key metadata by identifier.","tags":["Queries"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/OrganizationHeader"},{"$ref":"#/components/parameters/WorkspaceHeader"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"orgSlug":{"type":"string","description":"GraphQL orgSlug argument for this operation."},"id":{"type":"string","minLength":1,"description":"GraphQL id argument for this operation."}},"required":["orgSlug","id"],"additionalProperties":false}}}},"responses":{"200":{"description":"The canonical GraphQL resolver completed successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RestSuccess"}}}},"400":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"401":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"403":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"404":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"405":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"409":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"422":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"500":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}}},"x-graphql-field":"apiKey","x-graphql-operation-type":"query","x-required-permissions":[]}},"/api/v1/graphql/query/agents":{"post":{"operationId":"RestQueryAgents","summary":"List registered agents","description":"List registered Agents matching the supplied input. Required permissions: agents.manage.organization.","tags":["Queries"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/OrganizationHeader"},{"$ref":"#/components/parameters/WorkspaceHeader"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"orgSlug":{"type":"string","description":"GraphQL orgSlug argument for this operation."},"input":{"type":"object","additionalProperties":true,"description":"GraphQL input argument for this operation."}},"required":["orgSlug"],"additionalProperties":false}}}},"responses":{"200":{"description":"The canonical GraphQL resolver completed successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RestSuccess"}}}},"400":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"401":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"403":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"404":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"405":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"409":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"422":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"500":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}}},"x-graphql-field":"agents","x-graphql-operation-type":"query","x-required-permissions":["agents.manage.organization"]}},"/api/v1/graphql/query/agent":{"post":{"operationId":"RestQueryAgent","summary":"Read agent","description":"Retrieve one registered Agent by identifier.","tags":["Queries"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/OrganizationHeader"},{"$ref":"#/components/parameters/WorkspaceHeader"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"orgSlug":{"type":"string","description":"GraphQL orgSlug argument for this operation."},"id":{"type":"string","minLength":1,"description":"GraphQL id argument for this operation."}},"required":["orgSlug","id"],"additionalProperties":false}}}},"responses":{"200":{"description":"The canonical GraphQL resolver completed successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RestSuccess"}}}},"400":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"401":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"403":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"404":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"405":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"409":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"422":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"500":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}}},"x-graphql-field":"agent","x-graphql-operation-type":"query","x-required-permissions":[]}},"/api/v1/graphql/query/mcpClients":{"post":{"operationId":"RestQueryMcpClients","summary":"Register, list, and revoke MCP clients","description":"List registered MCP Clients matching the supplied input. Required permissions: mcp_clients.manage.organization.","tags":["Queries"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/OrganizationHeader"},{"$ref":"#/components/parameters/WorkspaceHeader"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"orgSlug":{"type":"string","description":"GraphQL orgSlug argument for this operation."},"input":{"type":"object","additionalProperties":true,"description":"GraphQL input argument for this operation."}},"required":["orgSlug"],"additionalProperties":false}}}},"responses":{"200":{"description":"The canonical GraphQL resolver completed successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RestSuccess"}}}},"400":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"401":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"403":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"404":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"405":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"409":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"422":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"500":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}}},"x-graphql-field":"mcpClients","x-graphql-operation-type":"query","x-required-permissions":["mcp_clients.manage.organization"]}},"/api/v1/graphql/query/mcpClient":{"post":{"operationId":"RestQueryMcpClient","summary":"Read mcpClient","description":"Retrieve one MCP Client by identifier.","tags":["Queries"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/OrganizationHeader"},{"$ref":"#/components/parameters/WorkspaceHeader"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"orgSlug":{"type":"string","description":"GraphQL orgSlug argument for this operation."},"id":{"type":"string","minLength":1,"description":"GraphQL id argument for this operation."}},"required":["orgSlug","id"],"additionalProperties":false}}}},"responses":{"200":{"description":"The canonical GraphQL resolver completed successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RestSuccess"}}}},"400":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"401":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"403":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"404":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"405":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"409":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"422":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"500":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}}},"x-graphql-field":"mcpClient","x-graphql-operation-type":"query","x-required-permissions":[]}},"/api/v1/graphql/query/integrationSummaries":{"post":{"operationId":"RestQueryIntegrationSummaries","summary":"Read integrationSummaries","description":"List summaries for configured external Integrations.","tags":["Queries"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/OrganizationHeader"},{"$ref":"#/components/parameters/WorkspaceHeader"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"orgSlug":{"type":"string","description":"GraphQL orgSlug argument for this operation."}},"required":["orgSlug"],"additionalProperties":false}}}},"responses":{"200":{"description":"The canonical GraphQL resolver completed successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RestSuccess"}}}},"400":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"401":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"403":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"404":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"405":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"409":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"422":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"500":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}}},"x-graphql-field":"integrationSummaries","x-graphql-operation-type":"query","x-required-permissions":[]}},"/api/v1/graphql/query/integrationManagement":{"post":{"operationId":"RestQueryIntegrationManagement","summary":"Read integrationManagement","description":"Retrieve management state for an Integration reference.","tags":["Queries"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/OrganizationHeader"},{"$ref":"#/components/parameters/WorkspaceHeader"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"orgSlug":{"type":"string","description":"GraphQL orgSlug argument for this operation."},"reference":{"type":"string","description":"GraphQL reference argument for this operation."}},"required":["orgSlug","reference"],"additionalProperties":false}}}},"responses":{"200":{"description":"The canonical GraphQL resolver completed successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RestSuccess"}}}},"400":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"401":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"403":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"404":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"405":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"409":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"422":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"500":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}}},"x-graphql-field":"integrationManagement","x-graphql-operation-type":"query","x-required-permissions":[]}},"/api/v1/graphql/mutation/createDecision":{"post":{"operationId":"RestMutationCreateDecision","summary":"Create a decision or candidate","description":"Record an immutable Decision through the canonical mutation path. Required permissions: decisions.create.workspace, candidates.create.workspace.","tags":["Mutations"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/OrganizationHeader"},{"$ref":"#/components/parameters/WorkspaceHeader"},{"$ref":"#/components/parameters/IdempotencyKeyHeader"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"input":{"type":"object","additionalProperties":true,"description":"GraphQL input argument for this operation."}},"required":["input"],"additionalProperties":false}}}},"responses":{"200":{"description":"The canonical GraphQL resolver completed successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RestSuccess"}}}},"400":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"401":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"403":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"404":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"405":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"409":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"422":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"500":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}}},"x-graphql-field":"createDecision","x-graphql-operation-type":"mutation","x-required-permissions":["decisions.create.workspace","candidates.create.workspace"]}},"/api/v1/graphql/mutation/createDecisionResult":{"post":{"operationId":"RestMutationCreateDecisionResult","summary":"Execute createDecisionResult","description":"Create a Decision through the canonical mutation path while returning\ndomain failures as a typed result union. The original createDecision field\nremains available for clients that use GraphQL's top-level errors array.","tags":["Mutations"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/OrganizationHeader"},{"$ref":"#/components/parameters/WorkspaceHeader"},{"$ref":"#/components/parameters/IdempotencyKeyHeader"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"input":{"type":"object","additionalProperties":true,"description":"GraphQL input argument for this operation."}},"required":["input"],"additionalProperties":false}}}},"responses":{"200":{"description":"The canonical GraphQL resolver completed successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RestCreateDecisionResultSuccess"}}}},"400":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"401":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"403":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"404":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"405":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"409":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"422":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"500":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}}},"x-graphql-field":"createDecisionResult","x-graphql-operation-type":"mutation","x-required-permissions":[]}},"/api/v1/graphql/mutation/supersedeDecision":{"post":{"operationId":"RestMutationSupersedeDecision","summary":"Supersede a decision","description":"Record a new Decision that supersedes an existing Decision. Required permissions: decisions.supersede.workspace.","tags":["Mutations"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/OrganizationHeader"},{"$ref":"#/components/parameters/WorkspaceHeader"},{"$ref":"#/components/parameters/IdempotencyKeyHeader"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"input":{"type":"object","additionalProperties":true,"description":"GraphQL input argument for this operation."}},"required":["input"],"additionalProperties":false}}}},"responses":{"200":{"description":"The canonical GraphQL resolver completed successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RestSuccess"}}}},"400":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"401":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"403":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"404":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"405":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"409":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"422":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"500":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}}},"x-graphql-field":"supersedeDecision","x-graphql-operation-type":"mutation","x-required-permissions":["decisions.supersede.workspace"]}},"/api/v1/graphql/mutation/lockDecision":{"post":{"operationId":"RestMutationLockDecision","summary":"Permanently lock a decision","description":"Lock a Decision according to its governance policy. Required permissions: decisions.lock.workspace.","tags":["Mutations"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/OrganizationHeader"},{"$ref":"#/components/parameters/WorkspaceHeader"},{"$ref":"#/components/parameters/IdempotencyKeyHeader"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"input":{"type":"object","additionalProperties":true,"description":"GraphQL input argument for this operation."}},"required":["input"],"additionalProperties":false}}}},"responses":{"200":{"description":"The canonical GraphQL resolver completed successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RestSuccess"}}}},"400":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"401":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"403":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"404":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"405":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"409":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"422":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"500":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}}},"x-graphql-field":"lockDecision","x-graphql-operation-type":"mutation","x-required-permissions":["decisions.lock.workspace"]}},"/api/v1/graphql/mutation/approveDecisionAction":{"post":{"operationId":"RestMutationApproveDecisionAction","summary":"Attest to a governed decision action","description":"Approve a pending governed action on a Decision. Required permissions: decisions.approve.workspace.","tags":["Mutations"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/OrganizationHeader"},{"$ref":"#/components/parameters/WorkspaceHeader"},{"$ref":"#/components/parameters/IdempotencyKeyHeader"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"input":{"type":"object","additionalProperties":true,"description":"GraphQL input argument for this operation."}},"required":["input"],"additionalProperties":false}}}},"responses":{"200":{"description":"The canonical GraphQL resolver completed successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RestSuccess"}}}},"400":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"401":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"403":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"404":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"405":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"409":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"422":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"500":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}}},"x-graphql-field":"approveDecisionAction","x-graphql-operation-type":"mutation","x-required-permissions":["decisions.approve.workspace"]}},"/api/v1/graphql/mutation/createAuthorityLevel":{"post":{"operationId":"RestMutationCreateAuthorityLevel","summary":"Execute createAuthorityLevel","description":"Create an authority level used by Decision governance.","tags":["Mutations"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/OrganizationHeader"},{"$ref":"#/components/parameters/WorkspaceHeader"},{"$ref":"#/components/parameters/IdempotencyKeyHeader"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"input":{"type":"object","additionalProperties":true,"description":"GraphQL input argument for this operation."}},"required":["input"],"additionalProperties":false}}}},"responses":{"200":{"description":"The canonical GraphQL resolver completed successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RestSuccess"}}}},"400":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"401":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"403":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"404":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"405":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"409":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"422":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"500":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}}},"x-graphql-field":"createAuthorityLevel","x-graphql-operation-type":"mutation","x-required-permissions":[]}},"/api/v1/graphql/mutation/createAuthorityAssignment":{"post":{"operationId":"RestMutationCreateAuthorityAssignment","summary":"Execute createAuthorityAssignment","description":"Assign an authority level to an eligible Actor.","tags":["Mutations"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/OrganizationHeader"},{"$ref":"#/components/parameters/WorkspaceHeader"},{"$ref":"#/components/parameters/IdempotencyKeyHeader"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"input":{"type":"object","additionalProperties":true,"description":"GraphQL input argument for this operation."}},"required":["input"],"additionalProperties":false}}}},"responses":{"200":{"description":"The canonical GraphQL resolver completed successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RestSuccess"}}}},"400":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"401":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"403":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"404":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"405":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"409":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"422":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"500":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}}},"x-graphql-field":"createAuthorityAssignment","x-graphql-operation-type":"mutation","x-required-permissions":[]}},"/api/v1/graphql/mutation/createDecisionApprovalPolicy":{"post":{"operationId":"RestMutationCreateDecisionApprovalPolicy","summary":"Execute createDecisionApprovalPolicy","description":"Create a policy governing Decision approval requirements.","tags":["Mutations"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/OrganizationHeader"},{"$ref":"#/components/parameters/WorkspaceHeader"},{"$ref":"#/components/parameters/IdempotencyKeyHeader"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"input":{"type":"object","additionalProperties":true,"description":"GraphQL input argument for this operation."}},"required":["input"],"additionalProperties":false}}}},"responses":{"200":{"description":"The canonical GraphQL resolver completed successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RestSuccess"}}}},"400":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"401":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"403":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"404":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"405":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"409":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"422":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"500":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}}},"x-graphql-field":"createDecisionApprovalPolicy","x-graphql-operation-type":"mutation","x-required-permissions":[]}},"/api/v1/graphql/mutation/submitSource":{"post":{"operationId":"RestMutationSubmitSource","summary":"Submit source content","description":"Submit Source content to the reviewable ingestion pipeline. Required permissions: sources.submit.workspace.","tags":["Mutations"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/OrganizationHeader"},{"$ref":"#/components/parameters/WorkspaceHeader"},{"$ref":"#/components/parameters/IdempotencyKeyHeader"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"input":{"type":"object","additionalProperties":true,"description":"GraphQL input argument for this operation."}},"required":["input"],"additionalProperties":false}}}},"responses":{"200":{"description":"The canonical GraphQL resolver completed successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RestSuccess"}}}},"400":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"401":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"403":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"404":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"405":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"409":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"422":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"500":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}}},"x-graphql-field":"submitSource","x-graphql-operation-type":"mutation","x-required-permissions":["sources.submit.workspace"]}},"/api/v1/graphql/mutation/startIngestion":{"post":{"operationId":"RestMutationStartIngestion","summary":"Submit source content","description":"Start durable Source ingestion and return immediately with a pollable job.\nThe queued job stores Source content only; extraction remains a separate,\nreviewable operation. Required permissions: sources.submit.workspace.","tags":["Mutations"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/OrganizationHeader"},{"$ref":"#/components/parameters/WorkspaceHeader"},{"$ref":"#/components/parameters/IdempotencyKeyHeader"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"input":{"type":"object","additionalProperties":true,"description":"GraphQL input argument for this operation."}},"required":["input"],"additionalProperties":false}}}},"responses":{"202":{"description":"The durable ingestion job was accepted for asynchronous processing.","headers":{"Location":{"description":"Canonical REST façade operation used to poll ingestionJob.","schema":{"type":"string","format":"uri-reference"}},"Retry-After":{"description":"Suggested delay before the first status poll.","schema":{"type":"integer","minimum":1}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RestIngestionJobSuccess"}}}},"400":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"401":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"403":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"404":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"405":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"409":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"422":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"500":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}}},"x-graphql-field":"startIngestion","x-graphql-operation-type":"mutation","x-required-permissions":["sources.submit.workspace"]}},"/api/v1/graphql/mutation/extractSource":{"post":{"operationId":"RestMutationExtractSource","summary":"Extract reviewable candidates from a source","description":"Extract reviewable Decision Candidates from a Source. Required permissions: extractions.manage.workspace.","tags":["Mutations"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/OrganizationHeader"},{"$ref":"#/components/parameters/WorkspaceHeader"},{"$ref":"#/components/parameters/IdempotencyKeyHeader"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"input":{"type":"object","additionalProperties":true,"description":"GraphQL input argument for this operation."}},"required":["input"],"additionalProperties":false}}}},"responses":{"200":{"description":"The canonical GraphQL resolver completed successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RestSuccess"}}}},"400":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"401":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"403":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"404":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"405":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"409":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"422":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"500":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}}},"x-graphql-field":"extractSource","x-graphql-operation-type":"mutation","x-required-permissions":["extractions.manage.workspace"]}},"/api/v1/graphql/mutation/approveCandidate":{"post":{"operationId":"RestMutationApproveCandidate","summary":"Approve or reject a candidate","description":"Approve a Decision Candidate and record the resulting Decision. Required permissions: candidates.approve.workspace, candidates.reject.workspace, decisions.create.workspace.","tags":["Mutations"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/OrganizationHeader"},{"$ref":"#/components/parameters/WorkspaceHeader"},{"$ref":"#/components/parameters/IdempotencyKeyHeader"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"input":{"type":"object","additionalProperties":true,"description":"GraphQL input argument for this operation."}},"required":["input"],"additionalProperties":false}}}},"responses":{"200":{"description":"The canonical GraphQL resolver completed successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RestSuccess"}}}},"400":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"401":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"403":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"404":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"405":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"409":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"422":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"500":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}}},"x-graphql-field":"approveCandidate","x-graphql-operation-type":"mutation","x-required-permissions":["candidates.approve.workspace","candidates.reject.workspace","decisions.create.workspace"]}},"/api/v1/graphql/mutation/rejectCandidate":{"post":{"operationId":"RestMutationRejectCandidate","summary":"Approve or reject a candidate","description":"Reject a Decision Candidate without recording a Decision. Required permissions: candidates.approve.workspace, candidates.reject.workspace, decisions.create.workspace.","tags":["Mutations"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/OrganizationHeader"},{"$ref":"#/components/parameters/WorkspaceHeader"},{"$ref":"#/components/parameters/IdempotencyKeyHeader"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"input":{"type":"object","additionalProperties":true,"description":"GraphQL input argument for this operation."}},"required":["input"],"additionalProperties":false}}}},"responses":{"200":{"description":"The canonical GraphQL resolver completed successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RestSuccess"}}}},"400":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"401":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"403":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"404":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"405":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"409":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"422":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"500":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}}},"x-graphql-field":"rejectCandidate","x-graphql-operation-type":"mutation","x-required-permissions":["candidates.approve.workspace","candidates.reject.workspace","decisions.create.workspace"]}},"/api/v1/graphql/mutation/candidateToSupersession":{"post":{"operationId":"RestMutationCandidateToSupersession","summary":"Convert a candidate into a supersession","description":"Convert a Candidate into a reviewed Decision supersession. Required permissions: candidates.read.workspace, decisions.supersede.workspace.","tags":["Mutations"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/OrganizationHeader"},{"$ref":"#/components/parameters/WorkspaceHeader"},{"$ref":"#/components/parameters/IdempotencyKeyHeader"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"input":{"type":"object","additionalProperties":true,"description":"GraphQL input argument for this operation."}},"required":["input"],"additionalProperties":false}}}},"responses":{"200":{"description":"The canonical GraphQL resolver completed successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RestSuccess"}}}},"400":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"401":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"403":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"404":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"405":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"409":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"422":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"500":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}}},"x-graphql-field":"candidateToSupersession","x-graphql-operation-type":"mutation","x-required-permissions":["candidates.read.workspace","decisions.supersede.workspace"]}},"/api/v1/graphql/mutation/createProject":{"post":{"operationId":"RestMutationCreateProject","summary":"Create, list, inspect, and archive Project contexts","description":"Create a Project used to organize Decisions. Required permissions: projects.read.workspace, projects.manage.workspace.","tags":["Mutations"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/OrganizationHeader"},{"$ref":"#/components/parameters/WorkspaceHeader"},{"$ref":"#/components/parameters/IdempotencyKeyHeader"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"input":{"type":"object","additionalProperties":true,"description":"GraphQL input argument for this operation."}},"required":["input"],"additionalProperties":false}}}},"responses":{"200":{"description":"The canonical GraphQL resolver completed successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RestSuccess"}}}},"400":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"401":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"403":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"404":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"405":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"409":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"422":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"500":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}}},"x-graphql-field":"createProject","x-graphql-operation-type":"mutation","x-required-permissions":["projects.read.workspace","projects.manage.workspace"]}},"/api/v1/graphql/mutation/updateProject":{"post":{"operationId":"RestMutationUpdateProject","summary":"Execute updateProject","description":"Update mutable Project metadata.","tags":["Mutations"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/OrganizationHeader"},{"$ref":"#/components/parameters/WorkspaceHeader"},{"$ref":"#/components/parameters/IdempotencyKeyHeader"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"input":{"type":"object","additionalProperties":true,"description":"GraphQL input argument for this operation."}},"required":["input"],"additionalProperties":false}}}},"responses":{"200":{"description":"The canonical GraphQL resolver completed successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RestSuccess"}}}},"400":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"401":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"403":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"404":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"405":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"409":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"422":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"500":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}}},"x-graphql-field":"updateProject","x-graphql-operation-type":"mutation","x-required-permissions":[]}},"/api/v1/graphql/mutation/archiveProject":{"post":{"operationId":"RestMutationArchiveProject","summary":"Create, list, inspect, and archive Project contexts","description":"Archive a Project without deleting its Decision history. Required permissions: projects.read.workspace, projects.manage.workspace.","tags":["Mutations"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/OrganizationHeader"},{"$ref":"#/components/parameters/WorkspaceHeader"},{"$ref":"#/components/parameters/IdempotencyKeyHeader"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"input":{"type":"object","additionalProperties":true,"description":"GraphQL input argument for this operation."}},"required":["input"],"additionalProperties":false}}}},"responses":{"200":{"description":"The canonical GraphQL resolver completed successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RestSuccess"}}}},"400":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"401":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"403":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"404":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"405":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"409":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"422":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"500":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}}},"x-graphql-field":"archiveProject","x-graphql-operation-type":"mutation","x-required-permissions":["projects.read.workspace","projects.manage.workspace"]}},"/api/v1/graphql/mutation/createTag":{"post":{"operationId":"RestMutationCreateTag","summary":"Execute createTag","description":"Create a Tag used to classify Decisions.","tags":["Mutations"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/OrganizationHeader"},{"$ref":"#/components/parameters/WorkspaceHeader"},{"$ref":"#/components/parameters/IdempotencyKeyHeader"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"input":{"type":"object","additionalProperties":true,"description":"GraphQL input argument for this operation."}},"required":["input"],"additionalProperties":false}}}},"responses":{"200":{"description":"The canonical GraphQL resolver completed successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RestSuccess"}}}},"400":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"401":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"403":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"404":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"405":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"409":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"422":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"500":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}}},"x-graphql-field":"createTag","x-graphql-operation-type":"mutation","x-required-permissions":[]}},"/api/v1/graphql/mutation/createDomain":{"post":{"operationId":"RestMutationCreateDomain","summary":"Execute createDomain","description":"Create a Domain used to classify Decisions.","tags":["Mutations"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/OrganizationHeader"},{"$ref":"#/components/parameters/WorkspaceHeader"},{"$ref":"#/components/parameters/IdempotencyKeyHeader"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"input":{"type":"object","additionalProperties":true,"description":"GraphQL input argument for this operation."}},"required":["input"],"additionalProperties":false}}}},"responses":{"200":{"description":"The canonical GraphQL resolver completed successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RestSuccess"}}}},"400":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"401":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"403":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"404":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"405":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"409":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"422":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"500":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}}},"x-graphql-field":"createDomain","x-graphql-operation-type":"mutation","x-required-permissions":[]}},"/api/v1/graphql/mutation/createDecisionRevision":{"post":{"operationId":"RestMutationCreateDecisionRevision","summary":"Append and review Decision enrichment","description":"Record a reviewable revision associated with a Decision. Required permissions: decisions.enrich.workspace, decisions.review.workspace.","tags":["Mutations"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/OrganizationHeader"},{"$ref":"#/components/parameters/WorkspaceHeader"},{"$ref":"#/components/parameters/IdempotencyKeyHeader"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"input":{"type":"object","additionalProperties":true,"description":"GraphQL input argument for this operation."}},"required":["input"],"additionalProperties":false}}}},"responses":{"200":{"description":"The canonical GraphQL resolver completed successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RestSuccess"}}}},"400":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"401":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"403":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"404":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"405":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"409":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"422":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"500":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}}},"x-graphql-field":"createDecisionRevision","x-graphql-operation-type":"mutation","x-required-permissions":["decisions.enrich.workspace","decisions.review.workspace"]}},"/api/v1/graphql/mutation/reviewDecisionRevision":{"post":{"operationId":"RestMutationReviewDecisionRevision","summary":"Append and review Decision enrichment","description":"Approve or reject a pending Decision Revision. Required permissions: decisions.enrich.workspace, decisions.review.workspace.","tags":["Mutations"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/OrganizationHeader"},{"$ref":"#/components/parameters/WorkspaceHeader"},{"$ref":"#/components/parameters/IdempotencyKeyHeader"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"input":{"type":"object","additionalProperties":true,"description":"GraphQL input argument for this operation."}},"required":["input"],"additionalProperties":false}}}},"responses":{"200":{"description":"The canonical GraphQL resolver completed successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RestSuccess"}}}},"400":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"401":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"403":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"404":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"405":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"409":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"422":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"500":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}}},"x-graphql-field":"reviewDecisionRevision","x-graphql-operation-type":"mutation","x-required-permissions":["decisions.enrich.workspace","decisions.review.workspace"]}},"/api/v1/graphql/mutation/classifyDecision":{"post":{"operationId":"RestMutationClassifyDecision","summary":"Classify a Decision with Tags and Domains","description":"Classify a Decision with its canonical taxonomy. Required permissions: decisions.enrich.workspace.","tags":["Mutations"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/OrganizationHeader"},{"$ref":"#/components/parameters/WorkspaceHeader"},{"$ref":"#/components/parameters/IdempotencyKeyHeader"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"input":{"type":"object","additionalProperties":true,"description":"GraphQL input argument for this operation."}},"required":["input"],"additionalProperties":false}}}},"responses":{"200":{"description":"The canonical GraphQL resolver completed successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RestSuccess"}}}},"400":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"401":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"403":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"404":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"405":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"409":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"422":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"500":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}}},"x-graphql-field":"classifyDecision","x-graphql-operation-type":"mutation","x-required-permissions":["decisions.enrich.workspace"]}},"/api/v1/graphql/mutation/relateDecision":{"post":{"operationId":"RestMutationRelateDecision","summary":"Execute relateDecision","description":"Create an explicit relationship between two Decisions.","tags":["Mutations"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/OrganizationHeader"},{"$ref":"#/components/parameters/WorkspaceHeader"},{"$ref":"#/components/parameters/IdempotencyKeyHeader"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"input":{"type":"object","additionalProperties":true,"description":"GraphQL input argument for this operation."}},"required":["input"],"additionalProperties":false}}}},"responses":{"200":{"description":"The canonical GraphQL resolver completed successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RestSuccess"}}}},"400":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"401":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"403":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"404":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"405":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"409":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"422":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"500":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}}},"x-graphql-field":"relateDecision","x-graphql-operation-type":"mutation","x-required-permissions":[]}},"/api/v1/graphql/mutation/addDecisionParticipant":{"post":{"operationId":"RestMutationAddDecisionParticipant","summary":"Execute addDecisionParticipant","description":"Record an Actor's participation in a Decision.","tags":["Mutations"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/OrganizationHeader"},{"$ref":"#/components/parameters/WorkspaceHeader"},{"$ref":"#/components/parameters/IdempotencyKeyHeader"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"input":{"type":"object","additionalProperties":true,"description":"GraphQL input argument for this operation."}},"required":["input"],"additionalProperties":false}}}},"responses":{"200":{"description":"The canonical GraphQL resolver completed successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RestSuccess"}}}},"400":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"401":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"403":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"404":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"405":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"409":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"422":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"500":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}}},"x-graphql-field":"addDecisionParticipant","x-graphql-operation-type":"mutation","x-required-permissions":[]}},"/api/v1/graphql/mutation/createApiKey":{"post":{"operationId":"RestMutationCreateApiKey","summary":"Create, list, and revoke API keys","description":"Create an API Key; secret material is returned only at creation. Required permissions: api_keys.manage.organization.","tags":["Mutations"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/OrganizationHeader"},{"$ref":"#/components/parameters/WorkspaceHeader"},{"$ref":"#/components/parameters/IdempotencyKeyHeader"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"input":{"type":"object","additionalProperties":true,"description":"GraphQL input argument for this operation."}},"required":["input"],"additionalProperties":false}}}},"responses":{"200":{"description":"The canonical GraphQL resolver completed successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RestSuccess"}}}},"400":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"401":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"403":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"404":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"405":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"409":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"422":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"500":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}}},"x-graphql-field":"createApiKey","x-graphql-operation-type":"mutation","x-required-permissions":["api_keys.manage.organization"]}},"/api/v1/graphql/mutation/registerMcpClient":{"post":{"operationId":"RestMutationRegisterMcpClient","summary":"Register, list, and revoke MCP clients","description":"Register an MCP Client for authenticated agent access. Required permissions: mcp_clients.manage.organization.","tags":["Mutations"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/OrganizationHeader"},{"$ref":"#/components/parameters/WorkspaceHeader"},{"$ref":"#/components/parameters/IdempotencyKeyHeader"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"input":{"type":"object","additionalProperties":true,"description":"GraphQL input argument for this operation."}},"required":["input"],"additionalProperties":false}}}},"responses":{"200":{"description":"The canonical GraphQL resolver completed successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RestSuccess"}}}},"400":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"401":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"403":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"404":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"405":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"409":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"422":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"500":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}}},"x-graphql-field":"registerMcpClient","x-graphql-operation-type":"mutation","x-required-permissions":["mcp_clients.manage.organization"]}},"/api/v1/graphql/mutation/registerAgent":{"post":{"operationId":"RestMutationRegisterAgent","summary":"Register an agent","description":"Register an Agent identity within an Organization. Required permissions: agents.manage.organization.","tags":["Mutations"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/OrganizationHeader"},{"$ref":"#/components/parameters/WorkspaceHeader"},{"$ref":"#/components/parameters/IdempotencyKeyHeader"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"input":{"type":"object","additionalProperties":true,"description":"GraphQL input argument for this operation."}},"required":["input"],"additionalProperties":false}}}},"responses":{"200":{"description":"The canonical GraphQL resolver completed successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RestSuccess"}}}},"400":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"401":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"403":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"404":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"405":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"409":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"422":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"500":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}}},"x-graphql-field":"registerAgent","x-graphql-operation-type":"mutation","x-required-permissions":["agents.manage.organization"]}},"/api/v1/graphql/mutation/prepareIntegration":{"post":{"operationId":"RestMutationPrepareIntegration","summary":"Execute prepareIntegration","description":"Prepare an Integration before external activation.","tags":["Mutations"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/OrganizationHeader"},{"$ref":"#/components/parameters/WorkspaceHeader"},{"$ref":"#/components/parameters/IdempotencyKeyHeader"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"input":{"type":"object","additionalProperties":true,"description":"GraphQL input argument for this operation."}},"required":["input"],"additionalProperties":false}}}},"responses":{"200":{"description":"The canonical GraphQL resolver completed successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RestSuccess"}}}},"400":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"401":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"403":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"404":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"405":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"409":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"422":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"500":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}}},"x-graphql-field":"prepareIntegration","x-graphql-operation-type":"mutation","x-required-permissions":[]}},"/api/v1/graphql/mutation/activateTeamsIntegration":{"post":{"operationId":"RestMutationActivateTeamsIntegration","summary":"Execute activateTeamsIntegration","description":"Activate a prepared Microsoft Teams Integration.","tags":["Mutations"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/OrganizationHeader"},{"$ref":"#/components/parameters/WorkspaceHeader"},{"$ref":"#/components/parameters/IdempotencyKeyHeader"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"input":{"type":"object","additionalProperties":true,"description":"GraphQL input argument for this operation."}},"required":["input"],"additionalProperties":false}}}},"responses":{"200":{"description":"The canonical GraphQL resolver completed successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RestSuccess"}}}},"400":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"401":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"403":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"404":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"405":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"409":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"422":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"500":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}}},"x-graphql-field":"activateTeamsIntegration","x-graphql-operation-type":"mutation","x-required-permissions":[]}},"/api/v1/graphql/mutation/bindSlackConnectInstallation":{"post":{"operationId":"RestMutationBindSlackConnectInstallation","summary":"Execute bindSlackConnectInstallation","description":"Bind a Slack Connect installation to an Integration.","tags":["Mutations"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/OrganizationHeader"},{"$ref":"#/components/parameters/WorkspaceHeader"},{"$ref":"#/components/parameters/IdempotencyKeyHeader"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"input":{"type":"object","additionalProperties":true,"description":"GraphQL input argument for this operation."}},"required":["input"],"additionalProperties":false}}}},"responses":{"200":{"description":"The canonical GraphQL resolver completed successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RestSuccess"}}}},"400":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"401":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"403":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"404":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"405":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"409":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"422":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"500":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}}},"x-graphql-field":"bindSlackConnectInstallation","x-graphql-operation-type":"mutation","x-required-permissions":[]}},"/api/v1/graphql/mutation/createIntegrationMapping":{"post":{"operationId":"RestMutationCreateIntegrationMapping","summary":"Execute createIntegrationMapping","description":"Create a mapping from external content to Decision Log fields.","tags":["Mutations"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/OrganizationHeader"},{"$ref":"#/components/parameters/WorkspaceHeader"},{"$ref":"#/components/parameters/IdempotencyKeyHeader"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"input":{"type":"object","additionalProperties":true,"description":"GraphQL input argument for this operation."}},"required":["input"],"additionalProperties":false}}}},"responses":{"200":{"description":"The canonical GraphQL resolver completed successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RestSuccess"}}}},"400":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"401":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"403":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"404":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"405":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"409":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"422":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"500":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}}},"x-graphql-field":"createIntegrationMapping","x-graphql-operation-type":"mutation","x-required-permissions":[]}},"/api/v1/graphql/mutation/createInboundEndpoint":{"post":{"operationId":"RestMutationCreateInboundEndpoint","summary":"Execute createInboundEndpoint","description":"Create an authenticated inbound Integration endpoint.","tags":["Mutations"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/OrganizationHeader"},{"$ref":"#/components/parameters/WorkspaceHeader"},{"$ref":"#/components/parameters/IdempotencyKeyHeader"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"input":{"type":"object","additionalProperties":true,"description":"GraphQL input argument for this operation."}},"required":["input"],"additionalProperties":false}}}},"responses":{"200":{"description":"The canonical GraphQL resolver completed successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RestSuccess"}}}},"400":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"401":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"403":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"404":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"405":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"409":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"422":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"500":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}}},"x-graphql-field":"createInboundEndpoint","x-graphql-operation-type":"mutation","x-required-permissions":[]}},"/api/v1/graphql/mutation/rotateInboundEndpointSecret":{"post":{"operationId":"RestMutationRotateInboundEndpointSecret","summary":"Execute rotateInboundEndpointSecret","description":"Rotate the secret for an inbound Integration endpoint.","tags":["Mutations"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/OrganizationHeader"},{"$ref":"#/components/parameters/WorkspaceHeader"},{"$ref":"#/components/parameters/IdempotencyKeyHeader"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"input":{"type":"object","additionalProperties":true,"description":"GraphQL input argument for this operation."}},"required":["input"],"additionalProperties":false}}}},"responses":{"200":{"description":"The canonical GraphQL resolver completed successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RestSuccess"}}}},"400":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"401":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"403":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"404":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"405":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"409":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"422":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"500":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}}},"x-graphql-field":"rotateInboundEndpointSecret","x-graphql-operation-type":"mutation","x-required-permissions":[]}},"/api/v1/graphql/mutation/disableIntegration":{"post":{"operationId":"RestMutationDisableIntegration","summary":"Execute disableIntegration","description":"Disable an Integration while preserving its audit history.","tags":["Mutations"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/OrganizationHeader"},{"$ref":"#/components/parameters/WorkspaceHeader"},{"$ref":"#/components/parameters/IdempotencyKeyHeader"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"input":{"type":"object","additionalProperties":true,"description":"GraphQL input argument for this operation."}},"required":["input"],"additionalProperties":false}}}},"responses":{"200":{"description":"The canonical GraphQL resolver completed successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RestSuccess"}}}},"400":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"401":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"403":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"404":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"405":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"409":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"422":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"500":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}}},"x-graphql-field":"disableIntegration","x-graphql-operation-type":"mutation","x-required-permissions":[]}},"/api/v1/graphql/mutation/linkChatIdentity":{"post":{"operationId":"RestMutationLinkChatIdentity","summary":"Execute linkChatIdentity","description":"Link an external chat identity to the authenticated User.","tags":["Mutations"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/OrganizationHeader"},{"$ref":"#/components/parameters/WorkspaceHeader"},{"$ref":"#/components/parameters/IdempotencyKeyHeader"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"input":{"type":"object","additionalProperties":true,"description":"GraphQL input argument for this operation."}},"required":["input"],"additionalProperties":false}}}},"responses":{"200":{"description":"The canonical GraphQL resolver completed successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RestSuccess"}}}},"400":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"401":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"403":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"404":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"405":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"409":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"422":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"500":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}}},"x-graphql-field":"linkChatIdentity","x-graphql-operation-type":"mutation","x-required-permissions":[]}},"/api/v1/graphql/mutation/onboardingCreateOrganization":{"post":{"operationId":"RestMutationOnboardingCreateOrganization","summary":"Execute onboardingCreateOrganization","description":"Create an Organization during onboarding.","tags":["Mutations"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/OrganizationHeader"},{"$ref":"#/components/parameters/WorkspaceHeader"},{"$ref":"#/components/parameters/IdempotencyKeyHeader"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"input":{"type":"object","additionalProperties":true,"description":"GraphQL input argument for this operation."}},"required":["input"],"additionalProperties":false}}}},"responses":{"200":{"description":"The canonical GraphQL resolver completed successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RestSuccess"}}}},"400":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"401":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"403":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"404":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"405":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"409":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"422":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"500":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}}},"x-graphql-field":"onboardingCreateOrganization","x-graphql-operation-type":"mutation","x-required-permissions":[]}},"/api/v1/graphql/mutation/onboardingCreateWorkspace":{"post":{"operationId":"RestMutationOnboardingCreateWorkspace","summary":"Execute onboardingCreateWorkspace","description":"Create the first Workspace during onboarding.","tags":["Mutations"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/OrganizationHeader"},{"$ref":"#/components/parameters/WorkspaceHeader"},{"$ref":"#/components/parameters/IdempotencyKeyHeader"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"input":{"type":"object","additionalProperties":true,"description":"GraphQL input argument for this operation."}},"required":["input"],"additionalProperties":false}}}},"responses":{"200":{"description":"The canonical GraphQL resolver completed successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RestSuccess"}}}},"400":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"401":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"403":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"404":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"405":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"409":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"422":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"500":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}}},"x-graphql-field":"onboardingCreateWorkspace","x-graphql-operation-type":"mutation","x-required-permissions":[]}},"/api/v1/graphql/mutation/onboardingConfigureIntegrations":{"post":{"operationId":"RestMutationOnboardingConfigureIntegrations","summary":"Execute onboardingConfigureIntegrations","description":"Configure initial external Integrations during onboarding.","tags":["Mutations"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/OrganizationHeader"},{"$ref":"#/components/parameters/WorkspaceHeader"},{"$ref":"#/components/parameters/IdempotencyKeyHeader"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"input":{"type":"object","additionalProperties":true,"description":"GraphQL input argument for this operation."}},"required":["input"],"additionalProperties":false}}}},"responses":{"200":{"description":"The canonical GraphQL resolver completed successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RestSuccess"}}}},"400":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"401":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"403":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"404":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"405":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"409":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"422":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"500":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}}},"x-graphql-field":"onboardingConfigureIntegrations","x-graphql-operation-type":"mutation","x-required-permissions":[]}},"/api/v1/graphql/mutation/onboardingConfigureAgent":{"post":{"operationId":"RestMutationOnboardingConfigureAgent","summary":"Execute onboardingConfigureAgent","description":"Configure an initial Agent during onboarding.","tags":["Mutations"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/OrganizationHeader"},{"$ref":"#/components/parameters/WorkspaceHeader"},{"$ref":"#/components/parameters/IdempotencyKeyHeader"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"input":{"type":"object","additionalProperties":true,"description":"GraphQL input argument for this operation."}},"required":["input"],"additionalProperties":false}}}},"responses":{"200":{"description":"The canonical GraphQL resolver completed successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RestSuccess"}}}},"400":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"401":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"403":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"404":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"405":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"409":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"422":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"500":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}}},"x-graphql-field":"onboardingConfigureAgent","x-graphql-operation-type":"mutation","x-required-permissions":[]}},"/api/v1/graphql/mutation/onboardingConfigureMcp":{"post":{"operationId":"RestMutationOnboardingConfigureMcp","summary":"Execute onboardingConfigureMcp","description":"Configure initial MCP access during onboarding.","tags":["Mutations"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/OrganizationHeader"},{"$ref":"#/components/parameters/WorkspaceHeader"},{"$ref":"#/components/parameters/IdempotencyKeyHeader"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"input":{"type":"object","additionalProperties":true,"description":"GraphQL input argument for this operation."}},"required":["input"],"additionalProperties":false}}}},"responses":{"200":{"description":"The canonical GraphQL resolver completed successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RestSuccess"}}}},"400":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"401":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"403":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"404":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"405":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"409":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"422":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"500":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}}},"x-graphql-field":"onboardingConfigureMcp","x-graphql-operation-type":"mutation","x-required-permissions":[]}},"/api/v1/graphql/mutation/onboardingSelectPlan":{"post":{"operationId":"RestMutationOnboardingSelectPlan","summary":"Execute onboardingSelectPlan","description":"Select an initial subscription plan during onboarding.","tags":["Mutations"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/OrganizationHeader"},{"$ref":"#/components/parameters/WorkspaceHeader"},{"$ref":"#/components/parameters/IdempotencyKeyHeader"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"input":{"type":"object","additionalProperties":true,"description":"GraphQL input argument for this operation."}},"required":["input"],"additionalProperties":false}}}},"responses":{"200":{"description":"The canonical GraphQL resolver completed successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RestSuccess"}}}},"400":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"401":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"403":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"404":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"405":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"409":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"422":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"500":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}}},"x-graphql-field":"onboardingSelectPlan","x-graphql-operation-type":"mutation","x-required-permissions":[]}},"/api/v1/graphql/mutation/onboardingCollectBillingDetails":{"post":{"operationId":"RestMutationOnboardingCollectBillingDetails","summary":"Execute onboardingCollectBillingDetails","description":"Collect billing details required by the selected plan.","tags":["Mutations"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/OrganizationHeader"},{"$ref":"#/components/parameters/WorkspaceHeader"},{"$ref":"#/components/parameters/IdempotencyKeyHeader"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"input":{"type":"object","additionalProperties":true,"description":"GraphQL input argument for this operation."}},"required":["input"],"additionalProperties":false}}}},"responses":{"200":{"description":"The canonical GraphQL resolver completed successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RestSuccess"}}}},"400":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"401":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"403":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"404":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"405":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"409":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"422":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"500":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}}},"x-graphql-field":"onboardingCollectBillingDetails","x-graphql-operation-type":"mutation","x-required-permissions":[]}},"/api/v1/graphql/mutation/onboardingConfigureInvites":{"post":{"operationId":"RestMutationOnboardingConfigureInvites","summary":"Execute onboardingConfigureInvites","description":"Configure initial member invitations during onboarding.","tags":["Mutations"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/OrganizationHeader"},{"$ref":"#/components/parameters/WorkspaceHeader"},{"$ref":"#/components/parameters/IdempotencyKeyHeader"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"input":{"type":"object","additionalProperties":true,"description":"GraphQL input argument for this operation."}},"required":["input"],"additionalProperties":false}}}},"responses":{"200":{"description":"The canonical GraphQL resolver completed successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RestSuccess"}}}},"400":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"401":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"403":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"404":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"405":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"409":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"422":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"500":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}}},"x-graphql-field":"onboardingConfigureInvites","x-graphql-operation-type":"mutation","x-required-permissions":[]}},"/api/v1/graphql/mutation/onboardingCreateFirstDecision":{"post":{"operationId":"RestMutationOnboardingCreateFirstDecision","summary":"Execute onboardingCreateFirstDecision","description":"Record the first immutable Decision during onboarding.","tags":["Mutations"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/OrganizationHeader"},{"$ref":"#/components/parameters/WorkspaceHeader"},{"$ref":"#/components/parameters/IdempotencyKeyHeader"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"input":{"type":"object","additionalProperties":true,"description":"GraphQL input argument for this operation."}},"required":["input"],"additionalProperties":false}}}},"responses":{"200":{"description":"The canonical GraphQL resolver completed successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RestSuccess"}}}},"400":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"401":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"403":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"404":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"405":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"409":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"422":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"500":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}}},"x-graphql-field":"onboardingCreateFirstDecision","x-graphql-operation-type":"mutation","x-required-permissions":[]}},"/api/v1/graphql/mutation/createAdditionalOrganization":{"post":{"operationId":"RestMutationCreateAdditionalOrganization","summary":"Execute createAdditionalOrganization","description":"Create an additional Organization for the authenticated User.","tags":["Mutations"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/OrganizationHeader"},{"$ref":"#/components/parameters/WorkspaceHeader"},{"$ref":"#/components/parameters/IdempotencyKeyHeader"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"input":{"type":"object","additionalProperties":true,"description":"GraphQL input argument for this operation."}},"required":["input"],"additionalProperties":false}}}},"responses":{"200":{"description":"The canonical GraphQL resolver completed successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RestSuccess"}}}},"400":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"401":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"403":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"404":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"405":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"409":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"422":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"500":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}}},"x-graphql-field":"createAdditionalOrganization","x-graphql-operation-type":"mutation","x-required-permissions":[]}},"/api/v1/graphql/mutation/createAdditionalWorkspace":{"post":{"operationId":"RestMutationCreateAdditionalWorkspace","summary":"Create an additional workspace","description":"Create an additional Workspace in an Organization. Required permissions: workspaces.manage.organization.","tags":["Mutations"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/OrganizationHeader"},{"$ref":"#/components/parameters/WorkspaceHeader"},{"$ref":"#/components/parameters/IdempotencyKeyHeader"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"input":{"type":"object","additionalProperties":true,"description":"GraphQL input argument for this operation."}},"required":["input"],"additionalProperties":false}}}},"responses":{"200":{"description":"The canonical GraphQL resolver completed successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RestSuccess"}}}},"400":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"401":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"403":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"404":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"405":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"409":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"422":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"500":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}}},"x-graphql-field":"createAdditionalWorkspace","x-graphql-operation-type":"mutation","x-required-permissions":["workspaces.manage.organization"]}},"/api/v1/graphql/mutation/selectWorkspace":{"post":{"operationId":"RestMutationSelectWorkspace","summary":"Execute selectWorkspace","description":"Select the active Workspace for the current session.","tags":["Mutations"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/OrganizationHeader"},{"$ref":"#/components/parameters/WorkspaceHeader"},{"$ref":"#/components/parameters/IdempotencyKeyHeader"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"input":{"type":"object","additionalProperties":true,"description":"GraphQL input argument for this operation."}},"required":["input"],"additionalProperties":false}}}},"responses":{"200":{"description":"The canonical GraphQL resolver completed successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RestSuccess"}}}},"400":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"401":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"403":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"404":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"405":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"409":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"422":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"500":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}}},"x-graphql-field":"selectWorkspace","x-graphql-operation-type":"mutation","x-required-permissions":[]}},"/api/v1/graphql/mutation/startTeamCheckout":{"post":{"operationId":"RestMutationStartTeamCheckout","summary":"Execute startTeamCheckout","description":"Start hosted checkout for a team subscription.","tags":["Mutations"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/OrganizationHeader"},{"$ref":"#/components/parameters/WorkspaceHeader"},{"$ref":"#/components/parameters/IdempotencyKeyHeader"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"input":{"type":"object","additionalProperties":true,"description":"GraphQL input argument for this operation."}},"required":["input"],"additionalProperties":false}}}},"responses":{"200":{"description":"The canonical GraphQL resolver completed successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RestSuccess"}}}},"400":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"401":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"403":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"404":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"405":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"409":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"422":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"500":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}}},"x-graphql-field":"startTeamCheckout","x-graphql-operation-type":"mutation","x-required-permissions":[]}},"/api/v1/graphql/mutation/startAgentOperationCheckout":{"post":{"operationId":"RestMutationStartAgentOperationCheckout","summary":"Execute startAgentOperationCheckout","description":"Start hosted checkout for metered Agent operations.","tags":["Mutations"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/OrganizationHeader"},{"$ref":"#/components/parameters/WorkspaceHeader"},{"$ref":"#/components/parameters/IdempotencyKeyHeader"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"input":{"type":"object","additionalProperties":true,"description":"GraphQL input argument for this operation."}},"required":["input"],"additionalProperties":false}}}},"responses":{"200":{"description":"The canonical GraphQL resolver completed successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RestSuccess"}}}},"400":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"401":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"403":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"404":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"405":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"409":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"422":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"500":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}}},"x-graphql-field":"startAgentOperationCheckout","x-graphql-operation-type":"mutation","x-required-permissions":[]}},"/api/v1/graphql/mutation/openCustomerPortal":{"post":{"operationId":"RestMutationOpenCustomerPortal","summary":"Execute openCustomerPortal","description":"Open the hosted customer billing portal.","tags":["Mutations"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/OrganizationHeader"},{"$ref":"#/components/parameters/WorkspaceHeader"},{"$ref":"#/components/parameters/IdempotencyKeyHeader"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"input":{"type":"object","additionalProperties":true,"description":"GraphQL input argument for this operation."}},"required":["input"],"additionalProperties":false}}}},"responses":{"200":{"description":"The canonical GraphQL resolver completed successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RestSuccess"}}}},"400":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"401":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"403":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"404":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"405":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"409":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"422":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"500":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}}},"x-graphql-field":"openCustomerPortal","x-graphql-operation-type":"mutation","x-required-permissions":[]}},"/api/v1/graphql/mutation/archiveDecision":{"post":{"operationId":"RestMutationArchiveDecision","summary":"Archive or retract a decision","description":"Archive a Decision without altering its recorded meaning. Required permissions: decisions.archive.workspace.","tags":["Mutations"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/OrganizationHeader"},{"$ref":"#/components/parameters/WorkspaceHeader"},{"$ref":"#/components/parameters/IdempotencyKeyHeader"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"input":{"type":"object","additionalProperties":true,"description":"GraphQL input argument for this operation."}},"required":["input"],"additionalProperties":false}}}},"responses":{"200":{"description":"The canonical GraphQL resolver completed successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RestSuccess"}}}},"400":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"401":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"403":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"404":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"405":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"409":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"422":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"500":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}}},"x-graphql-field":"archiveDecision","x-graphql-operation-type":"mutation","x-required-permissions":["decisions.archive.workspace"]}},"/api/v1/graphql/mutation/retractDecision":{"post":{"operationId":"RestMutationRetractDecision","summary":"Archive or retract a decision","description":"Retract a Decision while preserving its immutable audit record. Required permissions: decisions.archive.workspace.","tags":["Mutations"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/OrganizationHeader"},{"$ref":"#/components/parameters/WorkspaceHeader"},{"$ref":"#/components/parameters/IdempotencyKeyHeader"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"input":{"type":"object","additionalProperties":true,"description":"GraphQL input argument for this operation."}},"required":["input"],"additionalProperties":false}}}},"responses":{"200":{"description":"The canonical GraphQL resolver completed successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RestSuccess"}}}},"400":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"401":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"403":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"404":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"405":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"409":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"422":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"500":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}}},"x-graphql-field":"retractDecision","x-graphql-operation-type":"mutation","x-required-permissions":["decisions.archive.workspace"]}},"/api/v1/graphql/mutation/revokeApiKey":{"post":{"operationId":"RestMutationRevokeApiKey","summary":"Create, list, and revoke API keys","description":"Revoke an API Key without deleting its audit metadata. Required permissions: api_keys.manage.organization.","tags":["Mutations"],"security":[{"bearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/OrganizationHeader"},{"$ref":"#/components/parameters/WorkspaceHeader"},{"$ref":"#/components/parameters/IdempotencyKeyHeader"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"input":{"type":"object","additionalProperties":true,"description":"GraphQL input argument for this operation."}},"required":["input"],"additionalProperties":false}}}},"responses":{"200":{"description":"The canonical GraphQL resolver completed successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RestSuccess"}}}},"400":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"401":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"403":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"404":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"405":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"409":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"422":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}},"500":{"description":"A structured error with a stable machine-readable code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorEnvelope"}}}}},"x-graphql-field":"revokeApiKey","x-graphql-operation-type":"mutation","x-required-permissions":["api_keys.manage.organization"]}}},"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","description":"A Decision Log API key or OAuth access token."}},"parameters":{"OrganizationHeader":{"name":"x-decision-log-org","in":"header","required":true,"description":"Organization slug used to establish tenant scope.","schema":{"type":"string","minLength":1}},"WorkspaceHeader":{"name":"x-decision-log-workspace","in":"header","required":false,"description":"Workspace slug for workspace-scoped operations.","schema":{"type":"string","minLength":1}},"IdempotencyKeyHeader":{"name":"Idempotency-Key","in":"header","required":true,"description":"Client-generated key copied into the canonical GraphQL mutation input when __idempotencyKey is absent.","schema":{"type":"string","minLength":1,"maxLength":255}}},"schemas":{"JsonValue":{"oneOf":[{"type":"object","additionalProperties":true},{"type":"array","items":{}},{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"}]},"RestSuccess":{"type":"object","required":["data"],"properties":{"data":{"$ref":"#/components/schemas/JsonValue"}},"additionalProperties":false},"DecisionSearchPageInput":{"type":"object","properties":{"query":{"type":"string"},"status":{"type":"string"},"decisionType":{"type":"string"},"decisionKey":{"type":"string"},"projectId":{"type":["string","null"],"format":"uuid"},"tag":{"type":"string"},"domain":{"type":"string"},"currentOnly":{"type":"boolean"},"includeSuperseded":{"type":"boolean"},"sort":{"type":"string","enum":["newest","oldest","title"],"default":"newest"},"limit":{"type":"integer","minimum":1,"maximum":100,"default":25},"offset":{"type":"integer","minimum":0,"default":0}},"additionalProperties":false},"DecisionSearchPage":{"type":"object","required":["results","totalCount","limit","offset","hasNext"],"properties":{"results":{"type":"array","items":{"$ref":"#/components/schemas/JsonValue"}},"totalCount":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":1,"maximum":100},"offset":{"type":"integer","minimum":0},"hasNext":{"type":"boolean"}},"additionalProperties":false},"RestDecisionSearchPageSuccess":{"type":"object","required":["data"],"properties":{"data":{"$ref":"#/components/schemas/DecisionSearchPage"}},"additionalProperties":false},"DecisionConnectionFilterInput":{"type":"object","properties":{"query":{"type":"string"},"status":{"type":"string"},"decisionType":{"type":"string"},"decisionKey":{"type":"string"},"projectId":{"type":["string","null"],"format":"uuid"},"tag":{"type":"string"},"domain":{"type":"string"},"currentOnly":{"type":"boolean"},"includeSuperseded":{"type":"boolean"},"sort":{"type":"string","enum":["newest","oldest","title"],"default":"newest"}},"additionalProperties":false},"PageInfo":{"type":"object","required":["hasNextPage","hasPreviousPage"],"properties":{"hasNextPage":{"type":"boolean"},"hasPreviousPage":{"type":"boolean"},"startCursor":{"type":["string","null"]},"endCursor":{"type":["string","null"]}},"additionalProperties":false},"DecisionEdge":{"type":"object","required":["cursor","node"],"properties":{"cursor":{"type":"string","minLength":1},"node":{"$ref":"#/components/schemas/JsonValue"}},"additionalProperties":false},"DecisionConnection":{"type":"object","required":["edges","nodes","pageInfo","totalCount"],"properties":{"edges":{"type":"array","items":{"$ref":"#/components/schemas/DecisionEdge"}},"nodes":{"type":"array","items":{"$ref":"#/components/schemas/JsonValue"}},"pageInfo":{"$ref":"#/components/schemas/PageInfo"},"totalCount":{"type":"integer","minimum":0}},"additionalProperties":false},"RestDecisionConnectionSuccess":{"type":"object","required":["data"],"properties":{"data":{"$ref":"#/components/schemas/DecisionConnection"}},"additionalProperties":false},"IngestionJob":{"type":"object","required":["id","status","progress","startedAt"],"properties":{"id":{"type":"string","minLength":1},"status":{"type":"string","enum":["pending","running","completed","failed"]},"progress":{"type":"integer","minimum":0,"maximum":100},"startedAt":{"type":"string","format":"date-time"},"completedAt":{"type":["string","null"],"format":"date-time"},"failedAt":{"type":["string","null"],"format":"date-time"},"errorCode":{"type":["string","null"]},"errorMessage":{"type":["string","null"]}},"additionalProperties":false},"RestIngestionJobSuccess":{"type":"object","required":["data"],"properties":{"data":{"$ref":"#/components/schemas/IngestionJob"}},"additionalProperties":false},"CreateDecisionSuccess":{"type":"object","required":["__typename","decision"],"properties":{"__typename":{"const":"CreateDecisionSuccess"},"decision":{"$ref":"#/components/schemas/JsonValue"},"correlationId":{"type":"string"}},"additionalProperties":false},"MutationError":{"type":"object","required":["__typename","code","message","resolution"],"properties":{"__typename":{"type":"string","enum":["ValidationError","AuthorizationError","ConflictError","NotFoundError","InternalError"]},"code":{"type":"string"},"message":{"type":"string"},"resolution":{"type":"string"},"correlationId":{"type":"string"}},"additionalProperties":false},"CreateDecisionResult":{"oneOf":[{"$ref":"#/components/schemas/CreateDecisionSuccess"},{"$ref":"#/components/schemas/MutationError"}],"discriminator":{"propertyName":"__typename"}},"RestCreateDecisionResultSuccess":{"type":"object","required":["data"],"properties":{"data":{"$ref":"#/components/schemas/CreateDecisionPayload"}},"additionalProperties":false},"CreateDecisionPayload":{"type":"object","required":["result","errors"],"properties":{"result":{"$ref":"#/components/schemas/CreateDecisionResult"},"errors":{"type":"array","items":{"$ref":"#/components/schemas/MutationError"}},"correlationId":{"type":"string"}},"additionalProperties":false},"ApiErrorEnvelope":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/ApiError"}},"additionalProperties":false},"ApiError":{"type":"object","required":["code","message","resolution"],"properties":{"code":{"type":"string","description":"Stable machine-readable error code."},"message":{"type":"string"},"resolution":{"type":"string","description":"A concrete hint for correcting the request."},"correlationId":{"type":"string"}},"additionalProperties":false}}}}