@the-ai-company/cbio-node-runtime 1.43.0 → 1.45.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 (199) hide show
  1. package/dist/clients/agent/client.d.ts +35 -0
  2. package/dist/clients/agent/client.js +15 -0
  3. package/dist/clients/agent/client.js.map +1 -1
  4. package/dist/clients/owner/client.d.ts +60 -0
  5. package/dist/clients/owner/client.js +14 -0
  6. package/dist/clients/owner/client.js.map +1 -1
  7. package/dist/clients/owner/index.d.ts +1 -1
  8. package/dist/protocol/crypto.d.ts +3 -0
  9. package/dist/protocol/crypto.js +3 -0
  10. package/dist/protocol/crypto.js.map +1 -1
  11. package/dist/runtime/bootstrap.d.ts +43 -7
  12. package/dist/runtime/bootstrap.js +12 -1
  13. package/dist/runtime/bootstrap.js.map +1 -1
  14. package/dist/runtime/identity.d.ts +47 -0
  15. package/dist/runtime/identity.js +25 -0
  16. package/dist/runtime/identity.js.map +1 -1
  17. package/dist/runtime/index.d.ts +5 -11
  18. package/dist/runtime/index.js.map +1 -1
  19. package/dist/runtime/private-vault.d.ts +1 -2
  20. package/dist/storage/fs.d.ts +3 -0
  21. package/dist/storage/fs.js +3 -0
  22. package/dist/storage/fs.js.map +1 -1
  23. package/dist/storage/memory.d.ts +3 -0
  24. package/dist/storage/memory.js +3 -0
  25. package/dist/storage/memory.js.map +1 -1
  26. package/dist/vault-core/core.d.ts +3 -0
  27. package/dist/vault-core/core.js +3 -0
  28. package/dist/vault-core/core.js.map +1 -1
  29. package/dist/vault-core/defaults.d.ts +45 -0
  30. package/dist/vault-core/defaults.js +45 -0
  31. package/dist/vault-core/defaults.js.map +1 -1
  32. package/dist/vault-core/persistence.d.ts +30 -0
  33. package/dist/vault-core/persistence.js +30 -0
  34. package/dist/vault-core/persistence.js.map +1 -1
  35. package/dist/vault-ingress/defaults.d.ts +3 -0
  36. package/dist/vault-ingress/defaults.js +3 -0
  37. package/dist/vault-ingress/defaults.js.map +1 -1
  38. package/dist/vault-ingress/remote-transport.d.ts +3 -0
  39. package/dist/vault-ingress/remote-transport.js +3 -0
  40. package/dist/vault-ingress/remote-transport.js.map +1 -1
  41. package/docs/api/README.md +180 -0
  42. package/docs/api/classes/IdentityError.md +62 -0
  43. package/docs/api/classes/InMemoryReplayGuard.md +45 -0
  44. package/docs/api/classes/VaultCoreError.md +39 -0
  45. package/docs/api/enumerations/AuditAction.md +95 -0
  46. package/docs/api/enumerations/AuditOutcome.md +29 -0
  47. package/docs/api/enumerations/DispatchStatus.md +23 -0
  48. package/docs/api/enumerations/IdentityErrorCode.md +121 -0
  49. package/docs/api/functions/createAgentClient.md +33 -0
  50. package/docs/api/functions/createChildIdentity.md +25 -0
  51. package/docs/api/functions/createDefaultVaultCoreDependencies.md +77 -0
  52. package/docs/api/functions/createIdentity.md +30 -0
  53. package/docs/api/functions/createOwnerHttpFlowBoundary.md +17 -0
  54. package/docs/api/functions/createPersistentVaultCoreDependencies.md +85 -0
  55. package/docs/api/functions/createStandardAcquireBoundary.md +31 -0
  56. package/docs/api/functions/createStandardDispatchBoundary.md +23 -0
  57. package/docs/api/functions/createVault.md +58 -0
  58. package/docs/api/functions/createVaultClient.md +32 -0
  59. package/docs/api/functions/createVaultCore.md +17 -0
  60. package/docs/api/functions/createVaultService.md +31 -0
  61. package/docs/api/functions/createWorkspaceStorage.md +17 -0
  62. package/docs/api/functions/deriveChildIdentity.md +41 -0
  63. package/docs/api/functions/deriveIdentityId.md +17 -0
  64. package/docs/api/functions/ensureIdentityPrivateVault.md +21 -0
  65. package/docs/api/functions/getDefaultWorkspaceDir.md +11 -0
  66. package/docs/api/functions/handleVaultHttpDispatch.md +30 -0
  67. package/docs/api/functions/identityPrivateVaultChildrenKey.md +17 -0
  68. package/docs/api/functions/identityPrivateVaultPrefix.md +17 -0
  69. package/docs/api/functions/identityPrivateVaultProfileKey.md +17 -0
  70. package/docs/api/functions/identityPrivateVaultPublicSealedKey.md +17 -0
  71. package/docs/api/functions/initializeVaultCustody.md +21 -0
  72. package/docs/api/functions/listIdentities.md +19 -0
  73. package/docs/api/functions/listVaults.md +23 -0
  74. package/docs/api/functions/readIdentityMetadata.md +29 -0
  75. package/docs/api/functions/readIdentityPrivateVaultChildrenState.md +21 -0
  76. package/docs/api/functions/readIdentityPrivateVaultProfile.md +21 -0
  77. package/docs/api/functions/readVaultProfile.md +25 -0
  78. package/docs/api/functions/readVaultPublicMetadata.md +23 -0
  79. package/docs/api/functions/recoverVault.md +58 -0
  80. package/docs/api/functions/recoverVaultWorkingKey.md +25 -0
  81. package/docs/api/functions/restoreIdentity.md +35 -0
  82. package/docs/api/functions/toOwnerHttpFlowBoundary.md +17 -0
  83. package/docs/api/functions/updateVaultMetadata.md +33 -0
  84. package/docs/api/functions/wrapVaultCoreAsVaultService.md +31 -0
  85. package/docs/api/functions/writeVaultProfile.md +29 -0
  86. package/docs/api/interfaces/AgentCapability.md +103 -0
  87. package/docs/api/interfaces/AgentClient.md +41 -0
  88. package/docs/api/interfaces/AgentDispatchIntent.md +41 -0
  89. package/docs/api/interfaces/AgentDispatchTransport.md +21 -0
  90. package/docs/api/interfaces/AgentIdentity.md +11 -0
  91. package/docs/api/interfaces/AgentIdentityRecord.md +23 -0
  92. package/docs/api/interfaces/AgentIdentityRegistry.md +57 -0
  93. package/docs/api/interfaces/AgentProof.md +29 -0
  94. package/docs/api/interfaces/AgentProofVerifier.md +21 -0
  95. package/docs/api/interfaces/AgentSigner.md +21 -0
  96. package/docs/api/interfaces/AuditEntry.md +89 -0
  97. package/docs/api/interfaces/AuditLog.md +37 -0
  98. package/docs/api/interfaces/AuditQuery.md +29 -0
  99. package/docs/api/interfaces/CapabilityRegistry.md +65 -0
  100. package/docs/api/interfaces/CapabilityRevocationRegistry.md +53 -0
  101. package/docs/api/interfaces/CbioRuntime.md +886 -0
  102. package/docs/api/interfaces/ChildIdentity.md +77 -0
  103. package/docs/api/interfaces/Clock.md +15 -0
  104. package/docs/api/interfaces/CreateAgentClientOptions.md +41 -0
  105. package/docs/api/interfaces/CreateChildIdentityOptions.md +19 -0
  106. package/docs/api/interfaces/CreateDefaultVaultCoreDependenciesOptions.md +85 -0
  107. package/docs/api/interfaces/CreateIdentityOptions.md +15 -0
  108. package/docs/api/interfaces/CreatePersistentVaultCoreDependenciesOptions.md +115 -0
  109. package/docs/api/interfaces/CreateVaultClientOptions.md +29 -0
  110. package/docs/api/interfaces/CreateVaultOptions.md +177 -0
  111. package/docs/api/interfaces/CreatedVault.md +39 -0
  112. package/docs/api/interfaces/CustomHttpFlowDefinition.md +71 -0
  113. package/docs/api/interfaces/CustomHttpFlowRegistry.md +41 -0
  114. package/docs/api/interfaces/DefaultPolicyEngineOptions.md +49 -0
  115. package/docs/api/interfaces/DeriveIdentityOptions.md +11 -0
  116. package/docs/api/interfaces/DispatchAuthorization.md +35 -0
  117. package/docs/api/interfaces/DispatchInstruction.md +47 -0
  118. package/docs/api/interfaces/DispatchRequest.md +77 -0
  119. package/docs/api/interfaces/DispatchResult.md +53 -0
  120. package/docs/api/interfaces/IStorageProvider.md +144 -0
  121. package/docs/api/interfaces/IdGenerator.md +39 -0
  122. package/docs/api/interfaces/IdentityPrivateVaultChildRecord.md +35 -0
  123. package/docs/api/interfaces/IdentityPrivateVaultChildrenState.md +17 -0
  124. package/docs/api/interfaces/IdentityPrivateVaultProfile.md +35 -0
  125. package/docs/api/interfaces/InitializeVaultCustodyOptions.md +29 -0
  126. package/docs/api/interfaces/InitializedVaultCustody.md +23 -0
  127. package/docs/api/interfaces/IssuerWriteSecretCommand.md +59 -0
  128. package/docs/api/interfaces/OwnerAuditRequest.md +47 -0
  129. package/docs/api/interfaces/OwnerDefineSecretTargetsCommand.md +53 -0
  130. package/docs/api/interfaces/OwnerDefineSecretTargetsInput.md +23 -0
  131. package/docs/api/interfaces/OwnerDeleteSecretCommand.md +47 -0
  132. package/docs/api/interfaces/OwnerExportSecretRequest.md +47 -0
  133. package/docs/api/interfaces/OwnerHttpFlowBoundary.md +51 -0
  134. package/docs/api/interfaces/OwnerIdentityRecord.md +23 -0
  135. package/docs/api/interfaces/OwnerIdentityRegistry.md +57 -0
  136. package/docs/api/interfaces/OwnerListAgentsRequest.md +41 -0
  137. package/docs/api/interfaces/OwnerListCapabilitiesRequest.md +47 -0
  138. package/docs/api/interfaces/OwnerProof.md +29 -0
  139. package/docs/api/interfaces/OwnerProofVerifier.md +181 -0
  140. package/docs/api/interfaces/OwnerRegisterAgentIdentityCommand.md +47 -0
  141. package/docs/api/interfaces/OwnerRegisterCapabilityCommand.md +47 -0
  142. package/docs/api/interfaces/OwnerRegisterCustomHttpFlowCommand.md +83 -0
  143. package/docs/api/interfaces/OwnerRevokeCapabilityCommand.md +53 -0
  144. package/docs/api/interfaces/OwnerSecretExport.md +35 -0
  145. package/docs/api/interfaces/OwnerSecretTargetBinding.md +35 -0
  146. package/docs/api/interfaces/OwnerStoreSecretInput.md +23 -0
  147. package/docs/api/interfaces/OwnerWriteSecretCommand.md +65 -0
  148. package/docs/api/interfaces/OwnerWriteSecretInput.md +29 -0
  149. package/docs/api/interfaces/PolicyEngine.md +81 -0
  150. package/docs/api/interfaces/RateLimitStore.md +33 -0
  151. package/docs/api/interfaces/RecoverVaultOptions.md +165 -0
  152. package/docs/api/interfaces/RecoveredVault.md +49 -0
  153. package/docs/api/interfaces/ReplayGuard.md +21 -0
  154. package/docs/api/interfaces/RestoreIdentityOptions.md +11 -0
  155. package/docs/api/interfaces/SecretAlias.md +11 -0
  156. package/docs/api/interfaces/SecretCustody.md +57 -0
  157. package/docs/api/interfaces/SecretId.md +11 -0
  158. package/docs/api/interfaces/SecretRecord.md +53 -0
  159. package/docs/api/interfaces/SecretRepository.md +69 -0
  160. package/docs/api/interfaces/SecretVersion.md +11 -0
  161. package/docs/api/interfaces/SignatureAgentProofVerifierOptions.md +21 -0
  162. package/docs/api/interfaces/Signer.md +31 -0
  163. package/docs/api/interfaces/TrustedExecutor.md +31 -0
  164. package/docs/api/interfaces/VaultAcquireSecretInput.md +53 -0
  165. package/docs/api/interfaces/VaultAcquireSecretResult.md +41 -0
  166. package/docs/api/interfaces/VaultAgentDispatchErrorResponse.md +25 -0
  167. package/docs/api/interfaces/VaultAgentDispatchRequest.md +75 -0
  168. package/docs/api/interfaces/VaultAgentDispatchResponse.md +17 -0
  169. package/docs/api/interfaces/VaultAuditQueryInput.md +29 -0
  170. package/docs/api/interfaces/VaultClient.md +234 -0
  171. package/docs/api/interfaces/VaultCore.md +311 -0
  172. package/docs/api/interfaces/VaultCoreDependencies.md +95 -0
  173. package/docs/api/interfaces/VaultCustomFlowResolver.md +25 -0
  174. package/docs/api/interfaces/VaultDeleteSecretInput.md +17 -0
  175. package/docs/api/interfaces/VaultExportSecretInput.md +17 -0
  176. package/docs/api/interfaces/VaultGrantCapabilityInput.md +17 -0
  177. package/docs/api/interfaces/VaultId.md +11 -0
  178. package/docs/api/interfaces/VaultIdentity.md +11 -0
  179. package/docs/api/interfaces/VaultListAgentsInput.md +11 -0
  180. package/docs/api/interfaces/VaultListCapabilitiesInput.md +17 -0
  181. package/docs/api/interfaces/VaultObject.md +33 -0
  182. package/docs/api/interfaces/VaultPrincipal.md +17 -0
  183. package/docs/api/interfaces/VaultProfile.md +23 -0
  184. package/docs/api/interfaces/VaultPublicMetadata.md +25 -0
  185. package/docs/api/interfaces/VaultRegisterAgentInput.md +23 -0
  186. package/docs/api/interfaces/VaultRegisterFlowInput.md +83 -0
  187. package/docs/api/interfaces/VaultRevokeCapabilityInput.md +23 -0
  188. package/docs/api/interfaces/VaultService.md +251 -0
  189. package/docs/api/interfaces/VaultSigner.md +21 -0
  190. package/docs/api/interfaces/VaultTargetBinding.md +35 -0
  191. package/docs/api/type-aliases/AgentCapabilityEnvelope.md +7 -0
  192. package/docs/api/type-aliases/CbioRuntimeModule.md +9 -0
  193. package/docs/api/type-aliases/IdentityPrivateVaultAccess.md +7 -0
  194. package/docs/api/type-aliases/RedactedResponseShape.md +7 -0
  195. package/docs/api/type-aliases/VaultAcquireSecretFlow.md +7 -0
  196. package/docs/api/type-aliases/VaultPrincipalKind.md +7 -0
  197. package/docs/api/type-aliases/VaultWriteSecretCommand.md +7 -0
  198. package/docs/api/variables/DEFAULT_VAULT_KEY_CUSTODY_BLOB_KEY.md +7 -0
  199. package/package.json +10 -2
