Class: GovernanceClient
@kortexya/reasoninglayer / GovernanceClient
Class: GovernanceClient
Section titled “Class: GovernanceClient”Defined in: src/resources/governance.ts:181
Native governance operations over the caller’s engine records.
Remarks
Section titled “Remarks”Authority is checked by the engine. The SDK preserves scopes, cursor pages, incomplete results and caller-owned idempotency keys.
Methods
Section titled “Methods”activateAuthorityPolicy()
Section titled “activateAuthorityPolicy()”activateAuthorityPolicy(
id,request,idempotencyKey,requestOptions?):Promise<GovernanceAuthorityPolicyActivation>
Defined in: src/resources/governance.ts:275
Activate authority policy.
Parameters
Section titled “Parameters”string
The path identifier.
request
Section titled “request”GovernanceAuthorityPolicyActivate
The governed mutation body.
idempotencyKey
Section titled “idempotencyKey”string
Stable caller-owned key reused for an identical retry.
requestOptions?
Section titled “requestOptions?”Cancellation and transport options.
Returns
Section titled “Returns”Promise<GovernanceAuthorityPolicyActivation>
The native result with camelCase schema keys; its replayed is true when the engine answered a committed request under the same key.
Throws
Section titled “Throws”When native authorization, preconditions or validation refuse the operation.
Remarks
Section titled “Remarks”Uses POST /api/v1/governance/authority-policy-changes/{id}/activation. Completeness and continuation are preserved; this client does not infer admission.
Example
Section titled “Example”`await client.governance.activateAuthorityPolicy(id, request, idempotencyKey);`admitUsage()
Section titled “admitUsage()”admitUsage(
event,requestOptions?):Promise<UsageReceipt>
Defined in: src/resources/governance.ts:1504
Admit one usage event durably. The admission is not permission to send a charge.
Parameters
Section titled “Parameters”The event, under its stable id.
requestOptions?
Section titled “requestOptions?”Cancellation and transport options.
Returns
Section titled “Returns”Promise<UsageReceipt>
The admission record and the event as admitted.
Throws
Section titled “Throws”When the engine answers a coded vocabulary refusal.
Throws
Section titled “Throws”403 when the provisioning identity or source is refused; 409 for a changed event under the same id or an ambiguous source; 422 for an invalid body; 503 when admission is unavailable.
Remarks
Section titled “Remarks”Uses POST /api/v1/governance/usage-events. Answers the configured billing source’s provisioning identity only.
Example
Section titled “Example”`await client.governance.admitUsage({ eventId, eventName: 'ask', organizationId, applicationId, count: 1 });`approveUnitVersion()
Section titled “approveUnitVersion()”approveUnitVersion(
unitVersionId,request,idempotencyKey,requestOptions?):Promise<GovernanceApproveUnitResponse>
Defined in: src/resources/governance.ts:789
Approve the changed unit of the approved head revision whose prospective version id is the path id: creates its record versions, member chunks and unit version and the approve_unit decision.
Parameters
Section titled “Parameters”unitVersionId
Section titled “unitVersionId”string
The unit_version_id path identifier.
request
Section titled “request”The request body.
idempotencyKey
Section titled “idempotencyKey”string
Stable caller-owned key reused for an identical retry.
requestOptions?
Section titled “requestOptions?”Cancellation and transport options.
Returns
Section titled “Returns”Promise<GovernanceApproveUnitResponse>
The native result with camelCase schema keys.
Throws
Section titled “Throws”When the engine answers a coded vocabulary refusal (its closed code).
Throws
Section titled “Throws”For any other refusal (400, 403, 404, 409, 422, 428, 503); errorBodyCode reads a coded body.
Remarks
Section titled “Remarks”Uses POST /api/v1/governance/unit-versions/{unit_version_id}/approve. Completeness and continuation are preserved; this client does not infer admission.
Example
Section titled “Example”`await client.governance.approveUnitVersion(unitVersionId, request, idempotencyKey);`assertRelation()
Section titled “assertRelation()”assertRelation(
relation,request,idempotencyKey,requestOptions?):Promise<GovernanceAuthorityRelationAsserted>
Defined in: src/resources/governance.ts:359
Assert relation.
Parameters
Section titled “Parameters”relation
Section titled “relation”string
The path identifier.
request
Section titled “request”GovernanceAuthorityRelationRequest
The governed mutation body.
idempotencyKey
Section titled “idempotencyKey”string
Stable caller-owned key reused for an identical retry.
requestOptions?
Section titled “requestOptions?”Cancellation and transport options.
Returns
Section titled “Returns”Promise<GovernanceAuthorityRelationAsserted>
The native result with camelCase schema keys; its replayed is true when the engine answered a committed request under the same key.
Throws
Section titled “Throws”When native authorization, preconditions or validation refuse the operation.
Remarks
Section titled “Remarks”Uses POST /api/v1/governance/authority-relations/{relation}. Completeness and continuation are preserved; this client does not infer admission.
Example
Section titled “Example”`await client.governance.assertRelation(relation, request, idempotencyKey);`assignPlatformRole()
Section titled “assignPlatformRole()”assignPlatformRole(
request,idempotencyKey,requestOptions?):Promise<GovernanceRoleCommitResponse>
Defined in: src/resources/governance.ts:554
Assign platform role.
Parameters
Section titled “Parameters”request
Section titled “request”The governed mutation body.
idempotencyKey
Section titled “idempotencyKey”string
Stable caller-owned key reused for an identical retry.
requestOptions?
Section titled “requestOptions?”Cancellation and transport options.
Returns
Section titled “Returns”Promise<GovernanceRoleCommitResponse>
The native result with camelCase schema keys.
Throws
Section titled “Throws”When native authorization, preconditions or validation refuse the operation.
Remarks
Section titled “Remarks”Uses POST /api/v1/governance/platform/role-assignments. Completeness and continuation are preserved; this client does not infer admission.
Example
Section titled “Example”`await client.governance.assignPlatformRole(request, idempotencyKey);`assignRole()
Section titled “assignRole()”assignRole(
request,idempotencyKey,requestOptions?):Promise<GovernanceRoleCommitResponse>
Defined in: src/resources/governance.ts:645
Assign role.
Parameters
Section titled “Parameters”request
Section titled “request”The governed mutation body.
idempotencyKey
Section titled “idempotencyKey”string
Stable caller-owned key reused for an identical retry.
requestOptions?
Section titled “requestOptions?”Cancellation and transport options.
Returns
Section titled “Returns”Promise<GovernanceRoleCommitResponse>
The native result with camelCase schema keys.
Throws
Section titled “Throws”When native authorization, preconditions or validation refuse the operation.
Remarks
Section titled “Remarks”Uses POST /api/v1/governance/role-assignments. Completeness and continuation are preserved; this client does not infer admission.
Example
Section titled “Example”`await client.governance.assignRole(request, idempotencyKey);`bootstrapPlatform()
Section titled “bootstrapPlatform()”bootstrapPlatform(
request,idempotencyKey,requestOptions?):Promise<GovernanceRoleCommitResponse>
Defined in: src/resources/governance.ts:505
Bootstrap platform.
Parameters
Section titled “Parameters”request
Section titled “request”GovernanceBootstrapRolesRequest
The governed mutation body.
idempotencyKey
Section titled “idempotencyKey”string
Stable caller-owned key reused for an identical retry.
requestOptions?
Section titled “requestOptions?”Cancellation and transport options.
Returns
Section titled “Returns”Promise<GovernanceRoleCommitResponse>
The native result with camelCase schema keys.
Throws
Section titled “Throws”When native authorization, preconditions or validation refuse the operation.
Remarks
Section titled “Remarks”Uses POST /api/v1/governance/platform/bootstrap. Completeness and continuation are preserved; this client does not infer admission.
Example
Section titled “Example”`await client.governance.bootstrapPlatform(request, idempotencyKey);`bootstrapRoles()
Section titled “bootstrapRoles()”bootstrapRoles(
request,idempotencyKey,requestOptions?):Promise<GovernanceRoleCommitResponse>
Defined in: src/resources/governance.ts:667
Bootstrap roles.
Parameters
Section titled “Parameters”request
Section titled “request”GovernanceBootstrapRolesRequest
The governed mutation body.
idempotencyKey
Section titled “idempotencyKey”string
Stable caller-owned key reused for an identical retry.
requestOptions?
Section titled “requestOptions?”Cancellation and transport options.
Returns
Section titled “Returns”Promise<GovernanceRoleCommitResponse>
The native result with camelCase schema keys.
Throws
Section titled “Throws”When native authorization, preconditions or validation refuse the operation.
Remarks
Section titled “Remarks”Uses POST /api/v1/governance/role-assignments/bootstrap. Completeness and continuation are preserved; this client does not infer admission.
Example
Section titled “Example”`await client.governance.bootstrapRoles(request, idempotencyKey);`cancelJob()
Section titled “cancelJob()”cancelJob(
jobId,idempotencyKey,requestOptions?):Promise<GovernancePipelineJobResponse>
Defined in: src/resources/governance.ts:814
Request a job’s cancellation; its next unit boundary ends it incomplete / cancelled with its committed units.
Parameters
Section titled “Parameters”string
The job_id path identifier.
idempotencyKey
Section titled “idempotencyKey”string
Stable caller-owned key reused for an identical retry.
requestOptions?
Section titled “requestOptions?”Cancellation and transport options.
Returns
Section titled “Returns”Promise<GovernancePipelineJobResponse>
The native result with camelCase schema keys.
Throws
Section titled “Throws”When the engine answers a coded vocabulary refusal (its closed code).
Throws
Section titled “Throws”For any other refusal (403, 404, 409, 428, 503); errorBodyCode reads a coded body.
Remarks
Section titled “Remarks”Uses POST /api/v1/governance/jobs/{job_id}/cancel. Completeness and continuation are preserved; this client does not infer admission.
Example
Section titled “Example”`await client.governance.cancelJob(jobId, idempotencyKey);`canonicalizeTierCatalog()
Section titled “canonicalizeTierCatalog()”canonicalizeTierCatalog(
applicationId,requestOptions?):Promise<CatalogCanonicalization>
Defined in: src/resources/governance.ts:1539
Adopt a tier catalog’s unique legacy identities under their canonical ids, atomically.
Parameters
Section titled “Parameters”applicationId
Section titled “applicationId”string
The application whose catalog is canonicalized.
requestOptions?
Section titled “requestOptions?”Cancellation and transport options.
Returns
Section titled “Returns”Promise<CatalogCanonicalization>
How many tiers changed and each tier’s canonical id; the original history is retained.
Throws
Section titled “Throws”When the engine answers a coded vocabulary refusal.
Throws
Section titled “Throws”403 without the configured source’s provisioning identity; 409 for an ambiguous catalog, an occupied canonical identity, native referrers or a concurrent change; 503 when unavailable.
Remarks
Section titled “Remarks”Uses POST /api/v1/governance/tier-catalogs/{application_id}/canonicalize.
Example
Section titled “Example”`const { tierIds } = await client.governance.canonicalizeTierCatalog(applicationId);`classifyActor()
Section titled “classifyActor()”classifyActor(
subject,request,idempotencyKey,requestOptions?):Promise<GovernanceActorClassificationResponse>
Defined in: src/resources/governance.ts:194
Classify actor.
Parameters
Section titled “Parameters”subject
Section titled “subject”string
The path identifier.
request
Section titled “request”GovernanceClassifyActorRequest
The governed mutation body.
idempotencyKey
Section titled “idempotencyKey”string
Stable caller-owned key reused for an identical retry.
requestOptions?
Section titled “requestOptions?”Cancellation and transport options.
Returns
Section titled “Returns”Promise<GovernanceActorClassificationResponse>
The native result with camelCase schema keys.
Throws
Section titled “Throws”When native authorization, preconditions or validation refuse the operation.
Remarks
Section titled “Remarks”Uses POST /api/v1/governance/actors/{subject}/classifications. Completeness and continuation are preserved; this client does not infer admission.
Example
Section titled “Example”`await client.governance.classifyActor(subject, request, idempotencyKey);`conceptInstances()
Section titled “conceptInstances()”conceptInstances(
conceptId,query?,requestOptions?):Promise<GovernanceConceptInstancesResponse>
Defined in: src/resources/governance.ts:428
Concept instances.
Parameters
Section titled “Parameters”conceptId
Section titled “conceptId”string
The path identifier.
query?
Section titled “query?”GovernanceConceptInstancesQuery = {}
Filters and the previous page cursor.
requestOptions?
Section titled “requestOptions?”Cancellation and transport options.
Returns
Section titled “Returns”Promise<GovernanceConceptInstancesResponse>
The native result with camelCase schema keys.
Throws
Section titled “Throws”When native authorization, preconditions or validation refuse the operation.
Remarks
Section titled “Remarks”Uses GET /api/v1/governance/concepts/{concept_id}/instances. Completeness and continuation are preserved; this client does not infer admission.
Example
Section titled “Example”`await client.governance.conceptInstances(conceptId, query);`createAuthorityPolicy()
Section titled “createAuthorityPolicy()”createAuthorityPolicy(
request,idempotencyKey,requestOptions?):Promise<GovernanceAuthorityPolicyProposal>
Defined in: src/resources/governance.ts:235
Create authority policy.
Parameters
Section titled “Parameters”request
Section titled “request”GovernanceAuthorityPolicyCreate
The governed mutation body.
idempotencyKey
Section titled “idempotencyKey”string
Stable caller-owned key reused for an identical retry.
requestOptions?
Section titled “requestOptions?”Cancellation and transport options.
Returns
Section titled “Returns”Promise<GovernanceAuthorityPolicyProposal>
The native result with camelCase schema keys; its replayed is true when the engine answered a committed request under the same key.
Throws
Section titled “Throws”When native authorization, preconditions or validation refuse the operation.
Remarks
Section titled “Remarks”Uses POST /api/v1/governance/authority-policy-changes. Completeness and continuation are preserved; this client does not infer admission.
Example
Section titled “Example”`await client.governance.createAuthorityPolicy(request, idempotencyKey);`createAuthorityRevocation()
Section titled “createAuthorityRevocation()”createAuthorityRevocation(
request,idempotencyKey,requestOptions?):Promise<GovernanceAuthorityRevocationResponse>
Defined in: src/resources/governance.ts:834
Revoke an identifier authority (for one scheme, or every scheme): every current decision relying on it becomes stale and loses its entity, and its members get their current entities back (design 29 §8.2, §14.7 D8, review correction R5).
Parameters
Section titled “Parameters”request
Section titled “request”GovernanceAuthorityRevocationInput
The request body.
idempotencyKey
Section titled “idempotencyKey”string
Stable caller-owned key reused for an identical retry.
requestOptions?
Section titled “requestOptions?”Cancellation and transport options.
Returns
Section titled “Returns”Promise<GovernanceAuthorityRevocationResponse>
The native result with camelCase schema keys.
Throws
Section titled “Throws”When the engine answers a coded vocabulary refusal (its closed code).
Throws
Section titled “Throws”For any other refusal (403, 409, 422, 428, 503); errorBodyCode reads a coded body.
Remarks
Section titled “Remarks”Uses POST /api/v1/governance/authority-revocations. Completeness and continuation are preserved; this client does not infer admission.
Example
Section titled “Example”`await client.governance.createAuthorityRevocation(request, idempotencyKey);`createChangeRequest()
Section titled “createChangeRequest()”createChangeRequest(
request,idempotencyKey,requestOptions?):Promise<GovernanceChangeRequestResponse>
Defined in: src/resources/governance.ts:857
Create a change request (M4-20): the rationale is required, the affected units are unit versions, and the anchored competency questions come from the cited assessment’s compatibility block.
Parameters
Section titled “Parameters”request
Section titled “request”GovernanceCreateChangeRequestRequest
The request body.
idempotencyKey
Section titled “idempotencyKey”string
Stable caller-owned key reused for an identical retry.
requestOptions?
Section titled “requestOptions?”Cancellation and transport options.
Returns
Section titled “Returns”Promise<GovernanceChangeRequestResponse>
The native result with camelCase schema keys.
Throws
Section titled “Throws”When the engine answers a coded vocabulary refusal (its closed code).
Throws
Section titled “Throws”For any other refusal (400, 403, 404, 409, 413, 415, 422, 428, 500, 503); errorBodyCode reads a coded body.
Remarks
Section titled “Remarks”Uses POST /api/v1/governance/change-requests. Completeness and continuation are preserved; this client does not infer admission.
Example
Section titled “Example”`await client.governance.createChangeRequest(request, idempotencyKey);`createErasure()
Section titled “createErasure()”createErasure(
request,idempotencyKey,requestOptions?):Promise<GovernanceErasureResponse>
Defined in: src/resources/governance.ts:880
Erase one uploaded source file or one source record (module documentation).
Parameters
Section titled “Parameters”request
Section titled “request”GovernanceCreateErasureRequest
The request body.
idempotencyKey
Section titled “idempotencyKey”string
Stable caller-owned key reused for an identical retry.
requestOptions?
Section titled “requestOptions?”Cancellation and transport options.
Returns
Section titled “Returns”Promise<GovernanceErasureResponse>
The native result with camelCase schema keys.
Throws
Section titled “Throws”When the engine answers a coded vocabulary refusal (its closed code).
Throws
Section titled “Throws”For any other refusal (400, 403, 404, 409, 410, 422, 428, 500, 503); errorBodyCode reads a coded body.
Remarks
Section titled “Remarks”Uses POST /api/v1/governance/erasures. Completeness and continuation are preserved; this client does not infer admission.
Example
Section titled “Example”`await client.governance.createErasure(request, idempotencyKey);`createIdentityDecision()
Section titled “createIdentityDecision()”createIdentityDecision(
request,idempotencyKey,requestOptions?):Promise<GovernanceIdentityDecisionAdmissionResponse>
Defined in: src/resources/governance.ts:903
Record an identity decision and its entity changes (design 29 §3.2).
Parameters
Section titled “Parameters”request
Section titled “request”GovernanceOperationalIdentityDecisionInput
The request body.
idempotencyKey
Section titled “idempotencyKey”string
Stable caller-owned key reused for an identical retry.
requestOptions?
Section titled “requestOptions?”Cancellation and transport options.
Returns
Section titled “Returns”Promise<GovernanceIdentityDecisionAdmissionResponse>
The native result with camelCase schema keys.
Throws
Section titled “Throws”When the engine answers a coded vocabulary refusal (its closed code).
Throws
Section titled “Throws”For any other refusal (400, 403, 409, 422, 428, 500, 503); errorBodyCode reads a coded body.
Remarks
Section titled “Remarks”Uses POST /api/v1/governance/identity-decisions. Completeness and continuation are preserved; this client does not infer admission.
Example
Section titled “Example”`await client.governance.createIdentityDecision(request, idempotencyKey);`createJob()
Section titled “createJob()”createJob(
request,idempotencyKey,requestOptions?):Promise<GovernancePipelineJobResponse>
Defined in: src/resources/governance.ts:926
Create a pipeline job.
Parameters
Section titled “Parameters”request
Section titled “request”GovernanceCreatePipelineJobRequest
The request body.
idempotencyKey
Section titled “idempotencyKey”string
Stable caller-owned key reused for an identical retry.
requestOptions?
Section titled “requestOptions?”Cancellation and transport options.
Returns
Section titled “Returns”Promise<GovernancePipelineJobResponse>
The native result with camelCase schema keys.
Throws
Section titled “Throws”When the engine answers a coded vocabulary refusal (its closed code).
Throws
Section titled “Throws”For any other refusal (400, 403, 404, 409, 410, 422, 428, 503); errorBodyCode reads a coded body.
Remarks
Section titled “Remarks”Uses POST /api/v1/governance/jobs. Completeness and continuation are preserved; this client does not infer admission.
Example
Section titled “Example”`await client.governance.createJob(request, idempotencyKey);`createRecovery()
Section titled “createRecovery()”createRecovery(
request,idempotencyKey,requestOptions?):Promise<GovernanceRecoveryCreatedResponse>
Defined in: src/resources/governance.ts:949
Recover a prior release (design 29 §7.2): a recovery candidate on the active release whose revision 1 holds the target’s records, with the recover decision and the recovery link, in one transaction.
Parameters
Section titled “Parameters”request
Section titled “request”GovernanceCreateRecoveryRequest
The request body.
idempotencyKey
Section titled “idempotencyKey”string
Stable caller-owned key reused for an identical retry.
requestOptions?
Section titled “requestOptions?”Cancellation and transport options.
Returns
Section titled “Returns”Promise<GovernanceRecoveryCreatedResponse>
The native result with camelCase schema keys.
Throws
Section titled “Throws”When the engine answers a coded vocabulary refusal (its closed code).
Throws
Section titled “Throws”For any other refusal (400, 403, 404, 409, 413, 415, 422, 428, 500, 503); errorBodyCode reads a coded body.
Remarks
Section titled “Remarks”Uses POST /api/v1/governance/recoveries. Completeness and continuation are preserved; this client does not infer admission.
Example
Section titled “Example”`await client.governance.createRecovery(request, idempotencyKey);`createRestore()
Section titled “createRestore()”createRestore(
request,idempotencyKey,requestOptions?):Promise<GovernanceRestoreResponse>
Defined in: src/resources/governance.ts:972
Restore an exported release as restored units (module documentation).
Parameters
Section titled “Parameters”request
Section titled “request”GovernanceCreateRestoreRequest
The request body.
idempotencyKey
Section titled “idempotencyKey”string
Stable caller-owned key reused for an identical retry.
requestOptions?
Section titled “requestOptions?”Cancellation and transport options.
Returns
Section titled “Returns”Promise<GovernanceRestoreResponse>
The native result with camelCase schema keys.
Throws
Section titled “Throws”When the engine answers a coded vocabulary refusal (its closed code).
Throws
Section titled “Throws”For any other refusal (400, 403, 409, 413, 415, 422, 428, 500, 503); errorBodyCode reads a coded body.
Remarks
Section titled “Remarks”Uses POST /api/v1/governance/restores. The export document is sent byte-for-byte as exportRelease returned it: the body bypasses the SDK’s snake_case transform, because the document’s digests cover its keys (record features keep their own names).
Example
Section titled “Example”`await client.governance.createRestore(request, idempotencyKey);`disposeChangeRequest()
Section titled “disposeChangeRequest()”disposeChangeRequest(
changeRequestId,request,idempotencyKey,requestOptions?):Promise<GovernanceChangeRequestResponse>
Defined in: src/resources/governance.ts:999
Accept, defer or refuse the change request (M4-20): a linked request becomes its disposition’s state with its disposition_reason.
Parameters
Section titled “Parameters”changeRequestId
Section titled “changeRequestId”string
The change_request_id path identifier.
request
Section titled “request”GovernanceDisposeChangeRequestRequest
The request body.
idempotencyKey
Section titled “idempotencyKey”string
Stable caller-owned key reused for an identical retry.
requestOptions?
Section titled “requestOptions?”Cancellation and transport options.
Returns
Section titled “Returns”Promise<GovernanceChangeRequestResponse>
The native result with camelCase schema keys.
Throws
Section titled “Throws”When the engine answers a coded vocabulary refusal (its closed code).
Throws
Section titled “Throws”For any other refusal (400, 403, 404, 409, 413, 415, 422, 428, 500, 503); errorBodyCode reads a coded body.
Remarks
Section titled “Remarks”Uses POST /api/v1/governance/change-requests/{change_request_id}/dispose. Completeness and continuation are preserved; this client does not infer admission.
Example
Section titled “Example”`await client.governance.disposeChangeRequest(changeRequestId, request, idempotencyKey);`explainTerm()
Section titled “explainTerm()”explainTerm(
termId,requestOptions?):Promise<GovernanceExplanationResponse>
Defined in: src/resources/governance.ts:1023
Whether a term is asserted, inferred (with its rule, premises and absence probes), or both.
Parameters
Section titled “Parameters”termId
Section titled “termId”string
The term_id path identifier.
requestOptions?
Section titled “requestOptions?”Cancellation and transport options.
Returns
Section titled “Returns”Promise<GovernanceExplanationResponse>
The native result with camelCase schema keys.
Throws
Section titled “Throws”When the engine answers a coded vocabulary refusal (its closed code).
Throws
Section titled “Throws”For any other refusal (400, 404, 409, 503); errorBodyCode reads a coded body.
Remarks
Section titled “Remarks”Uses GET /api/v1/governance/explain/{term_id}. Completeness and continuation are preserved; this client does not infer admission.
Example
Section titled “Example”`await client.governance.explainTerm(termId);`exportRelease()
Section titled “exportRelease()”exportRelease(
releaseId,requestOptions?):Promise<GovernanceReleaseExport>
Defined in: src/resources/governance.ts:1041
One release as kos-json/v2 (design 29 §7.3).
Parameters
Section titled “Parameters”releaseId
Section titled “releaseId”string
The release_id path identifier.
requestOptions?
Section titled “requestOptions?”Cancellation and transport options.
Returns
Section titled “Returns”Promise<GovernanceReleaseExport>
The native result with camelCase schema keys.
Throws
Section titled “Throws”When the engine answers a coded vocabulary refusal (its closed code).
Throws
Section titled “Throws”For any other refusal (400, 404, 409, 500, 503); errorBodyCode reads a coded body.
Remarks
Section titled “Remarks”Uses GET /api/v1/governance/releases/{release_id}/export. Completeness and continuation are preserved; this client does not infer admission.
Example
Section titled “Example”`await client.governance.exportRelease(releaseId);`getActor()
Section titled “getActor()”getActor(
subject,requestOptions?):Promise<GovernanceActorReadResponse>
Defined in: src/resources/governance.ts:1059
The subject’s actor as it stands, and the acts that classified it.
Parameters
Section titled “Parameters”subject
Section titled “subject”string
The subject path identifier.
requestOptions?
Section titled “requestOptions?”Cancellation and transport options.
Returns
Section titled “Returns”Promise<GovernanceActorReadResponse>
The native result with camelCase schema keys.
Throws
Section titled “Throws”When the engine answers a coded vocabulary refusal (its closed code).
Throws
Section titled “Throws”For any other refusal (404, 409); errorBodyCode reads a coded body.
Remarks
Section titled “Remarks”Uses GET /api/v1/governance/actors/{subject}. Completeness and continuation are preserved; this client does not infer admission.
Example
Section titled “Example”`await client.governance.getActor(subject);`getAuthorityPolicy()
Section titled “getAuthorityPolicy()”getAuthorityPolicy(
id,requestOptions?):Promise<GovernanceAuthorityPolicyProposal>
Defined in: src/resources/governance.ts:256
Get authority policy.
Parameters
Section titled “Parameters”string
The path identifier.
requestOptions?
Section titled “requestOptions?”Cancellation and transport options.
Returns
Section titled “Returns”Promise<GovernanceAuthorityPolicyProposal>
The native result with camelCase schema keys.
Throws
Section titled “Throws”When native authorization, preconditions or validation refuse the operation.
Remarks
Section titled “Remarks”Uses GET /api/v1/governance/authority-policy-changes/{id}. Completeness and continuation are preserved; this client does not infer admission.
Example
Section titled “Example”`await client.governance.getAuthorityPolicy(id);`getAuthorityPolicyActivation()
Section titled “getAuthorityPolicyActivation()”getAuthorityPolicyActivation(
id,requestOptions?):Promise<GovernanceAuthorityPolicyActivation>
Defined in: src/resources/governance.ts:217
Get authority policy activation.
Parameters
Section titled “Parameters”string
The path identifier.
requestOptions?
Section titled “requestOptions?”Cancellation and transport options.
Returns
Section titled “Returns”Promise<GovernanceAuthorityPolicyActivation>
The native result with camelCase schema keys.
Throws
Section titled “Throws”When native authorization, preconditions or validation refuse the operation.
Remarks
Section titled “Remarks”Uses GET /api/v1/governance/authority-policy-activations/{id}. Completeness and continuation are preserved; this client does not infer admission.
Example
Section titled “Example”`await client.governance.getAuthorityPolicyActivation(id);`getAuthorityPolicyReview()
Section titled “getAuthorityPolicyReview()”getAuthorityPolicyReview(
id,requestOptions?):Promise<GovernanceAuthorityPolicyReview>
Defined in: src/resources/governance.ts:317
Get authority policy review.
Parameters
Section titled “Parameters”string
The path identifier.
requestOptions?
Section titled “requestOptions?”Cancellation and transport options.
Returns
Section titled “Returns”Promise<GovernanceAuthorityPolicyReview>
The native result with camelCase schema keys.
Throws
Section titled “Throws”When native authorization, preconditions or validation refuse the operation.
Remarks
Section titled “Remarks”Uses GET /api/v1/governance/authority-policy-reviews/{id}. Completeness and continuation are preserved; this client does not infer admission.
Example
Section titled “Example”`await client.governance.getAuthorityPolicyReview(id);`getAuthorityRevocation()
Section titled “getAuthorityRevocation()”getAuthorityRevocation(
revocationId,requestOptions?):Promise<GovernanceAuthorityRevocation>
Defined in: src/resources/governance.ts:1077
One revocation.
Parameters
Section titled “Parameters”revocationId
Section titled “revocationId”string
The revocation_id path identifier.
requestOptions?
Section titled “requestOptions?”Cancellation and transport options.
Returns
Section titled “Returns”Promise<GovernanceAuthorityRevocation>
The native result with camelCase schema keys.
Throws
Section titled “Throws”When the engine answers a coded vocabulary refusal (its closed code).
Throws
Section titled “Throws”For any other refusal (404, 409, 503); errorBodyCode reads a coded body.
Remarks
Section titled “Remarks”Uses GET /api/v1/governance/authority-revocations/{revocation_id}. Completeness and continuation are preserved; this client does not infer admission.
Example
Section titled “Example”`await client.governance.getAuthorityRevocation(revocationId);`getChangeRequest()
Section titled “getChangeRequest()”getChangeRequest(
changeRequestId,requestOptions?):Promise<GovernanceChangeRequestResponse>
Defined in: src/resources/governance.ts:1095
One change request (M4-20).
Parameters
Section titled “Parameters”changeRequestId
Section titled “changeRequestId”string
The change_request_id path identifier.
requestOptions?
Section titled “requestOptions?”Cancellation and transport options.
Returns
Section titled “Returns”Promise<GovernanceChangeRequestResponse>
The native result with camelCase schema keys.
Throws
Section titled “Throws”When the engine answers a coded vocabulary refusal (its closed code).
Throws
Section titled “Throws”For any other refusal (400, 404, 409, 500, 503); errorBodyCode reads a coded body.
Remarks
Section titled “Remarks”Uses GET /api/v1/governance/change-requests/{change_request_id}. Completeness and continuation are preserved; this client does not infer admission.
Example
Section titled “Example”`await client.governance.getChangeRequest(changeRequestId);`getEntity()
Section titled “getEntity()”getEntity(
entityId,requestOptions?):Promise<GovernanceOperationalEntity>
Defined in: src/resources/governance.ts:1113
One operational entity with its derivation (its decision and premises).
Parameters
Section titled “Parameters”entityId
Section titled “entityId”string
The entity_id path identifier.
requestOptions?
Section titled “requestOptions?”Cancellation and transport options.
Returns
Section titled “Returns”Promise<GovernanceOperationalEntity>
The native result with camelCase schema keys.
Throws
Section titled “Throws”When the engine answers a coded vocabulary refusal (its closed code).
Throws
Section titled “Throws”For any other refusal (404, 409, 503); errorBodyCode reads a coded body.
Remarks
Section titled “Remarks”Uses GET /api/v1/governance/entities/{entity_id}. Completeness and continuation are preserved; this client does not infer admission.
Example
Section titled “Example”`await client.governance.getEntity(entityId);`getErasure()
Section titled “getErasure()”getErasure(
erasureId,requestOptions?):Promise<GovernanceErasureResponse>
Defined in: src/resources/governance.ts:1131
One erasure with its decision, its activity and its steps, as recorded.
Parameters
Section titled “Parameters”erasureId
Section titled “erasureId”string
The erasure_id path identifier.
requestOptions?
Section titled “requestOptions?”Cancellation and transport options.
Returns
Section titled “Returns”Promise<GovernanceErasureResponse>
The native result with camelCase schema keys.
Throws
Section titled “Throws”When the engine answers a coded vocabulary refusal (its closed code).
Throws
Section titled “Throws”For any other refusal (400, 404, 503); errorBodyCode reads a coded body.
Remarks
Section titled “Remarks”Uses GET /api/v1/governance/erasures/{erasure_id}. Completeness and continuation are preserved; this client does not infer admission.
Example
Section titled “Example”`await client.governance.getErasure(erasureId);`getIdentityDecision()
Section titled “getIdentityDecision()”getIdentityDecision(
decisionId,requestOptions?):Promise<GovernanceOperationalIdentityDecision>
Defined in: src/resources/governance.ts:1149
One decision with its computed standing; a recompute_blocked decision carries the consolidation that has no entity now (C3).
Parameters
Section titled “Parameters”decisionId
Section titled “decisionId”string
The decision_id path identifier.
requestOptions?
Section titled “requestOptions?”Cancellation and transport options.
Returns
Section titled “Returns”Promise<GovernanceOperationalIdentityDecision>
The native result with camelCase schema keys.
Throws
Section titled “Throws”When the engine answers a coded vocabulary refusal (its closed code).
Throws
Section titled “Throws”For any other refusal (404, 409, 503); errorBodyCode reads a coded body.
Remarks
Section titled “Remarks”Uses GET /api/v1/governance/identity-decisions/{decision_id}. Completeness and continuation are preserved; this client does not infer admission.
Example
Section titled “Example”`await client.governance.getIdentityDecision(decisionId);`getJob()
Section titled “getJob()”getJob(
jobId,requestOptions?):Promise<GovernancePipelineJobResponse>
Defined in: src/resources/governance.ts:1167
One job.
Parameters
Section titled “Parameters”string
The job_id path identifier.
requestOptions?
Section titled “requestOptions?”Cancellation and transport options.
Returns
Section titled “Returns”Promise<GovernancePipelineJobResponse>
The native result with camelCase schema keys.
Throws
Section titled “Throws”When the engine answers a coded vocabulary refusal (its closed code).
Throws
Section titled “Throws”For any other refusal (404, 409, 503); errorBodyCode reads a coded body.
Remarks
Section titled “Remarks”Uses GET /api/v1/governance/jobs/{job_id}. Completeness and continuation are preserved; this client does not infer admission.
Example
Section titled “Example”`await client.governance.getJob(jobId);`getProvenance()
Section titled “getProvenance()”getProvenance(
termId,requestOptions?):Promise<GovernanceProvenanceResponse>
Defined in: src/resources/governance.ts:1185
The native provenance of one term, or of a rule conclusion held only as a derived_facts row (its derivation of kind rule).
Parameters
Section titled “Parameters”termId
Section titled “termId”string
The term_id path identifier.
requestOptions?
Section titled “requestOptions?”Cancellation and transport options.
Returns
Section titled “Returns”Promise<GovernanceProvenanceResponse>
The native result with camelCase schema keys.
Throws
Section titled “Throws”When the engine answers a coded vocabulary refusal (its closed code).
Throws
Section titled “Throws”For any other refusal (400, 404, 409, 503); errorBodyCode reads a coded body.
Remarks
Section titled “Remarks”Uses GET /api/v1/governance/provenance/{term_id}. Completeness and continuation are preserved; this client does not infer admission.
Example
Section titled “Example”`await client.governance.getProvenance(termId);`getProvenanceDcat()
Section titled “getProvenanceDcat()”getProvenanceDcat(
termId,requestOptions?):Promise<GovernanceProvenanceTranslationResponse>
Defined in: src/resources/governance.ts:1203
The DCAT translation of what an admission activity admitted, with its losses.
Parameters
Section titled “Parameters”termId
Section titled “termId”string
The term_id path identifier.
requestOptions?
Section titled “requestOptions?”Cancellation and transport options.
Returns
Section titled “Returns”Promise<GovernanceProvenanceTranslationResponse>
The native result with camelCase schema keys.
Throws
Section titled “Throws”When the engine answers a coded vocabulary refusal (its closed code).
Throws
Section titled “Throws”For any other refusal (400, 404, 409, 422, 503); errorBodyCode reads a coded body.
Remarks
Section titled “Remarks”Uses GET /api/v1/governance/provenance/{term_id}/dcat. Completeness and continuation are preserved; this client does not infer admission.
Example
Section titled “Example”`await client.governance.getProvenanceDcat(termId);`getProvenanceProv()
Section titled “getProvenanceProv()”getProvenanceProv(
termId,requestOptions?):Promise<GovernanceProvenanceTranslationResponse>
Defined in: src/resources/governance.ts:1221
The PROV-O translation of the term’s provenance, with its losses.
Parameters
Section titled “Parameters”termId
Section titled “termId”string
The term_id path identifier.
requestOptions?
Section titled “requestOptions?”Cancellation and transport options.
Returns
Section titled “Returns”Promise<GovernanceProvenanceTranslationResponse>
The native result with camelCase schema keys.
Throws
Section titled “Throws”When the engine answers a coded vocabulary refusal (its closed code).
Throws
Section titled “Throws”For any other refusal (400, 404, 409, 503); errorBodyCode reads a coded body.
Remarks
Section titled “Remarks”Uses GET /api/v1/governance/provenance/{term_id}/prov. Completeness and continuation are preserved; this client does not infer admission.
Example
Section titled “Example”`await client.governance.getProvenanceProv(termId);`getRecovery()
Section titled “getRecovery()”getRecovery(
recoveryId,requestOptions?):Promise<GovernanceRecoveryResponse>
Defined in: src/resources/governance.ts:1239
One recovery: its target, its candidate’s state and head revision, the recover decision, and the recovery outcome of the latest assessment of the head revision (absent while none is recorded).
Parameters
Section titled “Parameters”recoveryId
Section titled “recoveryId”string
The recovery_id path identifier.
requestOptions?
Section titled “requestOptions?”Cancellation and transport options.
Returns
Section titled “Returns”Promise<GovernanceRecoveryResponse>
The native result with camelCase schema keys.
Throws
Section titled “Throws”When the engine answers a coded vocabulary refusal (its closed code).
Throws
Section titled “Throws”For any other refusal (400, 404, 409, 500, 503); errorBodyCode reads a coded body.
Remarks
Section titled “Remarks”Uses GET /api/v1/governance/recoveries/{recovery_id}. Completeness and continuation are preserved; this client does not infer admission.
Example
Section titled “Example”`await client.governance.getRecovery(recoveryId);`getRestore()
Section titled “getRestore()”getRestore(
restoreId,requestOptions?):Promise<GovernanceRestoreResponse>
Defined in: src/resources/governance.ts:1257
One restore with its restored units, as recorded.
Parameters
Section titled “Parameters”restoreId
Section titled “restoreId”string
The restore_id path identifier.
requestOptions?
Section titled “requestOptions?”Cancellation and transport options.
Returns
Section titled “Returns”Promise<GovernanceRestoreResponse>
The native result with camelCase schema keys.
Throws
Section titled “Throws”When the engine answers a coded vocabulary refusal (its closed code).
Throws
Section titled “Throws”For any other refusal (400, 404, 503); errorBodyCode reads a coded body.
Remarks
Section titled “Remarks”Uses GET /api/v1/governance/restores/{restore_id}. Completeness and continuation are preserved; this client does not infer admission.
Example
Section titled “Example”`await client.governance.getRestore(restoreId);`getRoleAssignment()
Section titled “getRoleAssignment()”getRoleAssignment(
id,requestOptions?):Promise<GovernanceRoleAssignmentHistoryResponse>
Defined in: src/resources/governance.ts:1275
One assignment, every revision and the acts that wrote them.
Parameters
Section titled “Parameters”string
The id path identifier.
requestOptions?
Section titled “requestOptions?”Cancellation and transport options.
Returns
Section titled “Returns”Promise<GovernanceRoleAssignmentHistoryResponse>
The native result with camelCase schema keys.
Throws
Section titled “Throws”When the engine answers a coded vocabulary refusal (its closed code).
Throws
Section titled “Throws”For any other refusal (404, 409); errorBodyCode reads a coded body.
Remarks
Section titled “Remarks”Uses GET /api/v1/governance/role-assignments/{id}. Completeness and continuation are preserved; this client does not infer admission.
Example
Section titled “Example”`await client.governance.getRoleAssignment(id);`getSourceRecord()
Section titled “getSourceRecord()”getSourceRecord(
recordId,requestOptions?):Promise<GovernanceSourceRecordResponse>
Defined in: src/resources/governance.ts:1293
One contribution with its history and its trusted identifiers.
Parameters
Section titled “Parameters”recordId
Section titled “recordId”string
The record_id path identifier.
requestOptions?
Section titled “requestOptions?”Cancellation and transport options.
Returns
Section titled “Returns”Promise<GovernanceSourceRecordResponse>
The native result with camelCase schema keys.
Throws
Section titled “Throws”When the engine answers a coded vocabulary refusal (its closed code).
Throws
Section titled “Throws”For any other refusal (400, 404, 409, 410, 503); errorBodyCode reads a coded body.
Remarks
Section titled “Remarks”Uses GET /api/v1/governance/source-records/{record_id}. Completeness and continuation are preserved; this client does not infer admission.
Example
Section titled “Example”`await client.governance.getSourceRecord(recordId);`getSubscriptionSource()
Section titled “getSubscriptionSource()”getSubscriptionSource(
requestOptions?):Promise<SubscriptionSource>
Defined in: src/resources/governance.ts:1557
Read the deployment’s subscription source tenant: the one tenant the subscription and metering routes serve.
Parameters
Section titled “Parameters”requestOptions?
Section titled “requestOptions?”Cancellation and transport options; the caller is the gateway’s provisioning identity.
Returns
Section titled “Returns”Promise<SubscriptionSource>
Whether one is configured, its tenant id, or why none is usable.
Throws
Section titled “Throws”403 provisioning_identity_required for any other caller.
Remarks
Section titled “Remarks”Uses GET /api/v1/governance/subscription-source. The subscription routes refuse
503 subscription_source_unconfigured when none is configured and 403 subscription_source_foreign
from another tenant.
Example
Section titled “Example”`const { configured, tenantId } = await client.governance.getSubscriptionSource();`getUnitVersion()
Section titled “getUnitVersion()”getUnitVersion(
unitVersionId,requestOptions?):Promise<GovernanceUnitVersion>
Defined in: src/resources/governance.ts:1311
One unit version.
Parameters
Section titled “Parameters”unitVersionId
Section titled “unitVersionId”string
The unit_version_id path identifier.
requestOptions?
Section titled “requestOptions?”Cancellation and transport options.
Returns
Section titled “Returns”Promise<GovernanceUnitVersion>
The native result with camelCase schema keys.
Throws
Section titled “Throws”When the engine answers a coded vocabulary refusal (its closed code).
Throws
Section titled “Throws”For any other refusal (404, 503); errorBodyCode reads a coded body.
Remarks
Section titled “Remarks”Uses GET /api/v1/governance/unit-versions/{unit_version_id}. Completeness and continuation are preserved; this client does not infer admission.
Example
Section titled “Example”`await client.governance.getUnitVersion(unitVersionId);`historicalInterpretation()
Section titled “historicalInterpretation()”historicalInterpretation(
releaseId,targetId,requestOptions?):Promise<GovernanceHistoricalInterpretationResponse>
Defined in: src/resources/governance.ts:1330
The interpretation a formal target had in a release, rebuilt from that release’s own theory, beside its current resolution.
Parameters
Section titled “Parameters”releaseId
Section titled “releaseId”string
The release_id path identifier.
targetId
Section titled “targetId”string
The target_id path identifier.
requestOptions?
Section titled “requestOptions?”Cancellation and transport options.
Returns
Section titled “Returns”Promise<GovernanceHistoricalInterpretationResponse>
The native result with camelCase schema keys.
Throws
Section titled “Throws”When the engine answers a coded vocabulary refusal (its closed code).
Throws
Section titled “Throws”For any other refusal (400, 404, 409, 503); errorBodyCode reads a coded body.
Remarks
Section titled “Remarks”Uses GET /api/v1/governance/releases/{release_id}/formal-targets/{target_id}/interpretation. Completeness and continuation are preserved; this client does not infer admission.
Example
Section titled “Example”`await client.governance.historicalInterpretation(releaseId, targetId);`linkChangeRequest()
Section titled “linkChangeRequest()”linkChangeRequest(
changeRequestId,request,idempotencyKey,requestOptions?):Promise<GovernanceChangeRequestResponse>
Defined in: src/resources/governance.ts:1351
Link the change request to the candidate that proposes it (M4-20): an open request becomes linked; the candidate must exist.
Parameters
Section titled “Parameters”changeRequestId
Section titled “changeRequestId”string
The change_request_id path identifier.
request
Section titled “request”GovernanceLinkChangeRequestRequest
The request body.
idempotencyKey
Section titled “idempotencyKey”string
Stable caller-owned key reused for an identical retry.
requestOptions?
Section titled “requestOptions?”Cancellation and transport options.
Returns
Section titled “Returns”Promise<GovernanceChangeRequestResponse>
The native result with camelCase schema keys.
Throws
Section titled “Throws”When the engine answers a coded vocabulary refusal (its closed code).
Throws
Section titled “Throws”For any other refusal (400, 403, 404, 409, 413, 415, 422, 428, 500, 503); errorBodyCode reads a coded body.
Remarks
Section titled “Remarks”Uses POST /api/v1/governance/change-requests/{change_request_id}/link. Completeness and continuation are preserved; this client does not infer admission.
Example
Section titled “Example”`await client.governance.linkChangeRequest(changeRequestId, request, idempotencyKey);`listChangeRequests()
Section titled “listChangeRequests()”listChangeRequests(
query?,requestOptions?):Promise<GovernanceChangeRequestPageResponse>
Defined in: src/resources/governance.ts:407
List change requests.
Parameters
Section titled “Parameters”query?
Section titled “query?”GovernanceListChangeRequestsQuery = {}
Filters and the previous page cursor.
requestOptions?
Section titled “requestOptions?”Cancellation and transport options.
Returns
Section titled “Returns”Promise<GovernanceChangeRequestPageResponse>
The native result with camelCase schema keys.
Throws
Section titled “Throws”When native authorization, preconditions or validation refuse the operation.
Remarks
Section titled “Remarks”Uses GET /api/v1/governance/change-requests. Completeness and continuation are preserved; this client does not infer admission.
Example
Section titled “Example”`await client.governance.listChangeRequests(query);`listErasures()
Section titled “listErasures()”listErasures(
query?,requestOptions?):Promise<GovernanceErasurePageResponse>
Defined in: src/resources/governance.ts:450
List erasures.
Parameters
Section titled “Parameters”query?
Section titled “query?”GovernanceListErasuresQuery = {}
Filters and the previous page cursor.
requestOptions?
Section titled “requestOptions?”Cancellation and transport options.
Returns
Section titled “Returns”Promise<GovernanceErasurePageResponse>
The native result with camelCase schema keys.
Throws
Section titled “Throws”When native authorization, preconditions or validation refuse the operation.
Remarks
Section titled “Remarks”Uses GET /api/v1/governance/erasures. Completeness and continuation are preserved; this client does not infer admission.
Example
Section titled “Example”`await client.governance.listErasures(query);`listIdentityDecisions()
Section titled “listIdentityDecisions()”listIdentityDecisions(
query?,requestOptions?):Promise<GovernanceOperationalIdentityDecisionPage>
Defined in: src/resources/governance.ts:467
List identity decisions.
Parameters
Section titled “Parameters”query?
Section titled “query?”GovernanceListIdentityDecisionsQuery = {}
Filters and the previous page cursor.
requestOptions?
Section titled “requestOptions?”Cancellation and transport options.
Returns
Section titled “Returns”Promise<GovernanceOperationalIdentityDecisionPage>
The native result with camelCase schema keys.
Throws
Section titled “Throws”When native authorization, preconditions or validation refuse the operation.
Remarks
Section titled “Remarks”Uses GET /api/v1/governance/identity-decisions. Completeness and continuation are preserved; this client does not infer admission.
Example
Section titled “Example”`await client.governance.listIdentityDecisions(query);`listIdentityProposals()
Section titled “listIdentityProposals()”listIdentityProposals(
query?,requestOptions?):Promise<GovernanceIdentityProposalPage>
Defined in: src/resources/governance.ts:1375
Groups of contributions that share a trusted identifier and that no current decision covers (design 29 §2.3, M4-54).
Parameters
Section titled “Parameters”query?
Section titled “query?”GovernanceListIdentityProposalsQuery = {}
Filters and the previous page cursor.
requestOptions?
Section titled “requestOptions?”Cancellation and transport options.
Returns
Section titled “Returns”Promise<GovernanceIdentityProposalPage>
The native result with camelCase schema keys.
Throws
Section titled “Throws”When the engine answers a coded vocabulary refusal (its closed code).
Throws
Section titled “Throws”For any other refusal (400, 409, 503); errorBodyCode reads a coded body.
Remarks
Section titled “Remarks”Uses GET /api/v1/governance/identity-proposals. Completeness and continuation are preserved; this client does not infer admission.
Example
Section titled “Example”`await client.governance.listIdentityProposals();`listJobs()
Section titled “listJobs()”listJobs(
query?,requestOptions?):Promise<GovernancePipelineJobsResponse>
Defined in: src/resources/governance.ts:487
List jobs.
Parameters
Section titled “Parameters”query?
Section titled “query?”Filters and the previous page cursor.
requestOptions?
Section titled “requestOptions?”Cancellation and transport options.
Returns
Section titled “Returns”Promise<GovernancePipelineJobsResponse>
The native result with camelCase schema keys.
Throws
Section titled “Throws”When native authorization, preconditions or validation refuse the operation.
Remarks
Section titled “Remarks”Uses GET /api/v1/governance/jobs. Completeness and continuation are preserved; this client does not infer admission.
Example
Section titled “Example”`await client.governance.listJobs(query);`listJobUnits()
Section titled “listJobUnits()”listJobUnits(
jobId,query?,requestOptions?):Promise<GovernanceJobUnitsResponse>
Defined in: src/resources/governance.ts:1397
A job’s committed units, by ordinal.
Parameters
Section titled “Parameters”string
The job_id path identifier.
query?
Section titled “query?”GovernanceListJobUnitsQuery = {}
Filters and the previous page cursor.
requestOptions?
Section titled “requestOptions?”Cancellation and transport options.
Returns
Section titled “Returns”Promise<GovernanceJobUnitsResponse>
The native result with camelCase schema keys.
Throws
Section titled “Throws”When the engine answers a coded vocabulary refusal (its closed code).
Throws
Section titled “Throws”For any other refusal (400, 404, 409, 503); errorBodyCode reads a coded body.
Remarks
Section titled “Remarks”Uses GET /api/v1/governance/jobs/{job_id}/units. Completeness and continuation are preserved; this client does not infer admission.
Example
Section titled “Example”`await client.governance.listJobUnits(jobId);`listPlatformRoleAssignments()
Section titled “listPlatformRoleAssignments()”listPlatformRoleAssignments(
query?,requestOptions?):Promise<GovernanceRoleAssignmentPageResponse>
Defined in: src/resources/governance.ts:526
List platform role assignments.
Parameters
Section titled “Parameters”query?
Section titled “query?”GovernanceListPlatformRoleAssignmentsQuery = {}
Filters and the previous page cursor.
requestOptions?
Section titled “requestOptions?”Cancellation and transport options.
Returns
Section titled “Returns”Promise<GovernanceRoleAssignmentPageResponse>
The native result with camelCase schema keys.
Throws
Section titled “Throws”When native authorization, preconditions or validation refuse the operation.
Remarks
Section titled “Remarks”Uses GET /api/v1/governance/platform/role-assignments. Completeness and continuation are preserved; this client does not infer admission.
Example
Section titled “Example”`await client.governance.listPlatformRoleAssignments(query);`listRecoveries()
Section titled “listRecoveries()”listRecoveries(
query?,requestOptions?):Promise<GovernanceRecoveryPageResponse>
Defined in: src/resources/governance.ts:600
List recoveries.
Parameters
Section titled “Parameters”query?
Section titled “query?”GovernanceListRecoveriesQuery = {}
Filters and the previous page cursor.
requestOptions?
Section titled “requestOptions?”Cancellation and transport options.
Returns
Section titled “Returns”Promise<GovernanceRecoveryPageResponse>
The native result with camelCase schema keys.
Throws
Section titled “Throws”When native authorization, preconditions or validation refuse the operation.
Remarks
Section titled “Remarks”Uses GET /api/v1/governance/recoveries. Completeness and continuation are preserved; this client does not infer admission.
Example
Section titled “Example”`await client.governance.listRecoveries(query);`listRelation()
Section titled “listRelation()”listRelation(
relation,query?,requestOptions?):Promise<GovernanceAuthorityRelationPageResponse>
Defined in: src/resources/governance.ts:335
List relation.
Parameters
Section titled “Parameters”relation
Section titled “relation”string
The path identifier.
query?
Section titled “query?”GovernanceListRelationQuery = {}
Filters and the previous page cursor.
requestOptions?
Section titled “requestOptions?”Cancellation and transport options.
Returns
Section titled “Returns”Promise<GovernanceAuthorityRelationPageResponse>
The native result with camelCase schema keys.
Throws
Section titled “Throws”When native authorization, preconditions or validation refuse the operation.
Remarks
Section titled “Remarks”Uses GET /api/v1/governance/authority-relations/{relation}. Completeness and continuation are preserved; this client does not infer admission.
Example
Section titled “Example”`await client.governance.listRelation(relation, query);`listRoleAssignments()
Section titled “listRoleAssignments()”listRoleAssignments(
query?,requestOptions?):Promise<GovernanceRoleAssignmentPageResponse>
Defined in: src/resources/governance.ts:617
List role assignments.
Parameters
Section titled “Parameters”query?
Section titled “query?”GovernanceListRoleAssignmentsQuery = {}
Filters and the previous page cursor.
requestOptions?
Section titled “requestOptions?”Cancellation and transport options.
Returns
Section titled “Returns”Promise<GovernanceRoleAssignmentPageResponse>
The native result with camelCase schema keys.
Throws
Section titled “Throws”When native authorization, preconditions or validation refuse the operation.
Remarks
Section titled “Remarks”Uses GET /api/v1/governance/role-assignments. Completeness and continuation are preserved; this client does not infer admission.
Example
Section titled “Example”`await client.governance.listRoleAssignments(query);`listSourceRecords()
Section titled “listSourceRecords()”listSourceRecords(
query?,requestOptions?):Promise<GovernanceSourceRecordPageResponse>
Defined in: src/resources/governance.ts:713
List source records.
Parameters
Section titled “Parameters”query?
Section titled “query?”GovernanceListSourceRecordsQuery = {}
Filters and the previous page cursor.
requestOptions?
Section titled “requestOptions?”Cancellation and transport options.
Returns
Section titled “Returns”Promise<GovernanceSourceRecordPageResponse>
The native result with camelCase schema keys.
Throws
Section titled “Throws”When native authorization, preconditions or validation refuse the operation.
Remarks
Section titled “Remarks”Uses GET /api/v1/governance/source-records. Completeness and continuation are preserved; this client does not infer admission.
Example
Section titled “Example”`await client.governance.listSourceRecords(query);`listUnitVersions()
Section titled “listUnitVersions()”listUnitVersions(
query,requestOptions?):Promise<GovernanceUnitVersionPageResponse>
Defined in: src/resources/governance.ts:738
List unit versions.
Parameters
Section titled “Parameters”GovernanceListUnitVersionsQuery
Filters and the previous page cursor.
requestOptions?
Section titled “requestOptions?”Cancellation and transport options.
Returns
Section titled “Returns”Promise<GovernanceUnitVersionPageResponse>
The native result with camelCase schema keys.
Throws
Section titled “Throws”When native authorization, preconditions or validation refuse the operation.
Remarks
Section titled “Remarks”Uses GET /api/v1/governance/unit-versions. Completeness and continuation are preserved; this client does not infer admission.
Example
Section titled “Example”`await client.governance.listUnitVersions(query);`observeSubscription()
Section titled “observeSubscription()”observeSubscription(
organizationId,applicationId,options?,requestOptions?):Promise<SubscriptionObservationResult>
Defined in: src/resources/governance.ts:1575
Observe a subscription’s lifecycle coherently: what a transition must expect.
Parameters
Section titled “Parameters”organizationId
Section titled “organizationId”string
The organization.
applicationId
Section titled “applicationId”string
The application.
options?
Section titled “options?”stripeSubscriptionId: the billing provider’s subscription, when known.
stripeSubscriptionId?
Section titled “stripeSubscriptionId?”string
requestOptions?
Section titled “requestOptions?”Cancellation and transport options.
Returns
Section titled “Returns”Promise<SubscriptionObservationResult>
The billing and dunning records, the revision, the tier and whether it was revoked.
Throws
Section titled “Throws”When the engine answers a coded vocabulary refusal.
Throws
Section titled “Throws”403 without the configured source’s provisioning identity; 409 for ambiguous records; 503 when a complete observation is unavailable.
Remarks
Section titled “Remarks”Uses GET /api/v1/governance/subscriptions/{organization_id}/{application_id}/observation.
Example
Section titled “Example”`const { observation } = await client.governance.observeSubscription(organizationId, applicationId);`prepareMeterDelivery()
Section titled “prepareMeterDelivery()”prepareMeterDelivery(
request,requestOptions?):Promise<MeterReceipt>
Defined in: src/resources/governance.ts:1520
Prepare one minute’s meter delivery: the original, immutable receipt to send.
Parameters
Section titled “Parameters”request
Section titled “request”The event name, organization, application, count and minute.
requestOptions?
Section titled “requestOptions?”Cancellation and transport options.
Returns
Section titled “Returns”Promise<MeterReceipt>
The receipt: the value, unit, tier, formula and the records it was read from.
Throws
Section titled “Throws”When the engine answers a coded vocabulary refusal.
Throws
Section titled “Throws”403 when the provisioning identity or source is refused; 409 for an ambiguous source, a changed quantity or a concurrent source change; 422 for an invalid body; 503 when unavailable.
Remarks
Section titled “Remarks”Uses POST /api/v1/governance/meter-deliveries/prepare. Answers the configured billing source’s provisioning identity only.
Example
Section titled “Example”`await client.governance.prepareMeterDelivery({ eventName, organizationId, applicationId, count, minute });`previewIdentityDecision()
Section titled “previewIdentityDecision()”previewIdentityDecision(
request,requestOptions?):Promise<GovernanceIdentityPreviewResponse>
Defined in: src/resources/governance.ts:1420
The consolidation of a proposed same decision, written nowhere (module documentation).
Parameters
Section titled “Parameters”request
Section titled “request”GovernanceIdentityPreviewRequest
The request body.
requestOptions?
Section titled “requestOptions?”Cancellation and transport options.
Returns
Section titled “Returns”Promise<GovernanceIdentityPreviewResponse>
The native result with camelCase schema keys.
Throws
Section titled “Throws”When the engine answers a coded vocabulary refusal (its closed code).
Throws
Section titled “Throws”For any other refusal (403, 409, 422, 503); errorBodyCode reads a coded body.
Remarks
Section titled “Remarks”Uses POST /api/v1/governance/identity-decisions/preview. Completeness and continuation are preserved; this client does not infer admission.
Example
Section titled “Example”`await client.governance.previewIdentityDecision(request);`releaseUnits()
Section titled “releaseUnits()”releaseUnits(
releaseId,requestOptions?):Promise<GovernanceReleaseUnitsResponse>
Defined in: src/resources/governance.ts:1441
The unit versions a release references.
Parameters
Section titled “Parameters”releaseId
Section titled “releaseId”string
The release_id path identifier.
requestOptions?
Section titled “requestOptions?”Cancellation and transport options.
Returns
Section titled “Returns”Promise<GovernanceReleaseUnitsResponse>
The native result with camelCase schema keys.
Throws
Section titled “Throws”When the engine answers a coded vocabulary refusal (its closed code).
Throws
Section titled “Throws”For any other refusal (404, 503); errorBodyCode reads a coded body.
Remarks
Section titled “Remarks”Uses GET /api/v1/governance/releases/{release_id}/units. Completeness and continuation are preserved; this client does not infer admission.
Example
Section titled “Example”`await client.governance.releaseUnits(releaseId);`retractRelation()
Section titled “retractRelation()”retractRelation(
relation,request,idempotencyKey,requestOptions?):Promise<GovernanceAuthorityRelationRetracted>
Defined in: src/resources/governance.ts:384
Retract relation.
Parameters
Section titled “Parameters”relation
Section titled “relation”string
The path identifier.
request
Section titled “request”GovernanceAuthorityRelationRequest
The governed mutation body.
idempotencyKey
Section titled “idempotencyKey”string
Stable caller-owned key reused for an identical retry.
requestOptions?
Section titled “requestOptions?”Cancellation and transport options.
Returns
Section titled “Returns”Promise<GovernanceAuthorityRelationRetracted>
The native result with camelCase schema keys; its replayed is true when the engine answered a committed request under the same key.
Throws
Section titled “Throws”When native authorization, preconditions or validation refuse the operation.
Remarks
Section titled “Remarks”Uses POST /api/v1/governance/authority-relations/{relation}/retractions. Completeness and continuation are preserved; this client does not infer admission.
Example
Section titled “Example”`await client.governance.retractRelation(relation, request, idempotencyKey);`reviewAuthorityPolicy()
Section titled “reviewAuthorityPolicy()”reviewAuthorityPolicy(
id,idempotencyKey,requestOptions?):Promise<GovernanceAuthorityPolicyReview>
Defined in: src/resources/governance.ts:299
Review authority policy.
Parameters
Section titled “Parameters”string
The path identifier.
idempotencyKey
Section titled “idempotencyKey”string
Stable caller-owned key reused for an identical retry.
requestOptions?
Section titled “requestOptions?”Cancellation and transport options.
Returns
Section titled “Returns”Promise<GovernanceAuthorityPolicyReview>
The native result with camelCase schema keys; its replayed is true when the engine answered a committed request under the same key.
Throws
Section titled “Throws”When native authorization, preconditions or validation refuse the operation.
Remarks
Section titled “Remarks”Uses POST /api/v1/governance/authority-policy-changes/{id}/reviews. Completeness and continuation are preserved; this client does not infer admission.
Example
Section titled “Example”`await client.governance.reviewAuthorityPolicy(id, idempotencyKey);`reviewUnitVersion()
Section titled “reviewUnitVersion()”reviewUnitVersion(
unitVersionId,request,idempotencyKey,requestOptions?):Promise<GovernanceReviewUnitResponse>
Defined in: src/resources/governance.ts:1461
A semantic review of the changed unit whose prospective version id is the path id (design 29 §3.4): review_semantic proved on the revision, which no author of the revision holds.
Parameters
Section titled “Parameters”unitVersionId
Section titled “unitVersionId”string
The unit_version_id path identifier.
request
Section titled “request”The request body.
idempotencyKey
Section titled “idempotencyKey”string
Stable caller-owned key reused for an identical retry.
requestOptions?
Section titled “requestOptions?”Cancellation and transport options.
Returns
Section titled “Returns”Promise<GovernanceReviewUnitResponse>
The native result with camelCase schema keys.
Throws
Section titled “Throws”When the engine answers a coded vocabulary refusal (its closed code).
Throws
Section titled “Throws”For any other refusal (400, 403, 404, 409, 422, 428, 503); errorBodyCode reads a coded body.
Remarks
Section titled “Remarks”Uses POST /api/v1/governance/unit-versions/{unit_version_id}/reviews. Completeness and continuation are preserved; this client does not infer admission.
Example
Section titled “Example”`await client.governance.reviewUnitVersion(unitVersionId, request, idempotencyKey);`revisePlatformRole()
Section titled “revisePlatformRole()”revisePlatformRole(
id,request,idempotencyKey,requestOptions?):Promise<GovernanceRoleCommitResponse>
Defined in: src/resources/governance.ts:577
Revise platform role.
Parameters
Section titled “Parameters”string
The path identifier.
request
Section titled “request”The governed mutation body.
idempotencyKey
Section titled “idempotencyKey”string
Stable caller-owned key reused for an identical retry.
requestOptions?
Section titled “requestOptions?”Cancellation and transport options.
Returns
Section titled “Returns”Promise<GovernanceRoleCommitResponse>
The native result with camelCase schema keys.
Throws
Section titled “Throws”When native authorization, preconditions or validation refuse the operation.
Remarks
Section titled “Remarks”Uses POST /api/v1/governance/platform/role-assignments/{id}/revisions. Completeness and continuation are preserved; this client does not infer admission.
Example
Section titled “Example”`await client.governance.revisePlatformRole(id, request, idempotencyKey);`reviseRole()
Section titled “reviseRole()”reviseRole(
id,request,idempotencyKey,requestOptions?):Promise<GovernanceRoleCommitResponse>
Defined in: src/resources/governance.ts:690
Revise role.
Parameters
Section titled “Parameters”string
The path identifier.
request
Section titled “request”The governed mutation body.
idempotencyKey
Section titled “idempotencyKey”string
Stable caller-owned key reused for an identical retry.
requestOptions?
Section titled “requestOptions?”Cancellation and transport options.
Returns
Section titled “Returns”Promise<GovernanceRoleCommitResponse>
The native result with camelCase schema keys.
Throws
Section titled “Throws”When native authorization, preconditions or validation refuse the operation.
Remarks
Section titled “Remarks”Uses POST /api/v1/governance/role-assignments/{id}/revisions. Completeness and continuation are preserved; this client does not infer admission.
Example
Section titled “Example”`await client.governance.reviseRole(id, request, idempotencyKey);`revisionUnits()
Section titled “revisionUnits()”revisionUnits(
revisionId,requestOptions?):Promise<GovernanceRevisionUnitsResponse>
Defined in: src/resources/governance.ts:1485
Every unit of a revision’s view against its baseline release: changed or kept, its (prospective) version id, version and class, and whether it is approved.
Parameters
Section titled “Parameters”revisionId
Section titled “revisionId”string
The revision_id path identifier.
requestOptions?
Section titled “requestOptions?”Cancellation and transport options.
Returns
Section titled “Returns”Promise<GovernanceRevisionUnitsResponse>
The native result with camelCase schema keys.
Throws
Section titled “Throws”When the engine answers a coded vocabulary refusal (its closed code).
Throws
Section titled “Throws”For any other refusal (400, 404, 409, 422, 503); errorBodyCode reads a coded body.
Remarks
Section titled “Remarks”Uses GET /api/v1/governance/revisions/{revision_id}/units. Completeness and continuation are preserved; this client does not infer admission.
Example
Section titled “Example”`await client.governance.revisionUnits(revisionId);`syncSubscriptionProjection()
Section titled “syncSubscriptionProjection()”syncSubscriptionProjection(
projectId,requestOptions?):Promise<SubscriptionProjectionSync>
Defined in: src/resources/governance.ts:1631
Bring one project’s tier projection up to date with its subscription.
Parameters
Section titled “Parameters”projectId
Section titled “projectId”string
The project.
requestOptions?
Section titled “requestOptions?”Cancellation and transport options.
Returns
Section titled “Returns”Promise<SubscriptionProjectionSync>
The revision and tier projected.
Throws
Section titled “Throws”When the engine answers a coded vocabulary refusal.
Throws
Section titled “Throws”403 without the configured source’s provisioning identity; 404 for an absent project; 409 when it moved, was duplicated or changed during the sync; 503 when unavailable.
Remarks
Section titled “Remarks”Uses POST /api/v1/governance/subscription-projections/{project_id}/sync.
Example
Section titled “Example”`await client.governance.syncSubscriptionProjection(projectId);`transitionSubscription()
Section titled “transitionSubscription()”transitionSubscription(
organizationId,applicationId,request,requestOptions?):Promise<SubscriptionTransitionResult>
Defined in: src/resources/governance.ts:1605
Apply one subscription lifecycle transition and its project projection, atomically.
Parameters
Section titled “Parameters”organizationId
Section titled “organizationId”string
The organization.
applicationId
Section titled “applicationId”string
The application.
request
Section titled “request”The intent id, what the caller observed, the operation and the provider subscription.
requestOptions?
Section titled “requestOptions?”Cancellation and transport options.
Returns
Section titled “Returns”Promise<SubscriptionTransitionResult>
The new revision, tier and subscription, the projects changed, and whether it was replayed.
Throws
Section titled “Throws”When the engine answers a coded vocabulary refusal.
Throws
Section titled “Throws”403 without the configured source’s provisioning identity; 409 for a stale intent, a changed scope or ambiguous records; 422 for an invalid request; 503 when the commit is uncertain.
Remarks
Section titled “Remarks”Uses POST /api/v1/governance/subscriptions/{organization_id}/{application_id}/transitions.
Example
Section titled “Example”`await client.governance.transitionSubscription(organizationId, applicationId, { intentId, expected: observation, operation: { kind: 'reconcile' }, stripeSubscriptionId: null });`unitMembers()
Section titled “unitMembers()”unitMembers(
unitVersionId,query?,requestOptions?):Promise<GovernanceUnitMembersResponse>
Defined in: src/resources/governance.ts:764
Unit members.
Parameters
Section titled “Parameters”unitVersionId
Section titled “unitVersionId”string
The path identifier.
query?
Section titled “query?”GovernanceUnitMembersQuery = {}
Filters and the previous page cursor.
requestOptions?
Section titled “requestOptions?”Cancellation and transport options.
Returns
Section titled “Returns”Promise<GovernanceUnitMembersResponse>
The native result with camelCase schema keys.
Throws
Section titled “Throws”When native authorization, preconditions or validation refuse the operation.
Remarks
Section titled “Remarks”Uses GET /api/v1/governance/unit-versions/{unit_version_id}/members. Completeness and continuation are preserved; this client does not infer admission.
Example
Section titled “Example”`await client.governance.unitMembers(unitVersionId, query);`