@the-ai-company/cbio-node-runtime 1.45.5 → 1.47.0

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 (202) hide show
  1. package/dist/clients/owner/client.d.ts +10 -14
  2. package/dist/clients/owner/client.js +56 -182
  3. package/dist/clients/owner/client.js.map +1 -1
  4. package/dist/clients/owner/contracts.d.ts +9 -0
  5. package/dist/clients/owner/index.d.ts +1 -1
  6. package/dist/protocol/crypto.d.ts +5 -0
  7. package/dist/protocol/crypto.js +11 -0
  8. package/dist/protocol/crypto.js.map +1 -1
  9. package/dist/runtime/bootstrap.d.ts +14 -27
  10. package/dist/runtime/bootstrap.js +17 -63
  11. package/dist/runtime/bootstrap.js.map +1 -1
  12. package/dist/runtime/identity.d.ts +1 -23
  13. package/dist/runtime/identity.js +2 -74
  14. package/dist/runtime/identity.js.map +1 -1
  15. package/dist/runtime/index.d.ts +10 -24
  16. package/dist/runtime/index.js +7 -11
  17. package/dist/runtime/index.js.map +1 -1
  18. package/dist/runtime/vault-metadata.d.ts +4 -16
  19. package/dist/runtime/vault-metadata.js +6 -41
  20. package/dist/runtime/vault-metadata.js.map +1 -1
  21. package/dist/vault-core/contracts.d.ts +3 -23
  22. package/dist/vault-core/contracts.js +0 -1
  23. package/dist/vault-core/contracts.js.map +1 -1
  24. package/dist/vault-core/core.d.ts +4 -4
  25. package/dist/vault-core/core.js +10 -76
  26. package/dist/vault-core/core.js.map +1 -1
  27. package/dist/vault-core/defaults.d.ts +4 -52
  28. package/dist/vault-core/defaults.js +2 -300
  29. package/dist/vault-core/defaults.js.map +1 -1
  30. package/dist/vault-core/index.d.ts +5 -5
  31. package/dist/vault-core/index.js +3 -3
  32. package/dist/vault-core/index.js.map +1 -1
  33. package/dist/vault-core/persistence.d.ts +5 -34
  34. package/dist/vault-core/persistence.js +8 -38
  35. package/dist/vault-core/persistence.js.map +1 -1
  36. package/dist/vault-core/ports.d.ts +2 -51
  37. package/dist/vault-ingress/index.d.ts +1 -2
  38. package/dist/vault-ingress/index.js +0 -5
  39. package/dist/vault-ingress/index.js.map +1 -1
  40. package/docs/api/README.md +8 -92
  41. package/docs/api/classes/IdentityError.md +2 -2
  42. package/docs/api/classes/VaultCore.md +320 -0
  43. package/docs/api/classes/VaultCoreError.md +1 -1
  44. package/docs/api/enumerations/IdentityErrorCode.md +1 -1
  45. package/docs/api/functions/createAgentClient.md +1 -1
  46. package/docs/api/functions/createIdentity.md +2 -2
  47. package/docs/api/functions/createOwnerHttpFlowBoundary.md +4 -4
  48. package/docs/api/functions/createPersistentVaultCoreDependencies.md +3 -67
  49. package/docs/api/functions/createStandardAcquireBoundary.md +3 -3
  50. package/docs/api/functions/createStandardDispatchBoundary.md +3 -3
  51. package/docs/api/functions/createVault.md +3 -3
  52. package/docs/api/functions/createVaultClient.md +2 -2
  53. package/docs/api/functions/createVaultCore.md +4 -4
  54. package/docs/api/functions/createVaultCoreDependencies.md +17 -0
  55. package/docs/api/functions/createVaultService.md +6 -6
  56. package/docs/api/functions/createWorkspaceStorage.md +1 -1
  57. package/docs/api/functions/deriveIdentityId.md +1 -1
  58. package/docs/api/functions/deriveVaultWorkingKeyFromPassword.md +24 -0
  59. package/docs/api/functions/getDefaultWorkspaceDir.md +1 -1
  60. package/docs/api/functions/handleVaultHttpDispatch.md +4 -4
  61. package/docs/api/functions/initializeVaultCustody.md +1 -1
  62. package/docs/api/functions/listVaults.md +5 -5
  63. package/docs/api/functions/readVaultProfile.md +3 -3
  64. package/docs/api/functions/recoverVault.md +4 -4
  65. package/docs/api/functions/recoverVaultWorkingKey.md +1 -1
  66. package/docs/api/functions/restoreIdentity.md +1 -1
  67. package/docs/api/functions/updateVaultMetadata.md +7 -7
  68. package/docs/api/functions/wrapVaultCoreAsVaultService.md +6 -6
  69. package/docs/api/functions/writeVaultProfile.md +3 -3
  70. package/docs/api/interfaces/AgentClient.md +3 -3
  71. package/docs/api/interfaces/AgentDispatchIntent.md +1 -1
  72. package/docs/api/interfaces/AgentDispatchTransport.md +4 -4
  73. package/docs/api/interfaces/AgentIdentity.md +1 -1
  74. package/docs/api/interfaces/AgentSigner.md +1 -1
  75. package/docs/api/interfaces/CbioRuntime.md +55 -396
  76. package/docs/api/interfaces/CreateAgentClientOptions.md +4 -4
  77. package/docs/api/interfaces/CreateIdentityOptions.md +1 -5
  78. package/docs/api/interfaces/CreatePersistentVaultCoreDependenciesOptions.md +9 -9
  79. package/docs/api/interfaces/CreateVaultClientOptions.md +5 -5
  80. package/docs/api/interfaces/CreateVaultOptions.md +16 -16
  81. package/docs/api/interfaces/CreatedVault.md +3 -3
  82. package/docs/api/interfaces/DefaultPolicyEngineOptions.md +3 -3
  83. package/docs/api/interfaces/IStorageProvider.md +1 -1
  84. package/docs/api/interfaces/InitializeVaultCustodyOptions.md +1 -1
  85. package/docs/api/interfaces/InitializedVaultCustody.md +1 -1
  86. package/docs/api/interfaces/OwnerDefineSecretTargetsInput.md +1 -1
  87. package/docs/api/interfaces/OwnerSecretTargetBinding.md +1 -1
  88. package/docs/api/interfaces/OwnerStoreSecretInput.md +1 -1
  89. package/docs/api/interfaces/OwnerWriteSecretInput.md +1 -1
  90. package/docs/api/interfaces/RecoverVaultOptions.md +10 -10
  91. package/docs/api/interfaces/RecoveredVault.md +3 -3
  92. package/docs/api/interfaces/RestoreIdentityOptions.md +1 -1
  93. package/docs/api/interfaces/Signer.md +1 -1
  94. package/docs/api/interfaces/VaultAuditQueryInput.md +1 -1
  95. package/docs/api/interfaces/VaultClient.md +36 -29
  96. package/docs/api/interfaces/{CreateDefaultVaultCoreDependenciesOptions.md → VaultCoreDependenciesOptions.md} +3 -3
  97. package/docs/api/interfaces/VaultCreateAgentInput.md +29 -0
  98. package/docs/api/interfaces/VaultDeleteSecretInput.md +1 -1
  99. package/docs/api/interfaces/VaultExportSecretInput.md +1 -1
  100. package/docs/api/interfaces/VaultGrantCapabilityInput.md +2 -2
  101. package/docs/api/interfaces/VaultIdentity.md +1 -1
  102. package/docs/api/interfaces/VaultListAgentsInput.md +1 -1
  103. package/docs/api/interfaces/VaultListCapabilitiesInput.md +1 -1
  104. package/docs/api/interfaces/{VaultPublicMetadata.md → VaultMetadata.md} +2 -2
  105. package/docs/api/interfaces/VaultObject.md +3 -3
  106. package/docs/api/interfaces/VaultProfile.md +7 -11
  107. package/docs/api/interfaces/VaultRegisterAgentInput.md +19 -1
  108. package/docs/api/interfaces/VaultRegisterFlowInput.md +7 -7
  109. package/docs/api/interfaces/VaultRevokeCapabilityInput.md +1 -1
  110. package/docs/api/interfaces/VaultSigner.md +1 -1
  111. package/docs/api/type-aliases/AgentCapabilityEnvelope.md +2 -2
  112. package/docs/api/type-aliases/CbioRuntimeModule.md +1 -1
  113. package/docs/api/variables/DEFAULT_VAULT_KEY_CUSTODY_BLOB_KEY.md +1 -1
  114. package/package.json +1 -1
  115. package/docs/api/classes/InMemoryReplayGuard.md +0 -45
  116. package/docs/api/enumerations/AuditAction.md +0 -95
  117. package/docs/api/enumerations/AuditOutcome.md +0 -29
  118. package/docs/api/enumerations/DispatchStatus.md +0 -23
  119. package/docs/api/functions/createChildIdentity.md +0 -25
  120. package/docs/api/functions/createDefaultVaultCoreDependencies.md +0 -77
  121. package/docs/api/functions/deriveChildIdentity.md +0 -41
  122. package/docs/api/functions/ensureIdentityPrivateVault.md +0 -21
  123. package/docs/api/functions/identityPrivateVaultChildrenKey.md +0 -17
  124. package/docs/api/functions/identityPrivateVaultPrefix.md +0 -17
  125. package/docs/api/functions/identityPrivateVaultProfileKey.md +0 -17
  126. package/docs/api/functions/identityPrivateVaultPublicSealedKey.md +0 -17
  127. package/docs/api/functions/listIdentities.md +0 -19
  128. package/docs/api/functions/readIdentityMetadata.md +0 -29
  129. package/docs/api/functions/readIdentityPrivateVaultChildrenState.md +0 -21
  130. package/docs/api/functions/readIdentityPrivateVaultProfile.md +0 -21
  131. package/docs/api/functions/readVaultPublicMetadata.md +0 -23
  132. package/docs/api/functions/toOwnerHttpFlowBoundary.md +0 -17
  133. package/docs/api/interfaces/AgentCapability.md +0 -103
  134. package/docs/api/interfaces/AgentIdentityRecord.md +0 -23
  135. package/docs/api/interfaces/AgentIdentityRegistry.md +0 -57
  136. package/docs/api/interfaces/AgentProof.md +0 -29
  137. package/docs/api/interfaces/AgentProofVerifier.md +0 -21
  138. package/docs/api/interfaces/AuditEntry.md +0 -89
  139. package/docs/api/interfaces/AuditLog.md +0 -37
  140. package/docs/api/interfaces/AuditQuery.md +0 -29
  141. package/docs/api/interfaces/CapabilityRegistry.md +0 -65
  142. package/docs/api/interfaces/CapabilityRevocationRegistry.md +0 -53
  143. package/docs/api/interfaces/ChildIdentity.md +0 -77
  144. package/docs/api/interfaces/Clock.md +0 -15
  145. package/docs/api/interfaces/CreateChildIdentityOptions.md +0 -19
  146. package/docs/api/interfaces/CustomHttpFlowDefinition.md +0 -71
  147. package/docs/api/interfaces/CustomHttpFlowRegistry.md +0 -41
  148. package/docs/api/interfaces/DeriveIdentityOptions.md +0 -11
  149. package/docs/api/interfaces/DispatchAuthorization.md +0 -35
  150. package/docs/api/interfaces/DispatchInstruction.md +0 -47
  151. package/docs/api/interfaces/DispatchRequest.md +0 -77
  152. package/docs/api/interfaces/DispatchResult.md +0 -53
  153. package/docs/api/interfaces/IdGenerator.md +0 -39
  154. package/docs/api/interfaces/IdentityPrivateVaultChildRecord.md +0 -35
  155. package/docs/api/interfaces/IdentityPrivateVaultChildrenState.md +0 -17
  156. package/docs/api/interfaces/IdentityPrivateVaultProfile.md +0 -35
  157. package/docs/api/interfaces/IssuerWriteSecretCommand.md +0 -59
  158. package/docs/api/interfaces/OwnerAuditRequest.md +0 -47
  159. package/docs/api/interfaces/OwnerDefineSecretTargetsCommand.md +0 -53
  160. package/docs/api/interfaces/OwnerDeleteSecretCommand.md +0 -47
  161. package/docs/api/interfaces/OwnerExportSecretRequest.md +0 -47
  162. package/docs/api/interfaces/OwnerHttpFlowBoundary.md +0 -51
  163. package/docs/api/interfaces/OwnerIdentityRecord.md +0 -23
  164. package/docs/api/interfaces/OwnerIdentityRegistry.md +0 -57
  165. package/docs/api/interfaces/OwnerListAgentsRequest.md +0 -41
  166. package/docs/api/interfaces/OwnerListCapabilitiesRequest.md +0 -47
  167. package/docs/api/interfaces/OwnerProof.md +0 -29
  168. package/docs/api/interfaces/OwnerProofVerifier.md +0 -181
  169. package/docs/api/interfaces/OwnerRegisterAgentIdentityCommand.md +0 -47
  170. package/docs/api/interfaces/OwnerRegisterCapabilityCommand.md +0 -47
  171. package/docs/api/interfaces/OwnerRegisterCustomHttpFlowCommand.md +0 -83
  172. package/docs/api/interfaces/OwnerRevokeCapabilityCommand.md +0 -53
  173. package/docs/api/interfaces/OwnerSecretExport.md +0 -35
  174. package/docs/api/interfaces/OwnerWriteSecretCommand.md +0 -65
  175. package/docs/api/interfaces/PolicyEngine.md +0 -81
  176. package/docs/api/interfaces/RateLimitStore.md +0 -33
  177. package/docs/api/interfaces/ReplayGuard.md +0 -21
  178. package/docs/api/interfaces/SecretAlias.md +0 -11
  179. package/docs/api/interfaces/SecretCustody.md +0 -57
  180. package/docs/api/interfaces/SecretId.md +0 -11
  181. package/docs/api/interfaces/SecretRecord.md +0 -53
  182. package/docs/api/interfaces/SecretRepository.md +0 -69
  183. package/docs/api/interfaces/SecretVersion.md +0 -11
  184. package/docs/api/interfaces/SignatureAgentProofVerifierOptions.md +0 -21
  185. package/docs/api/interfaces/TrustedExecutor.md +0 -31
  186. package/docs/api/interfaces/VaultAcquireSecretInput.md +0 -53
  187. package/docs/api/interfaces/VaultAcquireSecretResult.md +0 -41
  188. package/docs/api/interfaces/VaultAgentDispatchErrorResponse.md +0 -25
  189. package/docs/api/interfaces/VaultAgentDispatchRequest.md +0 -75
  190. package/docs/api/interfaces/VaultAgentDispatchResponse.md +0 -17
  191. package/docs/api/interfaces/VaultCore.md +0 -311
  192. package/docs/api/interfaces/VaultCoreDependencies.md +0 -95
  193. package/docs/api/interfaces/VaultCustomFlowResolver.md +0 -25
  194. package/docs/api/interfaces/VaultId.md +0 -11
  195. package/docs/api/interfaces/VaultPrincipal.md +0 -17
  196. package/docs/api/interfaces/VaultService.md +0 -251
  197. package/docs/api/interfaces/VaultTargetBinding.md +0 -35
  198. package/docs/api/type-aliases/IdentityPrivateVaultAccess.md +0 -7
  199. package/docs/api/type-aliases/RedactedResponseShape.md +0 -7
  200. package/docs/api/type-aliases/VaultAcquireSecretFlow.md +0 -7
  201. package/docs/api/type-aliases/VaultPrincipalKind.md +0 -7
  202. package/docs/api/type-aliases/VaultWriteSecretCommand.md +0 -7
