@the-ai-company/cbio-node-runtime 1.45.5 → 1.46.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 +4 -10
- package/dist/clients/owner/client.js +39 -182
- package/dist/clients/owner/client.js.map +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 +7 -20
- package/dist/runtime/bootstrap.js +15 -61
- 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 +8 -22
- package/dist/runtime/index.js +6 -10
- package/dist/runtime/index.js.map +1 -1
- package/dist/runtime/vault-metadata.d.ts +4 -16
- package/dist/runtime/vault-metadata.js +8 -43
- package/dist/runtime/vault-metadata.js.map +1 -1
- package/dist/vault-core/contracts.d.ts +0 -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 +6 -91
- package/docs/api/classes/IdentityError.md +1 -1
- 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 +1 -1
- 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 +3 -3
- package/docs/api/functions/readVaultProfile.md +3 -3
- 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 +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 +48 -389
- 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 +17 -27
- package/docs/api/interfaces/{CreateDefaultVaultCoreDependenciesOptions.md → VaultCoreDependenciesOptions.md} +3 -3
- 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/VaultObject.md +3 -3
- package/docs/api/interfaces/VaultProfile.md +7 -11
- package/docs/api/interfaces/VaultPublicMetadata.md +1 -1
- package/docs/api/interfaces/VaultRegisterAgentInput.md +1 -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.46.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.46.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.46.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.46.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.46.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.46.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.46.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,17 @@
|
|
|
1
|
-
[**CBIO Node Runtime Agent API v1.
|
|
1
|
+
[**CBIO Node Runtime Agent API v1.46.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
12
|
### defineSecretTargets()
|
|
13
13
|
|
|
14
|
-
> **defineSecretTargets**(`input`): `Promise
|
|
14
|
+
> **defineSecretTargets**(`input`): `Promise`\<`SecretRecord`\>
|
|
15
15
|
|
|
16
16
|
Refines the allowed targets for an existing secret.
|
|
17
17
|
|
|
@@ -23,7 +23,7 @@ Refines the allowed targets for an existing secret.
|
|
|
23
23
|
|
|
24
24
|
#### Returns
|
|
25
25
|
|
|
26
|
-
`Promise
|
|
26
|
+
`Promise`\<`SecretRecord`\>
|
|
27
27
|
|
|
28
28
|
***
|
|
29
29
|
|
|
@@ -47,9 +47,9 @@ Permanently deletes a secret from the vault.
|
|
|
47
47
|
|
|
48
48
|
### exportSecret()
|
|
49
49
|
|
|
50
|
-
> **exportSecret**(`input`): `Promise
|
|
50
|
+
> **exportSecret**(`input`): `Promise`\<`OwnerSecretExport`\>
|
|
51
51
|
|
|
52
|
-
Exports a secret's plaintext
|
|
52
|
+
Exports a secret's plaintext.
|
|
53
53
|
|
|
54
54
|
#### Parameters
|
|
55
55
|
|
|
@@ -59,7 +59,7 @@ Exports a secret's plaintext (requires owner permission).
|
|
|
59
59
|
|
|
60
60
|
#### Returns
|
|
61
61
|
|
|
62
|
-
`Promise
|
|
62
|
+
`Promise`\<`OwnerSecretExport`\>
|
|
63
63
|
|
|
64
64
|
***
|
|
65
65
|
|
|
@@ -83,7 +83,7 @@ Grants a specific capability to an agent.
|
|
|
83
83
|
|
|
84
84
|
### listAgents()
|
|
85
85
|
|
|
86
|
-
> **listAgents**(`input?`): `Promise`\<readonly
|
|
86
|
+
> **listAgents**(`input?`): `Promise`\<readonly `AgentIdentityRecord`[]\>
|
|
87
87
|
|
|
88
88
|
Lists all agents registered in the vault.
|
|
89
89
|
|
|
@@ -95,13 +95,13 @@ Lists all agents registered in the vault.
|
|
|
95
95
|
|
|
96
96
|
#### Returns
|
|
97
97
|
|
|
98
|
-
`Promise`\<readonly
|
|
98
|
+
`Promise`\<readonly `AgentIdentityRecord`[]\>
|
|
99
99
|
|
|
100
100
|
***
|
|
101
101
|
|
|
102
102
|
### listCapabilities()
|
|
103
103
|
|
|
104
|
-
> **listCapabilities**(`input?`): `Promise`\<readonly
|
|
104
|
+
> **listCapabilities**(`input?`): `Promise`\<readonly `AgentCapability`[]\>
|
|
105
105
|
|
|
106
106
|
Lists all active capabilities granted to agents.
|
|
107
107
|
|
|
@@ -113,13 +113,13 @@ Lists all active capabilities granted to agents.
|
|
|
113
113
|
|
|
114
114
|
#### Returns
|
|
115
115
|
|
|
116
|
-
`Promise`\<readonly
|
|
116
|
+
`Promise`\<readonly `AgentCapability`[]\>
|
|
117
117
|
|
|
118
118
|
***
|
|
119
119
|
|
|
120
120
|
### readAudit()
|
|
121
121
|
|
|
122
|
-
> **readAudit**(`query?`): `Promise`\<readonly
|
|
122
|
+
> **readAudit**(`query?`): `Promise`\<readonly `AuditEntry`[]\>
|
|
123
123
|
|
|
124
124
|
Reads the tamper-evident audit log for the vault.
|
|
125
125
|
|
|
@@ -131,7 +131,7 @@ Reads the tamper-evident audit log for the vault.
|
|
|
131
131
|
|
|
132
132
|
#### Returns
|
|
133
133
|
|
|
134
|
-
`Promise`\<readonly
|
|
134
|
+
`Promise`\<readonly `AuditEntry`[]\>
|
|
135
135
|
|
|
136
136
|
***
|
|
137
137
|
|
|
@@ -191,7 +191,7 @@ Revokes a previously granted capability.
|
|
|
191
191
|
|
|
192
192
|
### storeSecret()
|
|
193
193
|
|
|
194
|
-
> **storeSecret**(`input`): `Promise
|
|
194
|
+
> **storeSecret**(`input`): `Promise`\<`SecretRecord`\>
|
|
195
195
|
|
|
196
196
|
Securely stores a new secret in the vault.
|
|
197
197
|
|
|
@@ -201,25 +201,15 @@ Securely stores a new secret in the vault.
|
|
|
201
201
|
|
|
202
202
|
[`OwnerStoreSecretInput`](OwnerStoreSecretInput.md)
|
|
203
203
|
|
|
204
|
-
The secret alias and plaintext.
|
|
205
|
-
|
|
206
204
|
#### Returns
|
|
207
205
|
|
|
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
|
-
```
|
|
206
|
+
`Promise`\<`SecretRecord`\>
|
|
217
207
|
|
|
218
208
|
***
|
|
219
209
|
|
|
220
210
|
### writeSecret()
|
|
221
211
|
|
|
222
|
-
> **writeSecret**(`input`): `Promise
|
|
212
|
+
> **writeSecret**(`input`): `Promise`\<`SecretRecord`\>
|
|
223
213
|
|
|
224
214
|
Atomic operation to store a secret and define its targets in one step.
|
|
225
215
|
|
|
@@ -231,4 +221,4 @@ Atomic operation to store a secret and define its targets in one step.
|
|
|
231
221
|
|
|
232
222
|
#### Returns
|
|
233
223
|
|
|
234
|
-
`Promise
|
|
224
|
+
`Promise`\<`SecretRecord`\>
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
[**CBIO Node Runtime Agent API v1.
|
|
1
|
+
[**CBIO Node Runtime Agent API v1.46.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
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
[**CBIO Node Runtime Agent API v1.
|
|
1
|
+
[**CBIO Node Runtime Agent API v1.46.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
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
[**CBIO Node Runtime Agent API v1.
|
|
1
|
+
[**CBIO Node Runtime Agent API v1.46.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
|
***
|
|
18
18
|
|
|
@@ -30,4 +30,4 @@
|
|
|
30
30
|
|
|
31
31
|
### vault
|
|
32
32
|
|
|
33
|
-
> **vault**:
|
|
33
|
+
> **vault**: `VaultService`
|
|
@@ -1,23 +1,19 @@
|
|
|
1
|
-
[**CBIO Node Runtime Agent API v1.
|
|
1
|
+
[**CBIO Node Runtime Agent API v1.46.0**](../README.md)
|
|
2
2
|
|
|
3
3
|
***
|
|
4
4
|
|
|
5
5
|
# Interface: VaultProfile
|
|
6
6
|
|
|
7
|
-
##
|
|
8
|
-
|
|
9
|
-
### sealedPrivate
|
|
7
|
+
## Extends
|
|
10
8
|
|
|
11
|
-
|
|
9
|
+
- `Record`\<`string`, `any`\>
|
|
12
10
|
|
|
13
|
-
|
|
11
|
+
## Indexable
|
|
14
12
|
|
|
15
|
-
|
|
13
|
+
> \[`key`: `string`\]: `any`
|
|
16
14
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
#### Type Declaration
|
|
15
|
+
## Properties
|
|
20
16
|
|
|
21
|
-
|
|
17
|
+
### nickname?
|
|
22
18
|
|
|
23
19
|
> `optional` **nickname?**: `string`
|