@@ -0,0 +1,31 @@
1
+ [**CBIO Node Runtime Agent API v1.45.5**](../README.md)
2
+
3
+ ***
4
+
5
+ # Function: createVaultService()
6
+
7
+ > **createVaultService**(`deps`, `options?`): [`VaultService`](../interfaces/VaultService.md)
8
+
9
+ ## Parameters
10
+
11
+ ### deps
12
+
13
+ [`VaultCoreDependencies`](../interfaces/VaultCoreDependencies.md)
14
+
15
+ ### options?
16
+
17
+ #### clock?
18
+
19
+ [`Clock`](../interfaces/Clock.md)
20
+
21
+ #### customFlows?
22
+
23
+ [`VaultCustomFlowResolver`](../interfaces/VaultCustomFlowResolver.md)
24
+
25
+ #### fetchImpl?
26
+
27
+ \{(`input`, `init?`): `Promise`\<`Response`\>; (`input`, `init?`): `Promise`\<`Response`\>; \}
28
+
29
+ ## Returns
30
+
31
+ [`VaultService`](../interfaces/VaultService.md)
@@ -0,0 +1,17 @@
1
+ [**CBIO Node Runtime Agent API v1.45.5**](../README.md)
2
+
3
+ ***
4
+
5
+ # Function: createWorkspaceStorage()
6
+
7
+ > **createWorkspaceStorage**(`baseDir?`): `FsStorageProvider`
8
+
9
+ ## Parameters
10
+
11
+ ### baseDir?
12
+
13
+ `string` = `...`
14
+
15
+ ## Returns
16
+
17
+ `FsStorageProvider`
@@ -0,0 +1,41 @@
1
+ [**CBIO Node Runtime Agent API v1.45.5**](../README.md)
2
+
3
+ ***
4
+
5
+ # Function: deriveChildIdentity()
6
+
7
+ > **deriveChildIdentity**(`parent`, `childIndex`, `options?`): [`ChildIdentity`](../interfaces/ChildIdentity.md)
8
+
9
+ Deterministically derives a child identity from a parent's private key and an index.
10
+
11
+ ## Parameters
12
+
13
+ ### parent
14
+
15
+ `string` \| `CreatedIdentity`
16
+
17
+ The parent identity object or its private key string.
18
+
19
+ ### childIndex
20
+
21
+ `number`
22
+
23
+ A non-negative integer for derivation.
24
+
25
+ ### options?
26
+
27
+ [`DeriveIdentityOptions`](../interfaces/DeriveIdentityOptions.md) = `{}`
28
+
29
+ Optional nickname for the child.
30
+
31
+ ## Returns
32
+
33
+ [`ChildIdentity`](../interfaces/ChildIdentity.md)
34
+
35
+ A [ChildIdentity](../interfaces/ChildIdentity.md) with derivation metadata.
36
+
37
+ ## Example
38
+
39
+ ```ts
40
+ const child = deriveChildIdentity(parentIdentity, 0, { nickname: 'sub-agent-0' });
41
+ ```
@@ -0,0 +1,17 @@
1
+ [**CBIO Node Runtime Agent API v1.45.5**](../README.md)
2
+
3
+ ***
4
+
5
+ # Function: deriveIdentityId()
6
+
7
+ > **deriveIdentityId**(`publicKey`): `string`
8
+
9
+ ## Parameters
10
+
11
+ ### publicKey
12
+
13
+ `string`
14
+
15
+ ## Returns
16
+
17
+ `string`
@@ -0,0 +1,21 @@
1
+ [**CBIO Node Runtime Agent API v1.45.5**](../README.md)
2
+
3
+ ***
4
+
5
+ # Function: ensureIdentityPrivateVault()
6
+
7
+ > **ensureIdentityPrivateVault**(`storage`, `identity`): `Promise`\<`void`\>
8
+
9
+ ## Parameters
10
+
11
+ ### storage
12
+
13
+ [`IStorageProvider`](../interfaces/IStorageProvider.md)
14
+
15
+ ### identity
16
+
17
+ `CreatedIdentity`
18
+
19
+ ## Returns
20
+
21
+ `Promise`\<`void`\>
@@ -0,0 +1,11 @@
1
+ [**CBIO Node Runtime Agent API v1.45.5**](../README.md)
2
+
3
+ ***
4
+
5
+ # Function: getDefaultWorkspaceDir()
6
+
7
+ > **getDefaultWorkspaceDir**(): `string`
8
+
9
+ ## Returns
10
+
11
+ `string`
@@ -0,0 +1,30 @@
1
+ [**CBIO Node Runtime Agent API v1.45.5**](../README.md)
2
+
3
+ ***
4
+
5
+ # Function: handleVaultHttpDispatch()
6
+
7
+ > **handleVaultHttpDispatch**(`service`, `body`): `Promise`\<[`VaultAgentDispatchResponse`](../interfaces/VaultAgentDispatchResponse.md) \| [`VaultAgentDispatchErrorResponse`](../interfaces/VaultAgentDispatchErrorResponse.md)\>
8
+
9
+ Standard server-side helper to handle a vault agent dispatch request from an HTTP body.
10
+ This can be used in any HTTP server framework (Express, Fastify, etc.).
11
+
12
+ ## Parameters
13
+
14
+ ### service
15
+
16
+ [`VaultService`](../interfaces/VaultService.md)
17
+
18
+ The VaultService instance to handle the request.
19
+
20
+ ### body
21
+
22
+ `unknown`
23
+
24
+ The parsed JSON body of the incoming HTTP request.
25
+
26
+ ## Returns
27
+
28
+ `Promise`\<[`VaultAgentDispatchResponse`](../interfaces/VaultAgentDispatchResponse.md) \| [`VaultAgentDispatchErrorResponse`](../interfaces/VaultAgentDispatchErrorResponse.md)\>
29
+
30
+ A JSON-serializable response object.
@@ -0,0 +1,17 @@
1
+ [**CBIO Node Runtime Agent API v1.45.5**](../README.md)
2
+
3
+ ***
4
+
5
+ # Function: identityPrivateVaultChildrenKey()
6
+
7
+ > **identityPrivateVaultChildrenKey**(`identityId`): `string`
8
+
9
+ ## Parameters
10
+
11
+ ### identityId
12
+
13
+ `string`
14
+
15
+ ## Returns
16
+
17
+ `string`
@@ -0,0 +1,17 @@
1
+ [**CBIO Node Runtime Agent API v1.45.5**](../README.md)
2
+
3
+ ***
4
+
5
+ # Function: identityPrivateVaultPrefix()
6
+
7
+ > **identityPrivateVaultPrefix**(`identityId`): `string`
8
+
9
+ ## Parameters
10
+
11
+ ### identityId
12
+
13
+ `string`
14
+
15
+ ## Returns
16
+
17
+ `string`
@@ -0,0 +1,17 @@
1
+ [**CBIO Node Runtime Agent API v1.45.5**](../README.md)
2
+
3
+ ***
4
+
5
+ # Function: identityPrivateVaultProfileKey()
6
+
7
+ > **identityPrivateVaultProfileKey**(`identityId`): `string`
8
+
9
+ ## Parameters
10
+
11
+ ### identityId
12
+
13
+ `string`
14
+
15
+ ## Returns
16
+
17
+ `string`
@@ -0,0 +1,17 @@
1
+ [**CBIO Node Runtime Agent API v1.45.5**](../README.md)
2
+
3
+ ***
4
+
5
+ # Function: identityPrivateVaultPublicSealedKey()
6
+
7
+ > **identityPrivateVaultPublicSealedKey**(`identityId`): `string`
8
+
9
+ ## Parameters
10
+
11
+ ### identityId
12
+
13
+ `string`
14
+
15
+ ## Returns
16
+
17
+ `string`
@@ -0,0 +1,21 @@
1
+ [**CBIO Node Runtime Agent API v1.45.5**](../README.md)
2
+
3
+ ***
4
+
5
+ # Function: initializeVaultCustody()
6
+
7
+ > **initializeVaultCustody**(`storage`, `options?`): `Promise`\<[`InitializedVaultCustody`](../interfaces/InitializedVaultCustody.md)\>
8
+
9
+ ## Parameters
10
+
11
+ ### storage
12
+
13
+ [`IStorageProvider`](../interfaces/IStorageProvider.md)
14
+
15
+ ### options?
16
+
17
+ [`InitializeVaultCustodyOptions`](../interfaces/InitializeVaultCustodyOptions.md) = `{}`
18
+
19
+ ## Returns
20
+
21
+ `Promise`\<[`InitializedVaultCustody`](../interfaces/InitializedVaultCustody.md)\>
@@ -0,0 +1,19 @@
1
+ [**CBIO Node Runtime Agent API v1.45.5**](../README.md)
2
+
3
+ ***
4
+
5
+ # Function: listIdentities()
6
+
7
+ > **listIdentities**(`storage`): `Promise`\<`any`[]\>
8
+
9
+ Lists all identities in the workspace with their discovery metadata.
10
+
11
+ ## Parameters
12
+
13
+ ### storage
14
+
15
+ [`IStorageProvider`](../interfaces/IStorageProvider.md)
16
+
17
+ ## Returns
18
+
19
+ `Promise`\<`any`[]\>
@@ -0,0 +1,23 @@
1
+ [**CBIO Node Runtime Agent API v1.45.5**](../README.md)
2
+
3
+ ***
4
+
5
+ # Function: listVaults()
6
+
7
+ > **listVaults**(`storage`): `Promise`\<`object`[]\>
8
+
9
+ Lists all available vaults in the workspace by scanning for signed profiles.
10
+
11
+ ## Parameters
12
+
13
+ ### storage
14
+
15
+ [`IStorageProvider`](../interfaces/IStorageProvider.md)
16
+
17
+ The root workspace storage provider.
18
+
19
+ ## Returns
20
+
21
+ `Promise`\<`object`[]\>
22
+
23
+ A list of vault IDs and their public discovery metadata.
@@ -0,0 +1,29 @@
1
+ [**CBIO Node Runtime Agent API v1.45.5**](../README.md)
2
+
3
+ ***
4
+
5
+ # Function: readIdentityMetadata()
6
+
7
+ > **readIdentityMetadata**(`storage`, `identityId`, `privateKey?`): `Promise`\<`any`\>
8
+
9
+ Metadata reader for identities.
10
+ Discovery info (nickname) can be read with just identityId.
11
+ Full profile requires privateKey.
12
+
13
+ ## Parameters
14
+
15
+ ### storage
16
+
17
+ [`IStorageProvider`](../interfaces/IStorageProvider.md)
18
+
19
+ ### identityId
20
+
21
+ `string`
22
+
23
+ ### privateKey?
24
+
25
+ `string`
26
+
27
+ ## Returns
28
+
29
+ `Promise`\<`any`\>
@@ -0,0 +1,21 @@
1
+ [**CBIO Node Runtime Agent API v1.45.5**](../README.md)
2
+
3
+ ***
4
+
5
+ # Function: readIdentityPrivateVaultChildrenState()
6
+
7
+ > **readIdentityPrivateVaultChildrenState**(`storage`, `identityOrPrivateKey`): `Promise`\<[`IdentityPrivateVaultChildrenState`](../interfaces/IdentityPrivateVaultChildrenState.md)\>
8
+
9
+ ## Parameters
10
+
11
+ ### storage
12
+
13
+ [`IStorageProvider`](../interfaces/IStorageProvider.md)
14
+
15
+ ### identityOrPrivateKey
16
+
17
+ [`IdentityPrivateVaultAccess`](../type-aliases/IdentityPrivateVaultAccess.md)
18
+
19
+ ## Returns
20
+
21
+ `Promise`\<[`IdentityPrivateVaultChildrenState`](../interfaces/IdentityPrivateVaultChildrenState.md)\>
@@ -0,0 +1,21 @@
1
+ [**CBIO Node Runtime Agent API v1.45.5**](../README.md)
2
+
3
+ ***
4
+
5
+ # Function: readIdentityPrivateVaultProfile()
6
+
7
+ > **readIdentityPrivateVaultProfile**(`storage`, `identityOrPrivateKey`): `Promise`\<[`IdentityPrivateVaultProfile`](../interfaces/IdentityPrivateVaultProfile.md) \| `null`\>
8
+
9
+ ## Parameters
10
+
11
+ ### storage
12
+
13
+ [`IStorageProvider`](../interfaces/IStorageProvider.md)
14
+
15
+ ### identityOrPrivateKey
16
+
17
+ [`IdentityPrivateVaultAccess`](../type-aliases/IdentityPrivateVaultAccess.md)
18
+
19
+ ## Returns
20
+
21
+ `Promise`\<[`IdentityPrivateVaultProfile`](../interfaces/IdentityPrivateVaultProfile.md) \| `null`\>
@@ -0,0 +1,25 @@
1
+ [**CBIO Node Runtime Agent API v1.45.5**](../README.md)
2
+
3
+ ***
4
+
5
+ # Function: readVaultProfile()
6
+
7
+ > **readVaultProfile**(`storage`, `vaultWorkingKey`, `vaultId`): `Promise`\<[`VaultProfile`](../interfaces/VaultProfile.md) \| `null`\>
8
+
9
+ ## Parameters
10
+
11
+ ### storage
12
+
13
+ [`IStorageProvider`](../interfaces/IStorageProvider.md)
14
+
15
+ ### vaultWorkingKey
16
+
17
+ `string`
18
+
19
+ ### vaultId
20
+
21
+ `string`
22
+
23
+ ## Returns
24
+
25
+ `Promise`\<[`VaultProfile`](../interfaces/VaultProfile.md) \| `null`\>
@@ -0,0 +1,23 @@
1
+ [**CBIO Node Runtime Agent API v1.45.5**](../README.md)
2
+
3
+ ***
4
+
5
+ # Function: readVaultPublicMetadata()
6
+
7
+ > **readVaultPublicMetadata**(`storage`, `vaultId`): `Promise`\<`Record`\<`string`, `any`\>\>
8
+
9
+ Reads the 'public' metadata of a vault. Requires vaultId but no private key.
10
+
11
+ ## Parameters
12
+
13
+ ### storage
14
+
15
+ [`IStorageProvider`](../interfaces/IStorageProvider.md)
16
+
17
+ ### vaultId
18
+
19
+ `string`
20
+
21
+ ## Returns
22
+
23
+ `Promise`\<`Record`\<`string`, `any`\>\>
@@ -0,0 +1,58 @@
1
+ [**CBIO Node Runtime Agent API v1.45.5**](../README.md)
2
+
3
+ ***
4
+
5
+ # Function: recoverVault()
6
+
7
+ ## Call Signature
8
+
9
+ > **recoverVault**(`storage`, `options`): `Promise`\<[`RecoveredVault`](../interfaces/RecoveredVault.md)\>
10
+
11
+ Reopens an existing vault from storage.
12
+
13
+ ### Parameters
14
+
15
+ #### storage
16
+
17
+ `string` \| [`IStorageProvider`](../interfaces/IStorageProvider.md)
18
+
19
+ Workspace storage where the vault was created.
20
+
21
+ #### options
22
+
23
+ [`RecoverVaultOptions`](../interfaces/RecoverVaultOptions.md)
24
+
25
+ Recovery options (must include `vaultId` and `ownerIdentity`).
26
+
27
+ ### Returns
28
+
29
+ `Promise`\<[`RecoveredVault`](../interfaces/RecoveredVault.md)\>
30
+
31
+ A [RecoveredVault](../interfaces/RecoveredVault.md) instance.
32
+
33
+ ### Example
34
+
35
+ ```ts
36
+ const vault = await recoverVault({
37
+ vaultId: 'vault_123',
38
+ ownerIdentity
39
+ });
40
+ ```
41
+
42
+ ## Call Signature
43
+
44
+ > **recoverVault**(`options`): `Promise`\<[`RecoveredVault`](../interfaces/RecoveredVault.md)\>
45
+
46
+ Recovers an existing vault using the default workspace storage.
47
+
48
+ ### Parameters
49
+
50
+ #### options
51
+
52
+ [`RecoverVaultOptions`](../interfaces/RecoverVaultOptions.md)
53
+
54
+ Recovery options including vaultId and owner identity.
55
+
56
+ ### Returns
57
+
58
+ `Promise`\<[`RecoveredVault`](../interfaces/RecoveredVault.md)\>
@@ -0,0 +1,25 @@
1
+ [**CBIO Node Runtime Agent API v1.45.5**](../README.md)
2
+
3
+ ***
4
+
5
+ # Function: recoverVaultWorkingKey()
6
+
7
+ > **recoverVaultWorkingKey**(`storage`, `vaultRecoveryKey`, `storageKey?`): `Promise`\<`string`\>
8
+
9
+ ## Parameters
10
+
11
+ ### storage
12
+
13
+ [`IStorageProvider`](../interfaces/IStorageProvider.md)
14
+
15
+ ### vaultRecoveryKey
16
+
17
+ `string`
18
+
19
+ ### storageKey?
20
+
21
+ `string` = `DEFAULT_VAULT_KEY_CUSTODY_BLOB_KEY`
22
+
23
+ ## Returns
24
+
25
+ `Promise`\<`string`\>
@@ -0,0 +1,35 @@
1
+ [**CBIO Node Runtime Agent API v1.45.5**](../README.md)
2
+
3
+ ***
4
+
5
+ # Function: restoreIdentity()
6
+
7
+ > **restoreIdentity**(`privateKey`, `options?`): `CreatedIdentity`
8
+
9
+ Restores an identity from an existing private key.
10
+
11
+ ## Parameters
12
+
13
+ ### privateKey
14
+
15
+ `string`
16
+
17
+ The base64url-encoded PKCS#8 private key.
18
+
19
+ ### options?
20
+
21
+ [`RestoreIdentityOptions`](../interfaces/RestoreIdentityOptions.md) = `{}`
22
+
23
+ Optional metadata to attach to the restored object.
24
+
25
+ ## Returns
26
+
27
+ `CreatedIdentity`
28
+
29
+ The reconstructed CreatedIdentity.
30
+
31
+ ## Example
32
+
33
+ ```ts
34
+ const identity = restoreIdentity('MIIB...');
35
+ ```
@@ -0,0 +1,17 @@
1
+ [**CBIO Node Runtime Agent API v1.45.5**](../README.md)
2
+
3
+ ***
4
+
5
+ # Function: toOwnerHttpFlowBoundary()
6
+
7
+ > **toOwnerHttpFlowBoundary**(`flow`): [`OwnerHttpFlowBoundary`](../interfaces/OwnerHttpFlowBoundary.md)
8
+
9
+ ## Parameters
10
+
11
+ ### flow
12
+
13
+ `Pick`\<[`CustomHttpFlowDefinition`](../interfaces/CustomHttpFlowDefinition.md), `"mode"` \| `"targetUrl"` \| `"method"` \| `"responseVisibility"` \| `"responseSecret"`\>
14
+
15
+ ## Returns
16
+
17
+ [`OwnerHttpFlowBoundary`](../interfaces/OwnerHttpFlowBoundary.md)
@@ -0,0 +1,33 @@
1
+ [**CBIO Node Runtime Agent API v1.45.5**](../README.md)
2
+
3
+ ***
4
+
5
+ # Function: updateVaultMetadata()
6
+
7
+ > **updateVaultMetadata**(`vault`, `options`): `Promise`\<`void`\>
8
+
9
+ Updates the metadata (like nickname) of an existing vault.
10
+
11
+ ## Parameters
12
+
13
+ ### vault
14
+
15
+ [`CreatedVault`](../interfaces/CreatedVault.md) \| [`RecoveredVault`](../interfaces/RecoveredVault.md)
16
+
17
+ ### options
18
+
19
+ #### nickname?
20
+
21
+ `string`
22
+
23
+ #### ownerIdentity
24
+
25
+ `CreatedIdentity`
26
+
27
+ #### publicMetadata?
28
+
29
+ `Record`\<`string`, `any`\>
30
+
31
+ ## Returns
32
+
33
+ `Promise`\<`void`\>
@@ -0,0 +1,31 @@
1
+ [**CBIO Node Runtime Agent API v1.45.5**](../README.md)
2
+
3
+ ***
4
+
5
+ # Function: wrapVaultCoreAsVaultService()
6
+
7
+ > **wrapVaultCoreAsVaultService**(`core`, `options?`): [`VaultService`](../interfaces/VaultService.md)
8
+
9
+ ## Parameters
10
+
11
+ ### core
12
+
13
+ [`VaultCore`](../interfaces/VaultCore.md)
14
+
15
+ ### options?
16
+
17
+ #### clock?
18
+
19
+ [`Clock`](../interfaces/Clock.md)
20
+
21
+ #### customFlows?
22
+
23
+ [`VaultCustomFlowResolver`](../interfaces/VaultCustomFlowResolver.md)
24
+
25
+ #### fetchImpl?
26
+
27
+ \{(`input`, `init?`): `Promise`\<`Response`\>; (`input`, `init?`): `Promise`\<`Response`\>; \}
28
+
29
+ ## Returns
30
+
31
+ [`VaultService`](../interfaces/VaultService.md)
@@ -0,0 +1,29 @@
1
+ [**CBIO Node Runtime Agent API v1.45.5**](../README.md)
2
+
3
+ ***
4
+
5
+ # Function: writeVaultProfile()
6
+
7
+ > **writeVaultProfile**(`storage`, `profile`, `vaultWorkingKey`, `vaultId`): `Promise`\<`void`\>
8
+
9
+ ## Parameters
10
+
11
+ ### storage
12
+
13
+ [`IStorageProvider`](../interfaces/IStorageProvider.md)
14
+
15
+ ### profile
16
+
17
+ [`VaultProfile`](../interfaces/VaultProfile.md)
18
+
19
+ ### vaultWorkingKey
20
+
21
+ `string`
22
+
23
+ ### vaultId
24
+
25
+ `string`
26
+
27
+ ## Returns
28
+
29
+ `Promise`\<`void`\>