@the-ai-company/cbio-node-runtime 1.63.3 → 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.
Files changed (234) hide show
  1. package/README.md +48 -209
  2. package/dist/clients/agent/client.d.ts +18 -40
  3. package/dist/clients/agent/client.js +22 -109
  4. package/dist/clients/agent/client.js.map +1 -1
  5. package/dist/clients/agent/contracts.d.ts +1 -8
  6. package/dist/clients/agent/index.d.ts +1 -1
  7. package/dist/clients/owner/client.d.ts +2 -102
  8. package/dist/clients/owner/client.js +119 -240
  9. package/dist/clients/owner/client.js.map +1 -1
  10. package/dist/clients/owner/contracts.d.ts +37 -70
  11. package/dist/clients/owner/index.d.ts +2 -4
  12. package/dist/clients/owner/index.js +1 -2
  13. package/dist/clients/owner/index.js.map +1 -1
  14. package/dist/internal/id-factory.d.ts +0 -2
  15. package/dist/internal/id-factory.js +0 -6
  16. package/dist/internal/id-factory.js.map +1 -1
  17. package/dist/protocol/identity.d.ts +1 -1
  18. package/dist/protocol/identity.js +3 -3
  19. package/dist/protocol/identity.js.map +1 -1
  20. package/dist/public-types.d.ts +5 -14
  21. package/dist/public-types.js +1 -8
  22. package/dist/public-types.js.map +1 -1
  23. package/dist/runtime/bootstrap.js.map +1 -1
  24. package/dist/runtime/identity.d.ts +2 -2
  25. package/dist/runtime/identity.js +3 -5
  26. package/dist/runtime/identity.js.map +1 -1
  27. package/dist/runtime/index.d.ts +10 -12
  28. package/dist/runtime/index.js +7 -8
  29. package/dist/runtime/index.js.map +1 -1
  30. package/dist/runtime/owner-session.d.ts +7 -6
  31. package/dist/runtime/owner-session.js +5 -6
  32. package/dist/runtime/owner-session.js.map +1 -1
  33. package/dist/storage/fs.d.ts +3 -2
  34. package/dist/storage/fs.js +8 -5
  35. package/dist/storage/fs.js.map +1 -1
  36. package/dist/storage/prefix.d.ts +1 -0
  37. package/dist/storage/prefix.js +7 -0
  38. package/dist/storage/prefix.js.map +1 -1
  39. package/dist/storage/provider.d.ts +2 -0
  40. package/dist/vault-core/contracts.d.ts +112 -193
  41. package/dist/vault-core/contracts.js +5 -8
  42. package/dist/vault-core/contracts.js.map +1 -1
  43. package/dist/vault-core/core.d.ts +127 -62
  44. package/dist/vault-core/core.js +500 -1182
  45. package/dist/vault-core/core.js.map +1 -1
  46. package/dist/vault-core/defaults.d.ts +26 -42
  47. package/dist/vault-core/defaults.js +73 -229
  48. package/dist/vault-core/defaults.js.map +1 -1
  49. package/dist/vault-core/errors.d.ts +3 -2
  50. package/dist/vault-core/errors.js.map +1 -1
  51. package/dist/vault-core/index.d.ts +5 -5
  52. package/dist/vault-core/index.js +2 -2
  53. package/dist/vault-core/index.js.map +1 -1
  54. package/dist/vault-core/persistence.d.ts +78 -118
  55. package/dist/vault-core/persistence.js +329 -421
  56. package/dist/vault-core/persistence.js.map +1 -1
  57. package/dist/vault-core/ports.d.ts +19 -24
  58. package/dist/vault-core/read-policy.d.ts +3 -2
  59. package/dist/vault-core/read-policy.js.map +1 -1
  60. package/dist/vault-core/tool-metadata.js +2 -2
  61. package/dist/vault-core/tool-metadata.js.map +1 -1
  62. package/dist/vault-ingress/defaults.d.ts +4 -2
  63. package/dist/vault-ingress/defaults.js +14 -8
  64. package/dist/vault-ingress/defaults.js.map +1 -1
  65. package/dist/vault-ingress/index.d.ts +43 -117
  66. package/dist/vault-ingress/index.js +98 -453
  67. package/dist/vault-ingress/index.js.map +1 -1
  68. package/dist/vault-ingress/remote-transport.d.ts +5 -3
  69. package/dist/vault-ingress/remote-transport.js +8 -28
  70. package/dist/vault-ingress/remote-transport.js.map +1 -1
  71. package/docs/ARCHITECTURE.md +39 -22
  72. package/docs/CUSTODY_MODEL.md +1 -1
  73. package/docs/IDENTITY_MODEL.md +5 -5
  74. package/docs/MIGRATION-1.51.md +19 -19
  75. package/docs/MIGRATION-1.65.md +61 -0
  76. package/docs/PROCESS_ISOLATION.md +2 -2
  77. package/docs/REFERENCE.md +42 -224
  78. package/docs/api/README.md +50 -29
  79. package/docs/api/classes/IdentityError.md +1 -1
  80. package/docs/api/classes/OwnerClientError.md +1 -1
  81. package/docs/api/classes/PersistentVaultAgentIdentityRegistry.md +89 -0
  82. package/docs/api/classes/PersistentVaultAgentSecretGrantRegistry.md +125 -0
  83. package/docs/api/classes/PersistentVaultAuditLog.md +65 -0
  84. package/docs/api/classes/PersistentVaultCustomHttpFlowRegistry.md +69 -0
  85. package/docs/api/classes/PersistentVaultSecretCustody.md +93 -0
  86. package/docs/api/classes/PersistentVaultSecretDestinationGrantRegistry.md +125 -0
  87. package/docs/api/classes/PersistentVaultSecretRepository.md +127 -0
  88. package/docs/api/classes/VaultCore.md +299 -214
  89. package/docs/api/classes/VaultCoreError.md +3 -3
  90. package/docs/api/enumerations/AuditAction.md +143 -0
  91. package/docs/api/enumerations/AuditOutcome.md +35 -0
  92. package/docs/api/enumerations/DispatchStatus.md +35 -0
  93. package/docs/api/enumerations/IdentityErrorCode.md +1 -1
  94. package/docs/api/enumerations/OwnerClientErrorCode.md +1 -1
  95. package/docs/api/functions/createAgentClient.md +1 -15
  96. package/docs/api/functions/createIdentity.md +2 -2
  97. package/docs/api/functions/createOwnerClient.md +17 -0
  98. package/docs/api/functions/createOwnerSession.md +1 -1
  99. package/docs/api/functions/createPersistentVaultCoreDependencies.md +4 -4
  100. package/docs/api/functions/createVault.md +1 -1
  101. package/docs/api/functions/createVaultCore.md +1 -1
  102. package/docs/api/functions/createVaultCoreDependencies.md +1 -1
  103. package/docs/api/functions/createVaultService.md +5 -9
  104. package/docs/api/functions/createWorkspaceStorage.md +1 -1
  105. package/docs/api/functions/deriveRootAgentId.md +17 -0
  106. package/docs/api/functions/deriveVaultWorkingKeyFromPassword.md +1 -1
  107. package/docs/api/functions/getDefaultWorkspaceDir.md +1 -1
  108. package/docs/api/functions/handleVaultAgentControlHttp.md +2 -2
  109. package/docs/api/functions/handleVaultHttpDispatch.md +2 -2
  110. package/docs/api/functions/initializeVaultCustody.md +7 -3
  111. package/docs/api/functions/listVaults.md +1 -1
  112. package/docs/api/functions/readVaultProfile.md +1 -1
  113. package/docs/api/functions/recoverVault.md +1 -1
  114. package/docs/api/functions/recoverVaultWorkingKey.md +4 -8
  115. package/docs/api/functions/restoreIdentity.md +1 -1
  116. package/docs/api/functions/updateVaultMetadata.md +1 -1
  117. package/docs/api/functions/writeVaultProfile.md +1 -1
  118. package/docs/api/interfaces/AgentClient.md +20 -59
  119. package/docs/api/interfaces/AgentDispatchIntent.md +1 -1
  120. package/docs/api/interfaces/AgentDispatchTransport.md +12 -44
  121. package/docs/api/interfaces/AgentIdentity.md +3 -3
  122. package/docs/api/interfaces/AgentIdentityRecord.md +47 -0
  123. package/docs/api/interfaces/AgentRequestResult.md +35 -0
  124. package/docs/api/interfaces/AgentRuntimeManifest.md +55 -0
  125. package/docs/api/interfaces/AgentSecretGrant.md +41 -0
  126. package/docs/api/interfaces/AgentSigner.md +1 -1
  127. package/docs/api/interfaces/AgentVisibleRequestRecord.md +53 -0
  128. package/docs/api/interfaces/AgentVisibleSecretRecord.md +65 -0
  129. package/docs/api/interfaces/AuditEntry.md +83 -0
  130. package/docs/api/interfaces/CbioRuntime.md +13 -150
  131. package/docs/api/interfaces/CreateAgentClientOptions.md +4 -10
  132. package/docs/api/interfaces/CreateIdentityOptions.md +1 -1
  133. package/docs/api/interfaces/{CreateVaultClientOptions.md → CreateOwnerClientOptions.md} +9 -11
  134. package/docs/api/interfaces/CreateOwnerSessionOptions.md +3 -117
  135. package/docs/api/interfaces/CreatePersistentVaultCoreDependenciesOptions.md +3 -131
  136. package/docs/api/interfaces/CreateVaultOptions.md +1 -121
  137. package/docs/api/interfaces/CreatedVault.md +2 -2
  138. package/docs/api/interfaces/CustomHttpFlowDefinition.md +71 -0
  139. package/docs/api/interfaces/DefaultPolicyEngineOptions.md +1 -13
  140. package/docs/api/interfaces/DispatchAuthorization.md +43 -0
  141. package/docs/api/interfaces/DispatchInstruction.md +47 -0
  142. package/docs/api/interfaces/DispatchRequest.md +83 -0
  143. package/docs/api/interfaces/DispatchResult.md +53 -0
  144. package/docs/api/interfaces/IStorageProvider.md +13 -1
  145. package/docs/api/interfaces/InitializeVaultCustodyOptions.md +31 -11
  146. package/docs/api/interfaces/InitializedVaultCustody.md +1 -7
  147. package/docs/api/interfaces/OwnerAgentProvisionResult.md +2 -2
  148. package/docs/api/interfaces/OwnerClient.md +417 -0
  149. package/docs/api/interfaces/OwnerCreateSecretInput.md +1 -1
  150. package/docs/api/interfaces/OwnerRemoveSecretInput.md +1 -1
  151. package/docs/api/interfaces/OwnerRequestRecord.md +97 -0
  152. package/docs/api/interfaces/OwnerSensitiveActionConfirmation.md +1 -1
  153. package/docs/api/interfaces/OwnerSensitiveActionContext.md +1 -1
  154. package/docs/api/interfaces/OwnerSession.md +3 -3
  155. package/docs/api/interfaces/OwnerUpdateSecretInput.md +1 -1
  156. package/docs/api/interfaces/OwnerVisibleRequestRecord.md +73 -0
  157. package/docs/api/interfaces/RecoverVaultOptions.md +1 -121
  158. package/docs/api/interfaces/RecoveredVault.md +2 -2
  159. package/docs/api/interfaces/RequestRecord.md +107 -0
  160. package/docs/api/interfaces/RestoreIdentityOptions.md +1 -1
  161. package/docs/api/interfaces/SecretAlias.md +11 -0
  162. package/docs/api/interfaces/SecretDestinationGrant.md +41 -0
  163. package/docs/api/interfaces/SecretId.md +11 -0
  164. package/docs/api/interfaces/SecretRecord.md +89 -0
  165. package/docs/api/interfaces/Signer.md +1 -1
  166. package/docs/api/interfaces/VaultApproveDispatchInput.md +3 -9
  167. package/docs/api/interfaces/VaultAuditQueryInput.md +1 -1
  168. package/docs/api/interfaces/VaultCoreDependenciesOptions.md +1 -5
  169. package/docs/api/interfaces/VaultCreateAgentInput.md +1 -1
  170. package/docs/api/interfaces/VaultExportSecretInput.md +1 -1
  171. package/docs/api/interfaces/VaultGetRequestInput.md +17 -0
  172. package/docs/api/interfaces/VaultGrantAgentSecretInput.md +23 -0
  173. package/docs/api/interfaces/VaultGrantSecretDestinationInput.md +23 -0
  174. package/docs/api/interfaces/VaultId.md +11 -0
  175. package/docs/api/interfaces/VaultImportAgentInput.md +1 -1
  176. package/docs/api/interfaces/VaultIssueSessionTokenInput.md +5 -5
  177. package/docs/api/interfaces/VaultListAgentsInput.md +1 -1
  178. package/docs/api/interfaces/VaultListGrantsInput.md +23 -0
  179. package/docs/api/interfaces/VaultListRequestsInput.md +17 -0
  180. package/docs/api/interfaces/VaultListSecretsInput.md +1 -1
  181. package/docs/api/interfaces/VaultMetadata.md +1 -1
  182. package/docs/api/interfaces/VaultObject.md +2 -2
  183. package/docs/api/interfaces/VaultPrincipal.md +17 -0
  184. package/docs/api/interfaces/VaultProfile.md +1 -1
  185. package/docs/api/interfaces/VaultReadAgentPrivateKeyInput.md +7 -7
  186. package/docs/api/interfaces/VaultReadSecretPlaintextInput.md +1 -1
  187. package/docs/api/interfaces/VaultRegisterFlowInput.md +1 -1
  188. package/docs/api/interfaces/VaultRevokeAgentSecretInput.md +23 -0
  189. package/docs/api/interfaces/VaultRevokeSecretDestinationInput.md +23 -0
  190. package/docs/api/interfaces/VaultRevokeSessionTokenInput.md +1 -1
  191. package/docs/api/interfaces/VaultService.md +547 -0
  192. package/docs/api/interfaces/VaultUpdateAgentInput.md +7 -7
  193. package/docs/api/type-aliases/AgentId.md +7 -0
  194. package/docs/api/type-aliases/CbioRuntimeModule.md +1 -1
  195. package/docs/api/type-aliases/DispatchApprovalDecision.md +7 -0
  196. package/docs/api/type-aliases/GrantStatus.md +7 -0
  197. package/docs/api/type-aliases/SecretLifecycleStatus.md +7 -0
  198. package/docs/api/type-aliases/VaultPrincipalKind.md +7 -0
  199. package/docs/api/variables/DEFAULT_VAULT_KEY_CUSTODY_BLOB_KEY.md +2 -2
  200. package/docs/es/README.md +3 -3
  201. package/docs/fr/README.md +3 -3
  202. package/docs/ja/README.md +5 -5
  203. package/docs/ko/README.md +5 -5
  204. package/docs/pt/README.md +3 -3
  205. package/docs/zh/PROCESS_ISOLATION.md +2 -2
  206. package/docs/zh/README.md +23 -24
  207. package/examples/process-isolation.ts +26 -35
  208. package/package.json +1 -1
  209. package/docs/api/functions/createOwnerHttpFlowBoundary.md +0 -17
  210. package/docs/api/functions/createStandardAcquireBoundary.md +0 -31
  211. package/docs/api/functions/createStandardDispatchBoundary.md +0 -23
  212. package/docs/api/functions/createVaultClient.md +0 -32
  213. package/docs/api/functions/deriveIdentityId.md +0 -17
  214. package/docs/api/functions/wrapVaultCoreAsVaultService.md +0 -31
  215. package/docs/api/interfaces/AgentSubmitCapabilityRequestInput.md +0 -41
  216. package/docs/api/interfaces/VaultApproveCapabilityRequestInput.md +0 -23
  217. package/docs/api/interfaces/VaultClient.md +0 -473
  218. package/docs/api/interfaces/VaultGrantCapabilityInput.md +0 -79
  219. package/docs/api/interfaces/VaultGrantCapabilityRequest.md +0 -23
  220. package/docs/api/interfaces/VaultIdentity.md +0 -11
  221. package/docs/api/interfaces/VaultListCapabilitiesInput.md +0 -17
  222. package/docs/api/interfaces/VaultRevokeCapabilityInput.md +0 -23
  223. package/docs/api/interfaces/VaultSigner.md +0 -21
  224. package/docs/api/interfaces/VaultSubmitCapabilityRequestInput.md +0 -73
  225. package/docs/api/type-aliases/AgentCapabilityEnvelope.md +0 -7
  226. package/docs/api/type-aliases/AgentVisibleSecretRecord.md +0 -7
  227. package/docs/api/type-aliases/CreateOwnerClientOptions.md +0 -7
  228. package/docs/api/type-aliases/OwnerAgentView.md +0 -7
  229. package/docs/api/type-aliases/OwnerClient.md +0 -13
  230. package/docs/api/type-aliases/OwnerGrantCapabilityInput.md +0 -7
  231. package/docs/api/type-aliases/OwnerPendingApprovalView.md +0 -7
  232. package/docs/api/type-aliases/OwnerRequestDetailView.md +0 -7
  233. package/docs/api/type-aliases/OwnerRequestSummaryView.md +0 -7
  234. package/docs/api/type-aliases/OwnerSecretView.md +0 -7
