@the-ai-company/cbio-node-runtime 1.42.0 → 1.45.2
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 +1 -0
- package/dist/clients/agent/client.d.ts +35 -0
- package/dist/clients/agent/client.js +15 -0
- package/dist/clients/agent/client.js.map +1 -1
- package/dist/clients/owner/client.d.ts +60 -0
- package/dist/clients/owner/client.js +14 -0
- package/dist/clients/owner/client.js.map +1 -1
- package/dist/clients/owner/index.d.ts +1 -1
- package/dist/runtime/bootstrap.d.ts +43 -7
- package/dist/runtime/bootstrap.js +12 -1
- package/dist/runtime/bootstrap.js.map +1 -1
- package/dist/runtime/identity.d.ts +47 -0
- package/dist/runtime/identity.js +25 -0
- package/dist/runtime/identity.js.map +1 -1
- package/dist/runtime/index.d.ts +9 -11
- package/dist/runtime/index.js +2 -0
- package/dist/runtime/index.js.map +1 -1
- package/dist/runtime/private-vault.d.ts +1 -2
- package/dist/vault-core/contracts.d.ts +32 -4
- package/dist/vault-core/contracts.js +31 -1
- package/dist/vault-core/contracts.js.map +1 -1
- package/dist/vault-core/core.js +28 -27
- package/dist/vault-core/core.js.map +1 -1
- package/dist/vault-core/defaults.js +3 -2
- package/dist/vault-core/defaults.js.map +1 -1
- package/dist/vault-core/index.d.ts +1 -0
- package/dist/vault-core/index.js +1 -0
- package/dist/vault-core/index.js.map +1 -1
- package/dist/vault-ingress/index.d.ts +2 -0
- package/dist/vault-ingress/index.js +4 -2
- package/dist/vault-ingress/index.js.map +1 -1
- package/dist/vault-ingress/remote-transport.d.ts +12 -0
- package/dist/vault-ingress/remote-transport.js +45 -0
- package/dist/vault-ingress/remote-transport.js.map +1 -0
- package/dist/vault-ingress/server-utils.d.ts +10 -0
- package/dist/vault-ingress/server-utils.js +18 -0
- package/dist/vault-ingress/server-utils.js.map +1 -0
- package/docs/ARCHITECTURE.md +8 -0
- package/docs/PROCESS_ISOLATION.md +56 -0
- package/docs/api/README.md +211 -0
- package/docs/api/classes/AgentDispatchHttpTransport.md +52 -0
- package/docs/api/classes/DefaultPolicyEngine.md +117 -0
- package/docs/api/classes/DefaultVaultCore.md +405 -0
- package/docs/api/classes/FsStorageProvider.md +192 -0
- package/docs/api/classes/HttpDispatchExecutor.md +63 -0
- package/docs/api/classes/IdentityError.md +62 -0
- package/docs/api/classes/InMemoryAgentIdentityRegistry.md +83 -0
- package/docs/api/classes/InMemoryAuditLog.md +59 -0
- package/docs/api/classes/InMemoryCapabilityRegistry.md +91 -0
- package/docs/api/classes/InMemoryCapabilityRevocationRegistry.md +75 -0
- package/docs/api/classes/InMemoryCustomHttpFlowRegistry.md +63 -0
- package/docs/api/classes/InMemoryOwnerIdentityRegistry.md +83 -0
- package/docs/api/classes/InMemoryRateLimitStore.md +51 -0
- package/docs/api/classes/InMemoryReplayGuard.md +45 -0
- package/docs/api/classes/InMemorySecretCustody.md +83 -0
- package/docs/api/classes/InMemorySecretRepository.md +99 -0
- package/docs/api/classes/LocalSigner.md +59 -0
- package/docs/api/classes/LocalVaultTransport.md +45 -0
- package/docs/api/classes/MemoryStorageProvider.md +160 -0
- package/docs/api/classes/PersistentVaultAgentIdentityRegistry.md +101 -0
- package/docs/api/classes/PersistentVaultAuditLog.md +73 -0
- package/docs/api/classes/PersistentVaultCapabilityRegistry.md +109 -0
- package/docs/api/classes/PersistentVaultCapabilityRevocationRegistry.md +93 -0
- package/docs/api/classes/PersistentVaultCustomHttpFlowRegistry.md +81 -0
- package/docs/api/classes/PersistentVaultOwnerIdentityRegistry.md +101 -0
- package/docs/api/classes/PersistentVaultRateLimitStore.md +69 -0
- package/docs/api/classes/PersistentVaultReplayGuard.md +61 -0
- package/docs/api/classes/PersistentVaultSecretCustody.md +97 -0
- package/docs/api/classes/PersistentVaultSecretRepository.md +117 -0
- package/docs/api/classes/RandomIdGenerator.md +65 -0
- package/docs/api/classes/SignatureAgentProofVerifier.md +49 -0
- package/docs/api/classes/SignatureOwnerProofVerifier.md +249 -0
- package/docs/api/classes/SystemClock.md +33 -0
- package/docs/api/classes/VaultCoreError.md +39 -0
- package/docs/api/enumerations/AuditAction.md +95 -0
- package/docs/api/enumerations/AuditOutcome.md +29 -0
- package/docs/api/enumerations/DispatchStatus.md +23 -0
- package/docs/api/enumerations/IdentityErrorCode.md +121 -0
- package/docs/api/functions/createAgentClient.md +33 -0
- package/docs/api/functions/createChildIdentity.md +25 -0
- package/docs/api/functions/createDefaultVaultCoreDependencies.md +77 -0
- package/docs/api/functions/createIdentity.md +30 -0
- package/docs/api/functions/createOwnerHttpFlowBoundary.md +17 -0
- package/docs/api/functions/createPersistentVaultCoreDependencies.md +85 -0
- package/docs/api/functions/createStandardAcquireBoundary.md +31 -0
- package/docs/api/functions/createStandardDispatchBoundary.md +23 -0
- package/docs/api/functions/createVault.md +58 -0
- package/docs/api/functions/createVaultClient.md +32 -0
- package/docs/api/functions/createVaultCore.md +17 -0
- package/docs/api/functions/createVaultService.md +31 -0
- package/docs/api/functions/createWorkspaceStorage.md +17 -0
- package/docs/api/functions/deriveChildIdentity.md +41 -0
- package/docs/api/functions/deriveIdentityId.md +17 -0
- package/docs/api/functions/ensureIdentityPrivateVault.md +21 -0
- package/docs/api/functions/getDefaultWorkspaceDir.md +11 -0
- package/docs/api/functions/handleVaultHttpDispatch.md +30 -0
- package/docs/api/functions/identityPrivateVaultChildrenKey.md +17 -0
- package/docs/api/functions/identityPrivateVaultPrefix.md +17 -0
- package/docs/api/functions/identityPrivateVaultProfileKey.md +17 -0
- package/docs/api/functions/identityPrivateVaultPublicSealedKey.md +17 -0
- package/docs/api/functions/initializeVaultCustody.md +21 -0
- package/docs/api/functions/listIdentities.md +19 -0
- package/docs/api/functions/listVaults.md +23 -0
- package/docs/api/functions/readIdentityMetadata.md +29 -0
- package/docs/api/functions/readIdentityPrivateVaultChildrenState.md +21 -0
- package/docs/api/functions/readIdentityPrivateVaultProfile.md +21 -0
- package/docs/api/functions/readVaultProfile.md +25 -0
- package/docs/api/functions/readVaultPublicMetadata.md +23 -0
- package/docs/api/functions/recoverVault.md +58 -0
- package/docs/api/functions/recoverVaultWorkingKey.md +25 -0
- package/docs/api/functions/restoreIdentity.md +35 -0
- package/docs/api/functions/toOwnerHttpFlowBoundary.md +17 -0
- package/docs/api/functions/updateVaultMetadata.md +33 -0
- package/docs/api/functions/wrapVaultCoreAsVaultService.md +31 -0
- package/docs/api/functions/writeVaultProfile.md +29 -0
- package/docs/api/interfaces/AgentCapability.md +103 -0
- package/docs/api/interfaces/AgentClient.md +41 -0
- package/docs/api/interfaces/AgentDispatchIntent.md +41 -0
- package/docs/api/interfaces/AgentDispatchTransport.md +21 -0
- package/docs/api/interfaces/AgentIdentity.md +11 -0
- package/docs/api/interfaces/AgentIdentityRecord.md +23 -0
- package/docs/api/interfaces/AgentIdentityRegistry.md +57 -0
- package/docs/api/interfaces/AgentProof.md +29 -0
- package/docs/api/interfaces/AgentProofVerifier.md +21 -0
- package/docs/api/interfaces/AgentSigner.md +21 -0
- package/docs/api/interfaces/AuditEntry.md +89 -0
- package/docs/api/interfaces/AuditLog.md +37 -0
- package/docs/api/interfaces/AuditQuery.md +29 -0
- package/docs/api/interfaces/CapabilityRegistry.md +65 -0
- package/docs/api/interfaces/CapabilityRevocationRegistry.md +53 -0
- package/docs/api/interfaces/CbioRuntime.md +886 -0
- package/docs/api/interfaces/ChildIdentity.md +77 -0
- package/docs/api/interfaces/Clock.md +15 -0
- package/docs/api/interfaces/CreateAgentClientOptions.md +41 -0
- package/docs/api/interfaces/CreateChildIdentityOptions.md +19 -0
- package/docs/api/interfaces/CreateDefaultVaultCoreDependenciesOptions.md +85 -0
- package/docs/api/interfaces/CreateIdentityOptions.md +15 -0
- package/docs/api/interfaces/CreatePersistentVaultCoreDependenciesOptions.md +115 -0
- package/docs/api/interfaces/CreateVaultClientOptions.md +29 -0
- package/docs/api/interfaces/CreateVaultOptions.md +177 -0
- package/docs/api/interfaces/CreatedVault.md +39 -0
- package/docs/api/interfaces/CustomHttpFlowDefinition.md +71 -0
- package/docs/api/interfaces/CustomHttpFlowRegistry.md +41 -0
- package/docs/api/interfaces/DefaultPolicyEngineOptions.md +49 -0
- package/docs/api/interfaces/DeriveIdentityOptions.md +11 -0
- package/docs/api/interfaces/DispatchAuthorization.md +35 -0
- package/docs/api/interfaces/DispatchInstruction.md +47 -0
- package/docs/api/interfaces/DispatchRequest.md +77 -0
- package/docs/api/interfaces/DispatchResult.md +53 -0
- package/docs/api/interfaces/IStorageProvider.md +144 -0
- package/docs/api/interfaces/IdGenerator.md +39 -0
- package/docs/api/interfaces/IdentityPrivateVaultChildRecord.md +35 -0
- package/docs/api/interfaces/IdentityPrivateVaultChildrenState.md +17 -0
- package/docs/api/interfaces/IdentityPrivateVaultProfile.md +35 -0
- package/docs/api/interfaces/InitializeVaultCustodyOptions.md +29 -0
- package/docs/api/interfaces/InitializedVaultCustody.md +23 -0
- package/docs/api/interfaces/IssuerWriteSecretCommand.md +59 -0
- package/docs/api/interfaces/OwnerAuditRequest.md +47 -0
- package/docs/api/interfaces/OwnerDefineSecretTargetsCommand.md +53 -0
- package/docs/api/interfaces/OwnerDefineSecretTargetsInput.md +23 -0
- package/docs/api/interfaces/OwnerDeleteSecretCommand.md +47 -0
- package/docs/api/interfaces/OwnerExportSecretRequest.md +47 -0
- package/docs/api/interfaces/OwnerHttpFlowBoundary.md +51 -0
- package/docs/api/interfaces/OwnerIdentityRecord.md +23 -0
- package/docs/api/interfaces/OwnerIdentityRegistry.md +57 -0
- package/docs/api/interfaces/OwnerListAgentsRequest.md +41 -0
- package/docs/api/interfaces/OwnerListCapabilitiesRequest.md +47 -0
- package/docs/api/interfaces/OwnerProof.md +29 -0
- package/docs/api/interfaces/OwnerProofVerifier.md +181 -0
- package/docs/api/interfaces/OwnerRegisterAgentIdentityCommand.md +47 -0
- package/docs/api/interfaces/OwnerRegisterCapabilityCommand.md +47 -0
- package/docs/api/interfaces/OwnerRegisterCustomHttpFlowCommand.md +83 -0
- package/docs/api/interfaces/OwnerRevokeCapabilityCommand.md +53 -0
- package/docs/api/interfaces/OwnerSecretExport.md +35 -0
- package/docs/api/interfaces/OwnerSecretTargetBinding.md +35 -0
- package/docs/api/interfaces/OwnerStoreSecretInput.md +23 -0
- package/docs/api/interfaces/OwnerWriteSecretCommand.md +65 -0
- package/docs/api/interfaces/OwnerWriteSecretInput.md +29 -0
- package/docs/api/interfaces/PolicyEngine.md +81 -0
- package/docs/api/interfaces/RateLimitStore.md +33 -0
- package/docs/api/interfaces/RecoverVaultOptions.md +165 -0
- package/docs/api/interfaces/RecoveredVault.md +49 -0
- package/docs/api/interfaces/ReplayGuard.md +21 -0
- package/docs/api/interfaces/RestoreIdentityOptions.md +11 -0
- package/docs/api/interfaces/SecretAlias.md +11 -0
- package/docs/api/interfaces/SecretCustody.md +57 -0
- package/docs/api/interfaces/SecretId.md +11 -0
- package/docs/api/interfaces/SecretRecord.md +53 -0
- package/docs/api/interfaces/SecretRepository.md +69 -0
- package/docs/api/interfaces/SecretVersion.md +11 -0
- package/docs/api/interfaces/SignatureAgentProofVerifierOptions.md +21 -0
- package/docs/api/interfaces/Signer.md +31 -0
- package/docs/api/interfaces/TrustedExecutor.md +31 -0
- package/docs/api/interfaces/VaultAcquireSecretInput.md +53 -0
- package/docs/api/interfaces/VaultAcquireSecretResult.md +41 -0
- package/docs/api/interfaces/VaultAgentDispatchErrorResponse.md +25 -0
- package/docs/api/interfaces/VaultAgentDispatchRequest.md +75 -0
- package/docs/api/interfaces/VaultAgentDispatchResponse.md +17 -0
- package/docs/api/interfaces/VaultAuditQueryInput.md +29 -0
- package/docs/api/interfaces/VaultClient.md +234 -0
- package/docs/api/interfaces/VaultCore.md +311 -0
- package/docs/api/interfaces/VaultCoreDependencies.md +95 -0
- package/docs/api/interfaces/VaultCustomFlowResolver.md +25 -0
- package/docs/api/interfaces/VaultDeleteSecretInput.md +17 -0
- package/docs/api/interfaces/VaultExportSecretInput.md +17 -0
- package/docs/api/interfaces/VaultGrantCapabilityInput.md +17 -0
- package/docs/api/interfaces/VaultId.md +11 -0
- package/docs/api/interfaces/VaultIdentity.md +11 -0
- package/docs/api/interfaces/VaultListAgentsInput.md +11 -0
- package/docs/api/interfaces/VaultListCapabilitiesInput.md +17 -0
- package/docs/api/interfaces/VaultObject.md +33 -0
- package/docs/api/interfaces/VaultPrincipal.md +17 -0
- package/docs/api/interfaces/VaultProfile.md +23 -0
- package/docs/api/interfaces/VaultPublicMetadata.md +25 -0
- package/docs/api/interfaces/VaultRegisterAgentInput.md +23 -0
- package/docs/api/interfaces/VaultRegisterFlowInput.md +83 -0
- package/docs/api/interfaces/VaultRevokeCapabilityInput.md +23 -0
- package/docs/api/interfaces/VaultService.md +251 -0
- package/docs/api/interfaces/VaultSigner.md +21 -0
- package/docs/api/interfaces/VaultTargetBinding.md +35 -0
- package/docs/api/type-aliases/AgentCapabilityEnvelope.md +7 -0
- package/docs/api/type-aliases/CbioRuntimeModule.md +9 -0
- package/docs/api/type-aliases/IdentityPrivateVaultAccess.md +7 -0
- package/docs/api/type-aliases/RedactedResponseShape.md +7 -0
- package/docs/api/type-aliases/VaultAcquireSecretFlow.md +7 -0
- package/docs/api/type-aliases/VaultPrincipalKind.md +7 -0
- package/docs/api/type-aliases/VaultWriteSecretCommand.md +7 -0
- package/docs/api/variables/DEFAULT_VAULT_KEY_CUSTODY_BLOB_KEY.md +7 -0
- package/docs/zh/PROCESS_ISOLATION.md +58 -0
- package/docs/zh/README.md +5 -0
- package/examples/process-isolation.ts +155 -0
- package/package.json +10 -2
|
@@ -0,0 +1,63 @@
|
|
|
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)
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
[**CBIO Node Runtime Agent API v1.45.2**](../README.md)
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
# Class: IdentityError
|
|
6
|
+
|
|
7
|
+
Runtime export.
|
|
8
|
+
Public surface: typed high-level runtime plus supported low-level building blocks.
|
|
9
|
+
|
|
10
|
+
## Extends
|
|
11
|
+
|
|
12
|
+
- `Error`
|
|
13
|
+
|
|
14
|
+
## Constructors
|
|
15
|
+
|
|
16
|
+
### Constructor
|
|
17
|
+
|
|
18
|
+
> **new IdentityError**(`code`, `message`, `options?`): `IdentityError`
|
|
19
|
+
|
|
20
|
+
#### Parameters
|
|
21
|
+
|
|
22
|
+
##### code
|
|
23
|
+
|
|
24
|
+
[`IdentityErrorCode`](../enumerations/IdentityErrorCode.md)
|
|
25
|
+
|
|
26
|
+
##### message
|
|
27
|
+
|
|
28
|
+
`string`
|
|
29
|
+
|
|
30
|
+
##### options?
|
|
31
|
+
|
|
32
|
+
`ErrorOptions`
|
|
33
|
+
|
|
34
|
+
#### Returns
|
|
35
|
+
|
|
36
|
+
`IdentityError`
|
|
37
|
+
|
|
38
|
+
#### Overrides
|
|
39
|
+
|
|
40
|
+
`Error.constructor`
|
|
41
|
+
|
|
42
|
+
## Properties
|
|
43
|
+
|
|
44
|
+
### code
|
|
45
|
+
|
|
46
|
+
> `readonly` **code**: [`IdentityErrorCode`](../enumerations/IdentityErrorCode.md)
|
|
47
|
+
|
|
48
|
+
## Methods
|
|
49
|
+
|
|
50
|
+
### isIdentityError()
|
|
51
|
+
|
|
52
|
+
> `static` **isIdentityError**(`e`): `e is IdentityError`
|
|
53
|
+
|
|
54
|
+
#### Parameters
|
|
55
|
+
|
|
56
|
+
##### e
|
|
57
|
+
|
|
58
|
+
`unknown`
|
|
59
|
+
|
|
60
|
+
#### Returns
|
|
61
|
+
|
|
62
|
+
`e is IdentityError`
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
[**CBIO Node Runtime Agent API v1.45.2**](../README.md)
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
# Class: InMemoryAgentIdentityRegistry
|
|
6
|
+
|
|
7
|
+
## Implements
|
|
8
|
+
|
|
9
|
+
- [`AgentIdentityRegistry`](../interfaces/AgentIdentityRegistry.md)
|
|
10
|
+
|
|
11
|
+
## Constructors
|
|
12
|
+
|
|
13
|
+
### Constructor
|
|
14
|
+
|
|
15
|
+
> **new InMemoryAgentIdentityRegistry**(): `InMemoryAgentIdentityRegistry`
|
|
16
|
+
|
|
17
|
+
#### Returns
|
|
18
|
+
|
|
19
|
+
`InMemoryAgentIdentityRegistry`
|
|
20
|
+
|
|
21
|
+
## Methods
|
|
22
|
+
|
|
23
|
+
### get()
|
|
24
|
+
|
|
25
|
+
> **get**(`vaultId`, `agentId`): `Promise`\<[`AgentIdentityRecord`](../interfaces/AgentIdentityRecord.md) \| `null`\>
|
|
26
|
+
|
|
27
|
+
#### Parameters
|
|
28
|
+
|
|
29
|
+
##### vaultId
|
|
30
|
+
|
|
31
|
+
[`VaultId`](../interfaces/VaultId.md)
|
|
32
|
+
|
|
33
|
+
##### agentId
|
|
34
|
+
|
|
35
|
+
`string`
|
|
36
|
+
|
|
37
|
+
#### Returns
|
|
38
|
+
|
|
39
|
+
`Promise`\<[`AgentIdentityRecord`](../interfaces/AgentIdentityRecord.md) \| `null`\>
|
|
40
|
+
|
|
41
|
+
#### Implementation of
|
|
42
|
+
|
|
43
|
+
[`AgentIdentityRegistry`](../interfaces/AgentIdentityRegistry.md).[`get`](../interfaces/AgentIdentityRegistry.md#get)
|
|
44
|
+
|
|
45
|
+
***
|
|
46
|
+
|
|
47
|
+
### list()
|
|
48
|
+
|
|
49
|
+
> **list**(`vaultId`): `Promise`\<readonly [`AgentIdentityRecord`](../interfaces/AgentIdentityRecord.md)[]\>
|
|
50
|
+
|
|
51
|
+
#### Parameters
|
|
52
|
+
|
|
53
|
+
##### vaultId
|
|
54
|
+
|
|
55
|
+
[`VaultId`](../interfaces/VaultId.md)
|
|
56
|
+
|
|
57
|
+
#### Returns
|
|
58
|
+
|
|
59
|
+
`Promise`\<readonly [`AgentIdentityRecord`](../interfaces/AgentIdentityRecord.md)[]\>
|
|
60
|
+
|
|
61
|
+
#### Implementation of
|
|
62
|
+
|
|
63
|
+
[`AgentIdentityRegistry`](../interfaces/AgentIdentityRegistry.md).[`list`](../interfaces/AgentIdentityRegistry.md#list)
|
|
64
|
+
|
|
65
|
+
***
|
|
66
|
+
|
|
67
|
+
### register()
|
|
68
|
+
|
|
69
|
+
> **register**(`identity`): `Promise`\<`void`\>
|
|
70
|
+
|
|
71
|
+
#### Parameters
|
|
72
|
+
|
|
73
|
+
##### identity
|
|
74
|
+
|
|
75
|
+
[`AgentIdentityRecord`](../interfaces/AgentIdentityRecord.md)
|
|
76
|
+
|
|
77
|
+
#### Returns
|
|
78
|
+
|
|
79
|
+
`Promise`\<`void`\>
|
|
80
|
+
|
|
81
|
+
#### Implementation of
|
|
82
|
+
|
|
83
|
+
[`AgentIdentityRegistry`](../interfaces/AgentIdentityRegistry.md).[`register`](../interfaces/AgentIdentityRegistry.md#register)
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
[**CBIO Node Runtime Agent API v1.45.2**](../README.md)
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
# Class: InMemoryAuditLog
|
|
6
|
+
|
|
7
|
+
## Implements
|
|
8
|
+
|
|
9
|
+
- [`AuditLog`](../interfaces/AuditLog.md)
|
|
10
|
+
|
|
11
|
+
## Constructors
|
|
12
|
+
|
|
13
|
+
### Constructor
|
|
14
|
+
|
|
15
|
+
> **new InMemoryAuditLog**(): `InMemoryAuditLog`
|
|
16
|
+
|
|
17
|
+
#### Returns
|
|
18
|
+
|
|
19
|
+
`InMemoryAuditLog`
|
|
20
|
+
|
|
21
|
+
## Methods
|
|
22
|
+
|
|
23
|
+
### append()
|
|
24
|
+
|
|
25
|
+
> **append**(`entry`): `Promise`\<`void`\>
|
|
26
|
+
|
|
27
|
+
#### Parameters
|
|
28
|
+
|
|
29
|
+
##### entry
|
|
30
|
+
|
|
31
|
+
[`AuditEntry`](../interfaces/AuditEntry.md)
|
|
32
|
+
|
|
33
|
+
#### Returns
|
|
34
|
+
|
|
35
|
+
`Promise`\<`void`\>
|
|
36
|
+
|
|
37
|
+
#### Implementation of
|
|
38
|
+
|
|
39
|
+
[`AuditLog`](../interfaces/AuditLog.md).[`append`](../interfaces/AuditLog.md#append)
|
|
40
|
+
|
|
41
|
+
***
|
|
42
|
+
|
|
43
|
+
### query()
|
|
44
|
+
|
|
45
|
+
> **query**(`query`): `Promise`\<readonly [`AuditEntry`](../interfaces/AuditEntry.md)[]\>
|
|
46
|
+
|
|
47
|
+
#### Parameters
|
|
48
|
+
|
|
49
|
+
##### query
|
|
50
|
+
|
|
51
|
+
[`AuditQuery`](../interfaces/AuditQuery.md)
|
|
52
|
+
|
|
53
|
+
#### Returns
|
|
54
|
+
|
|
55
|
+
`Promise`\<readonly [`AuditEntry`](../interfaces/AuditEntry.md)[]\>
|
|
56
|
+
|
|
57
|
+
#### Implementation of
|
|
58
|
+
|
|
59
|
+
[`AuditLog`](../interfaces/AuditLog.md).[`query`](../interfaces/AuditLog.md#query)
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
[**CBIO Node Runtime Agent API v1.45.2**](../README.md)
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
# Class: InMemoryCapabilityRegistry
|
|
6
|
+
|
|
7
|
+
## Implements
|
|
8
|
+
|
|
9
|
+
- [`CapabilityRegistry`](../interfaces/CapabilityRegistry.md)
|
|
10
|
+
|
|
11
|
+
## Constructors
|
|
12
|
+
|
|
13
|
+
### Constructor
|
|
14
|
+
|
|
15
|
+
> **new InMemoryCapabilityRegistry**(): `InMemoryCapabilityRegistry`
|
|
16
|
+
|
|
17
|
+
#### Returns
|
|
18
|
+
|
|
19
|
+
`InMemoryCapabilityRegistry`
|
|
20
|
+
|
|
21
|
+
## Methods
|
|
22
|
+
|
|
23
|
+
### get()
|
|
24
|
+
|
|
25
|
+
> **get**(`vaultId`, `agentId`, `capabilityId`): `Promise`\<[`AgentCapability`](../interfaces/AgentCapability.md) \| `null`\>
|
|
26
|
+
|
|
27
|
+
#### Parameters
|
|
28
|
+
|
|
29
|
+
##### vaultId
|
|
30
|
+
|
|
31
|
+
[`VaultId`](../interfaces/VaultId.md)
|
|
32
|
+
|
|
33
|
+
##### agentId
|
|
34
|
+
|
|
35
|
+
`string`
|
|
36
|
+
|
|
37
|
+
##### capabilityId
|
|
38
|
+
|
|
39
|
+
`string`
|
|
40
|
+
|
|
41
|
+
#### Returns
|
|
42
|
+
|
|
43
|
+
`Promise`\<[`AgentCapability`](../interfaces/AgentCapability.md) \| `null`\>
|
|
44
|
+
|
|
45
|
+
#### Implementation of
|
|
46
|
+
|
|
47
|
+
[`CapabilityRegistry`](../interfaces/CapabilityRegistry.md).[`get`](../interfaces/CapabilityRegistry.md#get)
|
|
48
|
+
|
|
49
|
+
***
|
|
50
|
+
|
|
51
|
+
### list()
|
|
52
|
+
|
|
53
|
+
> **list**(`vaultId`, `agentId?`): `Promise`\<readonly [`AgentCapability`](../interfaces/AgentCapability.md)[]\>
|
|
54
|
+
|
|
55
|
+
#### Parameters
|
|
56
|
+
|
|
57
|
+
##### vaultId
|
|
58
|
+
|
|
59
|
+
[`VaultId`](../interfaces/VaultId.md)
|
|
60
|
+
|
|
61
|
+
##### agentId?
|
|
62
|
+
|
|
63
|
+
`string`
|
|
64
|
+
|
|
65
|
+
#### Returns
|
|
66
|
+
|
|
67
|
+
`Promise`\<readonly [`AgentCapability`](../interfaces/AgentCapability.md)[]\>
|
|
68
|
+
|
|
69
|
+
#### Implementation of
|
|
70
|
+
|
|
71
|
+
[`CapabilityRegistry`](../interfaces/CapabilityRegistry.md).[`list`](../interfaces/CapabilityRegistry.md#list)
|
|
72
|
+
|
|
73
|
+
***
|
|
74
|
+
|
|
75
|
+
### register()
|
|
76
|
+
|
|
77
|
+
> **register**(`capability`): `Promise`\<`void`\>
|
|
78
|
+
|
|
79
|
+
#### Parameters
|
|
80
|
+
|
|
81
|
+
##### capability
|
|
82
|
+
|
|
83
|
+
[`AgentCapability`](../interfaces/AgentCapability.md)
|
|
84
|
+
|
|
85
|
+
#### Returns
|
|
86
|
+
|
|
87
|
+
`Promise`\<`void`\>
|
|
88
|
+
|
|
89
|
+
#### Implementation of
|
|
90
|
+
|
|
91
|
+
[`CapabilityRegistry`](../interfaces/CapabilityRegistry.md).[`register`](../interfaces/CapabilityRegistry.md#register)
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
[**CBIO Node Runtime Agent API v1.45.2**](../README.md)
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
# Class: InMemoryCapabilityRevocationRegistry
|
|
6
|
+
|
|
7
|
+
## Implements
|
|
8
|
+
|
|
9
|
+
- [`CapabilityRevocationRegistry`](../interfaces/CapabilityRevocationRegistry.md)
|
|
10
|
+
|
|
11
|
+
## Constructors
|
|
12
|
+
|
|
13
|
+
### Constructor
|
|
14
|
+
|
|
15
|
+
> **new InMemoryCapabilityRevocationRegistry**(): `InMemoryCapabilityRevocationRegistry`
|
|
16
|
+
|
|
17
|
+
#### Returns
|
|
18
|
+
|
|
19
|
+
`InMemoryCapabilityRevocationRegistry`
|
|
20
|
+
|
|
21
|
+
## Methods
|
|
22
|
+
|
|
23
|
+
### get()
|
|
24
|
+
|
|
25
|
+
> **get**(`vaultId`, `agentId`, `capabilityId`): `number`
|
|
26
|
+
|
|
27
|
+
#### Parameters
|
|
28
|
+
|
|
29
|
+
##### vaultId
|
|
30
|
+
|
|
31
|
+
[`VaultId`](../interfaces/VaultId.md)
|
|
32
|
+
|
|
33
|
+
##### agentId
|
|
34
|
+
|
|
35
|
+
`string`
|
|
36
|
+
|
|
37
|
+
##### capabilityId
|
|
38
|
+
|
|
39
|
+
`string`
|
|
40
|
+
|
|
41
|
+
#### Returns
|
|
42
|
+
|
|
43
|
+
`number`
|
|
44
|
+
|
|
45
|
+
#### Implementation of
|
|
46
|
+
|
|
47
|
+
[`CapabilityRevocationRegistry`](../interfaces/CapabilityRevocationRegistry.md).[`get`](../interfaces/CapabilityRevocationRegistry.md#get)
|
|
48
|
+
|
|
49
|
+
***
|
|
50
|
+
|
|
51
|
+
### revoke()
|
|
52
|
+
|
|
53
|
+
> **revoke**(`vaultId`, `agentId`, `capabilityId`): `number`
|
|
54
|
+
|
|
55
|
+
#### Parameters
|
|
56
|
+
|
|
57
|
+
##### vaultId
|
|
58
|
+
|
|
59
|
+
[`VaultId`](../interfaces/VaultId.md)
|
|
60
|
+
|
|
61
|
+
##### agentId
|
|
62
|
+
|
|
63
|
+
`string`
|
|
64
|
+
|
|
65
|
+
##### capabilityId
|
|
66
|
+
|
|
67
|
+
`string`
|
|
68
|
+
|
|
69
|
+
#### Returns
|
|
70
|
+
|
|
71
|
+
`number`
|
|
72
|
+
|
|
73
|
+
#### Implementation of
|
|
74
|
+
|
|
75
|
+
[`CapabilityRevocationRegistry`](../interfaces/CapabilityRevocationRegistry.md).[`revoke`](../interfaces/CapabilityRevocationRegistry.md#revoke)
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
[**CBIO Node Runtime Agent API v1.45.2**](../README.md)
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
# Class: InMemoryCustomHttpFlowRegistry
|
|
6
|
+
|
|
7
|
+
## Implements
|
|
8
|
+
|
|
9
|
+
- [`CustomHttpFlowRegistry`](../interfaces/CustomHttpFlowRegistry.md)
|
|
10
|
+
|
|
11
|
+
## Constructors
|
|
12
|
+
|
|
13
|
+
### Constructor
|
|
14
|
+
|
|
15
|
+
> **new InMemoryCustomHttpFlowRegistry**(): `InMemoryCustomHttpFlowRegistry`
|
|
16
|
+
|
|
17
|
+
#### Returns
|
|
18
|
+
|
|
19
|
+
`InMemoryCustomHttpFlowRegistry`
|
|
20
|
+
|
|
21
|
+
## Methods
|
|
22
|
+
|
|
23
|
+
### get()
|
|
24
|
+
|
|
25
|
+
> **get**(`vaultId`, `flowId`): `Promise`\<[`CustomHttpFlowDefinition`](../interfaces/CustomHttpFlowDefinition.md) \| `null`\>
|
|
26
|
+
|
|
27
|
+
#### Parameters
|
|
28
|
+
|
|
29
|
+
##### vaultId
|
|
30
|
+
|
|
31
|
+
[`VaultId`](../interfaces/VaultId.md)
|
|
32
|
+
|
|
33
|
+
##### flowId
|
|
34
|
+
|
|
35
|
+
`string`
|
|
36
|
+
|
|
37
|
+
#### Returns
|
|
38
|
+
|
|
39
|
+
`Promise`\<[`CustomHttpFlowDefinition`](../interfaces/CustomHttpFlowDefinition.md) \| `null`\>
|
|
40
|
+
|
|
41
|
+
#### Implementation of
|
|
42
|
+
|
|
43
|
+
[`CustomHttpFlowRegistry`](../interfaces/CustomHttpFlowRegistry.md).[`get`](../interfaces/CustomHttpFlowRegistry.md#get)
|
|
44
|
+
|
|
45
|
+
***
|
|
46
|
+
|
|
47
|
+
### register()
|
|
48
|
+
|
|
49
|
+
> **register**(`flow`): `Promise`\<`void`\>
|
|
50
|
+
|
|
51
|
+
#### Parameters
|
|
52
|
+
|
|
53
|
+
##### flow
|
|
54
|
+
|
|
55
|
+
[`CustomHttpFlowDefinition`](../interfaces/CustomHttpFlowDefinition.md)
|
|
56
|
+
|
|
57
|
+
#### Returns
|
|
58
|
+
|
|
59
|
+
`Promise`\<`void`\>
|
|
60
|
+
|
|
61
|
+
#### Implementation of
|
|
62
|
+
|
|
63
|
+
[`CustomHttpFlowRegistry`](../interfaces/CustomHttpFlowRegistry.md).[`register`](../interfaces/CustomHttpFlowRegistry.md#register)
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
[**CBIO Node Runtime Agent API v1.45.2**](../README.md)
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
# Class: InMemoryOwnerIdentityRegistry
|
|
6
|
+
|
|
7
|
+
## Implements
|
|
8
|
+
|
|
9
|
+
- [`OwnerIdentityRegistry`](../interfaces/OwnerIdentityRegistry.md)
|
|
10
|
+
|
|
11
|
+
## Constructors
|
|
12
|
+
|
|
13
|
+
### Constructor
|
|
14
|
+
|
|
15
|
+
> **new InMemoryOwnerIdentityRegistry**(): `InMemoryOwnerIdentityRegistry`
|
|
16
|
+
|
|
17
|
+
#### Returns
|
|
18
|
+
|
|
19
|
+
`InMemoryOwnerIdentityRegistry`
|
|
20
|
+
|
|
21
|
+
## Methods
|
|
22
|
+
|
|
23
|
+
### get()
|
|
24
|
+
|
|
25
|
+
> **get**(`vaultId`, `ownerId`): `Promise`\<[`OwnerIdentityRecord`](../interfaces/OwnerIdentityRecord.md) \| `null`\>
|
|
26
|
+
|
|
27
|
+
#### Parameters
|
|
28
|
+
|
|
29
|
+
##### vaultId
|
|
30
|
+
|
|
31
|
+
[`VaultId`](../interfaces/VaultId.md)
|
|
32
|
+
|
|
33
|
+
##### ownerId
|
|
34
|
+
|
|
35
|
+
`string`
|
|
36
|
+
|
|
37
|
+
#### Returns
|
|
38
|
+
|
|
39
|
+
`Promise`\<[`OwnerIdentityRecord`](../interfaces/OwnerIdentityRecord.md) \| `null`\>
|
|
40
|
+
|
|
41
|
+
#### Implementation of
|
|
42
|
+
|
|
43
|
+
[`OwnerIdentityRegistry`](../interfaces/OwnerIdentityRegistry.md).[`get`](../interfaces/OwnerIdentityRegistry.md#get)
|
|
44
|
+
|
|
45
|
+
***
|
|
46
|
+
|
|
47
|
+
### hasAny()
|
|
48
|
+
|
|
49
|
+
> **hasAny**(`vaultId`): `Promise`\<`boolean`\>
|
|
50
|
+
|
|
51
|
+
#### Parameters
|
|
52
|
+
|
|
53
|
+
##### vaultId
|
|
54
|
+
|
|
55
|
+
[`VaultId`](../interfaces/VaultId.md)
|
|
56
|
+
|
|
57
|
+
#### Returns
|
|
58
|
+
|
|
59
|
+
`Promise`\<`boolean`\>
|
|
60
|
+
|
|
61
|
+
#### Implementation of
|
|
62
|
+
|
|
63
|
+
[`OwnerIdentityRegistry`](../interfaces/OwnerIdentityRegistry.md).[`hasAny`](../interfaces/OwnerIdentityRegistry.md#hasany)
|
|
64
|
+
|
|
65
|
+
***
|
|
66
|
+
|
|
67
|
+
### register()
|
|
68
|
+
|
|
69
|
+
> **register**(`identity`): `Promise`\<`void`\>
|
|
70
|
+
|
|
71
|
+
#### Parameters
|
|
72
|
+
|
|
73
|
+
##### identity
|
|
74
|
+
|
|
75
|
+
[`OwnerIdentityRecord`](../interfaces/OwnerIdentityRecord.md)
|
|
76
|
+
|
|
77
|
+
#### Returns
|
|
78
|
+
|
|
79
|
+
`Promise`\<`void`\>
|
|
80
|
+
|
|
81
|
+
#### Implementation of
|
|
82
|
+
|
|
83
|
+
[`OwnerIdentityRegistry`](../interfaces/OwnerIdentityRegistry.md).[`register`](../interfaces/OwnerIdentityRegistry.md#register)
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
[**CBIO Node Runtime Agent API v1.45.2**](../README.md)
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
# Class: InMemoryRateLimitStore
|
|
6
|
+
|
|
7
|
+
## Implements
|
|
8
|
+
|
|
9
|
+
- [`RateLimitStore`](../interfaces/RateLimitStore.md)
|
|
10
|
+
|
|
11
|
+
## Constructors
|
|
12
|
+
|
|
13
|
+
### Constructor
|
|
14
|
+
|
|
15
|
+
> **new InMemoryRateLimitStore**(): `InMemoryRateLimitStore`
|
|
16
|
+
|
|
17
|
+
#### Returns
|
|
18
|
+
|
|
19
|
+
`InMemoryRateLimitStore`
|
|
20
|
+
|
|
21
|
+
## Methods
|
|
22
|
+
|
|
23
|
+
### consume()
|
|
24
|
+
|
|
25
|
+
> **consume**(`key`, `maxRequests`, `windowMs`, `nowMs`): `Promise`\<`void`\>
|
|
26
|
+
|
|
27
|
+
#### Parameters
|
|
28
|
+
|
|
29
|
+
##### key
|
|
30
|
+
|
|
31
|
+
`string`
|
|
32
|
+
|
|
33
|
+
##### maxRequests
|
|
34
|
+
|
|
35
|
+
`number`
|
|
36
|
+
|
|
37
|
+
##### windowMs
|
|
38
|
+
|
|
39
|
+
`number`
|
|
40
|
+
|
|
41
|
+
##### nowMs
|
|
42
|
+
|
|
43
|
+
`number`
|
|
44
|
+
|
|
45
|
+
#### Returns
|
|
46
|
+
|
|
47
|
+
`Promise`\<`void`\>
|
|
48
|
+
|
|
49
|
+
#### Implementation of
|
|
50
|
+
|
|
51
|
+
[`RateLimitStore`](../interfaces/RateLimitStore.md).[`consume`](../interfaces/RateLimitStore.md#consume)
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
[**CBIO Node Runtime Agent API v1.45.2**](../README.md)
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
# Class: InMemoryReplayGuard
|
|
6
|
+
|
|
7
|
+
## Implements
|
|
8
|
+
|
|
9
|
+
- [`ReplayGuard`](../interfaces/ReplayGuard.md)
|
|
10
|
+
|
|
11
|
+
## Constructors
|
|
12
|
+
|
|
13
|
+
### Constructor
|
|
14
|
+
|
|
15
|
+
> **new InMemoryReplayGuard**(`options?`): `InMemoryReplayGuard`
|
|
16
|
+
|
|
17
|
+
#### Parameters
|
|
18
|
+
|
|
19
|
+
##### options?
|
|
20
|
+
|
|
21
|
+
[`SignatureAgentProofVerifierOptions`](../interfaces/SignatureAgentProofVerifierOptions.md) = `{}`
|
|
22
|
+
|
|
23
|
+
#### Returns
|
|
24
|
+
|
|
25
|
+
`InMemoryReplayGuard`
|
|
26
|
+
|
|
27
|
+
## Methods
|
|
28
|
+
|
|
29
|
+
### assertNotReplayed()
|
|
30
|
+
|
|
31
|
+
> **assertNotReplayed**(`request`): `Promise`\<`void`\>
|
|
32
|
+
|
|
33
|
+
#### Parameters
|
|
34
|
+
|
|
35
|
+
##### request
|
|
36
|
+
|
|
37
|
+
[`DispatchRequest`](../interfaces/DispatchRequest.md)
|
|
38
|
+
|
|
39
|
+
#### Returns
|
|
40
|
+
|
|
41
|
+
`Promise`\<`void`\>
|
|
42
|
+
|
|
43
|
+
#### Implementation of
|
|
44
|
+
|
|
45
|
+
[`ReplayGuard`](../interfaces/ReplayGuard.md).[`assertNotReplayed`](../interfaces/ReplayGuard.md#assertnotreplayed)
|