Skip to content

Class: GovernanceClient

@kortexya/reasoninglayer


@kortexya/reasoninglayer / GovernanceClient

Defined in: src/resources/governance.ts:181

Native governance operations over the caller’s engine records.

Authority is checked by the engine. The SDK preserves scopes, cursor pages, incomplete results and caller-owned idempotency keys.

activateAuthorityPolicy(id, request, idempotencyKey, requestOptions?): Promise<GovernanceAuthorityPolicyActivation>

Defined in: src/resources/governance.ts:275

Activate authority policy.

string

The path identifier.

GovernanceAuthorityPolicyActivate

The governed mutation body.

string

Stable caller-owned key reused for an identical retry.

RequestOptions

Cancellation and transport options.

Promise<GovernanceAuthorityPolicyActivation>

The native result with camelCase schema keys; its replayed is true when the engine answered a committed request under the same key.

When native authorization, preconditions or validation refuse the operation.

Uses POST /api/v1/governance/authority-policy-changes/{id}/activation. Completeness and continuation are preserved; this client does not infer admission.

`await client.governance.activateAuthorityPolicy(id, request, idempotencyKey);`

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.

UsageEvent

The event, under its stable id.

RequestOptions

Cancellation and transport options.

Promise<UsageReceipt>

The admission record and the event as admitted.

When the engine answers a coded vocabulary refusal.

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.

Uses POST /api/v1/governance/usage-events. Answers the configured billing source’s provisioning identity only.

`await client.governance.admitUsage({ eventId, eventName: 'ask', organizationId, applicationId, count: 1 });`

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.

string

The unit_version_id path identifier.

GovernanceApproveUnitRequest

The request body.

string

Stable caller-owned key reused for an identical retry.

RequestOptions

Cancellation and transport options.

Promise<GovernanceApproveUnitResponse>

The native result with camelCase schema keys.

When the engine answers a coded vocabulary refusal (its closed code).

For any other refusal (400, 403, 404, 409, 422, 428, 503); errorBodyCode reads a coded body.

Uses POST /api/v1/governance/unit-versions/{unit_version_id}/approve. Completeness and continuation are preserved; this client does not infer admission.

`await client.governance.approveUnitVersion(unitVersionId, request, idempotencyKey);`

assertRelation(relation, request, idempotencyKey, requestOptions?): Promise<GovernanceAuthorityRelationAsserted>

Defined in: src/resources/governance.ts:359

Assert relation.

string

The path identifier.

GovernanceAuthorityRelationRequest

The governed mutation body.

string

Stable caller-owned key reused for an identical retry.

RequestOptions

Cancellation and transport options.

Promise<GovernanceAuthorityRelationAsserted>

The native result with camelCase schema keys; its replayed is true when the engine answered a committed request under the same key.

When native authorization, preconditions or validation refuse the operation.

Uses POST /api/v1/governance/authority-relations/{relation}. Completeness and continuation are preserved; this client does not infer admission.

`await client.governance.assertRelation(relation, request, idempotencyKey);`

assignPlatformRole(request, idempotencyKey, requestOptions?): Promise<GovernanceRoleCommitResponse>

Defined in: src/resources/governance.ts:554

Assign platform role.

GovernanceAssignRoleRequest

The governed mutation body.

string

Stable caller-owned key reused for an identical retry.

RequestOptions

Cancellation and transport options.

Promise<GovernanceRoleCommitResponse>

The native result with camelCase schema keys.

When native authorization, preconditions or validation refuse the operation.

Uses POST /api/v1/governance/platform/role-assignments. Completeness and continuation are preserved; this client does not infer admission.

`await client.governance.assignPlatformRole(request, idempotencyKey);`

assignRole(request, idempotencyKey, requestOptions?): Promise<GovernanceRoleCommitResponse>

Defined in: src/resources/governance.ts:645

Assign role.

GovernanceAssignRoleRequest

The governed mutation body.

string

Stable caller-owned key reused for an identical retry.

RequestOptions

Cancellation and transport options.

Promise<GovernanceRoleCommitResponse>

The native result with camelCase schema keys.

When native authorization, preconditions or validation refuse the operation.

Uses POST /api/v1/governance/role-assignments. Completeness and continuation are preserved; this client does not infer admission.

`await client.governance.assignRole(request, idempotencyKey);`

bootstrapPlatform(request, idempotencyKey, requestOptions?): Promise<GovernanceRoleCommitResponse>

Defined in: src/resources/governance.ts:505

Bootstrap platform.

GovernanceBootstrapRolesRequest

The governed mutation body.

string

Stable caller-owned key reused for an identical retry.

RequestOptions

Cancellation and transport options.

Promise<GovernanceRoleCommitResponse>

The native result with camelCase schema keys.

When native authorization, preconditions or validation refuse the operation.

Uses POST /api/v1/governance/platform/bootstrap. Completeness and continuation are preserved; this client does not infer admission.

`await client.governance.bootstrapPlatform(request, idempotencyKey);`

bootstrapRoles(request, idempotencyKey, requestOptions?): Promise<GovernanceRoleCommitResponse>

Defined in: src/resources/governance.ts:667

Bootstrap roles.

GovernanceBootstrapRolesRequest

The governed mutation body.

string

Stable caller-owned key reused for an identical retry.

RequestOptions

Cancellation and transport options.

Promise<GovernanceRoleCommitResponse>

The native result with camelCase schema keys.

When native authorization, preconditions or validation refuse the operation.

