@the-ai-company/cbio-node-runtime 1.63.7 → 1.63.8

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.
Files changed (189) hide show
  1. package/README.md +2 -2
  2. package/dist/clients/agent/client.d.ts +2 -2
  3. package/dist/clients/agent/client.js +46 -49
  4. package/dist/clients/agent/client.js.map +1 -1
  5. package/dist/clients/agent/contracts.d.ts +5 -5
  6. package/dist/clients/owner/client.js +169 -176
  7. package/dist/clients/owner/client.js.map +1 -1
  8. package/dist/clients/owner/contracts.d.ts +45 -48
  9. package/dist/protocol/childSecretNaming.d.ts +1 -1
  10. package/dist/protocol/childSecretNaming.js +2 -2
  11. package/dist/protocol/childSecretNaming.js.map +1 -1
  12. package/dist/protocol/crypto.d.ts +4 -4
  13. package/dist/protocol/crypto.js +14 -14
  14. package/dist/protocol/crypto.js.map +1 -1
  15. package/dist/protocol/identity.d.ts +2 -2
  16. package/dist/protocol/identity.js +4 -4
  17. package/dist/protocol/identity.js.map +1 -1
  18. package/dist/public-types.d.ts +1 -1
  19. package/dist/public-types.js +1 -1
  20. package/dist/public-types.js.map +1 -1
  21. package/dist/runtime/bootstrap.d.ts +6 -6
  22. package/dist/runtime/bootstrap.js +26 -26
  23. package/dist/runtime/bootstrap.js.map +1 -1
  24. package/dist/runtime/identity.d.ts +6 -6
  25. package/dist/runtime/identity.js +14 -12
  26. package/dist/runtime/identity.js.map +1 -1
  27. package/dist/runtime/index.d.ts +1 -1
  28. package/dist/runtime/index.js +1 -1
  29. package/dist/runtime/index.js.map +1 -1
  30. package/dist/runtime/owner-session.d.ts +1 -5
  31. package/dist/runtime/owner-session.js +4 -5
  32. package/dist/runtime/owner-session.js.map +1 -1
  33. package/dist/runtime/vault-metadata.d.ts +2 -2
  34. package/dist/runtime/vault-metadata.js +2 -2
  35. package/dist/runtime/vault-metadata.js.map +1 -1
  36. package/dist/vault-core/contracts.d.ts +235 -238
  37. package/dist/vault-core/contracts.js +25 -34
  38. package/dist/vault-core/contracts.js.map +1 -1
  39. package/dist/vault-core/core.d.ts +41 -41
  40. package/dist/vault-core/core.js +257 -255
  41. package/dist/vault-core/core.js.map +1 -1
  42. package/dist/vault-core/defaults.d.ts +25 -25
  43. package/dist/vault-core/defaults.js +95 -95
  44. package/dist/vault-core/defaults.js.map +1 -1
  45. package/dist/vault-core/index.d.ts +2 -2
  46. package/dist/vault-core/index.js +2 -2
  47. package/dist/vault-core/index.js.map +1 -1
  48. package/dist/vault-core/persistence.d.ts +19 -19
  49. package/dist/vault-core/persistence.js +78 -67
  50. package/dist/vault-core/persistence.js.map +1 -1
  51. package/dist/vault-core/ports.d.ts +23 -23
  52. package/dist/vault-core/tool-metadata.js +6 -6
  53. package/dist/vault-core/tool-metadata.js.map +1 -1
  54. package/dist/vault-ingress/defaults.d.ts +2 -2
  55. package/dist/vault-ingress/defaults.js +10 -10
  56. package/dist/vault-ingress/defaults.js.map +1 -1
  57. package/dist/vault-ingress/index.d.ts +46 -46
  58. package/dist/vault-ingress/index.js +34 -34
  59. package/dist/vault-ingress/index.js.map +1 -1
  60. package/dist/vault-ingress/remote-transport.d.ts +2 -2
  61. package/dist/vault-ingress/remote-transport.js +27 -27
  62. package/dist/vault-ingress/remote-transport.js.map +1 -1
  63. package/docs/ARCHITECTURE.md +1 -1
  64. package/docs/CUSTODY_MODEL.md +3 -3
  65. package/docs/IDENTITY_MODEL.md +4 -4
  66. package/docs/REFERENCE.md +1 -1
  67. package/docs/api/README.md +3 -4
  68. package/docs/api/classes/IdentityError.md +1 -1
  69. package/docs/api/classes/OwnerClientError.md +1 -1
  70. package/docs/api/classes/PersistentVaultAgentIdentityRegistry.md +6 -6
  71. package/docs/api/classes/PersistentVaultAgentSecretGrantRegistry.md +12 -12
  72. package/docs/api/classes/PersistentVaultAuditLog.md +1 -1
  73. package/docs/api/classes/PersistentVaultSecretCustody.md +7 -7
  74. package/docs/api/classes/PersistentVaultSecretDestinationGrantRegistry.md +12 -12
  75. package/docs/api/classes/PersistentVaultSecretRepository.md +7 -7
  76. package/docs/api/classes/VaultCore.md +53 -53
  77. package/docs/api/classes/VaultCoreError.md +1 -1
  78. package/docs/api/enumerations/AuditOperation.md +137 -0
  79. package/docs/api/enumerations/DispatchStatus.md +1 -1
  80. package/docs/api/enumerations/IdentityErrorCode.md +1 -1
  81. package/docs/api/enumerations/OwnerClientErrorCode.md +1 -1
  82. package/docs/api/functions/createAgentClient.md +1 -1
  83. package/docs/api/functions/createIdentity.md +2 -2
  84. package/docs/api/functions/createOwnerClient.md +1 -1
  85. package/docs/api/functions/createOwnerSession.md +1 -1
  86. package/docs/api/functions/createPersistentVaultCoreDependencies.md +3 -3
  87. package/docs/api/functions/createVault.md +1 -1
  88. package/docs/api/functions/createVaultCore.md +1 -1
  89. package/docs/api/functions/createVaultCoreDependencies.md +1 -1
  90. package/docs/api/functions/createVaultService.md +1 -1
  91. package/docs/api/functions/createWorkspaceStorage.md +1 -1
  92. package/docs/api/functions/deriveRootAgentId.md +3 -3
  93. package/docs/api/functions/deriveVaultWorkingKeyFromPassword.md +4 -4
  94. package/docs/api/functions/getDefaultWorkspaceDir.md +1 -1
  95. package/docs/api/functions/handleVaultAgentControlHttp.md +1 -1
  96. package/docs/api/functions/handleVaultHttpDispatch.md +1 -1
  97. package/docs/api/functions/initializeVaultCustody.md +1 -1
  98. package/docs/api/functions/listVaults.md +1 -1
  99. package/docs/api/functions/readVaultProfile.md +3 -3
  100. package/docs/api/functions/recoverVault.md +4 -4
  101. package/docs/api/functions/recoverVaultWorkingKey.md +1 -1
  102. package/docs/api/functions/restoreIdentity.md +3 -3
  103. package/docs/api/functions/updateVaultMetadata.md +1 -1
  104. package/docs/api/functions/writeVaultProfile.md +3 -3
  105. package/docs/api/interfaces/AgentClient.md +3 -3
  106. package/docs/api/interfaces/AgentDispatchIntent.md +7 -7
  107. package/docs/api/interfaces/AgentDispatchTransport.md +1 -1
  108. package/docs/api/interfaces/AgentIdentity.md +3 -3
  109. package/docs/api/interfaces/AgentIdentityRecord.md +11 -11
  110. package/docs/api/interfaces/AgentRequestResult.md +9 -9
  111. package/docs/api/interfaces/AgentRuntimeManifest.md +13 -13
  112. package/docs/api/interfaces/AgentSecretGrant.md +11 -11
  113. package/docs/api/interfaces/AgentSigner.md +1 -1
  114. package/docs/api/interfaces/AgentVisibleRequestRecord.md +13 -13
  115. package/docs/api/interfaces/AgentVisibleSecretRecord.md +13 -13
  116. package/docs/api/interfaces/AuditEntry.md +45 -25
  117. package/docs/api/interfaces/CbioRuntime.md +10 -10
  118. package/docs/api/interfaces/CreateAgentClientOptions.md +1 -1
  119. package/docs/api/interfaces/CreateIdentityOptions.md +1 -1
  120. package/docs/api/interfaces/CreateOwnerClientOptions.md +3 -13
  121. package/docs/api/interfaces/CreateOwnerSessionOptions.md +4 -10
  122. package/docs/api/interfaces/CreatePersistentVaultCoreDependenciesOptions.md +3 -3
  123. package/docs/api/interfaces/CreateVaultOptions.md +2 -2
  124. package/docs/api/interfaces/CreatedVault.md +1 -1
  125. package/docs/api/interfaces/DefaultPolicyEngineOptions.md +9 -9
  126. package/docs/api/interfaces/DispatchAuthorization.md +11 -11
  127. package/docs/api/interfaces/DispatchInstruction.md +9 -9
  128. package/docs/api/interfaces/DispatchRequest.md +11 -11
  129. package/docs/api/interfaces/DispatchResult.md +11 -11
  130. package/docs/api/interfaces/IStorageProvider.md +1 -1
  131. package/docs/api/interfaces/InitializeVaultCustodyOptions.md +1 -1
  132. package/docs/api/interfaces/InitializedVaultCustody.md +1 -1
  133. package/docs/api/interfaces/OwnerAgentProvisionResult.md +3 -3
  134. package/docs/api/interfaces/OwnerClient.md +5 -5
  135. package/docs/api/interfaces/OwnerCreateSecretInput.md +3 -3
  136. package/docs/api/interfaces/OwnerRemoveSecretInput.md +3 -3
  137. package/docs/api/interfaces/OwnerRequestRecord.md +19 -19
  138. package/docs/api/interfaces/OwnerSensitiveActionConfirmation.md +1 -1
  139. package/docs/api/interfaces/OwnerSensitiveActionContext.md +1 -1
  140. package/docs/api/interfaces/OwnerSession.md +3 -3
  141. package/docs/api/interfaces/OwnerUpdateSecretInput.md +3 -3
  142. package/docs/api/interfaces/OwnerVisibleRequestRecord.md +21 -21
  143. package/docs/api/interfaces/RecoverVaultOptions.md +4 -4
  144. package/docs/api/interfaces/RecoveredVault.md +1 -1
  145. package/docs/api/interfaces/RequestRecord.md +19 -19
  146. package/docs/api/interfaces/RestoreIdentityOptions.md +1 -1
  147. package/docs/api/interfaces/SecretAlias.md +1 -1
  148. package/docs/api/interfaces/SecretDestinationGrant.md +11 -11
  149. package/docs/api/interfaces/SecretId.md +1 -1
  150. package/docs/api/interfaces/SecretRecord.md +13 -13
  151. package/docs/api/interfaces/Signer.md +1 -1
  152. package/docs/api/interfaces/VaultApproveDispatchInput.md +5 -5
  153. package/docs/api/interfaces/VaultAuditQueryInput.md +7 -7
  154. package/docs/api/interfaces/VaultCoreDependenciesOptions.md +5 -5
  155. package/docs/api/interfaces/VaultCreateAgentInput.md +3 -3
  156. package/docs/api/interfaces/VaultExportSecretInput.md +3 -3
  157. package/docs/api/interfaces/VaultGetRequestInput.md +5 -5
  158. package/docs/api/interfaces/VaultGrantAgentSecretInput.md +7 -7
  159. package/docs/api/interfaces/VaultGrantSecretDestinationInput.md +7 -7
  160. package/docs/api/interfaces/VaultId.md +1 -1
  161. package/docs/api/interfaces/VaultImportAgentInput.md +5 -5
  162. package/docs/api/interfaces/VaultIssueSessionTokenInput.md +5 -5
  163. package/docs/api/interfaces/VaultListAgentsInput.md +3 -3
  164. package/docs/api/interfaces/VaultListGrantsInput.md +7 -7
  165. package/docs/api/interfaces/VaultListRequestsInput.md +5 -5
  166. package/docs/api/interfaces/VaultListSecretsInput.md +3 -3
  167. package/docs/api/interfaces/VaultMetadata.md +1 -1
  168. package/docs/api/interfaces/VaultObject.md +1 -1
  169. package/docs/api/interfaces/VaultPrincipal.md +1 -1
  170. package/docs/api/interfaces/VaultProfile.md +1 -1
  171. package/docs/api/interfaces/VaultReadAgentPrivateKeyInput.md +5 -5
  172. package/docs/api/interfaces/VaultReadSecretPlaintextInput.md +3 -3
  173. package/docs/api/interfaces/VaultRevokeAgentSecretInput.md +7 -7
  174. package/docs/api/interfaces/VaultRevokeSecretDestinationInput.md +7 -7
  175. package/docs/api/interfaces/VaultRevokeSessionTokenInput.md +1 -1
  176. package/docs/api/interfaces/VaultService.md +8 -8
  177. package/docs/api/interfaces/VaultUpdateAgentInput.md +5 -5
  178. package/docs/api/type-aliases/AgentId.md +1 -1
  179. package/docs/api/type-aliases/CbioRuntimeModule.md +1 -1
  180. package/docs/api/type-aliases/DispatchApprovalDecision.md +1 -1
  181. package/docs/api/type-aliases/GrantStatus.md +1 -1
  182. package/docs/api/type-aliases/SecretLifecycleStatus.md +1 -1
  183. package/docs/api/type-aliases/VaultPrincipalKind.md +1 -1
  184. package/docs/api/variables/DEFAULT_VAULT_KEY_CUSTODY_BLOB_KEY.md +1 -1
  185. package/docs/zh/README.md +1 -1
  186. package/examples/process-isolation.ts +21 -21
  187. package/package.json +2 -2
  188. package/docs/api/enumerations/AuditAction.md +0 -143
  189. package/docs/api/enumerations/AuditOutcome.md +0 -35
