@voyantjs/action-ledger 0.52.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.
@@ -0,0 +1,1596 @@
1
+ import type { Module } from "@voyantjs/core";
2
+ import type { AnyDrizzleDb } from "@voyantjs/db";
3
+ import type { HonoModule } from "@voyantjs/hono/module";
4
+ import type { ActionApproval, ActionDelegation, ActionLedgerEntry, ActionLedgerPayload, ActionLedgerRelayOutbox, ActionMutationDetail, ActionSensitiveReadDetail } from "./schema.js";
5
+ import { type GetActionApprovalResult, type GetActionLedgerEntryResult } from "./service.js";
6
+ type Env = {
7
+ Variables: {
8
+ db: AnyDrizzleDb;
9
+ };
10
+ };
11
+ export type ActionLedgerEntryResponse = Omit<ActionLedgerEntry, "occurredAt" | "createdAt"> & {
12
+ occurredAt: string;
13
+ createdAt: string;
14
+ };
15
+ export interface ActionLedgerListResponse {
16
+ data: ActionLedgerEntryResponse[];
17
+ pageInfo: {
18
+ nextCursor: {
19
+ occurredAt: string;
20
+ id: string;
21
+ } | null;
22
+ };
23
+ }
24
+ export type ActionLedgerEntryDetailResponse = ActionLedgerEntryResponse & {
25
+ mutationDetail: ActionMutationDetail | null;
26
+ sensitiveReadDetail: ActionSensitiveReadDetail | null;
27
+ payloads: ActionLedgerPayloadResponse[];
28
+ relayOutbox: ActionLedgerRelayOutboxResponse[];
29
+ };
30
+ export interface ActionLedgerGetResponse {
31
+ data: ActionLedgerEntryDetailResponse;
32
+ }
33
+ export interface ActionLedgerRelayOutboxListResponse {
34
+ data: ActionLedgerRelayOutboxResponse[];
35
+ pageInfo: {
36
+ nextCursor: {
37
+ createdAt: string;
38
+ id: string;
39
+ } | null;
40
+ };
41
+ }
42
+ export interface ActionApprovalListResponse {
43
+ data: ActionApprovalResponse[];
44
+ pageInfo: {
45
+ nextCursor: {
46
+ createdAt: string;
47
+ id: string;
48
+ } | null;
49
+ };
50
+ }
51
+ export interface ActionApprovalGetResponse {
52
+ data: ActionApprovalDetailResponse;
53
+ }
54
+ export interface ActionApprovalRequestResponse {
55
+ data: {
56
+ requestedAction: ActionLedgerEntryResponse;
57
+ approval: ActionApprovalResponse;
58
+ replayed: boolean;
59
+ };
60
+ }
61
+ export interface ActionApprovalDecisionResponse {
62
+ data: {
63
+ approval: ActionApprovalResponse;
64
+ decisionAction: ActionLedgerEntryResponse;
65
+ };
66
+ }
67
+ export interface ActionLedgerReversalResponse {
68
+ data: {
69
+ originalAction: ActionLedgerEntryResponse;
70
+ reversalAction: ActionLedgerEntryResponse;
71
+ replayed: boolean;
72
+ };
73
+ }
74
+ export interface ActionDelegationListResponse {
75
+ data: ActionDelegationResponse[];
76
+ pageInfo: {
77
+ nextCursor: {
78
+ createdAt: string;
79
+ id: string;
80
+ } | null;
81
+ };
82
+ }
83
+ export interface ActionDelegationGetResponse {
84
+ data: ActionDelegationResponse;
85
+ }
86
+ export type ActionLedgerPayloadResponse = Omit<ActionLedgerPayload, "createdAt" | "expiresAt"> & {
87
+ createdAt: string;
88
+ expiresAt: string | null;
89
+ };
90
+ export type ActionLedgerRelayOutboxResponse = Omit<ActionLedgerRelayOutbox, "createdAt" | "nextRetryAt" | "processedAt"> & {
91
+ createdAt: string;
92
+ nextRetryAt: string | null;
93
+ processedAt: string | null;
94
+ };
95
+ export type ActionApprovalResponse = Omit<ActionApproval, "createdAt" | "decidedAt" | "expiresAt"> & {
96
+ createdAt: string;
97
+ decidedAt: string | null;
98
+ expiresAt: string | null;
99
+ };
100
+ export type ActionApprovalDetailResponse = ActionApprovalResponse & {
101
+ requestedAction: ActionLedgerEntryDetailResponse | null;
102
+ };
103
+ export type ActionDelegationResponse = Omit<ActionDelegation, "createdAt" | "expiresAt"> & {
104
+ createdAt: string;
105
+ expiresAt: string | null;
106
+ };
107
+ declare function serializeActionLedgerEntry(entry: ActionLedgerEntry): ActionLedgerEntryResponse;
108
+ declare function serializeActionApproval(row: ActionApproval): ActionApprovalResponse;
109
+ declare function serializeActionApprovalDetail(result: GetActionApprovalResult): ActionApprovalDetailResponse;
110
+ declare function serializeActionDelegation(row: ActionDelegation): ActionDelegationResponse;
111
+ declare function serializeActionLedgerEntryDetail(result: GetActionLedgerEntryResult): ActionLedgerEntryDetailResponse;
112
+ export declare const actionLedgerAdminRoutes: import("hono/hono-base").HonoBase<Env, {
113
+ "/": {
114
+ $get: {
115
+ input: {};
116
+ output: {
117
+ data: {
118
+ id: string;
119
+ actionName: string;
120
+ actionVersion: string;
121
+ actionKind: "execute" | "reverse" | "update" | "delete" | "read" | "create" | "approve" | "reject" | "compensate" | "duplicate";
122
+ status: "requested" | "awaiting_approval" | "approved" | "denied" | "succeeded" | "failed" | "reversed" | "compensated" | "expired" | "cancelled" | "superseded";
123
+ evaluatedRisk: "low" | "medium" | "high" | "critical";
124
+ actorType: string | null;
125
+ principalType: "user" | "api_key" | "agent" | "workflow" | "system";
126
+ principalId: string;
127
+ principalSubtype: string | null;
128
+ sessionId: string | null;
129
+ apiTokenId: string | null;
130
+ internalRequest: boolean;
131
+ delegatedByPrincipalType: "user" | "api_key" | "agent" | "workflow" | "system" | null;
132
+ delegatedByPrincipalId: string | null;
133
+ delegationId: string | null;
134
+ callerType: string | null;
135
+ organizationId: string | null;
136
+ routeOrToolName: string | null;
137
+ workflowRunId: string | null;
138
+ workflowStepId: string | null;
139
+ correlationId: string | null;
140
+ causationActionId: string | null;
141
+ idempotencyScope: string | null;
142
+ idempotencyKey: string | null;
143
+ idempotencyFingerprint: string | null;
144
+ targetType: string;
145
+ targetId: string;
146
+ capabilityId: string | null;
147
+ capabilityVersion: string | null;
148
+ authorizationSource: string | null;
149
+ approvalId: string | null;
150
+ amendsActionId: string | null;
151
+ occurredAt: string;
152
+ createdAt: string;
153
+ }[];
154
+ pageInfo: {
155
+ nextCursor: {
156
+ occurredAt: string;
157
+ id: string;
158
+ } | null;
159
+ };
160
+ };
161
+ outputFormat: "json";
162
+ status: import("hono/utils/http-status").ContentfulStatusCode;
163
+ };
164
+ };
165
+ } & {
166
+ "/entries": {
167
+ $get: {
168
+ input: {};
169
+ output: {
170
+ data: {
171
+ id: string;
172
+ actionName: string;
173
+ actionVersion: string;
174
+ actionKind: "execute" | "reverse" | "update" | "delete" | "read" | "create" | "approve" | "reject" | "compensate" | "duplicate";
175
+ status: "requested" | "awaiting_approval" | "approved" | "denied" | "succeeded" | "failed" | "reversed" | "compensated" | "expired" | "cancelled" | "superseded";
176
+ evaluatedRisk: "low" | "medium" | "high" | "critical";
177
+ actorType: string | null;
178
+ principalType: "user" | "api_key" | "agent" | "workflow" | "system";
179
+ principalId: string;
180
+ principalSubtype: string | null;
181
+ sessionId: string | null;
182
+ apiTokenId: string | null;
183
+ internalRequest: boolean;
184
+ delegatedByPrincipalType: "user" | "api_key" | "agent" | "workflow" | "system" | null;
185
+ delegatedByPrincipalId: string | null;
186
+ delegationId: string | null;
187
+ callerType: string | null;
188
+ organizationId: string | null;
189
+ routeOrToolName: string | null;
190
+ workflowRunId: string | null;
191
+ workflowStepId: string | null;
192
+ correlationId: string | null;
193
+ causationActionId: string | null;
194
+ idempotencyScope: string | null;
195
+ idempotencyKey: string | null;
196
+ idempotencyFingerprint: string | null;
197
+ targetType: string;
198
+ targetId: string;
199
+ capabilityId: string | null;
200
+ capabilityVersion: string | null;
201
+ authorizationSource: string | null;
202
+ approvalId: string | null;
203
+ amendsActionId: string | null;
204
+ occurredAt: string;
205
+ createdAt: string;
206
+ }[];
207
+ pageInfo: {
208
+ nextCursor: {
209
+ occurredAt: string;
210
+ id: string;
211
+ } | null;
212
+ };
213
+ };
214
+ outputFormat: "json";
215
+ status: import("hono/utils/http-status").ContentfulStatusCode;
216
+ };
217
+ };
218
+ } & {
219
+ "/approvals": {
220
+ $get: {
221
+ input: {};
222
+ output: {
223
+ data: {
224
+ id: string;
225
+ status: "approved" | "denied" | "expired" | "cancelled" | "superseded" | "pending";
226
+ reasonCode: string | null;
227
+ requestedActionId: string;
228
+ requestedByPrincipalId: string;
229
+ assignedToPrincipalId: string | null;
230
+ decidedByPrincipalId: string | null;
231
+ delegatedFromPrincipalId: string | null;
232
+ policyName: string;
233
+ policyVersion: string;
234
+ targetSnapshotRef: string | null;
235
+ riskSnapshot: "low" | "medium" | "high" | "critical";
236
+ createdAt: string;
237
+ decidedAt: string | null;
238
+ expiresAt: string | null;
239
+ }[];
240
+ pageInfo: {
241
+ nextCursor: {
242
+ createdAt: string;
243
+ id: string;
244
+ } | null;
245
+ };
246
+ };
247
+ outputFormat: "json";
248
+ status: import("hono/utils/http-status").ContentfulStatusCode;
249
+ };
250
+ };
251
+ } & {
252
+ "/approvals/request": {
253
+ $post: {
254
+ input: {};
255
+ output: {
256
+ data: {
257
+ requestedAction: {
258
+ id: string;
259
+ actionName: string;
260
+ actionVersion: string;
261
+ actionKind: "execute" | "reverse" | "update" | "delete" | "read" | "create" | "approve" | "reject" | "compensate" | "duplicate";
262
+ status: "requested" | "awaiting_approval" | "approved" | "denied" | "succeeded" | "failed" | "reversed" | "compensated" | "expired" | "cancelled" | "superseded";
263
+ evaluatedRisk: "low" | "medium" | "high" | "critical";
264
+ actorType: string | null;
265
+ principalType: "user" | "api_key" | "agent" | "workflow" | "system";
266
+ principalId: string;
267
+ principalSubtype: string | null;
268
+ sessionId: string | null;
269
+ apiTokenId: string | null;
270
+ internalRequest: boolean;
271
+ delegatedByPrincipalType: "user" | "api_key" | "agent" | "workflow" | "system" | null;
272
+ delegatedByPrincipalId: string | null;
273
+ delegationId: string | null;
274
+ callerType: string | null;
275
+ organizationId: string | null;
276
+ routeOrToolName: string | null;
277
+ workflowRunId: string | null;
278
+ workflowStepId: string | null;
279
+ correlationId: string | null;
280
+ causationActionId: string | null;
281
+ idempotencyScope: string | null;
282
+ idempotencyKey: string | null;
283
+ idempotencyFingerprint: string | null;
284
+ targetType: string;
285
+ targetId: string;
286
+ capabilityId: string | null;
287
+ capabilityVersion: string | null;
288
+ authorizationSource: string | null;
289
+ approvalId: string | null;
290
+ amendsActionId: string | null;
291
+ occurredAt: string;
292
+ createdAt: string;
293
+ };
294
+ approval: {
295
+ id: string;
296
+ status: "approved" | "denied" | "expired" | "cancelled" | "superseded" | "pending";
297
+ reasonCode: string | null;
298
+ requestedActionId: string;
299
+ requestedByPrincipalId: string;
300
+ assignedToPrincipalId: string | null;
301
+ decidedByPrincipalId: string | null;
302
+ delegatedFromPrincipalId: string | null;
303
+ policyName: string;
304
+ policyVersion: string;
305
+ targetSnapshotRef: string | null;
306
+ riskSnapshot: "low" | "medium" | "high" | "critical";
307
+ createdAt: string;
308
+ decidedAt: string | null;
309
+ expiresAt: string | null;
310
+ };
311
+ replayed: boolean;
312
+ };
313
+ };
314
+ outputFormat: "json";
315
+ status: 201;
316
+ };
317
+ };
318
+ } & {
319
+ "/approvals/:id": {
320
+ $get: {
321
+ input: {
322
+ param: {
323
+ id: string;
324
+ };
325
+ };
326
+ output: {
327
+ error: string;
328
+ };
329
+ outputFormat: "json";
330
+ status: 404;
331
+ } | {
332
+ input: {
333
+ param: {
334
+ id: string;
335
+ };
336
+ };
337
+ output: {
338
+ data: {
339
+ id: string;
340
+ status: "approved" | "denied" | "expired" | "cancelled" | "superseded" | "pending";
341
+ reasonCode: string | null;
342
+ requestedActionId: string;
343
+ requestedByPrincipalId: string;
344
+ assignedToPrincipalId: string | null;
345
+ decidedByPrincipalId: string | null;
346
+ delegatedFromPrincipalId: string | null;
347
+ policyName: string;
348
+ policyVersion: string;
349
+ targetSnapshotRef: string | null;
350
+ riskSnapshot: "low" | "medium" | "high" | "critical";
351
+ createdAt: string;
352
+ decidedAt: string | null;
353
+ expiresAt: string | null;
354
+ requestedAction: {
355
+ id: string;
356
+ actionName: string;
357
+ actionVersion: string;
358
+ actionKind: "execute" | "reverse" | "update" | "delete" | "read" | "create" | "approve" | "reject" | "compensate" | "duplicate";
359
+ status: "requested" | "awaiting_approval" | "approved" | "denied" | "succeeded" | "failed" | "reversed" | "compensated" | "expired" | "cancelled" | "superseded";
360
+ evaluatedRisk: "low" | "medium" | "high" | "critical";
361
+ actorType: string | null;
362
+ principalType: "user" | "api_key" | "agent" | "workflow" | "system";
363
+ principalId: string;
364
+ principalSubtype: string | null;
365
+ sessionId: string | null;
366
+ apiTokenId: string | null;
367
+ internalRequest: boolean;
368
+ delegatedByPrincipalType: "user" | "api_key" | "agent" | "workflow" | "system" | null;
369
+ delegatedByPrincipalId: string | null;
370
+ delegationId: string | null;
371
+ callerType: string | null;
372
+ organizationId: string | null;
373
+ routeOrToolName: string | null;
374
+ workflowRunId: string | null;
375
+ workflowStepId: string | null;
376
+ correlationId: string | null;
377
+ causationActionId: string | null;
378
+ idempotencyScope: string | null;
379
+ idempotencyKey: string | null;
380
+ idempotencyFingerprint: string | null;
381
+ targetType: string;
382
+ targetId: string;
383
+ capabilityId: string | null;
384
+ capabilityVersion: string | null;
385
+ authorizationSource: string | null;
386
+ approvalId: string | null;
387
+ amendsActionId: string | null;
388
+ occurredAt: string;
389
+ createdAt: string;
390
+ mutationDetail: {
391
+ actionId: string;
392
+ commandInputRef: string | null;
393
+ commandResultRef: string | null;
394
+ summary: string | null;
395
+ reversalKind: "compensate" | "none" | "revert" | "domain_command";
396
+ reversalCommandId: string | null;
397
+ reversalCommandVersion: string | null;
398
+ reversalArgsRef: string | null;
399
+ reversalStateProjection: "requested" | "failed" | "expired" | "not_reversible" | "available" | "running" | "completed" | null;
400
+ reversalOutcomeProjection: "full" | "partial" | "failed" | null;
401
+ reversesActionId: string | null;
402
+ reversedByActionIdProjection: string | null;
403
+ } | null;
404
+ sensitiveReadDetail: {
405
+ actionId: string;
406
+ reasonCode: string | null;
407
+ disclosedFieldSet: string[] | null;
408
+ disclosureSummary: string | null;
409
+ decisionPolicy: string | null;
410
+ } | null;
411
+ payloads: {
412
+ id: string;
413
+ actionId: string;
414
+ payloadKind: string;
415
+ schemaTag: string;
416
+ redactionStatus: "none" | "redacted" | "tombstoned" | "crypto_shredded";
417
+ retentionPolicy: string;
418
+ storageRef: string;
419
+ hash: string | null;
420
+ createdAt: string;
421
+ expiresAt: string | null;
422
+ }[];
423
+ relayOutbox: {
424
+ id: string;
425
+ organizationId: string | null;
426
+ actionId: string;
427
+ relayStatus: "succeeded" | "failed" | "pending" | "processing" | "dead_letter";
428
+ payloadRef: string | null;
429
+ attemptCount: number;
430
+ lastError: string | null;
431
+ createdAt: string;
432
+ nextRetryAt: string | null;
433
+ processedAt: string | null;
434
+ }[];
435
+ } | null;
436
+ };
437
+ };
438
+ outputFormat: "json";
439
+ status: import("hono/utils/http-status").ContentfulStatusCode;
440
+ };
441
+ };
442
+ } & {
443
+ "/approvals/:id/decide": {
444
+ $post: {
445
+ input: {
446
+ param: {
447
+ id: string;
448
+ };
449
+ };
450
+ output: {
451
+ error: string;
452
+ };
453
+ outputFormat: "json";
454
+ status: 404;
455
+ } | {
456
+ input: {
457
+ param: {
458
+ id: string;
459
+ };
460
+ };
461
+ output: {
462
+ data: {
463
+ approval: {
464
+ id: string;
465
+ status: "approved" | "denied" | "expired" | "cancelled" | "superseded" | "pending";
466
+ reasonCode: string | null;
467
+ requestedActionId: string;
468
+ requestedByPrincipalId: string;
469
+ assignedToPrincipalId: string | null;
470
+ decidedByPrincipalId: string | null;
471
+ delegatedFromPrincipalId: string | null;
472
+ policyName: string;
473
+ policyVersion: string;
474
+ targetSnapshotRef: string | null;
475
+ riskSnapshot: "low" | "medium" | "high" | "critical";
476
+ createdAt: string;
477
+ decidedAt: string | null;
478
+ expiresAt: string | null;
479
+ };
480
+ decisionAction: {
481
+ id: string;
482
+ actionName: string;
483
+ actionVersion: string;
484
+ actionKind: "execute" | "reverse" | "update" | "delete" | "read" | "create" | "approve" | "reject" | "compensate" | "duplicate";
485
+ status: "requested" | "awaiting_approval" | "approved" | "denied" | "succeeded" | "failed" | "reversed" | "compensated" | "expired" | "cancelled" | "superseded";
486
+ evaluatedRisk: "low" | "medium" | "high" | "critical";
487
+ actorType: string | null;
488
+ principalType: "user" | "api_key" | "agent" | "workflow" | "system";
489
+ principalId: string;
490
+ principalSubtype: string | null;
491
+ sessionId: string | null;
492
+ apiTokenId: string | null;
493
+ internalRequest: boolean;
494
+ delegatedByPrincipalType: "user" | "api_key" | "agent" | "workflow" | "system" | null;
495
+ delegatedByPrincipalId: string | null;
496
+ delegationId: string | null;
497
+ callerType: string | null;
498
+ organizationId: string | null;
499
+ routeOrToolName: string | null;
500
+ workflowRunId: string | null;
501
+ workflowStepId: string | null;
502
+ correlationId: string | null;
503
+ causationActionId: string | null;
504
+ idempotencyScope: string | null;
505
+ idempotencyKey: string | null;
506
+ idempotencyFingerprint: string | null;
507
+ targetType: string;
508
+ targetId: string;
509
+ capabilityId: string | null;
510
+ capabilityVersion: string | null;
511
+ authorizationSource: string | null;
512
+ approvalId: string | null;
513
+ amendsActionId: string | null;
514
+ occurredAt: string;
515
+ createdAt: string;
516
+ };
517
+ };
518
+ };
519
+ outputFormat: "json";
520
+ status: import("hono/utils/http-status").ContentfulStatusCode;
521
+ } | {
522
+ input: {
523
+ param: {
524
+ id: string;
525
+ };
526
+ };
527
+ output: {
528
+ error: string;
529
+ approvalId: string;
530
+ currentStatus: "approved" | "denied" | "expired" | "cancelled" | "superseded" | "pending";
531
+ };
532
+ outputFormat: "json";
533
+ status: 409;
534
+ };
535
+ };
536
+ } & {
537
+ "/delegations": {
538
+ $get: {
539
+ input: {};
540
+ output: {
541
+ data: {
542
+ id: string;
543
+ rootPrincipalType: "user" | "api_key" | "agent" | "workflow" | "system";
544
+ rootPrincipalId: string;
545
+ parentPrincipalType: "user" | "api_key" | "agent" | "workflow" | "system";
546
+ parentPrincipalId: string;
547
+ childPrincipalType: "user" | "api_key" | "agent" | "workflow" | "system";
548
+ childPrincipalId: string;
549
+ grantSource: string;
550
+ capabilityScopeRef: string | null;
551
+ budgetScopeRef: string | null;
552
+ createdAt: string;
553
+ expiresAt: string | null;
554
+ }[];
555
+ pageInfo: {
556
+ nextCursor: {
557
+ createdAt: string;
558
+ id: string;
559
+ } | null;
560
+ };
561
+ };
562
+ outputFormat: "json";
563
+ status: import("hono/utils/http-status").ContentfulStatusCode;
564
+ };
565
+ };
566
+ } & {
567
+ "/delegations/:id": {
568
+ $get: {
569
+ input: {
570
+ param: {
571
+ id: string;
572
+ };
573
+ };
574
+ output: {
575
+ error: string;
576
+ };
577
+ outputFormat: "json";
578
+ status: 404;
579
+ } | {
580
+ input: {
581
+ param: {
582
+ id: string;
583
+ };
584
+ };
585
+ output: {
586
+ data: {
587
+ id: string;
588
+ rootPrincipalType: "user" | "api_key" | "agent" | "workflow" | "system";
589
+ rootPrincipalId: string;
590
+ parentPrincipalType: "user" | "api_key" | "agent" | "workflow" | "system";
591
+ parentPrincipalId: string;
592
+ childPrincipalType: "user" | "api_key" | "agent" | "workflow" | "system";
593
+ childPrincipalId: string;
594
+ grantSource: string;
595
+ capabilityScopeRef: string | null;
596
+ budgetScopeRef: string | null;
597
+ createdAt: string;
598
+ expiresAt: string | null;
599
+ };
600
+ };
601
+ outputFormat: "json";
602
+ status: import("hono/utils/http-status").ContentfulStatusCode;
603
+ };
604
+ };
605
+ } & {
606
+ "/relay-outbox": {
607
+ $get: {
608
+ input: {};
609
+ output: {
610
+ data: {
611
+ id: string;
612
+ organizationId: string | null;
613
+ actionId: string;
614
+ relayStatus: "succeeded" | "failed" | "pending" | "processing" | "dead_letter";
615
+ payloadRef: string | null;
616
+ attemptCount: number;
617
+ lastError: string | null;
618
+ createdAt: string;
619
+ nextRetryAt: string | null;
620
+ processedAt: string | null;
621
+ }[];
622
+ pageInfo: {
623
+ nextCursor: {
624
+ createdAt: string;
625
+ id: string;
626
+ } | null;
627
+ };
628
+ };
629
+ outputFormat: "json";
630
+ status: import("hono/utils/http-status").ContentfulStatusCode;
631
+ };
632
+ };
633
+ } & {
634
+ "/entries/:id/reversals": {
635
+ $post: {
636
+ input: {
637
+ param: {
638
+ id: string;
639
+ };
640
+ };
641
+ output: {
642
+ error: string;
643
+ };
644
+ outputFormat: "json";
645
+ status: 404;
646
+ } | {
647
+ input: {
648
+ param: {
649
+ id: string;
650
+ };
651
+ };
652
+ output: {
653
+ data: {
654
+ originalAction: {
655
+ id: string;
656
+ actionName: string;
657
+ actionVersion: string;
658
+ actionKind: "execute" | "reverse" | "update" | "delete" | "read" | "create" | "approve" | "reject" | "compensate" | "duplicate";
659
+ status: "requested" | "awaiting_approval" | "approved" | "denied" | "succeeded" | "failed" | "reversed" | "compensated" | "expired" | "cancelled" | "superseded";
660
+ evaluatedRisk: "low" | "medium" | "high" | "critical";
661
+ actorType: string | null;
662
+ principalType: "user" | "api_key" | "agent" | "workflow" | "system";
663
+ principalId: string;
664
+ principalSubtype: string | null;
665
+ sessionId: string | null;
666
+ apiTokenId: string | null;
667
+ internalRequest: boolean;
668
+ delegatedByPrincipalType: "user" | "api_key" | "agent" | "workflow" | "system" | null;
669
+ delegatedByPrincipalId: string | null;
670
+ delegationId: string | null;
671
+ callerType: string | null;
672
+ organizationId: string | null;
673
+ routeOrToolName: string | null;
674
+ workflowRunId: string | null;
675
+ workflowStepId: string | null;
676
+ correlationId: string | null;
677
+ causationActionId: string | null;
678
+ idempotencyScope: string | null;
679
+ idempotencyKey: string | null;
680
+ idempotencyFingerprint: string | null;
681
+ targetType: string;
682
+ targetId: string;
683
+ capabilityId: string | null;
684
+ capabilityVersion: string | null;
685
+ authorizationSource: string | null;
686
+ approvalId: string | null;
687
+ amendsActionId: string | null;
688
+ occurredAt: string;
689
+ createdAt: string;
690
+ };
691
+ reversalAction: {
692
+ id: string;
693
+ actionName: string;
694
+ actionVersion: string;
695
+ actionKind: "execute" | "reverse" | "update" | "delete" | "read" | "create" | "approve" | "reject" | "compensate" | "duplicate";
696
+ status: "requested" | "awaiting_approval" | "approved" | "denied" | "succeeded" | "failed" | "reversed" | "compensated" | "expired" | "cancelled" | "superseded";
697
+ evaluatedRisk: "low" | "medium" | "high" | "critical";
698
+ actorType: string | null;
699
+ principalType: "user" | "api_key" | "agent" | "workflow" | "system";
700
+ principalId: string;
701
+ principalSubtype: string | null;
702
+ sessionId: string | null;
703
+ apiTokenId: string | null;
704
+ internalRequest: boolean;
705
+ delegatedByPrincipalType: "user" | "api_key" | "agent" | "workflow" | "system" | null;
706
+ delegatedByPrincipalId: string | null;
707
+ delegationId: string | null;
708
+ callerType: string | null;
709
+ organizationId: string | null;
710
+ routeOrToolName: string | null;
711
+ workflowRunId: string | null;
712
+ workflowStepId: string | null;
713
+ correlationId: string | null;
714
+ causationActionId: string | null;
715
+ idempotencyScope: string | null;
716
+ idempotencyKey: string | null;
717
+ idempotencyFingerprint: string | null;
718
+ targetType: string;
719
+ targetId: string;
720
+ capabilityId: string | null;
721
+ capabilityVersion: string | null;
722
+ authorizationSource: string | null;
723
+ approvalId: string | null;
724
+ amendsActionId: string | null;
725
+ occurredAt: string;
726
+ createdAt: string;
727
+ };
728
+ replayed: boolean;
729
+ };
730
+ };
731
+ outputFormat: "json";
732
+ status: import("hono/utils/http-status").ContentfulStatusCode;
733
+ } | {
734
+ input: {
735
+ param: {
736
+ id: string;
737
+ };
738
+ };
739
+ output: {
740
+ error: string;
741
+ reason: "not_reversible" | "missing_mutation_detail";
742
+ };
743
+ outputFormat: "json";
744
+ status: 409;
745
+ };
746
+ };
747
+ } & {
748
+ "/entries/:id": {
749
+ $get: {
750
+ input: {
751
+ param: {
752
+ id: string;
753
+ };
754
+ };
755
+ output: {
756
+ error: string;
757
+ };
758
+ outputFormat: "json";
759
+ status: 404;
760
+ } | {
761
+ input: {
762
+ param: {
763
+ id: string;
764
+ };
765
+ };
766
+ output: {
767
+ data: {
768
+ id: string;
769
+ actionName: string;
770
+ actionVersion: string;
771
+ actionKind: "execute" | "reverse" | "update" | "delete" | "read" | "create" | "approve" | "reject" | "compensate" | "duplicate";
772
+ status: "requested" | "awaiting_approval" | "approved" | "denied" | "succeeded" | "failed" | "reversed" | "compensated" | "expired" | "cancelled" | "superseded";
773
+ evaluatedRisk: "low" | "medium" | "high" | "critical";
774
+ actorType: string | null;
775
+ principalType: "user" | "api_key" | "agent" | "workflow" | "system";
776
+ principalId: string;
777
+ principalSubtype: string | null;
778
+ sessionId: string | null;
779
+ apiTokenId: string | null;
780
+ internalRequest: boolean;
781
+ delegatedByPrincipalType: "user" | "api_key" | "agent" | "workflow" | "system" | null;
782
+ delegatedByPrincipalId: string | null;
783
+ delegationId: string | null;
784
+ callerType: string | null;
785
+ organizationId: string | null;
786
+ routeOrToolName: string | null;
787
+ workflowRunId: string | null;
788
+ workflowStepId: string | null;
789
+ correlationId: string | null;
790
+ causationActionId: string | null;
791
+ idempotencyScope: string | null;
792
+ idempotencyKey: string | null;
793
+ idempotencyFingerprint: string | null;
794
+ targetType: string;
795
+ targetId: string;
796
+ capabilityId: string | null;
797
+ capabilityVersion: string | null;
798
+ authorizationSource: string | null;
799
+ approvalId: string | null;
800
+ amendsActionId: string | null;
801
+ occurredAt: string;
802
+ createdAt: string;
803
+ mutationDetail: {
804
+ actionId: string;
805
+ commandInputRef: string | null;
806
+ commandResultRef: string | null;
807
+ summary: string | null;
808
+ reversalKind: "compensate" | "none" | "revert" | "domain_command";
809
+ reversalCommandId: string | null;
810
+ reversalCommandVersion: string | null;
811
+ reversalArgsRef: string | null;
812
+ reversalStateProjection: "requested" | "failed" | "expired" | "not_reversible" | "available" | "running" | "completed" | null;
813
+ reversalOutcomeProjection: "full" | "partial" | "failed" | null;
814
+ reversesActionId: string | null;
815
+ reversedByActionIdProjection: string | null;
816
+ } | null;
817
+ sensitiveReadDetail: {
818
+ actionId: string;
819
+ reasonCode: string | null;
820
+ disclosedFieldSet: string[] | null;
821
+ disclosureSummary: string | null;
822
+ decisionPolicy: string | null;
823
+ } | null;
824
+ payloads: {
825
+ id: string;
826
+ actionId: string;
827
+ payloadKind: string;
828
+ schemaTag: string;
829
+ redactionStatus: "none" | "redacted" | "tombstoned" | "crypto_shredded";
830
+ retentionPolicy: string;
831
+ storageRef: string;
832
+ hash: string | null;
833
+ createdAt: string;
834
+ expiresAt: string | null;
835
+ }[];
836
+ relayOutbox: {
837
+ id: string;
838
+ organizationId: string | null;
839
+ actionId: string;
840
+ relayStatus: "succeeded" | "failed" | "pending" | "processing" | "dead_letter";
841
+ payloadRef: string | null;
842
+ attemptCount: number;
843
+ lastError: string | null;
844
+ createdAt: string;
845
+ nextRetryAt: string | null;
846
+ processedAt: string | null;
847
+ }[];
848
+ };
849
+ };
850
+ outputFormat: "json";
851
+ status: import("hono/utils/http-status").ContentfulStatusCode;
852
+ };
853
+ };
854
+ }, "/", "/entries/:id">;
855
+ export type ActionLedgerAdminRoutes = typeof actionLedgerAdminRoutes;
856
+ export declare const actionLedgerModule: Module;
857
+ export declare const actionLedgerHonoModule: HonoModule;
858
+ export declare const __test__: {
859
+ actionLedgerEntryListQuerySchema: import("zod").ZodPipe<import("zod").ZodObject<{
860
+ actionName: import("zod").ZodOptional<import("zod").ZodString>;
861
+ actionKind: import("zod").ZodOptional<import("zod").ZodEnum<{
862
+ execute: "execute";
863
+ reverse: "reverse";
864
+ update: "update";
865
+ delete: "delete";
866
+ read: "read";
867
+ create: "create";
868
+ approve: "approve";
869
+ reject: "reject";
870
+ compensate: "compensate";
871
+ duplicate: "duplicate";
872
+ }>>;
873
+ actorType: import("zod").ZodOptional<import("zod").ZodString>;
874
+ principalType: import("zod").ZodOptional<import("zod").ZodEnum<{
875
+ user: "user";
876
+ api_key: "api_key";
877
+ agent: "agent";
878
+ workflow: "workflow";
879
+ system: "system";
880
+ }>>;
881
+ principalId: import("zod").ZodOptional<import("zod").ZodString>;
882
+ apiTokenId: import("zod").ZodOptional<import("zod").ZodString>;
883
+ sessionId: import("zod").ZodOptional<import("zod").ZodString>;
884
+ callerType: import("zod").ZodOptional<import("zod").ZodString>;
885
+ organizationId: import("zod").ZodOptional<import("zod").ZodString>;
886
+ targetType: import("zod").ZodOptional<import("zod").ZodString>;
887
+ targetId: import("zod").ZodOptional<import("zod").ZodString>;
888
+ targetIds: import("zod").ZodPipe<import("zod").ZodTransform<unknown, unknown>, import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>>;
889
+ routeOrToolName: import("zod").ZodOptional<import("zod").ZodString>;
890
+ workflowRunId: import("zod").ZodOptional<import("zod").ZodString>;
891
+ workflowStepId: import("zod").ZodOptional<import("zod").ZodString>;
892
+ correlationId: import("zod").ZodOptional<import("zod").ZodString>;
893
+ causationActionId: import("zod").ZodOptional<import("zod").ZodString>;
894
+ capabilityId: import("zod").ZodOptional<import("zod").ZodString>;
895
+ capabilityVersion: import("zod").ZodOptional<import("zod").ZodString>;
896
+ authorizationSource: import("zod").ZodOptional<import("zod").ZodString>;
897
+ approvalId: import("zod").ZodOptional<import("zod").ZodString>;
898
+ amendsActionId: import("zod").ZodOptional<import("zod").ZodString>;
899
+ idempotencyScope: import("zod").ZodOptional<import("zod").ZodString>;
900
+ idempotencyKey: import("zod").ZodOptional<import("zod").ZodString>;
901
+ evaluatedRisk: import("zod").ZodPipe<import("zod").ZodTransform<unknown, unknown>, import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodEnum<{
902
+ low: "low";
903
+ medium: "medium";
904
+ high: "high";
905
+ critical: "critical";
906
+ }>>>>;
907
+ status: import("zod").ZodPipe<import("zod").ZodTransform<unknown, unknown>, import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodEnum<{
908
+ requested: "requested";
909
+ awaiting_approval: "awaiting_approval";
910
+ approved: "approved";
911
+ denied: "denied";
912
+ succeeded: "succeeded";
913
+ failed: "failed";
914
+ reversed: "reversed";
915
+ compensated: "compensated";
916
+ expired: "expired";
917
+ cancelled: "cancelled";
918
+ superseded: "superseded";
919
+ }>>>>;
920
+ reversalKind: import("zod").ZodPipe<import("zod").ZodTransform<unknown, unknown>, import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodEnum<{
921
+ compensate: "compensate";
922
+ none: "none";
923
+ revert: "revert";
924
+ domain_command: "domain_command";
925
+ }>>>>;
926
+ reversalState: import("zod").ZodPipe<import("zod").ZodTransform<unknown, unknown>, import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodEnum<{
927
+ requested: "requested";
928
+ failed: "failed";
929
+ expired: "expired";
930
+ not_reversible: "not_reversible";
931
+ available: "available";
932
+ running: "running";
933
+ completed: "completed";
934
+ }>>>>;
935
+ reversalOutcome: import("zod").ZodPipe<import("zod").ZodTransform<unknown, unknown>, import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodEnum<{
936
+ full: "full";
937
+ partial: "partial";
938
+ failed: "failed";
939
+ }>>>>;
940
+ reversesActionId: import("zod").ZodOptional<import("zod").ZodString>;
941
+ reversedByActionId: import("zod").ZodOptional<import("zod").ZodString>;
942
+ sensitiveReasonCode: import("zod").ZodOptional<import("zod").ZodString>;
943
+ decisionPolicy: import("zod").ZodOptional<import("zod").ZodString>;
944
+ occurredAtFrom: import("zod").ZodOptional<import("zod").ZodString>;
945
+ occurredAtTo: import("zod").ZodOptional<import("zod").ZodString>;
946
+ cursorOccurredAt: import("zod").ZodOptional<import("zod").ZodString>;
947
+ cursorId: import("zod").ZodOptional<import("zod").ZodString>;
948
+ limit: import("zod").ZodOptional<import("zod").ZodCoercedNumber<unknown>>;
949
+ }, import("zod/v4/core").$strip>, import("zod").ZodTransform<{
950
+ occurredAtFrom: Date | undefined;
951
+ occurredAtTo: Date | undefined;
952
+ cursor: {
953
+ occurredAt: string;
954
+ id: string;
955
+ } | undefined;
956
+ actionName?: string | undefined;
957
+ actionKind?: "execute" | "reverse" | "update" | "delete" | "read" | "create" | "approve" | "reject" | "compensate" | "duplicate" | undefined;
958
+ actorType?: string | undefined;
959
+ principalType?: "user" | "api_key" | "agent" | "workflow" | "system" | undefined;
960
+ principalId?: string | undefined;
961
+ apiTokenId?: string | undefined;
962
+ sessionId?: string | undefined;
963
+ callerType?: string | undefined;
964
+ organizationId?: string | undefined;
965
+ targetType?: string | undefined;
966
+ targetId?: string | undefined;
967
+ targetIds?: string[] | undefined;
968
+ routeOrToolName?: string | undefined;
969
+ workflowRunId?: string | undefined;
970
+ workflowStepId?: string | undefined;
971
+ correlationId?: string | undefined;
972
+ causationActionId?: string | undefined;
973
+ capabilityId?: string | undefined;
974
+ capabilityVersion?: string | undefined;
975
+ authorizationSource?: string | undefined;
976
+ approvalId?: string | undefined;
977
+ amendsActionId?: string | undefined;
978
+ idempotencyScope?: string | undefined;
979
+ idempotencyKey?: string | undefined;
980
+ evaluatedRisk?: ("low" | "medium" | "high" | "critical")[] | undefined;
981
+ status?: ("requested" | "awaiting_approval" | "approved" | "denied" | "succeeded" | "failed" | "reversed" | "compensated" | "expired" | "cancelled" | "superseded")[] | undefined;
982
+ reversalKind?: ("compensate" | "none" | "revert" | "domain_command")[] | undefined;
983
+ reversalState?: ("requested" | "failed" | "expired" | "not_reversible" | "available" | "running" | "completed")[] | undefined;
984
+ reversalOutcome?: ("full" | "partial" | "failed")[] | undefined;
985
+ reversesActionId?: string | undefined;
986
+ reversedByActionId?: string | undefined;
987
+ sensitiveReasonCode?: string | undefined;
988
+ decisionPolicy?: string | undefined;
989
+ limit?: number | undefined;
990
+ }, {
991
+ actionName?: string | undefined;
992
+ actionKind?: "execute" | "reverse" | "update" | "delete" | "read" | "create" | "approve" | "reject" | "compensate" | "duplicate" | undefined;
993
+ actorType?: string | undefined;
994
+ principalType?: "user" | "api_key" | "agent" | "workflow" | "system" | undefined;
995
+ principalId?: string | undefined;
996
+ apiTokenId?: string | undefined;
997
+ sessionId?: string | undefined;
998
+ callerType?: string | undefined;
999
+ organizationId?: string | undefined;
1000
+ targetType?: string | undefined;
1001
+ targetId?: string | undefined;
1002
+ targetIds?: string[] | undefined;
1003
+ routeOrToolName?: string | undefined;
1004
+ workflowRunId?: string | undefined;
1005
+ workflowStepId?: string | undefined;
1006
+ correlationId?: string | undefined;
1007
+ causationActionId?: string | undefined;
1008
+ capabilityId?: string | undefined;
1009
+ capabilityVersion?: string | undefined;
1010
+ authorizationSource?: string | undefined;
1011
+ approvalId?: string | undefined;
1012
+ amendsActionId?: string | undefined;
1013
+ idempotencyScope?: string | undefined;
1014
+ idempotencyKey?: string | undefined;
1015
+ evaluatedRisk?: ("low" | "medium" | "high" | "critical")[] | undefined;
1016
+ status?: ("requested" | "awaiting_approval" | "approved" | "denied" | "succeeded" | "failed" | "reversed" | "compensated" | "expired" | "cancelled" | "superseded")[] | undefined;
1017
+ reversalKind?: ("compensate" | "none" | "revert" | "domain_command")[] | undefined;
1018
+ reversalState?: ("requested" | "failed" | "expired" | "not_reversible" | "available" | "running" | "completed")[] | undefined;
1019
+ reversalOutcome?: ("full" | "partial" | "failed")[] | undefined;
1020
+ reversesActionId?: string | undefined;
1021
+ reversedByActionId?: string | undefined;
1022
+ sensitiveReasonCode?: string | undefined;
1023
+ decisionPolicy?: string | undefined;
1024
+ occurredAtFrom?: string | undefined;
1025
+ occurredAtTo?: string | undefined;
1026
+ cursorOccurredAt?: string | undefined;
1027
+ cursorId?: string | undefined;
1028
+ limit?: number | undefined;
1029
+ }>>;
1030
+ actionApprovalListQuerySchema: import("zod").ZodPipe<import("zod").ZodObject<{
1031
+ requestedActionId: import("zod").ZodOptional<import("zod").ZodString>;
1032
+ status: import("zod").ZodPipe<import("zod").ZodTransform<unknown, unknown>, import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodEnum<{
1033
+ approved: "approved";
1034
+ denied: "denied";
1035
+ expired: "expired";
1036
+ cancelled: "cancelled";
1037
+ superseded: "superseded";
1038
+ pending: "pending";
1039
+ }>>>>;
1040
+ requestedByPrincipalId: import("zod").ZodOptional<import("zod").ZodString>;
1041
+ assignedToPrincipalId: import("zod").ZodOptional<import("zod").ZodString>;
1042
+ decidedByPrincipalId: import("zod").ZodOptional<import("zod").ZodString>;
1043
+ delegatedFromPrincipalId: import("zod").ZodOptional<import("zod").ZodString>;
1044
+ policyName: import("zod").ZodOptional<import("zod").ZodString>;
1045
+ policyVersion: import("zod").ZodOptional<import("zod").ZodString>;
1046
+ riskSnapshot: import("zod").ZodPipe<import("zod").ZodTransform<unknown, unknown>, import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodEnum<{
1047
+ low: "low";
1048
+ medium: "medium";
1049
+ high: "high";
1050
+ critical: "critical";
1051
+ }>>>>;
1052
+ reasonCode: import("zod").ZodOptional<import("zod").ZodString>;
1053
+ expiresAtFrom: import("zod").ZodOptional<import("zod").ZodString>;
1054
+ expiresAtTo: import("zod").ZodOptional<import("zod").ZodString>;
1055
+ decidedAtFrom: import("zod").ZodOptional<import("zod").ZodString>;
1056
+ decidedAtTo: import("zod").ZodOptional<import("zod").ZodString>;
1057
+ createdAtFrom: import("zod").ZodOptional<import("zod").ZodString>;
1058
+ createdAtTo: import("zod").ZodOptional<import("zod").ZodString>;
1059
+ cursorCreatedAt: import("zod").ZodOptional<import("zod").ZodString>;
1060
+ cursorId: import("zod").ZodOptional<import("zod").ZodString>;
1061
+ limit: import("zod").ZodOptional<import("zod").ZodCoercedNumber<unknown>>;
1062
+ }, import("zod/v4/core").$strip>, import("zod").ZodTransform<{
1063
+ expiresAtFrom: Date | undefined;
1064
+ expiresAtTo: Date | undefined;
1065
+ decidedAtFrom: Date | undefined;
1066
+ decidedAtTo: Date | undefined;
1067
+ createdAtFrom: Date | undefined;
1068
+ createdAtTo: Date | undefined;
1069
+ cursor: {
1070
+ createdAt: string;
1071
+ id: string;
1072
+ } | undefined;
1073
+ requestedActionId?: string | undefined;
1074
+ status?: ("approved" | "denied" | "expired" | "cancelled" | "superseded" | "pending")[] | undefined;
1075
+ requestedByPrincipalId?: string | undefined;
1076
+ assignedToPrincipalId?: string | undefined;
1077
+ decidedByPrincipalId?: string | undefined;
1078
+ delegatedFromPrincipalId?: string | undefined;
1079
+ policyName?: string | undefined;
1080
+ policyVersion?: string | undefined;
1081
+ riskSnapshot?: ("low" | "medium" | "high" | "critical")[] | undefined;
1082
+ reasonCode?: string | undefined;
1083
+ limit?: number | undefined;
1084
+ }, {
1085
+ requestedActionId?: string | undefined;
1086
+ status?: ("approved" | "denied" | "expired" | "cancelled" | "superseded" | "pending")[] | undefined;
1087
+ requestedByPrincipalId?: string | undefined;
1088
+ assignedToPrincipalId?: string | undefined;
1089
+ decidedByPrincipalId?: string | undefined;
1090
+ delegatedFromPrincipalId?: string | undefined;
1091
+ policyName?: string | undefined;
1092
+ policyVersion?: string | undefined;
1093
+ riskSnapshot?: ("low" | "medium" | "high" | "critical")[] | undefined;
1094
+ reasonCode?: string | undefined;
1095
+ expiresAtFrom?: string | undefined;
1096
+ expiresAtTo?: string | undefined;
1097
+ decidedAtFrom?: string | undefined;
1098
+ decidedAtTo?: string | undefined;
1099
+ createdAtFrom?: string | undefined;
1100
+ createdAtTo?: string | undefined;
1101
+ cursorCreatedAt?: string | undefined;
1102
+ cursorId?: string | undefined;
1103
+ limit?: number | undefined;
1104
+ }>>;
1105
+ decideActionApprovalBodySchema: import("zod").ZodPipe<import("zod").ZodObject<{
1106
+ status: import("zod").ZodEnum<{
1107
+ approved: "approved";
1108
+ denied: "denied";
1109
+ expired: "expired";
1110
+ cancelled: "cancelled";
1111
+ superseded: "superseded";
1112
+ }>;
1113
+ decidedByPrincipalId: import("zod").ZodString;
1114
+ decidedAt: import("zod").ZodOptional<import("zod").ZodString>;
1115
+ decisionAction: import("zod").ZodObject<{
1116
+ actionName: import("zod").ZodString;
1117
+ actionVersion: import("zod").ZodDefault<import("zod").ZodString>;
1118
+ actorType: import("zod").ZodPipe<import("zod").ZodOptional<import("zod").ZodString>, import("zod").ZodTransform<string | null, string | undefined>>;
1119
+ principalType: import("zod").ZodEnum<{
1120
+ user: "user";
1121
+ api_key: "api_key";
1122
+ agent: "agent";
1123
+ workflow: "workflow";
1124
+ system: "system";
1125
+ }>;
1126
+ principalId: import("zod").ZodString;
1127
+ principalSubtype: import("zod").ZodPipe<import("zod").ZodOptional<import("zod").ZodString>, import("zod").ZodTransform<string | null, string | undefined>>;
1128
+ sessionId: import("zod").ZodPipe<import("zod").ZodOptional<import("zod").ZodString>, import("zod").ZodTransform<string | null, string | undefined>>;
1129
+ apiTokenId: import("zod").ZodPipe<import("zod").ZodOptional<import("zod").ZodString>, import("zod").ZodTransform<string | null, string | undefined>>;
1130
+ internalRequest: import("zod").ZodDefault<import("zod").ZodBoolean>;
1131
+ delegatedByPrincipalType: import("zod").ZodOptional<import("zod").ZodEnum<{
1132
+ user: "user";
1133
+ api_key: "api_key";
1134
+ agent: "agent";
1135
+ workflow: "workflow";
1136
+ system: "system";
1137
+ }>>;
1138
+ delegatedByPrincipalId: import("zod").ZodPipe<import("zod").ZodOptional<import("zod").ZodString>, import("zod").ZodTransform<string | null, string | undefined>>;
1139
+ delegationId: import("zod").ZodPipe<import("zod").ZodOptional<import("zod").ZodString>, import("zod").ZodTransform<string | null, string | undefined>>;
1140
+ callerType: import("zod").ZodPipe<import("zod").ZodOptional<import("zod").ZodString>, import("zod").ZodTransform<string | null, string | undefined>>;
1141
+ organizationId: import("zod").ZodPipe<import("zod").ZodOptional<import("zod").ZodString>, import("zod").ZodTransform<string | null, string | undefined>>;
1142
+ routeOrToolName: import("zod").ZodPipe<import("zod").ZodOptional<import("zod").ZodString>, import("zod").ZodTransform<string | null, string | undefined>>;
1143
+ workflowRunId: import("zod").ZodPipe<import("zod").ZodOptional<import("zod").ZodString>, import("zod").ZodTransform<string | null, string | undefined>>;
1144
+ workflowStepId: import("zod").ZodPipe<import("zod").ZodOptional<import("zod").ZodString>, import("zod").ZodTransform<string | null, string | undefined>>;
1145
+ correlationId: import("zod").ZodPipe<import("zod").ZodOptional<import("zod").ZodString>, import("zod").ZodTransform<string | null, string | undefined>>;
1146
+ idempotencyScope: import("zod").ZodPipe<import("zod").ZodOptional<import("zod").ZodString>, import("zod").ZodTransform<string | null, string | undefined>>;
1147
+ idempotencyKey: import("zod").ZodPipe<import("zod").ZodOptional<import("zod").ZodString>, import("zod").ZodTransform<string | null, string | undefined>>;
1148
+ idempotencyFingerprint: import("zod").ZodPipe<import("zod").ZodOptional<import("zod").ZodString>, import("zod").ZodTransform<string | null, string | undefined>>;
1149
+ capabilityId: import("zod").ZodPipe<import("zod").ZodOptional<import("zod").ZodString>, import("zod").ZodTransform<string | null, string | undefined>>;
1150
+ capabilityVersion: import("zod").ZodPipe<import("zod").ZodOptional<import("zod").ZodString>, import("zod").ZodTransform<string | null, string | undefined>>;
1151
+ authorizationSource: import("zod").ZodPipe<import("zod").ZodOptional<import("zod").ZodString>, import("zod").ZodTransform<string | null, string | undefined>>;
1152
+ amendsActionId: import("zod").ZodPipe<import("zod").ZodOptional<import("zod").ZodString>, import("zod").ZodTransform<string | null, string | undefined>>;
1153
+ }, import("zod/v4/core").$strip>;
1154
+ }, import("zod/v4/core").$strip>, import("zod").ZodTransform<{
1155
+ decidedAt: Date | undefined;
1156
+ status: "approved" | "denied" | "expired" | "cancelled" | "superseded";
1157
+ decidedByPrincipalId: string;
1158
+ decisionAction: {
1159
+ actionName: string;
1160
+ actionVersion: string;
1161
+ actorType: string | null;
1162
+ principalType: "user" | "api_key" | "agent" | "workflow" | "system";
1163
+ principalId: string;
1164
+ principalSubtype: string | null;
1165
+ sessionId: string | null;
1166
+ apiTokenId: string | null;
1167
+ internalRequest: boolean;
1168
+ delegatedByPrincipalId: string | null;
1169
+ delegationId: string | null;
1170
+ callerType: string | null;
1171
+ organizationId: string | null;
1172
+ routeOrToolName: string | null;
1173
+ workflowRunId: string | null;
1174
+ workflowStepId: string | null;
1175
+ correlationId: string | null;
1176
+ idempotencyScope: string | null;
1177
+ idempotencyKey: string | null;
1178
+ idempotencyFingerprint: string | null;
1179
+ capabilityId: string | null;
1180
+ capabilityVersion: string | null;
1181
+ authorizationSource: string | null;
1182
+ amendsActionId: string | null;
1183
+ delegatedByPrincipalType?: "user" | "api_key" | "agent" | "workflow" | "system" | undefined;
1184
+ };
1185
+ }, {
1186
+ status: "approved" | "denied" | "expired" | "cancelled" | "superseded";
1187
+ decidedByPrincipalId: string;
1188
+ decisionAction: {
1189
+ actionName: string;
1190
+ actionVersion: string;
1191
+ actorType: string | null;
1192
+ principalType: "user" | "api_key" | "agent" | "workflow" | "system";
1193
+ principalId: string;
1194
+ principalSubtype: string | null;
1195
+ sessionId: string | null;
1196
+ apiTokenId: string | null;
1197
+ internalRequest: boolean;
1198
+ delegatedByPrincipalId: string | null;
1199
+ delegationId: string | null;
1200
+ callerType: string | null;
1201
+ organizationId: string | null;
1202
+ routeOrToolName: string | null;
1203
+ workflowRunId: string | null;
1204
+ workflowStepId: string | null;
1205
+ correlationId: string | null;
1206
+ idempotencyScope: string | null;
1207
+ idempotencyKey: string | null;
1208
+ idempotencyFingerprint: string | null;
1209
+ capabilityId: string | null;
1210
+ capabilityVersion: string | null;
1211
+ authorizationSource: string | null;
1212
+ amendsActionId: string | null;
1213
+ delegatedByPrincipalType?: "user" | "api_key" | "agent" | "workflow" | "system" | undefined;
1214
+ };
1215
+ decidedAt?: string | undefined;
1216
+ }>>;
1217
+ recordActionLedgerReversalBodySchema: import("zod").ZodObject<{
1218
+ reversalAction: import("zod").ZodObject<{
1219
+ actionName: import("zod").ZodString;
1220
+ actionVersion: import("zod").ZodDefault<import("zod").ZodString>;
1221
+ actionKind: import("zod").ZodEnum<{
1222
+ reverse: "reverse";
1223
+ compensate: "compensate";
1224
+ }>;
1225
+ status: import("zod").ZodEnum<{
1226
+ failed: "failed";
1227
+ reversed: "reversed";
1228
+ compensated: "compensated";
1229
+ }>;
1230
+ evaluatedRisk: import("zod").ZodDefault<import("zod").ZodEnum<{
1231
+ low: "low";
1232
+ medium: "medium";
1233
+ high: "high";
1234
+ critical: "critical";
1235
+ }>>;
1236
+ actorType: import("zod").ZodPipe<import("zod").ZodOptional<import("zod").ZodString>, import("zod").ZodTransform<string | null, string | undefined>>;
1237
+ principalType: import("zod").ZodEnum<{
1238
+ user: "user";
1239
+ api_key: "api_key";
1240
+ agent: "agent";
1241
+ workflow: "workflow";
1242
+ system: "system";
1243
+ }>;
1244
+ principalId: import("zod").ZodString;
1245
+ principalSubtype: import("zod").ZodPipe<import("zod").ZodOptional<import("zod").ZodString>, import("zod").ZodTransform<string | null, string | undefined>>;
1246
+ sessionId: import("zod").ZodPipe<import("zod").ZodOptional<import("zod").ZodString>, import("zod").ZodTransform<string | null, string | undefined>>;
1247
+ apiTokenId: import("zod").ZodPipe<import("zod").ZodOptional<import("zod").ZodString>, import("zod").ZodTransform<string | null, string | undefined>>;
1248
+ internalRequest: import("zod").ZodDefault<import("zod").ZodBoolean>;
1249
+ delegatedByPrincipalType: import("zod").ZodOptional<import("zod").ZodEnum<{
1250
+ user: "user";
1251
+ api_key: "api_key";
1252
+ agent: "agent";
1253
+ workflow: "workflow";
1254
+ system: "system";
1255
+ }>>;
1256
+ delegatedByPrincipalId: import("zod").ZodPipe<import("zod").ZodOptional<import("zod").ZodString>, import("zod").ZodTransform<string | null, string | undefined>>;
1257
+ delegationId: import("zod").ZodPipe<import("zod").ZodOptional<import("zod").ZodString>, import("zod").ZodTransform<string | null, string | undefined>>;
1258
+ callerType: import("zod").ZodPipe<import("zod").ZodOptional<import("zod").ZodString>, import("zod").ZodTransform<string | null, string | undefined>>;
1259
+ organizationId: import("zod").ZodPipe<import("zod").ZodOptional<import("zod").ZodString>, import("zod").ZodTransform<string | null, string | undefined>>;
1260
+ routeOrToolName: import("zod").ZodPipe<import("zod").ZodOptional<import("zod").ZodString>, import("zod").ZodTransform<string | null, string | undefined>>;
1261
+ workflowRunId: import("zod").ZodPipe<import("zod").ZodOptional<import("zod").ZodString>, import("zod").ZodTransform<string | null, string | undefined>>;
1262
+ workflowStepId: import("zod").ZodPipe<import("zod").ZodOptional<import("zod").ZodString>, import("zod").ZodTransform<string | null, string | undefined>>;
1263
+ correlationId: import("zod").ZodPipe<import("zod").ZodOptional<import("zod").ZodString>, import("zod").ZodTransform<string | null, string | undefined>>;
1264
+ idempotencyScope: import("zod").ZodPipe<import("zod").ZodOptional<import("zod").ZodString>, import("zod").ZodTransform<string | null, string | undefined>>;
1265
+ idempotencyKey: import("zod").ZodPipe<import("zod").ZodOptional<import("zod").ZodString>, import("zod").ZodTransform<string | null, string | undefined>>;
1266
+ idempotencyFingerprint: import("zod").ZodPipe<import("zod").ZodOptional<import("zod").ZodString>, import("zod").ZodTransform<string | null, string | undefined>>;
1267
+ targetType: import("zod").ZodString;
1268
+ targetId: import("zod").ZodString;
1269
+ capabilityId: import("zod").ZodPipe<import("zod").ZodOptional<import("zod").ZodString>, import("zod").ZodTransform<string | null, string | undefined>>;
1270
+ capabilityVersion: import("zod").ZodPipe<import("zod").ZodOptional<import("zod").ZodString>, import("zod").ZodTransform<string | null, string | undefined>>;
1271
+ authorizationSource: import("zod").ZodPipe<import("zod").ZodOptional<import("zod").ZodString>, import("zod").ZodTransform<string | null, string | undefined>>;
1272
+ approvalId: import("zod").ZodPipe<import("zod").ZodOptional<import("zod").ZodString>, import("zod").ZodTransform<string | null, string | undefined>>;
1273
+ amendsActionId: import("zod").ZodPipe<import("zod").ZodOptional<import("zod").ZodString>, import("zod").ZodTransform<string | null, string | undefined>>;
1274
+ mutationDetail: import("zod").ZodOptional<import("zod").ZodObject<{
1275
+ commandInputRef: import("zod").ZodPipe<import("zod").ZodOptional<import("zod").ZodString>, import("zod").ZodTransform<string | null, string | undefined>>;
1276
+ commandResultRef: import("zod").ZodPipe<import("zod").ZodOptional<import("zod").ZodString>, import("zod").ZodTransform<string | null, string | undefined>>;
1277
+ summary: import("zod").ZodPipe<import("zod").ZodOptional<import("zod").ZodString>, import("zod").ZodTransform<string | null, string | undefined>>;
1278
+ reversalKind: import("zod").ZodDefault<import("zod").ZodEnum<{
1279
+ compensate: "compensate";
1280
+ none: "none";
1281
+ revert: "revert";
1282
+ domain_command: "domain_command";
1283
+ }>>;
1284
+ reversalCommandId: import("zod").ZodPipe<import("zod").ZodOptional<import("zod").ZodString>, import("zod").ZodTransform<string | null, string | undefined>>;
1285
+ reversalCommandVersion: import("zod").ZodPipe<import("zod").ZodOptional<import("zod").ZodString>, import("zod").ZodTransform<string | null, string | undefined>>;
1286
+ reversalArgsRef: import("zod").ZodPipe<import("zod").ZodOptional<import("zod").ZodString>, import("zod").ZodTransform<string | null, string | undefined>>;
1287
+ }, import("zod/v4/core").$strip>>;
1288
+ }, import("zod/v4/core").$strip>;
1289
+ projection: import("zod").ZodOptional<import("zod").ZodObject<{
1290
+ reversalState: import("zod").ZodOptional<import("zod").ZodEnum<{
1291
+ requested: "requested";
1292
+ failed: "failed";
1293
+ expired: "expired";
1294
+ not_reversible: "not_reversible";
1295
+ available: "available";
1296
+ running: "running";
1297
+ completed: "completed";
1298
+ }>>;
1299
+ reversalOutcome: import("zod").ZodOptional<import("zod").ZodEnum<{
1300
+ full: "full";
1301
+ partial: "partial";
1302
+ failed: "failed";
1303
+ }>>;
1304
+ }, import("zod/v4/core").$strip>>;
1305
+ }, import("zod/v4/core").$strip>;
1306
+ requestActionApprovalBodySchema: import("zod").ZodPipe<import("zod").ZodObject<{
1307
+ requestedAction: import("zod").ZodObject<{
1308
+ actionName: import("zod").ZodString;
1309
+ actionVersion: import("zod").ZodDefault<import("zod").ZodString>;
1310
+ actionKind: import("zod").ZodEnum<{
1311
+ execute: "execute";
1312
+ reverse: "reverse";
1313
+ update: "update";
1314
+ delete: "delete";
1315
+ read: "read";
1316
+ create: "create";
1317
+ approve: "approve";
1318
+ reject: "reject";
1319
+ compensate: "compensate";
1320
+ duplicate: "duplicate";
1321
+ }>;
1322
+ evaluatedRisk: import("zod").ZodEnum<{
1323
+ low: "low";
1324
+ medium: "medium";
1325
+ high: "high";
1326
+ critical: "critical";
1327
+ }>;
1328
+ actorType: import("zod").ZodPipe<import("zod").ZodOptional<import("zod").ZodString>, import("zod").ZodTransform<string | null, string | undefined>>;
1329
+ principalType: import("zod").ZodEnum<{
1330
+ user: "user";
1331
+ api_key: "api_key";
1332
+ agent: "agent";
1333
+ workflow: "workflow";
1334
+ system: "system";
1335
+ }>;
1336
+ principalId: import("zod").ZodString;
1337
+ principalSubtype: import("zod").ZodPipe<import("zod").ZodOptional<import("zod").ZodString>, import("zod").ZodTransform<string | null, string | undefined>>;
1338
+ sessionId: import("zod").ZodPipe<import("zod").ZodOptional<import("zod").ZodString>, import("zod").ZodTransform<string | null, string | undefined>>;
1339
+ apiTokenId: import("zod").ZodPipe<import("zod").ZodOptional<import("zod").ZodString>, import("zod").ZodTransform<string | null, string | undefined>>;
1340
+ internalRequest: import("zod").ZodDefault<import("zod").ZodBoolean>;
1341
+ delegatedByPrincipalType: import("zod").ZodOptional<import("zod").ZodEnum<{
1342
+ user: "user";
1343
+ api_key: "api_key";
1344
+ agent: "agent";
1345
+ workflow: "workflow";
1346
+ system: "system";
1347
+ }>>;
1348
+ delegatedByPrincipalId: import("zod").ZodPipe<import("zod").ZodOptional<import("zod").ZodString>, import("zod").ZodTransform<string | null, string | undefined>>;
1349
+ delegationId: import("zod").ZodPipe<import("zod").ZodOptional<import("zod").ZodString>, import("zod").ZodTransform<string | null, string | undefined>>;
1350
+ callerType: import("zod").ZodPipe<import("zod").ZodOptional<import("zod").ZodString>, import("zod").ZodTransform<string | null, string | undefined>>;
1351
+ organizationId: import("zod").ZodPipe<import("zod").ZodOptional<import("zod").ZodString>, import("zod").ZodTransform<string | null, string | undefined>>;
1352
+ routeOrToolName: import("zod").ZodPipe<import("zod").ZodOptional<import("zod").ZodString>, import("zod").ZodTransform<string | null, string | undefined>>;
1353
+ workflowRunId: import("zod").ZodPipe<import("zod").ZodOptional<import("zod").ZodString>, import("zod").ZodTransform<string | null, string | undefined>>;
1354
+ workflowStepId: import("zod").ZodPipe<import("zod").ZodOptional<import("zod").ZodString>, import("zod").ZodTransform<string | null, string | undefined>>;
1355
+ correlationId: import("zod").ZodPipe<import("zod").ZodOptional<import("zod").ZodString>, import("zod").ZodTransform<string | null, string | undefined>>;
1356
+ causationActionId: import("zod").ZodPipe<import("zod").ZodOptional<import("zod").ZodString>, import("zod").ZodTransform<string | null, string | undefined>>;
1357
+ idempotencyScope: import("zod").ZodPipe<import("zod").ZodOptional<import("zod").ZodString>, import("zod").ZodTransform<string | null, string | undefined>>;
1358
+ idempotencyKey: import("zod").ZodPipe<import("zod").ZodOptional<import("zod").ZodString>, import("zod").ZodTransform<string | null, string | undefined>>;
1359
+ idempotencyFingerprint: import("zod").ZodPipe<import("zod").ZodOptional<import("zod").ZodString>, import("zod").ZodTransform<string | null, string | undefined>>;
1360
+ targetType: import("zod").ZodString;
1361
+ targetId: import("zod").ZodString;
1362
+ capabilityId: import("zod").ZodPipe<import("zod").ZodOptional<import("zod").ZodString>, import("zod").ZodTransform<string | null, string | undefined>>;
1363
+ capabilityVersion: import("zod").ZodPipe<import("zod").ZodOptional<import("zod").ZodString>, import("zod").ZodTransform<string | null, string | undefined>>;
1364
+ authorizationSource: import("zod").ZodPipe<import("zod").ZodOptional<import("zod").ZodString>, import("zod").ZodTransform<string | null, string | undefined>>;
1365
+ amendsActionId: import("zod").ZodPipe<import("zod").ZodOptional<import("zod").ZodString>, import("zod").ZodTransform<string | null, string | undefined>>;
1366
+ }, import("zod/v4/core").$strip>;
1367
+ approval: import("zod").ZodObject<{
1368
+ requestedByPrincipalId: import("zod").ZodPipe<import("zod").ZodOptional<import("zod").ZodString>, import("zod").ZodTransform<string | null, string | undefined>>;
1369
+ assignedToPrincipalId: import("zod").ZodPipe<import("zod").ZodOptional<import("zod").ZodString>, import("zod").ZodTransform<string | null, string | undefined>>;
1370
+ delegatedFromPrincipalId: import("zod").ZodPipe<import("zod").ZodOptional<import("zod").ZodString>, import("zod").ZodTransform<string | null, string | undefined>>;
1371
+ policyName: import("zod").ZodString;
1372
+ policyVersion: import("zod").ZodString;
1373
+ targetSnapshotRef: import("zod").ZodPipe<import("zod").ZodOptional<import("zod").ZodString>, import("zod").ZodTransform<string | null, string | undefined>>;
1374
+ riskSnapshot: import("zod").ZodOptional<import("zod").ZodEnum<{
1375
+ low: "low";
1376
+ medium: "medium";
1377
+ high: "high";
1378
+ critical: "critical";
1379
+ }>>;
1380
+ reasonCode: import("zod").ZodPipe<import("zod").ZodOptional<import("zod").ZodString>, import("zod").ZodTransform<string | null, string | undefined>>;
1381
+ expiresAt: import("zod").ZodOptional<import("zod").ZodString>;
1382
+ }, import("zod/v4/core").$strip>;
1383
+ }, import("zod/v4/core").$strip>, import("zod").ZodTransform<{
1384
+ approval: {
1385
+ riskSnapshot: "low" | "medium" | "high" | "critical" | null;
1386
+ expiresAt: Date | null;
1387
+ requestedByPrincipalId: string | null;
1388
+ assignedToPrincipalId: string | null;
1389
+ delegatedFromPrincipalId: string | null;
1390
+ policyName: string;
1391
+ policyVersion: string;
1392
+ targetSnapshotRef: string | null;
1393
+ reasonCode: string | null;
1394
+ };
1395
+ requestedAction: {
1396
+ actionName: string;
1397
+ actionVersion: string;
1398
+ actionKind: "execute" | "reverse" | "update" | "delete" | "read" | "create" | "approve" | "reject" | "compensate" | "duplicate";
1399
+ evaluatedRisk: "low" | "medium" | "high" | "critical";
1400
+ actorType: string | null;
1401
+ principalType: "user" | "api_key" | "agent" | "workflow" | "system";
1402
+ principalId: string;
1403
+ principalSubtype: string | null;
1404
+ sessionId: string | null;
1405
+ apiTokenId: string | null;
1406
+ internalRequest: boolean;
1407
+ delegatedByPrincipalId: string | null;
1408
+ delegationId: string | null;
1409
+ callerType: string | null;
1410
+ organizationId: string | null;
1411
+ routeOrToolName: string | null;
1412
+ workflowRunId: string | null;
1413
+ workflowStepId: string | null;
1414
+ correlationId: string | null;
1415
+ causationActionId: string | null;
1416
+ idempotencyScope: string | null;
1417
+ idempotencyKey: string | null;
1418
+ idempotencyFingerprint: string | null;
1419
+ targetType: string;
1420
+ targetId: string;
1421
+ capabilityId: string | null;
1422
+ capabilityVersion: string | null;
1423
+ authorizationSource: string | null;
1424
+ amendsActionId: string | null;
1425
+ delegatedByPrincipalType?: "user" | "api_key" | "agent" | "workflow" | "system" | undefined;
1426
+ };
1427
+ }, {
1428
+ requestedAction: {
1429
+ actionName: string;
1430
+ actionVersion: string;
1431
+ actionKind: "execute" | "reverse" | "update" | "delete" | "read" | "create" | "approve" | "reject" | "compensate" | "duplicate";
1432
+ evaluatedRisk: "low" | "medium" | "high" | "critical";
1433
+ actorType: string | null;
1434
+ principalType: "user" | "api_key" | "agent" | "workflow" | "system";
1435
+ principalId: string;
1436
+ principalSubtype: string | null;
1437
+ sessionId: string | null;
1438
+ apiTokenId: string | null;
1439
+ internalRequest: boolean;
1440
+ delegatedByPrincipalId: string | null;
1441
+ delegationId: string | null;
1442
+ callerType: string | null;
1443
+ organizationId: string | null;
1444
+ routeOrToolName: string | null;
1445
+ workflowRunId: string | null;
1446
+ workflowStepId: string | null;
1447
+ correlationId: string | null;
1448
+ causationActionId: string | null;
1449
+ idempotencyScope: string | null;
1450
+ idempotencyKey: string | null;
1451
+ idempotencyFingerprint: string | null;
1452
+ targetType: string;
1453
+ targetId: string;
1454
+ capabilityId: string | null;
1455
+ capabilityVersion: string | null;
1456
+ authorizationSource: string | null;
1457
+ amendsActionId: string | null;
1458
+ delegatedByPrincipalType?: "user" | "api_key" | "agent" | "workflow" | "system" | undefined;
1459
+ };
1460
+ approval: {
1461
+ requestedByPrincipalId: string | null;
1462
+ assignedToPrincipalId: string | null;
1463
+ delegatedFromPrincipalId: string | null;
1464
+ policyName: string;
1465
+ policyVersion: string;
1466
+ targetSnapshotRef: string | null;
1467
+ reasonCode: string | null;
1468
+ riskSnapshot?: "low" | "medium" | "high" | "critical" | undefined;
1469
+ expiresAt?: string | undefined;
1470
+ };
1471
+ }>>;
1472
+ actionDelegationListQuerySchema: import("zod").ZodPipe<import("zod").ZodObject<{
1473
+ rootPrincipalType: import("zod").ZodOptional<import("zod").ZodEnum<{
1474
+ user: "user";
1475
+ api_key: "api_key";
1476
+ agent: "agent";
1477
+ workflow: "workflow";
1478
+ system: "system";
1479
+ }>>;
1480
+ rootPrincipalId: import("zod").ZodOptional<import("zod").ZodString>;
1481
+ parentPrincipalType: import("zod").ZodOptional<import("zod").ZodEnum<{
1482
+ user: "user";
1483
+ api_key: "api_key";
1484
+ agent: "agent";
1485
+ workflow: "workflow";
1486
+ system: "system";
1487
+ }>>;
1488
+ parentPrincipalId: import("zod").ZodOptional<import("zod").ZodString>;
1489
+ childPrincipalType: import("zod").ZodOptional<import("zod").ZodEnum<{
1490
+ user: "user";
1491
+ api_key: "api_key";
1492
+ agent: "agent";
1493
+ workflow: "workflow";
1494
+ system: "system";
1495
+ }>>;
1496
+ childPrincipalId: import("zod").ZodOptional<import("zod").ZodString>;
1497
+ grantSource: import("zod").ZodOptional<import("zod").ZodString>;
1498
+ capabilityScopeRef: import("zod").ZodOptional<import("zod").ZodString>;
1499
+ budgetScopeRef: import("zod").ZodOptional<import("zod").ZodString>;
1500
+ expiresAtFrom: import("zod").ZodOptional<import("zod").ZodString>;
1501
+ expiresAtTo: import("zod").ZodOptional<import("zod").ZodString>;
1502
+ createdAtFrom: import("zod").ZodOptional<import("zod").ZodString>;
1503
+ createdAtTo: import("zod").ZodOptional<import("zod").ZodString>;
1504
+ cursorCreatedAt: import("zod").ZodOptional<import("zod").ZodString>;
1505
+ cursorId: import("zod").ZodOptional<import("zod").ZodString>;
1506
+ limit: import("zod").ZodOptional<import("zod").ZodCoercedNumber<unknown>>;
1507
+ }, import("zod/v4/core").$strip>, import("zod").ZodTransform<{
1508
+ expiresAtFrom: Date | undefined;
1509
+ expiresAtTo: Date | undefined;
1510
+ createdAtFrom: Date | undefined;
1511
+ createdAtTo: Date | undefined;
1512
+ cursor: {
1513
+ createdAt: string;
1514
+ id: string;
1515
+ } | undefined;
1516
+ rootPrincipalType?: "user" | "api_key" | "agent" | "workflow" | "system" | undefined;
1517
+ rootPrincipalId?: string | undefined;
1518
+ parentPrincipalType?: "user" | "api_key" | "agent" | "workflow" | "system" | undefined;
1519
+ parentPrincipalId?: string | undefined;
1520
+ childPrincipalType?: "user" | "api_key" | "agent" | "workflow" | "system" | undefined;
1521
+ childPrincipalId?: string | undefined;
1522
+ grantSource?: string | undefined;
1523
+ capabilityScopeRef?: string | undefined;
1524
+ budgetScopeRef?: string | undefined;
1525
+ limit?: number | undefined;
1526
+ }, {
1527
+ rootPrincipalType?: "user" | "api_key" | "agent" | "workflow" | "system" | undefined;
1528
+ rootPrincipalId?: string | undefined;
1529
+ parentPrincipalType?: "user" | "api_key" | "agent" | "workflow" | "system" | undefined;
1530
+ parentPrincipalId?: string | undefined;
1531
+ childPrincipalType?: "user" | "api_key" | "agent" | "workflow" | "system" | undefined;
1532
+ childPrincipalId?: string | undefined;
1533
+ grantSource?: string | undefined;
1534
+ capabilityScopeRef?: string | undefined;
1535
+ budgetScopeRef?: string | undefined;
1536
+ expiresAtFrom?: string | undefined;
1537
+ expiresAtTo?: string | undefined;
1538
+ createdAtFrom?: string | undefined;
1539
+ createdAtTo?: string | undefined;
1540
+ cursorCreatedAt?: string | undefined;
1541
+ cursorId?: string | undefined;
1542
+ limit?: number | undefined;
1543
+ }>>;
1544
+ actionLedgerRelayOutboxListQuerySchema: import("zod").ZodPipe<import("zod").ZodObject<{
1545
+ actionId: import("zod").ZodOptional<import("zod").ZodString>;
1546
+ organizationId: import("zod").ZodOptional<import("zod").ZodString>;
1547
+ relayStatus: import("zod").ZodPipe<import("zod").ZodTransform<unknown, unknown>, import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodEnum<{
1548
+ succeeded: "succeeded";
1549
+ failed: "failed";
1550
+ pending: "pending";
1551
+ processing: "processing";
1552
+ dead_letter: "dead_letter";
1553
+ }>>>>;
1554
+ dueBefore: import("zod").ZodOptional<import("zod").ZodString>;
1555
+ createdAtFrom: import("zod").ZodOptional<import("zod").ZodString>;
1556
+ createdAtTo: import("zod").ZodOptional<import("zod").ZodString>;
1557
+ processedAtFrom: import("zod").ZodOptional<import("zod").ZodString>;
1558
+ processedAtTo: import("zod").ZodOptional<import("zod").ZodString>;
1559
+ cursorCreatedAt: import("zod").ZodOptional<import("zod").ZodString>;
1560
+ cursorId: import("zod").ZodOptional<import("zod").ZodString>;
1561
+ limit: import("zod").ZodOptional<import("zod").ZodCoercedNumber<unknown>>;
1562
+ }, import("zod/v4/core").$strip>, import("zod").ZodTransform<{
1563
+ dueBefore: Date | undefined;
1564
+ createdAtFrom: Date | undefined;
1565
+ createdAtTo: Date | undefined;
1566
+ processedAtFrom: Date | undefined;
1567
+ processedAtTo: Date | undefined;
1568
+ cursor: {
1569
+ createdAt: string;
1570
+ id: string;
1571
+ } | undefined;
1572
+ actionId?: string | undefined;
1573
+ organizationId?: string | undefined;
1574
+ relayStatus?: ("succeeded" | "failed" | "pending" | "processing" | "dead_letter")[] | undefined;
1575
+ limit?: number | undefined;
1576
+ }, {
1577
+ actionId?: string | undefined;
1578
+ organizationId?: string | undefined;
1579
+ relayStatus?: ("succeeded" | "failed" | "pending" | "processing" | "dead_letter")[] | undefined;
1580
+ dueBefore?: string | undefined;
1581
+ createdAtFrom?: string | undefined;
1582
+ createdAtTo?: string | undefined;
1583
+ processedAtFrom?: string | undefined;
1584
+ processedAtTo?: string | undefined;
1585
+ cursorCreatedAt?: string | undefined;
1586
+ cursorId?: string | undefined;
1587
+ limit?: number | undefined;
1588
+ }>>;
1589
+ serializeActionApproval: typeof serializeActionApproval;
1590
+ serializeActionApprovalDetail: typeof serializeActionApprovalDetail;
1591
+ serializeActionDelegation: typeof serializeActionDelegation;
1592
+ serializeActionLedgerEntry: typeof serializeActionLedgerEntry;
1593
+ serializeActionLedgerEntryDetail: typeof serializeActionLedgerEntryDetail;
1594
+ };
1595
+ export {};
1596
+ //# sourceMappingURL=routes.d.ts.map