Uses POST /api/v1/governance/role-assignments/bootstrap. Completeness and continuation are preserved; this client does not infer admission.

`await client.governance.bootstrapRoles(request, idempotencyKey);`

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.

string

The job_id path identifier.

string

Stable caller-owned key reused for an identical retry.

RequestOptions

Cancellation and transport options.

Promise<GovernancePipelineJobResponse>

The native result with camelCase schema keys.

When the engine answers a coded vocabulary refusal (its closed code).

For any other refusal (403, 404, 409, 428, 503); errorBodyCode reads a coded body.

Uses POST /api/v1/governance/jobs/{job_id}/cancel. Completeness and continuation are preserved; this client does not infer admission.

`await client.governance.cancelJob(jobId, idempotencyKey);`

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.

string

The application whose catalog is canonicalized.

RequestOptions

Cancellation and transport options.

Promise<CatalogCanonicalization>

How many tiers changed and each tier’s canonical id; the original history is retained.

When the engine answers a coded vocabulary refusal.

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.

Uses POST /api/v1/governance/tier-catalogs/{application_id}/canonicalize.

`const { tierIds } = await client.governance.canonicalizeTierCatalog(applicationId);`

classifyActor(subject, request, idempotencyKey, requestOptions?): Promise<GovernanceActorClassificationResponse>

Defined in: src/resources/governance.ts:194

Classify actor.

string

The path identifier.

GovernanceClassifyActorRequest

The governed mutation body.

string

Stable caller-owned key reused for an identical retry.

RequestOptions

Cancellation and transport options.

Promise<GovernanceActorClassificationResponse>

The native result with camelCase schema keys.

When native authorization, preconditions or validation refuse the operation.

Uses POST /api/v1/governance/actors/{subject}/classifications. Completeness and continuation are preserved; this client does not infer admission.

`await client.governance.classifyActor(subject, request, idempotencyKey);`

conceptInstances(conceptId, query?, requestOptions?): Promise<GovernanceConceptInstancesResponse>

Defined in: src/resources/governance.ts:428

Concept instances.

string

The path identifier.

GovernanceConceptInstancesQuery = {}

Filters and the previous page cursor.

RequestOptions

Cancellation and transport options.

Promise<GovernanceConceptInstancesResponse>

The native result with camelCase schema keys.

When native authorization, preconditions or validation refuse the operation.

Uses GET /api/v1/governance/concepts/{concept_id}/instances. Completeness and continuation are preserved; this client does not infer admission.

`await client.governance.conceptInstances(conceptId, query);`

createAuthorityPolicy(request, idempotencyKey, requestOptions?): Promise<GovernanceAuthorityPolicyProposal>

Defined in: src/resources/governance.ts:235

Create authority policy.

GovernanceAuthorityPolicyCreate

The governed mutation body.

string

Stable caller-owned key reused for an identical retry.

RequestOptions

Cancellation and transport options.

Promise<GovernanceAuthorityPolicyProposal>

The native result with camelCase schema keys; its replayed is true when the engine answered a committed request under the same key.

When native authorization, preconditions or validation refuse the operation.

Uses POST /api/v1/governance/authority-policy-changes. Completeness and continuation are preserved; this client does not infer admission.

`await client.governance.createAuthorityPolicy(request, idempotencyKey);`

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).

GovernanceAuthorityRevocationInput

The request body.

string

Stable caller-owned key reused for an identical retry.

RequestOptions

Cancellation and transport options.

Promise<GovernanceAuthorityRevocationResponse>

The native result with camelCase schema keys.

When the engine answers a coded vocabulary refusal (its closed code).

For any other refusal (403, 409, 422, 428, 503); errorBodyCode reads a coded body.

Uses POST /api/v1/governance/authority-revocations. Completeness and continuation are preserved; this client does not infer admission.

`await client.governance.createAuthorityRevocation(request, idempotencyKey);`

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.

GovernanceCreateChangeRequestRequest

The request body.

string

Stable caller-owned key reused for an identical retry.

RequestOptions

Cancellation and transport options.

Promise<GovernanceChangeRequestResponse>

The native result with camelCase schema keys.

When the engine answers a coded vocabulary refusal (its closed code).

For any other refusal (400, 403, 404, 409, 413, 415, 422, 428, 500, 503); errorBodyCode reads a coded body.

Uses POST /api/v1/governance/change-requests. Completeness and continuation are preserved; this client does not infer admission.

`await client.governance.createChangeRequest(request, idempotencyKey);`

createErasure(request, idempotencyKey, requestOptions?): Promise<GovernanceErasureResponse>

Defined in: src/resources/governance.ts:880

Erase one uploaded source file or one source record (module documentation).

GovernanceCreateErasureRequest

The request body.

string

Stable caller-owned key reused for an identical retry.

RequestOptions

Cancellation and transport options.

Promise<GovernanceErasureResponse>

The native result with camelCase schema keys.

When the engine answers a coded vocabulary refusal (its closed code).

For any other refusal (400, 403, 404, 409, 410, 422, 428, 500, 503); errorBodyCode reads a coded body.

Uses POST /api/v1/governance/erasures. Completeness and continuation are preserved; this client does not infer admission.

`await client.governance.createErasure(request, idempotencyKey);`

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).

GovernanceOperationalIdentityDecisionInput

The request body.

string

Stable caller-owned key reused for an identical retry.

RequestOptions

Cancellation and transport options.

