@the-ai-company/cbio-node-runtime 1.45.2 → 1.45.5
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/protocol/crypto.d.ts +3 -0
- package/dist/protocol/crypto.js +3 -0
- package/dist/protocol/crypto.js.map +1 -1
- package/dist/storage/fs.d.ts +3 -0
- package/dist/storage/fs.js +3 -0
- package/dist/storage/fs.js.map +1 -1
- package/dist/storage/memory.d.ts +3 -0
- package/dist/storage/memory.js +3 -0
- package/dist/storage/memory.js.map +1 -1
- package/dist/vault-core/core.d.ts +3 -0
- package/dist/vault-core/core.js +3 -0
- package/dist/vault-core/core.js.map +1 -1
- package/dist/vault-core/defaults.d.ts +45 -0
- package/dist/vault-core/defaults.js +45 -0
- package/dist/vault-core/defaults.js.map +1 -1
- package/dist/vault-core/persistence.d.ts +30 -0
- package/dist/vault-core/persistence.js +30 -0
- package/dist/vault-core/persistence.js.map +1 -1
- package/dist/vault-ingress/defaults.d.ts +3 -0
- package/dist/vault-ingress/defaults.js +3 -0
- package/dist/vault-ingress/defaults.js.map +1 -1
- package/dist/vault-ingress/remote-transport.d.ts +3 -0
- package/dist/vault-ingress/remote-transport.js +3 -0
- package/dist/vault-ingress/remote-transport.js.map +1 -1
- package/docs/api/README.md +2 -33
- package/docs/api/classes/IdentityError.md +1 -1
- package/docs/api/classes/InMemoryReplayGuard.md +1 -1
- package/docs/api/classes/VaultCoreError.md +1 -1
- package/docs/api/enumerations/AuditAction.md +1 -1
- package/docs/api/enumerations/AuditOutcome.md +1 -1
- package/docs/api/enumerations/DispatchStatus.md +1 -1
- package/docs/api/enumerations/IdentityErrorCode.md +1 -1
- package/docs/api/functions/createAgentClient.md +1 -1
- package/docs/api/functions/createChildIdentity.md +1 -1
- package/docs/api/functions/createDefaultVaultCoreDependencies.md +14 -14
- package/docs/api/functions/createIdentity.md +1 -1
- package/docs/api/functions/createOwnerHttpFlowBoundary.md +1 -1
- package/docs/api/functions/createPersistentVaultCoreDependencies.md +13 -13
- 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/createVaultService.md +1 -1
- package/docs/api/functions/createWorkspaceStorage.md +3 -3
- package/docs/api/functions/deriveChildIdentity.md +1 -1
- package/docs/api/functions/deriveIdentityId.md +1 -1
- package/docs/api/functions/ensureIdentityPrivateVault.md +1 -1
- package/docs/api/functions/getDefaultWorkspaceDir.md +1 -1
- package/docs/api/functions/handleVaultHttpDispatch.md +1 -1
- package/docs/api/functions/identityPrivateVaultChildrenKey.md +1 -1
- package/docs/api/functions/identityPrivateVaultPrefix.md +1 -1
- package/docs/api/functions/identityPrivateVaultProfileKey.md +1 -1
- package/docs/api/functions/identityPrivateVaultPublicSealedKey.md +1 -1
- package/docs/api/functions/initializeVaultCustody.md +1 -1
- package/docs/api/functions/listIdentities.md +1 -1
- package/docs/api/functions/listVaults.md +1 -1
- package/docs/api/functions/readIdentityMetadata.md +1 -1
- package/docs/api/functions/readIdentityPrivateVaultChildrenState.md +1 -1
- package/docs/api/functions/readIdentityPrivateVaultProfile.md +1 -1
- package/docs/api/functions/readVaultProfile.md +1 -1
- package/docs/api/functions/readVaultPublicMetadata.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/toOwnerHttpFlowBoundary.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/AgentCapability.md +1 -1
- package/docs/api/interfaces/AgentClient.md +1 -1
- package/docs/api/interfaces/AgentDispatchIntent.md +1 -1
- package/docs/api/interfaces/AgentDispatchTransport.md +1 -1
- package/docs/api/interfaces/AgentIdentity.md +1 -1
- package/docs/api/interfaces/AgentIdentityRecord.md +1 -1
- package/docs/api/interfaces/AgentIdentityRegistry.md +1 -1
- package/docs/api/interfaces/AgentProof.md +1 -1
- package/docs/api/interfaces/AgentProofVerifier.md +1 -1
- package/docs/api/interfaces/AgentSigner.md +1 -1
- package/docs/api/interfaces/AuditEntry.md +1 -1
- package/docs/api/interfaces/AuditLog.md +1 -1
- package/docs/api/interfaces/AuditQuery.md +1 -1
- package/docs/api/interfaces/CapabilityRegistry.md +1 -1
- package/docs/api/interfaces/CapabilityRevocationRegistry.md +1 -1
- package/docs/api/interfaces/CbioRuntime.md +33 -33
- package/docs/api/interfaces/ChildIdentity.md +1 -1
- package/docs/api/interfaces/Clock.md +1 -1
- package/docs/api/interfaces/CreateAgentClientOptions.md +1 -1
- package/docs/api/interfaces/CreateChildIdentityOptions.md +1 -1
- package/docs/api/interfaces/CreateDefaultVaultCoreDependenciesOptions.md +1 -1
- package/docs/api/interfaces/CreateIdentityOptions.md +1 -1
- package/docs/api/interfaces/CreatePersistentVaultCoreDependenciesOptions.md +1 -1
- package/docs/api/interfaces/CreateVaultClientOptions.md +1 -1
- package/docs/api/interfaces/CreateVaultOptions.md +1 -1
- package/docs/api/interfaces/CreatedVault.md +1 -1
- package/docs/api/interfaces/CustomHttpFlowDefinition.md +1 -1
- package/docs/api/interfaces/CustomHttpFlowRegistry.md +1 -1
- package/docs/api/interfaces/DefaultPolicyEngineOptions.md +1 -1
- package/docs/api/interfaces/DeriveIdentityOptions.md +1 -1
- package/docs/api/interfaces/DispatchAuthorization.md +1 -1
- package/docs/api/interfaces/DispatchInstruction.md +1 -1
- package/docs/api/interfaces/DispatchRequest.md +1 -1
- package/docs/api/interfaces/DispatchResult.md +1 -1
- package/docs/api/interfaces/IStorageProvider.md +1 -1
- package/docs/api/interfaces/IdGenerator.md +1 -1
- package/docs/api/interfaces/IdentityPrivateVaultChildRecord.md +1 -1
- package/docs/api/interfaces/IdentityPrivateVaultChildrenState.md +1 -1
- package/docs/api/interfaces/IdentityPrivateVaultProfile.md +1 -1
- package/docs/api/interfaces/InitializeVaultCustodyOptions.md +1 -1
- package/docs/api/interfaces/InitializedVaultCustody.md +1 -1
- package/docs/api/interfaces/IssuerWriteSecretCommand.md +1 -1
- package/docs/api/interfaces/OwnerAuditRequest.md +1 -1
- package/docs/api/interfaces/OwnerDefineSecretTargetsCommand.md +1 -1
- package/docs/api/interfaces/OwnerDefineSecretTargetsInput.md +1 -1
- package/docs/api/interfaces/OwnerDeleteSecretCommand.md +1 -1
- package/docs/api/interfaces/OwnerExportSecretRequest.md +1 -1
- package/docs/api/interfaces/OwnerHttpFlowBoundary.md +1 -1
- package/docs/api/interfaces/OwnerIdentityRecord.md +1 -1
- package/docs/api/interfaces/OwnerIdentityRegistry.md +1 -1
- package/docs/api/interfaces/OwnerListAgentsRequest.md +1 -1
- package/docs/api/interfaces/OwnerListCapabilitiesRequest.md +1 -1
- package/docs/api/interfaces/OwnerProof.md +1 -1
- package/docs/api/interfaces/OwnerProofVerifier.md +1 -1
- package/docs/api/interfaces/OwnerRegisterAgentIdentityCommand.md +1 -1
- package/docs/api/interfaces/OwnerRegisterCapabilityCommand.md +1 -1
- package/docs/api/interfaces/OwnerRegisterCustomHttpFlowCommand.md +1 -1
- package/docs/api/interfaces/OwnerRevokeCapabilityCommand.md +1 -1
- package/docs/api/interfaces/OwnerSecretExport.md +1 -1
- package/docs/api/interfaces/OwnerSecretTargetBinding.md +1 -1
- package/docs/api/interfaces/OwnerStoreSecretInput.md +1 -1
- package/docs/api/interfaces/OwnerWriteSecretCommand.md +1 -1
- package/docs/api/interfaces/OwnerWriteSecretInput.md +1 -1
- package/docs/api/interfaces/PolicyEngine.md +1 -1
- package/docs/api/interfaces/RateLimitStore.md +1 -1
- package/docs/api/interfaces/RecoverVaultOptions.md +1 -1
- package/docs/api/interfaces/RecoveredVault.md +1 -1
- package/docs/api/interfaces/ReplayGuard.md +1 -1
- package/docs/api/interfaces/RestoreIdentityOptions.md +1 -1
- package/docs/api/interfaces/SecretAlias.md +1 -1
- package/docs/api/interfaces/SecretCustody.md +1 -1
- package/docs/api/interfaces/SecretId.md +1 -1
- package/docs/api/interfaces/SecretRecord.md +1 -1
- package/docs/api/interfaces/SecretRepository.md +1 -1
- package/docs/api/interfaces/SecretVersion.md +1 -1
- package/docs/api/interfaces/SignatureAgentProofVerifierOptions.md +1 -1
- package/docs/api/interfaces/Signer.md +1 -1
- package/docs/api/interfaces/TrustedExecutor.md +1 -1
- package/docs/api/interfaces/VaultAcquireSecretInput.md +1 -1
- package/docs/api/interfaces/VaultAcquireSecretResult.md +1 -1
- package/docs/api/interfaces/VaultAgentDispatchErrorResponse.md +1 -1
- package/docs/api/interfaces/VaultAgentDispatchRequest.md +1 -1
- package/docs/api/interfaces/VaultAgentDispatchResponse.md +1 -1
- package/docs/api/interfaces/VaultAuditQueryInput.md +1 -1
- package/docs/api/interfaces/VaultClient.md +1 -1
- package/docs/api/interfaces/VaultCore.md +1 -1
- package/docs/api/interfaces/VaultCoreDependencies.md +1 -1
- package/docs/api/interfaces/VaultCustomFlowResolver.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/VaultId.md +1 -1
- 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 +1 -1
- package/docs/api/interfaces/VaultPrincipal.md +1 -1
- package/docs/api/interfaces/VaultProfile.md +1 -1
- package/docs/api/interfaces/VaultPublicMetadata.md +1 -1
- package/docs/api/interfaces/VaultRegisterAgentInput.md +1 -1
- package/docs/api/interfaces/VaultRegisterFlowInput.md +1 -1
- package/docs/api/interfaces/VaultRevokeCapabilityInput.md +1 -1
- package/docs/api/interfaces/VaultService.md +1 -1
- package/docs/api/interfaces/VaultSigner.md +1 -1
- package/docs/api/interfaces/VaultTargetBinding.md +1 -1
- package/docs/api/type-aliases/AgentCapabilityEnvelope.md +1 -1
- package/docs/api/type-aliases/CbioRuntimeModule.md +1 -1
- package/docs/api/type-aliases/IdentityPrivateVaultAccess.md +1 -1
- package/docs/api/type-aliases/RedactedResponseShape.md +1 -1
- package/docs/api/type-aliases/VaultAcquireSecretFlow.md +1 -1
- package/docs/api/type-aliases/VaultPrincipalKind.md +1 -1
- package/docs/api/type-aliases/VaultWriteSecretCommand.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/AgentDispatchHttpTransport.md +0 -52
- package/docs/api/classes/DefaultPolicyEngine.md +0 -117
- package/docs/api/classes/DefaultVaultCore.md +0 -405
- package/docs/api/classes/FsStorageProvider.md +0 -192
- package/docs/api/classes/HttpDispatchExecutor.md +0 -63
- package/docs/api/classes/InMemoryAgentIdentityRegistry.md +0 -83
- package/docs/api/classes/InMemoryAuditLog.md +0 -59
- package/docs/api/classes/InMemoryCapabilityRegistry.md +0 -91
- package/docs/api/classes/InMemoryCapabilityRevocationRegistry.md +0 -75
- package/docs/api/classes/InMemoryCustomHttpFlowRegistry.md +0 -63
- package/docs/api/classes/InMemoryOwnerIdentityRegistry.md +0 -83
- package/docs/api/classes/InMemoryRateLimitStore.md +0 -51
- package/docs/api/classes/InMemorySecretCustody.md +0 -83
- package/docs/api/classes/InMemorySecretRepository.md +0 -99
- package/docs/api/classes/LocalSigner.md +0 -59
- package/docs/api/classes/LocalVaultTransport.md +0 -45
- package/docs/api/classes/MemoryStorageProvider.md +0 -160
- package/docs/api/classes/PersistentVaultAgentIdentityRegistry.md +0 -101
- package/docs/api/classes/PersistentVaultAuditLog.md +0 -73
- package/docs/api/classes/PersistentVaultCapabilityRegistry.md +0 -109
- package/docs/api/classes/PersistentVaultCapabilityRevocationRegistry.md +0 -93
- package/docs/api/classes/PersistentVaultCustomHttpFlowRegistry.md +0 -81
- package/docs/api/classes/PersistentVaultOwnerIdentityRegistry.md +0 -101
- package/docs/api/classes/PersistentVaultRateLimitStore.md +0 -69
- package/docs/api/classes/PersistentVaultReplayGuard.md +0 -61
- package/docs/api/classes/PersistentVaultSecretCustody.md +0 -97
- package/docs/api/classes/PersistentVaultSecretRepository.md +0 -117
- package/docs/api/classes/RandomIdGenerator.md +0 -65
- package/docs/api/classes/SignatureAgentProofVerifier.md +0 -49
- package/docs/api/classes/SignatureOwnerProofVerifier.md +0 -249
- package/docs/api/classes/SystemClock.md +0 -33
|
@@ -1,405 +0,0 @@
|
|
|
1
|
-
[**CBIO Node Runtime Agent API v1.45.2**](../README.md)
|
|
2
|
-
|
|
3
|
-
***
|
|
4
|
-
|
|
5
|
-
# Class: DefaultVaultCore
|
|
6
|
-
|
|
7
|
-
## Implements
|
|
8
|
-
|
|
9
|
-
- [`VaultCore`](../interfaces/VaultCore.md)
|
|
10
|
-
|
|
11
|
-
## Constructors
|
|
12
|
-
|
|
13
|
-
### Constructor
|
|
14
|
-
|
|
15
|
-
> **new DefaultVaultCore**(`_deps`): `DefaultVaultCore`
|
|
16
|
-
|
|
17
|
-
#### Parameters
|
|
18
|
-
|
|
19
|
-
##### \_deps
|
|
20
|
-
|
|
21
|
-
[`VaultCoreDependencies`](../interfaces/VaultCoreDependencies.md)
|
|
22
|
-
|
|
23
|
-
#### Returns
|
|
24
|
-
|
|
25
|
-
`DefaultVaultCore`
|
|
26
|
-
|
|
27
|
-
## Accessors
|
|
28
|
-
|
|
29
|
-
### vaultId
|
|
30
|
-
|
|
31
|
-
#### Get Signature
|
|
32
|
-
|
|
33
|
-
> **get** **vaultId**(): [`VaultId`](../interfaces/VaultId.md)
|
|
34
|
-
|
|
35
|
-
##### Returns
|
|
36
|
-
|
|
37
|
-
[`VaultId`](../interfaces/VaultId.md)
|
|
38
|
-
|
|
39
|
-
#### Implementation of
|
|
40
|
-
|
|
41
|
-
[`VaultCore`](../interfaces/VaultCore.md).[`vaultId`](../interfaces/VaultCore.md#vaultid)
|
|
42
|
-
|
|
43
|
-
## Methods
|
|
44
|
-
|
|
45
|
-
### authorizeDispatch()
|
|
46
|
-
|
|
47
|
-
> **authorizeDispatch**(`request`): `Promise`\<[`DispatchAuthorization`](../interfaces/DispatchAuthorization.md)\>
|
|
48
|
-
|
|
49
|
-
#### Parameters
|
|
50
|
-
|
|
51
|
-
##### request
|
|
52
|
-
|
|
53
|
-
[`DispatchRequest`](../interfaces/DispatchRequest.md)
|
|
54
|
-
|
|
55
|
-
#### Returns
|
|
56
|
-
|
|
57
|
-
`Promise`\<[`DispatchAuthorization`](../interfaces/DispatchAuthorization.md)\>
|
|
58
|
-
|
|
59
|
-
#### Implementation of
|
|
60
|
-
|
|
61
|
-
[`VaultCore`](../interfaces/VaultCore.md).[`authorizeDispatch`](../interfaces/VaultCore.md#authorizedispatch)
|
|
62
|
-
|
|
63
|
-
***
|
|
64
|
-
|
|
65
|
-
### bootstrapOwnerIdentity()
|
|
66
|
-
|
|
67
|
-
> **bootstrapOwnerIdentity**(`identity`): `Promise`\<`void`\>
|
|
68
|
-
|
|
69
|
-
#### Parameters
|
|
70
|
-
|
|
71
|
-
##### identity
|
|
72
|
-
|
|
73
|
-
[`OwnerIdentityRecord`](../interfaces/OwnerIdentityRecord.md)
|
|
74
|
-
|
|
75
|
-
#### Returns
|
|
76
|
-
|
|
77
|
-
`Promise`\<`void`\>
|
|
78
|
-
|
|
79
|
-
#### Implementation of
|
|
80
|
-
|
|
81
|
-
[`VaultCore`](../interfaces/VaultCore.md).[`bootstrapOwnerIdentity`](../interfaces/VaultCore.md#bootstrapowneridentity)
|
|
82
|
-
|
|
83
|
-
***
|
|
84
|
-
|
|
85
|
-
### defineSecretTargets()
|
|
86
|
-
|
|
87
|
-
> **defineSecretTargets**(`command`): `Promise`\<[`SecretRecord`](../interfaces/SecretRecord.md)\>
|
|
88
|
-
|
|
89
|
-
#### Parameters
|
|
90
|
-
|
|
91
|
-
##### command
|
|
92
|
-
|
|
93
|
-
[`OwnerDefineSecretTargetsCommand`](../interfaces/OwnerDefineSecretTargetsCommand.md)
|
|
94
|
-
|
|
95
|
-
#### Returns
|
|
96
|
-
|
|
97
|
-
`Promise`\<[`SecretRecord`](../interfaces/SecretRecord.md)\>
|
|
98
|
-
|
|
99
|
-
#### Implementation of
|
|
100
|
-
|
|
101
|
-
[`VaultCore`](../interfaces/VaultCore.md).[`defineSecretTargets`](../interfaces/VaultCore.md#definesecrettargets)
|
|
102
|
-
|
|
103
|
-
***
|
|
104
|
-
|
|
105
|
-
### deleteSecret()
|
|
106
|
-
|
|
107
|
-
> **deleteSecret**(`command`): `Promise`\<`void`\>
|
|
108
|
-
|
|
109
|
-
#### Parameters
|
|
110
|
-
|
|
111
|
-
##### command
|
|
112
|
-
|
|
113
|
-
[`OwnerDeleteSecretCommand`](../interfaces/OwnerDeleteSecretCommand.md)
|
|
114
|
-
|
|
115
|
-
#### Returns
|
|
116
|
-
|
|
117
|
-
`Promise`\<`void`\>
|
|
118
|
-
|
|
119
|
-
#### Implementation of
|
|
120
|
-
|
|
121
|
-
[`VaultCore`](../interfaces/VaultCore.md).[`deleteSecret`](../interfaces/VaultCore.md#deletesecret)
|
|
122
|
-
|
|
123
|
-
***
|
|
124
|
-
|
|
125
|
-
### dispatchSecret()
|
|
126
|
-
|
|
127
|
-
> **dispatchSecret**(`request`): `Promise`\<[`DispatchResult`](../interfaces/DispatchResult.md)\>
|
|
128
|
-
|
|
129
|
-
#### Parameters
|
|
130
|
-
|
|
131
|
-
##### request
|
|
132
|
-
|
|
133
|
-
[`DispatchRequest`](../interfaces/DispatchRequest.md)
|
|
134
|
-
|
|
135
|
-
#### Returns
|
|
136
|
-
|
|
137
|
-
`Promise`\<[`DispatchResult`](../interfaces/DispatchResult.md)\>
|
|
138
|
-
|
|
139
|
-
#### Implementation of
|
|
140
|
-
|
|
141
|
-
[`VaultCore`](../interfaces/VaultCore.md).[`dispatchSecret`](../interfaces/VaultCore.md#dispatchsecret)
|
|
142
|
-
|
|
143
|
-
***
|
|
144
|
-
|
|
145
|
-
### exportSecret()
|
|
146
|
-
|
|
147
|
-
> **exportSecret**(`actor`, `alias`, `request?`): `Promise`\<[`OwnerSecretExport`](../interfaces/OwnerSecretExport.md)\>
|
|
148
|
-
|
|
149
|
-
#### Parameters
|
|
150
|
-
|
|
151
|
-
##### actor
|
|
152
|
-
|
|
153
|
-
[`VaultPrincipal`](../interfaces/VaultPrincipal.md) & `object`
|
|
154
|
-
|
|
155
|
-
##### alias
|
|
156
|
-
|
|
157
|
-
`string`
|
|
158
|
-
|
|
159
|
-
##### request?
|
|
160
|
-
|
|
161
|
-
`Omit`\<[`OwnerExportSecretRequest`](../interfaces/OwnerExportSecretRequest.md), `"actor"` \| `"vaultId"` \| `"alias"`\>
|
|
162
|
-
|
|
163
|
-
#### Returns
|
|
164
|
-
|
|
165
|
-
`Promise`\<[`OwnerSecretExport`](../interfaces/OwnerSecretExport.md)\>
|
|
166
|
-
|
|
167
|
-
#### Implementation of
|
|
168
|
-
|
|
169
|
-
[`VaultCore`](../interfaces/VaultCore.md).[`exportSecret`](../interfaces/VaultCore.md#exportsecret)
|
|
170
|
-
|
|
171
|
-
***
|
|
172
|
-
|
|
173
|
-
### getAudit()
|
|
174
|
-
|
|
175
|
-
> **getAudit**(`actor`, `query`, `request?`): `Promise`\<readonly [`AuditEntry`](../interfaces/AuditEntry.md)[]\>
|
|
176
|
-
|
|
177
|
-
#### Parameters
|
|
178
|
-
|
|
179
|
-
##### actor
|
|
180
|
-
|
|
181
|
-
[`VaultPrincipal`](../interfaces/VaultPrincipal.md) & `object`
|
|
182
|
-
|
|
183
|
-
##### query
|
|
184
|
-
|
|
185
|
-
[`AuditQuery`](../interfaces/AuditQuery.md)
|
|
186
|
-
|
|
187
|
-
##### request?
|
|
188
|
-
|
|
189
|
-
`Omit`\<[`OwnerAuditRequest`](../interfaces/OwnerAuditRequest.md), `"actor"` \| `"query"` \| `"vaultId"`\>
|
|
190
|
-
|
|
191
|
-
#### Returns
|
|
192
|
-
|
|
193
|
-
`Promise`\<readonly [`AuditEntry`](../interfaces/AuditEntry.md)[]\>
|
|
194
|
-
|
|
195
|
-
#### Implementation of
|
|
196
|
-
|
|
197
|
-
[`VaultCore`](../interfaces/VaultCore.md).[`getAudit`](../interfaces/VaultCore.md#getaudit)
|
|
198
|
-
|
|
199
|
-
***
|
|
200
|
-
|
|
201
|
-
### getCapability()
|
|
202
|
-
|
|
203
|
-
> **getCapability**(`vaultId`, `agentId`, `capabilityId`): `Promise`\<[`AgentCapability`](../interfaces/AgentCapability.md) \| `null`\>
|
|
204
|
-
|
|
205
|
-
#### Parameters
|
|
206
|
-
|
|
207
|
-
##### vaultId
|
|
208
|
-
|
|
209
|
-
[`VaultId`](../interfaces/VaultId.md)
|
|
210
|
-
|
|
211
|
-
##### agentId
|
|
212
|
-
|
|
213
|
-
`string`
|
|
214
|
-
|
|
215
|
-
##### capabilityId
|
|
216
|
-
|
|
217
|
-
`string`
|
|
218
|
-
|
|
219
|
-
#### Returns
|
|
220
|
-
|
|
221
|
-
`Promise`\<[`AgentCapability`](../interfaces/AgentCapability.md) \| `null`\>
|
|
222
|
-
|
|
223
|
-
#### Implementation of
|
|
224
|
-
|
|
225
|
-
[`VaultCore`](../interfaces/VaultCore.md).[`getCapability`](../interfaces/VaultCore.md#getcapability)
|
|
226
|
-
|
|
227
|
-
***
|
|
228
|
-
|
|
229
|
-
### listAgents()
|
|
230
|
-
|
|
231
|
-
> **listAgents**(`actor`, `request?`): `Promise`\<readonly [`AgentIdentityRecord`](../interfaces/AgentIdentityRecord.md)[]\>
|
|
232
|
-
|
|
233
|
-
#### Parameters
|
|
234
|
-
|
|
235
|
-
##### actor
|
|
236
|
-
|
|
237
|
-
[`VaultPrincipal`](../interfaces/VaultPrincipal.md) & `object`
|
|
238
|
-
|
|
239
|
-
##### request?
|
|
240
|
-
|
|
241
|
-
`Omit`\<[`OwnerListAgentsRequest`](../interfaces/OwnerListAgentsRequest.md), `"actor"` \| `"vaultId"`\>
|
|
242
|
-
|
|
243
|
-
#### Returns
|
|
244
|
-
|
|
245
|
-
`Promise`\<readonly [`AgentIdentityRecord`](../interfaces/AgentIdentityRecord.md)[]\>
|
|
246
|
-
|
|
247
|
-
#### Implementation of
|
|
248
|
-
|
|
249
|
-
[`VaultCore`](../interfaces/VaultCore.md).[`listAgents`](../interfaces/VaultCore.md#listagents)
|
|
250
|
-
|
|
251
|
-
***
|
|
252
|
-
|
|
253
|
-
### listCapabilities()
|
|
254
|
-
|
|
255
|
-
> **listCapabilities**(`actor`, `agentId?`, `request?`): `Promise`\<readonly [`AgentCapability`](../interfaces/AgentCapability.md)[]\>
|
|
256
|
-
|
|
257
|
-
#### Parameters
|
|
258
|
-
|
|
259
|
-
##### actor
|
|
260
|
-
|
|
261
|
-
[`VaultPrincipal`](../interfaces/VaultPrincipal.md) & `object`
|
|
262
|
-
|
|
263
|
-
##### agentId?
|
|
264
|
-
|
|
265
|
-
`string`
|
|
266
|
-
|
|
267
|
-
##### request?
|
|
268
|
-
|
|
269
|
-
`Omit`\<[`OwnerListCapabilitiesRequest`](../interfaces/OwnerListCapabilitiesRequest.md), `"actor"` \| `"vaultId"` \| `"agentId"`\>
|
|
270
|
-
|
|
271
|
-
#### Returns
|
|
272
|
-
|
|
273
|
-
`Promise`\<readonly [`AgentCapability`](../interfaces/AgentCapability.md)[]\>
|
|
274
|
-
|
|
275
|
-
#### Implementation of
|
|
276
|
-
|
|
277
|
-
[`VaultCore`](../interfaces/VaultCore.md).[`listCapabilities`](../interfaces/VaultCore.md#listcapabilities)
|
|
278
|
-
|
|
279
|
-
***
|
|
280
|
-
|
|
281
|
-
### registerAgentIdentity()
|
|
282
|
-
|
|
283
|
-
> **registerAgentIdentity**(`command`): `Promise`\<`void`\>
|
|
284
|
-
|
|
285
|
-
#### Parameters
|
|
286
|
-
|
|
287
|
-
##### command
|
|
288
|
-
|
|
289
|
-
[`OwnerRegisterAgentIdentityCommand`](../interfaces/OwnerRegisterAgentIdentityCommand.md)
|
|
290
|
-
|
|
291
|
-
#### Returns
|
|
292
|
-
|
|
293
|
-
`Promise`\<`void`\>
|
|
294
|
-
|
|
295
|
-
#### Implementation of
|
|
296
|
-
|
|
297
|
-
[`VaultCore`](../interfaces/VaultCore.md).[`registerAgentIdentity`](../interfaces/VaultCore.md#registeragentidentity)
|
|
298
|
-
|
|
299
|
-
***
|
|
300
|
-
|
|
301
|
-
### registerCapability()
|
|
302
|
-
|
|
303
|
-
> **registerCapability**(`command`): `Promise`\<`void`\>
|
|
304
|
-
|
|
305
|
-
#### Parameters
|
|
306
|
-
|
|
307
|
-
##### command
|
|
308
|
-
|
|
309
|
-
[`OwnerRegisterCapabilityCommand`](../interfaces/OwnerRegisterCapabilityCommand.md)
|
|
310
|
-
|
|
311
|
-
#### Returns
|
|
312
|
-
|
|
313
|
-
`Promise`\<`void`\>
|
|
314
|
-
|
|
315
|
-
#### Implementation of
|
|
316
|
-
|
|
317
|
-
[`VaultCore`](../interfaces/VaultCore.md).[`registerCapability`](../interfaces/VaultCore.md#registercapability)
|
|
318
|
-
|
|
319
|
-
***
|
|
320
|
-
|
|
321
|
-
### registerCustomFlow()
|
|
322
|
-
|
|
323
|
-
> **registerCustomFlow**(`command`): `Promise`\<`void`\>
|
|
324
|
-
|
|
325
|
-
#### Parameters
|
|
326
|
-
|
|
327
|
-
##### command
|
|
328
|
-
|
|
329
|
-
[`OwnerRegisterCustomHttpFlowCommand`](../interfaces/OwnerRegisterCustomHttpFlowCommand.md)
|
|
330
|
-
|
|
331
|
-
#### Returns
|
|
332
|
-
|
|
333
|
-
`Promise`\<`void`\>
|
|
334
|
-
|
|
335
|
-
#### Implementation of
|
|
336
|
-
|
|
337
|
-
[`VaultCore`](../interfaces/VaultCore.md).[`registerCustomFlow`](../interfaces/VaultCore.md#registercustomflow)
|
|
338
|
-
|
|
339
|
-
***
|
|
340
|
-
|
|
341
|
-
### revokeCapability()
|
|
342
|
-
|
|
343
|
-
> **revokeCapability**(`command`): `Promise`\<`void`\>
|
|
344
|
-
|
|
345
|
-
#### Parameters
|
|
346
|
-
|
|
347
|
-
##### command
|
|
348
|
-
|
|
349
|
-
[`OwnerRevokeCapabilityCommand`](../interfaces/OwnerRevokeCapabilityCommand.md)
|
|
350
|
-
|
|
351
|
-
#### Returns
|
|
352
|
-
|
|
353
|
-
`Promise`\<`void`\>
|
|
354
|
-
|
|
355
|
-
#### Implementation of
|
|
356
|
-
|
|
357
|
-
[`VaultCore`](../interfaces/VaultCore.md).[`revokeCapability`](../interfaces/VaultCore.md#revokecapability)
|
|
358
|
-
|
|
359
|
-
***
|
|
360
|
-
|
|
361
|
-
### storeCustomFlowSecret()
|
|
362
|
-
|
|
363
|
-
> **storeCustomFlowSecret**(`flow`, `alias`, `plaintext`): `Promise`\<[`SecretRecord`](../interfaces/SecretRecord.md)\>
|
|
364
|
-
|
|
365
|
-
#### Parameters
|
|
366
|
-
|
|
367
|
-
##### flow
|
|
368
|
-
|
|
369
|
-
[`CustomHttpFlowDefinition`](../interfaces/CustomHttpFlowDefinition.md)
|
|
370
|
-
|
|
371
|
-
##### alias
|
|
372
|
-
|
|
373
|
-
`string`
|
|
374
|
-
|
|
375
|
-
##### plaintext
|
|
376
|
-
|
|
377
|
-
`string`
|
|
378
|
-
|
|
379
|
-
#### Returns
|
|
380
|
-
|
|
381
|
-
`Promise`\<[`SecretRecord`](../interfaces/SecretRecord.md)\>
|
|
382
|
-
|
|
383
|
-
#### Implementation of
|
|
384
|
-
|
|
385
|
-
[`VaultCore`](../interfaces/VaultCore.md).[`storeCustomFlowSecret`](../interfaces/VaultCore.md#storecustomflowsecret)
|
|
386
|
-
|
|
387
|
-
***
|
|
388
|
-
|
|
389
|
-
### writeSecret()
|
|
390
|
-
|
|
391
|
-
> **writeSecret**(`command`): `Promise`\<[`SecretRecord`](../interfaces/SecretRecord.md)\>
|
|
392
|
-
|
|
393
|
-
#### Parameters
|
|
394
|
-
|
|
395
|
-
##### command
|
|
396
|
-
|
|
397
|
-
[`VaultWriteSecretCommand`](../type-aliases/VaultWriteSecretCommand.md)
|
|
398
|
-
|
|
399
|
-
#### Returns
|
|
400
|
-
|
|
401
|
-
`Promise`\<[`SecretRecord`](../interfaces/SecretRecord.md)\>
|
|
402
|
-
|
|
403
|
-
#### Implementation of
|
|
404
|
-
|
|
405
|
-
[`VaultCore`](../interfaces/VaultCore.md).[`writeSecret`](../interfaces/VaultCore.md#writesecret)
|
|
@@ -1,192 +0,0 @@
|
|
|
1
|
-
[**CBIO Node Runtime Agent API v1.45.2**](../README.md)
|
|
2
|
-
|
|
3
|
-
***
|
|
4
|
-
|
|
5
|
-
# Class: FsStorageProvider
|
|
6
|
-
|
|
7
|
-
Pluggable storage layer for vault persistence.
|
|
8
|
-
Enables Cloud, Mobile, and Edge runtimes to use custom storage.
|
|
9
|
-
|
|
10
|
-
## Implements
|
|
11
|
-
|
|
12
|
-
- [`IStorageProvider`](../interfaces/IStorageProvider.md)
|
|
13
|
-
|
|
14
|
-
## Constructors
|
|
15
|
-
|
|
16
|
-
### Constructor
|
|
17
|
-
|
|
18
|
-
> **new FsStorageProvider**(`baseDir?`): `FsStorageProvider`
|
|
19
|
-
|
|
20
|
-
#### Parameters
|
|
21
|
-
|
|
22
|
-
##### baseDir?
|
|
23
|
-
|
|
24
|
-
`string`
|
|
25
|
-
|
|
26
|
-
#### Returns
|
|
27
|
-
|
|
28
|
-
`FsStorageProvider`
|
|
29
|
-
|
|
30
|
-
## Methods
|
|
31
|
-
|
|
32
|
-
### delete()
|
|
33
|
-
|
|
34
|
-
> **delete**(`key`): `Promise`\<`void`\>
|
|
35
|
-
|
|
36
|
-
#### Parameters
|
|
37
|
-
|
|
38
|
-
##### key
|
|
39
|
-
|
|
40
|
-
`string`
|
|
41
|
-
|
|
42
|
-
#### Returns
|
|
43
|
-
|
|
44
|
-
`Promise`\<`void`\>
|
|
45
|
-
|
|
46
|
-
#### Implementation of
|
|
47
|
-
|
|
48
|
-
[`IStorageProvider`](../interfaces/IStorageProvider.md).[`delete`](../interfaces/IStorageProvider.md#delete)
|
|
49
|
-
|
|
50
|
-
***
|
|
51
|
-
|
|
52
|
-
### has()
|
|
53
|
-
|
|
54
|
-
> **has**(`key`): `Promise`\<`boolean`\>
|
|
55
|
-
|
|
56
|
-
#### Parameters
|
|
57
|
-
|
|
58
|
-
##### key
|
|
59
|
-
|
|
60
|
-
`string`
|
|
61
|
-
|
|
62
|
-
#### Returns
|
|
63
|
-
|
|
64
|
-
`Promise`\<`boolean`\>
|
|
65
|
-
|
|
66
|
-
#### Implementation of
|
|
67
|
-
|
|
68
|
-
[`IStorageProvider`](../interfaces/IStorageProvider.md).[`has`](../interfaces/IStorageProvider.md#has)
|
|
69
|
-
|
|
70
|
-
***
|
|
71
|
-
|
|
72
|
-
### list()
|
|
73
|
-
|
|
74
|
-
> **list**(`prefix`): `Promise`\<`string`[]\>
|
|
75
|
-
|
|
76
|
-
Optional. Returns sub-keys (names) under a given prefix.
|
|
77
|
-
|
|
78
|
-
#### Parameters
|
|
79
|
-
|
|
80
|
-
##### prefix
|
|
81
|
-
|
|
82
|
-
`string`
|
|
83
|
-
|
|
84
|
-
#### Returns
|
|
85
|
-
|
|
86
|
-
`Promise`\<`string`[]\>
|
|
87
|
-
|
|
88
|
-
#### Implementation of
|
|
89
|
-
|
|
90
|
-
[`IStorageProvider`](../interfaces/IStorageProvider.md).[`list`](../interfaces/IStorageProvider.md#list)
|
|
91
|
-
|
|
92
|
-
***
|
|
93
|
-
|
|
94
|
-
### read()
|
|
95
|
-
|
|
96
|
-
> **read**(`key`): `Promise`\<`Buffer`\<`ArrayBufferLike`\> \| `null`\>
|
|
97
|
-
|
|
98
|
-
#### Parameters
|
|
99
|
-
|
|
100
|
-
##### key
|
|
101
|
-
|
|
102
|
-
`string`
|
|
103
|
-
|
|
104
|
-
#### Returns
|
|
105
|
-
|
|
106
|
-
`Promise`\<`Buffer`\<`ArrayBufferLike`\> \| `null`\>
|
|
107
|
-
|
|
108
|
-
#### Implementation of
|
|
109
|
-
|
|
110
|
-
[`IStorageProvider`](../interfaces/IStorageProvider.md).[`read`](../interfaces/IStorageProvider.md#read)
|
|
111
|
-
|
|
112
|
-
***
|
|
113
|
-
|
|
114
|
-
### rename()
|
|
115
|
-
|
|
116
|
-
> **rename**(`fromKey`, `toKey`): `Promise`\<`void`\>
|
|
117
|
-
|
|
118
|
-
Optional. If present, used for atomic save. Otherwise vault does write+delete.
|
|
119
|
-
|
|
120
|
-
#### Parameters
|
|
121
|
-
|
|
122
|
-
##### fromKey
|
|
123
|
-
|
|
124
|
-
`string`
|
|
125
|
-
|
|
126
|
-
##### toKey
|
|
127
|
-
|
|
128
|
-
`string`
|
|
129
|
-
|
|
130
|
-
#### Returns
|
|
131
|
-
|
|
132
|
-
`Promise`\<`void`\>
|
|
133
|
-
|
|
134
|
-
#### Implementation of
|
|
135
|
-
|
|
136
|
-
[`IStorageProvider`](../interfaces/IStorageProvider.md).[`rename`](../interfaces/IStorageProvider.md#rename)
|
|
137
|
-
|
|
138
|
-
***
|
|
139
|
-
|
|
140
|
-
### withLock()
|
|
141
|
-
|
|
142
|
-
> **withLock**\<`T`\>(`key`, `task`): `Promise`\<`T`\>
|
|
143
|
-
|
|
144
|
-
Optional. If present, used to serialize read-modify-write sequences across writers.
|
|
145
|
-
|
|
146
|
-
#### Type Parameters
|
|
147
|
-
|
|
148
|
-
##### T
|
|
149
|
-
|
|
150
|
-
`T`
|
|
151
|
-
|
|
152
|
-
#### Parameters
|
|
153
|
-
|
|
154
|
-
##### key
|
|
155
|
-
|
|
156
|
-
`string`
|
|
157
|
-
|
|
158
|
-
##### task
|
|
159
|
-
|
|
160
|
-
() => `Promise`\<`T`\>
|
|
161
|
-
|
|
162
|
-
#### Returns
|
|
163
|
-
|
|
164
|
-
`Promise`\<`T`\>
|
|
165
|
-
|
|
166
|
-
#### Implementation of
|
|
167
|
-
|
|
168
|
-
[`IStorageProvider`](../interfaces/IStorageProvider.md).[`withLock`](../interfaces/IStorageProvider.md#withlock)
|
|
169
|
-
|
|
170
|
-
***
|
|
171
|
-
|
|
172
|
-
### write()
|
|
173
|
-
|
|
174
|
-
> **write**(`key`, `data`): `Promise`\<`void`\>
|
|
175
|
-
|
|
176
|
-
#### Parameters
|
|
177
|
-
|
|
178
|
-
##### key
|
|
179
|
-
|
|
180
|
-
`string`
|
|
181
|
-
|
|
182
|
-
##### data
|
|
183
|
-
|
|
184
|
-
`Buffer`
|
|
185
|
-
|
|
186
|
-
#### Returns
|
|
187
|
-
|
|
188
|
-
`Promise`\<`void`\>
|
|
189
|
-
|
|
190
|
-
#### Implementation of
|
|
191
|
-
|
|
192
|
-
[`IStorageProvider`](../interfaces/IStorageProvider.md).[`write`](../interfaces/IStorageProvider.md#write)
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
[**CBIO Node Runtime Agent API v1.45.2**](../README.md)
|
|
2
|
-
|
|
3
|
-
***
|
|
4
|
-
|
|
5
|
-
# Class: HttpDispatchExecutor
|
|
6
|
-
|
|
7
|
-
## Implements
|
|
8
|
-
|
|
9
|
-
- [`TrustedExecutor`](../interfaces/TrustedExecutor.md)
|
|
10
|
-
|
|
11
|
-
## Constructors
|
|
12
|
-
|
|
13
|
-
### Constructor
|
|
14
|
-
|
|
15
|
-
> **new HttpDispatchExecutor**(`_fetchImpl?`, `_authHeaderName?`, `_authPrefix?`): `HttpDispatchExecutor`
|
|
16
|
-
|
|
17
|
-
#### Parameters
|
|
18
|
-
|
|
19
|
-
##### \_fetchImpl?
|
|
20
|
-
|
|
21
|
-
\{(`input`, `init?`): `Promise`\<`Response`\>; (`input`, `init?`): `Promise`\<`Response`\>; \}
|
|
22
|
-
|
|
23
|
-
##### \_authHeaderName?
|
|
24
|
-
|
|
25
|
-
`string` = `"Authorization"`
|
|
26
|
-
|
|
27
|
-
##### \_authPrefix?
|
|
28
|
-
|
|
29
|
-
`string` = `"Bearer "`
|
|
30
|
-
|
|
31
|
-
#### Returns
|
|
32
|
-
|
|
33
|
-
`HttpDispatchExecutor`
|
|
34
|
-
|
|
35
|
-
## Methods
|
|
36
|
-
|
|
37
|
-
### dispatch()
|
|
38
|
-
|
|
39
|
-
> **dispatch**(`instruction`, `secret`): `Promise`\<[`DispatchResult`](../interfaces/DispatchResult.md)\>
|
|
40
|
-
|
|
41
|
-
#### Parameters
|
|
42
|
-
|
|
43
|
-
##### instruction
|
|
44
|
-
|
|
45
|
-
[`DispatchInstruction`](../interfaces/DispatchInstruction.md)
|
|
46
|
-
|
|
47
|
-
##### secret
|
|
48
|
-
|
|
49
|
-
###### plaintext
|
|
50
|
-
|
|
51
|
-
`string`
|
|
52
|
-
|
|
53
|
-
###### record
|
|
54
|
-
|
|
55
|
-
[`SecretRecord`](../interfaces/SecretRecord.md)
|
|
56
|
-
|
|
57
|
-
#### Returns
|
|
58
|
-
|
|
59
|
-
`Promise`\<[`DispatchResult`](../interfaces/DispatchResult.md)\>
|
|
60
|
-
|
|
61
|
-
#### Implementation of
|
|
62
|
-
|
|
63
|
-
[`TrustedExecutor`](../interfaces/TrustedExecutor.md).[`dispatch`](../interfaces/TrustedExecutor.md#dispatch)
|