@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.
- package/dist/clients/owner/client.d.ts +10 -14
- package/dist/clients/owner/client.js +56 -182
- package/dist/clients/owner/client.js.map +1 -1
- package/dist/clients/owner/contracts.d.ts +9 -0
- package/dist/clients/owner/index.d.ts +1 -1
- package/dist/protocol/crypto.d.ts +5 -0
- package/dist/protocol/crypto.js +11 -0
- package/dist/protocol/crypto.js.map +1 -1
- package/dist/runtime/bootstrap.d.ts +14 -27
- package/dist/runtime/bootstrap.js +17 -63
- package/dist/runtime/bootstrap.js.map +1 -1
- package/dist/runtime/identity.d.ts +1 -23
- package/dist/runtime/identity.js +2 -74
- package/dist/runtime/identity.js.map +1 -1
- package/dist/runtime/index.d.ts +10 -24
- package/dist/runtime/index.js +7 -11
- package/dist/runtime/index.js.map +1 -1
- package/dist/runtime/vault-metadata.d.ts +4 -16
- package/dist/runtime/vault-metadata.js +6 -41
- package/dist/runtime/vault-metadata.js.map +1 -1
- package/dist/vault-core/contracts.d.ts +3 -23
- package/dist/vault-core/contracts.js +0 -1
- package/dist/vault-core/contracts.js.map +1 -1
- package/dist/vault-core/core.d.ts +4 -4
- package/dist/vault-core/core.js +10 -76
- package/dist/vault-core/core.js.map +1 -1
- package/dist/vault-core/defaults.d.ts +4 -52
- package/dist/vault-core/defaults.js +2 -300
- package/dist/vault-core/defaults.js.map +1 -1
- package/dist/vault-core/index.d.ts +5 -5
- package/dist/vault-core/index.js +3 -3
- package/dist/vault-core/index.js.map +1 -1
- package/dist/vault-core/persistence.d.ts +5 -34
- package/dist/vault-core/persistence.js +8 -38
- package/dist/vault-core/persistence.js.map +1 -1
- package/dist/vault-core/ports.d.ts +2 -51
- package/dist/vault-ingress/index.d.ts +1 -2
- package/dist/vault-ingress/index.js +0 -5
- package/dist/vault-ingress/index.js.map +1 -1
- package/docs/api/README.md +8 -92
- package/docs/api/classes/IdentityError.md +2 -2
- package/docs/api/classes/VaultCore.md +320 -0
- 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 +2 -2
- package/docs/api/functions/createOwnerHttpFlowBoundary.md +4 -4
- package/docs/api/functions/createPersistentVaultCoreDependencies.md +3 -67
- package/docs/api/functions/createStandardAcquireBoundary.md +3 -3
- package/docs/api/functions/createStandardDispatchBoundary.md +3 -3
- package/docs/api/functions/createVault.md +3 -3
- package/docs/api/functions/createVaultClient.md +2 -2
- package/docs/api/functions/createVaultCore.md +4 -4
- package/docs/api/functions/createVaultCoreDependencies.md +17 -0
- package/docs/api/functions/createVaultService.md +6 -6
- package/docs/api/functions/createWorkspaceStorage.md +1 -1
- package/docs/api/functions/deriveIdentityId.md +1 -1
- package/docs/api/functions/deriveVaultWorkingKeyFromPassword.md +24 -0
- package/docs/api/functions/getDefaultWorkspaceDir.md +1 -1
- package/docs/api/functions/handleVaultHttpDispatch.md +4 -4
- package/docs/api/functions/initializeVaultCustody.md +1 -1
- package/docs/api/functions/listVaults.md +5 -5
- package/docs/api/functions/readVaultProfile.md +3 -3
- package/docs/api/functions/recoverVault.md +4 -4
- package/docs/api/functions/recoverVaultWorkingKey.md +1 -1
- package/docs/api/functions/restoreIdentity.md +1 -1
- package/docs/api/functions/updateVaultMetadata.md +7 -7
- package/docs/api/functions/wrapVaultCoreAsVaultService.md +6 -6
- package/docs/api/functions/writeVaultProfile.md +3 -3
- package/docs/api/interfaces/AgentClient.md +3 -3
- package/docs/api/interfaces/AgentDispatchIntent.md +1 -1
- package/docs/api/interfaces/AgentDispatchTransport.md +4 -4
- package/docs/api/interfaces/AgentIdentity.md +1 -1
- package/docs/api/interfaces/AgentSigner.md +1 -1
- package/docs/api/interfaces/CbioRuntime.md +55 -396
- package/docs/api/interfaces/CreateAgentClientOptions.md +4 -4
- package/docs/api/interfaces/CreateIdentityOptions.md +1 -5
- package/docs/api/interfaces/CreatePersistentVaultCoreDependenciesOptions.md +9 -9
- package/docs/api/interfaces/CreateVaultClientOptions.md +5 -5
- package/docs/api/interfaces/CreateVaultOptions.md +16 -16
- package/docs/api/interfaces/CreatedVault.md +3 -3
- package/docs/api/interfaces/DefaultPolicyEngineOptions.md +3 -3
- 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/OwnerDefineSecretTargetsInput.md +1 -1
- package/docs/api/interfaces/OwnerSecretTargetBinding.md +1 -1
- package/docs/api/interfaces/OwnerStoreSecretInput.md +1 -1
- package/docs/api/interfaces/OwnerWriteSecretInput.md +1 -1
- package/docs/api/interfaces/RecoverVaultOptions.md +10 -10
- package/docs/api/interfaces/RecoveredVault.md +3 -3
- package/docs/api/interfaces/RestoreIdentityOptions.md +1 -1
- package/docs/api/interfaces/Signer.md +1 -1
- package/docs/api/interfaces/VaultAuditQueryInput.md +1 -1
- package/docs/api/interfaces/VaultClient.md +36 -29
- package/docs/api/interfaces/{CreateDefaultVaultCoreDependenciesOptions.md → VaultCoreDependenciesOptions.md} +3 -3
- package/docs/api/interfaces/VaultCreateAgentInput.md +29 -0
- package/docs/api/interfaces/VaultDeleteSecretInput.md +1 -1
- package/docs/api/interfaces/VaultExportSecretInput.md +1 -1
- package/docs/api/interfaces/VaultGrantCapabilityInput.md +2 -2
- package/docs/api/interfaces/VaultIdentity.md +1 -1
- package/docs/api/interfaces/VaultListAgentsInput.md +1 -1
- package/docs/api/interfaces/VaultListCapabilitiesInput.md +1 -1
- package/docs/api/interfaces/{VaultPublicMetadata.md → VaultMetadata.md} +2 -2
- package/docs/api/interfaces/VaultObject.md +3 -3
- package/docs/api/interfaces/VaultProfile.md +7 -11
- package/docs/api/interfaces/VaultRegisterAgentInput.md +19 -1
- package/docs/api/interfaces/VaultRegisterFlowInput.md +7 -7
- package/docs/api/interfaces/VaultRevokeCapabilityInput.md +1 -1
- package/docs/api/interfaces/VaultSigner.md +1 -1
- package/docs/api/type-aliases/AgentCapabilityEnvelope.md +2 -2
- 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
- package/docs/api/classes/InMemoryReplayGuard.md +0 -45
- package/docs/api/enumerations/AuditAction.md +0 -95
- package/docs/api/enumerations/AuditOutcome.md +0 -29
- package/docs/api/enumerations/DispatchStatus.md +0 -23
- package/docs/api/functions/createChildIdentity.md +0 -25
- package/docs/api/functions/createDefaultVaultCoreDependencies.md +0 -77
- package/docs/api/functions/deriveChildIdentity.md +0 -41
- package/docs/api/functions/ensureIdentityPrivateVault.md +0 -21
- package/docs/api/functions/identityPrivateVaultChildrenKey.md +0 -17
- package/docs/api/functions/identityPrivateVaultPrefix.md +0 -17
- package/docs/api/functions/identityPrivateVaultProfileKey.md +0 -17
- package/docs/api/functions/identityPrivateVaultPublicSealedKey.md +0 -17
- package/docs/api/functions/listIdentities.md +0 -19
- package/docs/api/functions/readIdentityMetadata.md +0 -29
- package/docs/api/functions/readIdentityPrivateVaultChildrenState.md +0 -21
- package/docs/api/functions/readIdentityPrivateVaultProfile.md +0 -21
- package/docs/api/functions/readVaultPublicMetadata.md +0 -23
- package/docs/api/functions/toOwnerHttpFlowBoundary.md +0 -17
- package/docs/api/interfaces/AgentCapability.md +0 -103
- package/docs/api/interfaces/AgentIdentityRecord.md +0 -23
- package/docs/api/interfaces/AgentIdentityRegistry.md +0 -57
- package/docs/api/interfaces/AgentProof.md +0 -29
- package/docs/api/interfaces/AgentProofVerifier.md +0 -21
- package/docs/api/interfaces/AuditEntry.md +0 -89
- package/docs/api/interfaces/AuditLog.md +0 -37
- package/docs/api/interfaces/AuditQuery.md +0 -29
- package/docs/api/interfaces/CapabilityRegistry.md +0 -65
- package/docs/api/interfaces/CapabilityRevocationRegistry.md +0 -53
- package/docs/api/interfaces/ChildIdentity.md +0 -77
- package/docs/api/interfaces/Clock.md +0 -15
- package/docs/api/interfaces/CreateChildIdentityOptions.md +0 -19
- package/docs/api/interfaces/CustomHttpFlowDefinition.md +0 -71
- package/docs/api/interfaces/CustomHttpFlowRegistry.md +0 -41
- package/docs/api/interfaces/DeriveIdentityOptions.md +0 -11
- package/docs/api/interfaces/DispatchAuthorization.md +0 -35
- package/docs/api/interfaces/DispatchInstruction.md +0 -47
- package/docs/api/interfaces/DispatchRequest.md +0 -77
- package/docs/api/interfaces/DispatchResult.md +0 -53
- package/docs/api/interfaces/IdGenerator.md +0 -39
- package/docs/api/interfaces/IdentityPrivateVaultChildRecord.md +0 -35
- package/docs/api/interfaces/IdentityPrivateVaultChildrenState.md +0 -17
- package/docs/api/interfaces/IdentityPrivateVaultProfile.md +0 -35
- package/docs/api/interfaces/IssuerWriteSecretCommand.md +0 -59
- package/docs/api/interfaces/OwnerAuditRequest.md +0 -47
- package/docs/api/interfaces/OwnerDefineSecretTargetsCommand.md +0 -53
- package/docs/api/interfaces/OwnerDeleteSecretCommand.md +0 -47
- package/docs/api/interfaces/OwnerExportSecretRequest.md +0 -47
- package/docs/api/interfaces/OwnerHttpFlowBoundary.md +0 -51
- package/docs/api/interfaces/OwnerIdentityRecord.md +0 -23
- package/docs/api/interfaces/OwnerIdentityRegistry.md +0 -57
- package/docs/api/interfaces/OwnerListAgentsRequest.md +0 -41
- package/docs/api/interfaces/OwnerListCapabilitiesRequest.md +0 -47
- package/docs/api/interfaces/OwnerProof.md +0 -29
- package/docs/api/interfaces/OwnerProofVerifier.md +0 -181
- package/docs/api/interfaces/OwnerRegisterAgentIdentityCommand.md +0 -47
- package/docs/api/interfaces/OwnerRegisterCapabilityCommand.md +0 -47
- package/docs/api/interfaces/OwnerRegisterCustomHttpFlowCommand.md +0 -83
- package/docs/api/interfaces/OwnerRevokeCapabilityCommand.md +0 -53
- package/docs/api/interfaces/OwnerSecretExport.md +0 -35
- package/docs/api/interfaces/OwnerWriteSecretCommand.md +0 -65
- package/docs/api/interfaces/PolicyEngine.md +0 -81
- package/docs/api/interfaces/RateLimitStore.md +0 -33
- package/docs/api/interfaces/ReplayGuard.md +0 -21
- package/docs/api/interfaces/SecretAlias.md +0 -11
- package/docs/api/interfaces/SecretCustody.md +0 -57
- package/docs/api/interfaces/SecretId.md +0 -11
- package/docs/api/interfaces/SecretRecord.md +0 -53
- package/docs/api/interfaces/SecretRepository.md +0 -69
- package/docs/api/interfaces/SecretVersion.md +0 -11
- package/docs/api/interfaces/SignatureAgentProofVerifierOptions.md +0 -21
- package/docs/api/interfaces/TrustedExecutor.md +0 -31
- package/docs/api/interfaces/VaultAcquireSecretInput.md +0 -53
- package/docs/api/interfaces/VaultAcquireSecretResult.md +0 -41
- package/docs/api/interfaces/VaultAgentDispatchErrorResponse.md +0 -25
- package/docs/api/interfaces/VaultAgentDispatchRequest.md +0 -75
- package/docs/api/interfaces/VaultAgentDispatchResponse.md +0 -17
- package/docs/api/interfaces/VaultCore.md +0 -311
- package/docs/api/interfaces/VaultCoreDependencies.md +0 -95
- package/docs/api/interfaces/VaultCustomFlowResolver.md +0 -25
- package/docs/api/interfaces/VaultId.md +0 -11
- package/docs/api/interfaces/VaultPrincipal.md +0 -17
- package/docs/api/interfaces/VaultService.md +0 -251
- package/docs/api/interfaces/VaultTargetBinding.md +0 -35
- package/docs/api/type-aliases/IdentityPrivateVaultAccess.md +0 -7
- package/docs/api/type-aliases/RedactedResponseShape.md +0 -7
- package/docs/api/type-aliases/VaultAcquireSecretFlow.md +0 -7
- package/docs/api/type-aliases/VaultPrincipalKind.md +0 -7
- package/docs/api/type-aliases/VaultWriteSecretCommand.md +0 -7
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
[**CBIO Node Runtime Agent API v1.
|
|
1
|
+
[**CBIO Node Runtime Agent API v1.47.0**](../README.md)
|
|
2
2
|
|
|
3
3
|
***
|
|
4
4
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
## Extends
|
|
8
8
|
|
|
9
|
-
- [`
|
|
9
|
+
- [`VaultCoreDependenciesOptions`](VaultCoreDependenciesOptions.md)
|
|
10
10
|
|
|
11
11
|
## Properties
|
|
12
12
|
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
|
|
17
17
|
#### Inherited from
|
|
18
18
|
|
|
19
|
-
[`
|
|
19
|
+
[`VaultCoreDependenciesOptions`](VaultCoreDependenciesOptions.md).[`authHeaderName`](VaultCoreDependenciesOptions.md#authheadername)
|
|
20
20
|
|
|
21
21
|
***
|
|
22
22
|
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
|
|
27
27
|
#### Inherited from
|
|
28
28
|
|
|
29
|
-
[`
|
|
29
|
+
[`VaultCoreDependenciesOptions`](VaultCoreDependenciesOptions.md).[`authPrefix`](VaultCoreDependenciesOptions.md#authprefix)
|
|
30
30
|
|
|
31
31
|
***
|
|
32
32
|
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
|
|
77
77
|
#### Inherited from
|
|
78
78
|
|
|
79
|
-
[`
|
|
79
|
+
[`VaultCoreDependenciesOptions`](VaultCoreDependenciesOptions.md).[`fetchImpl`](VaultCoreDependenciesOptions.md#fetchimpl)
|
|
80
80
|
|
|
81
81
|
***
|
|
82
82
|
|
|
@@ -86,17 +86,17 @@
|
|
|
86
86
|
|
|
87
87
|
#### Inherited from
|
|
88
88
|
|
|
89
|
-
[`
|
|
89
|
+
[`VaultCoreDependenciesOptions`](VaultCoreDependenciesOptions.md).[`policy`](VaultCoreDependenciesOptions.md#policy)
|
|
90
90
|
|
|
91
91
|
***
|
|
92
92
|
|
|
93
93
|
### proofVerifier?
|
|
94
94
|
|
|
95
|
-
> `optional` **proofVerifier?**:
|
|
95
|
+
> `optional` **proofVerifier?**: `SignatureAgentProofVerifierOptions`
|
|
96
96
|
|
|
97
97
|
#### Inherited from
|
|
98
98
|
|
|
99
|
-
[`
|
|
99
|
+
[`VaultCoreDependenciesOptions`](VaultCoreDependenciesOptions.md).[`proofVerifier`](VaultCoreDependenciesOptions.md#proofverifier)
|
|
100
100
|
|
|
101
101
|
***
|
|
102
102
|
|
|
@@ -106,7 +106,7 @@
|
|
|
106
106
|
|
|
107
107
|
#### Inherited from
|
|
108
108
|
|
|
109
|
-
[`
|
|
109
|
+
[`VaultCoreDependenciesOptions`](VaultCoreDependenciesOptions.md).[`vaultId`](VaultCoreDependenciesOptions.md#vaultid)
|
|
110
110
|
|
|
111
111
|
***
|
|
112
112
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
[**CBIO Node Runtime Agent API v1.
|
|
1
|
+
[**CBIO Node Runtime Agent API v1.47.0**](../README.md)
|
|
2
2
|
|
|
3
3
|
***
|
|
4
4
|
|
|
@@ -8,13 +8,13 @@
|
|
|
8
8
|
|
|
9
9
|
### clock?
|
|
10
10
|
|
|
11
|
-
> `optional` **clock?**:
|
|
11
|
+
> `optional` **clock?**: `Clock`
|
|
12
12
|
|
|
13
13
|
***
|
|
14
14
|
|
|
15
|
-
### ownerIdentity
|
|
15
|
+
### ownerIdentity?
|
|
16
16
|
|
|
17
|
-
> **ownerIdentity
|
|
17
|
+
> `optional` **ownerIdentity?**: `CreatedIdentity` \| [`VaultIdentity`](VaultIdentity.md)
|
|
18
18
|
|
|
19
19
|
***
|
|
20
20
|
|
|
@@ -26,4 +26,4 @@
|
|
|
26
26
|
|
|
27
27
|
### vault
|
|
28
28
|
|
|
29
|
-
> **vault**:
|
|
29
|
+
> **vault**: `VaultService`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
[**CBIO Node Runtime Agent API v1.
|
|
1
|
+
[**CBIO Node Runtime Agent API v1.47.0**](../README.md)
|
|
2
2
|
|
|
3
3
|
***
|
|
4
4
|
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
|
|
17
17
|
#### Inherited from
|
|
18
18
|
|
|
19
|
-
[`
|
|
19
|
+
[`VaultCoreDependenciesOptions`](VaultCoreDependenciesOptions.md).[`authHeaderName`](VaultCoreDependenciesOptions.md#authheadername)
|
|
20
20
|
|
|
21
21
|
***
|
|
22
22
|
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
|
|
27
27
|
#### Inherited from
|
|
28
28
|
|
|
29
|
-
[`
|
|
29
|
+
[`VaultCoreDependenciesOptions`](VaultCoreDependenciesOptions.md).[`authPrefix`](VaultCoreDependenciesOptions.md#authprefix)
|
|
30
30
|
|
|
31
31
|
***
|
|
32
32
|
|
|
@@ -76,7 +76,13 @@
|
|
|
76
76
|
|
|
77
77
|
#### Inherited from
|
|
78
78
|
|
|
79
|
-
[`
|
|
79
|
+
[`VaultCoreDependenciesOptions`](VaultCoreDependenciesOptions.md).[`fetchImpl`](VaultCoreDependenciesOptions.md#fetchimpl)
|
|
80
|
+
|
|
81
|
+
***
|
|
82
|
+
|
|
83
|
+
### metadata?
|
|
84
|
+
|
|
85
|
+
> `optional` **metadata?**: `Record`\<`string`, `any`\>
|
|
80
86
|
|
|
81
87
|
***
|
|
82
88
|
|
|
@@ -86,9 +92,9 @@
|
|
|
86
92
|
|
|
87
93
|
***
|
|
88
94
|
|
|
89
|
-
###
|
|
95
|
+
### password
|
|
90
96
|
|
|
91
|
-
> **
|
|
97
|
+
> **password**: `string`
|
|
92
98
|
|
|
93
99
|
***
|
|
94
100
|
|
|
@@ -98,23 +104,17 @@
|
|
|
98
104
|
|
|
99
105
|
#### Inherited from
|
|
100
106
|
|
|
101
|
-
[`
|
|
107
|
+
[`VaultCoreDependenciesOptions`](VaultCoreDependenciesOptions.md).[`policy`](VaultCoreDependenciesOptions.md#policy)
|
|
102
108
|
|
|
103
109
|
***
|
|
104
110
|
|
|
105
111
|
### proofVerifier?
|
|
106
112
|
|
|
107
|
-
> `optional` **proofVerifier?**:
|
|
113
|
+
> `optional` **proofVerifier?**: `SignatureAgentProofVerifierOptions`
|
|
108
114
|
|
|
109
115
|
#### Inherited from
|
|
110
116
|
|
|
111
|
-
[`
|
|
112
|
-
|
|
113
|
-
***
|
|
114
|
-
|
|
115
|
-
### publicMetadata?
|
|
116
|
-
|
|
117
|
-
> `optional` **publicMetadata?**: `Record`\<`string`, `any`\>
|
|
117
|
+
[`VaultCoreDependenciesOptions`](VaultCoreDependenciesOptions.md).[`proofVerifier`](VaultCoreDependenciesOptions.md#proofverifier)
|
|
118
118
|
|
|
119
119
|
***
|
|
120
120
|
|
|
@@ -124,7 +124,7 @@
|
|
|
124
124
|
|
|
125
125
|
#### customFlows?
|
|
126
126
|
|
|
127
|
-
> `optional` **customFlows?**:
|
|
127
|
+
> `optional` **customFlows?**: `VaultCustomFlowResolver`
|
|
128
128
|
|
|
129
129
|
#### fetchImpl?
|
|
130
130
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
[**CBIO Node Runtime Agent API v1.
|
|
1
|
+
[**CBIO Node Runtime Agent API v1.47.0**](../README.md)
|
|
2
2
|
|
|
3
3
|
***
|
|
4
4
|
|
|
@@ -10,7 +10,7 @@ Represents a vault instance with its core logic and service layer.
|
|
|
10
10
|
|
|
11
11
|
### core
|
|
12
12
|
|
|
13
|
-
> **core**: [`VaultCore`](VaultCore.md)
|
|
13
|
+
> **core**: [`VaultCore`](../classes/VaultCore.md)
|
|
14
14
|
|
|
15
15
|
The low-level vault core.
|
|
16
16
|
|
|
@@ -34,6 +34,6 @@ The anchored storage provider for this vault.
|
|
|
34
34
|
|
|
35
35
|
### vault
|
|
36
36
|
|
|
37
|
-
> **vault**:
|
|
37
|
+
> **vault**: `VaultService`
|
|
38
38
|
|
|
39
39
|
The high-level service interface for dispatch and acquisition.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
[**CBIO Node Runtime Agent API v1.
|
|
1
|
+
[**CBIO Node Runtime Agent API v1.47.0**](../README.md)
|
|
2
2
|
|
|
3
3
|
***
|
|
4
4
|
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
### capabilityRevocationRegistry?
|
|
10
10
|
|
|
11
|
-
> `optional` **capabilityRevocationRegistry?**:
|
|
11
|
+
> `optional` **capabilityRevocationRegistry?**: `CapabilityRevocationRegistry`
|
|
12
12
|
|
|
13
13
|
***
|
|
14
14
|
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
|
|
25
25
|
### rateLimitStore?
|
|
26
26
|
|
|
27
|
-
> `optional` **rateLimitStore?**:
|
|
27
|
+
> `optional` **rateLimitStore?**: `RateLimitStore`
|
|
28
28
|
|
|
29
29
|
***
|
|
30
30
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
[**CBIO Node Runtime Agent API v1.
|
|
1
|
+
[**CBIO Node Runtime Agent API v1.47.0**](../README.md)
|
|
2
2
|
|
|
3
3
|
***
|
|
4
4
|
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
|
|
17
17
|
#### Inherited from
|
|
18
18
|
|
|
19
|
-
[`
|
|
19
|
+
[`VaultCoreDependenciesOptions`](VaultCoreDependenciesOptions.md).[`authHeaderName`](VaultCoreDependenciesOptions.md#authheadername)
|
|
20
20
|
|
|
21
21
|
***
|
|
22
22
|
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
|
|
27
27
|
#### Inherited from
|
|
28
28
|
|
|
29
|
-
[`
|
|
29
|
+
[`VaultCoreDependenciesOptions`](VaultCoreDependenciesOptions.md).[`authPrefix`](VaultCoreDependenciesOptions.md#authprefix)
|
|
30
30
|
|
|
31
31
|
***
|
|
32
32
|
|
|
@@ -76,13 +76,13 @@
|
|
|
76
76
|
|
|
77
77
|
#### Inherited from
|
|
78
78
|
|
|
79
|
-
[`
|
|
79
|
+
[`VaultCoreDependenciesOptions`](VaultCoreDependenciesOptions.md).[`fetchImpl`](VaultCoreDependenciesOptions.md#fetchimpl)
|
|
80
80
|
|
|
81
81
|
***
|
|
82
82
|
|
|
83
|
-
###
|
|
83
|
+
### password
|
|
84
84
|
|
|
85
|
-
> **
|
|
85
|
+
> **password**: `string`
|
|
86
86
|
|
|
87
87
|
***
|
|
88
88
|
|
|
@@ -92,17 +92,17 @@
|
|
|
92
92
|
|
|
93
93
|
#### Inherited from
|
|
94
94
|
|
|
95
|
-
[`
|
|
95
|
+
[`VaultCoreDependenciesOptions`](VaultCoreDependenciesOptions.md).[`policy`](VaultCoreDependenciesOptions.md#policy)
|
|
96
96
|
|
|
97
97
|
***
|
|
98
98
|
|
|
99
99
|
### proofVerifier?
|
|
100
100
|
|
|
101
|
-
> `optional` **proofVerifier?**:
|
|
101
|
+
> `optional` **proofVerifier?**: `SignatureAgentProofVerifierOptions`
|
|
102
102
|
|
|
103
103
|
#### Inherited from
|
|
104
104
|
|
|
105
|
-
[`
|
|
105
|
+
[`VaultCoreDependenciesOptions`](VaultCoreDependenciesOptions.md).[`proofVerifier`](VaultCoreDependenciesOptions.md#proofverifier)
|
|
106
106
|
|
|
107
107
|
***
|
|
108
108
|
|
|
@@ -112,7 +112,7 @@
|
|
|
112
112
|
|
|
113
113
|
#### customFlows?
|
|
114
114
|
|
|
115
|
-
> `optional` **customFlows?**:
|
|
115
|
+
> `optional` **customFlows?**: `VaultCustomFlowResolver`
|
|
116
116
|
|
|
117
117
|
#### fetchImpl?
|
|
118
118
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
[**CBIO Node Runtime Agent API v1.
|
|
1
|
+
[**CBIO Node Runtime Agent API v1.47.0**](../README.md)
|
|
2
2
|
|
|
3
3
|
***
|
|
4
4
|
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
### core
|
|
14
14
|
|
|
15
|
-
> **core**: [`VaultCore`](VaultCore.md)
|
|
15
|
+
> **core**: [`VaultCore`](../classes/VaultCore.md)
|
|
16
16
|
|
|
17
17
|
#### Inherited from
|
|
18
18
|
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
|
|
43
43
|
### vault
|
|
44
44
|
|
|
45
|
-
> **vault**:
|
|
45
|
+
> **vault**: `VaultService`
|
|
46
46
|
|
|
47
47
|
#### Inherited from
|
|
48
48
|
|
|
@@ -1,17 +1,36 @@
|
|
|
1
|
-
[**CBIO Node Runtime Agent API v1.
|
|
1
|
+
[**CBIO Node Runtime Agent API v1.47.0**](../README.md)
|
|
2
2
|
|
|
3
3
|
***
|
|
4
4
|
|
|
5
5
|
# Interface: VaultClient
|
|
6
6
|
|
|
7
7
|
A client for vault owners to manage secrets, agents, and capabilities.
|
|
8
|
-
|
|
8
|
+
In Sovereign Vault model, administrative actions are implicitly authorized by the working key.
|
|
9
9
|
|
|
10
10
|
## Methods
|
|
11
11
|
|
|
12
|
+
### createAgent()
|
|
13
|
+
|
|
14
|
+
> **createAgent**(`input`): `Promise`\<readonly \[`AgentIdentityRecord`, `string`\]\>
|
|
15
|
+
|
|
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.
|
|
18
|
+
|
|
19
|
+
#### Parameters
|
|
20
|
+
|
|
21
|
+
##### input
|
|
22
|
+
|
|
23
|
+
[`VaultCreateAgentInput`](VaultCreateAgentInput.md)
|
|
24
|
+
|
|
25
|
+
#### Returns
|
|
26
|
+
|
|
27
|
+
`Promise`\<readonly \[`AgentIdentityRecord`, `string`\]\>
|
|
28
|
+
|
|
29
|
+
***
|
|
30
|
+
|
|
12
31
|
### defineSecretTargets()
|
|
13
32
|
|
|
14
|
-
> **defineSecretTargets**(`input`): `Promise
|
|
33
|
+
> **defineSecretTargets**(`input`): `Promise`\<`SecretRecord`\>
|
|
15
34
|
|
|
16
35
|
Refines the allowed targets for an existing secret.
|
|
17
36
|
|
|
@@ -23,7 +42,7 @@ Refines the allowed targets for an existing secret.
|
|
|
23
42
|
|
|
24
43
|
#### Returns
|
|
25
44
|
|
|
26
|
-
`Promise
|
|
45
|
+
`Promise`\<`SecretRecord`\>
|
|
27
46
|
|
|
28
47
|
***
|
|
29
48
|
|
|
@@ -47,9 +66,9 @@ Permanently deletes a secret from the vault.
|
|
|
47
66
|
|
|
48
67
|
### exportSecret()
|
|
49
68
|
|
|
50
|
-
> **exportSecret**(`input`): `Promise
|
|
69
|
+
> **exportSecret**(`input`): `Promise`\<`OwnerSecretExport`\>
|
|
51
70
|
|
|
52
|
-
Exports a secret's plaintext
|
|
71
|
+
Exports a secret's plaintext.
|
|
53
72
|
|
|
54
73
|
#### Parameters
|
|
55
74
|
|
|
@@ -59,7 +78,7 @@ Exports a secret's plaintext (requires owner permission).
|
|
|
59
78
|
|
|
60
79
|
#### Returns
|
|
61
80
|
|
|
62
|
-
`Promise
|
|
81
|
+
`Promise`\<`OwnerSecretExport`\>
|
|
63
82
|
|
|
64
83
|
***
|
|
65
84
|
|
|
@@ -83,7 +102,7 @@ Grants a specific capability to an agent.
|
|
|
83
102
|
|
|
84
103
|
### listAgents()
|
|
85
104
|
|
|
86
|
-
> **listAgents**(`input?`): `Promise`\<readonly
|
|
105
|
+
> **listAgents**(`input?`): `Promise`\<readonly `AgentIdentityRecord`[]\>
|
|
87
106
|
|
|
88
107
|
Lists all agents registered in the vault.
|
|
89
108
|
|
|
@@ -95,13 +114,13 @@ Lists all agents registered in the vault.
|
|
|
95
114
|
|
|
96
115
|
#### Returns
|
|
97
116
|
|
|
98
|
-
`Promise`\<readonly
|
|
117
|
+
`Promise`\<readonly `AgentIdentityRecord`[]\>
|
|
99
118
|
|
|
100
119
|
***
|
|
101
120
|
|
|
102
121
|
### listCapabilities()
|
|
103
122
|
|
|
104
|
-
> **listCapabilities**(`input?`): `Promise`\<readonly
|
|
123
|
+
> **listCapabilities**(`input?`): `Promise`\<readonly `AgentCapability`[]\>
|
|
105
124
|
|
|
106
125
|
Lists all active capabilities granted to agents.
|
|
107
126
|
|
|
@@ -113,13 +132,13 @@ Lists all active capabilities granted to agents.
|
|
|
113
132
|
|
|
114
133
|
#### Returns
|
|
115
134
|
|
|
116
|
-
`Promise`\<readonly
|
|
135
|
+
`Promise`\<readonly `AgentCapability`[]\>
|
|
117
136
|
|
|
118
137
|
***
|
|
119
138
|
|
|
120
139
|
### readAudit()
|
|
121
140
|
|
|
122
|
-
> **readAudit**(`query?`): `Promise`\<readonly
|
|
141
|
+
> **readAudit**(`query?`): `Promise`\<readonly `AuditEntry`[]\>
|
|
123
142
|
|
|
124
143
|
Reads the tamper-evident audit log for the vault.
|
|
125
144
|
|
|
@@ -131,7 +150,7 @@ Reads the tamper-evident audit log for the vault.
|
|
|
131
150
|
|
|
132
151
|
#### Returns
|
|
133
152
|
|
|
134
|
-
`Promise`\<readonly
|
|
153
|
+
`Promise`\<readonly `AuditEntry`[]\>
|
|
135
154
|
|
|
136
155
|
***
|
|
137
156
|
|
|
@@ -139,8 +158,6 @@ Reads the tamper-evident audit log for the vault.
|
|
|
139
158
|
|
|
140
159
|
> **registerAgent**(`input`): `Promise`\<`void`\>
|
|
141
160
|
|
|
142
|
-
Registers a new agent identity within the vault.
|
|
143
|
-
|
|
144
161
|
#### Parameters
|
|
145
162
|
|
|
146
163
|
##### input
|
|
@@ -191,7 +208,7 @@ Revokes a previously granted capability.
|
|
|
191
208
|
|
|
192
209
|
### storeSecret()
|
|
193
210
|
|
|
194
|
-
> **storeSecret**(`input`): `Promise
|
|
211
|
+
> **storeSecret**(`input`): `Promise`\<`SecretRecord`\>
|
|
195
212
|
|
|
196
213
|
Securely stores a new secret in the vault.
|
|
197
214
|
|
|
@@ -201,25 +218,15 @@ Securely stores a new secret in the vault.
|
|
|
201
218
|
|
|
202
219
|
[`OwnerStoreSecretInput`](OwnerStoreSecretInput.md)
|
|
203
220
|
|
|
204
|
-
The secret alias and plaintext.
|
|
205
|
-
|
|
206
221
|
#### Returns
|
|
207
222
|
|
|
208
|
-
`Promise
|
|
209
|
-
|
|
210
|
-
The record of the stored secret.
|
|
211
|
-
|
|
212
|
-
#### Example
|
|
213
|
-
|
|
214
|
-
```ts
|
|
215
|
-
await client.storeSecret({ alias: 'db-pass', plaintext: 's3cret' });
|
|
216
|
-
```
|
|
223
|
+
`Promise`\<`SecretRecord`\>
|
|
217
224
|
|
|
218
225
|
***
|
|
219
226
|
|
|
220
227
|
### writeSecret()
|
|
221
228
|
|
|
222
|
-
> **writeSecret**(`input`): `Promise
|
|
229
|
+
> **writeSecret**(`input`): `Promise`\<`SecretRecord`\>
|
|
223
230
|
|
|
224
231
|
Atomic operation to store a secret and define its targets in one step.
|
|
225
232
|
|
|
@@ -231,4 +238,4 @@ Atomic operation to store a secret and define its targets in one step.
|
|
|
231
238
|
|
|
232
239
|
#### Returns
|
|
233
240
|
|
|
234
|
-
`Promise
|
|
241
|
+
`Promise`\<`SecretRecord`\>
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
[**CBIO Node Runtime Agent API v1.
|
|
1
|
+
[**CBIO Node Runtime Agent API v1.47.0**](../README.md)
|
|
2
2
|
|
|
3
3
|
***
|
|
4
4
|
|
|
5
|
-
# Interface:
|
|
5
|
+
# Interface: VaultCoreDependenciesOptions
|
|
6
6
|
|
|
7
7
|
## Extended by
|
|
8
8
|
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
|
|
77
77
|
### proofVerifier?
|
|
78
78
|
|
|
79
|
-
> `optional` **proofVerifier?**:
|
|
79
|
+
> `optional` **proofVerifier?**: `SignatureAgentProofVerifierOptions`
|
|
80
80
|
|
|
81
81
|
***
|
|
82
82
|
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
[**CBIO Node Runtime Agent API v1.47.0**](../README.md)
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
# Interface: VaultCreateAgentInput
|
|
6
|
+
|
|
7
|
+
## Properties
|
|
8
|
+
|
|
9
|
+
### agentId
|
|
10
|
+
|
|
11
|
+
> **agentId**: `string`
|
|
12
|
+
|
|
13
|
+
***
|
|
14
|
+
|
|
15
|
+
### metadata?
|
|
16
|
+
|
|
17
|
+
> `optional` **metadata?**: `Record`\<`string`, `any`\>
|
|
18
|
+
|
|
19
|
+
***
|
|
20
|
+
|
|
21
|
+
### nickname?
|
|
22
|
+
|
|
23
|
+
> `optional` **nickname?**: `string`
|
|
24
|
+
|
|
25
|
+
***
|
|
26
|
+
|
|
27
|
+
### requestedAt?
|
|
28
|
+
|
|
29
|
+
> `optional` **requestedAt?**: `string`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
[**CBIO Node Runtime Agent API v1.
|
|
1
|
+
[**CBIO Node Runtime Agent API v1.47.0**](../README.md)
|
|
2
2
|
|
|
3
3
|
***
|
|
4
4
|
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
### capability
|
|
10
10
|
|
|
11
|
-
> **capability**:
|
|
11
|
+
> **capability**: `AgentCapability`
|
|
12
12
|
|
|
13
13
|
***
|
|
14
14
|
|