@@ -6,38 +6,29 @@ export var DispatchStatus;
6
6
  DispatchStatus["PENDING"] = "PENDING";
7
7
  DispatchStatus["STALLED"] = "STALLED";
8
8
  })(DispatchStatus || (DispatchStatus = {}));
9
- export var AuditAction;
10
- (function (AuditAction) {
11
- AuditAction["REGISTER_AGENT_IDENTITY"] = "REGISTER_AGENT_IDENTITY";
12
- AuditAction["UPDATE_AGENT_IDENTITY"] = "UPDATE_AGENT_IDENTITY";
13
- AuditAction["GRANT_AGENT_SECRET"] = "GRANT_AGENT_SECRET";
14
- AuditAction["GRANT_SECRET_DESTINATION"] = "GRANT_SECRET_DESTINATION";
15
- AuditAction["REVOKE_AGENT_SECRET"] = "REVOKE_AGENT_SECRET";
16
- AuditAction["REVOKE_SECRET_DESTINATION"] = "REVOKE_SECRET_DESTINATION";
17
- AuditAction["WRITE_SECRET"] = "WRITE_SECRET";
18
- AuditAction["EXPORT_SECRET"] = "EXPORT_SECRET";
19
- AuditAction["REASSIGN_ALIAS"] = "REASSIGN_ALIAS";
20
- AuditAction["DELETE_SECRET"] = "DELETE_SECRET";
21
- AuditAction["EVALUATE_DISPATCH_POLICY"] = "EVALUATE_DISPATCH_POLICY";
22
- AuditAction["DISPATCH_SECRET"] = "DISPATCH_SECRET";
23
- AuditAction["LIST_AGENTS"] = "LIST_AGENTS";
24
- AuditAction["LIST_GRANTS"] = "LIST_GRANTS";
25
- AuditAction["LIST_REQUESTS"] = "LIST_REQUESTS";
26
- AuditAction["READ_REQUEST"] = "READ_REQUEST";
27
- AuditAction["READ_AUDIT"] = "READ_AUDIT";
28
- AuditAction["LIST_SECRETS"] = "LIST_SECRETS";
29
- AuditAction["ISSUE_SESSION_TOKEN"] = "ISSUE_SESSION_TOKEN";
30
- AuditAction["REVOKE_SESSION_TOKEN"] = "REVOKE_SESSION_TOKEN";
31
- AuditAction["APPROVE_DISPATCH"] = "APPROVE_DISPATCH";
32
- AuditAction["REJECT_DISPATCH"] = "REJECT_DISPATCH";
33
- AuditAction["PENDING_DISPATCH_APPROVAL"] = "PENDING_DISPATCH_APPROVAL";
34
- })(AuditAction || (AuditAction = {}));
35
- export var AuditOutcome;
36
- (function (AuditOutcome) {
37
- AuditOutcome["ALLOWED"] = "ALLOWED";
38
- AuditOutcome["DENIED"] = "DENIED";
39
- AuditOutcome["SUCCEEDED"] = "SUCCEEDED";
40
- AuditOutcome["FAILED"] = "FAILED";
41
- AuditOutcome["PENDING"] = "PENDING";
42
- })(AuditOutcome || (AuditOutcome = {}));
9
+ export var AuditOperation;
10
+ (function (AuditOperation) {
11
+ AuditOperation["IDENTITY_REGISTER"] = "identity.register";
12
+ AuditOperation["IDENTITY_UPDATE"] = "identity.update";
13
+ AuditOperation["IDENTITY_ISSUE_TOKEN"] = "identity.issue_token";
14
+ AuditOperation["IDENTITY_REVOKE_TOKEN"] = "identity.revoke_token";
15
+ AuditOperation["GRANT_SECRET"] = "grant.grant_secret";
16
+ AuditOperation["GRANT_DESTINATION"] = "grant.grant_destination";
17
+ AuditOperation["REVOKE_SECRET"] = "grant.revoke_secret";
18
+ AuditOperation["REVOKE_DESTINATION"] = "grant.revoke_destination";
19
+ AuditOperation["SECRET_WRITE"] = "secret.write";
20
+ AuditOperation["SECRET_EXPORT"] = "secret.export";
21
+ AuditOperation["SECRET_DELETE"] = "secret.delete";
22
+ AuditOperation["POLICY_EVALUATE"] = "policy.evaluate_dispatch";
23
+ AuditOperation["SECRET_DISPATCH"] = "secret.dispatch";
24
+ AuditOperation["DISPATCH_APPROVE"] = "dispatch.approve";
25
+ AuditOperation["DISPATCH_REJECT"] = "dispatch.reject";
26
+ AuditOperation["DISPATCH_HOLD"] = "dispatch.pending_approval";
27
+ AuditOperation["MANAGEMENT_LIST_AGENTS"] = "management.list_agents";
28
+ AuditOperation["MANAGEMENT_LIST_GRANTS"] = "management.list_grants";
29
+ AuditOperation["MANAGEMENT_LIST_REQUESTS"] = "management.list_requests";
30
+ AuditOperation["MANAGEMENT_READ_REQUEST"] = "management.read_request";
31
+ AuditOperation["MANAGEMENT_READ_AUDIT"] = "management.read_audit";
32
+ AuditOperation["MANAGEMENT_LIST_SECRETS"] = "management.list_secrets";
33
+ })(AuditOperation || (AuditOperation = {}));
43
34
  //# sourceMappingURL=contracts.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"contracts.js","sourceRoot":"","sources":["../../src/vault-core/contracts.ts"],"names":[],"mappings":"AA+aA,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,WAyBX;AAzBD,WAAY,WAAW;IACrB,kEAAmD,CAAA;IACnD,8DAA+C,CAAA;IAE/C,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,oEAAqD,CAAA;IACrD,kDAAmC,CAAA;IACnC,0CAA2B,CAAA;IAC3B,0CAA2B,CAAA;IAC3B,8CAA+B,CAAA;IAC/B,4CAA6B,CAAA;IAC7B,wCAAyB,CAAA;IACzB,4CAA6B,CAAA;IAC7B,0DAA2C,CAAA;IAC3C,4DAA6C,CAAA;IAC7C,oDAAqC,CAAA;IACrC,kDAAmC,CAAA;IACnC,sEAAuD,CAAA;AACzD,CAAC,EAzBW,WAAW,KAAX,WAAW,QAyBtB;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