Promise<GovernanceIdentityDecisionAdmissionResponse>

The native result with camelCase schema keys.

When the engine answers a coded vocabulary refusal (its closed code).

For any other refusal (400, 403, 409, 422, 428, 500, 503); errorBodyCode reads a coded body.

Uses POST /api/v1/governance/identity-decisions. Completeness and continuation are preserved; this client does not infer admission.

`await client.governance.createIdentityDecision(request, idempotencyKey);`

createJob(request, idempotencyKey, requestOptions?): Promise<GovernancePipelineJobResponse>

Defined in: src/resources/governance.ts:926

Create a pipeline job.

GovernanceCreatePipelineJobRequest

The request body.

string

Stable caller-owned key reused for an identical retry.

RequestOptions

Cancellation and transport options.

Promise<GovernancePipelineJobResponse>

The native result with camelCase schema keys.

When the engine answers a coded vocabulary refusal (its closed code).

For any other refusal (400, 403, 404, 409, 410, 422, 428, 503); errorBodyCode reads a coded body.

Uses POST /api/v1/governance/jobs. Completeness and continuation are preserved; this client does not infer admission.

`await client.governance.createJob(request, idempotencyKey);`

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.

GovernanceCreateRecoveryRequest

The request body.

string

Stable caller-owned key reused for an identical retry.

RequestOptions

Cancellation and transport options.

Promise<GovernanceRecoveryCreatedResponse>

The native result with camelCase schema keys.

When the engine answers a coded vocabulary refusal (its closed code).

For any other refusal (400, 403, 404, 409, 413, 415, 422, 428, 500, 503); errorBodyCode reads a coded body.

Uses POST /api/v1/governance/recoveries. Completeness and continuation are preserved; this client does not infer admission.

`await client.governance.createRecovery(request, idempotencyKey);`

createRestore(request, idempotencyKey, requestOptions?): Promise<GovernanceRestoreResponse>

Defined in: src/resources/governance.ts:972

Restore an exported release as restored units (module documentation).

GovernanceCreateRestoreRequest

The request body.

string

Stable caller-owned key reused for an identical retry.

RequestOptions

Cancellation and transport options.

Promise<GovernanceRestoreResponse>

The native result with camelCase schema keys.

When the engine answers a coded vocabulary refusal (its closed code).

For any other refusal (400, 403, 409, 413, 415, 422, 428, 500, 503); errorBodyCode reads a coded body.

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).

`await client.governance.createRestore(request, idempotencyKey);`

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.

string

The change_request_id path identifier.

GovernanceDisposeChangeRequestRequest

The request body.

string

Stable caller-owned key reused for an identical retry.

RequestOptions

Cancellation and transport options.

Promise<GovernanceChangeRequestResponse>

The native result with camelCase schema keys.

When the engine answers a coded vocabulary refusal (its closed code).

For any other refusal (400, 403, 404, 409, 413, 415, 422, 428, 500, 503); errorBodyCode reads a coded body.

Uses POST /api/v1/governance/change-requests/{change_request_id}/dispose. Completeness and continuation are preserved; this client does not infer admission.

`await client.governance.disposeChangeRequest(changeRequestId, request, idempotencyKey);`

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.

string

The term_id path identifier.

RequestOptions

Cancellation and transport options.

Promise<GovernanceExplanationResponse>

The native result with camelCase schema keys.

When the engine answers a coded vocabulary refusal (its closed code).

For any other refusal (400, 404, 409, 503); errorBodyCode reads a coded body.

Uses GET /api/v1/governance/explain/{term_id}. Completeness and continuation are preserved; this client does not infer admission.

`await client.governance.explainTerm(termId);`

exportRelease(releaseId, requestOptions?): Promise<GovernanceReleaseExport>

Defined in: src/resources/governance.ts:1041

One release as kos-json/v2 (design 29 §7.3).

string

The release_id path identifier.

RequestOptions

Cancellation and transport options.

Promise<GovernanceReleaseExport>

The native result with camelCase schema keys.

When the engine answers a coded vocabulary refusal (its closed code).

For any other refusal (400, 404, 409, 500, 503); errorBodyCode reads a coded body.

Uses GET /api/v1/governance/releases/{release_id}/export. Completeness and continuation are preserved; this client does not infer admission.

`await client.governance.exportRelease(releaseId);`

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.

string

The subject path identifier.

RequestOptions

Cancellation and transport options.

Promise<GovernanceActorReadResponse>

The native result with camelCase schema keys.

When the engine answers a coded vocabulary refusal (its closed code).

For any other refusal (404, 409); errorBodyCode reads a coded body.

Uses GET /api/v1/governance/actors/{subject}. Completeness and continuation are preserved; this client does not infer admission.

`await client.governance.getActor(subject);`

getAuthorityPolicy(id, requestOptions?): Promise<GovernanceAuthorityPolicyProposal>

Defined in: src/resources/governance.ts:256

Get authority policy.

string

The path identifier.

RequestOptions

Cancellation and transport options.

Promise<GovernanceAuthorityPolicyProposal>

The native result with camelCase schema keys.

When native authorization, preconditions or validation refuse the operation.

Uses GET /api/v1/governance/authority-policy-changes/{id}. Completeness and continuation are preserved; this client does not infer admission.

`await client.governance.getAuthorityPolicy(id);`

getAuthorityPolicyActivation(id, requestOptions?): Promise<GovernanceAuthorityPolicyActivation>

Defined in: src/resources/governance.ts:217

