@the-ai-company/cbio-node-runtime 1.67.0 → 1.67.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/dist/runtime/index.d.ts +2 -2
- package/dist/runtime/index.js +1 -1
- package/dist/runtime/index.js.map +1 -1
- package/dist/runtime/owner-session.d.ts +7 -7
- package/dist/runtime/owner-session.js +15 -10
- package/dist/runtime/owner-session.js.map +1 -1
- package/docs/MIGRATION-1.51.md +1 -1
- package/docs/api/README.md +4 -4
- package/docs/api/classes/IdentityError.md +1 -1
- package/docs/api/classes/OwnerClientError.md +1 -1
- package/docs/api/classes/PersistentVaultAgentIdentityRegistry.md +1 -1
- package/docs/api/classes/PersistentVaultAgentSecretGrantRegistry.md +1 -1
- package/docs/api/classes/PersistentVaultAuditLog.md +1 -1
- package/docs/api/classes/PersistentVaultSecretCustody.md +1 -1
- package/docs/api/classes/PersistentVaultSecretDestinationGrantRegistry.md +1 -1
- package/docs/api/classes/PersistentVaultSecretRepository.md +1 -1
- package/docs/api/classes/VaultCore.md +1 -1
- package/docs/api/classes/VaultCoreError.md +1 -1
- package/docs/api/enumerations/AuditOperation.md +1 -1
- package/docs/api/enumerations/DispatchStatus.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/createOwnerClient.md +1 -1
- package/docs/api/functions/createPersistentVaultCoreDependencies.md +1 -1
- package/docs/api/functions/createVault.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/deriveRootAgentId.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/openOwnerSession.md +37 -0
- 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/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/AgentIdentityRecord.md +1 -1
- package/docs/api/interfaces/AgentRequestResult.md +1 -1
- package/docs/api/interfaces/AgentRuntimeManifest.md +1 -1
- package/docs/api/interfaces/AgentSecretGrant.md +1 -1
- package/docs/api/interfaces/AgentSigner.md +1 -1
- package/docs/api/interfaces/AgentVisibleRequestRecord.md +1 -1
- package/docs/api/interfaces/AgentVisibleSecretRecord.md +1 -1
- package/docs/api/interfaces/AuditEntry.md +1 -1
- package/docs/api/interfaces/CbioRuntime.md +39 -39
- package/docs/api/interfaces/CreateAgentClientOptions.md +1 -1
- package/docs/api/interfaces/CreateIdentityOptions.md +1 -1
- package/docs/api/interfaces/CreateOwnerClientOptions.md +1 -1
- package/docs/api/interfaces/CreatePersistentVaultCoreDependenciesOptions.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/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/InitializeVaultCustodyOptions.md +1 -1
- package/docs/api/interfaces/InitializedVaultCustody.md +1 -1
- package/docs/api/interfaces/{CreateOwnerSessionOptions.md → OpenOwnerSessionOptions.md} +2 -2
- package/docs/api/interfaces/OwnerAgentProvisionResult.md +1 -1
- package/docs/api/interfaces/OwnerClient.md +1 -1
- package/docs/api/interfaces/OwnerCreateSecretInput.md +1 -1
- package/docs/api/interfaces/OwnerRemoveSecretInput.md +1 -1
- package/docs/api/interfaces/OwnerRequestRecord.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 +16 -16
- package/docs/api/interfaces/OwnerUpdateSecretInput.md +1 -1
- package/docs/api/interfaces/OwnerVisibleRequestRecord.md +1 -1
- package/docs/api/interfaces/RecoverVaultOptions.md +2 -2
- package/docs/api/interfaces/RecoveredVault.md +1 -1
- package/docs/api/interfaces/RequestRecord.md +1 -1
- package/docs/api/interfaces/RestoreIdentityOptions.md +1 -1
- package/docs/api/interfaces/SecretAlias.md +1 -1
- package/docs/api/interfaces/SecretDestinationGrant.md +1 -1
- package/docs/api/interfaces/SecretId.md +1 -1
- package/docs/api/interfaces/SecretRecord.md +1 -1
- package/docs/api/interfaces/Signer.md +1 -1
- package/docs/api/interfaces/VaultApproveDispatchInput.md +1 -1
- package/docs/api/interfaces/VaultAuditQueryInput.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/VaultGetRequestInput.md +1 -1
- package/docs/api/interfaces/VaultGrantAgentSecretInput.md +1 -1
- package/docs/api/interfaces/VaultGrantSecretDestinationInput.md +1 -1
- package/docs/api/interfaces/VaultId.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/VaultListGrantsInput.md +1 -1
- package/docs/api/interfaces/VaultListRequestsInput.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/VaultPrincipal.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/VaultRevokeAgentSecretInput.md +1 -1
- package/docs/api/interfaces/VaultRevokeSecretDestinationInput.md +1 -1
- package/docs/api/interfaces/VaultRevokeSessionTokenInput.md +1 -1
- package/docs/api/interfaces/VaultService.md +1 -1
- package/docs/api/interfaces/VaultUpdateAgentInput.md +1 -1
- package/docs/api/type-aliases/AgentId.md +1 -1
- package/docs/api/type-aliases/CbioRuntimeModule.md +1 -1
- package/docs/api/type-aliases/DispatchApprovalDecision.md +1 -1
- package/docs/api/type-aliases/GrantStatus.md +1 -1
- package/docs/api/type-aliases/SecretLifecycleStatus.md +1 -1
- package/docs/api/type-aliases/VaultPrincipalKind.md +1 -1
- package/docs/api/variables/DEFAULT_VAULT_KEY_CUSTODY_BLOB_KEY.md +1 -1
- package/docs/es/README.md +2 -2
- package/docs/fr/README.md +2 -2
- package/docs/ja/README.md +2 -2
- package/docs/ko/README.md +2 -2
- package/docs/pt/README.md +2 -2
- package/docs/zh/README.md +5 -5
- package/package.json +1 -1
- package/docs/api/functions/createOwnerSession.md +0 -37
package/dist/runtime/index.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ export { createIdentity, restoreIdentity, type CreateIdentityOptions, type Resto
|
|
|
12
12
|
export { readVaultProfile, writeVaultProfile, type VaultProfile, } from "./vault-metadata.js";
|
|
13
13
|
export { createWorkspaceStorage, getDefaultWorkspaceDir, } from "./workspace-storage.js";
|
|
14
14
|
export { createVault, recoverVault, listVaults, updateVaultMetadata, type CreateVaultOptions, type CreatedVault, type RecoverVaultOptions, type RecoveredVault, type VaultObject, type VaultMetadata, } from "./bootstrap.js";
|
|
15
|
-
export {
|
|
15
|
+
export { openOwnerSession, type OwnerSession, type OpenOwnerSessionOptions, } from "./owner-session.js";
|
|
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, PersistentVaultAgentSecretGrantRegistry, PersistentVaultSecretDestinationGrantRegistry, PersistentVaultSecretCustody, PersistentVaultSecretRepository, } from "../vault-core/index.js";
|
|
17
17
|
export type { AgentId, AgentSecretGrant, SecretDestinationGrant, GrantStatus, AgentIdentityRecord, AgentVisibleSecretRecord, AgentRuntimeManifest, AgentVisibleRequestRecord, OwnerVisibleRequestRecord, OwnerRequestRecord, AgentRequestResult, DispatchApprovalDecision, AuditEntry, DispatchAuthorization, DispatchInstruction, DispatchRequest, DispatchResult, RequestRecord, SecretAlias, SecretId, SecretLifecycleStatus, SecretRecord, VaultPrincipal, VaultPrincipalKind, VaultId, } from "../vault-core/index.js";
|
|
18
18
|
export { DispatchStatus, AuditOperation, } from "../vault-core/index.js";
|
|
@@ -40,7 +40,7 @@ export interface CbioRuntime {
|
|
|
40
40
|
listVaults: typeof import("./bootstrap.js").listVaults;
|
|
41
41
|
createVault: typeof import("./bootstrap.js").createVault;
|
|
42
42
|
recoverVault: typeof import("./bootstrap.js").recoverVault;
|
|
43
|
-
|
|
43
|
+
openOwnerSession: typeof import("./owner-session.js").openOwnerSession;
|
|
44
44
|
deriveVaultWorkingKeyFromPassword: typeof import("../protocol/crypto.js").deriveVaultWorkingKeyFromPassword;
|
|
45
45
|
createOwnerClient: typeof import("../clients/owner/index.js").createOwnerClient;
|
|
46
46
|
createAgentClient: typeof import("../clients/agent/index.js").createAgentClient;
|
package/dist/runtime/index.js
CHANGED
|
@@ -11,7 +11,7 @@ export { createIdentity, restoreIdentity, } from "./identity.js";
|
|
|
11
11
|
export { readVaultProfile, writeVaultProfile, } from "./vault-metadata.js";
|
|
12
12
|
export { createWorkspaceStorage, getDefaultWorkspaceDir, } from "./workspace-storage.js";
|
|
13
13
|
export { createVault, recoverVault, listVaults, updateVaultMetadata, } from "./bootstrap.js";
|
|
14
|
-
export {
|
|
14
|
+
export { openOwnerSession, } from "./owner-session.js";
|
|
15
15
|
export { createVaultCore, VaultCore, VaultCoreError, createVaultCoreDependencies, DefaultPolicyEngine, createPersistentVaultCoreDependencies, initializeVaultCustody, recoverVaultWorkingKey, DEFAULT_VAULT_KEY_CUSTODY_BLOB_KEY, PersistentVaultAgentIdentityRegistry, PersistentVaultAuditLog, PersistentVaultAgentSecretGrantRegistry, PersistentVaultSecretDestinationGrantRegistry, PersistentVaultSecretCustody, PersistentVaultSecretRepository, } from "../vault-core/index.js";
|
|
16
16
|
export { DispatchStatus, AuditOperation, } from "../vault-core/index.js";
|
|
17
17
|
export { createOwnerClient, } from "../clients/owner/index.js";
|
|
@@ -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,OAA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S,EACT,cAAc,EACd,2BAA2B,EAG3B,mBAAmB,EACnB,qCAAqC,EACrC,sBAAsB,EACtB,sBAAsB,EACtB,kCAAkC,EAIlC,oCAAoC,EACpC,uBAAuB,EACvB,uCAAuC,EACvC,6CAA6C,EAE7C,4BAA4B,EAC5B,+BAA+B,GAChC,MAAM,wBAAwB,CAAC;AA+BhC,OAAO,EACL,cAAc,EACd,cAAc,GACf,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EACL,iBAAiB,GA6BlB,MAAM,2BAA2B,CAAC;AAEnC,OAAO,EACL,iBAAiB,GAOlB,MAAM,2BAA2B,CAAC;AAEnC,OAAO,EACL,kBAAkB,GAEnB,MAAM,2BAA2B,CAAC;AAEnC,OAAO,EACL,uBAAuB,EACvB,2BAA2B,GAC5B,MAAM,kCAAkC,CAAC;AAE1C,OAAO,EAAE,0BAA0B,EAAE,MAAM,sCAAsC,CAAC;AAClF,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC"}
|
|
@@ -8,16 +8,16 @@ export interface OwnerSession {
|
|
|
8
8
|
readonly nickname?: string;
|
|
9
9
|
isValid(): boolean;
|
|
10
10
|
invalidate(): void;
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
reloadVault(): Promise<RecoveredVault>;
|
|
12
|
+
getVault(): Promise<RecoveredVault>;
|
|
13
|
+
getOwnerClient(): Promise<OwnerClient>;
|
|
14
|
+
withOwnerClient<T>(callback: (client: OwnerClient, vault: RecoveredVault) => Promise<T> | T): Promise<T>;
|
|
15
15
|
}
|
|
16
|
-
export interface
|
|
16
|
+
export interface OpenOwnerSessionOptions extends RecoverVaultOptions {
|
|
17
17
|
signer?: any;
|
|
18
18
|
clock?: Clock;
|
|
19
19
|
skipWarmup?: boolean;
|
|
20
20
|
sensitiveActionVerifier?: (confirmation: OwnerSensitiveActionConfirmation, context: OwnerSensitiveActionContext) => Promise<boolean> | boolean;
|
|
21
21
|
}
|
|
22
|
-
export declare function
|
|
23
|
-
export declare function
|
|
22
|
+
export declare function openOwnerSession(storage: IStorageProvider | string, options: OpenOwnerSessionOptions): OwnerSession;
|
|
23
|
+
export declare function openOwnerSession(options: OpenOwnerSessionOptions): OwnerSession;
|
|
@@ -7,6 +7,7 @@ class DefaultOwnerSession {
|
|
|
7
7
|
_options;
|
|
8
8
|
_invalidated = false;
|
|
9
9
|
_cachedVaultPromise;
|
|
10
|
+
_cachedOwnerClientPromise;
|
|
10
11
|
_nickname;
|
|
11
12
|
constructor(storage, _options) {
|
|
12
13
|
this.storage = storage;
|
|
@@ -24,13 +25,15 @@ class DefaultOwnerSession {
|
|
|
24
25
|
invalidate() {
|
|
25
26
|
this._invalidated = true;
|
|
26
27
|
this._cachedVaultPromise = undefined;
|
|
28
|
+
this._cachedOwnerClientPromise = undefined;
|
|
27
29
|
}
|
|
28
|
-
async
|
|
30
|
+
async reloadVault() {
|
|
29
31
|
this._assertValid();
|
|
30
32
|
this._cachedVaultPromise = undefined;
|
|
31
|
-
|
|
33
|
+
this._cachedOwnerClientPromise = undefined;
|
|
34
|
+
return this.getVault();
|
|
32
35
|
}
|
|
33
|
-
async
|
|
36
|
+
async getVault() {
|
|
34
37
|
this._assertValid();
|
|
35
38
|
if (!this._cachedVaultPromise) {
|
|
36
39
|
this._cachedVaultPromise = recoverVault(this.storage, this._options).then((vault) => {
|
|
@@ -40,15 +43,17 @@ class DefaultOwnerSession {
|
|
|
40
43
|
}
|
|
41
44
|
return this._cachedVaultPromise;
|
|
42
45
|
}
|
|
43
|
-
async
|
|
44
|
-
const vault = await this.vault();
|
|
46
|
+
async getOwnerClient() {
|
|
45
47
|
this._assertValid();
|
|
46
|
-
|
|
48
|
+
if (!this._cachedOwnerClientPromise) {
|
|
49
|
+
this._cachedOwnerClientPromise = this.getVault().then((vault) => this._createClient(vault));
|
|
50
|
+
}
|
|
51
|
+
return this._cachedOwnerClientPromise;
|
|
47
52
|
}
|
|
48
|
-
async
|
|
49
|
-
const vault = await this.
|
|
53
|
+
async withOwnerClient(callback) {
|
|
54
|
+
const vault = await this.getVault();
|
|
50
55
|
this._assertValid();
|
|
51
|
-
return callback(await this.
|
|
56
|
+
return callback(await this.getOwnerClient(), vault);
|
|
52
57
|
}
|
|
53
58
|
_assertValid() {
|
|
54
59
|
if (this._invalidated) {
|
|
@@ -80,7 +85,7 @@ function resolveOwnerSessionStorage(storageOrOptions, maybeOptions) {
|
|
|
80
85
|
options: storageOrOptions,
|
|
81
86
|
};
|
|
82
87
|
}
|
|
83
|
-
export function
|
|
88
|
+
export function openOwnerSession(storageOrOptions, maybeOptions) {
|
|
84
89
|
const { storage, options } = resolveOwnerSessionStorage(storageOrOptions, maybeOptions);
|
|
85
90
|
return new DefaultOwnerSession(storage, options);
|
|
86
91
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"owner-session.js","sourceRoot":"","sources":["../../src/runtime/owner-session.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAGrD,OAAO,EAAE,YAAY,EAAiD,MAAM,gBAAgB,CAAC;AAC7F,OAAO,EAAE,sBAAsB,EAAE,MAAM,wBAAwB,CAAC;AAwBhE,MAAM,mBAAmB;
|
|
1
|
+
{"version":3,"file":"owner-session.js","sourceRoot":"","sources":["../../src/runtime/owner-session.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAGrD,OAAO,EAAE,YAAY,EAAiD,MAAM,gBAAgB,CAAC;AAC7F,OAAO,EAAE,sBAAsB,EAAE,MAAM,wBAAwB,CAAC;AAwBhE,MAAM,mBAAmB;IAOZ;IACQ;IAPX,YAAY,GAAG,KAAK,CAAC;IACrB,mBAAmB,CAAsC;IACzD,yBAAyB,CAA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IACJ,CAAC;IACD,OAAO;QACL,OAAO,EAAE,sBAAsB,EAAE;QACjC,OAAO,EAAE,gBAA2C;KACrD,CAAC;AACJ,CAAC;AAOD,MAAM,UAAU,gBAAgB,CAC9B,gBAAqE,EACrE,YAAsC;IAEtC,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,GAAG,0BAA0B,CAAC,gBAAgB,EAAE,YAAY,CAAC,CAAC;IACxF,OAAO,IAAI,mBAAmB,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;AACnD,CAAC"}
|
package/docs/MIGRATION-1.51.md
CHANGED
|
@@ -26,7 +26,7 @@ This version suffix is for storage-layout evolution. Future storage rewrites sho
|
|
|
26
26
|
- `passwordVerifier`
|
|
27
27
|
- `sensitiveActionVerifier`
|
|
28
28
|
- If your UI reads secret plaintext or agent private keys, configure one of these verifiers.
|
|
29
|
-
- For long-running GUI processes, prefer `
|
|
29
|
+
- For long-running GUI processes, prefer `openOwnerSession(...)` and obtain owner clients from the session rather than caching a raw `OwnerClient`.
|
|
30
30
|
|
|
31
31
|
### Sensitive actions
|
|
32
32
|
|
package/docs/api/README.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
**CBIO Node Runtime Agent API v1.67.
|
|
1
|
+
**CBIO Node Runtime Agent API v1.67.2**
|
|
2
2
|
|
|
3
3
|
***
|
|
4
4
|
|
|
5
|
-
# CBIO Node Runtime Agent API v1.67.
|
|
5
|
+
# CBIO Node Runtime Agent API v1.67.2
|
|
6
6
|
|
|
7
7
|
## Enumerations
|
|
8
8
|
|
|
@@ -43,7 +43,6 @@
|
|
|
43
43
|
- [CreatedVault](interfaces/CreatedVault.md)
|
|
44
44
|
- [CreateIdentityOptions](interfaces/CreateIdentityOptions.md)
|
|
45
45
|
- [CreateOwnerClientOptions](interfaces/CreateOwnerClientOptions.md)
|
|
46
|
-
- [CreateOwnerSessionOptions](interfaces/CreateOwnerSessionOptions.md)
|
|
47
46
|
- [CreatePersistentVaultCoreDependenciesOptions](interfaces/CreatePersistentVaultCoreDependenciesOptions.md)
|
|
48
47
|
- [CreateVaultOptions](interfaces/CreateVaultOptions.md)
|
|
49
48
|
- [DefaultPolicyEngineOptions](interfaces/DefaultPolicyEngineOptions.md)
|
|
@@ -54,6 +53,7 @@
|
|
|
54
53
|
- [InitializedVaultCustody](interfaces/InitializedVaultCustody.md)
|
|
55
54
|
- [InitializeVaultCustodyOptions](interfaces/InitializeVaultCustodyOptions.md)
|
|
56
55
|
- [IStorageProvider](interfaces/IStorageProvider.md)
|
|
56
|
+
- [OpenOwnerSessionOptions](interfaces/OpenOwnerSessionOptions.md)
|
|
57
57
|
- [OwnerAgentProvisionResult](interfaces/OwnerAgentProvisionResult.md)
|
|
58
58
|
- [OwnerClient](interfaces/OwnerClient.md)
|
|
59
59
|
- [OwnerCreateSecretInput](interfaces/OwnerCreateSecretInput.md)
|
|
@@ -118,7 +118,6 @@
|
|
|
118
118
|
- [createAgentClient](functions/createAgentClient.md)
|
|
119
119
|
- [createIdentity](functions/createIdentity.md)
|
|
120
120
|
- [createOwnerClient](functions/createOwnerClient.md)
|
|
121
|
-
- [createOwnerSession](functions/createOwnerSession.md)
|
|
122
121
|
- [createPersistentVaultCoreDependencies](functions/createPersistentVaultCoreDependencies.md)
|
|
123
122
|
- [createVault](functions/createVault.md)
|
|
124
123
|
- [createVaultCore](functions/createVaultCore.md)
|
|
@@ -132,6 +131,7 @@
|
|
|
132
131
|
- [handleVaultHttpDispatch](functions/handleVaultHttpDispatch.md)
|
|
133
132
|
- [initializeVaultCustody](functions/initializeVaultCustody.md)
|
|
134
133
|
- [listVaults](functions/listVaults.md)
|
|
134
|
+
- [openOwnerSession](functions/openOwnerSession.md)
|
|
135
135
|
- [readVaultProfile](functions/readVaultProfile.md)
|
|
136
136
|
- [recoverVault](functions/recoverVault.md)
|
|
137
137
|
- [recoverVaultWorkingKey](functions/recoverVaultWorkingKey.md)
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
[**CBIO Node Runtime Agent API v1.67.2**](../README.md)
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
# Function: openOwnerSession()
|
|
6
|
+
|
|
7
|
+
## Call Signature
|
|
8
|
+
|
|
9
|
+
> **openOwnerSession**(`storage`, `options`): [`OwnerSession`](../interfaces/OwnerSession.md)
|
|
10
|
+
|
|
11
|
+
### Parameters
|
|
12
|
+
|
|
13
|
+
#### storage
|
|
14
|
+
|
|
15
|
+
`string` \| [`IStorageProvider`](../interfaces/IStorageProvider.md)
|
|
16
|
+
|
|
17
|
+
#### options
|
|
18
|
+
|
|
19
|
+
[`OpenOwnerSessionOptions`](../interfaces/OpenOwnerSessionOptions.md)
|
|
20
|
+
|
|
21
|
+
### Returns
|
|
22
|
+
|
|
23
|
+
[`OwnerSession`](../interfaces/OwnerSession.md)
|
|
24
|
+
|
|
25
|
+
## Call Signature
|
|
26
|
+
|
|
27
|
+
> **openOwnerSession**(`options`): [`OwnerSession`](../interfaces/OwnerSession.md)
|
|
28
|
+
|
|
29
|
+
### Parameters
|
|
30
|
+
|
|
31
|
+
#### options
|
|
32
|
+
|
|
33
|
+
[`OpenOwnerSessionOptions`](../interfaces/OpenOwnerSessionOptions.md)
|
|
34
|
+
|
|
35
|
+
### Returns
|
|
36
|
+
|
|
37
|
+
[`OwnerSession`](../interfaces/OwnerSession.md)
|