+ {"version":3,"file":"contracts.js","sourceRoot":"","sources":["../../src/vault-core/contracts.ts"],"names":[],"mappings":"AA+aA,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,cA4BX;AA5BD,WAAY,cAAc;IACxB,yDAAuC,CAAA;IACvC,qDAAmC,CAAA;IACnC,+DAA6C,CAAA;IAC7C,iEAA+C,CAAA;IAE/C,qDAAmC,CAAA;IACnC,+DAA6C,CAAA;IAC7C,uDAAqC,CAAA;IACrC,iEAA+C,CAAA;IAE/C,+CAA6B,CAAA;IAC7B,iDAA+B,CAAA;IAC/B,iDAA+B,CAAA;IAE/B,8DAA4C,CAAA;IAC5C,qDAAmC,CAAA;IAEnC,uDAAqC,CAAA;IACrC,qDAAmC,CAAA;IACnC,6DAA2C,CAAA;IAE3C,mEAAiD,CAAA;IACjD,mEAAiD,CAAA;IACjD,uEAAqD,CAAA;IACrD,qEAAmD,CAAA;IACnD,iEAA+C,CAAA;IAC/C,qEAAmD,CAAA;AACrD,CAAC,EA5BW,cAAc,KAAd,cAAc,QA4BzB"}
@@ -3,99 +3,99 @@ import type { VaultCoreDependencies } from "./ports.js";
3
3
  export declare class VaultCore {
4
4
  private readonly _deps;
5
5
  constructor(deps: VaultCoreDependencies);
6
- get vaultId(): VaultId;
6
+ get vault_id(): VaultId;
7
7
  private _assertOwnerPrincipal;
8
8
  private _appendAudit;
9
9
  private _verifyAgentControlProof;
10
10
  ownerGrantAgentSecret(actor: VaultPrincipal & {
11
11
  kind: "owner";
12
- }, rootAgentId: string, secretAlias: string, request?: {
13
- requestId?: string;
12
+ }, root_agent_id: string, secret_alias: string, request?: {
13
+ request_id?: string;
14
14
  }): Promise<AgentSecretGrant>;
15
15
  ownerGrantSecretDestination(actor: VaultPrincipal & {
16
16
  kind: "owner";
17
- }, secretAlias: string, siteId: string, request?: {
18
- requestId?: string;
17
+ }, secret_alias: string, site_id: string, request?: {
18
+ request_id?: string;
19
19
  }): Promise<SecretDestinationGrant>;
20
20
  ownerRevokeAgentSecret(actor: VaultPrincipal & {
21
21
  kind: "owner";
22
- }, rootAgentId: string, secretAlias: string, request?: {
23
- requestId?: string;
22
+ }, root_agent_id: string, secret_alias: string, request?: {
23
+ request_id?: string;
24
24
  }): Promise<void>;
25
25
  ownerRevokeSecretDestination(actor: VaultPrincipal & {
26
26
  kind: "owner";
27
- }, secretAlias: string, siteId: string, request?: {
28
- requestId?: string;
27
+ }, secret_alias: string, site_id: string, request?: {
28
+ request_id?: string;
29
29
  }): Promise<void>;
30
30
  ownerListGrants(actor: VaultPrincipal & {
31
31
  kind: "owner";
32
- }, rootAgentId?: string, secretAlias?: string): Promise<{
33
- agentSecrets: readonly AgentSecretGrant[];
34
- secretDestinations: readonly SecretDestinationGrant[];
32
+ }, root_agent_id?: string, secret_alias?: string): Promise<{
33
+ agent_secrets: readonly AgentSecretGrant[];
34
+ secret_destinations: readonly SecretDestinationGrant[];
35
35
  }>;
