@the-ai-company/cbio-node-runtime 1.56.0 → 1.58.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 +27 -28
- package/dist/clients/agent/client.d.ts +2 -2
- package/dist/clients/agent/contracts.d.ts +3 -2
- package/dist/clients/owner/client.d.ts +8 -15
- package/dist/clients/owner/client.js +18 -51
- package/dist/clients/owner/client.js.map +1 -1
- package/dist/clients/owner/contracts.d.ts +11 -23
- package/dist/clients/owner/index.d.ts +1 -1
- package/dist/runtime/index.d.ts +1 -1
- package/dist/runtime/index.js.map +1 -1
- package/dist/vault-core/contracts.d.ts +61 -57
- package/dist/vault-core/contracts.js +0 -1
- package/dist/vault-core/contracts.js.map +1 -1
- package/dist/vault-core/core.d.ts +15 -22
- package/dist/vault-core/core.js +222 -211
- package/dist/vault-core/core.js.map +1 -1
- package/dist/vault-core/defaults.d.ts +8 -22
- package/dist/vault-core/defaults.js +18 -97
- package/dist/vault-core/defaults.js.map +1 -1
- package/dist/vault-core/index.d.ts +3 -3
- package/dist/vault-core/index.js +1 -1
- package/dist/vault-core/index.js.map +1 -1
- package/dist/vault-core/persistence.d.ts +8 -6
- package/dist/vault-core/persistence.js +16 -8
- package/dist/vault-core/persistence.js.map +1 -1
- package/dist/vault-core/ports.d.ts +8 -21
- package/dist/vault-ingress/defaults.d.ts +2 -2
- package/dist/vault-ingress/index.d.ts +14 -34
- package/dist/vault-ingress/index.js +20 -42
- package/dist/vault-ingress/index.js.map +1 -1
- package/dist/vault-ingress/remote-transport.d.ts +2 -2
- package/dist/vault-ingress/remote-transport.js.map +1 -1
- package/docs/MIGRATION-1.51.md +1 -1
- package/docs/REFERENCE.md +26 -28
- package/docs/api/README.md +2 -4
- package/docs/api/classes/IdentityError.md +1 -1
- package/docs/api/classes/OwnerClientError.md +1 -1
- package/docs/api/classes/VaultCore.md +29 -105
- package/docs/api/classes/VaultCoreError.md +1 -1
- package/docs/api/enumerations/IdentityErrorCode.md +1 -1
- package/docs/api/enumerations/OwnerClientErrorCode.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/createOwnerSession.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 +5 -5
- package/docs/api/interfaces/AgentDispatchIntent.md +1 -1
- package/docs/api/interfaces/AgentDispatchTransport.md +5 -5
- 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/CreateOwnerSessionOptions.md +1 -1
- package/docs/api/interfaces/CreatePersistentVaultCoreDependenciesOptions.md +1 -1
- package/docs/api/interfaces/CreateVaultClientOptions.md +1 -1
- package/docs/api/interfaces/CreateVaultOptions.md +1 -1
- package/docs/api/interfaces/CreatedVault.md +1 -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/OwnerSensitiveActionConfirmation.md +1 -1
- package/docs/api/interfaces/OwnerSensitiveActionContext.md +1 -1
- package/docs/api/interfaces/OwnerSession.md +1 -1
- package/docs/api/interfaces/OwnerStoreSecretInput.md +1 -1
- package/docs/api/interfaces/OwnerWriteSecretInput.md +1 -7
- package/docs/api/interfaces/RecoverVaultOptions.md +1 -1
- package/docs/api/interfaces/RecoveredVault.md +1 -1
- package/docs/api/interfaces/RestoreIdentityOptions.md +1 -1
- package/docs/api/interfaces/Signer.md +1 -1
- package/docs/api/interfaces/VaultApproveCapabilityRequestInput.md +1 -1
- package/docs/api/interfaces/VaultApproveDispatchInput.md +1 -1
- package/docs/api/interfaces/VaultAuditQueryInput.md +1 -1
- package/docs/api/interfaces/VaultClient.md +34 -88
- 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 +1 -1
- package/docs/api/interfaces/VaultGrantCapabilityInput.md +1 -1
- package/docs/api/interfaces/VaultGrantCapabilityRequest.md +1 -1
- package/docs/api/interfaces/VaultIdentity.md +1 -1
- package/docs/api/interfaces/VaultImportAgentInput.md +1 -1
- package/docs/api/interfaces/VaultIssueSessionTokenInput.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 +1 -1
- package/docs/api/interfaces/VaultProfile.md +1 -1
- package/docs/api/interfaces/VaultReadAgentPrivateKeyInput.md +1 -1
- package/docs/api/interfaces/VaultReadSecretPlaintextInput.md +1 -1
- package/docs/api/interfaces/VaultRegisterFlowInput.md +1 -1
- package/docs/api/interfaces/VaultRevokeCapabilityInput.md +1 -1
- package/docs/api/interfaces/VaultRevokeSessionTokenInput.md +1 -1
- package/docs/api/interfaces/VaultSigner.md +1 -1
- package/docs/api/interfaces/VaultSubmitCapabilityRequestInput.md +1 -1
- package/docs/api/interfaces/VaultUpdateAgentInput.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/type-aliases/OwnerGrantCapabilityInput.md +1 -1
- package/docs/api/variables/DEFAULT_VAULT_KEY_CUSTODY_BLOB_KEY.md +1 -1
- package/docs/zh/README.md +20 -14
- package/examples/process-isolation.ts +1 -1
- package/package.json +1 -1
- package/docs/api/interfaces/OwnerDefineSecretTargetsInput.md +0 -23
- package/docs/api/interfaces/OwnerSecretTargetBinding.md +0 -35
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
[**CBIO Node Runtime Agent API v1.
|
|
1
|
+
[**CBIO Node Runtime Agent API v1.58.0**](../README.md)
|
|
2
2
|
|
|
3
3
|
***
|
|
4
4
|
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
|
|
41
41
|
### agentListCapabilities()
|
|
42
42
|
|
|
43
|
-
> **agentListCapabilities**(`request`): `Promise`\<readonly `
|
|
43
|
+
> **agentListCapabilities**(`request`): `Promise`\<readonly `AgentCapabilityState`[]\>
|
|
44
44
|
|
|
45
45
|
#### Parameters
|
|
46
46
|
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
|
|
51
51
|
#### Returns
|
|
52
52
|
|
|
53
|
-
`Promise`\<readonly `
|
|
53
|
+
`Promise`\<readonly `AgentCapabilityState`[]\>
|
|
54
54
|
|
|
55
55
|
***
|
|
56
56
|
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
|
|
73
73
|
### agentSubmitCapabilityRequest()
|
|
74
74
|
|
|
75
|
-
> **agentSubmitCapabilityRequest**(`request`): `Promise`\<`
|
|
75
|
+
> **agentSubmitCapabilityRequest**(`request`): `Promise`\<`CapabilityStateRecord`\>
|
|
76
76
|
|
|
77
77
|
#### Parameters
|
|
78
78
|
|
|
@@ -82,4 +82,4 @@
|
|
|
82
82
|
|
|
83
83
|
#### Returns
|
|
84
84
|
|
|
85
|
-
`Promise`\<`
|
|
85
|
+
`Promise`\<`CapabilityStateRecord`\>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
[**CBIO Node Runtime Agent API v1.
|
|
1
|
+
[**CBIO Node Runtime Agent API v1.58.0**](../README.md)
|
|
2
2
|
|
|
3
3
|
***
|
|
4
4
|
|
|
@@ -21,9 +21,3 @@
|
|
|
21
21
|
### requestedAt?
|
|
22
22
|
|
|
23
23
|
> `optional` **requestedAt?**: `string`
|
|
24
|
-
|
|
25
|
-
***
|
|
26
|
-
|
|
27
|
-
### targetBindings
|
|
28
|
-
|
|
29
|
-
> **targetBindings**: readonly [`OwnerSecretTargetBinding`](OwnerSecretTargetBinding.md)[]
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
[**CBIO Node Runtime Agent API v1.
|
|
1
|
+
[**CBIO Node Runtime Agent API v1.58.0**](../README.md)
|
|
2
2
|
|
|
3
3
|
***
|
|
4
4
|
|
|
@@ -9,90 +9,72 @@ In Sovereign Vault model, administrative actions are implicitly authorized by th
|
|
|
9
9
|
|
|
10
10
|
## Methods
|
|
11
11
|
|
|
12
|
-
###
|
|
13
|
-
|
|
14
|
-
> **ownerApproveCapabilityRequest**(`input`): `Promise`\<`AgentCapability`\>
|
|
15
|
-
|
|
16
|
-
#### Parameters
|
|
17
|
-
|
|
18
|
-
##### input
|
|
19
|
-
|
|
20
|
-
[`VaultApproveCapabilityRequestInput`](VaultApproveCapabilityRequestInput.md)
|
|
21
|
-
|
|
22
|
-
#### Returns
|
|
23
|
-
|
|
24
|
-
`Promise`\<`AgentCapability`\>
|
|
25
|
-
|
|
26
|
-
***
|
|
12
|
+
### ownerCreateAgent()
|
|
27
13
|
|
|
28
|
-
|
|
14
|
+
> **ownerCreateAgent**(`input`): `Promise`\<[`OwnerAgentProvisionResult`](OwnerAgentProvisionResult.md)\>
|
|
29
15
|
|
|
30
|
-
|
|
16
|
+
Generates a new identity and registers it as an agent in one step.
|
|
17
|
+
The private key is stored in the vault for managed custody.
|
|
31
18
|
|
|
32
19
|
#### Parameters
|
|
33
20
|
|
|
34
21
|
##### input
|
|
35
22
|
|
|
36
|
-
[`
|
|
23
|
+
[`VaultCreateAgentInput`](VaultCreateAgentInput.md)
|
|
37
24
|
|
|
38
25
|
#### Returns
|
|
39
26
|
|
|
40
|
-
`Promise
|
|
27
|
+
`Promise`\<[`OwnerAgentProvisionResult`](OwnerAgentProvisionResult.md)\>
|
|
41
28
|
|
|
42
29
|
***
|
|
43
30
|
|
|
44
|
-
###
|
|
31
|
+
### ownerDeleteSecret()
|
|
45
32
|
|
|
46
|
-
> **
|
|
33
|
+
> **ownerDeleteSecret**(`input`): `Promise`\<`void`\>
|
|
47
34
|
|
|
48
|
-
|
|
49
|
-
The private key is stored in the vault for managed custody.
|
|
35
|
+
Permanently deletes a secret from the vault.
|
|
50
36
|
|
|
51
37
|
#### Parameters
|
|
52
38
|
|
|
53
39
|
##### input
|
|
54
40
|
|
|
55
|
-
[`
|
|
41
|
+
[`VaultDeleteSecretInput`](VaultDeleteSecretInput.md)
|
|
56
42
|
|
|
57
43
|
#### Returns
|
|
58
44
|
|
|
59
|
-
`Promise
|
|
45
|
+
`Promise`\<`void`\>
|
|
60
46
|
|
|
61
47
|
***
|
|
62
48
|
|
|
63
|
-
###
|
|
64
|
-
|
|
65
|
-
> **ownerDefineSecretTargets**(`input`): `Promise`\<`SecretRecord`\>
|
|
49
|
+
### ownerExecuteCapabilityStateAndGrant()
|
|
66
50
|
|
|
67
|
-
|
|
51
|
+
> **ownerExecuteCapabilityStateAndGrant**(`input`): `Promise`\<`DispatchResult`\>
|
|
68
52
|
|
|
69
53
|
#### Parameters
|
|
70
54
|
|
|
71
55
|
##### input
|
|
72
56
|
|
|
73
|
-
[`
|
|
57
|
+
[`VaultApproveCapabilityRequestInput`](VaultApproveCapabilityRequestInput.md)
|
|
74
58
|
|
|
75
59
|
#### Returns
|
|
76
60
|
|
|
77
|
-
`Promise`\<`
|
|
61
|
+
`Promise`\<`DispatchResult`\>
|
|
78
62
|
|
|
79
63
|
***
|
|
80
64
|
|
|
81
|
-
###
|
|
82
|
-
|
|
83
|
-
> **ownerDeleteSecret**(`input`): `Promise`\<`void`\>
|
|
65
|
+
### ownerExecuteCapabilityStateOnce()
|
|
84
66
|
|
|
85
|
-
|
|
67
|
+
> **ownerExecuteCapabilityStateOnce**(`input`): `Promise`\<`DispatchResult`\>
|
|
86
68
|
|
|
87
69
|
#### Parameters
|
|
88
70
|
|
|
89
71
|
##### input
|
|
90
72
|
|
|
91
|
-
[`
|
|
73
|
+
[`VaultApproveCapabilityRequestInput`](VaultApproveCapabilityRequestInput.md)
|
|
92
74
|
|
|
93
75
|
#### Returns
|
|
94
76
|
|
|
95
|
-
`Promise`\<`
|
|
77
|
+
`Promise`\<`DispatchResult`\>
|
|
96
78
|
|
|
97
79
|
***
|
|
98
80
|
|
|
@@ -210,23 +192,19 @@ Lists all active capabilities granted to agents.
|
|
|
210
192
|
|
|
211
193
|
***
|
|
212
194
|
|
|
213
|
-
###
|
|
214
|
-
|
|
215
|
-
> **ownerListPendingCapabilityRequests**(): `Promise`\<readonly `PendingCapabilityRequestRecord`[]\>
|
|
195
|
+
### ownerListCapabilityStates()
|
|
216
196
|
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
`Promise`\<readonly `PendingCapabilityRequestRecord`[]\>
|
|
197
|
+
> **ownerListCapabilityStates**(`input?`): `Promise`\<readonly `CapabilityStateRecord`[]\>
|
|
220
198
|
|
|
221
|
-
|
|
199
|
+
#### Parameters
|
|
222
200
|
|
|
223
|
-
|
|
201
|
+
##### input?
|
|
224
202
|
|
|
225
|
-
|
|
203
|
+
`VaultListCapabilityStatesInput`
|
|
226
204
|
|
|
227
205
|
#### Returns
|
|
228
206
|
|
|
229
|
-
`Promise`\<readonly `
|
|
207
|
+
`Promise`\<readonly `CapabilityStateRecord`[]\>
|
|
230
208
|
|
|
231
209
|
***
|
|
232
210
|
|
|
@@ -246,25 +224,9 @@ Lists all active capabilities granted to agents.
|
|
|
246
224
|
|
|
247
225
|
***
|
|
248
226
|
|
|
249
|
-
###
|
|
227
|
+
### ownerOnCapabilityState()
|
|
250
228
|
|
|
251
|
-
> **
|
|
252
|
-
|
|
253
|
-
#### Parameters
|
|
254
|
-
|
|
255
|
-
##### callback
|
|
256
|
-
|
|
257
|
-
(`record`) => `void`
|
|
258
|
-
|
|
259
|
-
#### Returns
|
|
260
|
-
|
|
261
|
-
() => `void`
|
|
262
|
-
|
|
263
|
-
***
|
|
264
|
-
|
|
265
|
-
### ownerOnPendingDispatch()
|
|
266
|
-
|
|
267
|
-
> **ownerOnPendingDispatch**(`callback`): () => `void`
|
|
229
|
+
> **ownerOnCapabilityState**(`callback`): () => `void`
|
|
268
230
|
|
|
269
231
|
#### Parameters
|
|
270
232
|
|
|
@@ -346,9 +308,9 @@ Registers a custom HTTP flow for complex secret usage.
|
|
|
346
308
|
|
|
347
309
|
***
|
|
348
310
|
|
|
349
|
-
###
|
|
311
|
+
### ownerRejectCapabilityState()
|
|
350
312
|
|
|
351
|
-
> **
|
|
313
|
+
> **ownerRejectCapabilityState**(`requestId`): `Promise`\<`CapabilityStateRecord`\>
|
|
352
314
|
|
|
353
315
|
#### Parameters
|
|
354
316
|
|
|
@@ -358,23 +320,7 @@ Registers a custom HTTP flow for complex secret usage.
|
|
|
358
320
|
|
|
359
321
|
#### Returns
|
|
360
322
|
|
|
361
|
-
`Promise`\<`
|
|
362
|
-
|
|
363
|
-
***
|
|
364
|
-
|
|
365
|
-
### ownerRejectDispatch()
|
|
366
|
-
|
|
367
|
-
> **ownerRejectDispatch**(`requestId`): `Promise`\<`void`\>
|
|
368
|
-
|
|
369
|
-
#### Parameters
|
|
370
|
-
|
|
371
|
-
##### requestId
|
|
372
|
-
|
|
373
|
-
`string`
|
|
374
|
-
|
|
375
|
-
#### Returns
|
|
376
|
-
|
|
377
|
-
`Promise`\<`void`\>
|
|
323
|
+
`Promise`\<`CapabilityStateRecord`\>
|
|
378
324
|
|
|
379
325
|
***
|
|
380
326
|
|
|
@@ -432,7 +378,7 @@ Securely stores a new secret in the vault.
|
|
|
432
378
|
|
|
433
379
|
### ownerSubmitCapabilityRequest()
|
|
434
380
|
|
|
435
|
-
> **ownerSubmitCapabilityRequest**(`input`): `Promise`\<`
|
|
381
|
+
> **ownerSubmitCapabilityRequest**(`input`): `Promise`\<`CapabilityStateRecord`\>
|
|
436
382
|
|
|
437
383
|
#### Parameters
|
|
438
384
|
|
|
@@ -442,7 +388,7 @@ Securely stores a new secret in the vault.
|
|
|
442
388
|
|
|
443
389
|
#### Returns
|
|
444
390
|
|
|
445
|
-
`Promise`\<`
|
|
391
|
+
`Promise`\<`CapabilityStateRecord`\>
|
|
446
392
|
|
|
447
393
|
***
|
|
448
394
|
|
|
@@ -466,7 +412,7 @@ Securely stores a new secret in the vault.
|
|
|
466
412
|
|
|
467
413
|
> **ownerWriteSecret**(`input`): `Promise`\<`SecretRecord`\>
|
|
468
414
|
|
|
469
|
-
|
|
415
|
+
Stores a manually provided secret in the vault.
|
|
470
416
|
|
|
471
417
|
#### Parameters
|
|
472
418
|
|