@the-ai-company/cbio-node-runtime 1.42.0 → 1.45.2

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 (232) hide show
  1. package/README.md +1 -0
  2. package/dist/clients/agent/client.d.ts +35 -0
  3. package/dist/clients/agent/client.js +15 -0
  4. package/dist/clients/agent/client.js.map +1 -1
  5. package/dist/clients/owner/client.d.ts +60 -0
  6. package/dist/clients/owner/client.js +14 -0
  7. package/dist/clients/owner/client.js.map +1 -1
  8. package/dist/clients/owner/index.d.ts +1 -1
  9. package/dist/runtime/bootstrap.d.ts +43 -7
  10. package/dist/runtime/bootstrap.js +12 -1
  11. package/dist/runtime/bootstrap.js.map +1 -1
  12. package/dist/runtime/identity.d.ts +47 -0
  13. package/dist/runtime/identity.js +25 -0
  14. package/dist/runtime/identity.js.map +1 -1
  15. package/dist/runtime/index.d.ts +9 -11
  16. package/dist/runtime/index.js +2 -0
  17. package/dist/runtime/index.js.map +1 -1
  18. package/dist/runtime/private-vault.d.ts +1 -2
  19. package/dist/vault-core/contracts.d.ts +32 -4
  20. package/dist/vault-core/contracts.js +31 -1
  21. package/dist/vault-core/contracts.js.map +1 -1
  22. package/dist/vault-core/core.js +28 -27
  23. package/dist/vault-core/core.js.map +1 -1
  24. package/dist/vault-core/defaults.js +3 -2
  25. package/dist/vault-core/defaults.js.map +1 -1
  26. package/dist/vault-core/index.d.ts +1 -0
  27. package/dist/vault-core/index.js +1 -0
  28. package/dist/vault-core/index.js.map +1 -1
  29. package/dist/vault-ingress/index.d.ts +2 -0
  30. package/dist/vault-ingress/index.js +4 -2
  31. package/dist/vault-ingress/index.js.map +1 -1
  32. package/dist/vault-ingress/remote-transport.d.ts +12 -0
  33. package/dist/vault-ingress/remote-transport.js +45 -0
  34. package/dist/vault-ingress/remote-transport.js.map +1 -0
  35. package/dist/vault-ingress/server-utils.d.ts +10 -0
  36. package/dist/vault-ingress/server-utils.js +18 -0
  37. package/dist/vault-ingress/server-utils.js.map +1 -0
  38. package/docs/ARCHITECTURE.md +8 -0
  39. package/docs/PROCESS_ISOLATION.md +56 -0
  40. package/docs/api/README.md +211 -0
  41. package/docs/api/classes/AgentDispatchHttpTransport.md +52 -0
  42. package/docs/api/classes/DefaultPolicyEngine.md +117 -0
  43. package/docs/api/classes/DefaultVaultCore.md +405 -0
  44. package/docs/api/classes/FsStorageProvider.md +192 -0
  45. package/docs/api/classes/HttpDispatchExecutor.md +63 -0
  46. package/docs/api/classes/IdentityError.md +62 -0
  47. package/docs/api/classes/InMemoryAgentIdentityRegistry.md +83 -0
  48. package/docs/api/classes/InMemoryAuditLog.md +59 -0
  49. package/docs/api/classes/InMemoryCapabilityRegistry.md +91 -0
  50. package/docs/api/classes/InMemoryCapabilityRevocationRegistry.md +75 -0
  51. package/docs/api/classes/InMemoryCustomHttpFlowRegistry.md +63 -0
  52. package/docs/api/classes/InMemoryOwnerIdentityRegistry.md +83 -0
  53. package/docs/api/classes/InMemoryRateLimitStore.md +51 -0
  54. package/docs/api/classes/InMemoryReplayGuard.md +45 -0
  55. package/docs/api/classes/InMemorySecretCustody.md +83 -0
  56. package/docs/api/classes/InMemorySecretRepository.md +99 -0
  57. package/docs/api/classes/LocalSigner.md +59 -0
  58. package/docs/api/classes/LocalVaultTransport.md +45 -0
  59. package/docs/api/classes/MemoryStorageProvider.md +160 -0
  60. package/docs/api/classes/PersistentVaultAgentIdentityRegistry.md +101 -0
  61. package/docs/api/classes/PersistentVaultAuditLog.md +73 -0
  62. package/docs/api/classes/PersistentVaultCapabilityRegistry.md +109 -0
  63. package/docs/api/classes/PersistentVaultCapabilityRevocationRegistry.md +93 -0
  64. package/docs/api/classes/PersistentVaultCustomHttpFlowRegistry.md +81 -0
  65. package/docs/api/classes/PersistentVaultOwnerIdentityRegistry.md +101 -0
  66. package/docs/api/classes/PersistentVaultRateLimitStore.md +69 -0
  67. package/docs/api/classes/PersistentVaultReplayGuard.md +61 -0
  68. package/docs/api/classes/PersistentVaultSecretCustody.md +97 -0
  69. package/docs/api/classes/PersistentVaultSecretRepository.md +117 -0
  70. package/docs/api/classes/RandomIdGenerator.md +65 -0
  71. package/docs/api/classes/SignatureAgentProofVerifier.md +49 -0
  72. package/docs/api/classes/SignatureOwnerProofVerifier.md +249 -0
  73. package/docs/api/classes/SystemClock.md +33 -0
  74. package/docs/api/classes/VaultCoreError.md +39 -0
  75. package/docs/api/enumerations/AuditAction.md +95 -0
  76. package/docs/api/enumerations/AuditOutcome.md +29 -0
  77. package/docs/api/enumerations/DispatchStatus.md +23 -0
  78. package/docs/api/enumerations/IdentityErrorCode.md +121 -0
  79. package/docs/api/functions/createAgentClient.md +33 -0
  80. package/docs/api/functions/createChildIdentity.md +25 -0
  81. package/docs/api/functions/createDefaultVaultCoreDependencies.md +77 -0
  82. package/docs/api/functions/createIdentity.md +30 -0
  83. package/docs/api/functions/createOwnerHttpFlowBoundary.md +17 -0
  84. package/docs/api/functions/createPersistentVaultCoreDependencies.md +85 -0
  85. package/docs/api/functions/createStandardAcquireBoundary.md +31 -0
  86. package/docs/api/functions/createStandardDispatchBoundary.md +23 -0
  87. package/docs/api/functions/createVault.md +58 -0
  88. package/docs/api/functions/createVaultClient.md +32 -0
  89. package/docs/api/functions/createVaultCore.md +17 -0
  90. package/docs/api/functions/createVaultService.md +31 -0
  91. package/docs/api/functions/createWorkspaceStorage.md +17 -0
  92. package/docs/api/functions/deriveChildIdentity.md +41 -0
  93. package/docs/api/functions/deriveIdentityId.md +17 -0
  94. package/docs/api/functions/ensureIdentityPrivateVault.md +21 -0
  95. package/docs/api/functions/getDefaultWorkspaceDir.md +11 -0
  96. package/docs/api/functions/handleVaultHttpDispatch.md +30 -0
  97. package/docs/api/functions/identityPrivateVaultChildrenKey.md +17 -0
  98. package/docs/api/functions/identityPrivateVaultPrefix.md +17 -0
  99. package/docs/api/functions/identityPrivateVaultProfileKey.md +17 -0
  100. package/docs/api/functions/identityPrivateVaultPublicSealedKey.md +17 -0
  101. package/docs/api/functions/initializeVaultCustody.md +21 -0
  102. package/docs/api/functions/listIdentities.md +19 -0
  103. package/docs/api/functions/listVaults.md +23 -0
  104. package/docs/api/functions/readIdentityMetadata.md +29 -0
  105. package/docs/api/functions/readIdentityPrivateVaultChildrenState.md +21 -0
  106. package/docs/api/functions/readIdentityPrivateVaultProfile.md +21 -0
  107. package/docs/api/functions/readVaultProfile.md +25 -0
  108. package/docs/api/functions/readVaultPublicMetadata.md +23 -0
  109. package/docs/api/functions/recoverVault.md +58 -0
  110. package/docs/api/functions/recoverVaultWorkingKey.md +25 -0
  111. package/docs/api/functions/restoreIdentity.md +35 -0
  112. package/docs/api/functions/toOwnerHttpFlowBoundary.md +17 -0
  113. package/docs/api/functions/updateVaultMetadata.md +33 -0
  114. package/docs/api/functions/wrapVaultCoreAsVaultService.md +31 -0
  115. package/docs/api/functions/writeVaultProfile.md +29 -0
  116. package/docs/api/interfaces/AgentCapability.md +103 -0
  117. package/docs/api/interfaces/AgentClient.md +41 -0
  118. package/docs/api/interfaces/AgentDispatchIntent.md +41 -0
  119. package/docs/api/interfaces/AgentDispatchTransport.md +21 -0
  120. package/docs/api/interfaces/AgentIdentity.md +11 -0
  121. package/docs/api/interfaces/AgentIdentityRecord.md +23 -0
  122. package/docs/api/interfaces/AgentIdentityRegistry.md +57 -0
  123. package/docs/api/interfaces/AgentProof.md +29 -0
  124. package/docs/api/interfaces/AgentProofVerifier.md +21 -0
  125. package/docs/api/interfaces/AgentSigner.md +21 -0
  126. package/docs/api/interfaces/AuditEntry.md +89 -0
  127. package/docs/api/interfaces/AuditLog.md +37 -0
  128. package/docs/api/interfaces/AuditQuery.md +29 -0
  129. package/docs/api/interfaces/CapabilityRegistry.md +65 -0
  130. package/docs/api/interfaces/CapabilityRevocationRegistry.md +53 -0
  131. package/docs/api/interfaces/CbioRuntime.md +886 -0
  132. package/docs/api/interfaces/ChildIdentity.md +77 -0
  133. package/docs/api/interfaces/Clock.md +15 -0
  134. package/docs/api/interfaces/CreateAgentClientOptions.md +41 -0
  135. package/docs/api/interfaces/CreateChildIdentityOptions.md +19 -0
  136. package/docs/api/interfaces/CreateDefaultVaultCoreDependenciesOptions.md +85 -0
  137. package/docs/api/interfaces/CreateIdentityOptions.md +15 -0
  138. package/docs/api/interfaces/CreatePersistentVaultCoreDependenciesOptions.md +115 -0
  139. package/docs/api/interfaces/CreateVaultClientOptions.md +29 -0
  140. package/docs/api/interfaces/CreateVaultOptions.md +177 -0
  141. package/docs/api/interfaces/CreatedVault.md +39 -0
  142. package/docs/api/interfaces/CustomHttpFlowDefinition.md +71 -0
  143. package/docs/api/interfaces/CustomHttpFlowRegistry.md +41 -0
  144. package/docs/api/interfaces/DefaultPolicyEngineOptions.md +49 -0
  145. package/docs/api/interfaces/DeriveIdentityOptions.md +11 -0
  146. package/docs/api/interfaces/DispatchAuthorization.md +35 -0
  147. package/docs/api/interfaces/DispatchInstruction.md +47 -0
  148. package/docs/api/interfaces/DispatchRequest.md +77 -0
  149. package/docs/api/interfaces/DispatchResult.md +53 -0
  150. package/docs/api/interfaces/IStorageProvider.md +144 -0
  151. package/docs/api/interfaces/IdGenerator.md +39 -0
  152. package/docs/api/interfaces/IdentityPrivateVaultChildRecord.md +35 -0
  153. package/docs/api/interfaces/IdentityPrivateVaultChildrenState.md +17 -0
  154. package/docs/api/interfaces/IdentityPrivateVaultProfile.md +35 -0
  155. package/docs/api/interfaces/InitializeVaultCustodyOptions.md +29 -0
  156. package/docs/api/interfaces/InitializedVaultCustody.md +23 -0
  157. package/docs/api/interfaces/IssuerWriteSecretCommand.md +59 -0
  158. package/docs/api/interfaces/OwnerAuditRequest.md +47 -0
  159. package/docs/api/interfaces/OwnerDefineSecretTargetsCommand.md +53 -0
  160. package/docs/api/interfaces/OwnerDefineSecretTargetsInput.md +23 -0
  161. package/docs/api/interfaces/OwnerDeleteSecretCommand.md +47 -0
  162. package/docs/api/interfaces/OwnerExportSecretRequest.md +47 -0
  163. package/docs/api/interfaces/OwnerHttpFlowBoundary.md +51 -0
  164. package/docs/api/interfaces/OwnerIdentityRecord.md +23 -0
  165. package/docs/api/interfaces/OwnerIdentityRegistry.md +57 -0
  166. package/docs/api/interfaces/OwnerListAgentsRequest.md +41 -0
  167. package/docs/api/interfaces/OwnerListCapabilitiesRequest.md +47 -0
  168. package/docs/api/interfaces/OwnerProof.md +29 -0
  169. package/docs/api/interfaces/OwnerProofVerifier.md +181 -0
  170. package/docs/api/interfaces/OwnerRegisterAgentIdentityCommand.md +47 -0
  171. package/docs/api/interfaces/OwnerRegisterCapabilityCommand.md +47 -0
  172. package/docs/api/interfaces/OwnerRegisterCustomHttpFlowCommand.md +83 -0
  173. package/docs/api/interfaces/OwnerRevokeCapabilityCommand.md +53 -0
  174. package/docs/api/interfaces/OwnerSecretExport.md +35 -0
  175. package/docs/api/interfaces/OwnerSecretTargetBinding.md +35 -0
  176. package/docs/api/interfaces/OwnerStoreSecretInput.md +23 -0
  177. package/docs/api/interfaces/OwnerWriteSecretCommand.md +65 -0
  178. package/docs/api/interfaces/OwnerWriteSecretInput.md +29 -0
  179. package/docs/api/interfaces/PolicyEngine.md +81 -0
  180. package/docs/api/interfaces/RateLimitStore.md +33 -0
  181. package/docs/api/interfaces/RecoverVaultOptions.md +165 -0
  182. package/docs/api/interfaces/RecoveredVault.md +49 -0
  183. package/docs/api/interfaces/ReplayGuard.md +21 -0
  184. package/docs/api/interfaces/RestoreIdentityOptions.md +11 -0
  185. package/docs/api/interfaces/SecretAlias.md +11 -0
  186. package/docs/api/interfaces/SecretCustody.md +57 -0
  187. package/docs/api/interfaces/SecretId.md +11 -0
  188. package/docs/api/interfaces/SecretRecord.md +53 -0
  189. package/docs/api/interfaces/SecretRepository.md +69 -0
  190. package/docs/api/interfaces/SecretVersion.md +11 -0
  191. package/docs/api/interfaces/SignatureAgentProofVerifierOptions.md +21 -0
  192. package/docs/api/interfaces/Signer.md +31 -0
  193. package/docs/api/interfaces/TrustedExecutor.md +31 -0
  194. package/docs/api/interfaces/VaultAcquireSecretInput.md +53 -0
  195. package/docs/api/interfaces/VaultAcquireSecretResult.md +41 -0
  196. package/docs/api/interfaces/VaultAgentDispatchErrorResponse.md +25 -0
  197. package/docs/api/interfaces/VaultAgentDispatchRequest.md +75 -0
  198. package/docs/api/interfaces/VaultAgentDispatchResponse.md +17 -0
  199. package/docs/api/interfaces/VaultAuditQueryInput.md +29 -0
  200. package/docs/api/interfaces/VaultClient.md +234 -0
  201. package/docs/api/interfaces/VaultCore.md +311 -0
  202. package/docs/api/interfaces/VaultCoreDependencies.md +95 -0
  203. package/docs/api/interfaces/VaultCustomFlowResolver.md +25 -0
  204. package/docs/api/interfaces/VaultDeleteSecretInput.md +17 -0
  205. package/docs/api/interfaces/VaultExportSecretInput.md +17 -0
  206. package/docs/api/interfaces/VaultGrantCapabilityInput.md +17 -0
  207. package/docs/api/interfaces/VaultId.md +11 -0
  208. package/docs/api/interfaces/VaultIdentity.md +11 -0
  209. package/docs/api/interfaces/VaultListAgentsInput.md +11 -0
  210. package/docs/api/interfaces/VaultListCapabilitiesInput.md +17 -0
  211. package/docs/api/interfaces/VaultObject.md +33 -0
  212. package/docs/api/interfaces/VaultPrincipal.md +17 -0
  213. package/docs/api/interfaces/VaultProfile.md +23 -0
  214. package/docs/api/interfaces/VaultPublicMetadata.md +25 -0
  215. package/docs/api/interfaces/VaultRegisterAgentInput.md +23 -0
  216. package/docs/api/interfaces/VaultRegisterFlowInput.md +83 -0
  217. package/docs/api/interfaces/VaultRevokeCapabilityInput.md +23 -0
  218. package/docs/api/interfaces/VaultService.md +251 -0
  219. package/docs/api/interfaces/VaultSigner.md +21 -0
  220. package/docs/api/interfaces/VaultTargetBinding.md +35 -0
  221. package/docs/api/type-aliases/AgentCapabilityEnvelope.md +7 -0
  222. package/docs/api/type-aliases/CbioRuntimeModule.md +9 -0
  223. package/docs/api/type-aliases/IdentityPrivateVaultAccess.md +7 -0
  224. package/docs/api/type-aliases/RedactedResponseShape.md +7 -0
  225. package/docs/api/type-aliases/VaultAcquireSecretFlow.md +7 -0
  226. package/docs/api/type-aliases/VaultPrincipalKind.md +7 -0
  227. package/docs/api/type-aliases/VaultWriteSecretCommand.md +7 -0
  228. package/docs/api/variables/DEFAULT_VAULT_KEY_CUSTODY_BLOB_KEY.md +7 -0
  229. package/docs/zh/PROCESS_ISOLATION.md +58 -0
  230. package/docs/zh/README.md +5 -0
  231. package/examples/process-isolation.ts +155 -0
  232. package/package.json +10 -2