36
36
  agentAuthorizeDispatch(request: DispatchRequest): Promise<DispatchAuthorization>;
37
37
  agentDispatchSecret(request: DispatchRequest): Promise<DispatchResult>;
38
38
  ownerApproveDispatch(actor: VaultPrincipal & {
39
39
  kind: "owner";
40
- }, requestId: string, decision: DispatchApprovalDecision): Promise<DispatchResult | null>;
40
+ }, request_id: string, decision: DispatchApprovalDecision): Promise<DispatchResult | null>;
41
41
  agentGetRuntimeManifest(command: {
42
42
  agent: VaultPrincipal & {
43
43
  kind: "agent";
44
44
  };
45
45
  proof: any;
46
- requestId: string;
47
- requestedAt: string;
46
+ request_id: string;
47
+ requested_at: string;
48
48
  }): Promise<AgentRuntimeManifest>;
49
49
  agentListSecrets(command: {
50
50
  agent: VaultPrincipal & {
51
51
  kind: "agent";
52
52
  };
53
53
  proof: any;
54
- requestId: string;
55
- requestedAt: string;
54
+ request_id: string;
55
+ requested_at: string;
56
56
  }): Promise<readonly AgentVisibleSecretRecord[]>;
57
57
  agentListRequests(command: {
58
58
  agent: VaultPrincipal & {
59
59
  kind: "agent";
60
60
  };
61
61
  proof: any;
62
- requestId: string;
63
- requestedAt: string;
62
+ request_id: string;
63
+ requested_at: string;
64
64
  }): Promise<readonly AgentVisibleRequestRecord[]>;
