@the-ai-company/cbio-node-runtime 1.63.2 → 1.63.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +48 -209
- package/dist/clients/agent/client.d.ts +18 -40
- package/dist/clients/agent/client.js +22 -109
- package/dist/clients/agent/client.js.map +1 -1
- package/dist/clients/agent/contracts.d.ts +1 -8
- package/dist/clients/agent/index.d.ts +1 -1
- package/dist/clients/owner/client.d.ts +2 -102
- package/dist/clients/owner/client.js +119 -240
- package/dist/clients/owner/client.js.map +1 -1
- package/dist/clients/owner/contracts.d.ts +37 -70
- package/dist/clients/owner/index.d.ts +2 -4
- package/dist/clients/owner/index.js +1 -2
- package/dist/clients/owner/index.js.map +1 -1
- package/dist/internal/id-factory.d.ts +0 -2
- package/dist/internal/id-factory.js +0 -6
- package/dist/internal/id-factory.js.map +1 -1
- package/dist/protocol/identity.d.ts +1 -1
- package/dist/protocol/identity.js +3 -3
- package/dist/protocol/identity.js.map +1 -1
- package/dist/public-types.d.ts +5 -0
- package/dist/public-types.js +2 -0
- package/dist/public-types.js.map +1 -0
- package/dist/runtime/bootstrap.js.map +1 -1
- package/dist/runtime/identity.d.ts +2 -2
- package/dist/runtime/identity.js +3 -5
- package/dist/runtime/identity.js.map +1 -1
- package/dist/runtime/index.d.ts +10 -11
- package/dist/runtime/index.js +7 -8
- package/dist/runtime/index.js.map +1 -1
- package/dist/runtime/owner-session.d.ts +7 -6
- package/dist/runtime/owner-session.js +5 -6
- package/dist/runtime/owner-session.js.map +1 -1
- package/dist/storage/fs.d.ts +3 -2
- package/dist/storage/fs.js +8 -5
- package/dist/storage/fs.js.map +1 -1
- package/dist/storage/prefix.d.ts +1 -0
- package/dist/storage/prefix.js +7 -0
- package/dist/storage/prefix.js.map +1 -1
- package/dist/storage/provider.d.ts +2 -0
- package/dist/vault-core/contracts.d.ts +112 -193
- package/dist/vault-core/contracts.js +5 -8
- package/dist/vault-core/contracts.js.map +1 -1
- package/dist/vault-core/core.d.ts +127 -62
- package/dist/vault-core/core.js +500 -1182
- package/dist/vault-core/core.js.map +1 -1
- package/dist/vault-core/defaults.d.ts +26 -42
- package/dist/vault-core/defaults.js +73 -229
- package/dist/vault-core/defaults.js.map +1 -1
- package/dist/vault-core/errors.d.ts +3 -2
- package/dist/vault-core/errors.js.map +1 -1
- package/dist/vault-core/index.d.ts +5 -5
- package/dist/vault-core/index.js +2 -2
- package/dist/vault-core/index.js.map +1 -1
- package/dist/vault-core/persistence.d.ts +78 -118
- package/dist/vault-core/persistence.js +329 -421
- package/dist/vault-core/persistence.js.map +1 -1
- package/dist/vault-core/ports.d.ts +19 -24
- package/dist/vault-core/read-policy.d.ts +3 -2
- package/dist/vault-core/read-policy.js.map +1 -1
- package/dist/vault-core/tool-metadata.js +2 -2
- package/dist/vault-core/tool-metadata.js.map +1 -1
- package/dist/vault-ingress/defaults.d.ts +4 -2
- package/dist/vault-ingress/defaults.js +14 -8
- package/dist/vault-ingress/defaults.js.map +1 -1
- package/dist/vault-ingress/index.d.ts +43 -117
- package/dist/vault-ingress/index.js +98 -453
- package/dist/vault-ingress/index.js.map +1 -1
- package/dist/vault-ingress/remote-transport.d.ts +5 -3
- package/dist/vault-ingress/remote-transport.js +8 -28
- package/dist/vault-ingress/remote-transport.js.map +1 -1
- package/docs/ARCHITECTURE.md +39 -22
- package/docs/CUSTODY_MODEL.md +1 -1
- package/docs/IDENTITY_MODEL.md +5 -5
- package/docs/MIGRATION-1.51.md +19 -19
- package/docs/MIGRATION-1.65.md +61 -0
- package/docs/PROCESS_ISOLATION.md +2 -2
- package/docs/REFERENCE.md +42 -200
- package/docs/api/README.md +50 -22
- package/docs/api/classes/IdentityError.md +1 -1
- package/docs/api/classes/OwnerClientError.md +1 -1
- package/docs/api/classes/PersistentVaultAgentIdentityRegistry.md +89 -0
- package/docs/api/classes/PersistentVaultAgentSecretGrantRegistry.md +125 -0
- package/docs/api/classes/PersistentVaultAuditLog.md +65 -0
- package/docs/api/classes/PersistentVaultCustomHttpFlowRegistry.md +69 -0
- package/docs/api/classes/PersistentVaultSecretCustody.md +93 -0
- package/docs/api/classes/PersistentVaultSecretDestinationGrantRegistry.md +125 -0
- package/docs/api/classes/PersistentVaultSecretRepository.md +127 -0
- package/docs/api/classes/VaultCore.md +299 -214
- package/docs/api/classes/VaultCoreError.md +3 -3
- package/docs/api/enumerations/AuditAction.md +143 -0
- package/docs/api/enumerations/AuditOutcome.md +35 -0
- package/docs/api/enumerations/DispatchStatus.md +35 -0
- package/docs/api/enumerations/IdentityErrorCode.md +1 -1
- package/docs/api/enumerations/OwnerClientErrorCode.md +1 -1
- package/docs/api/functions/createAgentClient.md +1 -15
- package/docs/api/functions/createIdentity.md +2 -2
- package/docs/api/functions/createOwnerClient.md +17 -0
- package/docs/api/functions/createOwnerSession.md +1 -1
- package/docs/api/functions/createPersistentVaultCoreDependencies.md +4 -4
- package/docs/api/functions/createVault.md +1 -1
- package/docs/api/functions/createVaultCore.md +1 -1
- package/docs/api/functions/createVaultCoreDependencies.md +1 -1
- package/docs/api/functions/createVaultService.md +5 -9
- package/docs/api/functions/createWorkspaceStorage.md +1 -1
- package/docs/api/functions/deriveRootAgentId.md +17 -0
- package/docs/api/functions/deriveVaultWorkingKeyFromPassword.md +1 -1
- package/docs/api/functions/getDefaultWorkspaceDir.md +1 -1
- package/docs/api/functions/handleVaultAgentControlHttp.md +2 -2
- package/docs/api/functions/handleVaultHttpDispatch.md +2 -2
- package/docs/api/functions/initializeVaultCustody.md +7 -3
- package/docs/api/functions/listVaults.md +1 -1
- package/docs/api/functions/readVaultProfile.md +1 -1
- package/docs/api/functions/recoverVault.md +1 -1
- package/docs/api/functions/recoverVaultWorkingKey.md +4 -8
- package/docs/api/functions/restoreIdentity.md +1 -1
- package/docs/api/functions/updateVaultMetadata.md +1 -1
- package/docs/api/functions/writeVaultProfile.md +1 -1
- package/docs/api/interfaces/AgentClient.md +20 -59
- package/docs/api/interfaces/AgentDispatchIntent.md +1 -1
- package/docs/api/interfaces/AgentDispatchTransport.md +12 -44
- package/docs/api/interfaces/AgentIdentity.md +3 -3
- package/docs/api/interfaces/AgentIdentityRecord.md +47 -0
- package/docs/api/interfaces/AgentRequestResult.md +35 -0
- package/docs/api/interfaces/AgentRuntimeManifest.md +55 -0
- package/docs/api/interfaces/AgentSecretGrant.md +41 -0
- package/docs/api/interfaces/AgentSigner.md +1 -1
- package/docs/api/interfaces/AgentVisibleRequestRecord.md +53 -0
- package/docs/api/interfaces/AgentVisibleSecretRecord.md +65 -0
- package/docs/api/interfaces/AuditEntry.md +83 -0
- package/docs/api/interfaces/CbioRuntime.md +13 -150
- package/docs/api/interfaces/CreateAgentClientOptions.md +4 -10
- package/docs/api/interfaces/CreateIdentityOptions.md +1 -1
- package/docs/api/interfaces/{CreateVaultClientOptions.md → CreateOwnerClientOptions.md} +9 -11
- package/docs/api/interfaces/CreateOwnerSessionOptions.md +3 -117
- package/docs/api/interfaces/CreatePersistentVaultCoreDependenciesOptions.md +3 -131
- package/docs/api/interfaces/CreateVaultOptions.md +1 -121
- package/docs/api/interfaces/CreatedVault.md +2 -2
- package/docs/api/interfaces/CustomHttpFlowDefinition.md +71 -0
- package/docs/api/interfaces/DefaultPolicyEngineOptions.md +1 -13
- package/docs/api/interfaces/DispatchAuthorization.md +43 -0
- package/docs/api/interfaces/DispatchInstruction.md +47 -0
- package/docs/api/interfaces/DispatchRequest.md +83 -0
- package/docs/api/interfaces/DispatchResult.md +53 -0
- package/docs/api/interfaces/IStorageProvider.md +13 -1
- package/docs/api/interfaces/InitializeVaultCustodyOptions.md +31 -11
- package/docs/api/interfaces/InitializedVaultCustody.md +1 -7
- package/docs/api/interfaces/OwnerAgentProvisionResult.md +2 -2
- package/docs/api/interfaces/OwnerClient.md +417 -0
- package/docs/api/interfaces/OwnerCreateSecretInput.md +1 -1
- package/docs/api/interfaces/OwnerRemoveSecretInput.md +1 -1
- package/docs/api/interfaces/OwnerRequestRecord.md +97 -0
- package/docs/api/interfaces/OwnerSensitiveActionConfirmation.md +1 -1
- package/docs/api/interfaces/OwnerSensitiveActionContext.md +1 -1
- package/docs/api/interfaces/OwnerSession.md +3 -3
- package/docs/api/interfaces/OwnerUpdateSecretInput.md +1 -1
- package/docs/api/interfaces/OwnerVisibleRequestRecord.md +73 -0
- package/docs/api/interfaces/RecoverVaultOptions.md +1 -121
- package/docs/api/interfaces/RecoveredVault.md +2 -2
- package/docs/api/interfaces/RequestRecord.md +107 -0
- package/docs/api/interfaces/RestoreIdentityOptions.md +1 -1
- package/docs/api/interfaces/SecretAlias.md +11 -0
- package/docs/api/interfaces/SecretDestinationGrant.md +41 -0
- package/docs/api/interfaces/SecretId.md +11 -0
- package/docs/api/interfaces/SecretRecord.md +89 -0
- package/docs/api/interfaces/Signer.md +1 -1
- package/docs/api/interfaces/VaultApproveDispatchInput.md +3 -9
- package/docs/api/interfaces/VaultAuditQueryInput.md +1 -1
- package/docs/api/interfaces/VaultCoreDependenciesOptions.md +1 -5
- package/docs/api/interfaces/VaultCreateAgentInput.md +1 -1
- package/docs/api/interfaces/VaultExportSecretInput.md +1 -1
- package/docs/api/interfaces/VaultGetRequestInput.md +17 -0
- package/docs/api/interfaces/VaultGrantAgentSecretInput.md +23 -0
- package/docs/api/interfaces/VaultGrantSecretDestinationInput.md +23 -0
- package/docs/api/interfaces/VaultId.md +11 -0
- package/docs/api/interfaces/VaultImportAgentInput.md +1 -1
- package/docs/api/interfaces/VaultIssueSessionTokenInput.md +5 -5
- package/docs/api/interfaces/VaultListAgentsInput.md +1 -1
- package/docs/api/interfaces/VaultListGrantsInput.md +23 -0
- package/docs/api/interfaces/VaultListRequestsInput.md +17 -0
- package/docs/api/interfaces/VaultListSecretsInput.md +1 -1
- package/docs/api/interfaces/VaultMetadata.md +1 -1
- package/docs/api/interfaces/VaultObject.md +2 -2
- package/docs/api/interfaces/VaultPrincipal.md +17 -0
- package/docs/api/interfaces/VaultProfile.md +1 -1
- package/docs/api/interfaces/VaultReadAgentPrivateKeyInput.md +7 -7
- package/docs/api/interfaces/VaultReadSecretPlaintextInput.md +1 -1
- package/docs/api/interfaces/VaultRegisterFlowInput.md +1 -1
- package/docs/api/interfaces/VaultRevokeAgentSecretInput.md +23 -0
- package/docs/api/interfaces/VaultRevokeSecretDestinationInput.md +23 -0
- package/docs/api/interfaces/VaultRevokeSessionTokenInput.md +1 -1
- package/docs/api/interfaces/VaultService.md +547 -0
- package/docs/api/interfaces/VaultUpdateAgentInput.md +7 -7
- package/docs/api/type-aliases/AgentId.md +7 -0
- package/docs/api/type-aliases/CbioRuntimeModule.md +1 -1
- package/docs/api/type-aliases/DispatchApprovalDecision.md +7 -0
- package/docs/api/type-aliases/GrantStatus.md +7 -0
- package/docs/api/type-aliases/SecretLifecycleStatus.md +7 -0
- package/docs/api/type-aliases/VaultPrincipalKind.md +7 -0
- package/docs/api/variables/DEFAULT_VAULT_KEY_CUSTODY_BLOB_KEY.md +2 -2
- package/docs/es/README.md +3 -3
- package/docs/fr/README.md +3 -3
- package/docs/ja/README.md +5 -5
- package/docs/ko/README.md +5 -5
- package/docs/pt/README.md +3 -3
- package/docs/zh/PROCESS_ISOLATION.md +2 -2
- package/docs/zh/README.md +24 -24
- package/examples/process-isolation.ts +26 -35
- package/package.json +3 -2
- package/docs/api/functions/createOwnerHttpFlowBoundary.md +0 -17
- package/docs/api/functions/createStandardAcquireBoundary.md +0 -31
- package/docs/api/functions/createStandardDispatchBoundary.md +0 -23
- package/docs/api/functions/createVaultClient.md +0 -32
- package/docs/api/functions/deriveIdentityId.md +0 -17
- package/docs/api/functions/wrapVaultCoreAsVaultService.md +0 -31
- package/docs/api/interfaces/AgentSubmitCapabilityRequestInput.md +0 -41
- package/docs/api/interfaces/VaultApproveCapabilityRequestInput.md +0 -23
- package/docs/api/interfaces/VaultClient.md +0 -473
- package/docs/api/interfaces/VaultGrantCapabilityInput.md +0 -79
- package/docs/api/interfaces/VaultGrantCapabilityRequest.md +0 -23
- package/docs/api/interfaces/VaultIdentity.md +0 -11
- package/docs/api/interfaces/VaultListCapabilitiesInput.md +0 -17
- package/docs/api/interfaces/VaultRevokeCapabilityInput.md +0 -23
- package/docs/api/interfaces/VaultSigner.md +0 -21
- package/docs/api/interfaces/VaultSubmitCapabilityRequestInput.md +0 -73
- package/docs/api/type-aliases/AgentCapabilityEnvelope.md +0 -7
- package/docs/api/type-aliases/AgentVisibleSecretRecord.md +0 -7
- package/docs/api/type-aliases/OwnerGrantCapabilityInput.md +0 -7
|
@@ -11,13 +11,10 @@ export var AuditAction;
|
|
|
11
11
|
AuditAction["REGISTER_AGENT_IDENTITY"] = "REGISTER_AGENT_IDENTITY";
|
|
12
12
|
AuditAction["UPDATE_AGENT_IDENTITY"] = "UPDATE_AGENT_IDENTITY";
|
|
13
13
|
AuditAction["REGISTER_CUSTOM_FLOW"] = "REGISTER_CUSTOM_FLOW";
|
|
14
|
-
AuditAction["
|
|
15
|
-
AuditAction["
|
|
16
|
-
AuditAction["
|
|
17
|
-
AuditAction["
|
|
18
|
-
AuditAction["REJECT_CAPABILITY_WRITE"] = "REJECT_CAPABILITY_WRITE";
|
|
19
|
-
AuditAction["REJECT_CAPABILITY_READ"] = "REJECT_CAPABILITY_READ";
|
|
20
|
-
AuditAction["REVOKE_CAPABILITY"] = "REVOKE_CAPABILITY";
|
|
14
|
+
AuditAction["GRANT_AGENT_SECRET"] = "GRANT_AGENT_SECRET";
|
|
15
|
+
AuditAction["GRANT_SECRET_DESTINATION"] = "GRANT_SECRET_DESTINATION";
|
|
16
|
+
AuditAction["REVOKE_AGENT_SECRET"] = "REVOKE_AGENT_SECRET";
|
|
17
|
+
AuditAction["REVOKE_SECRET_DESTINATION"] = "REVOKE_SECRET_DESTINATION";
|
|
21
18
|
AuditAction["WRITE_SECRET"] = "WRITE_SECRET";
|
|
22
19
|
AuditAction["EXPORT_SECRET"] = "EXPORT_SECRET";
|
|
23
20
|
AuditAction["REASSIGN_ALIAS"] = "REASSIGN_ALIAS";
|
|
@@ -25,7 +22,7 @@ export var AuditAction;
|
|
|
25
22
|
AuditAction["AUTHORIZE_DISPATCH"] = "AUTHORIZE_DISPATCH";
|
|
26
23
|
AuditAction["DISPATCH_SECRET"] = "DISPATCH_SECRET";
|
|
27
24
|
AuditAction["LIST_AGENTS"] = "LIST_AGENTS";
|
|
28
|
-
AuditAction["
|
|
25
|
+
AuditAction["LIST_GRANTS"] = "LIST_GRANTS";
|
|
29
26
|
AuditAction["LIST_REQUESTS"] = "LIST_REQUESTS";
|
|
30
27
|
AuditAction["READ_REQUEST"] = "READ_REQUEST";
|
|
31
28
|
AuditAction["READ_AUDIT"] = "READ_AUDIT";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contracts.js","sourceRoot":"","sources":["../../src/vault-core/contracts.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"contracts.js","sourceRoot":"","sources":["../../src/vault-core/contracts.ts"],"names":[],"mappings":"AA8cA,MAAM,CAAN,IAAY,cAMX;AAND,WAAY,cAAc;IACxB,yCAAuB,CAAA;IACvB,mCAAiB,CAAA;IACjB,mCAAiB,CAAA;IACjB,qCAAmB,CAAA;IACnB,qCAAmB,CAAA;AACrB,CAAC,EANW,cAAc,KAAd,cAAc,QAMzB;AA6BD,MAAM,CAAN,IAAY,WAwBX;AAxBD,WAAY,WAAW;IACrB,kEAAmD,CAAA;IACnD,8DAA+C,CAAA;IAC/C,4DAA6C,CAAA;IAC7C,wDAAyC,CAAA;IACzC,oEAAqD,CAAA;IACrD,0DAA2C,CAAA;IAC3C,sEAAuD,CAAA;IACvD,4CAA6B,CAAA;IAC7B,8CAA+B,CAAA;IAC/B,gDAAiC,CAAA;IACjC,8CAA+B,CAAA;IAC/B,wDAAyC,CAAA;IACzC,kDAAmC,CAAA;IACnC,0CAA2B,CAAA;IAC3B,0CAA2B,CAAA;IAC3B,8CAA+B,CAAA;IAC/B,4CAA6B,CAAA;IAC7B,wCAAyB,CAAA;IACzB,0DAA2C,CAAA;IAC3C,4DAA6C,CAAA;IAC7C,oDAAqC,CAAA;IACrC,kDAAmC,CAAA;IACnC,gDAAiC,CAAA;AACnC,CAAC,EAxBW,WAAW,KAAX,WAAW,QAwBtB;AAED,MAAM,CAAN,IAAY,YAMX;AAND,WAAY,YAAY;IACtB,mCAAmB,CAAA;IACnB,iCAAiB,CAAA;IACjB,uCAAuB,CAAA;IACvB,iCAAiB,CAAA;IACjB,mCAAmB,CAAA;AACrB,CAAC,EANW,YAAY,KAAZ,YAAY,QAMvB"}
|
|
@@ -1,91 +1,156 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { type AgentIdentityRecord, type AgentRuntimeManifest, type AgentVisibleRequestRecord, type AgentVisibleSecretRecord, type AuditEntry, type AuditQuery, type CustomHttpFlowDefinition, type DispatchAuthorization, type DispatchRequest, type DispatchResult, type OwnerRequestRecord, type OwnerVisibleRequestRecord, type RequestRecord, type SecretRecord, type VaultId, type VaultPrincipal, type AgentSecretGrant, type SecretDestinationGrant, type DispatchApprovalDecision, type OwnerCreateSecretCommand, type OwnerUpdateSecretCommand } from "./contracts.js";
|
|
2
2
|
import type { VaultCoreDependencies } from "./ports.js";
|
|
3
|
-
/**
|
|
4
|
-
* The Sovereign Vault Core.
|
|
5
|
-
* This is the primary implementation of the Vault logic.
|
|
6
|
-
*/
|
|
7
3
|
export declare class VaultCore {
|
|
8
4
|
private readonly _deps;
|
|
9
|
-
|
|
10
|
-
constructor(_deps: VaultCoreDependencies);
|
|
11
|
-
private _assertOwnerPrincipal;
|
|
12
|
-
private _stateToGrantedCapability;
|
|
13
|
-
private _buildAgentCapabilityStates;
|
|
14
|
-
private _isExecutablePendingState;
|
|
15
|
-
private _resolveRequestState;
|
|
16
|
-
private _executePendingCapabilityState;
|
|
5
|
+
constructor(deps: VaultCoreDependencies);
|
|
17
6
|
get vaultId(): VaultId;
|
|
7
|
+
private _assertOwnerPrincipal;
|
|
18
8
|
private _appendAudit;
|
|
19
|
-
private _appendDecisionAudit;
|
|
20
9
|
private _verifyAgentControlProof;
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
10
|
+
ownerGrantAgentSecret(actor: VaultPrincipal & {
|
|
11
|
+
kind: "owner";
|
|
12
|
+
}, rootAgentId: string, secretAlias: string, request?: {
|
|
13
|
+
requestId?: string;
|
|
14
|
+
}): Promise<AgentSecretGrant>;
|
|
15
|
+
ownerGrantSecretDestination(actor: VaultPrincipal & {
|
|
16
|
+
kind: "owner";
|
|
17
|
+
}, secretAlias: string, domain: string, request?: {
|
|
18
|
+
requestId?: string;
|
|
19
|
+
}): Promise<SecretDestinationGrant>;
|
|
20
|
+
ownerRevokeAgentSecret(actor: VaultPrincipal & {
|
|
21
|
+
kind: "owner";
|
|
22
|
+
}, rootAgentId: string, secretAlias: string, request?: {
|
|
23
|
+
requestId?: string;
|
|
24
|
+
}): Promise<void>;
|
|
25
|
+
ownerRevokeSecretDestination(actor: VaultPrincipal & {
|
|
26
|
+
kind: "owner";
|
|
27
|
+
}, secretAlias: string, domain: string, request?: {
|
|
28
|
+
requestId?: string;
|
|
29
|
+
}): Promise<void>;
|
|
30
|
+
ownerListGrants(actor: VaultPrincipal & {
|
|
31
|
+
kind: "owner";
|
|
32
|
+
}, rootAgentId?: string, secretAlias?: string): Promise<{
|
|
33
|
+
agentSecrets: readonly AgentSecretGrant[];
|
|
34
|
+
secretDestinations: readonly SecretDestinationGrant[];
|
|
35
|
+
}>;
|
|
41
36
|
agentAuthorizeDispatch(request: DispatchRequest): Promise<DispatchAuthorization>;
|
|
42
37
|
agentDispatchSecret(request: DispatchRequest): Promise<DispatchResult>;
|
|
38
|
+
ownerApproveDispatch(actor: VaultPrincipal & {
|
|
39
|
+
kind: "owner";
|
|
40
|
+
}, requestId: string, decision: DispatchApprovalDecision): Promise<DispatchResult | null>;
|
|
41
|
+
agentGetRuntimeManifest(command: {
|
|
42
|
+
agent: VaultPrincipal & {
|
|
43
|
+
kind: "agent";
|
|
44
|
+
};
|
|
45
|
+
proof: any;
|
|
46
|
+
requestId: string;
|
|
47
|
+
requestedAt: string;
|
|
48
|
+
}): Promise<AgentRuntimeManifest>;
|
|
49
|
+
agentListSecrets(command: {
|
|
50
|
+
agent: VaultPrincipal & {
|
|
51
|
+
kind: "agent";
|
|
52
|
+
};
|
|
53
|
+
proof: any;
|
|
54
|
+
requestId: string;
|
|
55
|
+
requestedAt: string;
|
|
56
|
+
}): Promise<readonly AgentVisibleSecretRecord[]>;
|
|
57
|
+
agentListRequests(command: {
|
|
58
|
+
agent: VaultPrincipal & {
|
|
59
|
+
kind: "agent";
|
|
60
|
+
};
|
|
61
|
+
proof: any;
|
|
62
|
+
requestId: string;
|
|
63
|
+
requestedAt: string;
|
|
64
|
+
}): Promise<readonly AgentVisibleRequestRecord[]>;
|
|
65
|
+
agentGetRequest(command: {
|
|
66
|
+
agent: VaultPrincipal & {
|
|
67
|
+
kind: "agent";
|
|
68
|
+
};
|
|
69
|
+
proof: any;
|
|
70
|
+
requestId: string;
|
|
71
|
+
requestedAt: string;
|
|
72
|
+
targetRequestId: string;
|
|
73
|
+
}): Promise<any>;
|
|
74
|
+
ownerRegisterAgentIdentity(command: {
|
|
75
|
+
vaultId: VaultId;
|
|
76
|
+
requestId: string;
|
|
77
|
+
owner: VaultPrincipal;
|
|
78
|
+
agentRecord: AgentIdentityRecord;
|
|
79
|
+
requestedAt: string;
|
|
80
|
+
}): Promise<void>;
|
|
81
|
+
ownerUpdateAgentIdentity(command: {
|
|
82
|
+
vaultId: VaultId;
|
|
83
|
+
requestId: string;
|
|
84
|
+
owner: VaultPrincipal;
|
|
85
|
+
rootAgentId: string;
|
|
86
|
+
nickname?: string;
|
|
87
|
+
metadata?: Record<string, any>;
|
|
88
|
+
requestedAt: string;
|
|
89
|
+
}): Promise<AgentIdentityRecord>;
|
|
90
|
+
ownerCreateSecret(command: OwnerCreateSecretCommand): Promise<SecretRecord>;
|
|
91
|
+
ownerUpdateSecret(command: OwnerUpdateSecretCommand): Promise<SecretRecord>;
|
|
92
|
+
ownerRemoveSecret(command: {
|
|
93
|
+
kind: "owner.remove_secret";
|
|
94
|
+
vaultId: VaultId;
|
|
95
|
+
requestId: string;
|
|
96
|
+
owner: VaultPrincipal;
|
|
97
|
+
alias: string;
|
|
98
|
+
requestedAt: string;
|
|
99
|
+
}): Promise<void>;
|
|
100
|
+
ownerWriteSecret(command: any): Promise<SecretRecord>;
|
|
43
101
|
ownerReadAudit(actor: VaultPrincipal & {
|
|
44
102
|
kind: "owner";
|
|
45
|
-
}, query: AuditQuery
|
|
103
|
+
}, query: AuditQuery): Promise<readonly AuditEntry[]>;
|
|
46
104
|
ownerExportSecret(actor: VaultPrincipal & {
|
|
47
105
|
kind: "owner";
|
|
48
|
-
}, alias: string
|
|
49
|
-
private isCapabilityMatch;
|
|
106
|
+
}, alias: string): Promise<any>;
|
|
50
107
|
ownerListAgents(actor: VaultPrincipal & {
|
|
51
108
|
kind: "owner";
|
|
52
|
-
}
|
|
53
|
-
ownerListCapabilities(actor: VaultPrincipal & {
|
|
54
|
-
kind: "owner";
|
|
55
|
-
}, agentId?: string, request?: Omit<OwnerListCapabilitiesRequest, "actor" | "agentId" | "vaultId">): Promise<readonly AgentCapability[]>;
|
|
109
|
+
}): Promise<readonly AgentIdentityRecord[]>;
|
|
56
110
|
ownerListRequests(actor: VaultPrincipal & {
|
|
57
111
|
kind: "owner";
|
|
58
|
-
},
|
|
112
|
+
}, rootAgentId?: string): Promise<readonly OwnerVisibleRequestRecord[]>;
|
|
59
113
|
ownerGetRequest(actor: VaultPrincipal & {
|
|
60
114
|
kind: "owner";
|
|
61
|
-
},
|
|
115
|
+
}, requestId: string): Promise<OwnerRequestRecord>;
|
|
62
116
|
ownerListSecrets(actor: VaultPrincipal & {
|
|
63
117
|
kind: "owner";
|
|
64
|
-
}, request?: {
|
|
65
|
-
requestId?: string;
|
|
66
118
|
}): Promise<readonly AgentVisibleSecretRecord[]>;
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
119
|
+
ownerIssueSessionToken(request: {
|
|
120
|
+
vaultId: VaultId;
|
|
121
|
+
actor: VaultPrincipal;
|
|
122
|
+
rootAgentId: string;
|
|
123
|
+
}): Promise<{
|
|
124
|
+
token: string;
|
|
125
|
+
rootAgentId: string;
|
|
126
|
+
issuedAt: string;
|
|
127
|
+
}>;
|
|
75
128
|
ownerIssueAllAgentSessionTokens(actor: VaultPrincipal & {
|
|
76
129
|
kind: "owner";
|
|
77
|
-
}): Promise<
|
|
130
|
+
}): Promise<{
|
|
131
|
+
token: string;
|
|
132
|
+
rootAgentId: string;
|
|
133
|
+
issuedAt: string;
|
|
134
|
+
}[]>;
|
|
78
135
|
ownerRevokeSessionToken(request: {
|
|
79
136
|
vaultId: VaultId;
|
|
80
|
-
actor: VaultPrincipal
|
|
81
|
-
kind: "owner";
|
|
82
|
-
};
|
|
137
|
+
actor: VaultPrincipal;
|
|
83
138
|
token: string;
|
|
84
139
|
}): Promise<void>;
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
140
|
+
ownerRegisterCustomFlow(command: {
|
|
141
|
+
vaultId: VaultId;
|
|
142
|
+
requestId: string;
|
|
143
|
+
owner: VaultPrincipal;
|
|
144
|
+
flow: any;
|
|
145
|
+
requestedAt: string;
|
|
146
|
+
}): Promise<void>;
|
|
147
|
+
_storeCustomFlowSecret(flow: CustomHttpFlowDefinition, alias: string, plaintext: string): Promise<void>;
|
|
148
|
+
private readonly _requestObservers;
|
|
149
|
+
ownerOnPendingDispatch(callback: (record: RequestRecord) => void): () => void;
|
|
150
|
+
ownerOnGrantState(callback: (record: any) => void): () => void;
|
|
151
|
+
private _recordRequestInternal;
|
|
152
|
+
private toAgentVisibleRequestRecord;
|
|
153
|
+
private toOwnerVisibleRequestRecord;
|
|
154
|
+
private toOwnerRequestRecord;
|
|
90
155
|
}
|
|
91
156
|
export declare function createVaultCore(deps: VaultCoreDependencies): VaultCore;
|