package/docs/REFERENCE.md CHANGED
@@ -1,237 +1,55 @@
1
- # CBIO Vault Runtime Reference (v1.48.4)
1
+ # CBIO Vault Runtime Reference (v1.65.1)
2
2
 
3
3
  This document describes the current implemented runtime surface for the **Sovereign Vault**.
4
4
 
5
5
  ## Primary API Surface
6
6
 
7
- The v1.48.4 runtime centers on a simplified, authority-centric model with managed agency and session tokens, featuring a **Discovery-first** HITL workflow and real-time observers.
7
+ The v1.65.1 runtime centers on a streamlined **Grant-based** authorization model, providing a "Zero-Configuration" workflow for agents.
8
8
 
9
9
  ### Main Constructors and Entrypoints
10
10
 
11
11
  - `createVault(...)` - Initialize a new vault using a master password.
12
12
  - `recoverVault(...)` - Reopen an existing vault using its master password.
13
- - `listVaults(...)` - Scan the workspace for available vault IDs.
14
- - `updateVaultMetadata(...)` - Update the nickname or other metadata of an unlocked vault.
15
- - `createOwnerSession(...)` - Create an SDK-managed owner session handle for long-running apps such as GUIs.
16
- - `createVaultClient(...)` - Create an administrative client for the current runtime. Best for short-lived scripts or one-shot tasks.
17
- - `createAgentClient(...)` - Create a delegated client for an agent.
18
- - `createIdentity(...)` - Generate a standalone cryptographic identity keypair.
19
- - `restoreIdentity(...)` - Restore an identity from a private key.
20
-
21
- ### Recommended Type Imports
22
-
23
- For downstream application code, import public runtime types from the package root:
24
-
25
- - `@the-ai-company/cbio-node-runtime`
26
-
27
- Recommended stable names:
28
-
29
- - `OwnerClient`
30
- - `CreateOwnerClientOptions`
31
- - `AgentClient`
32
- - `CreateAgentClientOptions`
33
- - `OwnerAgentView`
34
- - `OwnerSecretView`
35
- - `OwnerPendingApprovalView`
36
- - `OwnerRequestSummaryView`
37
- - `OwnerRequestDetailView`
38
-
39
- Legacy protocol-oriented names such as `VaultClient`, `CapabilityStateRecord`, and `OwnerRequestRecord`
40
- remain supported, but application code is encouraged to prefer the public aliases above when defining its
41
- own service and UI boundaries.
42
-
43
- ### Vault Lifecycle
44
-
45
- #### `createVault(storage, { password, nickname, metadata })`
46
- Creates a secure vault.
47
- - **Authority**: Rooted in the `password`.
48
- - **Storage**: All data is encrypted using a key derived from the password via `scrypt`.
49
- - **Vault ID**: Generated internally by the runtime.
50
-
51
- #### `recoverVault(storage, { vaultId, password })`
52
- Unlocks and reopens a vault.
53
- - Returns a `RecoveredVault` object containing the `VaultService` and metadata.
54
-
55
- #### `createOwnerSession(storage, { vaultId, password, ... })`
56
- Creates a first-class owner session for GUI and other long-running processes.
57
- - Hold the `OwnerSession`, not a raw `VaultClient`.
58
- - Call `session.client()` or `session.withClient(...)` when you need an owner client.
59
- - Invalidate the session explicitly when the vault is locked or the app unloads.
60
-
61
- ### Owner Session Lifecycle
62
-
63
- - `createVaultClient(...)` is not a long-lived session handle.
64
- - Do not cache a raw `VaultClient` across HMR, module reloads, runtime swaps, or similar process-local lifecycle changes.
65
- - For long-running apps, keep an `OwnerSession` and let the SDK recreate owner clients on demand.
66
- - For short-lived scripts, `recoverVault(...)` plus `createVaultClient(...)` remains appropriate.
67
-
68
- #### `listVaults(storage)`
69
- Returns a `string[]` of vault IDs found in the storage.
70
- - **Privacy**: No metadata (like nicknames) is leaked during listing. You must recover a vault to see its details.
71
-
72
- ## Identity Models
73
-
74
- ### 1. Managed Identity (Recommended)
75
- Identity material (private keys) generated and stored securely within the vault's own registry.
76
- - Use `client.ownerCreateAgent(...)` to manage these.
77
- - **Session Tokens**: Owners can issue revocable `sat_...` tokens for managed agents to enable stateless authentication without raw private keys.
78
-
79
- ### 2. External Identity
80
- Identity material already managed elsewhere can be imported into vault custody via `client.ownerImportAgent({ privateKey, ... })`.
81
-
82
- ## Vault Client (Owner/Admin)
83
-
84
- The `VaultClient` provides the administrative interface for the vault.
85
-
86
- ### Stable Owner API Checklist
87
-
88
- The following owner-side methods are part of the supported public surface and are intended to be called through an owner session or a short-lived owner client:
89
-
90
- - `ownerCreateSecret(...)`
91
- - `ownerUpdateSecret(...)`
92
- - `ownerReadSecretPlaintext(...)`
93
- - `ownerExportSecret(...)`
94
- - `ownerCreateAgent(...)`
95
- - `ownerImportAgent(...)`
96
- - `ownerUpdateAgent(...)`
97
- - `ownerReadAgentPrivateKey(...)`
98
- - `ownerListAgents(...)`
99
- - `ownerGrantCapability(...)`
100
- - `ownerRevokeCapability(...)`
101
- - `ownerListCapabilities(...)`
102
- - `ownerListSecrets(...)`
103
- - `ownerRegisterFlow(...)`
104
- - `ownerSubmitCapabilityRequest(...)`
105
- - `ownerListCapabilityStates(...)`
106
- - `ownerApproveCapabilityRead(...)`
107
- - `ownerAllowOnce(...)`
108
- - `ownerAllowAlways(...)`
109
- - `ownerDeny(...)`
110
- - `ownerOnCapabilityState(...)`
111
- - `ownerIssueSessionToken(...)`
112
- - `ownerIssueAllSessionTokens()`
113
- - `ownerRevokeSessionToken(...)`
114
- - `ownerReadAudit(...)`
115
-
116
- ### Core Operations
117
- - `ownerCreateSecret(...)`: Insert a new active secret. The call fails if the alias already has an active record.
118
- - `ownerUpdateSecret(...)`: Insert a new successor version for the active alias and mark the previous version as superseded.
119
- - `ownerCreateAgent(...)`: Generate and host a new agent identity, then return its public record plus a session token.
120
- - `ownerImportAgent(...)`: Import an existing private key into vault custody, then return its public record plus a session token.
121
- - `ownerUpdateAgent(...)`: Update an agent's stored nickname and metadata.
122
- - `ownerListAgents()`: Enumerate authorized agents. Private keys are redacted from the default list response.
123
- - Each listed agent also includes its current `sessionTokens`.
124
- - `ownerGrantCapability(...)`: Assign specific secret-use permissions to an agent. Capability IDs are generated internally.
125
- - `ownerSubmitCapabilityRequest(...)`: Create a capability carrier for later owner review.
126
- - `ownerListCapabilityStates(...)`: Read capability carriers, optionally filtered by `agentId`, `writeGranted`, or `readGranted`.
127
- - `ownerApproveCapabilityRead({ requestId, read? })`: Approve the inbound read action separately on the same carrier after write approval. Pass `read` to replace the pending read policy at approval time with a `paths` whitelist. Response shape is always visible; `read.paths` only unlocks values, and `['$']` unlocks the full body.
128
- - `ownerAllowOnce({ requestId })`: Execute a write-approved pending request once, then delete the carrier. This is only valid for dispatch-discovery carriers with a concrete blocked request.
129
- - `ownerAllowAlways({ requestId })`: Persist the carrier as an active capability. For dispatch discovery this also executes the blocked request; for explicit requests it grants the capability without sending network traffic. Capability IDs are generated internally.
130
- - `ownerDeny(requestId)`: Reject the currently pending action on the carrier.
131
- - `ownerOnCapabilityState(callback)`: Register a real-time observer for capability-carrier changes.
132
- - `ownerIssueSessionToken(input)`: Issue a session token for a specific agent.
133
- - `ownerIssueAllSessionTokens()`: Batch-issue session tokens for all registered agents.
134
- - `ownerRevokeSessionToken({ token })`: Invalidate a specific session token.
135
- - `ownerReadSecretPlaintext({ alias, password })`: Read one secret's plaintext after re-entering the vault password.
136
- - `ownerExportSecret({ alias, password })`: Export a secret's full plaintext record after re-entering the vault password.
137
- - `ownerReadAgentPrivateKey({ agentId, password })`: Read one managed agent private key after re-entering the vault password.
138
- - `ownerReadAudit(...)`: Access the append-only record of all vault actions.
139
-
140
- ### Sensitive Action Contract
141
-
142
- The following owner operations are sensitive actions:
143
-
144
- - `ownerReadSecretPlaintext(...)`
145
- - `ownerExportSecret(...)`
146
- - `ownerReadAgentPrivateKey(...)`
147
- - `ownerRemoveSecret(...)`
148
-
149
- All four require:
150
-
151
- - `password`
152
- - optional `verificationCode`
153
-
154
- Client configuration:
155
-
156
- - `createVaultClient(...)` may be configured with `sensitiveActionVerifier(confirmation, context)`
157
- - if no `sensitiveActionVerifier` is provided, `passwordVerifier(password)` is required for these operations
158
-
159
- Stable owner client error codes:
160
-
161
- - `SENSITIVE_ACTION_PASSWORD_REQUIRED`
162
- - `SENSITIVE_ACTION_VERIFIER_REQUIRED`
163
- - `SENSITIVE_ACTION_REJECTED`
164
- - `SENSITIVE_ACTION_INVALID_PASSWORD`
165
- - `AGENT_PRIVATE_KEY_NOT_FOUND`
166
- - `INVALID_CREATE_VAULT_CLIENT_OPTIONS`
167
-
168
- Recommended GUI behavior:
169
-
170
- - Keep an `OwnerSession`, not a raw `VaultClient`
171
- - Call `session.client()` or `session.withClient(...)` for each owner operation
172
- - Show a single reusable confirmation dialog for sensitive actions
173
- - Always collect the password
174
- - Optionally collect a second factor such as a 6-digit verification code
175
- - Branch UI behavior on `OwnerClientError.code` rather than parsing error strings
176
- - Normalize SDK records into app-owned view models at your own service boundary instead of passing runtime
177
- records directly into UI components
178
-
179
- ## Agent Client (Consumer)
180
-
181
- The `AgentClient` is used by delegated processes (e.g., LLMs or background workers) to perform authorized actions.
182
-
183
- ### Core Operations
184
- - `agentDispatch(...)`: Use a granted capability to send a secret to an authorized target.
185
- - **Status**: Returns `SUCCEEDED`, `FAILED`, or `PENDING`.
186
- - **Execution Semantics**: This is the method that attempts the real task immediately.
187
- - **Owner Context**: A non-empty `reason` string is required and is recorded for owner review.
188
- - **Result Delivery**: The full result is stored in a sealed request record; use `agentListRequests()` and `agentGetRequest(...)` to inspect it later.
189
- - **Discovery Flow**: If an agent attempts an action not explicitly in its white-list, the request is automatically stalled as `PENDING` for owner review.
190
- - `agentListCapabilities()`: Read the agent's capability carriers, including current `write` and `read` action states.
191
- - `agentListSecrets()`: Read all secret metadata in the vault, with per-secret authorization markers showing which entries the agent can currently use.
192
- - `agentListRequests()`: Read the agent's request history with partially redacted metadata.
193
- - `agentGetRequest(...)`: Read one request record and receive the result body only if the corresponding read action has been approved.
194
- - `ownerListRequests()`: Read request history as owner, including approval states.
195
- - `ownerGetRequest(...)`: Read the full sealed request record as owner, including response content before read release.
196
- - `agentIntrospect()`: Read the vault-known self context (`agentId`, `identityId`, `nickname`, `metadata`) plus capability carriers and the tool manifest.
197
- - `agentSubmitCapabilityRequest(...)`: Ask the owner for a broader `scope + methods` grant without executing any request. A non-empty `reason` string is required for owner review.
198
- - **Security**: The agent never handles the vault's master password. Agent execution uses **Session Tokens** rather than raw private-key dispatch.
199
- - **Auditing**: Dispatches are audited by default. Set `skipAudit: true` in the capability (or during approval) to disable logging for specific actions.
200
-
201
- ## Capability Action Approval
202
-
203
- The runtime uses capability carriers with two independently approved actions:
204
-
205
- - **Dispatch discovery**: A concrete dispatch misses existing capability coverage and creates a carrier with `write.status = PENDING`.
206
- - **Capability request**: An external planner or controller creates a broader carrier before any dispatch is attempted.
207
-
208
- This is useful for LLM-driven planners that can infer the needed scope ahead of time, for example:
209
- - scope `https://api.example.com/users/*`
210
- - methods `["GET"]`
211
-
212
- The carrier remains actionable until the owner approves or rejects its pending actions:
213
- - `ownerSubmitCapabilityRequest(...)` creates the carrier.
214
- - `ownerListCapabilityStates({ writeGranted: false })` reads the current queue.
215
- - `ownerAllowOnce(...)` executes a write-approved discovery request once and removes the pending carrier.
216
- - `ownerAllowAlways(...)` persists a real capability carrier and also executes the blocked request when the carrier came from dispatch discovery.
217
- - `ownerApproveCapabilityRead(...)` can be applied later on the same carrier to release response visibility.
218
- - `ownerDeny(...)` marks the currently pending action rejected.
219
- - `ownerOnCapabilityState(...)` supports push-style owner interfaces.
220
-
221
- The proactive request flow does not replace dispatch discovery. Both flows now produce the same carrier shape with independent write/read action states.
222
-
223
- ## Storage Layout
224
-
225
- The vault uses a unified encrypted partition:
226
- - `vaults/<vaultId>_v1/profile.sealed`: Unified vault profile.
227
- - `vaults/<vaultId>_v1/secrets.sealed`: Secret registry.
228
- - `vaults/<vaultId>_v1/agents.sealed`: Agent identity registry.
229
- - `vaults/<vaultId>_v1/capabilities.sealed`: Capability registry.
230
- - `vaults/<vaultId>_v1/requests.sealed`: Sealed request-record registry.
231
- - `vaults/<vaultId>_v1/custom-flows.sealed`: Owner-defined HTTP request template registry.
232
- - `vaults/<vaultId>_v1/audit.jsonl`: Tamper-evident audit log.
233
- - `vaults/<vaultId>_v1/working-key.sealed`: Sealed working-key custody blob.
234
- - `vaults/<vaultId>_v1/secret-<secretId>.sealed`: Encrypted secret material.
13
+ - `createOwnerClient(...)` - Create an administrative client (Owner).
14
+ - `createAgentClient(...)` - Create an agent client (Consumer).
15
+
16
+ ## Identity and Access Control
17
+
18
+ ### 1. Agent Identities
19
+ - `ownerCreateAgent(...)`: Provision a new agent identity and return a session token.
20
+ - `ownerListAgents()`: Enumerate all registered agents.
21
+
22
+ ### 2. Grant Management (Access Control)
23
+ The system uses a domain-level white-list model:
24
+ - `ownerGrantAgentSecret(...)`: Authorize an agent to use a specific secret alias.
25
+ - `ownerGrantSecretDestination(...)`: Authorize a secret alias for a specific domain.
26
+ - `ownerRevokeAgentSecret(...)`: Remove agent-secret authorization.
27
+ - `ownerRevokeSecretDestination(...)`: Remove secret-domain authorization.
28
+ - `ownerListGrants(...)`: Review all active or pending grants.
29
+
30
+ ### 3. Dispatch and Approval (HITL)
31
+ - `agentDispatch(...)`: Attempt a secret-driven HTTP request. Returns `SUCCEEDED` or `PENDING`.
32
+ - `ownerListRequests(...)`: Review blocked (PENDING) or history of dispatches.
33
+ - `ownerApproveDispatch(...)`: Resolve a pending request.
34
+ - `allow_once`: Execute once, no permanent change.
35
+ - `allow_and_grant`: Execute and automatically provision permanent grants.
36
+ - `deny`: Reject the request.
37
+
38
+ ## Storage and Lifecycle
39
+
40
+ ### Deployment Models
41
+ 1. **Managed**: The runtime handles private keys internally.
42
+ 2. **Session-based**: Agents use short-lived `sat_...` tokens issued by the owner.
43
+
44
+ ### Storage Layout
45
+ - `profile.sealed`: Vault metadata.
46
+ - `secrets/`: Secret records.
47
+ - `custody/`: Secret plaintext.
48
+ - `agents/`: Agent records.
49
+ - `grants/agent_secrets/`: Agent-Secret white-list.
50
+ - `grants/secret_destinations/`: Secret-Domain white-list.
51
+ - `requests/`: Dispatch history and pending queue.
52
+ - `audit/`: Append-only audit trail.
235
53
 