Get authority policy activation.

string

The path identifier.

RequestOptions

Cancellation and transport options.

Promise<GovernanceAuthorityPolicyActivation>

The native result with camelCase schema keys.

When native authorization, preconditions or validation refuse the operation.

Uses GET /api/v1/governance/authority-policy-activations/{id}. Completeness and continuation are preserved; this client does not infer admission.

`await client.governance.getAuthorityPolicyActivation(id);`

getAuthorityPolicyReview(id, requestOptions?): Promise<GovernanceAuthorityPolicyReview>

Defined in: src/resources/governance.ts:317

Get authority policy review.

string

The path identifier.

RequestOptions

Cancellation and transport options.

Promise<GovernanceAuthorityPolicyReview>

The native result with camelCase schema keys.

When native authorization, preconditions or validation refuse the operation.

Uses GET /api/v1/governance/authority-policy-reviews/{id}. Completeness and continuation are preserved; this client does not infer admission.

`await client.governance.getAuthorityPolicyReview(id);`

getAuthorityRevocation(revocationId, requestOptions?): Promise<GovernanceAuthorityRevocation>

Defined in: src/resources/governance.ts:1077

One revocation.

string

The revocation_id path identifier.

RequestOptions

Cancellation and transport options.

Promise<GovernanceAuthorityRevocation>

The native result with camelCase schema keys.

When the engine answers a coded vocabulary refusal (its closed code).

For any other refusal (404, 409, 503); errorBodyCode reads a coded body.

Uses GET /api/v1/governance/authority-revocations/{revocation_id}. Completeness and continuation are preserved; this client does not infer admission.

`await client.governance.getAuthorityRevocation(revocationId);`

getChangeRequest(changeRequestId, requestOptions?): Promise<GovernanceChangeRequestResponse>

Defined in: src/resources/governance.ts:1095

One change request (M4-20).

string

The change_request_id path identifier.

RequestOptions

Cancellation and transport options.

Promise<GovernanceChangeRequestResponse>

The native result with camelCase schema keys.

When the engine answers a coded vocabulary refusal (its closed code).

For any other refusal (400, 404, 409, 500, 503); errorBodyCode reads a coded body.

Uses GET /api/v1/governance/change-requests/{change_request_id}. Completeness and continuation are preserved; this client does not infer admission.

`await client.governance.getChangeRequest(changeRequestId);`

getEntity(entityId, requestOptions?): Promise<GovernanceOperationalEntity>

Defined in: src/resources/governance.ts:1113

One operational entity with its derivation (its decision and premises).

string

The entity_id path identifier.

RequestOptions

Cancellation and transport options.

Promise<GovernanceOperationalEntity>

The native result with camelCase schema keys.

When the engine answers a coded vocabulary refusal (its closed code).

For any other refusal (404, 409, 503); errorBodyCode reads a coded body.

Uses GET /api/v1/governance/entities/{entity_id}. Completeness and continuation are preserved; this client does not infer admission.

`await client.governance.getEntity(entityId);`

getErasure(erasureId, requestOptions?): Promise<GovernanceErasureResponse>

Defined in: src/resources/governance.ts:1131

One erasure with its decision, its activity and its steps, as recorded.

string

The erasure_id path identifier.

RequestOptions

Cancellation and transport options.

Promise<GovernanceErasureResponse>

The native result with camelCase schema keys.

When the engine answers a coded vocabulary refusal (its closed code).

For any other refusal (400, 404, 503); errorBodyCode reads a coded body.

Uses GET /api/v1/governance/erasures/{erasure_id}. Completeness and continuation are preserved; this client does not infer admission.

`await client.governance.getErasure(erasureId);`

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).

string

The decision_id path identifier.

RequestOptions

Cancellation and transport options.

Promise<GovernanceOperationalIdentityDecision>

The native result with camelCase schema keys.

When the engine answers a coded vocabulary refusal (its closed code).

For any other refusal (404, 409, 503); errorBodyCode reads a coded body.

Uses GET /api/v1/governance/identity-decisions/{decision_id}. Completeness and continuation are preserved; this client does not infer admission.

`await client.governance.getIdentityDecision(decisionId);`

getJob(jobId, requestOptions?): Promise<GovernancePipelineJobResponse>

Defined in: src/resources/governance.ts:1167

One job.

string

The job_id path identifier.

RequestOptions

Cancellation and transport options.

Promise<GovernancePipelineJobResponse>

The native result with camelCase schema keys.

When the engine answers a coded vocabulary refusal (its closed code).

For any other refusal (404, 409, 503); errorBodyCode reads a coded body.

Uses GET /api/v1/governance/jobs/{job_id}. Completeness and continuation are preserved; this client does not infer admission.

`await client.governance.getJob(jobId);`

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).

string

The term_id path identifier.

RequestOptions

Cancellation and transport options.

Promise<GovernanceProvenanceResponse>

The native result with camelCase schema keys.

When the engine answers a coded vocabulary refusal (its closed code).

For any other refusal (400, 404, 409, 503); errorBodyCode reads a coded body.

Uses GET /api/v1/governance/provenance/{term_id}. Completeness and continuation are preserved; this client does not infer admission.

`await client.governance.getProvenance(termId);`

getProvenanceDcat(termId, requestOptions?): Promise<GovernanceProvenanceTranslationResponse>

Defined in: src/resources/governance.ts:1203

The DCAT translation of what an admission activity admitted, with its losses.

string

The term_id path identifier.