@@ -1,35 +0,0 @@
1
- [**CBIO Node Runtime Agent API v1.45.5**](../README.md)
2
-
3
- ***
4
-
5
- # Interface: VaultTargetBinding
6
-
7
- ## Properties
8
-
9
- ### kind
10
-
11
- > **kind**: `"owner"` \| `"site"`
12
-
13
- ***
14
-
15
- ### methods?
16
-
17
- > `optional` **methods?**: readonly `string`[]
18
-
19
- ***
20
-
21
- ### paths?
22
-
23
- > `optional` **paths?**: readonly `string`[]
24
-
25
- ***
26
-
27
- ### targetId
28
-
29
- > **targetId**: `string`
30
-
31
- ***
32
-
33
- ### targetUrl?
34
-
35
- > `optional` **targetUrl?**: `string`
@@ -1,7 +0,0 @@
1
- [**CBIO Node Runtime Agent API v1.45.5**](../README.md)
2
-
3
- ***
4
-
5
- # Type Alias: IdentityPrivateVaultAccess
6
-
7
- > **IdentityPrivateVaultAccess** = `CreatedIdentity` \| `string`
@@ -1,7 +0,0 @@
1
- [**CBIO Node Runtime Agent API v1.45.5**](../README.md)
2
-
3
- ***
4
-
5
- # Type Alias: RedactedResponseShape
6
-
7
- > **RedactedResponseShape** = `null` \| `string` \| `number` \| `boolean` \| `RedactedResponseShape`[] \| \{\[`key`: `string`\]: `RedactedResponseShape`; \}
@@ -1,7 +0,0 @@
1
- [**CBIO Node Runtime Agent API v1.45.5**](../README.md)
2
-
3
- ***
4
-
5
- # Type Alias: VaultAcquireSecretFlow
6
-
7
- > **VaultAcquireSecretFlow** = `"oauth_token_response.access_token"` \| `"oauth_token_response.refresh_token"` \| `"openid_token_response.id_token"`
@@ -1,7 +0,0 @@
1
- [**CBIO Node Runtime Agent API v1.45.5**](../README.md)
2
-
3
- ***
4
-
5
- # Type Alias: VaultPrincipalKind
6
-
7
- > **VaultPrincipalKind** = `"owner"` \| `"trusted_issuer"` \| `"agent"` \| `"trusted_executor"`
@@ -1,7 +0,0 @@
1
- [**CBIO Node Runtime Agent API v1.45.5**](../README.md)
2
-
3
- ***
4
-
5
- # Type Alias: VaultWriteSecretCommand
6
-
7
- > **VaultWriteSecretCommand** = [`OwnerWriteSecretCommand`](../interfaces/OwnerWriteSecretCommand.md) \| [`IssuerWriteSecretCommand`](../interfaces/IssuerWriteSecretCommand.md)