236
54
  ## Build & Integration
237
55
 
@@ -1,11 +1,14 @@
1
- **CBIO Node Runtime Agent API v1.63.3**
1
+ **CBIO Node Runtime Agent API v1.63.5**
2
2
 
3
3
  ***
4
4
 
5
- # CBIO Node Runtime Agent API v1.63.3
5
+ # CBIO Node Runtime Agent API v1.63.5
6
6
 
7
7
  ## Enumerations
8
8
 
9
+ - [AuditAction](enumerations/AuditAction.md)
10
+ - [AuditOutcome](enumerations/AuditOutcome.md)
11
+ - [DispatchStatus](enumerations/DispatchStatus.md)
9
12
  - [IdentityErrorCode](enumerations/IdentityErrorCode.md)
10
13
  - [OwnerClientErrorCode](enumerations/OwnerClientErrorCode.md)
11
14
 
@@ -13,6 +16,13 @@
13
16
 
14
17
  - [IdentityError](classes/IdentityError.md)
15
18
  - [OwnerClientError](classes/OwnerClientError.md)
19
+ - [PersistentVaultAgentIdentityRegistry](classes/PersistentVaultAgentIdentityRegistry.md)
20
+ - [PersistentVaultAgentSecretGrantRegistry](classes/PersistentVaultAgentSecretGrantRegistry.md)
21
+ - [PersistentVaultAuditLog](classes/PersistentVaultAuditLog.md)
22
+ - [PersistentVaultCustomHttpFlowRegistry](classes/PersistentVaultCustomHttpFlowRegistry.md)
23
+ - [PersistentVaultSecretCustody](classes/PersistentVaultSecretCustody.md)
24
+ - [PersistentVaultSecretDestinationGrantRegistry](classes/PersistentVaultSecretDestinationGrantRegistry.md)
25
+ - [PersistentVaultSecretRepository](classes/PersistentVaultSecretRepository.md)
16
26
  - [VaultCore](classes/VaultCore.md)
