@the-ai-company/cbio-node-runtime 1.50.0 → 1.51.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.
- package/README.md +10 -3
- package/dist/clients/owner/client.d.ts +6 -3
- package/dist/clients/owner/client.js +100 -7
- package/dist/clients/owner/client.js.map +1 -1
- package/dist/clients/owner/contracts.d.ts +28 -5
- package/dist/clients/owner/index.d.ts +1 -1
- package/dist/protocol/identity.d.ts +3 -0
- package/dist/protocol/identity.js +2 -1
- package/dist/protocol/identity.js.map +1 -1
- package/dist/runtime/bootstrap.d.ts +3 -0
- package/dist/runtime/bootstrap.js +11 -0
- package/dist/runtime/bootstrap.js.map +1 -1
- package/dist/runtime/identity.js +4 -6
- package/dist/runtime/identity.js.map +1 -1
- package/dist/runtime/index.d.ts +1 -1
- package/dist/runtime/index.js.map +1 -1
- package/docs/REFERENCE.md +7 -5
- package/docs/api/README.md +6 -2
- package/docs/api/classes/IdentityError.md +1 -1
- package/docs/api/classes/VaultCore.md +1 -1
- package/docs/api/classes/VaultCoreError.md +1 -1
- package/docs/api/enumerations/IdentityErrorCode.md +1 -1
- package/docs/api/functions/createAgentClient.md +1 -1
- package/docs/api/functions/createIdentity.md +1 -1
- package/docs/api/functions/createOwnerHttpFlowBoundary.md +1 -1
- package/docs/api/functions/createPersistentVaultCoreDependencies.md +1 -1
- package/docs/api/functions/createStandardAcquireBoundary.md +1 -1
- package/docs/api/functions/createStandardDispatchBoundary.md +1 -1
- package/docs/api/functions/createVault.md +1 -1
- package/docs/api/functions/createVaultClient.md +1 -1
- package/docs/api/functions/createVaultCore.md +1 -1
- package/docs/api/functions/createVaultCoreDependencies.md +1 -1
- package/docs/api/functions/createVaultService.md +1 -1
- package/docs/api/functions/createWorkspaceStorage.md +1 -1
- package/docs/api/functions/deriveIdentityId.md +1 -1
- package/docs/api/functions/deriveVaultWorkingKeyFromPassword.md +1 -1
- package/docs/api/functions/getDefaultWorkspaceDir.md +1 -1
- package/docs/api/functions/handleVaultAgentControlHttp.md +1 -1
- package/docs/api/functions/handleVaultHttpDispatch.md +1 -1
- package/docs/api/functions/initializeVaultCustody.md +1 -1
- package/docs/api/functions/listVaults.md +1 -1
- package/docs/api/functions/readVaultProfile.md +1 -1
- package/docs/api/functions/recoverVault.md +1 -1
- package/docs/api/functions/recoverVaultWorkingKey.md +1 -1
- package/docs/api/functions/restoreIdentity.md +1 -1
- package/docs/api/functions/updateVaultMetadata.md +1 -1
- package/docs/api/functions/wrapVaultCoreAsVaultService.md +1 -1
- package/docs/api/functions/writeVaultProfile.md +1 -1
- package/docs/api/interfaces/AgentClient.md +1 -1
- package/docs/api/interfaces/AgentDispatchIntent.md +1 -1
- package/docs/api/interfaces/AgentDispatchTransport.md +1 -1
- package/docs/api/interfaces/AgentIdentity.md +1 -1
- package/docs/api/interfaces/AgentSigner.md +1 -1
- package/docs/api/interfaces/AgentSubmitCapabilityRequestInput.md +1 -1
- package/docs/api/interfaces/CbioRuntime.md +1 -1
- package/docs/api/interfaces/CreateAgentClientOptions.md +1 -1
- package/docs/api/interfaces/CreateIdentityOptions.md +1 -1
- package/docs/api/interfaces/CreatePersistentVaultCoreDependenciesOptions.md +1 -1
- package/docs/api/interfaces/CreateVaultClientOptions.md +37 -1
- package/docs/api/interfaces/CreateVaultOptions.md +1 -1
- package/docs/api/interfaces/CreatedVault.md +19 -1
- package/docs/api/interfaces/DefaultPolicyEngineOptions.md +1 -1
- package/docs/api/interfaces/IStorageProvider.md +1 -1
- package/docs/api/interfaces/InitializeVaultCustodyOptions.md +1 -1
- package/docs/api/interfaces/InitializedVaultCustody.md +1 -1
- package/docs/api/interfaces/OwnerAgentProvisionResult.md +1 -1
- package/docs/api/interfaces/OwnerDefineSecretTargetsInput.md +1 -1
- package/docs/api/interfaces/OwnerSecretTargetBinding.md +1 -1
- package/docs/api/interfaces/OwnerSensitiveActionConfirmation.md +17 -0
- package/docs/api/interfaces/OwnerSensitiveActionContext.md +17 -0
- package/docs/api/interfaces/OwnerStoreSecretInput.md +1 -1
- package/docs/api/interfaces/OwnerWriteSecretInput.md +1 -1
- package/docs/api/interfaces/RecoverVaultOptions.md +1 -1
- package/docs/api/interfaces/RecoveredVault.md +21 -1
- package/docs/api/interfaces/RestoreIdentityOptions.md +1 -1
- package/docs/api/interfaces/Signer.md +1 -1
- package/docs/api/interfaces/VaultApproveCapabilityRequestInput.md +1 -7
- package/docs/api/interfaces/VaultAuditQueryInput.md +1 -1
- package/docs/api/interfaces/VaultClient.md +21 -5
- package/docs/api/interfaces/VaultCoreDependenciesOptions.md +1 -1
- package/docs/api/interfaces/VaultCreateAgentInput.md +1 -1
- package/docs/api/interfaces/VaultDeleteSecretInput.md +1 -1
- package/docs/api/interfaces/VaultExportSecretInput.md +13 -1
- package/docs/api/interfaces/VaultGrantCapabilityInput.md +1 -7
- package/docs/api/interfaces/VaultIdentity.md +1 -1
- package/docs/api/interfaces/VaultImportAgentInput.md +1 -1
- package/docs/api/interfaces/VaultListAgentsInput.md +1 -1
- package/docs/api/interfaces/VaultListCapabilitiesInput.md +1 -1
- package/docs/api/interfaces/VaultListSecretsInput.md +1 -1
- package/docs/api/interfaces/VaultMetadata.md +1 -1
- package/docs/api/interfaces/VaultObject.md +17 -1
- package/docs/api/interfaces/VaultProfile.md +1 -1
- package/docs/api/interfaces/VaultReadAgentPrivateKeyInput.md +29 -0
- package/docs/api/interfaces/VaultReadSecretPlaintextInput.md +29 -0
- package/docs/api/interfaces/VaultRegisterFlowInput.md +1 -7
- package/docs/api/interfaces/VaultRevokeCapabilityInput.md +1 -1
- package/docs/api/interfaces/VaultSigner.md +1 -1
- package/docs/api/interfaces/VaultSubmitCapabilityRequestInput.md +1 -1
- package/docs/api/type-aliases/AgentCapabilityEnvelope.md +1 -1
- package/docs/api/type-aliases/AgentVisibleSecretRecord.md +1 -1
- package/docs/api/type-aliases/CbioRuntimeModule.md +1 -1
- package/docs/api/variables/DEFAULT_VAULT_KEY_CUSTODY_BLOB_KEY.md +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
[**CBIO Node Runtime Agent API v1.
|
|
1
|
+
[**CBIO Node Runtime Agent API v1.51.0**](../README.md)
|
|
2
2
|
|
|
3
3
|
***
|
|
4
4
|
|
|
@@ -18,6 +18,42 @@
|
|
|
18
18
|
|
|
19
19
|
***
|
|
20
20
|
|
|
21
|
+
### passwordVerifier?
|
|
22
|
+
|
|
23
|
+
> `optional` **passwordVerifier?**: (`password`) => `boolean` \| `Promise`\<`boolean`\>
|
|
24
|
+
|
|
25
|
+
#### Parameters
|
|
26
|
+
|
|
27
|
+
##### password
|
|
28
|
+
|
|
29
|
+
`string`
|
|
30
|
+
|
|
31
|
+
#### Returns
|
|
32
|
+
|
|
33
|
+
`boolean` \| `Promise`\<`boolean`\>
|
|
34
|
+
|
|
35
|
+
***
|
|
36
|
+
|
|
37
|
+
### sensitiveActionVerifier?
|
|
38
|
+
|
|
39
|
+
> `optional` **sensitiveActionVerifier?**: (`confirmation`, `context`) => `boolean` \| `Promise`\<`boolean`\>
|
|
40
|
+
|
|
41
|
+
#### Parameters
|
|
42
|
+
|
|
43
|
+
##### confirmation
|
|
44
|
+
|
|
45
|
+
[`OwnerSensitiveActionConfirmation`](OwnerSensitiveActionConfirmation.md)
|
|
46
|
+
|
|
47
|
+
##### context
|
|
48
|
+
|
|
49
|
+
[`OwnerSensitiveActionContext`](OwnerSensitiveActionContext.md)
|
|
50
|
+
|
|
51
|
+
#### Returns
|
|
52
|
+
|
|
53
|
+
`boolean` \| `Promise`\<`boolean`\>
|
|
54
|
+
|
|
55
|
+
***
|
|
56
|
+
|
|
21
57
|
### signer?
|
|
22
58
|
|
|
23
59
|
> `optional` **signer?**: [`VaultSigner`](VaultSigner.md)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
[**CBIO Node Runtime Agent API v1.
|
|
1
|
+
[**CBIO Node Runtime Agent API v1.51.0**](../README.md)
|
|
2
2
|
|
|
3
3
|
***
|
|
4
4
|
|
|
@@ -37,3 +37,21 @@ The anchored storage provider for this vault.
|
|
|
37
37
|
> **vault**: `VaultService`
|
|
38
38
|
|
|
39
39
|
The high-level service interface for dispatch and acquisition.
|
|
40
|
+
|
|
41
|
+
## Methods
|
|
42
|
+
|
|
43
|
+
### verifyPassword()
|
|
44
|
+
|
|
45
|
+
> **verifyPassword**(`password`): `Promise`\<`boolean`\>
|
|
46
|
+
|
|
47
|
+
Verifies whether a supplied password can unlock this vault.
|
|
48
|
+
|
|
49
|
+
#### Parameters
|
|
50
|
+
|
|
51
|
+
##### password
|
|
52
|
+
|
|
53
|
+
`string`
|
|
54
|
+
|
|
55
|
+
#### Returns
|
|
56
|
+
|
|
57
|
+
`Promise`\<`boolean`\>
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
[**CBIO Node Runtime Agent API v1.51.0**](../README.md)
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
# Interface: OwnerSensitiveActionConfirmation
|
|
6
|
+
|
|
7
|
+
## Properties
|
|
8
|
+
|
|
9
|
+
### password
|
|
10
|
+
|
|
11
|
+
> **password**: `string`
|
|
12
|
+
|
|
13
|
+
***
|
|
14
|
+
|
|
15
|
+
### verificationCode?
|
|
16
|
+
|
|
17
|
+
> `optional` **verificationCode?**: `string`
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
[**CBIO Node Runtime Agent API v1.51.0**](../README.md)
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
# Interface: OwnerSensitiveActionContext
|
|
6
|
+
|
|
7
|
+
## Properties
|
|
8
|
+
|
|
9
|
+
### action
|
|
10
|
+
|
|
11
|
+
> **action**: `"read_secret_plaintext"` \| `"export_secret"` \| `"read_agent_private_key"`
|
|
12
|
+
|
|
13
|
+
***
|
|
14
|
+
|
|
15
|
+
### subject
|
|
16
|
+
|
|
17
|
+
> **subject**: `string`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
[**CBIO Node Runtime Agent API v1.
|
|
1
|
+
[**CBIO Node Runtime Agent API v1.51.0**](../README.md)
|
|
2
2
|
|
|
3
3
|
***
|
|
4
4
|
|
|
@@ -47,3 +47,23 @@
|
|
|
47
47
|
#### Inherited from
|
|
48
48
|
|
|
49
49
|
[`VaultObject`](VaultObject.md).[`vault`](VaultObject.md#vault)
|
|
50
|
+
|
|
51
|
+
## Methods
|
|
52
|
+
|
|
53
|
+
### verifyPassword()
|
|
54
|
+
|
|
55
|
+
> **verifyPassword**(`password`): `Promise`\<`boolean`\>
|
|
56
|
+
|
|
57
|
+
#### Parameters
|
|
58
|
+
|
|
59
|
+
##### password
|
|
60
|
+
|
|
61
|
+
`string`
|
|
62
|
+
|
|
63
|
+
#### Returns
|
|
64
|
+
|
|
65
|
+
`Promise`\<`boolean`\>
|
|
66
|
+
|
|
67
|
+
#### Inherited from
|
|
68
|
+
|
|
69
|
+
[`VaultObject`](VaultObject.md).[`verifyPassword`](VaultObject.md#verifypassword)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
[**CBIO Node Runtime Agent API v1.
|
|
1
|
+
[**CBIO Node Runtime Agent API v1.51.0**](../README.md)
|
|
2
2
|
|
|
3
3
|
***
|
|
4
4
|
|
|
@@ -6,12 +6,6 @@
|
|
|
6
6
|
|
|
7
7
|
## Properties
|
|
8
8
|
|
|
9
|
-
### capabilityId?
|
|
10
|
-
|
|
11
|
-
> `optional` **capabilityId?**: `string`
|
|
12
|
-
|
|
13
|
-
***
|
|
14
|
-
|
|
15
9
|
### requestedAt?
|
|
16
10
|
|
|
17
11
|
> `optional` **requestedAt?**: `string`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
[**CBIO Node Runtime Agent API v1.
|
|
1
|
+
[**CBIO Node Runtime Agent API v1.51.0**](../README.md)
|
|
2
2
|
|
|
3
3
|
***
|
|
4
4
|
|
|
@@ -100,7 +100,7 @@ Exports a secret's plaintext.
|
|
|
100
100
|
|
|
101
101
|
### ownerGrantCapability()
|
|
102
102
|
|
|
103
|
-
> **ownerGrantCapability**(`input`): `Promise`\<`
|
|
103
|
+
> **ownerGrantCapability**(`input`): `Promise`\<`AgentCapability`\>
|
|
104
104
|
|
|
105
105
|
Grants a specific capability to an agent.
|
|
106
106
|
|
|
@@ -112,7 +112,7 @@ Grants a specific capability to an agent.
|
|
|
112
112
|
|
|
113
113
|
#### Returns
|
|
114
114
|
|
|
115
|
-
`Promise`\<`
|
|
115
|
+
`Promise`\<`AgentCapability`\>
|
|
116
116
|
|
|
117
117
|
***
|
|
118
118
|
|
|
@@ -228,9 +228,25 @@ Reads the tamper-evident audit log for the vault.
|
|
|
228
228
|
|
|
229
229
|
***
|
|
230
230
|
|
|
231
|
+
### ownerReadSecretPlaintext()
|
|
232
|
+
|
|
233
|
+
> **ownerReadSecretPlaintext**(`input`): `Promise`\<`string`\>
|
|
234
|
+
|
|
235
|
+
#### Parameters
|
|
236
|
+
|
|
237
|
+
##### input
|
|
238
|
+
|
|
239
|
+
[`VaultReadSecretPlaintextInput`](VaultReadSecretPlaintextInput.md)
|
|
240
|
+
|
|
241
|
+
#### Returns
|
|
242
|
+
|
|
243
|
+
`Promise`\<`string`\>
|
|
244
|
+
|
|
245
|
+
***
|
|
246
|
+
|
|
231
247
|
### ownerRegisterFlow()
|
|
232
248
|
|
|
233
|
-
> **ownerRegisterFlow**(`input`): `Promise`\<`
|
|
249
|
+
> **ownerRegisterFlow**(`input`): `Promise`\<`CustomHttpFlowDefinition`\>
|
|
234
250
|
|
|
235
251
|
Registers a custom HTTP flow for complex secret usage.
|
|
236
252
|
|
|
@@ -242,7 +258,7 @@ Registers a custom HTTP flow for complex secret usage.
|
|
|
242
258
|
|
|
243
259
|
#### Returns
|
|
244
260
|
|
|
245
|
-
`Promise`\<`
|
|
261
|
+
`Promise`\<`CustomHttpFlowDefinition`\>
|
|
246
262
|
|
|
247
263
|
***
|
|
248
264
|
|