65
65
  agentGetRequest(command: {
66
66
  agent: VaultPrincipal & {
67
67
  kind: "agent";
68
68
  };
69
69
  proof: any;
70
- requestId: string;
71
- requestedAt: string;
72
- targetRequestId: string;
70
+ request_id: string;
71
+ requested_at: string;
72
+ target_request_id: string;
73
73
  }): Promise<any>;
74
74
  ownerRegisterAgentIdentity(command: {
75
- vaultId: VaultId;
76
- requestId: string;
75
+ vault_id: VaultId;
76
+ request_id: string;
77
77
  owner: VaultPrincipal;
78
78
  agentRecord: AgentIdentityRecord;
79
- requestedAt: string;
79
+ requested_at: string;
80
80
  }): Promise<void>;
81
81
  ownerUpdateAgentIdentity(command: {
82
- vaultId: VaultId;
83
- requestId: string;
82
+ vault_id: VaultId;
83
+ request_id: string;
84
84
  owner: VaultPrincipal;
85
- rootAgentId: string;
85
+ root_agent_id: string;
86
86
  nickname?: string;
87
87
  metadata?: Record<string, any>;
88
- requestedAt: string;
88
+ requested_at: string;
89
89
  }): Promise<AgentIdentityRecord>;
90
90
  ownerCreateSecret(command: OwnerCreateSecretCommand): Promise<SecretRecord>;