17
27
  - [VaultCoreError](classes/VaultCoreError.md)
18
28
 
@@ -22,71 +32,86 @@
22
32
  - [AgentDispatchIntent](interfaces/AgentDispatchIntent.md)
23
33
  - [AgentDispatchTransport](interfaces/AgentDispatchTransport.md)
24
34
  - [AgentIdentity](interfaces/AgentIdentity.md)
35
+ - [AgentIdentityRecord](interfaces/AgentIdentityRecord.md)
36
+ - [AgentRequestResult](interfaces/AgentRequestResult.md)
37
+ - [AgentRuntimeManifest](interfaces/AgentRuntimeManifest.md)
38
+ - [AgentSecretGrant](interfaces/AgentSecretGrant.md)
25
39
  - [AgentSigner](interfaces/AgentSigner.md)
26
- - [AgentSubmitCapabilityRequestInput](interfaces/AgentSubmitCapabilityRequestInput.md)
40
+ - [AgentVisibleRequestRecord](interfaces/AgentVisibleRequestRecord.md)
41
+ - [AgentVisibleSecretRecord](interfaces/AgentVisibleSecretRecord.md)
42
+ - [AuditEntry](interfaces/AuditEntry.md)
27
43
  - [CbioRuntime](interfaces/CbioRuntime.md)
