@the-ai-company/cbio-node-runtime 1.55.1 → 1.57.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 +53 -29
- 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 -11
- package/dist/clients/owner/client.js +61 -43
- package/dist/clients/owner/client.js.map +1 -1
- package/dist/clients/owner/contracts.d.ts +23 -10
- package/dist/clients/owner/index.d.ts +1 -1
- package/dist/runtime/index.d.ts +3 -1
- package/dist/runtime/index.js +1 -0
- package/dist/runtime/index.js.map +1 -1
- package/dist/runtime/owner-session.d.ts +26 -0
- package/dist/runtime/owner-session.js +89 -0
- package/dist/runtime/owner-session.js.map +1 -0
- package/dist/vault-core/contracts.d.ts +48 -35
- package/dist/vault-core/contracts.js.map +1 -1
- package/dist/vault-core/core.d.ts +16 -21
- package/dist/vault-core/core.js +278 -159
- package/dist/vault-core/core.js.map +1 -1
- package/dist/vault-core/defaults.d.ts +8 -20
- package/dist/vault-core/defaults.js +14 -37
- 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 +17 -9
- package/dist/vault-core/persistence.js.map +1 -1
- package/dist/vault-core/ports.d.ts +8 -20
- package/dist/vault-ingress/defaults.d.ts +2 -2
- package/dist/vault-ingress/index.d.ts +14 -33
- package/dist/vault-ingress/index.js +18 -31
- 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 +4 -1
- package/docs/REFERENCE.md +44 -30
- package/docs/api/README.md +7 -2
- package/docs/api/classes/IdentityError.md +1 -1
- package/docs/api/classes/OwnerClientError.md +1 -1
- package/docs/api/classes/VaultCore.md +34 -94
- 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 +37 -0
- 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 +39 -1
- package/docs/api/interfaces/CreateAgentClientOptions.md +1 -1
- package/docs/api/interfaces/CreateIdentityOptions.md +1 -1
- package/docs/api/interfaces/CreateOwnerSessionOptions.md +245 -0
- 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/OwnerDefineSecretTargetsInput.md +1 -1
- package/docs/api/interfaces/OwnerSecretTargetBinding.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 +95 -0
- package/docs/api/interfaces/OwnerStoreSecretInput.md +1 -1
- package/docs/api/interfaces/OwnerWriteSecretInput.md +1 -1
- package/docs/api/interfaces/RecoverVaultOptions.md +5 -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 +41 -77
- 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 +25 -1
- package/docs/api/interfaces/VaultGrantCapabilityRequest.md +23 -0
- 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 +7 -0
- package/docs/api/variables/DEFAULT_VAULT_KEY_CUSTODY_BLOB_KEY.md +1 -1
- package/docs/es/README.md +6 -9
- package/docs/fr/README.md +6 -10
- package/docs/ja/README.md +6 -9
- package/docs/ko/README.md +6 -9
- package/docs/pt/README.md +6 -9
- package/docs/zh/README.md +101 -42
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
[**CBIO Node Runtime Agent API v1.
|
|
1
|
+
[**CBIO Node Runtime Agent API v1.57.0**](../README.md)
|
|
2
2
|
|
|
3
3
|
***
|
|
4
4
|
|
|
@@ -9,90 +9,90 @@ In Sovereign Vault model, administrative actions are implicitly authorized by th
|
|
|
9
9
|
|
|
10
10
|
## Methods
|
|
11
11
|
|
|
12
|
-
###
|
|
12
|
+
### ownerCreateAgent()
|
|
13
|
+
|
|
14
|
+
> **ownerCreateAgent**(`input`): `Promise`\<[`OwnerAgentProvisionResult`](OwnerAgentProvisionResult.md)\>
|
|
13
15
|
|
|
14
|
-
|
|
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.
|
|
15
18
|
|
|
16
19
|
#### Parameters
|
|
17
20
|
|
|
18
21
|
##### input
|
|
19
22
|
|
|
20
|
-
[`
|
|
23
|
+
[`VaultCreateAgentInput`](VaultCreateAgentInput.md)
|
|
21
24
|
|
|
22
25
|
#### Returns
|
|
23
26
|
|
|
24
|
-
`Promise
|
|
27
|
+
`Promise`\<[`OwnerAgentProvisionResult`](OwnerAgentProvisionResult.md)\>
|
|
25
28
|
|
|
26
29
|
***
|
|
27
30
|
|
|
28
|
-
###
|
|
31
|
+
### ownerDefineSecretTargets()
|
|
32
|
+
|
|
33
|
+
> **ownerDefineSecretTargets**(`input`): `Promise`\<`SecretRecord`\>
|
|
29
34
|
|
|
30
|
-
|
|
35
|
+
Refines the allowed targets for an existing secret.
|
|
31
36
|
|
|
32
37
|
#### Parameters
|
|
33
38
|
|
|
34
39
|
##### input
|
|
35
40
|
|
|
36
|
-
[`
|
|
41
|
+
[`OwnerDefineSecretTargetsInput`](OwnerDefineSecretTargetsInput.md)
|
|
37
42
|
|
|
38
43
|
#### Returns
|
|
39
44
|
|
|
40
|
-
`Promise`\<`
|
|
45
|
+
`Promise`\<`SecretRecord`\>
|
|
41
46
|
|
|
42
47
|
***
|
|
43
48
|
|
|
44
|
-
###
|
|
49
|
+
### ownerDeleteSecret()
|
|
45
50
|
|
|
46
|
-
> **
|
|
51
|
+
> **ownerDeleteSecret**(`input`): `Promise`\<`void`\>
|
|
47
52
|
|
|
48
|
-
|
|
49
|
-
The private key is stored in the vault for managed custody.
|
|
53
|
+
Permanently deletes a secret from the vault.
|
|
50
54
|
|
|
51
55
|
#### Parameters
|
|
52
56
|
|
|
53
57
|
##### input
|
|
54
58
|
|
|
55
|
-
[`
|
|
59
|
+
[`VaultDeleteSecretInput`](VaultDeleteSecretInput.md)
|
|
56
60
|
|
|
57
61
|
#### Returns
|
|
58
62
|
|
|
59
|
-
`Promise
|
|
63
|
+
`Promise`\<`void`\>
|
|
60
64
|
|
|
61
65
|
***
|
|
62
66
|
|
|
63
|
-
###
|
|
67
|
+
### ownerExecuteCapabilityStateAndGrant()
|
|
64
68
|
|
|
65
|
-
> **
|
|
66
|
-
|
|
67
|
-
Refines the allowed targets for an existing secret.
|
|
69
|
+
> **ownerExecuteCapabilityStateAndGrant**(`input`): `Promise`\<`DispatchResult`\>
|
|
68
70
|
|
|
69
71
|
#### Parameters
|
|
70
72
|
|
|
71
73
|
##### input
|
|
72
74
|
|
|
73
|
-
[`
|
|
75
|
+
[`VaultApproveCapabilityRequestInput`](VaultApproveCapabilityRequestInput.md)
|
|
74
76
|
|
|
75
77
|
#### Returns
|
|
76
78
|
|
|
77
|
-
`Promise`\<`
|
|
79
|
+
`Promise`\<`DispatchResult`\>
|
|
78
80
|
|
|
79
81
|
***
|
|
80
82
|
|
|
81
|
-
###
|
|
82
|
-
|
|
83
|
-
> **ownerDeleteSecret**(`input`): `Promise`\<`void`\>
|
|
83
|
+
### ownerExecuteCapabilityStateOnce()
|
|
84
84
|
|
|
85
|
-
|
|
85
|
+
> **ownerExecuteCapabilityStateOnce**(`input`): `Promise`\<`DispatchResult`\>
|
|
86
86
|
|
|
87
87
|
#### Parameters
|
|
88
88
|
|
|
89
89
|
##### input
|
|
90
90
|
|
|
91
|
-
[`
|
|
91
|
+
[`VaultApproveCapabilityRequestInput`](VaultApproveCapabilityRequestInput.md)
|
|
92
92
|
|
|
93
93
|
#### Returns
|
|
94
94
|
|
|
95
|
-
`Promise`\<`
|
|
95
|
+
`Promise`\<`DispatchResult`\>
|
|
96
96
|
|
|
97
97
|
***
|
|
98
98
|
|
|
@@ -124,7 +124,7 @@ Grants a specific capability to an agent.
|
|
|
124
124
|
|
|
125
125
|
##### input
|
|
126
126
|
|
|
127
|
-
[`
|
|
127
|
+
[`OwnerGrantCapabilityInput`](../type-aliases/OwnerGrantCapabilityInput.md)
|
|
128
128
|
|
|
129
129
|
#### Returns
|
|
130
130
|
|
|
@@ -210,23 +210,19 @@ Lists all active capabilities granted to agents.
|
|
|
210
210
|
|
|
211
211
|
***
|
|
212
212
|
|
|
213
|
-
###
|
|
214
|
-
|
|
215
|
-
> **ownerListPendingCapabilityRequests**(): `Promise`\<readonly `PendingCapabilityRequestRecord`[]\>
|
|
213
|
+
### ownerListCapabilityStates()
|
|
216
214
|
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
`Promise`\<readonly `PendingCapabilityRequestRecord`[]\>
|
|
215
|
+
> **ownerListCapabilityStates**(`input?`): `Promise`\<readonly `CapabilityStateRecord`[]\>
|
|
220
216
|
|
|
221
|
-
|
|
217
|
+
#### Parameters
|
|
222
218
|
|
|
223
|
-
|
|
219
|
+
##### input?
|
|
224
220
|
|
|
225
|
-
|
|
221
|
+
`VaultListCapabilityStatesInput`
|
|
226
222
|
|
|
227
223
|
#### Returns
|
|
228
224
|
|
|
229
|
-
`Promise`\<readonly `
|
|
225
|
+
`Promise`\<readonly `CapabilityStateRecord`[]\>
|
|
230
226
|
|
|
231
227
|
***
|
|
232
228
|
|
|
@@ -246,25 +242,9 @@ Lists all active capabilities granted to agents.
|
|
|
246
242
|
|
|
247
243
|
***
|
|
248
244
|
|
|
249
|
-
###
|
|
245
|
+
### ownerOnCapabilityState()
|
|
250
246
|
|
|
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`
|
|
247
|
+
> **ownerOnCapabilityState**(`callback`): () => `void`
|
|
268
248
|
|
|
269
249
|
#### Parameters
|
|
270
250
|
|
|
@@ -346,9 +326,9 @@ Registers a custom HTTP flow for complex secret usage.
|
|
|
346
326
|
|
|
347
327
|
***
|
|
348
328
|
|
|
349
|
-
###
|
|
329
|
+
### ownerRejectCapabilityState()
|
|
350
330
|
|
|
351
|
-
> **
|
|
331
|
+
> **ownerRejectCapabilityState**(`requestId`): `Promise`\<`CapabilityStateRecord`\>
|
|
352
332
|
|
|
353
333
|
#### Parameters
|
|
354
334
|
|
|
@@ -358,23 +338,7 @@ Registers a custom HTTP flow for complex secret usage.
|
|
|
358
338
|
|
|
359
339
|
#### Returns
|
|
360
340
|
|
|
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`\>
|
|
341
|
+
`Promise`\<`CapabilityStateRecord`\>
|
|
378
342
|
|
|
379
343
|
***
|
|
380
344
|
|
|
@@ -432,7 +396,7 @@ Securely stores a new secret in the vault.
|
|
|
432
396
|
|
|
433
397
|
### ownerSubmitCapabilityRequest()
|
|
434
398
|
|
|
435
|
-
> **ownerSubmitCapabilityRequest**(`input`): `Promise`\<`
|
|
399
|
+
> **ownerSubmitCapabilityRequest**(`input`): `Promise`\<`CapabilityStateRecord`\>
|
|
436
400
|
|
|
437
401
|
#### Parameters
|
|
438
402
|
|
|
@@ -442,7 +406,7 @@ Securely stores a new secret in the vault.
|
|
|
442
406
|
|
|
443
407
|
#### Returns
|
|
444
408
|
|
|
445
|
-
`Promise`\<`
|
|
409
|
+
`Promise`\<`CapabilityStateRecord`\>
|
|
446
410
|
|
|
447
411
|
***
|
|
448
412
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
[**CBIO Node Runtime Agent API v1.
|
|
1
|
+
[**CBIO Node Runtime Agent API v1.57.0**](../README.md)
|
|
2
2
|
|
|
3
3
|
***
|
|
4
4
|
|
|
@@ -12,6 +12,24 @@
|
|
|
12
12
|
|
|
13
13
|
***
|
|
14
14
|
|
|
15
|
+
### auditRequired?
|
|
16
|
+
|
|
17
|
+
> `optional` **auditRequired?**: `boolean`
|
|
18
|
+
|
|
19
|
+
***
|
|
20
|
+
|
|
21
|
+
### customFlowId?
|
|
22
|
+
|
|
23
|
+
> `optional` **customFlowId?**: `string`
|
|
24
|
+
|
|
25
|
+
***
|
|
26
|
+
|
|
27
|
+
### expiresAt?
|
|
28
|
+
|
|
29
|
+
> `optional` **expiresAt?**: `string`
|
|
30
|
+
|
|
31
|
+
***
|
|
32
|
+
|
|
15
33
|
### expiresIn?
|
|
16
34
|
|
|
17
35
|
> `optional` **expiresIn?**: `number`
|
|
@@ -62,6 +80,12 @@
|
|
|
62
80
|
|
|
63
81
|
***
|
|
64
82
|
|
|
83
|
+
### secretIds?
|
|
84
|
+
|
|
85
|
+
> `optional` **secretIds?**: readonly `string`[]
|
|
86
|
+
|
|
87
|
+
***
|
|
88
|
+
|
|
65
89
|
### skipAudit?
|
|
66
90
|
|
|
67
91
|
> `optional` **skipAudit?**: `boolean`
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
[**CBIO Node Runtime Agent API v1.57.0**](../README.md)
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
# Interface: VaultGrantCapabilityRequest
|
|
6
|
+
|
|
7
|
+
## Properties
|
|
8
|
+
|
|
9
|
+
### capability
|
|
10
|
+
|
|
11
|
+
> **capability**: `AgentCapability` & `object`
|
|
12
|
+
|
|
13
|
+
#### Type Declaration
|
|
14
|
+
|
|
15
|
+
##### auditRequired?
|
|
16
|
+
|
|
17
|
+
> `optional` **auditRequired?**: `boolean`
|
|
18
|
+
|
|
19
|
+
***
|
|
20
|
+
|
|
21
|
+
### requestedAt?
|
|
22
|
+
|
|
23
|
+
> `optional` **requestedAt?**: `string`
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
[**CBIO Node Runtime Agent API v1.57.0**](../README.md)
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
# Type Alias: OwnerGrantCapabilityInput
|
|
6
|
+
|
|
7
|
+
> **OwnerGrantCapabilityInput** = [`VaultGrantCapabilityInput`](../interfaces/VaultGrantCapabilityInput.md) \| [`VaultGrantCapabilityRequest`](../interfaces/VaultGrantCapabilityRequest.md)
|
package/docs/es/README.md
CHANGED
|
@@ -18,14 +18,11 @@ npm install @the-ai-company/cbio-node-runtime
|
|
|
18
18
|
|
|
19
19
|
```ts
|
|
20
20
|
import {
|
|
21
|
-
createVaultService,
|
|
22
21
|
createIdentity,
|
|
23
|
-
|
|
24
|
-
createVault,
|
|
25
|
-
listIdentities,
|
|
22
|
+
createVault,
|
|
26
23
|
listVaults,
|
|
27
24
|
recoverVault,
|
|
28
|
-
|
|
25
|
+
createOwnerSession,
|
|
29
26
|
createVaultClient,
|
|
30
27
|
createAgentClient,
|
|
31
28
|
FsStorageProvider,
|
|
@@ -41,10 +38,10 @@ import {
|
|
|
41
38
|
|
|
42
39
|
Ruta principal recomendada para vault persistente:
|
|
43
40
|
|
|
44
|
-
- crear el vault persistente con `createVault(...)`
|
|
45
|
-
- recuperar el vault persistente con `recoverVault(...)` usando
|
|
46
|
-
-
|
|
47
|
-
|
|
41
|
+
- crear el vault persistente con `createVault(...)`
|
|
42
|
+
- recuperar el vault persistente con `recoverVault(...)` usando `vaultId` + `password`
|
|
43
|
+
- para GUIs o procesos de larga duración, conservar `createOwnerSession(...)` en lugar de cachear un `createVaultClient(...)` crudo
|
|
44
|
+
- usar `createVaultClient(...)` solo para scripts breves o tareas puntuales en el runtime actual
|
|
48
45
|
|
|
49
46
|
La API antigua centrada en `CbioIdentity` ya no es la superficie principal del producto.
|
|
50
47
|
|
package/docs/fr/README.md
CHANGED
|
@@ -18,14 +18,11 @@ npm install @the-ai-company/cbio-node-runtime
|
|
|
18
18
|
|
|
19
19
|
```ts
|
|
20
20
|
import {
|
|
21
|
-
createVaultService,
|
|
22
21
|
createIdentity,
|
|
23
|
-
|
|
24
|
-
createVault,
|
|
25
|
-
listIdentities,
|
|
22
|
+
createVault,
|
|
26
23
|
listVaults,
|
|
27
24
|
recoverVault,
|
|
28
|
-
|
|
25
|
+
createOwnerSession,
|
|
29
26
|
createVaultClient,
|
|
30
27
|
createAgentClient,
|
|
31
28
|
FsStorageProvider,
|
|
@@ -41,11 +38,10 @@ import {
|
|
|
41
38
|
|
|
42
39
|
Chemin principal recommande pour un vault persistant :
|
|
43
40
|
|
|
44
|
-
- créer le coffre persistant avec `createVault(...)`
|
|
45
|
-
- restaurer le coffre persistant avec `recoverVault(...)` via
|
|
46
|
-
-
|
|
47
|
-
-
|
|
48
|
-
- Toutes les métadonnées publiques (comme le pseudo) suivent désormais l'interface `VaultPublicMetadata` et incluent une **signature numérique** que le SDK vérifie automatiquement.
|
|
41
|
+
- créer le coffre persistant avec `createVault(...)`
|
|
42
|
+
- restaurer le coffre persistant avec `recoverVault(...)` via `vaultId` + `password`
|
|
43
|
+
- pour les GUIs ou processus longs, conserver `createOwnerSession(...)` plutôt qu'un `createVaultClient(...)` brut en cache
|
|
44
|
+
- réserver `createVaultClient(...)` aux scripts courts ou aux tâches ponctuelles dans le runtime courant
|
|
49
45
|
|
|
50
46
|
L'ancienne API centree sur `CbioIdentity` n'est plus la surface principale du produit.
|
|
51
47
|
|
package/docs/ja/README.md
CHANGED
|
@@ -18,14 +18,11 @@ npm install @the-ai-company/cbio-node-runtime
|
|
|
18
18
|
|
|
19
19
|
```ts
|
|
20
20
|
import {
|
|
21
|
-
createVaultService,
|
|
22
21
|
createIdentity,
|
|
23
|
-
|
|
24
|
-
createVault,
|
|
25
|
-
listIdentities,
|
|
22
|
+
createVault,
|
|
26
23
|
listVaults,
|
|
27
24
|
recoverVault,
|
|
28
|
-
|
|
25
|
+
createOwnerSession,
|
|
29
26
|
createVaultClient,
|
|
30
27
|
createAgentClient,
|
|
31
28
|
FsStorageProvider,
|
|
@@ -41,10 +38,10 @@ import {
|
|
|
41
38
|
|
|
42
39
|
推奨される persistent-vault の主経路:
|
|
43
40
|
|
|
44
|
-
- `createVault(...)` で persistent vault を作成する
|
|
45
|
-
- `recoverVault(...)` で
|
|
46
|
-
-
|
|
47
|
-
|
|
41
|
+
- `createVault(...)` で persistent vault を作成する
|
|
42
|
+
- `recoverVault(...)` で `vaultId` と `password` を使って persistent vault を復旧する
|
|
43
|
+
- GUI や長寿命プロセスでは、生の `createVaultClient(...)` をキャッシュせず `createOwnerSession(...)` を保持する
|
|
44
|
+
- `createVaultClient(...)` は短命スクリプトやその runtime 限定の単発処理に使う
|
|
48
45
|
|
|
49
46
|
旧 `CbioIdentity` 中心 API は、もはや主要な公開面ではありません。
|
|
50
47
|
|
package/docs/ko/README.md
CHANGED
|
@@ -18,14 +18,11 @@ npm install @the-ai-company/cbio-node-runtime
|
|
|
18
18
|
|
|
19
19
|
```ts
|
|
20
20
|
import {
|
|
21
|
-
createVaultService,
|
|
22
21
|
createIdentity,
|
|
23
|
-
|
|
24
|
-
createVault,
|
|
25
|
-
listIdentities,
|
|
22
|
+
createVault,
|
|
26
23
|
listVaults,
|
|
27
24
|
recoverVault,
|
|
28
|
-
|
|
25
|
+
createOwnerSession,
|
|
29
26
|
createVaultClient,
|
|
30
27
|
createAgentClient,
|
|
31
28
|
FsStorageProvider,
|
|
@@ -41,10 +38,10 @@ import {
|
|
|
41
38
|
|
|
42
39
|
권장되는 persistent-vault 주 경로:
|
|
43
40
|
|
|
44
|
-
- `createVault(...)` 로 persistent vault 를 생성합니다
|
|
45
|
-
- `recoverVault(...)` 로
|
|
46
|
-
-
|
|
47
|
-
|
|
41
|
+
- `createVault(...)` 로 persistent vault 를 생성합니다
|
|
42
|
+
- `recoverVault(...)` 로 `vaultId` 와 `password` 를 사용해 persistent vault 를 복구합니다
|
|
43
|
+
- GUI 나 장수명 프로세스에서는 raw `createVaultClient(...)` 를 캐시하지 말고 `createOwnerSession(...)` 을 유지합니다
|
|
44
|
+
- `createVaultClient(...)` 는 현재 runtime 안의 짧은 스크립트나 일회성 작업에 사용합니다
|
|
48
45
|
|
|
49
46
|
이전 `CbioIdentity` 중심 API 는 더 이상 주요 제품 표면이 아닙니다.
|
|
50
47
|
|
package/docs/pt/README.md
CHANGED
|
@@ -18,14 +18,11 @@ npm install @the-ai-company/cbio-node-runtime
|
|
|
18
18
|
|
|
19
19
|
```ts
|
|
20
20
|
import {
|
|
21
|
-
createVaultService,
|
|
22
21
|
createIdentity,
|
|
23
|
-
|
|
24
|
-
createVault,
|
|
25
|
-
listIdentities,
|
|
22
|
+
createVault,
|
|
26
23
|
listVaults,
|
|
27
24
|
recoverVault,
|
|
28
|
-
|
|
25
|
+
createOwnerSession,
|
|
29
26
|
createVaultClient,
|
|
30
27
|
createAgentClient,
|
|
31
28
|
FsStorageProvider,
|
|
@@ -41,10 +38,10 @@ import {
|
|
|
41
38
|
|
|
42
39
|
Caminho principal recomendado para vault persistente:
|
|
43
40
|
|
|
44
|
-
- criar o cofre persistente com `createVault(...)`
|
|
45
|
-
- recuperar o cofre persistente com `recoverVault(...)` usando
|
|
46
|
-
-
|
|
47
|
-
|
|
41
|
+
- criar o cofre persistente com `createVault(...)`
|
|
42
|
+
- recuperar o cofre persistente com `recoverVault(...)` usando `vaultId` + `password`
|
|
43
|
+
- para GUIs ou processos longos, manter `createOwnerSession(...)` em vez de cachear um `createVaultClient(...)` bruto
|
|
44
|
+
- usar `createVaultClient(...)` apenas para scripts curtos ou tarefas pontuais no runtime atual
|
|
48
45
|
|
|
49
46
|
A antiga API centrada em `CbioIdentity` nao e mais a superficie principal do produto.
|
|
50
47
|
|