{"openapi":"3.1.0","info":{"title":"Parallel Brain Agent API","version":"2.0.0","description":"Agent Connection-authenticated API. Scope and authority are always derived from current server state."},"servers":[{"url":"https://parallelbrain.org/api/agent/v2"}],"paths":{"/bootstrap":{"get":{"operationId":"get_agent_bootstrap","summary":"Get the current effective Agent Bootstrap Manifest","security":[{"AgentConnectionBearer":[]}],"x-consequence":"read-only","responses":{"200":{"description":"Successful private response","headers":{"X-Parallel-Brain-API-Version":{"schema":{"type":"string","const":"2.0.0"}},"X-Request-ID":{"schema":{"type":"string"}},"Cache-Control":{"schema":{"type":"string","const":"private, no-store"}},"Vary":{"schema":{"type":"string","const":"Authorization"}},"ETag":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentBootstrapManifestEnvelope"}}}},"304":{"description":"Representation unchanged","headers":{"X-Parallel-Brain-API-Version":{"schema":{"type":"string","const":"2.0.0"}},"X-Request-ID":{"schema":{"type":"string"}},"Cache-Control":{"schema":{"type":"string","const":"private, no-store"}},"Vary":{"schema":{"type":"string","const":"Authorization"}},"ETag":{"schema":{"type":"string"}}}},"400":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"412":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"413":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/context":{"get":{"operationId":"get_agent_context","summary":"Get safe current Agent context","security":[{"AgentConnectionBearer":[]}],"x-consequence":"read-only","responses":{"200":{"description":"Successful private response","headers":{"X-Parallel-Brain-API-Version":{"schema":{"type":"string","const":"2.0.0"}},"X-Request-ID":{"schema":{"type":"string"}},"Cache-Control":{"schema":{"type":"string","const":"private, no-store"}},"Vary":{"schema":{"type":"string","const":"Authorization"}},"ETag":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentContextEnvelope"}}}},"304":{"description":"Representation unchanged","headers":{"X-Parallel-Brain-API-Version":{"schema":{"type":"string","const":"2.0.0"}},"X-Request-ID":{"schema":{"type":"string"}},"Cache-Control":{"schema":{"type":"string","const":"private, no-store"}},"Vary":{"schema":{"type":"string","const":"Authorization"}},"ETag":{"schema":{"type":"string"}}}},"400":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"412":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"413":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/skills":{"get":{"operationId":"list_skill_definitions","summary":"List current authorized Skill Definitions","security":[{"AgentConnectionBearer":[]}],"x-consequence":"read-only","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100,"default":25}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","maxLength":2048}}],"responses":{"200":{"description":"Successful private response","headers":{"X-Parallel-Brain-API-Version":{"schema":{"type":"string","const":"2.0.0"}},"X-Request-ID":{"schema":{"type":"string"}},"Cache-Control":{"schema":{"type":"string","const":"private, no-store"}},"Vary":{"schema":{"type":"string","const":"Authorization"}},"ETag":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SkillPageEnvelope"}}}},"304":{"description":"Representation unchanged","headers":{"X-Parallel-Brain-API-Version":{"schema":{"type":"string","const":"2.0.0"}},"X-Request-ID":{"schema":{"type":"string"}},"Cache-Control":{"schema":{"type":"string","const":"private, no-store"}},"Vary":{"schema":{"type":"string","const":"Authorization"}},"ETag":{"schema":{"type":"string"}}}},"400":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"412":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"413":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/skills/{skillId}":{"get":{"operationId":"get_skill_definition","summary":"Get the Current Skill Version","security":[{"AgentConnectionBearer":[]}],"x-consequence":"read-only","parameters":[{"name":"skillId","in":"path","required":true,"schema":{"type":"string","pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"}}],"responses":{"200":{"description":"Successful private response","headers":{"X-Parallel-Brain-API-Version":{"schema":{"type":"string","const":"2.0.0"}},"X-Request-ID":{"schema":{"type":"string"}},"Cache-Control":{"schema":{"type":"string","const":"private, no-store"}},"Vary":{"schema":{"type":"string","const":"Authorization"}},"ETag":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SkillDefinitionEnvelope"}}}},"304":{"description":"Representation unchanged","headers":{"X-Parallel-Brain-API-Version":{"schema":{"type":"string","const":"2.0.0"}},"X-Request-ID":{"schema":{"type":"string"}},"Cache-Control":{"schema":{"type":"string","const":"private, no-store"}},"Vary":{"schema":{"type":"string","const":"Authorization"}},"ETag":{"schema":{"type":"string"}}}},"400":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"412":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"413":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/skills/{skillId}/versions/{version}":{"get":{"operationId":"get_skill_version","summary":"Get an exact provenance-authorized historical Skill Version","security":[{"AgentConnectionBearer":[]}],"x-consequence":"read-only","parameters":[{"name":"skillId","in":"path","required":true,"schema":{"type":"string","pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"}},{"name":"version","in":"path","required":true,"schema":{"type":"string","pattern":"^[0-9]+\\.[0-9]+\\.[0-9]+$"}},{"name":"provenance_document_id","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":200}}],"responses":{"200":{"description":"Successful private response","headers":{"X-Parallel-Brain-API-Version":{"schema":{"type":"string","const":"2.0.0"}},"X-Request-ID":{"schema":{"type":"string"}},"Cache-Control":{"schema":{"type":"string","const":"private, no-store"}},"Vary":{"schema":{"type":"string","const":"Authorization"}},"ETag":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SkillDefinitionEnvelope"}}}},"304":{"description":"Representation unchanged","headers":{"X-Parallel-Brain-API-Version":{"schema":{"type":"string","const":"2.0.0"}},"X-Request-ID":{"schema":{"type":"string"}},"Cache-Control":{"schema":{"type":"string","const":"private, no-store"}},"Vary":{"schema":{"type":"string","const":"Authorization"}},"ETag":{"schema":{"type":"string"}}}},"400":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"412":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"413":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/search":{"get":{"operationId":"search_knowledge","summary":"Search authorized personal knowledge","security":[{"AgentConnectionBearer":[]}],"x-consequence":"read-only","parameters":[{"name":"q","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":500}},{"name":"locale","in":"query","required":false,"schema":{"enum":["en-US","es-MX"]}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":50,"default":25}}],"responses":{"200":{"description":"Successful private response","headers":{"X-Parallel-Brain-API-Version":{"schema":{"type":"string","const":"2.0.0"}},"X-Request-ID":{"schema":{"type":"string"}},"Cache-Control":{"schema":{"type":"string","const":"private, no-store"}},"Vary":{"schema":{"type":"string","const":"Authorization"}},"ETag":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KnowledgeSearchEnvelope"}}}},"304":{"description":"Representation unchanged","headers":{"X-Parallel-Brain-API-Version":{"schema":{"type":"string","const":"2.0.0"}},"X-Request-ID":{"schema":{"type":"string"}},"Cache-Control":{"schema":{"type":"string","const":"private, no-store"}},"Vary":{"schema":{"type":"string","const":"Authorization"}},"ETag":{"schema":{"type":"string"}}}},"400":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"412":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"413":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/documents/{documentId}":{"get":{"operationId":"get_document","summary":"Get one complete authorized document revision","security":[{"AgentConnectionBearer":[]}],"x-consequence":"read-only","parameters":[{"name":"documentId","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_.:@/-]{1,200}$"}},{"name":"revision","in":"query","required":false,"schema":{"type":"integer","minimum":1}}],"responses":{"200":{"description":"Successful private response","headers":{"X-Parallel-Brain-API-Version":{"schema":{"type":"string","const":"2.0.0"}},"X-Request-ID":{"schema":{"type":"string"}},"Cache-Control":{"schema":{"type":"string","const":"private, no-store"}},"Vary":{"schema":{"type":"string","const":"Authorization"}},"ETag":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KnowledgeDocumentEnvelope"}}}},"304":{"description":"Representation unchanged","headers":{"X-Parallel-Brain-API-Version":{"schema":{"type":"string","const":"2.0.0"}},"X-Request-ID":{"schema":{"type":"string"}},"Cache-Control":{"schema":{"type":"string","const":"private, no-store"}},"Vary":{"schema":{"type":"string","const":"Authorization"}},"ETag":{"schema":{"type":"string"}}}},"400":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"412":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"413":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/documents/{documentId}/observation":{"get":{"operationId":"get_personal_observation","summary":"Get the active Personal Observation for an authorized Digestion or Note","security":[{"AgentConnectionBearer":[]}],"x-consequence":"read-only","parameters":[{"name":"documentId","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_.:@/-]{1,200}$"}}],"responses":{"200":{"description":"Successful private response","headers":{"X-Parallel-Brain-API-Version":{"schema":{"type":"string","const":"2.0.0"}},"X-Request-ID":{"schema":{"type":"string"}},"Cache-Control":{"schema":{"type":"string","const":"private, no-store"}},"Vary":{"schema":{"type":"string","const":"Authorization"}},"ETag":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PersonalObservationEnvelope"}}}},"304":{"description":"Representation unchanged","headers":{"X-Parallel-Brain-API-Version":{"schema":{"type":"string","const":"2.0.0"}},"X-Request-ID":{"schema":{"type":"string"}},"Cache-Control":{"schema":{"type":"string","const":"private, no-store"}},"Vary":{"schema":{"type":"string","const":"Authorization"}},"ETag":{"schema":{"type":"string"}}}},"400":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"412":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"413":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/managed-assets/staging":{"post":{"operationId":"stage_managed_graphic_asset","summary":"Validate and stage a static Managed Graphic Asset","security":[{"AgentConnectionBearer":[]}],"x-consequence":"creates-content","requestBody":{"required":true,"x-max-bytes":16777216,"content":{"multipart/form-data":{"schema":{"type":"object","additionalProperties":false,"required":["file","purpose"],"properties":{"file":{"type":"string","format":"binary"},"purpose":{"enum":["digestion","note","wiki-integration","wiki-maintenance"]}}}}}},"responses":{"201":{"description":"Validated staging handle","headers":{"X-Parallel-Brain-API-Version":{"schema":{"type":"string","const":"2.0.0"}},"X-Request-ID":{"schema":{"type":"string"}},"Cache-Control":{"schema":{"type":"string","const":"private, no-store"}},"Vary":{"schema":{"type":"string","const":"Authorization"}},"ETag":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ManagedAssetStagingEnvelope"}}}},"400":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"412":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"413":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/managed-assets/{assetId}/revisions/{revision}":{"get":{"operationId":"get_managed_graphic_asset","summary":"Get one exact authorized Asset Revision","security":[{"AgentConnectionBearer":[]}],"x-consequence":"read-only","parameters":[{"name":"assetId","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_.:@/-]{1,200}$"}},{"name":"revision","in":"path","required":true,"schema":{"type":"string","pattern":"^[1-9][0-9]*$"}}],"responses":{"200":{"description":"Exact canonical normalized image bytes","headers":{"X-Parallel-Brain-API-Version":{"schema":{"type":"string","const":"2.0.0"}},"X-Request-ID":{"schema":{"type":"string"}},"Cache-Control":{"schema":{"type":"string","const":"private, no-store"}},"Vary":{"schema":{"type":"string","const":"Authorization"}},"ETag":{"schema":{"type":"string"}}},"content":{"image/png":{"schema":{"type":"string","format":"binary"}},"image/jpeg":{"schema":{"type":"string","format":"binary"}},"image/webp":{"schema":{"type":"string","format":"binary"}}}},"304":{"description":"Representation unchanged","headers":{"X-Parallel-Brain-API-Version":{"schema":{"type":"string","const":"2.0.0"}},"X-Request-ID":{"schema":{"type":"string"}},"Cache-Control":{"schema":{"type":"string","const":"private, no-store"}},"Vary":{"schema":{"type":"string","const":"Authorization"}},"ETag":{"schema":{"type":"string"}}}},"400":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"412":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"413":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/digestion-contributions":{"post":{"operationId":"contribute_digestion","summary":"Create or revise one attributable Digestion pair","security":[{"AgentConnectionBearer":[]}],"x-consequence":"creates-content","parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":16,"maxLength":200}}],"requestBody":{"required":true,"x-max-bytes":16777216,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DigestionContributionInput"}}}},"responses":{"200":{"description":"Idempotently replayed contribution","headers":{"X-Parallel-Brain-API-Version":{"schema":{"type":"string","const":"2.0.0"}},"X-Request-ID":{"schema":{"type":"string"}},"Cache-Control":{"schema":{"type":"string","const":"private, no-store"}},"Vary":{"schema":{"type":"string","const":"Authorization"}},"ETag":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DigestionContributionEnvelope"}}}},"201":{"description":"Committed contribution","headers":{"X-Parallel-Brain-API-Version":{"schema":{"type":"string","const":"2.0.0"}},"X-Request-ID":{"schema":{"type":"string"}},"Cache-Control":{"schema":{"type":"string","const":"private, no-store"}},"Vary":{"schema":{"type":"string","const":"Authorization"}},"ETag":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DigestionContributionEnvelope"}}}},"400":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"412":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"413":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/notes/contributions":{"post":{"operationId":"contribute_note","summary":"Create, revise, archive, or restore an attributable Note","security":[{"AgentConnectionBearer":[]}],"x-consequence":"creates-content","parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":16,"maxLength":200}}],"requestBody":{"required":true,"x-max-bytes":16777216,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoteContributionInput"}}}},"responses":{"200":{"description":"Successful private response","headers":{"X-Parallel-Brain-API-Version":{"schema":{"type":"string","const":"2.0.0"}},"X-Request-ID":{"schema":{"type":"string"}},"Cache-Control":{"schema":{"type":"string","const":"private, no-store"}},"Vary":{"schema":{"type":"string","const":"Authorization"}},"ETag":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoteContributionEnvelope"}}}},"201":{"description":"Note contributed","headers":{"X-Parallel-Brain-API-Version":{"schema":{"type":"string","const":"2.0.0"}},"X-Request-ID":{"schema":{"type":"string"}},"Cache-Control":{"schema":{"type":"string","const":"private, no-store"}},"Vary":{"schema":{"type":"string","const":"Authorization"}},"ETag":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoteContributionEnvelope"}}}},"304":{"description":"Representation unchanged","headers":{"X-Parallel-Brain-API-Version":{"schema":{"type":"string","const":"2.0.0"}},"X-Request-ID":{"schema":{"type":"string"}},"Cache-Control":{"schema":{"type":"string","const":"private, no-store"}},"Vary":{"schema":{"type":"string","const":"Authorization"}},"ETag":{"schema":{"type":"string"}}}},"400":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"412":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"413":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/integration-requests":{"get":{"operationId":"list_integration_requests","summary":"List visible Integration Requests","security":[{"AgentConnectionBearer":[]}],"x-consequence":"read-only","parameters":[{"name":"locale","in":"query","required":true,"schema":{"enum":["en-US","es-MX"]}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":50,"default":20}}],"responses":{"200":{"description":"Successful private response","headers":{"X-Parallel-Brain-API-Version":{"schema":{"type":"string","const":"2.0.0"}},"X-Request-ID":{"schema":{"type":"string"}},"Cache-Control":{"schema":{"type":"string","const":"private, no-store"}},"Vary":{"schema":{"type":"string","const":"Authorization"}},"ETag":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationRequestPageEnvelope"}}}},"304":{"description":"Representation unchanged","headers":{"X-Parallel-Brain-API-Version":{"schema":{"type":"string","const":"2.0.0"}},"X-Request-ID":{"schema":{"type":"string"}},"Cache-Control":{"schema":{"type":"string","const":"private, no-store"}},"Vary":{"schema":{"type":"string","const":"Authorization"}},"ETag":{"schema":{"type":"string"}}}},"400":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"412":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"413":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/integration-claims":{"post":{"operationId":"acquire_integration_claim","summary":"Acquire a fenced Integration Claim lease","security":[{"AgentConnectionBearer":[]}],"x-consequence":"changes-access","parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":16,"maxLength":200}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WikiClaimAcquireInput"}}}},"responses":{"201":{"description":"Claim acquired","headers":{"X-Parallel-Brain-API-Version":{"schema":{"type":"string","const":"2.0.0"}},"X-Request-ID":{"schema":{"type":"string"}},"Cache-Control":{"schema":{"type":"string","const":"private, no-store"}},"Vary":{"schema":{"type":"string","const":"Authorization"}},"ETag":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WikiClaimEnvelope"}}}},"400":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"412":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"413":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/integration-claims/{integrationRequestId}/renew":{"post":{"operationId":"renew_integration_claim","summary":"Renew a current Integration Claim lease","security":[{"AgentConnectionBearer":[]}],"x-consequence":"changes-access","parameters":[{"name":"integrationRequestId","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_.:@/-]{1,200}$"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":16,"maxLength":200}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WikiClaimLeaseInput"}}}},"responses":{"200":{"description":"Successful private response","headers":{"X-Parallel-Brain-API-Version":{"schema":{"type":"string","const":"2.0.0"}},"X-Request-ID":{"schema":{"type":"string"}},"Cache-Control":{"schema":{"type":"string","const":"private, no-store"}},"Vary":{"schema":{"type":"string","const":"Authorization"}},"ETag":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WikiClaimEnvelope"}}}},"304":{"description":"Representation unchanged","headers":{"X-Parallel-Brain-API-Version":{"schema":{"type":"string","const":"2.0.0"}},"X-Request-ID":{"schema":{"type":"string"}},"Cache-Control":{"schema":{"type":"string","const":"private, no-store"}},"Vary":{"schema":{"type":"string","const":"Authorization"}},"ETag":{"schema":{"type":"string"}}}},"400":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"412":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"413":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/integration-claims/{integrationRequestId}/release":{"post":{"operationId":"release_integration_claim","summary":"Release a current Integration Claim lease","security":[{"AgentConnectionBearer":[]}],"x-consequence":"changes-access","parameters":[{"name":"integrationRequestId","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_.:@/-]{1,200}$"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":16,"maxLength":200}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WikiClaimLeaseInput"}}}},"responses":{"200":{"description":"Successful private response","headers":{"X-Parallel-Brain-API-Version":{"schema":{"type":"string","const":"2.0.0"}},"X-Request-ID":{"schema":{"type":"string"}},"Cache-Control":{"schema":{"type":"string","const":"private, no-store"}},"Vary":{"schema":{"type":"string","const":"Authorization"}},"ETag":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WikiClaimEnvelope"}}}},"304":{"description":"Representation unchanged","headers":{"X-Parallel-Brain-API-Version":{"schema":{"type":"string","const":"2.0.0"}},"X-Request-ID":{"schema":{"type":"string"}},"Cache-Control":{"schema":{"type":"string","const":"private, no-store"}},"Vary":{"schema":{"type":"string","const":"Authorization"}},"ETag":{"schema":{"type":"string"}}}},"400":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"412":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"413":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/wiki-integration-batches":{"post":{"operationId":"commit_wiki_integration","summary":"Commit a fenced Wiki Integration Batch","security":[{"AgentConnectionBearer":[]}],"x-consequence":"updates-content","parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":16,"maxLength":200}}],"requestBody":{"required":true,"x-max-bytes":1048576,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WikiIntegrationBatchInput"}}}},"responses":{"200":{"description":"Successful private response","headers":{"X-Parallel-Brain-API-Version":{"schema":{"type":"string","const":"2.0.0"}},"X-Request-ID":{"schema":{"type":"string"}},"Cache-Control":{"schema":{"type":"string","const":"private, no-store"}},"Vary":{"schema":{"type":"string","const":"Authorization"}},"ETag":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WikiBatchEnvelope"}}}},"201":{"description":"Batch committed","headers":{"X-Parallel-Brain-API-Version":{"schema":{"type":"string","const":"2.0.0"}},"X-Request-ID":{"schema":{"type":"string"}},"Cache-Control":{"schema":{"type":"string","const":"private, no-store"}},"Vary":{"schema":{"type":"string","const":"Authorization"}},"ETag":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WikiBatchEnvelope"}}}},"304":{"description":"Representation unchanged","headers":{"X-Parallel-Brain-API-Version":{"schema":{"type":"string","const":"2.0.0"}},"X-Request-ID":{"schema":{"type":"string"}},"Cache-Control":{"schema":{"type":"string","const":"private, no-store"}},"Vary":{"schema":{"type":"string","const":"Authorization"}},"ETag":{"schema":{"type":"string"}}}},"400":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"412":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"413":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/wiki-maintenance-batches":{"post":{"operationId":"commit_wiki_maintenance","summary":"Commit a fenced direct Wiki Maintenance Batch","security":[{"AgentConnectionBearer":[]}],"x-consequence":"updates-content","parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":16,"maxLength":200}}],"requestBody":{"required":true,"x-max-bytes":1048576,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WikiMaintenanceBatchInput"}}}},"responses":{"200":{"description":"Successful private response","headers":{"X-Parallel-Brain-API-Version":{"schema":{"type":"string","const":"2.0.0"}},"X-Request-ID":{"schema":{"type":"string"}},"Cache-Control":{"schema":{"type":"string","const":"private, no-store"}},"Vary":{"schema":{"type":"string","const":"Authorization"}},"ETag":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WikiBatchEnvelope"}}}},"201":{"description":"Batch committed","headers":{"X-Parallel-Brain-API-Version":{"schema":{"type":"string","const":"2.0.0"}},"X-Request-ID":{"schema":{"type":"string"}},"Cache-Control":{"schema":{"type":"string","const":"private, no-store"}},"Vary":{"schema":{"type":"string","const":"Authorization"}},"ETag":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WikiBatchEnvelope"}}}},"304":{"description":"Representation unchanged","headers":{"X-Parallel-Brain-API-Version":{"schema":{"type":"string","const":"2.0.0"}},"X-Request-ID":{"schema":{"type":"string"}},"Cache-Control":{"schema":{"type":"string","const":"private, no-store"}},"Vary":{"schema":{"type":"string","const":"Authorization"}},"ETag":{"schema":{"type":"string"}}}},"400":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"412":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"413":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"RFC 9457 Problem Details","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}}},"components":{"securitySchemes":{"AgentConnectionBearer":{"type":"http","scheme":"bearer","bearerFormat":"Parallel Brain Agent Connection credential"}},"schemas":{"ResponseMeta":{"type":"object","additionalProperties":false,"required":["request_id","consequence"],"properties":{"request_id":{"type":"string"},"consequence":{"enum":["read-only","creates-content","updates-content","changes-access","destructive"]}}},"AgentContext":{"type":"object","additionalProperties":false,"required":["agent_client_id","agent_connection_id","profile","capability_set_version","capabilities","authority_version"],"properties":{"agent_client_id":{"type":"string"},"agent_connection_id":{"type":"string"},"profile":{"type":"string"},"capability_set_version":{"type":"string","const":"1.1.0"},"capabilities":{"type":"array","uniqueItems":true,"items":{"enum":["knowledge:read","skill:read","observation:read","digestion:contribute","note:contribute","source:acquire","integration:read-own","event:subscribe"]}},"authority_version":{"type":"string"}}},"AgentBootstrapManifest":{"type":"object","additionalProperties":false,"required":["agent_client","agent_connection","agent_host","transport_bindings","capability_set","skills","limits","lifecycle","authority_version","contracts"],"properties":{"agent_client":{"type":"object","additionalProperties":false,"required":["id"],"properties":{"id":{"type":"string"}}},"agent_connection":{"type":"object","additionalProperties":false,"required":["id","state"],"properties":{"id":{"type":"string"},"state":{"enum":["connected","suspended"]}}},"agent_host":{"type":"object","additionalProperties":false,"required":["product","version","profile"],"properties":{"product":{"type":"string"},"version":{"type":"string"},"profile":{"type":"object","additionalProperties":false,"required":["id","version","claim"],"properties":{"id":{"type":"string"},"version":{"type":"string"},"claim":{"enum":["generic","verified"]},"evidence":{"type":"object","additionalProperties":false,"required":["release_candidate","release_manifest_sha256","valid_until"],"properties":{"release_candidate":{"type":"string"},"release_manifest_sha256":{"type":"string","pattern":"^[a-f0-9]{64}$"},"valid_until":{"type":"string","format":"date-time"}}}}}}},"transport_bindings":{"type":"array","uniqueItems":true,"maxItems":2,"items":{"type":"object","additionalProperties":false,"required":["transport","profile_id","contract_version"],"properties":{"transport":{"enum":["rest","mcp"]},"profile_id":{"type":"string"},"contract_version":{"type":"string"}}}},"capability_set":{"type":"object","additionalProperties":false,"required":["version","capabilities"],"properties":{"version":{"const":"1.1.0"},"capabilities":{"type":"array","uniqueItems":true,"items":{"enum":["knowledge:read","skill:read","observation:read","digestion:contribute","note:contribute","source:acquire","integration:read-own","event:subscribe"]}}}},"skills":{"type":"object","additionalProperties":false,"required":["catalog_revision","catalog","current"],"properties":{"catalog_revision":{"type":"integer","minimum":1},"catalog":{"type":"string"},"current":{"type":"array","items":{"type":"object","additionalProperties":false,"required":["id","version","checksum","href"],"properties":{"id":{"type":"string"},"version":{"type":"string"},"checksum":{"type":"string","pattern":"^[a-f0-9]{64}$"},"href":{"type":"string"}}}}}},"limits":{"type":"object","additionalProperties":false,"required":["active_clients_per_space","reads_per_minute","mutations_per_minute","maximum_payload_bytes","maximum_execution_milliseconds","maximum_outstanding_work"],"properties":{"active_clients_per_space":{"type":"integer","minimum":1},"reads_per_minute":{"type":"integer","minimum":1},"mutations_per_minute":{"type":"integer","minimum":1},"maximum_payload_bytes":{"type":"integer","minimum":1},"maximum_execution_milliseconds":{"type":"integer","minimum":1},"maximum_outstanding_work":{"type":"integer","minimum":1}}},"lifecycle":{"type":"object","additionalProperties":false,"required":["state"],"properties":{"state":{"enum":["connected","suspended"]}}},"authority_version":{"type":"string"},"contracts":{"type":"object","additionalProperties":false,"required":["discovery","bootstrap","openapi","rest_context","mcp","agent_api_version","mcp_profile_version"],"properties":{"discovery":{"type":"string"},"bootstrap":{"type":"string"},"openapi":{"type":"string"},"rest_context":{"type":"string"},"mcp":{"type":"string"},"agent_api_version":{"const":"2.0.0"},"mcp_profile_version":{"type":"string"}}}}},"SkillSummary":{"type":"object","additionalProperties":false,"required":["id","name","current_version","checksum","definition"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"current_version":{"type":"string"},"checksum":{"type":"string","pattern":"^[a-f0-9]{64}$"},"definition":{"type":"string"}}},"SkillDefinition":{"type":"object","additionalProperties":false,"required":["id","name","version","checksum","definition"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"version":{"type":"string"},"checksum":{"type":"string","pattern":"^[a-f0-9]{64}$"},"definition":{"type":"string"}}},"ContentsEntry":{"type":"object","additionalProperties":false,"required":["id","title","level","parent_id","ordinal","fragment"],"properties":{"id":{"type":"string"},"title":{"type":"string"},"level":{"type":"integer","minimum":2,"maximum":6},"parent_id":{"type":["string","null"]},"ordinal":{"type":"integer","minimum":0},"fragment":{"type":"string","pattern":"^#"}}},"SourceReference":{"type":"object","additionalProperties":false,"required":["id","revision","path"],"properties":{"knowledgeItemId":{"type":"string"},"knowledgeItemGeneration":{"type":"integer","minimum":1},"id":{"type":"string"},"revision":{"type":"integer","minimum":1},"path":{"type":"string"},"documentClass":{"enum":["digestion","note"]},"classification":{"enum":["evidence","personal-knowledge"]}}},"WikiLink":{"type":"object","additionalProperties":false,"required":["target","document_id","document_class"],"properties":{"target":{"type":"string"},"document_id":{"type":["string","null"]},"document_class":{"type":["string","null"]}}},"ManagedAssetReference":{"type":"object","additionalProperties":false,"required":["reference_key","asset_id","asset_revision","expected_sha256","alternative_text","decorative","caption","presentation","media_type","width","height","available"],"properties":{"reference_key":{"type":"string"},"asset_id":{"type":"string"},"asset_revision":{"type":"integer","minimum":1},"expected_sha256":{"type":"string","pattern":"^[a-f0-9]{64}$"},"alternative_text":{"type":["string","null"]},"decorative":{"type":"boolean"},"caption":{"type":["string","null"]},"presentation":{"enum":["inline","block","wide"]},"media_type":{"type":["string","null"]},"width":{"type":["integer","null"]},"height":{"type":["integer","null"]},"available":{"type":"boolean"}}},"PageContent":{"type":"object","additionalProperties":false,"required":["kind","frontmatter","body","sources","wikilinks","contents","managed_assets"],"properties":{"kind":{"const":"page"},"frontmatter":{"type":"object"},"body":{"type":"string"},"sources":{"type":"array","items":{"$ref":"#/components/schemas/SourceReference"}},"wikilinks":{"type":"array","items":{"$ref":"#/components/schemas/WikiLink"}},"contents":{"type":"array","items":{"$ref":"#/components/schemas/ContentsEntry"}},"managed_assets":{"type":"array","maxItems":10,"items":{"$ref":"#/components/schemas/ManagedAssetReference"}}}},"SourceTextContent":{"type":"object","additionalProperties":false,"required":["kind","metadata","text","sources"],"properties":{"kind":{"const":"source_text"},"metadata":{"type":"object"},"text":{"type":"string"},"sources":{"type":"array","maxItems":0}}},"KnowledgeSearchResult":{"type":"object","additionalProperties":false,"required":["result_kind","result_id","result_revision_id","parent_document_id","parent_document_class","document_id","skill_id","skill_version","document_class","locale","lifecycle_state","revision","path","aliases","title","updated","tags","excerpt","matching_fields","has_stale_source_references","score"],"properties":{"result_kind":{"enum":["source-text","digestion","note","note-directive","personal-observation","wiki-page","wiki-context-card","control","skill"]},"result_id":{"type":"string"},"result_revision_id":{"type":["string","null"]},"parent_document_id":{"type":["string","null"]},"parent_document_class":{"oneOf":[{"enum":["source_text","digestion","note","wiki_page","control"]},{"type":"null"}]},"document_id":{"type":["string","null"]},"skill_id":{"type":["string","null"]},"skill_version":{"type":["string","null"]},"document_class":{"enum":["source_text","digestion","note","wiki_page","control","skill"]},"locale":{"type":["string","null"]},"lifecycle_state":{"enum":["active","archived","deprecated","retired"]},"revision":{"type":["integer","null"]},"path":{"type":["string","null"]},"aliases":{"type":"array","items":{"type":"string"}},"title":{"type":"string"},"updated":{"type":"string"},"tags":{"type":"array","items":{"type":"string"}},"excerpt":{"type":"string"},"matching_fields":{"type":"array","items":{"enum":["title","tags","path","aliases","body","note_directive","personal_observation","wiki_context_card"]}},"has_stale_source_references":{"type":"boolean"},"score":{"type":"number"}}},"KnowledgeSearch":{"type":"object","additionalProperties":false,"required":["results","page","page_size","total","total_pages","omitted_ids"],"properties":{"results":{"type":"array","maxItems":50,"items":{"$ref":"#/components/schemas/KnowledgeSearchResult"}},"page":{"type":"integer","minimum":1},"page_size":{"type":"integer","minimum":1},"total":{"type":"integer","minimum":0},"total_pages":{"type":"integer","minimum":1},"omitted_ids":{"type":"array","maxItems":50,"items":{"type":"string"}}}},"StaleSourceReferences":{"type":"object","additionalProperties":false,"required":["stale","reasons"],"properties":{"stale":{"type":"boolean"},"reasons":{"type":"array","maxItems":100,"items":{"type":"object","additionalProperties":false,"required":["upstream_document_id","referenced_revision","current_revision","upstream_lifecycle_state"],"properties":{"upstream_document_id":{"type":"string"},"referenced_revision":{"type":"integer","minimum":1},"current_revision":{"type":["integer","null"],"minimum":1},"upstream_lifecycle_state":{"enum":["active","archived","missing"]}}}}}},"NoteProvenance":{"type":"object","additionalProperties":false,"required":["directive","agent_reported","agent_client_id","agent_connection_id"],"properties":{"directive":{"type":"string"},"agent_reported":{"const":true},"agent_client_id":{"type":"string"},"agent_connection_id":{"type":"string"}}},"KnowledgeDocument":{"type":"object","additionalProperties":false,"required":["document_id","document_class","lifecycle_state","locale","current_path","aliases","current_revision","selected_revision","selected_is_current","stale_source_references","backlinks","history","history_truncated","skill_provenance","note_provenance","content"],"properties":{"document_id":{"type":"string"},"document_class":{"enum":["source_text","digestion","note","wiki_page","control"]},"lifecycle_state":{"enum":["active","archived"]},"locale":{"enum":["en-US","es-MX"]},"current_path":{"type":["string","null"]},"aliases":{"type":"array","items":{"type":"string"}},"current_revision":{"type":"integer","minimum":1},"selected_revision":{"type":"integer","minimum":1},"selected_is_current":{"type":"boolean"},"stale_source_references":{"$ref":"#/components/schemas/StaleSourceReferences"},"backlinks":{"type":"array","items":{"type":"object"}},"history":{"type":"array","maxItems":50,"items":{"type":"object"}},"history_truncated":{"type":"boolean"},"skill_provenance":{"type":["object","null"]},"note_provenance":{"oneOf":[{"$ref":"#/components/schemas/NoteProvenance"},{"type":"null"}]},"content":{"oneOf":[{"$ref":"#/components/schemas/PageContent"},{"$ref":"#/components/schemas/SourceTextContent"}],"description":"Complete untruncated revision content."}}},"PersonalObservation":{"type":"object","additionalProperties":false,"required":["observation_id","current_revision_id","parent","originating_revision","text","image","version","stale","created_at","updated_at"],"properties":{"observation_id":{"type":"string"},"current_revision_id":{"type":"string"},"parent":{"type":"object","additionalProperties":false,"required":["document_class","document_id"],"properties":{"document_class":{"enum":["digestion","note"]},"document_id":{"type":"string"}}},"digestion_document_id":{"type":"string","description":"Compatibility alias present only for Digestion parents."},"originating_revision":{"type":"integer","minimum":1},"text":{"type":"string"},"image":{"type":["object","null"]},"version":{"type":"integer","minimum":1},"stale":{"type":"boolean"},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"}}},"ManagedAssetStaging":{"type":"object","additionalProperties":false,"required":["staging_handle","expires_at","media_type","byte_length","width","height","sha256","safe_filename"],"properties":{"staging_handle":{"type":"string"},"expires_at":{"type":"string","format":"date-time"},"media_type":{"enum":["image/png","image/jpeg","image/webp"]},"byte_length":{"type":"integer","minimum":1,"maximum":10485760},"width":{"type":"integer","minimum":1,"maximum":12000},"height":{"type":"integer","minimum":1,"maximum":12000},"sha256":{"type":"string","pattern":"^[a-f0-9]{64}$"},"safe_filename":{"type":"string"}}},"DigestionContributionInput":{"type":"object","additionalProperties":false,"required":["skill_id","source","digestion"],"properties":{"skill_id":{"type":"string","pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"},"source":{"type":"object","additionalProperties":false,"required":["mode"],"properties":{"mode":{"enum":["create","revise","reference"]},"document_id":{"type":"string"},"revision":{"type":"integer","minimum":1},"expected_revision":{"type":"integer","minimum":1},"superseded_revision":{"type":"integer","minimum":1},"reason":{"type":"string","maxLength":500},"title":{"type":"string","maxLength":200},"locale":{"enum":["en-US","es-MX"]},"source_type":{"enum":["video","article","book"]},"input_kind":{"enum":["youtube_url","article_url","website_url","pdf_url","book_text"]},"source_url":{"type":["string","null"]},"text":{"type":"string"}}},"digestion":{"type":"object","additionalProperties":false,"required":["mode","title","locale","tags","body"],"properties":{"mode":{"enum":["create","revise"]},"document_id":{"type":"string"},"expected_revision":{"type":"integer","minimum":1},"superseded_revision":{"type":"integer","minimum":1},"reason":{"type":"string","maxLength":500},"title":{"type":"string","maxLength":200},"locale":{"enum":["en-US","es-MX"]},"tags":{"type":"array","maxItems":50,"uniqueItems":true,"items":{"type":"string"}},"body":{"type":"string"},"managed_assets":{"type":"array","maxItems":10,"items":{"type":"object","additionalProperties":false,"required":["staging_handle","reference_key","alternative_text","decorative"],"properties":{"staging_handle":{"type":"string"},"reference_key":{"type":"string"},"alternative_text":{"type":["string","null"]},"decorative":{"type":"boolean"},"caption":{"type":["string","null"]},"presentation":{"enum":["inline","block","wide"]}}}}}}}},"NoteContributionInput":{"type":"object","additionalProperties":false,"required":["skill_id","note"],"x-parallel-brain-limits":{"title_max_characters":200,"body_max_bytes":1048576,"tag_max_items":50,"body_and_directive_max_bytes":12582912,"managed_asset_max_items":10},"properties":{"skill_id":{"const":"write-note"},"note":{"oneOf":[{"type":"object","additionalProperties":false,"required":["mode","title","locale","tags","body","directive"],"properties":{"mode":{"const":"create"},"original_writing":{"type":"object","additionalProperties":false,"minProperties":1,"properties":{"author_name":{"type":"string","minLength":1,"maxLength":200},"writing_date":{"type":"string","format":"date","pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}$"}}},"title":{"type":"string","minLength":1,"maxLength":200},"locale":{"enum":["en-US","es-MX"]},"tags":{"type":"array","maxItems":50,"uniqueItems":true,"items":{"type":"string","pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"}},"body":{"type":"string"},"directive":{"type":"string"},"managed_assets":{"type":"array","maxItems":10,"items":{"type":"object","additionalProperties":false,"required":["staging_handle","reference_key","alternative_text","decorative"],"properties":{"staging_handle":{"type":"string"},"reference_key":{"type":"string"},"alternative_text":{"type":["string","null"]},"decorative":{"type":"boolean"},"caption":{"type":["string","null"]},"presentation":{"enum":["inline","block","wide"]}}}}}},{"type":"object","additionalProperties":false,"required":["mode","document_id","expected_revision","title","locale","tags","body","directive"],"properties":{"mode":{"const":"revise"},"document_id":{"type":"string","pattern":"^[A-Za-z0-9_.:@/-]{1,200}$"},"expected_revision":{"type":"integer","minimum":1},"original_writing":{"type":"object","additionalProperties":false,"minProperties":1,"properties":{"author_name":{"type":"string","minLength":1,"maxLength":200},"writing_date":{"type":"string","format":"date","pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}$"}}},"title":{"type":"string","minLength":1,"maxLength":200},"locale":{"enum":["en-US","es-MX"]},"tags":{"type":"array","maxItems":50,"uniqueItems":true,"items":{"type":"string","pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"}},"body":{"type":"string"},"directive":{"type":"string"},"managed_assets":{"type":"array","maxItems":10,"items":{"type":"object","additionalProperties":false,"required":["staging_handle","reference_key","alternative_text","decorative"],"properties":{"staging_handle":{"type":"string"},"reference_key":{"type":"string"},"alternative_text":{"type":["string","null"]},"decorative":{"type":"boolean"},"caption":{"type":["string","null"]},"presentation":{"enum":["inline","block","wide"]}}}}}},{"type":"object","additionalProperties":false,"required":["mode","document_id","expected_revision","directive"],"properties":{"mode":{"const":"archive"},"document_id":{"type":"string","pattern":"^[A-Za-z0-9_.:@/-]{1,200}$"},"expected_revision":{"type":"integer","minimum":1},"directive":{"type":"string"}}},{"type":"object","additionalProperties":false,"required":["mode","document_id","expected_revision","directive"],"properties":{"mode":{"const":"restore"},"document_id":{"type":"string","pattern":"^[A-Za-z0-9_.:@/-]{1,200}$"},"expected_revision":{"type":"integer","minimum":1},"directive":{"type":"string"}}}]}}},"WikiClaimAcquireInput":{"type":"object","additionalProperties":false,"properties":{"integration_request_id":{"type":"string","minLength":1,"maxLength":200},"locale":{"enum":["en-US","es-MX"]}},"required":["integration_request_id","locale"]},"WikiClaimLeaseInput":{"type":"object","additionalProperties":false,"properties":{"claim_token":{"type":"string","minLength":1,"maxLength":200},"fencing_token":{"type":"integer","minimum":1}},"required":["claim_token","fencing_token"]},"WikiIntegrationBatchInput":{"type":"object","additionalProperties":false,"properties":{"locale":{"enum":["en-US","es-MX"]},"assignment":{"type":"object","additionalProperties":false,"properties":{"assignment_id":{"type":"string","minLength":1,"maxLength":200},"revision":{"type":"integer","minimum":1},"generation":{"type":"integer","minimum":1}},"required":["assignment_id","revision","generation"]},"claims":{"type":"array","minItems":1,"maxItems":10,"uniqueItems":true,"items":{"type":"object","additionalProperties":false,"properties":{"integration_request_id":{"type":"string","minLength":1,"maxLength":200},"claim_token":{"type":"string","minLength":1,"maxLength":200},"fencing_token":{"type":"integer","minimum":1},"resolution":{"enum":["content-changed","reviewed-no-change"]}},"required":["integration_request_id","claim_token","fencing_token","resolution"]}},"operations":{"type":"array","minItems":0,"maxItems":11,"items":{"oneOf":[{"type":"object","additionalProperties":false,"properties":{"operation_id":{"type":"string","minLength":1,"maxLength":200},"action":{"const":"create"},"path":{"type":"string","minLength":1,"maxLength":200},"title":{"type":"string","minLength":1,"maxLength":200},"page_type":{"enum":["entity","concept","comparison","query","summary"]},"tags":{"type":"array","maxItems":50,"uniqueItems":true,"items":{"type":"string","minLength":1,"maxLength":200}},"body":{"type":"string"},"integration_request_ids":{"type":"array","minItems":1,"maxItems":10,"uniqueItems":true,"items":{"type":"string","minLength":1,"maxLength":200}},"managed_assets":{"type":"array","maxItems":10,"items":{"type":"object","additionalProperties":false,"properties":{"staging_handle":{"type":"string","minLength":1,"maxLength":200},"reference_key":{"type":"string","pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"},"alternative_text":{"type":["string","null"],"maxLength":500},"decorative":{"type":"boolean"},"caption":{"type":["string","null"],"maxLength":1000},"presentation":{"enum":["inline","block","wide"]}},"required":["staging_handle","reference_key","alternative_text","decorative"]}},"wiki_context_card":{"oneOf":[{"type":"object","additionalProperties":false,"properties":{"action":{"const":"remove"}},"required":["action"]},{"type":"object","additionalProperties":false,"properties":{"action":{"const":"retain"}},"required":["action"]},{"type":"object","additionalProperties":false,"properties":{"action":{"const":"set"},"text":{"type":"string","minLength":1,"maxLength":10000},"sources":{"type":"array","minItems":1,"maxItems":20,"uniqueItems":true,"items":{"type":"object","additionalProperties":false,"properties":{"observation_id":{"type":"string","minLength":1,"maxLength":200},"observation_revision_id":{"type":"string","minLength":1,"maxLength":200}},"required":["observation_id","observation_revision_id"]}},"image":{"anyOf":[{"type":"null"},{"type":"object","additionalProperties":false,"properties":{"source_observation_revision_id":{"type":"string","minLength":1,"maxLength":200},"alternative_text":{"type":"string","minLength":1,"maxLength":500},"caption":{"type":["string","null"],"minLength":1,"maxLength":1000}},"required":["source_observation_revision_id","alternative_text"]}]}},"required":["action","text","sources","image"]}]}},"required":["operation_id","action","path","title","page_type","tags","body","integration_request_ids","wiki_context_card"]},{"type":"object","additionalProperties":false,"properties":{"operation_id":{"type":"string","minLength":1,"maxLength":200},"action":{"const":"revise"},"document_id":{"type":"string","minLength":1,"maxLength":200},"expected_revision":{"type":"integer","minimum":1},"expected_path":{"type":"string","minLength":1,"maxLength":200},"new_path":{"type":["string","null"]},"title":{"type":"string","minLength":1,"maxLength":200},"page_type":{"enum":["entity","concept","comparison","query","summary"]},"tags":{"type":"array","maxItems":50,"uniqueItems":true,"items":{"type":"string","minLength":1,"maxLength":200}},"body":{"type":"string"},"integration_request_ids":{"type":"array","minItems":1,"maxItems":10,"uniqueItems":true,"items":{"type":"string","minLength":1,"maxLength":200}},"managed_assets":{"type":"array","maxItems":10,"items":{"type":"object","additionalProperties":false,"properties":{"staging_handle":{"type":"string","minLength":1,"maxLength":200},"reference_key":{"type":"string","pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"},"alternative_text":{"type":["string","null"],"maxLength":500},"decorative":{"type":"boolean"},"caption":{"type":["string","null"],"maxLength":1000},"presentation":{"enum":["inline","block","wide"]}},"required":["staging_handle","reference_key","alternative_text","decorative"]}},"wiki_context_card":{"oneOf":[{"type":"object","additionalProperties":false,"properties":{"action":{"const":"remove"}},"required":["action"]},{"type":"object","additionalProperties":false,"properties":{"action":{"const":"retain"}},"required":["action"]},{"type":"object","additionalProperties":false,"properties":{"action":{"const":"set"},"text":{"type":"string","minLength":1,"maxLength":10000},"sources":{"type":"array","minItems":1,"maxItems":20,"uniqueItems":true,"items":{"type":"object","additionalProperties":false,"properties":{"observation_id":{"type":"string","minLength":1,"maxLength":200},"observation_revision_id":{"type":"string","minLength":1,"maxLength":200}},"required":["observation_id","observation_revision_id"]}},"image":{"anyOf":[{"type":"null"},{"type":"object","additionalProperties":false,"properties":{"source_observation_revision_id":{"type":"string","minLength":1,"maxLength":200},"alternative_text":{"type":"string","minLength":1,"maxLength":500},"caption":{"type":["string","null"],"minLength":1,"maxLength":1000}},"required":["source_observation_revision_id","alternative_text"]}]}},"required":["action","text","sources","image"]}]}},"required":["operation_id","action","document_id","expected_revision","expected_path","new_path","title","page_type","tags","body","integration_request_ids","wiki_context_card"]},{"type":"object","additionalProperties":false,"properties":{"operation_id":{"type":"string","minLength":1,"maxLength":200},"action":{"const":"revise-control"},"control_kind":{"const":"index"},"document_id":{"type":"string","minLength":1,"maxLength":200},"expected_revision":{"type":"integer","minimum":1},"body":{"type":"string"}},"required":["operation_id","action","control_kind","document_id","expected_revision","body"]}]}},"log":{"type":"object","additionalProperties":false,"properties":{"document_id":{"type":"string","minLength":1,"maxLength":200},"expected_revision":{"type":"integer","minimum":1}},"required":["document_id","expected_revision"]},"change_summary":{"type":"string","minLength":1,"maxLength":500}},"required":["locale","assignment","claims","operations","log","change_summary"]},"WikiMaintenanceBatchInput":{"type":"object","additionalProperties":false,"properties":{"locale":{"enum":["en-US","es-MX"]},"assignment":{"type":"object","additionalProperties":false,"properties":{"assignment_id":{"type":"string","minLength":1,"maxLength":200},"revision":{"type":"integer","minimum":1},"generation":{"type":"integer","minimum":1}},"required":["assignment_id","revision","generation"]},"operations":{"type":"array","minItems":1,"maxItems":12,"items":{"oneOf":[{"type":"object","additionalProperties":false,"properties":{"operation_id":{"type":"string","minLength":1,"maxLength":200},"action":{"const":"revise"},"document_id":{"type":"string","minLength":1,"maxLength":200},"expected_revision":{"type":"integer","minimum":1},"expected_path":{"type":"string","minLength":1,"maxLength":200},"new_path":{"type":["string","null"]},"title":{"type":"string","minLength":1,"maxLength":200},"page_type":{"enum":["entity","concept","comparison","query","summary"]},"tags":{"type":"array","maxItems":50,"uniqueItems":true,"items":{"type":"string","minLength":1,"maxLength":200}},"body":{"type":"string"},"managed_assets":{"type":"array","maxItems":10,"items":{"type":"object","additionalProperties":false,"properties":{"staging_handle":{"type":"string","minLength":1,"maxLength":200},"reference_key":{"type":"string","pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"},"alternative_text":{"type":["string","null"],"maxLength":500},"decorative":{"type":"boolean"},"caption":{"type":["string","null"],"maxLength":1000},"presentation":{"enum":["inline","block","wide"]}},"required":["staging_handle","reference_key","alternative_text","decorative"]}}},"required":["operation_id","action","document_id","expected_revision","expected_path","new_path","title","page_type","tags","body"]},{"type":"object","additionalProperties":false,"properties":{"operation_id":{"type":"string","minLength":1,"maxLength":200},"action":{"const":"archive"},"document_id":{"type":"string","minLength":1,"maxLength":200},"expected_revision":{"type":"integer","minimum":1},"expected_path":{"type":"string","minLength":1,"maxLength":200}},"required":["operation_id","action","document_id","expected_revision","expected_path"]},{"type":"object","additionalProperties":false,"properties":{"operation_id":{"type":"string","minLength":1,"maxLength":200},"action":{"const":"restore"},"document_id":{"type":"string","minLength":1,"maxLength":200},"expected_revision":{"type":"integer","minimum":1},"expected_path":{"type":"string","minLength":1,"maxLength":200},"path":{"type":"string","minLength":1,"maxLength":200}},"required":["operation_id","action","document_id","expected_revision","expected_path","path"]},{"type":"object","additionalProperties":false,"properties":{"operation_id":{"type":"string","minLength":1,"maxLength":200},"action":{"const":"revise-control"},"control_kind":{"enum":["index","schema"]},"document_id":{"type":"string","minLength":1,"maxLength":200},"expected_revision":{"type":"integer","minimum":1},"body":{"type":"string"}},"required":["operation_id","action","control_kind","document_id","expected_revision","body"]}]}},"log":{"type":"object","additionalProperties":false,"properties":{"document_id":{"type":"string","minLength":1,"maxLength":200},"expected_revision":{"type":"integer","minimum":1}},"required":["document_id","expected_revision"]},"change_summary":{"type":"string","minLength":1,"maxLength":500},"schema_reason":{"type":"string","minLength":1,"maxLength":500}},"required":["locale","assignment","operations","log","change_summary"]},"DigestionContribution":{"type":"object","additionalProperties":false,"required":["status","contribution_id","source_text_document_id","source_revision","digestion_document_id","digestion_revision","integration_request_id","integration_status","skill","contributed_at"],"properties":{"status":{"enum":["committed","replayed"]},"contribution_id":{"type":"string"},"source_text_document_id":{"type":"string"},"source_revision":{"type":"integer","minimum":1},"digestion_document_id":{"type":"string"},"digestion_revision":{"type":"integer","minimum":1},"integration_request_id":{"type":"string"},"integration_status":{"const":"pending"},"skill":{"type":"object","additionalProperties":false,"required":["id","version","checksum"],"properties":{"id":{"type":"string"},"version":{"type":"string"},"checksum":{"type":"string","pattern":"^[a-f0-9]{64}$"}}},"contributed_at":{"type":"string","format":"date-time"}}},"NoteContribution":{"type":"object","additionalProperties":false,"required":["status","contribution_id","note_document_id","note_revision","integration_request_id","integration_status","skill","contributed_at"],"properties":{"status":{"enum":["committed","replayed"]},"contribution_id":{"type":"string"},"note_document_id":{"type":"string"},"note_revision":{"type":"integer","minimum":1},"integration_request_id":{"type":"string"},"integration_status":{"enum":["pending","integrated","rejected","superseded","withdrawn"]},"skill":{"type":"object","additionalProperties":false,"required":["id","version","checksum"],"properties":{"id":{"const":"write-note"},"version":{"type":"string"},"checksum":{"type":"string","pattern":"^[a-f0-9]{64}$"}}},"contributed_at":{"type":"string","format":"date-time"}}},"SkillPage":{"type":"object","additionalProperties":false,"required":["items","next_cursor","catalog_revision"],"properties":{"items":{"type":"array","maxItems":100,"items":{"$ref":"#/components/schemas/SkillSummary"}},"next_cursor":{"type":["string","null"]},"catalog_revision":{"type":"integer","minimum":1}}},"AgentBootstrapManifestEnvelope":{"type":"object","additionalProperties":false,"required":["data","meta"],"properties":{"data":{"$ref":"#/components/schemas/AgentBootstrapManifest"},"meta":{"$ref":"#/components/schemas/ResponseMeta"}}},"AgentContextEnvelope":{"type":"object","additionalProperties":false,"required":["data","meta"],"properties":{"data":{"$ref":"#/components/schemas/AgentContext"},"meta":{"$ref":"#/components/schemas/ResponseMeta"}}},"SkillPageEnvelope":{"type":"object","additionalProperties":false,"required":["data","meta"],"properties":{"data":{"$ref":"#/components/schemas/SkillPage"},"meta":{"$ref":"#/components/schemas/ResponseMeta"}}},"SkillDefinitionEnvelope":{"type":"object","additionalProperties":false,"required":["data","meta"],"properties":{"data":{"$ref":"#/components/schemas/SkillDefinition"},"meta":{"$ref":"#/components/schemas/ResponseMeta"}}},"KnowledgeSearchEnvelope":{"type":"object","additionalProperties":false,"required":["data","meta"],"properties":{"data":{"$ref":"#/components/schemas/KnowledgeSearch"},"meta":{"$ref":"#/components/schemas/ResponseMeta"}}},"KnowledgeDocumentEnvelope":{"type":"object","additionalProperties":false,"required":["data","meta"],"properties":{"data":{"$ref":"#/components/schemas/KnowledgeDocument"},"meta":{"$ref":"#/components/schemas/ResponseMeta"}}},"PersonalObservationEnvelope":{"type":"object","additionalProperties":false,"required":["data","meta"],"properties":{"data":{"$ref":"#/components/schemas/PersonalObservation"},"meta":{"$ref":"#/components/schemas/ResponseMeta"}}},"ManagedAssetStagingEnvelope":{"type":"object","additionalProperties":false,"required":["data","meta"],"properties":{"data":{"$ref":"#/components/schemas/ManagedAssetStaging"},"meta":{"$ref":"#/components/schemas/ResponseMeta"}}},"DigestionContributionEnvelope":{"type":"object","additionalProperties":false,"required":["data","meta"],"properties":{"data":{"$ref":"#/components/schemas/DigestionContribution"},"meta":{"$ref":"#/components/schemas/ResponseMeta"}}},"NoteContributionEnvelope":{"type":"object","additionalProperties":false,"required":["data","meta"],"properties":{"data":{"$ref":"#/components/schemas/NoteContribution"},"meta":{"$ref":"#/components/schemas/ResponseMeta"}}},"IntegrationRequestPage":{"type":"object","additionalProperties":false,"required":["items","truncated"],"properties":{"items":{"type":"array","maxItems":50,"items":{"oneOf":[{"type":"object","additionalProperties":false,"required":["integration_request_id","source_kind","digestion_document_id","digestion_revision","source_text_document_id","source_revision","locale","state","lifecycle_revision"],"properties":{"integration_request_id":{"type":"string"},"source_kind":{"const":"digestion"},"digestion_document_id":{"type":"string"},"digestion_revision":{"type":"integer","minimum":1},"source_text_document_id":{"type":["string","null"]},"source_revision":{"type":["integer","null"],"minimum":1},"locale":{"enum":["en-US","es-MX"]},"state":{"enum":["pending","integrated","rejected","superseded","withdrawn"]},"lifecycle_revision":{"type":"integer","minimum":1}}},{"type":"object","additionalProperties":false,"required":["integration_request_id","source_kind","note_document_id","note_revision","locale","state","lifecycle_revision"],"properties":{"integration_request_id":{"type":"string"},"source_kind":{"const":"note"},"note_document_id":{"type":"string"},"note_revision":{"type":"integer","minimum":1},"locale":{"enum":["en-US","es-MX"]},"state":{"enum":["pending","integrated","rejected","superseded","withdrawn"]},"lifecycle_revision":{"type":"integer","minimum":1}}}]}},"truncated":{"type":"boolean"}}},"WikiClaim":{"type":"object","additionalProperties":false,"required":["integration_request_id","claim_id","claim_token","fencing_token","assignment_id","assignment_revision","assignment_generation","acquired_at","expires_at","max_continuous_at"],"properties":{"integration_request_id":{"type":"string"},"claim_id":{"type":"string"},"claim_token":{"type":"string"},"fencing_token":{"type":"integer","minimum":1},"assignment_id":{"type":"string"},"assignment_revision":{"type":"integer","minimum":1},"assignment_generation":{"type":"integer","minimum":1},"acquired_at":{"type":"string","format":"date-time"},"expires_at":{"type":"string","format":"date-time"},"max_continuous_at":{"type":"string","format":"date-time"}}},"WikiBatch":{"type":"object","additionalProperties":false,"required":["status","batch_id","locale","integrated_request_ids","operations","log_revision","committed_at"],"properties":{"status":{"enum":["committed","replayed"]},"batch_id":{"type":"string"},"locale":{"enum":["en-US","es-MX"]},"integrated_request_ids":{"type":"array","maxItems":10,"items":{"type":"string"}},"operations":{"type":"array","maxItems":12,"items":{"type":"object","additionalProperties":false,"required":["operation_id","document_id","revision","path"],"properties":{"operation_id":{"type":"string"},"document_id":{"type":"string"},"revision":{"type":"integer","minimum":1},"path":{"type":"string"}}}},"log_revision":{"type":"integer","minimum":1},"committed_at":{"type":"string","format":"date-time"}}},"IntegrationRequestPageEnvelope":{"type":"object","additionalProperties":false,"required":["data","meta"],"properties":{"data":{"$ref":"#/components/schemas/IntegrationRequestPage"},"meta":{"$ref":"#/components/schemas/ResponseMeta"}}},"WikiClaimEnvelope":{"type":"object","additionalProperties":false,"required":["data","meta"],"properties":{"data":{"$ref":"#/components/schemas/WikiClaim"},"meta":{"$ref":"#/components/schemas/ResponseMeta"}}},"WikiBatchEnvelope":{"type":"object","additionalProperties":false,"required":["data","meta"],"properties":{"data":{"$ref":"#/components/schemas/WikiBatch"},"meta":{"$ref":"#/components/schemas/ResponseMeta"}}},"ProblemError":{"type":"object","additionalProperties":false,"required":["code","path","detail"],"properties":{"code":{"type":"string"},"path":{"type":"string"},"detail":{"type":"string"}}},"Problem":{"type":"object","additionalProperties":false,"required":["type","title","status","detail","instance","code","request_id","errors"],"properties":{"type":{"type":"string","format":"uri"},"title":{"type":"string"},"status":{"type":"integer"},"detail":{"type":"string"},"instance":{"type":"string"},"code":{"enum":["unauthenticated","credential-revoked","reauthorization-required","forbidden","not-found","invalid-input","conflict","precondition-failed","stale-authority","rate-limited","payload-too-large","host-payload-limit","unsupported-protocol","host-profile-disabled","transport-not-approved","operation-in-progress","outcome-uncertain","temporarily-unavailable","internal-error"]},"request_id":{"type":"string"},"errors":{"type":"array","items":{"$ref":"#/components/schemas/ProblemError"}},"errors_truncated":{"type":"boolean"},"bootstrap":{"type":"string","format":"uri"},"supported_contract_versions":{"type":"object"}}}}}}