28
44
  - [CreateAgentClientOptions](interfaces/CreateAgentClientOptions.md)
29
45
  - [CreatedVault](interfaces/CreatedVault.md)
30
46
  - [CreateIdentityOptions](interfaces/CreateIdentityOptions.md)
47
+ - [CreateOwnerClientOptions](interfaces/CreateOwnerClientOptions.md)
31
48
  - [CreateOwnerSessionOptions](interfaces/CreateOwnerSessionOptions.md)
32
49
  - [CreatePersistentVaultCoreDependenciesOptions](interfaces/CreatePersistentVaultCoreDependenciesOptions.md)
33
- - [CreateVaultClientOptions](interfaces/CreateVaultClientOptions.md)
34
50
  - [CreateVaultOptions](interfaces/CreateVaultOptions.md)
51
+ - [CustomHttpFlowDefinition](interfaces/CustomHttpFlowDefinition.md)
35
52
  - [DefaultPolicyEngineOptions](interfaces/DefaultPolicyEngineOptions.md)
53
+ - [DispatchAuthorization](interfaces/DispatchAuthorization.md)
54
+ - [DispatchInstruction](interfaces/DispatchInstruction.md)
55
+ - [DispatchRequest](interfaces/DispatchRequest.md)
56
+ - [DispatchResult](interfaces/DispatchResult.md)
36
57
  - [InitializedVaultCustody](interfaces/InitializedVaultCustody.md)
