@voyant-travel/action-ledger 0.105.8 → 0.105.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/route-schemas.d.ts +25 -32
- package/dist/route-schemas.d.ts.map +1 -1
- package/dist/routes.d.ts +1504 -431
- package/dist/routes.d.ts.map +1 -1
- package/dist/routes.js +566 -128
- package/dist/schema.d.ts +2 -2
- package/dist/service/cursors.d.ts +1 -2
- package/dist/service/cursors.d.ts.map +1 -1
- package/dist/service/cursors.js +1 -1
- package/package.json +10 -9
package/dist/route-schemas.d.ts
CHANGED
|
@@ -2,14 +2,14 @@ import { z } from "zod";
|
|
|
2
2
|
export declare const actionLedgerEntryListQuerySchema: z.ZodPipe<z.ZodObject<{
|
|
3
3
|
actionName: z.ZodOptional<z.ZodString>;
|
|
4
4
|
actionKind: z.ZodOptional<z.ZodEnum<{
|
|
5
|
-
execute: "execute";
|
|
6
|
-
reverse: "reverse";
|
|
7
|
-
update: "update";
|
|
8
|
-
delete: "delete";
|
|
9
5
|
read: "read";
|
|
10
6
|
create: "create";
|
|
7
|
+
update: "update";
|
|
8
|
+
delete: "delete";
|
|
9
|
+
execute: "execute";
|
|
11
10
|
approve: "approve";
|
|
12
11
|
reject: "reject";
|
|
12
|
+
reverse: "reverse";
|
|
13
13
|
compensate: "compensate";
|
|
14
14
|
duplicate: "duplicate";
|
|
15
15
|
}>>;
|
|
@@ -28,7 +28,7 @@ export declare const actionLedgerEntryListQuerySchema: z.ZodPipe<z.ZodObject<{
|
|
|
28
28
|
organizationId: z.ZodOptional<z.ZodString>;
|
|
29
29
|
targetType: z.ZodOptional<z.ZodString>;
|
|
30
30
|
targetId: z.ZodOptional<z.ZodString>;
|
|
31
|
-
targetIds: z.
|
|
31
|
+
targetIds: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
32
32
|
routeOrToolName: z.ZodOptional<z.ZodString>;
|
|
33
33
|
workflowRunId: z.ZodOptional<z.ZodString>;
|
|
34
34
|
workflowStepId: z.ZodOptional<z.ZodString>;
|
|
@@ -41,13 +41,13 @@ export declare const actionLedgerEntryListQuerySchema: z.ZodPipe<z.ZodObject<{
|
|
|
41
41
|
amendsActionId: z.ZodOptional<z.ZodString>;
|
|
42
42
|
idempotencyScope: z.ZodOptional<z.ZodString>;
|
|
43
43
|
idempotencyKey: z.ZodOptional<z.ZodString>;
|
|
44
|
-
evaluatedRisk: z.
|
|
44
|
+
evaluatedRisk: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
45
45
|
low: "low";
|
|
46
46
|
medium: "medium";
|
|
47
47
|
high: "high";
|
|
48
48
|
critical: "critical";
|
|
49
49
|
}>>>>;
|
|
50
|
-
status: z.
|
|
50
|
+
status: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
51
51
|
requested: "requested";
|
|
52
52
|
awaiting_approval: "awaiting_approval";
|
|
53
53
|
approved: "approved";
|
|
@@ -60,13 +60,13 @@ export declare const actionLedgerEntryListQuerySchema: z.ZodPipe<z.ZodObject<{
|
|
|
60
60
|
cancelled: "cancelled";
|
|
61
61
|
superseded: "superseded";
|
|
62
62
|
}>>>>;
|
|
63
|
-
reversalKind: z.
|
|
63
|
+
reversalKind: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
64
64
|
compensate: "compensate";
|
|
65
65
|
none: "none";
|
|
66
66
|
revert: "revert";
|
|
67
67
|
domain_command: "domain_command";
|
|
68
68
|
}>>>>;
|
|
69
|
-
reversalState: z.
|
|
69
|
+
reversalState: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
70
70
|
requested: "requested";
|
|
71
71
|
failed: "failed";
|
|
72
72
|
expired: "expired";
|
|
@@ -75,10 +75,10 @@ export declare const actionLedgerEntryListQuerySchema: z.ZodPipe<z.ZodObject<{
|
|
|
75
75
|
running: "running";
|
|
76
76
|
completed: "completed";
|
|
77
77
|
}>>>>;
|
|
78
|
-
reversalOutcome: z.
|
|
78
|
+
reversalOutcome: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
79
|
+
failed: "failed";
|
|
79
80
|
full: "full";
|
|
80
81
|
partial: "partial";
|
|
81
|
-
failed: "failed";
|
|
82
82
|
}>>>>;
|
|
83
83
|
reversesActionId: z.ZodOptional<z.ZodString>;
|
|
84
84
|
reversedByActionId: z.ZodOptional<z.ZodString>;
|
|
@@ -101,7 +101,7 @@ export declare const actionLedgerEntryListQuerySchema: z.ZodPipe<z.ZodObject<{
|
|
|
101
101
|
id: string;
|
|
102
102
|
} | undefined;
|
|
103
103
|
actionName?: string | undefined;
|
|
104
|
-
actionKind?: "
|
|
104
|
+
actionKind?: "read" | "create" | "update" | "delete" | "execute" | "approve" | "reject" | "reverse" | "compensate" | "duplicate" | undefined;
|
|
105
105
|
actorType?: string | undefined;
|
|
106
106
|
principalType?: "user" | "api_key" | "agent" | "workflow" | "system" | undefined;
|
|
107
107
|
principalId?: string | undefined;
|
|
@@ -128,7 +128,7 @@ export declare const actionLedgerEntryListQuerySchema: z.ZodPipe<z.ZodObject<{
|
|
|
128
128
|
status?: ("requested" | "awaiting_approval" | "approved" | "denied" | "succeeded" | "failed" | "reversed" | "compensated" | "expired" | "cancelled" | "superseded")[] | undefined;
|
|
129
129
|
reversalKind?: ("compensate" | "none" | "revert" | "domain_command")[] | undefined;
|
|
130
130
|
reversalState?: ("requested" | "failed" | "expired" | "not_reversible" | "available" | "running" | "completed")[] | undefined;
|
|
131
|
-
reversalOutcome?: ("
|
|
131
|
+
reversalOutcome?: ("failed" | "full" | "partial")[] | undefined;
|
|
132
132
|
reversesActionId?: string | undefined;
|
|
133
133
|
reversedByActionId?: string | undefined;
|
|
134
134
|
sensitiveReasonCode?: string | undefined;
|
|
@@ -137,7 +137,7 @@ export declare const actionLedgerEntryListQuerySchema: z.ZodPipe<z.ZodObject<{
|
|
|
137
137
|
limit?: number | undefined;
|
|
138
138
|
}, {
|
|
139
139
|
actionName?: string | undefined;
|
|
140
|
-
actionKind?: "
|
|
140
|
+
actionKind?: "read" | "create" | "update" | "delete" | "execute" | "approve" | "reject" | "reverse" | "compensate" | "duplicate" | undefined;
|
|
141
141
|
actorType?: string | undefined;
|
|
142
142
|
principalType?: "user" | "api_key" | "agent" | "workflow" | "system" | undefined;
|
|
143
143
|
principalId?: string | undefined;
|
|
@@ -164,7 +164,7 @@ export declare const actionLedgerEntryListQuerySchema: z.ZodPipe<z.ZodObject<{
|
|
|
164
164
|
status?: ("requested" | "awaiting_approval" | "approved" | "denied" | "succeeded" | "failed" | "reversed" | "compensated" | "expired" | "cancelled" | "superseded")[] | undefined;
|
|
165
165
|
reversalKind?: ("compensate" | "none" | "revert" | "domain_command")[] | undefined;
|
|
166
166
|
reversalState?: ("requested" | "failed" | "expired" | "not_reversible" | "available" | "running" | "completed")[] | undefined;
|
|
167
|
-
reversalOutcome?: ("
|
|
167
|
+
reversalOutcome?: ("failed" | "full" | "partial")[] | undefined;
|
|
168
168
|
reversesActionId?: string | undefined;
|
|
169
169
|
reversedByActionId?: string | undefined;
|
|
170
170
|
sensitiveReasonCode?: string | undefined;
|
|
@@ -176,11 +176,10 @@ export declare const actionLedgerEntryListQuerySchema: z.ZodPipe<z.ZodObject<{
|
|
|
176
176
|
sortDir?: "asc" | "desc" | undefined;
|
|
177
177
|
limit?: number | undefined;
|
|
178
178
|
}>>;
|
|
179
|
-
export type ActionLedgerEntryListQuery = z.infer<typeof actionLedgerEntryListQuerySchema>;
|
|
180
179
|
export declare const actionLedgerRelayOutboxListQuerySchema: z.ZodPipe<z.ZodObject<{
|
|
181
180
|
actionId: z.ZodOptional<z.ZodString>;
|
|
182
181
|
organizationId: z.ZodOptional<z.ZodString>;
|
|
183
|
-
relayStatus: z.
|
|
182
|
+
relayStatus: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
184
183
|
succeeded: "succeeded";
|
|
185
184
|
failed: "failed";
|
|
186
185
|
pending: "pending";
|
|
@@ -222,10 +221,9 @@ export declare const actionLedgerRelayOutboxListQuerySchema: z.ZodPipe<z.ZodObje
|
|
|
222
221
|
cursorId?: string | undefined;
|
|
223
222
|
limit?: number | undefined;
|
|
224
223
|
}>>;
|
|
225
|
-
export type ActionLedgerRelayOutboxListQuery = z.infer<typeof actionLedgerRelayOutboxListQuerySchema>;
|
|
226
224
|
export declare const actionApprovalListQuerySchema: z.ZodPipe<z.ZodObject<{
|
|
227
225
|
requestedActionId: z.ZodOptional<z.ZodString>;
|
|
228
|
-
status: z.
|
|
226
|
+
status: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
229
227
|
approved: "approved";
|
|
230
228
|
denied: "denied";
|
|
231
229
|
expired: "expired";
|
|
@@ -239,7 +237,7 @@ export declare const actionApprovalListQuerySchema: z.ZodPipe<z.ZodObject<{
|
|
|
239
237
|
delegatedFromPrincipalId: z.ZodOptional<z.ZodString>;
|
|
240
238
|
policyName: z.ZodOptional<z.ZodString>;
|
|
241
239
|
policyVersion: z.ZodOptional<z.ZodString>;
|
|
242
|
-
riskSnapshot: z.
|
|
240
|
+
riskSnapshot: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
243
241
|
low: "low";
|
|
244
242
|
medium: "medium";
|
|
245
243
|
high: "high";
|
|
@@ -298,20 +296,19 @@ export declare const actionApprovalListQuerySchema: z.ZodPipe<z.ZodObject<{
|
|
|
298
296
|
cursorId?: string | undefined;
|
|
299
297
|
limit?: number | undefined;
|
|
300
298
|
}>>;
|
|
301
|
-
export type ActionApprovalListQuery = z.infer<typeof actionApprovalListQuerySchema>;
|
|
302
299
|
export declare const requestActionApprovalBodySchema: z.ZodPipe<z.ZodObject<{
|
|
303
300
|
requestedAction: z.ZodObject<{
|
|
304
301
|
actionName: z.ZodString;
|
|
305
302
|
actionVersion: z.ZodDefault<z.ZodString>;
|
|
306
303
|
actionKind: z.ZodEnum<{
|
|
307
|
-
execute: "execute";
|
|
308
|
-
reverse: "reverse";
|
|
309
|
-
update: "update";
|
|
310
|
-
delete: "delete";
|
|
311
304
|
read: "read";
|
|
312
305
|
create: "create";
|
|
306
|
+
update: "update";
|
|
307
|
+
delete: "delete";
|
|
308
|
+
execute: "execute";
|
|
313
309
|
approve: "approve";
|
|
314
310
|
reject: "reject";
|
|
311
|
+
reverse: "reverse";
|
|
315
312
|
compensate: "compensate";
|
|
316
313
|
duplicate: "duplicate";
|
|
317
314
|
}>;
|
|
@@ -391,7 +388,7 @@ export declare const requestActionApprovalBodySchema: z.ZodPipe<z.ZodObject<{
|
|
|
391
388
|
requestedAction: {
|
|
392
389
|
actionName: string;
|
|
393
390
|
actionVersion: string;
|
|
394
|
-
actionKind: "
|
|
391
|
+
actionKind: "read" | "create" | "update" | "delete" | "execute" | "approve" | "reject" | "reverse" | "compensate" | "duplicate";
|
|
395
392
|
evaluatedRisk: "low" | "medium" | "high" | "critical";
|
|
396
393
|
actorType: string | null;
|
|
397
394
|
principalType: "user" | "api_key" | "agent" | "workflow" | "system";
|
|
@@ -424,7 +421,7 @@ export declare const requestActionApprovalBodySchema: z.ZodPipe<z.ZodObject<{
|
|
|
424
421
|
requestedAction: {
|
|
425
422
|
actionName: string;
|
|
426
423
|
actionVersion: string;
|
|
427
|
-
actionKind: "
|
|
424
|
+
actionKind: "read" | "create" | "update" | "delete" | "execute" | "approve" | "reject" | "reverse" | "compensate" | "duplicate";
|
|
428
425
|
evaluatedRisk: "low" | "medium" | "high" | "critical";
|
|
429
426
|
actorType: string | null;
|
|
430
427
|
principalType: "user" | "api_key" | "agent" | "workflow" | "system";
|
|
@@ -465,7 +462,6 @@ export declare const requestActionApprovalBodySchema: z.ZodPipe<z.ZodObject<{
|
|
|
465
462
|
expiresAt?: string | undefined;
|
|
466
463
|
};
|
|
467
464
|
}>>;
|
|
468
|
-
export type RequestActionApprovalBody = z.infer<typeof requestActionApprovalBodySchema>;
|
|
469
465
|
export declare const decideActionApprovalBodySchema: z.ZodPipe<z.ZodObject<{
|
|
470
466
|
status: z.ZodEnum<{
|
|
471
467
|
approved: "approved";
|
|
@@ -578,7 +574,6 @@ export declare const decideActionApprovalBodySchema: z.ZodPipe<z.ZodObject<{
|
|
|
578
574
|
};
|
|
579
575
|
decidedAt?: string | undefined;
|
|
580
576
|
}>>;
|
|
581
|
-
export type DecideActionApprovalBody = z.infer<typeof decideActionApprovalBodySchema>;
|
|
582
577
|
export declare const recordActionLedgerReversalBodySchema: z.ZodObject<{
|
|
583
578
|
reversalAction: z.ZodObject<{
|
|
584
579
|
actionName: z.ZodString;
|
|
@@ -662,13 +657,12 @@ export declare const recordActionLedgerReversalBodySchema: z.ZodObject<{
|
|
|
662
657
|
completed: "completed";
|
|
663
658
|
}>>;
|
|
664
659
|
reversalOutcome: z.ZodOptional<z.ZodEnum<{
|
|
660
|
+
failed: "failed";
|
|
665
661
|
full: "full";
|
|
666
662
|
partial: "partial";
|
|
667
|
-
failed: "failed";
|
|
668
663
|
}>>;
|
|
669
664
|
}, z.core.$strip>>;
|
|
670
665
|
}, z.core.$strip>;
|
|
671
|
-
export type RecordActionLedgerReversalBody = z.infer<typeof recordActionLedgerReversalBodySchema>;
|
|
672
666
|
export declare const actionDelegationListQuerySchema: z.ZodPipe<z.ZodObject<{
|
|
673
667
|
rootPrincipalType: z.ZodOptional<z.ZodEnum<{
|
|
674
668
|
user: "user";
|
|
@@ -741,5 +735,4 @@ export declare const actionDelegationListQuerySchema: z.ZodPipe<z.ZodObject<{
|
|
|
741
735
|
cursorId?: string | undefined;
|
|
742
736
|
limit?: number | undefined;
|
|
743
737
|
}>>;
|
|
744
|
-
export type ActionDelegationListQuery = z.infer<typeof actionDelegationListQuerySchema>;
|
|
745
738
|
//# sourceMappingURL=route-schemas.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"route-schemas.d.ts","sourceRoot":"","sources":["../src/route-schemas.ts"],"names":[],"mappings":"AA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