91
91
  ownerUpdateSecret(command: OwnerUpdateSecretCommand): Promise<SecretRecord>;
92
92
  ownerRemoveSecret(command: {
93
93
  kind: "owner.remove_secret";
94
- vaultId: VaultId;
95
- requestId: string;
94
+ vault_id: VaultId;
95
+ request_id: string;
96
96
  owner: VaultPrincipal;
97
97
  alias: string;
98
- requestedAt: string;
98
+ requested_at: string;
99
99
  }): Promise<void>;
100
100
  ownerWriteSecret(command: any): Promise<SecretRecord>;
101
101
  ownerReadAudit(actor: VaultPrincipal & {
@@ -109,31 +109,31 @@ export declare class VaultCore {
109
109
  }): Promise<readonly AgentIdentityRecord[]>;
110
110
  ownerListRequests(actor: VaultPrincipal & {
111
111
  kind: "owner";
112
- }, rootAgentId?: string): Promise<readonly OwnerVisibleRequestRecord[]>;
112
+ }, root_agent_id?: string): Promise<readonly OwnerVisibleRequestRecord[]>;
113
113
  ownerGetRequest(actor: VaultPrincipal & {
114
114
  kind: "owner";
115
- }, requestId: string): Promise<OwnerRequestRecord>;
115
+ }, request_id: string): Promise<OwnerRequestRecord>;
116
116
  ownerListSecrets(actor: VaultPrincipal & {
117
117
  kind: "owner";
118
118
  }): Promise<readonly AgentVisibleSecretRecord[]>;
119
119
  ownerIssueSessionToken(request: {
120
- vaultId: VaultId;
120
+ vault_id: VaultId;
121
121
  actor: VaultPrincipal;
122
- rootAgentId: string;
122
+ root_agent_id: string;
123
123
  }): Promise<{
124
124
  token: string;
125
- rootAgentId: string;
126
- issuedAt: string;
125
+ root_agent_id: string;
126
+ issued_at: string;
127
127
  }>;
128
128
  ownerIssueAllAgentSessionTokens(actor: VaultPrincipal & {
129
129
  kind: "owner";
130
130
  }): Promise<{
131
131
  token: string;
132
- rootAgentId: string;
133
- issuedAt: string;
132
+ root_agent_id: string;
133
+ issued_at: string;
134
134
  }[]>;
135
135
  ownerRevokeSessionToken(request: {
136
- vaultId: VaultId;
136
+ vault_id: VaultId;
137
137
  actor: VaultPrincipal;
138
138
  token: string;
139
139
  }): Promise<void>;