RequestOptions

Cancellation and transport options.

Promise<GovernanceProvenanceTranslationResponse>

The native result with camelCase schema keys.

When the engine answers a coded vocabulary refusal (its closed code).

For any other refusal (400, 404, 409, 422, 503); errorBodyCode reads a coded body.

Uses GET /api/v1/governance/provenance/{term_id}/dcat. Completeness and continuation are preserved; this client does not infer admission.

`await client.governance.getProvenanceDcat(termId);`

getProvenanceProv(termId, requestOptions?): Promise<GovernanceProvenanceTranslationResponse>

Defined in: src/resources/governance.ts:1221

The PROV-O translation of the term’s provenance, with its losses.

string

The term_id path identifier.

RequestOptions

Cancellation and transport options.

Promise<GovernanceProvenanceTranslationResponse>

The native result with camelCase schema keys.

When the engine answers a coded vocabulary refusal (its closed code).

For any other refusal (400, 404, 409, 503); errorBodyCode reads a coded body.

Uses GET /api/v1/governance/provenance/{term_id}/prov. Completeness and continuation are preserved; this client does not infer admission.

`await client.governance.getProvenanceProv(termId);`

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).

string

The recovery_id path identifier.

RequestOptions

Cancellation and transport options.

Promise<GovernanceRecoveryResponse>

The native result with camelCase schema keys.

When the engine answers a coded vocabulary refusal (its closed code).

For any other refusal (400, 404, 409, 500, 503); errorBodyCode reads a coded body.

Uses GET /api/v1/governance/recoveries/{recovery_id}. Completeness and continuation are preserved; this client does not infer admission.

`await client.governance.getRecovery(recoveryId);`

getRestore(restoreId, requestOptions?): Promise<GovernanceRestoreResponse>

Defined in: src/resources/governance.ts:1257

One restore with its restored units, as recorded.

string

The restore_id path identifier.

RequestOptions

Cancellation and transport options.

Promise<GovernanceRestoreResponse>

The native result with camelCase schema keys.

When the engine answers a coded vocabulary refusal (its closed code).

For any other refusal (400, 404, 503); errorBodyCode reads a coded body.

Uses GET /api/v1/governance/restores/{restore_id}. Completeness and continuation are preserved; this client does not infer admission.

`await client.governance.getRestore(restoreId);`

getRoleAssignment(id, requestOptions?): Promise<GovernanceRoleAssignmentHistoryResponse>

Defined in: src/resources/governance.ts:1275

One assignment, every revision and the acts that wrote them.

string

The id path identifier.

RequestOptions

Cancellation and transport options.

Promise<GovernanceRoleAssignmentHistoryResponse>

The native result with camelCase schema keys.

When the engine answers a coded vocabulary refusal (its closed code).

For any other refusal (404, 409); errorBodyCode reads a coded body.

Uses GET /api/v1/governance/role-assignments/{id}. Completeness and continuation are preserved; this client does not infer admission.

`await client.governance.getRoleAssignment(id);`

getSourceRecord(recordId, requestOptions?): Promise<GovernanceSourceRecordResponse>

Defined in: src/resources/governance.ts:1293

One contribution with its history and its trusted identifiers.

string

The record_id path identifier.

RequestOptions

Cancellation and transport options.

Promise<GovernanceSourceRecordResponse>

The native result with camelCase schema keys.

When the engine answers a coded vocabulary refusal (its closed code).

For any other refusal (400, 404, 409, 410, 503); errorBodyCode reads a coded body.

Uses GET /api/v1/governance/source-records/{record_id}. Completeness and continuation are preserved; this client does not infer admission.

`await client.governance.getSourceRecord(recordId);`

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.

RequestOptions

Cancellation and transport options; the caller is the gateway’s provisioning identity.

Promise<SubscriptionSource>

Whether one is configured, its tenant id, or why none is usable.

403 provisioning_identity_required for any other caller.

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.

`const { configured, tenantId } = await client.governance.getSubscriptionSource();`

getUnitVersion(unitVersionId, requestOptions?): Promise<GovernanceUnitVersion>

Defined in: src/resources/governance.ts:1311

One unit version.

string

The unit_version_id path identifier.

RequestOptions

Cancellation and transport options.

Promise<GovernanceUnitVersion>

The native result with camelCase schema keys.

When the engine answers a coded vocabulary refusal (its closed code).

For any other refusal (404, 503); errorBodyCode reads a coded body.

Uses GET /api/v1/governance/unit-versions/{unit_version_id}. Completeness and continuation are preserved; this client does not infer admission.

`await client.governance.getUnitVersion(unitVersionId);`

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.

string

The release_id path identifier.

string

The target_id path identifier.

RequestOptions

Cancellation and transport options.

Promise<GovernanceHistoricalInterpretationResponse>

The native result with camelCase schema keys.

When the engine answers a coded vocabulary refusal (its closed code).

For any other refusal (400, 404, 409, 503); errorBodyCode reads a coded body.

Uses GET /api/v1/governance/releases/{release_id}/formal-targets/{target_id}/interpretation. Completeness and continuation are preserved; this client does not infer admission.

`await client.governance.historicalInterpretation(releaseId, targetId);`

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.

string

The change_request_id path identifier.

GovernanceLinkChangeRequestRequest

The request body.

string

Stable caller-owned key reused for an identical retry.

RequestOptions

Cancellation and transport options.

Promise<GovernanceChangeRequestResponse>