37
58
  - [InitializeVaultCustodyOptions](interfaces/InitializeVaultCustodyOptions.md)
38
59
  - [IStorageProvider](interfaces/IStorageProvider.md)
39
60
  - [OwnerAgentProvisionResult](interfaces/OwnerAgentProvisionResult.md)
61
+ - [OwnerClient](interfaces/OwnerClient.md)
40
62
  - [OwnerCreateSecretInput](interfaces/OwnerCreateSecretInput.md)
41
63
  - [OwnerRemoveSecretInput](interfaces/OwnerRemoveSecretInput.md)
64
+ - [OwnerRequestRecord](interfaces/OwnerRequestRecord.md)
42
65
  - [OwnerSensitiveActionConfirmation](interfaces/OwnerSensitiveActionConfirmation.md)
43
66
  - [OwnerSensitiveActionContext](interfaces/OwnerSensitiveActionContext.md)
44
67
  - [OwnerSession](interfaces/OwnerSession.md)
45
68
  - [OwnerUpdateSecretInput](interfaces/OwnerUpdateSecretInput.md)
69
+ - [OwnerVisibleRequestRecord](interfaces/OwnerVisibleRequestRecord.md)
46
70
  - [RecoveredVault](interfaces/RecoveredVault.md)
47
71
  - [RecoverVaultOptions](interfaces/RecoverVaultOptions.md)
72
+ - [RequestRecord](interfaces/RequestRecord.md)
48
73
  - [RestoreIdentityOptions](interfaces/RestoreIdentityOptions.md)
74
+ - [SecretAlias](interfaces/SecretAlias.md)
75
+ - [SecretDestinationGrant](interfaces/SecretDestinationGrant.md)
76
+ - [SecretId](interfaces/SecretId.md)
77
+ - [SecretRecord](interfaces/SecretRecord.md)
49
78
  - [Signer](interfaces/Signer.md)