@@ -0,0 +1,83 @@
1
+ [**CBIO Node Runtime Agent API v1.45.2**](../README.md)
2
+
3
+ ***
4
+
5
+ # Class: InMemorySecretCustody
6
+
7
+ ## Implements
8
+
9
+ - [`SecretCustody`](../interfaces/SecretCustody.md)
10
+
11
+ ## Constructors
12
+
13
+ ### Constructor
14
+
15
+ > **new InMemorySecretCustody**(): `InMemorySecretCustody`
16
+
17
+ #### Returns
18
+
19
+ `InMemorySecretCustody`
20
+
21
+ ## Methods
22
+
23
+ ### delete()
24
+
25
+ > **delete**(`secretId`): `Promise`\<`void`\>
26
+
27
+ #### Parameters
28
+
29
+ ##### secretId
30
+
31
+ [`SecretId`](../interfaces/SecretId.md)
32
+
33
+ #### Returns
34
+
35
+ `Promise`\<`void`\>
36
+
37
+ #### Implementation of
38
+
39
+ [`SecretCustody`](../interfaces/SecretCustody.md).[`delete`](../interfaces/SecretCustody.md#delete)
40
+
41
+ ***
42
+
43
+ ### load()
44
+
45
+ > **load**(`secretId`): `Promise`\<`string` \| `null`\>
46
+
47
+ #### Parameters
48
+
49
+ ##### secretId
50
+
51
+ [`SecretId`](../interfaces/SecretId.md)
52
+
53
+ #### Returns
54
+
55
+ `Promise`\<`string` \| `null`\>
56
+
57
+ #### Implementation of
58
+
59
+ [`SecretCustody`](../interfaces/SecretCustody.md).[`load`](../interfaces/SecretCustody.md#load)
60
+
61
+ ***
62
+
63
+ ### store()
64
+
65
+ > **store**(`secretId`, `plaintext`): `Promise`\<`void`\>
66
+
67
+ #### Parameters
68
+
69
+ ##### secretId
70
+
71
+ [`SecretId`](../interfaces/SecretId.md)
72
+
73
+ ##### plaintext
74
+
75
+ `string`
76
+
77
+ #### Returns
78
+
79
+ `Promise`\<`void`\>
80
+
81
+ #### Implementation of
82
+
83
+ [`SecretCustody`](../interfaces/SecretCustody.md).[`store`](../interfaces/SecretCustody.md#store)
@@ -0,0 +1,99 @@
1
+ [**CBIO Node Runtime Agent API v1.45.2**](../README.md)
2
+
3
+ ***
4
+
5
+ # Class: InMemorySecretRepository
6
+
7
+ ## Implements
8
+
9
+ - [`SecretRepository`](../interfaces/SecretRepository.md)
10
+
11
+ ## Constructors
12
+
13
+ ### Constructor
14
+
15
+ > **new InMemorySecretRepository**(): `InMemorySecretRepository`
16
+
17
+ #### Returns
18
+
19
+ `InMemorySecretRepository`
20
+
21
+ ## Methods
22
+
23
+ ### delete()
24
+
25
+ > **delete**(`secretId`): `Promise`\<`void`\>
26
+
27
+ #### Parameters
28
+
29
+ ##### secretId
30
+
31
+ [`SecretId`](../interfaces/SecretId.md)
32
+
33
+ #### Returns
34
+
35
+ `Promise`\<`void`\>
36
+
37
+ #### Implementation of
38
+
39
+ [`SecretRepository`](../interfaces/SecretRepository.md).[`delete`](../interfaces/SecretRepository.md#delete)
40
+
41
+ ***
42
+
43
+ ### getByAlias()
44
+
45
+ > **getByAlias**(`alias`): `Promise`\<[`SecretRecord`](../interfaces/SecretRecord.md) \| `null`\>
46
+
47
+ #### Parameters
48
+
49
+ ##### alias
50
+
51
+ [`SecretAlias`](../interfaces/SecretAlias.md)
52
+
53
+ #### Returns
54
+
55
+ `Promise`\<[`SecretRecord`](../interfaces/SecretRecord.md) \| `null`\>
56
+
57
+ #### Implementation of
58
+
59
+ [`SecretRepository`](../interfaces/SecretRepository.md).[`getByAlias`](../interfaces/SecretRepository.md#getbyalias)
60
+
61
+ ***
62
+
63
+ ### getById()
64
+
65
+ > **getById**(`secretId`): `Promise`\<[`SecretRecord`](../interfaces/SecretRecord.md) \| `null`\>
66
+
67
+ #### Parameters
68
+
69
+ ##### secretId
70
+
71
+ [`SecretId`](../interfaces/SecretId.md)
72
+
73
+ #### Returns
74
+
75
+ `Promise`\<[`SecretRecord`](../interfaces/SecretRecord.md) \| `null`\>
76
+
77
+ #### Implementation of
78
+
79
+ [`SecretRepository`](../interfaces/SecretRepository.md).[`getById`](../interfaces/SecretRepository.md#getbyid)
80
+
81
+ ***
82
+
83
+ ### save()
84
+
85
+ > **save**(`record`): `Promise`\<`void`\>
86
+
87
+ #### Parameters
88
+
89
+ ##### record
90
+
91
+ [`SecretRecord`](../interfaces/SecretRecord.md)
92
+
93
+ #### Returns
94
+
95
+ `Promise`\<`void`\>
96
+
97
+ #### Implementation of
98
+
99
+ [`SecretRepository`](../interfaces/SecretRepository.md).[`save`](../interfaces/SecretRepository.md#save)
@@ -0,0 +1,59 @@
1
+ [**CBIO Node Runtime Agent API v1.45.2**](../README.md)
2
+
3
+ ***
4
+
5
+ # Class: LocalSigner
6
+
7
+ ## Implements
8
+
9
+ - [`Signer`](../interfaces/Signer.md)
10
+
11
+ ## Constructors
12
+
13
+ ### Constructor
14
+
15
+ > **new LocalSigner**(`keyPair`): `LocalSigner`
16
+
17
+ #### Parameters
18
+
19
+ ##### keyPair
20
+
21
+ `KeyPair`
22
+
23
+ #### Returns
24
+
25
+ `LocalSigner`
26
+
27
+ ## Methods
28
+
29
+ ### getPublicKey()
30
+
31
+ > **getPublicKey**(): `Promise`\<`string`\>
32
+
33
+ #### Returns
34
+
35
+ `Promise`\<`string`\>
36
+
37
+ #### Implementation of
38
+
39
+ [`Signer`](../interfaces/Signer.md).[`getPublicKey`](../interfaces/Signer.md#getpublickey)
40
+
41
+ ***
42
+
43
+ ### sign()
44
+
45
+ > **sign**(`nonce`): `Promise`\<`string`\>
46
+
47
+ #### Parameters
48
+
49
+ ##### nonce
50
+
51
+ `string`
52
+
53
+ #### Returns
54
+
55
+ `Promise`\<`string`\>
56
+
57
+ #### Implementation of
58
+
59
+ [`Signer`](../interfaces/Signer.md).[`sign`](../interfaces/Signer.md#sign)
@@ -0,0 +1,45 @@
1
+ [**CBIO Node Runtime Agent API v1.45.2**](../README.md)
2
+
3
+ ***
4
+
5
+ # Class: LocalVaultTransport
6
+
7
+ ## Implements
8
+
9
+ - [`AgentDispatchTransport`](../interfaces/AgentDispatchTransport.md)
10
+
11
+ ## Constructors
12
+
13
+ ### Constructor
14
+
15
+ > **new LocalVaultTransport**(`_vault`): `LocalVaultTransport`
16
+
17
+ #### Parameters
18
+
19
+ ##### \_vault
20
+
21
+ [`VaultService`](../interfaces/VaultService.md)
22
+
23
+ #### Returns
24
+
25
+ `LocalVaultTransport`
26
+
27
+ ## Methods
28
+
29
+ ### dispatch()
30
+
31
+ > **dispatch**(`request`): `Promise`\<[`DispatchResult`](../interfaces/DispatchResult.md)\>
32
+
33
+ #### Parameters
34
+
35
+ ##### request
36
+
37
+ [`DispatchRequest`](../interfaces/DispatchRequest.md)
38
+
39
+ #### Returns
40
+
41
+ `Promise`\<[`DispatchResult`](../interfaces/DispatchResult.md)\>
42
+
43
+ #### Implementation of
44
+
45
+ [`AgentDispatchTransport`](../interfaces/AgentDispatchTransport.md).[`dispatch`](../interfaces/AgentDispatchTransport.md#dispatch)
@@ -0,0 +1,160 @@
1
+ [**CBIO Node Runtime Agent API v1.45.2**](../README.md)
2
+
3
+ ***
4
+
5
+ # Class: MemoryStorageProvider
6
+
7
+ Pluggable storage layer for vault persistence.
8
+ Enables Cloud, Mobile, and Edge runtimes to use custom storage.
9
+
10
+ ## Implements
11
+
12
+ - [`IStorageProvider`](../interfaces/IStorageProvider.md)
13
+
14
+ ## Constructors
15
+
16
+ ### Constructor
17
+
18
+ > **new MemoryStorageProvider**(): `MemoryStorageProvider`
19
+
20
+ #### Returns
21
+
22
+ `MemoryStorageProvider`
23
+
24
+ ## Methods
25
+
26
+ ### delete()
27
+
28
+ > **delete**(`key`): `Promise`\<`void`\>
29
+
30
+ #### Parameters
31
+
32
+ ##### key
33
+
34
+ `string`
35
+
36
+ #### Returns
37
+
38
+ `Promise`\<`void`\>
39
+
40
+ #### Implementation of
41
+
42
+ [`IStorageProvider`](../interfaces/IStorageProvider.md).[`delete`](../interfaces/IStorageProvider.md#delete)
43
+
44
+ ***
45
+
46
+ ### has()
47
+
48
+ > **has**(`key`): `Promise`\<`boolean`\>
49
+
50
+ #### Parameters
51
+
52
+ ##### key
53
+
54
+ `string`
55
+
56
+ #### Returns
57
+
58
+ `Promise`\<`boolean`\>
59
+
60
+ #### Implementation of
61
+
62
+ [`IStorageProvider`](../interfaces/IStorageProvider.md).[`has`](../interfaces/IStorageProvider.md#has)
63
+
64
+ ***
65
+
66
+ ### list()
67
+
68
+ > **list**(`prefix`): `Promise`\<`string`[]\>
69
+
70
+ Optional. Returns sub-keys (names) under a given prefix.
71
+
72
+ #### Parameters
73
+
74
+ ##### prefix
75
+
76
+ `string`
77
+
78
+ #### Returns
79
+
80
+ `Promise`\<`string`[]\>
81
+
82
+ #### Implementation of
83
+
84
+ [`IStorageProvider`](../interfaces/IStorageProvider.md).[`list`](../interfaces/IStorageProvider.md#list)
85
+
86
+ ***
87
+
88
+ ### read()
89
+
90
+ > **read**(`key`): `Promise`\<`Buffer`\<`ArrayBufferLike`\> \| `null`\>
91
+
92
+ #### Parameters
93
+
94
+ ##### key
95
+
96
+ `string`
97
+
98
+ #### Returns
99
+
100
+ `Promise`\<`Buffer`\<`ArrayBufferLike`\> \| `null`\>
101
+
102
+ #### Implementation of
103
+
104
+ [`IStorageProvider`](../interfaces/IStorageProvider.md).[`read`](../interfaces/IStorageProvider.md#read)
105
+
106
+ ***
107
+
108
+ ### withLock()
109
+
110
+ > **withLock**\<`T`\>(`key`, `task`): `Promise`\<`T`\>
111
+
112
+ Optional. If present, used to serialize read-modify-write sequences across writers.
113
+
114
+ #### Type Parameters
115
+
116
+ ##### T
117
+
118
+ `T`
119
+
120
+ #### Parameters
121
+
122
+ ##### key
123
+
124
+ `string`
125
+
126
+ ##### task
127
+
128
+ () => `Promise`\<`T`\>
129
+
130
+ #### Returns
131
+
132
+ `Promise`\<`T`\>
133
+
134
+ #### Implementation of
135
+
136
+ [`IStorageProvider`](../interfaces/IStorageProvider.md).[`withLock`](../interfaces/IStorageProvider.md#withlock)
137
+
138
+ ***
139
+
140
+ ### write()
141
+
142
+ > **write**(`key`, `data`): `Promise`\<`void`\>
143
+
144
+ #### Parameters
145
+
146
+ ##### key
147
+
148
+ `string`
149
+
150
+ ##### data
151
+
152
+ `Buffer`
153
+
154
+ #### Returns
155
+
156
+ `Promise`\<`void`\>
157
+
158
+ #### Implementation of
159
+
160
+ [`IStorageProvider`](../interfaces/IStorageProvider.md).[`write`](../interfaces/IStorageProvider.md#write)
@@ -0,0 +1,101 @@
1
+ [**CBIO Node Runtime Agent API v1.45.2**](../README.md)
2
+
3
+ ***
4
+
5
+ # Class: PersistentVaultAgentIdentityRegistry
6
+
7
+ ## Implements
8
+
9
+ - [`AgentIdentityRegistry`](../interfaces/AgentIdentityRegistry.md)
10
+
11
+ ## Constructors
12
+
13
+ ### Constructor
14
+
15
+ > **new PersistentVaultAgentIdentityRegistry**(`storage`, `vaultWorkingKey`, `key?`, `_lockKey?`): `FileAgentIdentityRegistry`
16
+
17
+ #### Parameters
18
+
19
+ ##### storage
20
+
21
+ [`IStorageProvider`](../interfaces/IStorageProvider.md)
22
+
23
+ ##### vaultWorkingKey
24
+
25
+ `string`
26
+
27
+ ##### key?
28
+
29
+ `string` = `"vault/sealed/identities/agents.sealed"`
30
+
31
+ ##### \_lockKey?
32
+
33
+ `string` = `"vault/sealed/locks/agent-identities"`
34
+
35
+ #### Returns
36
+
37
+ `FileAgentIdentityRegistry`
38
+
39
+ ## Methods
40
+
41
+ ### get()
42
+
43
+ > **get**(`vaultId`, `agentId`): `Promise`\<[`AgentIdentityRecord`](../interfaces/AgentIdentityRecord.md) \| `null`\>
44
+
45
+ #### Parameters
46
+
47
+ ##### vaultId
48
+
49
+ [`VaultId`](../interfaces/VaultId.md)
50
+
51
+ ##### agentId
52
+
53
+ `string`
54
+
55
+ #### Returns
56
+
57
+ `Promise`\<[`AgentIdentityRecord`](../interfaces/AgentIdentityRecord.md) \| `null`\>
58
+
59
+ #### Implementation of
60
+
61
+ [`AgentIdentityRegistry`](../interfaces/AgentIdentityRegistry.md).[`get`](../interfaces/AgentIdentityRegistry.md#get)
62
+
63
+ ***
64
+
65
+ ### list()
66
+
67
+ > **list**(`vaultId`): `Promise`\<readonly [`AgentIdentityRecord`](../interfaces/AgentIdentityRecord.md)[]\>
68
+
69
+ #### Parameters
70
+
71
+ ##### vaultId
72
+
73
+ [`VaultId`](../interfaces/VaultId.md)
74
+
75
+ #### Returns
76
+
77
+ `Promise`\<readonly [`AgentIdentityRecord`](../interfaces/AgentIdentityRecord.md)[]\>
78
+
79
+ #### Implementation of
80
+
81
+ [`AgentIdentityRegistry`](../interfaces/AgentIdentityRegistry.md).[`list`](../interfaces/AgentIdentityRegistry.md#list)
82
+
83
+ ***
84
+
85
+ ### register()
86
+
87
+ > **register**(`identity`): `Promise`\<`void`\>
88
+
89
+ #### Parameters
90
+
91
+ ##### identity
92
+
93
+ [`AgentIdentityRecord`](../interfaces/AgentIdentityRecord.md)
94
+
95
+ #### Returns
96
+
97
+ `Promise`\<`void`\>
98
+
99
+ #### Implementation of
100
+
101
+ [`AgentIdentityRegistry`](../interfaces/AgentIdentityRegistry.md).[`register`](../interfaces/AgentIdentityRegistry.md#register)
@@ -0,0 +1,73 @@
1
+ [**CBIO Node Runtime Agent API v1.45.2**](../README.md)
2
+
3
+ ***
4
+
5
+ # Class: PersistentVaultAuditLog
6
+
7
+ ## Implements
8
+
9
+ - [`AuditLog`](../interfaces/AuditLog.md)
10
+
11
+ ## Constructors
12
+
13
+ ### Constructor
14
+
15
+ > **new PersistentVaultAuditLog**(`_storage`, `_key?`, `_lockKey?`): `FileAuditLog`
16
+
17
+ #### Parameters
18
+
19
+ ##### \_storage
20
+
21
+ [`IStorageProvider`](../interfaces/IStorageProvider.md)
22
+
23
+ ##### \_key?
24
+
25
+ `string` = `"vault/sealed/audit.jsonl"`
26
+
27
+ ##### \_lockKey?
28
+
29
+ `string` = `"vault/sealed/locks/audit"`
30
+
31
+ #### Returns
32
+
33
+ `FileAuditLog`
34
+
35
+ ## Methods
36
+
37
+ ### append()
38
+
39
+ > **append**(`entry`): `Promise`\<`void`\>
40
+
41
+ #### Parameters
42
+
43
+ ##### entry
44
+
45
+ [`AuditEntry`](../interfaces/AuditEntry.md)
46
+
47
+ #### Returns
48
+
49
+ `Promise`\<`void`\>
50
+
51
+ #### Implementation of
52
+
53
+ [`AuditLog`](../interfaces/AuditLog.md).[`append`](../interfaces/AuditLog.md#append)
54
+
55
+ ***
56
+
57
+ ### query()
58
+
59
+ > **query**(`query`): `Promise`\<readonly [`AuditEntry`](../interfaces/AuditEntry.md)[]\>
60
+
61
+ #### Parameters
62
+
63
+ ##### query
64
+
65
+ [`AuditQuery`](../interfaces/AuditQuery.md)
66
+
67
+ #### Returns
68
+
69
+ `Promise`\<readonly [`AuditEntry`](../interfaces/AuditEntry.md)[]\>
70
+
71
+ #### Implementation of
72
+
73
+ [`AuditLog`](../interfaces/AuditLog.md).[`query`](../interfaces/AuditLog.md#query)
@@ -0,0 +1,109 @@
1
+ [**CBIO Node Runtime Agent API v1.45.2**](../README.md)
2
+
3
+ ***
4
+
5
+ # Class: PersistentVaultCapabilityRegistry
6
+
7
+ ## Implements
8
+
9
+ - [`CapabilityRegistry`](../interfaces/CapabilityRegistry.md)
10
+
11
+ ## Constructors
12
+
13
+ ### Constructor
14
+
15
+ > **new PersistentVaultCapabilityRegistry**(`storage`, `vaultWorkingKey`, `key?`, `_lockKey?`): `FileCapabilityRegistry`
16
+
17
+ #### Parameters
18
+
19
+ ##### storage
20
+
21
+ [`IStorageProvider`](../interfaces/IStorageProvider.md)
22
+
23
+ ##### vaultWorkingKey
24
+
25
+ `string`
26
+
27
+ ##### key?
28
+
29
+ `string` = `"vault/sealed/capabilities.sealed"`
30
+
31
+ ##### \_lockKey?
32
+
33
+ `string` = `"vault/sealed/locks/capabilities"`
34
+
35
+ #### Returns
36
+
37
+ `FileCapabilityRegistry`
38
+
39
+ ## Methods
40
+
41
+ ### get()
42
+
43
+ > **get**(`vaultId`, `agentId`, `capabilityId`): `Promise`\<[`AgentCapability`](../interfaces/AgentCapability.md) \| `null`\>
44
+
45
+ #### Parameters
46
+
47
+ ##### vaultId
48
+
49
+ [`VaultId`](../interfaces/VaultId.md)
50
+
51
+ ##### agentId
52
+
53
+ `string`
54
+
55
+ ##### capabilityId
56
+
57
+ `string`
58
+
59
+ #### Returns
60
+
61
+ `Promise`\<[`AgentCapability`](../interfaces/AgentCapability.md) \| `null`\>
62
+
63
+ #### Implementation of
64
+
65
+ [`CapabilityRegistry`](../interfaces/CapabilityRegistry.md).[`get`](../interfaces/CapabilityRegistry.md#get)
66
+
67
+ ***
68
+
69
+ ### list()
70
+
71
+ > **list**(`vaultId`, `agentId?`): `Promise`\<readonly [`AgentCapability`](../interfaces/AgentCapability.md)[]\>
72
+
73
+ #### Parameters
74
+
75
+ ##### vaultId
76
+
77
+ [`VaultId`](../interfaces/VaultId.md)
78
+
79
+ ##### agentId?
80
+
81
+ `string`
82
+
83
+ #### Returns
84
+
85
+ `Promise`\<readonly [`AgentCapability`](../interfaces/AgentCapability.md)[]\>
86
+
87
+ #### Implementation of
88
+
89
+ [`CapabilityRegistry`](../interfaces/CapabilityRegistry.md).[`list`](../interfaces/CapabilityRegistry.md#list)
90
+
91
+ ***
92
+
93
+ ### register()
94
+
95
+ > **register**(`capability`): `Promise`\<`void`\>
96
+
97
+ #### Parameters
98
+
99
+ ##### capability
100
+
101
+ [`AgentCapability`](../interfaces/AgentCapability.md)
102
+
103
+ #### Returns
104
+
105
+ `Promise`\<`void`\>
106
+
107
+ #### Implementation of
108
+
109
+ [`CapabilityRegistry`](../interfaces/CapabilityRegistry.md).[`register`](../interfaces/CapabilityRegistry.md#register)