@the-ai-company/cbio-node-runtime 1.63.2 → 1.63.3
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/public-types.d.ts +14 -0
- package/dist/public-types.js +9 -0
- package/dist/public-types.js.map +1 -0
- package/dist/runtime/index.d.ts +1 -0
- package/dist/runtime/index.js.map +1 -1
- package/docs/REFERENCE.md +24 -0
- package/docs/api/README.md +9 -2
- package/docs/api/classes/IdentityError.md +1 -1
- package/docs/api/classes/OwnerClientError.md +1 -1
- package/docs/api/classes/VaultCore.md +1 -1
- package/docs/api/classes/VaultCoreError.md +1 -1
- package/docs/api/enumerations/IdentityErrorCode.md +1 -1
- package/docs/api/enumerations/OwnerClientErrorCode.md +1 -1
- package/docs/api/functions/createAgentClient.md +1 -1
- package/docs/api/functions/createIdentity.md +1 -1
- package/docs/api/functions/createOwnerHttpFlowBoundary.md +1 -1
- package/docs/api/functions/createOwnerSession.md +1 -1
- package/docs/api/functions/createPersistentVaultCoreDependencies.md +1 -1
- package/docs/api/functions/createStandardAcquireBoundary.md +1 -1
- package/docs/api/functions/createStandardDispatchBoundary.md +1 -1
- package/docs/api/functions/createVault.md +1 -1
- package/docs/api/functions/createVaultClient.md +1 -1
- package/docs/api/functions/createVaultCore.md +1 -1
- package/docs/api/functions/createVaultCoreDependencies.md +1 -1
- package/docs/api/functions/createVaultService.md +1 -1
- package/docs/api/functions/createWorkspaceStorage.md +1 -1
- package/docs/api/functions/deriveIdentityId.md +1 -1
- package/docs/api/functions/deriveVaultWorkingKeyFromPassword.md +1 -1
- package/docs/api/functions/getDefaultWorkspaceDir.md +1 -1
- package/docs/api/functions/handleVaultAgentControlHttp.md +1 -1
- package/docs/api/functions/handleVaultHttpDispatch.md +1 -1
- package/docs/api/functions/initializeVaultCustody.md +1 -1
- package/docs/api/functions/listVaults.md +1 -1
- package/docs/api/functions/readVaultProfile.md +1 -1
- package/docs/api/functions/recoverVault.md +1 -1
- package/docs/api/functions/recoverVaultWorkingKey.md +1 -1
- package/docs/api/functions/restoreIdentity.md +1 -1
- package/docs/api/functions/updateVaultMetadata.md +1 -1
- package/docs/api/functions/wrapVaultCoreAsVaultService.md +1 -1
- package/docs/api/functions/writeVaultProfile.md +1 -1
- package/docs/api/interfaces/AgentClient.md +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/AgentSigner.md +1 -1
- package/docs/api/interfaces/AgentSubmitCapabilityRequestInput.md +1 -1
- package/docs/api/interfaces/CbioRuntime.md +1 -1
- package/docs/api/interfaces/CreateAgentClientOptions.md +1 -1
- package/docs/api/interfaces/CreateIdentityOptions.md +1 -1
- package/docs/api/interfaces/CreateOwnerSessionOptions.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/DefaultPolicyEngineOptions.md +1 -1
- package/docs/api/interfaces/IStorageProvider.md +1 -1
- package/docs/api/interfaces/InitializeVaultCustodyOptions.md +1 -1
- package/docs/api/interfaces/InitializedVaultCustody.md +1 -1
- package/docs/api/interfaces/OwnerAgentProvisionResult.md +1 -1
- package/docs/api/interfaces/OwnerCreateSecretInput.md +1 -1
- package/docs/api/interfaces/OwnerRemoveSecretInput.md +1 -1
- package/docs/api/interfaces/OwnerSensitiveActionConfirmation.md +1 -1
- package/docs/api/interfaces/OwnerSensitiveActionContext.md +1 -1
- package/docs/api/interfaces/OwnerSession.md +1 -1
- package/docs/api/interfaces/OwnerUpdateSecretInput.md +1 -1
- package/docs/api/interfaces/RecoverVaultOptions.md +1 -1
- package/docs/api/interfaces/RecoveredVault.md +1 -1
- package/docs/api/interfaces/RestoreIdentityOptions.md +1 -1
- package/docs/api/interfaces/Signer.md +1 -1
- package/docs/api/interfaces/VaultApproveCapabilityRequestInput.md +1 -1
- package/docs/api/interfaces/VaultApproveDispatchInput.md +1 -1
- package/docs/api/interfaces/VaultAuditQueryInput.md +1 -1
- package/docs/api/interfaces/VaultClient.md +1 -1
- package/docs/api/interfaces/VaultCoreDependenciesOptions.md +1 -1
- package/docs/api/interfaces/VaultCreateAgentInput.md +1 -1
- package/docs/api/interfaces/VaultExportSecretInput.md +1 -1
- package/docs/api/interfaces/VaultGrantCapabilityInput.md +1 -1
- package/docs/api/interfaces/VaultGrantCapabilityRequest.md +1 -1
- package/docs/api/interfaces/VaultIdentity.md +1 -1
- package/docs/api/interfaces/VaultImportAgentInput.md +1 -1
- package/docs/api/interfaces/VaultIssueSessionTokenInput.md +1 -1
- package/docs/api/interfaces/VaultListAgentsInput.md +1 -1
- package/docs/api/interfaces/VaultListCapabilitiesInput.md +1 -1
- package/docs/api/interfaces/VaultListSecretsInput.md +1 -1
- package/docs/api/interfaces/VaultMetadata.md +1 -1
- package/docs/api/interfaces/VaultObject.md +1 -1
- package/docs/api/interfaces/VaultProfile.md +1 -1
- package/docs/api/interfaces/VaultReadAgentPrivateKeyInput.md +1 -1
- package/docs/api/interfaces/VaultReadSecretPlaintextInput.md +1 -1
- package/docs/api/interfaces/VaultRegisterFlowInput.md +1 -1
- package/docs/api/interfaces/VaultRevokeCapabilityInput.md +1 -1
- package/docs/api/interfaces/VaultRevokeSessionTokenInput.md +1 -1
- package/docs/api/interfaces/VaultSigner.md +1 -1
- package/docs/api/interfaces/VaultSubmitCapabilityRequestInput.md +1 -1
- package/docs/api/interfaces/VaultUpdateAgentInput.md +1 -1
- package/docs/api/type-aliases/AgentCapabilityEnvelope.md +1 -1
- package/docs/api/type-aliases/AgentVisibleSecretRecord.md +1 -1
- package/docs/api/type-aliases/CbioRuntimeModule.md +1 -1
- package/docs/api/type-aliases/CreateOwnerClientOptions.md +7 -0
- package/docs/api/type-aliases/OwnerAgentView.md +7 -0
- package/docs/api/type-aliases/OwnerClient.md +13 -0
- package/docs/api/type-aliases/OwnerGrantCapabilityInput.md +1 -1
- package/docs/api/type-aliases/OwnerPendingApprovalView.md +7 -0
- package/docs/api/type-aliases/OwnerRequestDetailView.md +7 -0
- package/docs/api/type-aliases/OwnerRequestSummaryView.md +7 -0
- package/docs/api/type-aliases/OwnerSecretView.md +7 -0
- package/docs/api/variables/DEFAULT_VAULT_KEY_CUSTODY_BLOB_KEY.md +1 -1
- package/docs/zh/README.md +1 -0
- package/package.json +3 -2
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Public application-facing aliases.
|
|
3
|
+
*
|
|
4
|
+
* These names are intentionally stable and are meant to be used by downstream
|
|
5
|
+
* service layers and dashboards instead of reaching for lower-level protocol
|
|
6
|
+
* record names directly.
|
|
7
|
+
*/
|
|
8
|
+
export type OwnerClient = import("./clients/owner/index.js").VaultClient;
|
|
9
|
+
export type CreateOwnerClientOptions = import("./clients/owner/index.js").CreateVaultClientOptions;
|
|
10
|
+
export type OwnerAgentView = import("./vault-core/index.js").AgentIdentityRecord;
|
|
11
|
+
export type OwnerSecretView = import("./vault-core/index.js").AgentVisibleSecretRecord;
|
|
12
|
+
export type OwnerPendingApprovalView = import("./vault-core/index.js").CapabilityStateRecord;
|
|
13
|
+
export type OwnerRequestSummaryView = import("./vault-core/index.js").OwnerVisibleRequestRecord;
|
|
14
|
+
export type OwnerRequestDetailView = import("./vault-core/index.js").OwnerRequestRecord;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Public application-facing aliases.
|
|
3
|
+
*
|
|
4
|
+
* These names are intentionally stable and are meant to be used by downstream
|
|
5
|
+
* service layers and dashboards instead of reaching for lower-level protocol
|
|
6
|
+
* record names directly.
|
|
7
|
+
*/
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=public-types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"public-types.js","sourceRoot":"","sources":["../src/public-types.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG"}
|
package/dist/runtime/index.d.ts
CHANGED
|
@@ -16,6 +16,7 @@ export { createOwnerSession, type OwnerSession, type CreateOwnerSessionOptions,
|
|
|
16
16
|
export { createVaultCore, VaultCore, VaultCoreError, createVaultCoreDependencies, type VaultCoreDependenciesOptions, type DefaultPolicyEngineOptions, DefaultPolicyEngine, createPersistentVaultCoreDependencies, initializeVaultCustody, recoverVaultWorkingKey, DEFAULT_VAULT_KEY_CUSTODY_BLOB_KEY, type InitializeVaultCustodyOptions, type InitializedVaultCustody, type CreatePersistentVaultCoreDependenciesOptions, PersistentVaultAgentIdentityRegistry, PersistentVaultAuditLog, PersistentVaultCapabilityRegistry, PersistentVaultCapabilityRevocationRegistry, PersistentVaultCustomHttpFlowRegistry, PersistentVaultRateLimitStore, PersistentVaultReplayGuard, PersistentVaultSecretCustody, PersistentVaultSecretRepository, } from "../vault-core/index.js";
|
|
17
17
|
export { createVaultClient, type VaultClient, type CreateVaultClientOptions, type VaultIdentity, type VaultSigner, type VaultAuditQueryInput, type VaultExportSecretInput, type VaultReadSecretPlaintextInput, type VaultReadAgentPrivateKeyInput, type OwnerSensitiveActionConfirmation, type OwnerSensitiveActionContext, type VaultGrantCapabilityInput, type VaultGrantCapabilityRequest, type OwnerGrantCapabilityInput, type VaultRegisterFlowInput, type VaultImportAgentInput, type VaultCreateAgentInput, type OwnerAgentProvisionResult, type OwnerCreateSecretInput, type OwnerUpdateSecretInput, type OwnerRemoveSecretInput, type VaultUpdateAgentInput, type VaultListAgentsInput, type VaultListCapabilitiesInput, type VaultListSecretsInput, type VaultRevokeCapabilityInput, type VaultIssueSessionTokenInput, type VaultRevokeSessionTokenInput, type VaultSubmitCapabilityRequestInput, type VaultApproveCapabilityRequestInput, type VaultApproveDispatchInput, } from "../clients/owner/index.js";
|
|
18
18
|
export { createAgentClient, type AgentClient, type CreateAgentClientOptions, type AgentIdentity, type AgentCapabilityEnvelope, type AgentDispatchIntent, type AgentDispatchTransport, type AgentSigner, type AgentSubmitCapabilityRequestInput, type AgentVisibleSecretRecord, } from "../clients/agent/index.js";
|
|
19
|
+
export type { OwnerClient, CreateOwnerClientOptions, OwnerAgentView, OwnerSecretView, OwnerPendingApprovalView, OwnerRequestSummaryView, OwnerRequestDetailView, } from "../public-types.js";
|
|
19
20
|
export { createVaultService, wrapVaultCoreAsVaultService, createOwnerHttpFlowBoundary, createStandardAcquireBoundary, createStandardDispatchBoundary, AgentDispatchHttpTransport, handleVaultHttpDispatch, handleVaultAgentControlHttp, } from "../vault-ingress/index.js";
|
|
20
21
|
export { LocalVaultTransport } from "../vault-ingress/defaults.js";
|
|
21
22
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/runtime/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AACxG,OAAO,EAAE,eAAe,EAAE,WAAW,EAAe,iCAAiC,EAAE,MAAM,uBAAuB,CAAC;AACrH,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAE3D,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAC7D,OAAO,EACL,cAAc,EACd,eAAe,GAIhB,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,gBAAgB,EAChB,iBAAiB,GAElB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,sBAAsB,EACtB,sBAAsB,GACvB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,WAAW,EACX,YAAY,EACZ,UAAU,EACV,mBAAmB,GAOpB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,kBAAkB,GAGnB,MAAM,oBAAoB,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AmB,EACnB,qCAAqC,EACrC,sBAAsB,EACtB,sBAAsB,EACtB,kCAAkC,EAIlC,oCAAoC,EACpC,uBAAuB,EACvB,iCAAiC,EACjC,2CAA2C,EAC3C,qCAAqC,EACrC,6BAA6B,EAC7B,0BAA0B,EAC1B,4BAA4B,EAC5B,+BAA+B,GAChC,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EACL,iBAAiB,GA+BlB,MAAM,2BAA2B,CAAC;AAEnC,OAAO,EACL,iBAAiB,GAUlB,MAAM,2BAA2B,CAAC;AAYnC,OAAO,EACL,kBAAkB,EAClB,2BAA2B,EAC3B,2BAA2B,EAC3B,6BAA6B,EAC7B,8BAA8B,EAC9B,0BAA0B,EAC1B,uBAAuB,EACvB,2BAA2B,GAC5B,MAAM,2BAA2B,CAAC;AACnC;;;GAGG;AAEH,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC"}
|
package/docs/REFERENCE.md
CHANGED
|
@@ -18,6 +18,28 @@ The v1.48.4 runtime centers on a simplified, authority-centric model with manage
|
|
|
18
18
|
- `createIdentity(...)` - Generate a standalone cryptographic identity keypair.
|
|
19
19
|
- `restoreIdentity(...)` - Restore an identity from a private key.
|
|
20
20
|
|
|
21
|
+
### Recommended Type Imports
|
|
22
|
+
|
|
23
|
+
For downstream application code, import public runtime types from the package root:
|
|
24
|
+
|
|
25
|
+
- `@the-ai-company/cbio-node-runtime`
|
|
26
|
+
|
|
27
|
+
Recommended stable names:
|
|
28
|
+
|
|
29
|
+
- `OwnerClient`
|
|
30
|
+
- `CreateOwnerClientOptions`
|
|
31
|
+
- `AgentClient`
|
|
32
|
+
- `CreateAgentClientOptions`
|
|
33
|
+
- `OwnerAgentView`
|
|
34
|
+
- `OwnerSecretView`
|
|
35
|
+
- `OwnerPendingApprovalView`
|
|
36
|
+
- `OwnerRequestSummaryView`
|
|
37
|
+
- `OwnerRequestDetailView`
|
|
38
|
+
|
|
39
|
+
Legacy protocol-oriented names such as `VaultClient`, `CapabilityStateRecord`, and `OwnerRequestRecord`
|
|
40
|
+
remain supported, but application code is encouraged to prefer the public aliases above when defining its
|
|
41
|
+
own service and UI boundaries.
|
|
42
|
+
|
|
21
43
|
### Vault Lifecycle
|
|
22
44
|
|
|
23
45
|
#### `createVault(storage, { password, nickname, metadata })`
|
|
@@ -151,6 +173,8 @@ Recommended GUI behavior:
|
|
|
151
173
|
- Always collect the password
|
|
152
174
|
- Optionally collect a second factor such as a 6-digit verification code
|
|
153
175
|
- Branch UI behavior on `OwnerClientError.code` rather than parsing error strings
|
|
176
|
+
- Normalize SDK records into app-owned view models at your own service boundary instead of passing runtime
|
|
177
|
+
records directly into UI components
|
|
154
178
|
|
|
155
179
|
## Agent Client (Consumer)
|
|
156
180
|
|
package/docs/api/README.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
**CBIO Node Runtime Agent API v1.63.
|
|
1
|
+
**CBIO Node Runtime Agent API v1.63.3**
|
|
2
2
|
|
|
3
3
|
***
|
|
4
4
|
|
|
5
|
-
# CBIO Node Runtime Agent API v1.63.
|
|
5
|
+
# CBIO Node Runtime Agent API v1.63.3
|
|
6
6
|
|
|
7
7
|
## Enumerations
|
|
8
8
|
|
|
@@ -79,7 +79,14 @@
|
|
|
79
79
|
- [AgentCapabilityEnvelope](type-aliases/AgentCapabilityEnvelope.md)
|
|
80
80
|
- [AgentVisibleSecretRecord](type-aliases/AgentVisibleSecretRecord.md)
|
|
81
81
|
- [CbioRuntimeModule](type-aliases/CbioRuntimeModule.md)
|
|
82
|
+
- [CreateOwnerClientOptions](type-aliases/CreateOwnerClientOptions.md)
|
|
83
|
+
- [OwnerAgentView](type-aliases/OwnerAgentView.md)
|
|
84
|
+
- [OwnerClient](type-aliases/OwnerClient.md)
|
|
82
85
|
- [OwnerGrantCapabilityInput](type-aliases/OwnerGrantCapabilityInput.md)
|
|
86
|
+
- [OwnerPendingApprovalView](type-aliases/OwnerPendingApprovalView.md)
|
|
87
|
+
- [OwnerRequestDetailView](type-aliases/OwnerRequestDetailView.md)
|
|
88
|
+
- [OwnerRequestSummaryView](type-aliases/OwnerRequestSummaryView.md)
|
|
89
|
+
- [OwnerSecretView](type-aliases/OwnerSecretView.md)
|
|
83
90
|
|
|
84
91
|
## Variables
|
|
85
92
|
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
[**CBIO Node Runtime Agent API v1.63.3**](../README.md)
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
# Type Alias: OwnerClient
|
|
6
|
+
|
|
7
|
+
> **OwnerClient** = [`VaultClient`](../interfaces/VaultClient.md)
|
|
8
|
+
|
|
9
|
+
Public application-facing aliases.
|
|
10
|
+
|
|
11
|
+
These names are intentionally stable and are meant to be used by downstream
|
|
12
|
+
service layers and dashboards instead of reaching for lower-level protocol
|
|
13
|
+
record names directly.
|
package/docs/zh/README.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@the-ai-company/cbio-node-runtime",
|
|
3
|
-
"version": "1.63.
|
|
3
|
+
"version": "1.63.3",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -30,7 +30,8 @@
|
|
|
30
30
|
"build:docs": "npx typedoc --options typedoc.json",
|
|
31
31
|
"release": "npx standard-version && npm publish",
|
|
32
32
|
"prepare": "npm run build && npm run build:docs",
|
|
33
|
-
"test": "npm run build && npm run test:acceptance",
|
|
33
|
+
"test": "npm run build && npm run test:types && npm run test:acceptance",
|
|
34
|
+
"test:types": "tsc -p tsconfig.type-tests.json --noEmit",
|
|
34
35
|
"test:acceptance": "node tests/smoke/runtime-surface.js && node tests/smoke/policy-and-persistence.js && node tests/smoke/replay-guard.js && node tests/smoke/security-guards.js"
|
|
35
36
|
},
|
|
36
37
|
"keywords": [
|