The native result with camelCase schema keys.

When the engine answers a coded vocabulary refusal (its closed code).

For any other refusal (400, 403, 404, 409, 413, 415, 422, 428, 500, 503); errorBodyCode reads a coded body.

Uses POST /api/v1/governance/change-requests/{change_request_id}/link. Completeness and continuation are preserved; this client does not infer admission.

`await client.governance.linkChangeRequest(changeRequestId, request, idempotencyKey);`

listChangeRequests(query?, requestOptions?): Promise<GovernanceChangeRequestPageResponse>

Defined in: src/resources/governance.ts:407

List change requests.

GovernanceListChangeRequestsQuery = {}

Filters and the previous page cursor.

RequestOptions

Cancellation and transport options.

Promise<GovernanceChangeRequestPageResponse>

The native result with camelCase schema keys.

When native authorization, preconditions or validation refuse the operation.

Uses GET /api/v1/governance/change-requests. Completeness and continuation are preserved; this client does not infer admission.

`await client.governance.listChangeRequests(query);`

listErasures(query?, requestOptions?): Promise<GovernanceErasurePageResponse>

Defined in: src/resources/governance.ts:450

List erasures.

GovernanceListErasuresQuery = {}

Filters and the previous page cursor.

RequestOptions

Cancellation and transport options.

Promise<GovernanceErasurePageResponse>

The native result with camelCase schema keys.

When native authorization, preconditions or validation refuse the operation.

Uses GET /api/v1/governance/erasures. Completeness and continuation are preserved; this client does not infer admission.

`await client.governance.listErasures(query);`

listIdentityDecisions(query?, requestOptions?): Promise<GovernanceOperationalIdentityDecisionPage>

Defined in: src/resources/governance.ts:467

List identity decisions.

GovernanceListIdentityDecisionsQuery = {}

Filters and the previous page cursor.

RequestOptions

Cancellation and transport options.

Promise<GovernanceOperationalIdentityDecisionPage>

The native result with camelCase schema keys.

When native authorization, preconditions or validation refuse the operation.

Uses GET /api/v1/governance/identity-decisions. Completeness and continuation are preserved; this client does not infer admission.

`await client.governance.listIdentityDecisions(query);`

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).

GovernanceListIdentityProposalsQuery = {}

Filters and the previous page cursor.

RequestOptions

Cancellation and transport options.

Promise<GovernanceIdentityProposalPage>

The native result with camelCase schema keys.

When the engine answers a coded vocabulary refusal (its closed code).

For any other refusal (400, 409, 503); errorBodyCode reads a coded body.

Uses GET /api/v1/governance/identity-proposals. Completeness and continuation are preserved; this client does not infer admission.

`await client.governance.listIdentityProposals();`

listJobs(query?, requestOptions?): Promise<GovernancePipelineJobsResponse>

Defined in: src/resources/governance.ts:487

List jobs.

GovernanceListJobsQuery = {}

Filters and the previous page cursor.

RequestOptions

Cancellation and transport options.

Promise<GovernancePipelineJobsResponse>

The native result with camelCase schema keys.

When native authorization, preconditions or validation refuse the operation.

Uses GET /api/v1/governance/jobs. Completeness and continuation are preserved; this client does not infer admission.

`await client.governance.listJobs(query);`

listJobUnits(jobId, query?, requestOptions?): Promise<GovernanceJobUnitsResponse>

Defined in: src/resources/governance.ts:1397

A job’s committed units, by ordinal.

string

The job_id path identifier.

GovernanceListJobUnitsQuery = {}

Filters and the previous page cursor.

RequestOptions

Cancellation and transport options.

Promise<GovernanceJobUnitsResponse>

The native result with camelCase schema keys.

When the engine answers a coded vocabulary refusal (its closed code).

For any other refusal (400, 404, 409, 503); errorBodyCode reads a coded body.

Uses GET /api/v1/governance/jobs/{job_id}/units. Completeness and continuation are preserved; this client does not infer admission.

`await client.governance.listJobUnits(jobId);`

listPlatformRoleAssignments(query?, requestOptions?): Promise<GovernanceRoleAssignmentPageResponse>

Defined in: src/resources/governance.ts:526

List platform role assignments.

GovernanceListPlatformRoleAssignmentsQuery = {}

Filters and the previous page cursor.

RequestOptions

Cancellation and transport options.

Promise<GovernanceRoleAssignmentPageResponse>

The native result with camelCase schema keys.

When native authorization, preconditions or validation refuse the operation.

Uses GET /api/v1/governance/platform/role-assignments. Completeness and continuation are preserved; this client does not infer admission.

`await client.governance.listPlatformRoleAssignments(query);`

listRecoveries(query?, requestOptions?): Promise<GovernanceRecoveryPageResponse>

Defined in: src/resources/governance.ts:600

List recoveries.

GovernanceListRecoveriesQuery = {}

Filters and the previous page cursor.

RequestOptions

Cancellation and transport options.

Promise<GovernanceRecoveryPageResponse>

The native result with camelCase schema keys.

When native authorization, preconditions or validation refuse the operation.

Uses GET /api/v1/governance/recoveries. Completeness and continuation are preserved; this client does not infer admission.

`await client.governance.listRecoveries(query);`

listRelation(relation, query?, requestOptions?): Promise<GovernanceAuthorityRelationPageResponse>

Defined in: src/resources/governance.ts:335

List relation.

string

The path identifier.

GovernanceListRelationQuery = {}

