@the-ai-company/cbio-node-runtime 1.56.0 → 1.58.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +27 -28
- package/dist/clients/agent/client.d.ts +2 -2
- package/dist/clients/agent/contracts.d.ts +3 -2
- package/dist/clients/owner/client.d.ts +8 -15
- package/dist/clients/owner/client.js +18 -51
- package/dist/clients/owner/client.js.map +1 -1
- package/dist/clients/owner/contracts.d.ts +11 -23
- package/dist/clients/owner/index.d.ts +1 -1
- package/dist/runtime/index.d.ts +1 -1
- package/dist/runtime/index.js.map +1 -1
- package/dist/vault-core/contracts.d.ts +61 -57
- package/dist/vault-core/contracts.js +0 -1
- package/dist/vault-core/contracts.js.map +1 -1
- package/dist/vault-core/core.d.ts +15 -22
- package/dist/vault-core/core.js +222 -211
- package/dist/vault-core/core.js.map +1 -1
- package/dist/vault-core/defaults.d.ts +8 -22
- package/dist/vault-core/defaults.js +18 -97
- package/dist/vault-core/defaults.js.map +1 -1
- package/dist/vault-core/index.d.ts +3 -3
- package/dist/vault-core/index.js +1 -1
- package/dist/vault-core/index.js.map +1 -1
- package/dist/vault-core/persistence.d.ts +8 -6
- package/dist/vault-core/persistence.js +16 -8
- package/dist/vault-core/persistence.js.map +1 -1
- package/dist/vault-core/ports.d.ts +8 -21
- package/dist/vault-ingress/defaults.d.ts +2 -2
- package/dist/vault-ingress/index.d.ts +14 -34
- package/dist/vault-ingress/index.js +20 -42
- package/dist/vault-ingress/index.js.map +1 -1
- package/dist/vault-ingress/remote-transport.d.ts +2 -2
- package/dist/vault-ingress/remote-transport.js.map +1 -1
- package/docs/MIGRATION-1.51.md +1 -1
- package/docs/REFERENCE.md +26 -28
- package/docs/api/README.md +2 -4
- package/docs/api/classes/IdentityError.md +1 -1
- package/docs/api/classes/OwnerClientError.md +1 -1
- package/docs/api/classes/VaultCore.md +29 -105
- 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 +5 -5
- package/docs/api/interfaces/AgentDispatchIntent.md +1 -1
- package/docs/api/interfaces/AgentDispatchTransport.md +5 -5
- 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/OwnerSensitiveActionConfirmation.md +1 -1
- package/docs/api/interfaces/OwnerSensitiveActionContext.md +1 -1
- package/docs/api/interfaces/OwnerSession.md +1 -1
- package/docs/api/interfaces/OwnerStoreSecretInput.md +1 -1
- package/docs/api/interfaces/OwnerWriteSecretInput.md +1 -7
- 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 +34 -88
- package/docs/api/interfaces/VaultCoreDependenciesOptions.md +1 -1
- package/docs/api/interfaces/VaultCreateAgentInput.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/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/OwnerGrantCapabilityInput.md +1 -1
- package/docs/api/variables/DEFAULT_VAULT_KEY_CUSTODY_BLOB_KEY.md +1 -1
- package/docs/zh/README.md +20 -14
- package/examples/process-isolation.ts +1 -1
- package/package.json +1 -1
- package/docs/api/interfaces/OwnerDefineSecretTargetsInput.md +0 -23
- package/docs/api/interfaces/OwnerSecretTargetBinding.md +0 -35
|
@@ -21,17 +21,20 @@ export interface SecretRecord {
|
|
|
21
21
|
alias: SecretAlias;
|
|
22
22
|
version: SecretVersion;
|
|
23
23
|
issuerId: string | null;
|
|
24
|
-
|
|
24
|
+
source: SecretSource;
|
|
25
25
|
createdAt: string;
|
|
26
26
|
updatedAt: string;
|
|
27
27
|
retiredAt?: string;
|
|
28
28
|
}
|
|
29
|
-
export
|
|
30
|
-
kind: "
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
29
|
+
export type SecretSource = {
|
|
30
|
+
kind: "manual";
|
|
31
|
+
} | {
|
|
32
|
+
kind: "request";
|
|
33
|
+
requestId: string;
|
|
34
|
+
};
|
|
35
|
+
export interface SecretSourceInput {
|
|
36
|
+
kind: "manual" | "request";
|
|
37
|
+
requestId?: string;
|
|
35
38
|
}
|
|
36
39
|
export interface OwnerWriteSecretCommand {
|
|
37
40
|
kind: "owner.write_secret";
|
|
@@ -42,17 +45,7 @@ export interface OwnerWriteSecretCommand {
|
|
|
42
45
|
};
|
|
43
46
|
alias: string;
|
|
44
47
|
plaintext: string;
|
|
45
|
-
|
|
46
|
-
requestedAt: string;
|
|
47
|
-
}
|
|
48
|
-
export interface OwnerDefineSecretTargetsCommand {
|
|
49
|
-
vaultId: VaultId;
|
|
50
|
-
requestId: string;
|
|
51
|
-
owner: VaultPrincipal & {
|
|
52
|
-
kind: "owner";
|
|
53
|
-
};
|
|
54
|
-
alias: string;
|
|
55
|
-
targetBindings: readonly VaultTargetBinding[];
|
|
48
|
+
source?: SecretSourceInput;
|
|
56
49
|
requestedAt: string;
|
|
57
50
|
}
|
|
58
51
|
export interface IssuerWriteSecretCommand {
|
|
@@ -64,7 +57,7 @@ export interface IssuerWriteSecretCommand {
|
|
|
64
57
|
alias: string;
|
|
65
58
|
plaintext: string;
|
|
66
59
|
issuerSiteId: string;
|
|
67
|
-
|
|
60
|
+
source?: SecretSourceInput;
|
|
68
61
|
requestedAt: string;
|
|
69
62
|
}
|
|
70
63
|
export interface OwnerDeleteSecretCommand {
|
|
@@ -182,7 +175,7 @@ export interface AgentVisibleSecretRecord {
|
|
|
182
175
|
secretId: SecretId;
|
|
183
176
|
alias: SecretAlias;
|
|
184
177
|
issuerId: string | null;
|
|
185
|
-
|
|
178
|
+
source: SecretSource;
|
|
186
179
|
createdAt: string;
|
|
187
180
|
updatedAt: string;
|
|
188
181
|
isAuthorizedForAgent?: boolean;
|
|
@@ -209,12 +202,53 @@ export interface AgentGetRuntimeManifestCommand {
|
|
|
209
202
|
};
|
|
210
203
|
requestedAt: string;
|
|
211
204
|
}
|
|
205
|
+
export interface AgentSelfContext {
|
|
206
|
+
agentId: string;
|
|
207
|
+
identityId: string;
|
|
208
|
+
publicKey: string;
|
|
209
|
+
nickname?: string;
|
|
210
|
+
metadata?: Record<string, any>;
|
|
211
|
+
}
|
|
212
|
+
export type AgentCapabilityStateStatus = "GRANTED" | "PENDING" | "REJECTED";
|
|
213
|
+
export type AgentCapabilityStateSource = "owner_grant" | "explicit_request" | "dispatch_discovery";
|
|
214
|
+
export interface AgentCapabilityState {
|
|
215
|
+
status: AgentCapabilityStateStatus;
|
|
216
|
+
source: AgentCapabilityStateSource;
|
|
217
|
+
agentId: string;
|
|
218
|
+
requestId?: string;
|
|
219
|
+
capabilityId?: string;
|
|
220
|
+
operation: "dispatch_http" | "custom_http";
|
|
221
|
+
secretIds?: readonly string[];
|
|
222
|
+
secretAliases?: readonly string[];
|
|
223
|
+
customFlowId?: string;
|
|
224
|
+
scope: string;
|
|
225
|
+
methods: readonly string[];
|
|
226
|
+
issuedAt?: string;
|
|
227
|
+
requestedAt: string;
|
|
228
|
+
expiresAt?: string;
|
|
229
|
+
rateLimit?: {
|
|
230
|
+
maxRequests: number;
|
|
231
|
+
windowMs: number;
|
|
232
|
+
};
|
|
233
|
+
skipAudit?: boolean;
|
|
234
|
+
justification?: string;
|
|
235
|
+
secretAlias?: string;
|
|
236
|
+
targetUrl?: string;
|
|
237
|
+
}
|
|
238
|
+
export interface CapabilityStateRecord extends AgentCapabilityState {
|
|
239
|
+
vaultId: VaultId;
|
|
240
|
+
proof?: AgentProof;
|
|
241
|
+
headers?: Record<string, string>;
|
|
242
|
+
body?: string;
|
|
243
|
+
decidedAt?: string;
|
|
244
|
+
}
|
|
212
245
|
export interface AgentRuntimeManifest {
|
|
213
246
|
agentId: string;
|
|
214
247
|
vaultId: string;
|
|
215
248
|
vaultNickname?: string;
|
|
216
249
|
issuedAt: string;
|
|
217
|
-
|
|
250
|
+
agent: AgentSelfContext;
|
|
251
|
+
capabilities: readonly AgentCapabilityState[];
|
|
218
252
|
tools: readonly VaultToolDefinition[];
|
|
219
253
|
}
|
|
220
254
|
export interface VaultToolDefinition {
|
|
@@ -251,30 +285,6 @@ export interface AgentSubmitCapabilityRequestCommand {
|
|
|
251
285
|
scope: CapabilityRequestScope;
|
|
252
286
|
justification?: string;
|
|
253
287
|
}
|
|
254
|
-
export interface PendingDispatchRecord {
|
|
255
|
-
requestId: string;
|
|
256
|
-
agentId: string;
|
|
257
|
-
capabilityId?: string;
|
|
258
|
-
secretAlias: string;
|
|
259
|
-
targetUrl: string;
|
|
260
|
-
method: string;
|
|
261
|
-
headers?: Record<string, string>;
|
|
262
|
-
body?: string;
|
|
263
|
-
requestedAt: string;
|
|
264
|
-
proof: AgentProof;
|
|
265
|
-
}
|
|
266
|
-
export interface OwnerApproveDispatchCommand {
|
|
267
|
-
vaultId: VaultId;
|
|
268
|
-
requestId: string;
|
|
269
|
-
owner: VaultPrincipal;
|
|
270
|
-
permanent?: boolean;
|
|
271
|
-
skipAudit?: boolean;
|
|
272
|
-
}
|
|
273
|
-
export interface OwnerRejectDispatchCommand {
|
|
274
|
-
vaultId: VaultId;
|
|
275
|
-
requestId: string;
|
|
276
|
-
owner: VaultPrincipal;
|
|
277
|
-
}
|
|
278
288
|
export interface CapabilityRequestScope {
|
|
279
289
|
operation: "dispatch_http" | "custom_http";
|
|
280
290
|
secretAliases?: readonly string[];
|
|
@@ -296,22 +306,18 @@ export interface SubmitCapabilityRequestCommand {
|
|
|
296
306
|
justification?: string;
|
|
297
307
|
requestedAt: string;
|
|
298
308
|
}
|
|
299
|
-
export interface
|
|
309
|
+
export interface OwnerListCapabilityStatesRequest {
|
|
300
310
|
vaultId: VaultId;
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
scope: CapabilityRequestScope;
|
|
305
|
-
justification?: string;
|
|
306
|
-
requestedAt: string;
|
|
311
|
+
owner: VaultPrincipal;
|
|
312
|
+
agentId?: string;
|
|
313
|
+
status?: AgentCapabilityStateStatus;
|
|
307
314
|
}
|
|
308
|
-
export interface
|
|
315
|
+
export interface OwnerExecuteCapabilityStateCommand {
|
|
309
316
|
vaultId: VaultId;
|
|
310
317
|
requestId: string;
|
|
311
318
|
owner: VaultPrincipal;
|
|
312
|
-
capabilityId?: string;
|
|
313
319
|
}
|
|
314
|
-
export interface
|
|
320
|
+
export interface OwnerRejectCapabilityStateCommand {
|
|
315
321
|
vaultId: VaultId;
|
|
316
322
|
requestId: string;
|
|
317
323
|
owner: VaultPrincipal;
|
|
@@ -337,7 +343,6 @@ export interface DispatchAuthorization {
|
|
|
337
343
|
decision: DispatchDecision;
|
|
338
344
|
reason: string | null;
|
|
339
345
|
secretId: SecretId | null;
|
|
340
|
-
executorTarget: VaultTargetBinding | null;
|
|
341
346
|
capability?: AgentCapability;
|
|
342
347
|
}
|
|
343
348
|
export interface DispatchInstruction {
|
|
@@ -382,7 +387,6 @@ export declare enum AuditAction {
|
|
|
382
387
|
REJECT_CAPABILITY_REQUEST = "REJECT_CAPABILITY_REQUEST",
|
|
383
388
|
REVOKE_CAPABILITY = "REVOKE_CAPABILITY",
|
|
384
389
|
WRITE_SECRET = "WRITE_SECRET",
|
|
385
|
-
DEFINE_SECRET_TARGETS = "DEFINE_SECRET_TARGETS",
|
|
386
390
|
EXPORT_SECRET = "EXPORT_SECRET",
|
|
387
391
|
REASSIGN_ALIAS = "REASSIGN_ALIAS",
|
|
388
392
|
DELETE_SECRET = "DELETE_SECRET",
|
|
@@ -17,7 +17,6 @@ export var AuditAction;
|
|
|
17
17
|
AuditAction["REJECT_CAPABILITY_REQUEST"] = "REJECT_CAPABILITY_REQUEST";
|
|
18
18
|
AuditAction["REVOKE_CAPABILITY"] = "REVOKE_CAPABILITY";
|
|
19
19
|
AuditAction["WRITE_SECRET"] = "WRITE_SECRET";
|
|
20
|
-
AuditAction["DEFINE_SECRET_TARGETS"] = "DEFINE_SECRET_TARGETS";
|
|
21
20
|
AuditAction["EXPORT_SECRET"] = "EXPORT_SECRET";
|
|
22
21
|
AuditAction["REASSIGN_ALIAS"] = "REASSIGN_ALIAS";
|
|
23
22
|
AuditAction["DELETE_SECRET"] = "DELETE_SECRET";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contracts.js","sourceRoot":"","sources":["../../src/vault-core/contracts.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"contracts.js","sourceRoot":"","sources":["../../src/vault-core/contracts.ts"],"names":[],"mappings":"AAyXA,MAAM,CAAN,IAAY,cAMX;AAND,WAAY,cAAc;IACxB,yCAAuB,CAAA;IACvB,mCAAiB,CAAA;IACjB,mCAAiB,CAAA;IACjB,qCAAmB,CAAA;IACnB,qCAAmB,CAAA;AACrB,CAAC,EANW,cAAc,KAAd,cAAc,QAMzB;AAoBD,MAAM,CAAN,IAAY,WAuBX;AAvBD,WAAY,WAAW;IACrB,kEAAmD,CAAA;IACnD,8DAA+C,CAAA;IAC/C,4DAA6C,CAAA;IAC7C,0DAA2C,CAAA;IAC3C,sEAAuD,CAAA;IACvD,wEAAyD,CAAA;IACzD,sEAAuD,CAAA;IACvD,sDAAuC,CAAA;IACvC,4CAA6B,CAAA;IAC7B,8CAA+B,CAAA;IAC/B,gDAAiC,CAAA;IACjC,8CAA+B,CAAA;IAC/B,wDAAyC,CAAA;IACzC,kDAAmC,CAAA;IACnC,0CAA2B,CAAA;IAC3B,sDAAuC,CAAA;IACvC,wCAAyB,CAAA;IACzB,0DAA2C,CAAA;IAC3C,4DAA6C,CAAA;IAC7C,oDAAqC,CAAA;IACrC,kDAAmC,CAAA;IACnC,gDAAiC,CAAA;AACnC,CAAC,EAvBW,WAAW,KAAX,WAAW,QAuBtB;AAED,MAAM,CAAN,IAAY,YAMX;AAND,WAAY,YAAY;IACtB,mCAAmB,CAAA;IACnB,iCAAiB,CAAA;IACjB,uCAAuB,CAAA;IACvB,iCAAiB,CAAA;IACjB,mCAAmB,CAAA;AACrB,CAAC,EANW,YAAY,KAAZ,YAAY,QAMvB"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AgentListCapabilitiesRequest, AgentListSecretsRequest,
|
|
1
|
+
import type { AgentListCapabilitiesRequest, AgentListSecretsRequest, AgentGetRuntimeManifestRequest, AgentRuntimeManifest, AgentSubmitCapabilityRequestCommand, AgentVisibleSecretRecord, AuditEntry, AuditQuery, CustomHttpFlowDefinition, DispatchAuthorization, DispatchRequest, DispatchResult, OwnerExecuteCapabilityStateCommand, OwnerIssueSessionTokenRequest, OwnerRejectCapabilityStateCommand, OwnerDeleteSecretCommand, OwnerExportSecretRequest, OwnerRegisterAgentIdentityCommand, OwnerUpdateAgentIdentityCommand, OwnerRegisterCapabilityCommand, OwnerRegisterCustomHttpFlowCommand, OwnerRevokeCapabilityCommand, OwnerListAgentsRequest, OwnerListCapabilitiesRequest, OwnerListCapabilityStatesRequest, OwnerSecretExport, OwnerSessionToken, SecretRecord, SubmitCapabilityRequestCommand, VaultId, VaultPrincipal, VaultWriteSecretCommand, AgentIdentityRecord, AgentCapability, CapabilityStateRecord } from "./contracts.js";
|
|
2
2
|
import type { VaultCoreDependencies } from "./ports.js";
|
|
3
3
|
/**
|
|
4
4
|
* The Sovereign Vault Core.
|
|
@@ -6,27 +6,28 @@ import type { VaultCoreDependencies } from "./ports.js";
|
|
|
6
6
|
*/
|
|
7
7
|
export declare class VaultCore {
|
|
8
8
|
private readonly _deps;
|
|
9
|
-
private readonly
|
|
10
|
-
private readonly _pendingCapabilityObservers;
|
|
9
|
+
private readonly _capabilityStateObservers;
|
|
11
10
|
constructor(_deps: VaultCoreDependencies);
|
|
12
11
|
private _assertOwnerPrincipal;
|
|
12
|
+
private _stateToGrantedCapability;
|
|
13
|
+
private _buildAgentCapabilityStates;
|
|
14
|
+
private _isExecutablePendingState;
|
|
15
|
+
private _executePendingCapabilityState;
|
|
13
16
|
get vaultId(): VaultId;
|
|
14
17
|
private _appendAudit;
|
|
15
18
|
private _appendDecisionAudit;
|
|
16
19
|
private _verifyAgentControlProof;
|
|
17
20
|
private _listVisibleSecretsForAgent;
|
|
18
|
-
|
|
19
|
-
ownerOnPendingCapabilityRequest(callback: (record: PendingCapabilityRequestRecord) => void): () => void;
|
|
21
|
+
ownerOnCapabilityState(callback: (record: CapabilityStateRecord) => void): () => void;
|
|
20
22
|
ownerRegisterAgentIdentity(command: OwnerRegisterAgentIdentityCommand): Promise<void>;
|
|
21
23
|
ownerUpdateAgentIdentity(command: OwnerUpdateAgentIdentityCommand): Promise<AgentIdentityRecord>;
|
|
22
24
|
ownerRegisterCapability(command: OwnerRegisterCapabilityCommand): Promise<void>;
|
|
23
|
-
ownerSubmitCapabilityRequest(command: SubmitCapabilityRequestCommand): Promise<
|
|
25
|
+
ownerSubmitCapabilityRequest(command: SubmitCapabilityRequestCommand): Promise<CapabilityStateRecord>;
|
|
24
26
|
_getCapability(vaultId: import("./contracts.js").VaultId, agentId: string, capabilityId: string): Promise<AgentCapability | null>;
|
|
25
27
|
ownerRegisterCustomFlow(command: OwnerRegisterCustomHttpFlowCommand): Promise<void>;
|
|
26
28
|
_storeCustomFlowSecret(flow: CustomHttpFlowDefinition, alias: string, plaintext: string): Promise<SecretRecord>;
|
|
27
29
|
ownerWriteSecret(command: VaultWriteSecretCommand): Promise<SecretRecord>;
|
|
28
30
|
ownerDeleteSecret(command: OwnerDeleteSecretCommand): Promise<void>;
|
|
29
|
-
ownerDefineSecretTargets(command: OwnerDefineSecretTargetsCommand): Promise<SecretRecord>;
|
|
30
31
|
agentAuthorizeDispatch(request: DispatchRequest): Promise<DispatchAuthorization>;
|
|
31
32
|
agentDispatchSecret(request: DispatchRequest): Promise<DispatchResult>;
|
|
32
33
|
ownerReadAudit(actor: VaultPrincipal & {
|
|
@@ -47,10 +48,10 @@ export declare class VaultCore {
|
|
|
47
48
|
}, request?: {
|
|
48
49
|
requestId?: string;
|
|
49
50
|
}): Promise<readonly AgentVisibleSecretRecord[]>;
|
|
50
|
-
agentListCapabilities(request: AgentListCapabilitiesRequest): Promise<readonly
|
|
51
|
+
agentListCapabilities(request: AgentListCapabilitiesRequest): Promise<readonly import("./contracts.js").AgentCapabilityState[]>;
|
|
51
52
|
agentListSecrets(request: AgentListSecretsRequest): Promise<readonly AgentVisibleSecretRecord[]>;
|
|
52
|
-
agentGetRuntimeManifest(command:
|
|
53
|
-
agentSubmitCapabilityRequest(command: AgentSubmitCapabilityRequestCommand): Promise<
|
|
53
|
+
agentGetRuntimeManifest(command: AgentGetRuntimeManifestRequest): Promise<AgentRuntimeManifest>;
|
|
54
|
+
agentSubmitCapabilityRequest(command: AgentSubmitCapabilityRequestCommand): Promise<CapabilityStateRecord>;
|
|
54
55
|
ownerRevokeCapability(command: OwnerRevokeCapabilityCommand): Promise<void>;
|
|
55
56
|
ownerIssueSessionToken(request: OwnerIssueSessionTokenRequest): Promise<OwnerSessionToken>;
|
|
56
57
|
ownerIssueAllAgentSessionTokens(actor: VaultPrincipal & {
|
|
@@ -63,17 +64,9 @@ export declare class VaultCore {
|
|
|
63
64
|
};
|
|
64
65
|
token: string;
|
|
65
66
|
}): Promise<void>;
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
ownerListPendingCapabilityRequests(command: {
|
|
71
|
-
vaultId: VaultId;
|
|
72
|
-
owner: VaultPrincipal;
|
|
73
|
-
}): Promise<readonly PendingCapabilityRequestRecord[]>;
|
|
74
|
-
ownerApproveCapabilityRequest(command: OwnerApproveCapabilityRequestCommand): Promise<AgentCapability>;
|
|
75
|
-
ownerRejectCapabilityRequest(command: OwnerRejectCapabilityRequestCommand): Promise<void>;
|
|
76
|
-
ownerApproveDispatch(command: import("./contracts.js").OwnerApproveDispatchCommand): Promise<DispatchResult>;
|
|
77
|
-
ownerRejectDispatch(command: import("./contracts.js").OwnerRejectDispatchCommand): Promise<void>;
|
|
67
|
+
ownerListCapabilityStates(command: OwnerListCapabilityStatesRequest): Promise<readonly CapabilityStateRecord[]>;
|
|
68
|
+
ownerExecuteCapabilityStateOnce(command: OwnerExecuteCapabilityStateCommand): Promise<DispatchResult>;
|
|
69
|
+
ownerExecuteCapabilityStateAndGrant(command: OwnerExecuteCapabilityStateCommand): Promise<DispatchResult>;
|
|
70
|
+
ownerRejectCapabilityState(command: OwnerRejectCapabilityStateCommand): Promise<CapabilityStateRecord>;
|
|
78
71
|
}
|
|
79
72
|
export declare function createVaultCore(deps: VaultCoreDependencies): VaultCore;
|