50
- - [VaultApproveCapabilityRequestInput](interfaces/VaultApproveCapabilityRequestInput.md)
51
79
  - [VaultApproveDispatchInput](interfaces/VaultApproveDispatchInput.md)
52
80
  - [VaultAuditQueryInput](interfaces/VaultAuditQueryInput.md)
53
- - [VaultClient](interfaces/VaultClient.md)
54
81
  - [VaultCoreDependenciesOptions](interfaces/VaultCoreDependenciesOptions.md)
55
82
  - [VaultCreateAgentInput](interfaces/VaultCreateAgentInput.md)
56
83
  - [VaultExportSecretInput](interfaces/VaultExportSecretInput.md)
57
- - [VaultGrantCapabilityInput](interfaces/VaultGrantCapabilityInput.md)
58
- - [VaultGrantCapabilityRequest](interfaces/VaultGrantCapabilityRequest.md)
59
- - [VaultIdentity](interfaces/VaultIdentity.md)
84
+ - [VaultGetRequestInput](interfaces/VaultGetRequestInput.md)
85
+ - [VaultGrantAgentSecretInput](interfaces/VaultGrantAgentSecretInput.md)
86
+ - [VaultGrantSecretDestinationInput](interfaces/VaultGrantSecretDestinationInput.md)
87
+ - [VaultId](interfaces/VaultId.md)
60
88
  - [VaultImportAgentInput](interfaces/VaultImportAgentInput.md)
61
89
  - [VaultIssueSessionTokenInput](interfaces/VaultIssueSessionTokenInput.md)
62
90
  - [VaultListAgentsInput](interfaces/VaultListAgentsInput.md)
63
- - [VaultListCapabilitiesInput](interfaces/VaultListCapabilitiesInput.md)
91
+ - [VaultListGrantsInput](interfaces/VaultListGrantsInput.md)
92
+ - [VaultListRequestsInput](interfaces/VaultListRequestsInput.md)
64
93
  - [VaultListSecretsInput](interfaces/VaultListSecretsInput.md)
65
94
  - [VaultMetadata](interfaces/VaultMetadata.md)
66
95
  - [VaultObject](interfaces/VaultObject.md)
96
+ - [VaultPrincipal](interfaces/VaultPrincipal.md)
67
97
  - [VaultProfile](interfaces/VaultProfile.md)
68
98
  - [VaultReadAgentPrivateKeyInput](interfaces/VaultReadAgentPrivateKeyInput.md)
69
99
  - [VaultReadSecretPlaintextInput](interfaces/VaultReadSecretPlaintextInput.md)
70
100
  - [VaultRegisterFlowInput](interfaces/VaultRegisterFlowInput.md)
71
- - [VaultRevokeCapabilityInput](interfaces/VaultRevokeCapabilityInput.md)
101
+ - [VaultRevokeAgentSecretInput](interfaces/VaultRevokeAgentSecretInput.md)
102
+ - [VaultRevokeSecretDestinationInput](interfaces/VaultRevokeSecretDestinationInput.md)
72
103
  - [VaultRevokeSessionTokenInput](interfaces/VaultRevokeSessionTokenInput.md)
73
- - [VaultSigner](interfaces/VaultSigner.md)
74
- - [VaultSubmitCapabilityRequestInput](interfaces/VaultSubmitCapabilityRequestInput.md)
104
+ - [VaultService](interfaces/VaultService.md)
75
105
  - [VaultUpdateAgentInput](interfaces/VaultUpdateAgentInput.md)
76
106
 
77
107
  ## Type Aliases
78
108
 
79
- - [AgentCapabilityEnvelope](type-aliases/AgentCapabilityEnvelope.md)
80
- - [AgentVisibleSecretRecord](type-aliases/AgentVisibleSecretRecord.md)
109
+ - [AgentId](type-aliases/AgentId.md)
81
110
  - [CbioRuntimeModule](type-aliases/CbioRuntimeModule.md)
82
- - [CreateOwnerClientOptions](type-aliases/CreateOwnerClientOptions.md)
83
- - [OwnerAgentView](type-aliases/OwnerAgentView.md)
84
- - [OwnerClient](type-aliases/OwnerClient.md)
85
- - [OwnerGrantCapabilityInput](type-aliases/OwnerGrantCapabilityInput.md)
86
- - [OwnerPendingApprovalView](type-aliases/OwnerPendingApprovalView.md)
87
- - [OwnerRequestDetailView](type-aliases/OwnerRequestDetailView.md)
88
- - [OwnerRequestSummaryView](type-aliases/OwnerRequestSummaryView.md)
89
- - [OwnerSecretView](type-aliases/OwnerSecretView.md)
111
+ - [DispatchApprovalDecision](type-aliases/DispatchApprovalDecision.md)
112
+ - [GrantStatus](type-aliases/GrantStatus.md)
113
+ - [SecretLifecycleStatus](type-aliases/SecretLifecycleStatus.md)
114
+ - [VaultPrincipalKind](type-aliases/VaultPrincipalKind.md)
90
115
 
91
116
  ## Variables
92
117
 
@@ -96,18 +121,15 @@
96
121
 
97
122
  - [createAgentClient](functions/createAgentClient.md)
98
123
  - [createIdentity](functions/createIdentity.md)
99
- - [createOwnerHttpFlowBoundary](functions/createOwnerHttpFlowBoundary.md)
124
+ - [createOwnerClient](functions/createOwnerClient.md)
100
125
  - [createOwnerSession](functions/createOwnerSession.md)
101
126
  - [createPersistentVaultCoreDependencies](functions/createPersistentVaultCoreDependencies.md)
102
- - [createStandardAcquireBoundary](functions/createStandardAcquireBoundary.md)
103
- - [createStandardDispatchBoundary](functions/createStandardDispatchBoundary.md)
104
127
  - [createVault](functions/createVault.md)
105
- - [createVaultClient](functions/createVaultClient.md)
106
128
  - [createVaultCore](functions/createVaultCore.md)
107
129
  - [createVaultCoreDependencies](functions/createVaultCoreDependencies.md)
108
130
  - [createVaultService](functions/createVaultService.md)
109
131
  - [createWorkspaceStorage](functions/createWorkspaceStorage.md)
110
- - [deriveIdentityId](functions/deriveIdentityId.md)
132
+ - [deriveRootAgentId](functions/deriveRootAgentId.md)
111
133
  - [deriveVaultWorkingKeyFromPassword](functions/deriveVaultWorkingKeyFromPassword.md)
112
134
  - [getDefaultWorkspaceDir](functions/getDefaultWorkspaceDir.md)
113
135
  - [handleVaultAgentControlHttp](functions/handleVaultAgentControlHttp.md)
@@ -119,5 +141,4 @@
119
141
  - [recoverVaultWorkingKey](functions/recoverVaultWorkingKey.md)
120
142
  - [restoreIdentity](functions/restoreIdentity.md)
121
143
  - [updateVaultMetadata](functions/updateVaultMetadata.md)