Filters and the previous page cursor.

RequestOptions

Cancellation and transport options.

Promise<GovernanceAuthorityRelationPageResponse>

The native result with camelCase schema keys.

When native authorization, preconditions or validation refuse the operation.

Uses GET /api/v1/governance/authority-relations/{relation}. Completeness and continuation are preserved; this client does not infer admission.

`await client.governance.listRelation(relation, query);`

listRoleAssignments(query?, requestOptions?): Promise<GovernanceRoleAssignmentPageResponse>

Defined in: src/resources/governance.ts:617

List role assignments.

GovernanceListRoleAssignmentsQuery = {}

Filters and the previous page cursor.

RequestOptions

Cancellation and transport options.

Promise<GovernanceRoleAssignmentPageResponse>

The native result with camelCase schema keys.

When native authorization, preconditions or validation refuse the operation.

Uses GET /api/v1/governance/role-assignments. Completeness and continuation are preserved; this client does not infer admission.

`await client.governance.listRoleAssignments(query);`

listSourceRecords(query?, requestOptions?): Promise<GovernanceSourceRecordPageResponse>

Defined in: src/resources/governance.ts:713

List source records.

GovernanceListSourceRecordsQuery = {}

Filters and the previous page cursor.

RequestOptions

Cancellation and transport options.

Promise<GovernanceSourceRecordPageResponse>

The native result with camelCase schema keys.

When native authorization, preconditions or validation refuse the operation.

Uses GET /api/v1/governance/source-records. Completeness and continuation are preserved; this client does not infer admission.

`await client.governance.listSourceRecords(query);`

listUnitVersions(query, requestOptions?): Promise<GovernanceUnitVersionPageResponse>

Defined in: src/resources/governance.ts:738

List unit versions.

GovernanceListUnitVersionsQuery

Filters and the previous page cursor.

RequestOptions

Cancellation and transport options.

Promise<GovernanceUnitVersionPageResponse>

The native result with camelCase schema keys.

When native authorization, preconditions or validation refuse the operation.

Uses GET /api/v1/governance/unit-versions. Completeness and continuation are preserved; this client does not infer admission.

`await client.governance.listUnitVersions(query);`

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.

string

The organization.

string

The application.

stripeSubscriptionId: the billing provider’s subscription, when known.

string

RequestOptions

Cancellation and transport options.

Promise<SubscriptionObservationResult>

The billing and dunning records, the revision, the tier and whether it was revoked.

When the engine answers a coded vocabulary refusal.

403 without the configured source’s provisioning identity; 409 for ambiguous records; 503 when a complete observation is unavailable.

Uses GET /api/v1/governance/subscriptions/{organization_id}/{application_id}/observation.

`const { observation } = await client.governance.observeSubscription(organizationId, applicationId);`

prepareMeterDelivery(request, requestOptions?): Promise<MeterReceipt>

Defined in: src/resources/governance.ts:1520

Prepare one minute’s meter delivery: the original, immutable receipt to send.

MeterDeliveryRequest

The event name, organization, application, count and minute.

RequestOptions

Cancellation and transport options.

Promise<MeterReceipt>

The receipt: the value, unit, tier, formula and the records it was read from.

When the engine answers a coded vocabulary refusal.

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.

Uses POST /api/v1/governance/meter-deliveries/prepare. Answers the configured billing source’s provisioning identity only.

`await client.governance.prepareMeterDelivery({ eventName, organizationId, applicationId, count, minute });`

previewIdentityDecision(request, requestOptions?): Promise<GovernanceIdentityPreviewResponse>

Defined in: src/resources/governance.ts:1420

The consolidation of a proposed same decision, written nowhere (module documentation).

GovernanceIdentityPreviewRequest

The request body.

RequestOptions

Cancellation and transport options.

Promise<GovernanceIdentityPreviewResponse>

The native result with camelCase schema keys.

When the engine answers a coded vocabulary refusal (its closed code).

For any other refusal (403, 409, 422, 503); errorBodyCode reads a coded body.

Uses POST /api/v1/governance/identity-decisions/preview. Completeness and continuation are preserved; this client does not infer admission.

`await client.governance.previewIdentityDecision(request);`

releaseUnits(releaseId, requestOptions?): Promise<GovernanceReleaseUnitsResponse>

Defined in: src/resources/governance.ts:1441

The unit versions a release references.

string

The release_id path identifier.

RequestOptions

Cancellation and transport options.

Promise<GovernanceReleaseUnitsResponse>

The native result with camelCase schema keys.

When the engine answers a coded vocabulary refusal (its closed code).

For any other refusal (404, 503); errorBodyCode reads a coded body.

Uses GET /api/v1/governance/releases/{release_id}/units. Completeness and continuation are preserved; this client does not infer admission.

`await client.governance.releaseUnits(releaseId);`

retractRelation(relation, request, idempotencyKey, requestOptions?): Promise<GovernanceAuthorityRelationRetracted>

Defined in: src/resources/governance.ts:384

Retract relation.

string

The path identifier.

GovernanceAuthorityRelationRequest

The governed mutation body.

string

Stable caller-owned key reused for an identical retry.

RequestOptions

Cancellation and transport options.

Promise<GovernanceAuthorityRelationRetracted>

The native result with camelCase schema keys; its replayed is true when the engine answered a committed request under the same key.

When native authorization, preconditions or validation refuse the operation.

Uses POST /api/v1/governance/authority-relations/{relation}/retractions. Completeness and continuation are preserved; this client does not infer admission.

`await client.governance.retractRelation(relation, request, idempotencyKey);`

reviewAuthorityPolicy(id, idempotencyKey, requestOptions?): Promise<GovernanceAuthorityPolicyReview>

Defined in: src/resources/governance.ts:299

Review authority policy.

string

The path identifier.

string

Stable caller-owned key reused for an identical retry.

RequestOptions

Cancellation and transport options.

Promise<GovernanceAuthorityPolicyReview>

The native result with camelCase schema keys; its replayed is true when the engine answered a committed request under the same key.

When native authorization, preconditions or validation refuse the operation.

Uses POST /api/v1/governance/authority-policy-changes/{id}/reviews. Completeness and continuation are preserved; this client does not infer admission.

`await client.governance.reviewAuthorityPolicy(id, idempotencyKey);`

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.

string

The unit_version_id path identifier.

GovernanceReviewUnitRequest

The request body.

string

Stable caller-owned key reused for an identical retry.

RequestOptions

Cancellation and transport options.

Promise<GovernanceReviewUnitResponse>

The native result with camelCase schema keys.

When the engine answers a coded vocabulary refusal (its closed code).

For any other refusal (400, 403, 404, 409, 422, 428, 503); errorBodyCode reads a coded body.

Uses POST /api/v1/governance/unit-versions/{unit_version_id}/reviews. Completeness and continuation are preserved; this client does not infer admission.

`await client.governance.reviewUnitVersion(unitVersionId, request, idempotencyKey);`

revisePlatformRole(id, request, idempotencyKey, requestOptions?): Promise<GovernanceRoleCommitResponse>

Defined in: src/resources/governance.ts:577

Revise platform role.

string

The path identifier.

GovernanceReviseRoleRequest

The governed mutation body.

string

Stable caller-owned key reused for an identical retry.

RequestOptions

Cancellation and transport options.

Promise<GovernanceRoleCommitResponse>

The native result with camelCase schema keys.

When native authorization, preconditions or validation refuse the operation.

Uses POST /api/v1/governance/platform/role-assignments/{id}/revisions. Completeness and continuation are preserved; this client does not infer admission.

`await client.governance.revisePlatformRole(id, request, idempotencyKey);`

reviseRole(id, request, idempotencyKey, requestOptions?): Promise<GovernanceRoleCommitResponse>

Defined in: src/resources/governance.ts:690

Revise role.

string

The path identifier.

GovernanceReviseRoleRequest

The governed mutation body.

string

Stable caller-owned key reused for an identical retry.

RequestOptions

Cancellation and transport options.

Promise<GovernanceRoleCommitResponse>

The native result with camelCase schema keys.

When native authorization, preconditions or validation refuse the operation.

Uses POST /api/v1/governance/role-assignments/{id}/revisions. Completeness and continuation are preserved; this client does not infer admission.

`await client.governance.reviseRole(id, request, idempotencyKey);`

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.

string

The revision_id path identifier.

RequestOptions

Cancellation and transport options.

Promise<GovernanceRevisionUnitsResponse>

The native result with camelCase schema keys.

When the engine answers a coded vocabulary refusal (its closed code).

For any other refusal (400, 404, 409, 422, 503); errorBodyCode reads a coded body.

Uses GET /api/v1/governance/revisions/{revision_id}/units. Completeness and continuation are preserved; this client does not infer admission.

`await client.governance.revisionUnits(revisionId);`

syncSubscriptionProjection(projectId, requestOptions?): Promise<SubscriptionProjectionSync>

Defined in: src/resources/governance.ts:1631

Bring one project’s tier projection up to date with its subscription.

string

The project.

RequestOptions

Cancellation and transport options.

Promise<SubscriptionProjectionSync>

The revision and tier projected.

When the engine answers a coded vocabulary refusal.

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.

Uses POST /api/v1/governance/subscription-projections/{project_id}/sync.

`await client.governance.syncSubscriptionProjection(projectId);`

transitionSubscription(organizationId, applicationId, request, requestOptions?): Promise<SubscriptionTransitionResult>

Defined in: src/resources/governance.ts:1605

Apply one subscription lifecycle transition and its project projection, atomically.

string

The organization.

string

The application.

SubscriptionTransitionRequest

The intent id, what the caller observed, the operation and the provider subscription.

RequestOptions

Cancellation and transport options.

Promise<SubscriptionTransitionResult>

The new revision, tier and subscription, the projects changed, and whether it was replayed.

When the engine answers a coded vocabulary refusal.

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.

Uses POST /api/v1/governance/subscriptions/{organization_id}/{application_id}/transitions.

`await client.governance.transitionSubscription(organizationId, applicationId, { intentId, expected: observation, operation: { kind: 'reconcile' }, stripeSubscriptionId: null });`

unitMembers(unitVersionId, query?, requestOptions?): Promise<GovernanceUnitMembersResponse>

Defined in: src/resources/governance.ts:764

Unit members.

string

The path identifier.

GovernanceUnitMembersQuery = {}

Filters and the previous page cursor.

RequestOptions

Cancellation and transport options.

Promise<GovernanceUnitMembersResponse>

The native result with camelCase schema keys.

When native authorization, preconditions or validation refuse the operation.

Uses GET /api/v1/governance/unit-versions/{unit_version_id}/members. Completeness and continuation are preserved; this client does not infer admission.

`await client.governance.unitMembers(unitVersionId, query);`