122
- - [wrapVaultCoreAsVaultService](functions/wrapVaultCoreAsVaultService.md)
123
144
  - [writeVaultProfile](functions/writeVaultProfile.md)
@@ -1,4 +1,4 @@
1
- [**CBIO Node Runtime Agent API v1.63.3**](../README.md)
1
+ [**CBIO Node Runtime Agent API v1.63.5**](../README.md)
2
2
 
3
3
  ***
4
4
 
@@ -1,4 +1,4 @@
1
- [**CBIO Node Runtime Agent API v1.63.3**](../README.md)
1
+ [**CBIO Node Runtime Agent API v1.63.5**](../README.md)
2
2
 
3
3
  ***
4
4
 
@@ -0,0 +1,89 @@
1
+ [**CBIO Node Runtime Agent API v1.63.5**](../README.md)
2
+
3
+ ***
4
+
5
+ # Class: PersistentVaultAgentIdentityRegistry
6
+
7
+ ## Implements
8
+
9
+ - `AgentIdentityRegistry`
10
+
11
+ ## Constructors
12
+
13
+ ### Constructor
14
+
15
+ > **new PersistentVaultAgentIdentityRegistry**(`baseDir`): `FileAgentIdentityRegistry`
16
+
17
+ #### Parameters
18
+
19
+ ##### baseDir
20
+
21
+ `string`
22
+
23
+ #### Returns
24
+
25
+ `FileAgentIdentityRegistry`
26
+
27
+ ## Methods
28
+
29
+ ### get()
30
+
31
+ > **get**(`vaultId`, `rootAgentId`): `Promise`\<[`AgentIdentityRecord`](../interfaces/AgentIdentityRecord.md) \| `null`\>
32
+
33
+ #### Parameters
34
+
35
+ ##### vaultId
36
+
37
+ [`VaultId`](../interfaces/VaultId.md)
38
+
39
+ ##### rootAgentId
40
+
41
+ `string`
42
+
43
+ #### Returns
44
+
45
+ `Promise`\<[`AgentIdentityRecord`](../interfaces/AgentIdentityRecord.md) \| `null`\>
46
+
47
+ #### Implementation of
48
+
49
+ `AgentIdentityRegistry.get`
50
+
51
+ ***
52
+
53
+ ### list()
54
+
55
+ > **list**(`vaultId`): `Promise`\<readonly [`AgentIdentityRecord`](../interfaces/AgentIdentityRecord.md)[]\>
56
+
57
+ #### Parameters
58
+
59
+ ##### vaultId
60
+
61
+ [`VaultId`](../interfaces/VaultId.md)
62
+
63
+ #### Returns
64
+
65
+ `Promise`\<readonly [`AgentIdentityRecord`](../interfaces/AgentIdentityRecord.md)[]\>
66
+
67
+ #### Implementation of
68
+
69
+ `AgentIdentityRegistry.list`
70
+
71
+ ***
72
+
73
+ ### register()
74
+
75
+ > **register**(`identity`): `Promise`\<`void`\>
76
+
77
+ #### Parameters
78
+
79
+ ##### identity
80
+
81
+ [`AgentIdentityRecord`](../interfaces/AgentIdentityRecord.md)
82
+
83
+ #### Returns
84
+
85
+ `Promise`\<`void`\>
86
+
87
+ #### Implementation of
88
+
89
+ `AgentIdentityRegistry.register`
@@ -0,0 +1,125 @@
1
+ [**CBIO Node Runtime Agent API v1.63.5**](../README.md)
2
+
3
+ ***
4
+
5
+ # Class: PersistentVaultAgentSecretGrantRegistry
6
+
7
+ ## Implements
8
+
9
+ - `AgentSecretGrantRegistry`
10
+
11
+ ## Constructors
12
+
13
+ ### Constructor
14
+
15
+ > **new PersistentVaultAgentSecretGrantRegistry**(`baseDir`): `FileAgentSecretGrantRegistry`
16
+
17
+ #### Parameters
18
+
19
+ ##### baseDir
20
+
21
+ `string`
22
+
23
+ #### Returns
24
+
25
+ `FileAgentSecretGrantRegistry`
26
+
27
+ ## Methods
28
+
29
+ ### delete()
30
+
31
+ > **delete**(`vaultId`, `rootAgentId`, `secretAlias`): `Promise`\<`void`\>
32
+
33
+ #### Parameters
34
+
35
+ ##### vaultId
36
+
37
+ [`VaultId`](../interfaces/VaultId.md)
38
+
39
+ ##### rootAgentId
40
+
41
+ `string`
42
+
43
+ ##### secretAlias
44
+
45
+ `string`
46
+
47
+ #### Returns
48
+
49
+ `Promise`\<`void`\>
50
+
51
+ #### Implementation of
52
+
53
+ `AgentSecretGrantRegistry.delete`
54
+
55
+ ***
56
+
57
+ ### get()
58
+
59
+ > **get**(`vaultId`, `rootAgentId`, `secretAlias`): `Promise`\<[`AgentSecretGrant`](../interfaces/AgentSecretGrant.md) \| `null`\>
60
+
61
+ #### Parameters
62
+
63
+ ##### vaultId
64
+
65
+ [`VaultId`](../interfaces/VaultId.md)
66
+
67
+ ##### rootAgentId
68
+
69
+ `string`
70
+
71
+ ##### secretAlias
72
+
73
+ `string`
74
+
75
+ #### Returns
76
+
77
+ `Promise`\<[`AgentSecretGrant`](../interfaces/AgentSecretGrant.md) \| `null`\>
78
+
79
+ #### Implementation of
80
+
81
+ `AgentSecretGrantRegistry.get`
82
+
83
+ ***
84
+
85
+ ### list()
86
+
87
+ > **list**(`vaultId`, `rootAgentId?`): `Promise`\<readonly [`AgentSecretGrant`](../interfaces/AgentSecretGrant.md)[]\>
88
+
89
+ #### Parameters
90
+
91
+ ##### vaultId
92
+
93
+ [`VaultId`](../interfaces/VaultId.md)
94
+
95
+ ##### rootAgentId?
96
+
97
+ `string`
98
+
99
+ #### Returns
100
+
101
+ `Promise`\<readonly [`AgentSecretGrant`](../interfaces/AgentSecretGrant.md)[]\>
102
+
103
+ #### Implementation of
104
+
105
+ `AgentSecretGrantRegistry.list`
106
+
107
+ ***
108
+
109
+ ### upsert()
110
+
111
+ > **upsert**(`grant`): `Promise`\<`void`\>
112
+
113
+ #### Parameters
114
+
115
+ ##### grant
116
+
117
+ [`AgentSecretGrant`](../interfaces/AgentSecretGrant.md)
118
+
119
+ #### Returns
120
+
121
+ `Promise`\<`void`\>
122
+
123
+ #### Implementation of
124
+
125
+ `AgentSecretGrantRegistry.upsert`