@voyant-travel/action-ledger 0.105.9 → 0.105.11
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
CHANGED
|
@@ -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,7 +75,7 @@ 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
79
|
failed: "failed";
|
|
80
80
|
full: "full";
|
|
81
81
|
partial: "partial";
|
|
@@ -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,7 +296,6 @@ 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;
|
|
@@ -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;
|
|
@@ -668,7 +663,6 @@ export declare const recordActionLedgerReversalBodySchema: z.ZodObject<{
|
|
|
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":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AA8EvB,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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oC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAQ/C,CAAA;AAEF,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmDzC,CAAA"}
|
package/dist/routes.d.ts
CHANGED
|
@@ -137,9 +137,9 @@ export declare const actionLedgerAdminRoutes: OpenAPIHono<Env, import("hono/type
|
|
|
137
137
|
$get: {
|
|
138
138
|
input: {
|
|
139
139
|
query: {
|
|
140
|
-
relayStatus: unknown;
|
|
141
140
|
actionId?: string | undefined;
|
|
142
141
|
organizationId?: string | undefined;
|
|
142
|
+
relayStatus?: unknown;
|
|
143
143
|
dueBefore?: string | undefined;
|
|
144
144
|
createdAtFrom?: string | undefined;
|
|
145
145
|
createdAtTo?: string | undefined;
|
|
@@ -158,9 +158,9 @@ export declare const actionLedgerAdminRoutes: OpenAPIHono<Env, import("hono/type
|
|
|
158
158
|
} | {
|
|
159
159
|
input: {
|
|
160
160
|
query: {
|
|
161
|
-
relayStatus: unknown;
|
|
162
161
|
actionId?: string | undefined;
|
|
163
162
|
organizationId?: string | undefined;
|
|
163
|
+
relayStatus?: unknown;
|
|
164
164
|
dueBefore?: string | undefined;
|
|
165
165
|
createdAtFrom?: string | undefined;
|
|
166
166
|
createdAtTo?: string | undefined;
|
|
@@ -314,15 +314,15 @@ export declare const actionLedgerAdminRoutes: OpenAPIHono<Env, import("hono/type
|
|
|
314
314
|
$get: {
|
|
315
315
|
input: {
|
|
316
316
|
query: {
|
|
317
|
-
status: unknown;
|
|
318
|
-
riskSnapshot: unknown;
|
|
319
317
|
requestedActionId?: string | undefined;
|
|
318
|
+
status?: unknown;
|
|
320
319
|
requestedByPrincipalId?: string | undefined;
|
|
321
320
|
assignedToPrincipalId?: string | undefined;
|
|
322
321
|
decidedByPrincipalId?: string | undefined;
|
|
323
322
|
delegatedFromPrincipalId?: string | undefined;
|
|
324
323
|
policyName?: string | undefined;
|
|
325
324
|
policyVersion?: string | undefined;
|
|
325
|
+
riskSnapshot?: unknown;
|
|
326
326
|
reasonCode?: string | undefined;
|
|
327
327
|
expiresAtFrom?: string | undefined;
|
|
328
328
|
expiresAtTo?: string | undefined;
|
|
@@ -343,15 +343,15 @@ export declare const actionLedgerAdminRoutes: OpenAPIHono<Env, import("hono/type
|
|
|
343
343
|
} | {
|
|
344
344
|
input: {
|
|
345
345
|
query: {
|
|
346
|
-
status: unknown;
|
|
347
|
-
riskSnapshot: unknown;
|
|
348
346
|
requestedActionId?: string | undefined;
|
|
347
|
+
status?: unknown;
|
|
349
348
|
requestedByPrincipalId?: string | undefined;
|
|
350
349
|
assignedToPrincipalId?: string | undefined;
|
|
351
350
|
decidedByPrincipalId?: string | undefined;
|
|
352
351
|
delegatedFromPrincipalId?: string | undefined;
|
|
353
352
|
policyName?: string | undefined;
|
|
354
353
|
policyVersion?: string | undefined;
|
|
354
|
+
riskSnapshot?: unknown;
|
|
355
355
|
reasonCode?: string | undefined;
|
|
356
356
|
expiresAtFrom?: string | undefined;
|
|
357
357
|
expiresAtTo?: string | undefined;
|
|
@@ -925,12 +925,6 @@ export declare const actionLedgerAdminRoutes: OpenAPIHono<Env, import("hono/type
|
|
|
925
925
|
$get: {
|
|
926
926
|
input: {
|
|
927
927
|
query: {
|
|
928
|
-
targetIds: unknown;
|
|
929
|
-
evaluatedRisk: unknown;
|
|
930
|
-
status: unknown;
|
|
931
|
-
reversalKind: unknown;
|
|
932
|
-
reversalState: unknown;
|
|
933
|
-
reversalOutcome: unknown;
|
|
934
928
|
actionName?: string | undefined;
|
|
935
929
|
actionKind?: "read" | "create" | "update" | "delete" | "execute" | "approve" | "reject" | "reverse" | "compensate" | "duplicate" | undefined;
|
|
936
930
|
actorType?: string | undefined;
|
|
@@ -942,6 +936,7 @@ export declare const actionLedgerAdminRoutes: OpenAPIHono<Env, import("hono/type
|
|
|
942
936
|
organizationId?: string | undefined;
|
|
943
937
|
targetType?: string | undefined;
|
|
944
938
|
targetId?: string | undefined;
|
|
939
|
+
targetIds?: unknown;
|
|
945
940
|
routeOrToolName?: string | undefined;
|
|
946
941
|
workflowRunId?: string | undefined;
|
|
947
942
|
workflowStepId?: string | undefined;
|
|
@@ -954,6 +949,11 @@ export declare const actionLedgerAdminRoutes: OpenAPIHono<Env, import("hono/type
|
|
|
954
949
|
amendsActionId?: string | undefined;
|
|
955
950
|
idempotencyScope?: string | undefined;
|
|
956
951
|
idempotencyKey?: string | undefined;
|
|
952
|
+
evaluatedRisk?: unknown;
|
|
953
|
+
status?: unknown;
|
|
954
|
+
reversalKind?: unknown;
|
|
955
|
+
reversalState?: unknown;
|
|
956
|
+
reversalOutcome?: unknown;
|
|
957
957
|
reversesActionId?: string | undefined;
|
|
958
958
|
reversedByActionId?: string | undefined;
|
|
959
959
|
sensitiveReasonCode?: string | undefined;
|
|
@@ -1016,12 +1016,6 @@ export declare const actionLedgerAdminRoutes: OpenAPIHono<Env, import("hono/type
|
|
|
1016
1016
|
} | {
|
|
1017
1017
|
input: {
|
|
1018
1018
|
query: {
|
|
1019
|
-
targetIds: unknown;
|
|
1020
|
-
evaluatedRisk: unknown;
|
|
1021
|
-
status: unknown;
|
|
1022
|
-
reversalKind: unknown;
|
|
1023
|
-
reversalState: unknown;
|
|
1024
|
-
reversalOutcome: unknown;
|
|
1025
1019
|
actionName?: string | undefined;
|
|
1026
1020
|
actionKind?: "read" | "create" | "update" | "delete" | "execute" | "approve" | "reject" | "reverse" | "compensate" | "duplicate" | undefined;
|
|
1027
1021
|
actorType?: string | undefined;
|
|
@@ -1033,6 +1027,7 @@ export declare const actionLedgerAdminRoutes: OpenAPIHono<Env, import("hono/type
|
|
|
1033
1027
|
organizationId?: string | undefined;
|
|
1034
1028
|
targetType?: string | undefined;
|
|
1035
1029
|
targetId?: string | undefined;
|
|
1030
|
+
targetIds?: unknown;
|
|
1036
1031
|
routeOrToolName?: string | undefined;
|
|
1037
1032
|
workflowRunId?: string | undefined;
|
|
1038
1033
|
workflowStepId?: string | undefined;
|
|
@@ -1045,6 +1040,11 @@ export declare const actionLedgerAdminRoutes: OpenAPIHono<Env, import("hono/type
|
|
|
1045
1040
|
amendsActionId?: string | undefined;
|
|
1046
1041
|
idempotencyScope?: string | undefined;
|
|
1047
1042
|
idempotencyKey?: string | undefined;
|
|
1043
|
+
evaluatedRisk?: unknown;
|
|
1044
|
+
status?: unknown;
|
|
1045
|
+
reversalKind?: unknown;
|
|
1046
|
+
reversalState?: unknown;
|
|
1047
|
+
reversalOutcome?: unknown;
|
|
1048
1048
|
reversesActionId?: string | undefined;
|
|
1049
1049
|
reversedByActionId?: string | undefined;
|
|
1050
1050
|
sensitiveReasonCode?: string | undefined;
|
|
@@ -1497,12 +1497,6 @@ export declare const actionLedgerAdminRoutes: OpenAPIHono<Env, import("hono/type
|
|
|
1497
1497
|
$get: {
|
|
1498
1498
|
input: {
|
|
1499
1499
|
query: {
|
|
1500
|
-
targetIds: unknown;
|
|
1501
|
-
evaluatedRisk: unknown;
|
|
1502
|
-
status: unknown;
|
|
1503
|
-
reversalKind: unknown;
|
|
1504
|
-
reversalState: unknown;
|
|
1505
|
-
reversalOutcome: unknown;
|
|
1506
1500
|
actionName?: string | undefined;
|
|
1507
1501
|
actionKind?: "read" | "create" | "update" | "delete" | "execute" | "approve" | "reject" | "reverse" | "compensate" | "duplicate" | undefined;
|
|
1508
1502
|
actorType?: string | undefined;
|
|
@@ -1514,6 +1508,7 @@ export declare const actionLedgerAdminRoutes: OpenAPIHono<Env, import("hono/type
|
|
|
1514
1508
|
organizationId?: string | undefined;
|
|
1515
1509
|
targetType?: string | undefined;
|
|
1516
1510
|
targetId?: string | undefined;
|
|
1511
|
+
targetIds?: unknown;
|
|
1517
1512
|
routeOrToolName?: string | undefined;
|
|
1518
1513
|
workflowRunId?: string | undefined;
|
|
1519
1514
|
workflowStepId?: string | undefined;
|
|
@@ -1526,6 +1521,11 @@ export declare const actionLedgerAdminRoutes: OpenAPIHono<Env, import("hono/type
|
|
|
1526
1521
|
amendsActionId?: string | undefined;
|
|
1527
1522
|
idempotencyScope?: string | undefined;
|
|
1528
1523
|
idempotencyKey?: string | undefined;
|
|
1524
|
+
evaluatedRisk?: unknown;
|
|
1525
|
+
status?: unknown;
|
|
1526
|
+
reversalKind?: unknown;
|
|
1527
|
+
reversalState?: unknown;
|
|
1528
|
+
reversalOutcome?: unknown;
|
|
1529
1529
|
reversesActionId?: string | undefined;
|
|
1530
1530
|
reversedByActionId?: string | undefined;
|
|
1531
1531
|
sensitiveReasonCode?: string | undefined;
|
|
@@ -1588,12 +1588,6 @@ export declare const actionLedgerAdminRoutes: OpenAPIHono<Env, import("hono/type
|
|
|
1588
1588
|
} | {
|
|
1589
1589
|
input: {
|
|
1590
1590
|
query: {
|
|
1591
|
-
targetIds: unknown;
|
|
1592
|
-
evaluatedRisk: unknown;
|
|
1593
|
-
status: unknown;
|
|
1594
|
-
reversalKind: unknown;
|
|
1595
|
-
reversalState: unknown;
|
|
1596
|
-
reversalOutcome: unknown;
|
|
1597
1591
|
actionName?: string | undefined;
|
|
1598
1592
|
actionKind?: "read" | "create" | "update" | "delete" | "execute" | "approve" | "reject" | "reverse" | "compensate" | "duplicate" | undefined;
|
|
1599
1593
|
actorType?: string | undefined;
|
|
@@ -1605,6 +1599,7 @@ export declare const actionLedgerAdminRoutes: OpenAPIHono<Env, import("hono/type
|
|
|
1605
1599
|
organizationId?: string | undefined;
|
|
1606
1600
|
targetType?: string | undefined;
|
|
1607
1601
|
targetId?: string | undefined;
|
|
1602
|
+
targetIds?: unknown;
|
|
1608
1603
|
routeOrToolName?: string | undefined;
|
|
1609
1604
|
workflowRunId?: string | undefined;
|
|
1610
1605
|
workflowStepId?: string | undefined;
|
|
@@ -1617,6 +1612,11 @@ export declare const actionLedgerAdminRoutes: OpenAPIHono<Env, import("hono/type
|
|
|
1617
1612
|
amendsActionId?: string | undefined;
|
|
1618
1613
|
idempotencyScope?: string | undefined;
|
|
1619
1614
|
idempotencyKey?: string | undefined;
|
|
1615
|
+
evaluatedRisk?: unknown;
|
|
1616
|
+
status?: unknown;
|
|
1617
|
+
reversalKind?: unknown;
|
|
1618
|
+
reversalState?: unknown;
|
|
1619
|
+
reversalOutcome?: unknown;
|
|
1620
1620
|
reversesActionId?: string | undefined;
|
|
1621
1621
|
reversedByActionId?: string | undefined;
|
|
1622
1622
|
sensitiveReasonCode?: string | undefined;
|
|
@@ -1670,7 +1670,7 @@ export declare const __test__: {
|
|
|
1670
1670
|
organizationId: z.ZodOptional<z.ZodString>;
|
|
1671
1671
|
targetType: z.ZodOptional<z.ZodString>;
|
|
1672
1672
|
targetId: z.ZodOptional<z.ZodString>;
|
|
1673
|
-
targetIds: z.
|
|
1673
|
+
targetIds: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
1674
1674
|
routeOrToolName: z.ZodOptional<z.ZodString>;
|
|
1675
1675
|
workflowRunId: z.ZodOptional<z.ZodString>;
|
|
1676
1676
|
workflowStepId: z.ZodOptional<z.ZodString>;
|
|
@@ -1683,13 +1683,13 @@ export declare const __test__: {
|
|
|
1683
1683
|
amendsActionId: z.ZodOptional<z.ZodString>;
|
|
1684
1684
|
idempotencyScope: z.ZodOptional<z.ZodString>;
|
|
1685
1685
|
idempotencyKey: z.ZodOptional<z.ZodString>;
|
|
1686
|
-
evaluatedRisk: z.
|
|
1686
|
+
evaluatedRisk: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
1687
1687
|
low: "low";
|
|
1688
1688
|
medium: "medium";
|
|
1689
1689
|
high: "high";
|
|
1690
1690
|
critical: "critical";
|
|
1691
1691
|
}>>>>;
|
|
1692
|
-
status: z.
|
|
1692
|
+
status: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
1693
1693
|
requested: "requested";
|
|
1694
1694
|
awaiting_approval: "awaiting_approval";
|
|
1695
1695
|
approved: "approved";
|
|
@@ -1702,13 +1702,13 @@ export declare const __test__: {
|
|
|
1702
1702
|
cancelled: "cancelled";
|
|
1703
1703
|
superseded: "superseded";
|
|
1704
1704
|
}>>>>;
|
|
1705
|
-
reversalKind: z.
|
|
1705
|
+
reversalKind: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
1706
1706
|
compensate: "compensate";
|
|
1707
1707
|
none: "none";
|
|
1708
1708
|
revert: "revert";
|
|
1709
1709
|
domain_command: "domain_command";
|
|
1710
1710
|
}>>>>;
|
|
1711
|
-
reversalState: z.
|
|
1711
|
+
reversalState: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
1712
1712
|
requested: "requested";
|
|
1713
1713
|
failed: "failed";
|
|
1714
1714
|
expired: "expired";
|
|
@@ -1717,7 +1717,7 @@ export declare const __test__: {
|
|
|
1717
1717
|
running: "running";
|
|
1718
1718
|
completed: "completed";
|
|
1719
1719
|
}>>>>;
|
|
1720
|
-
reversalOutcome: z.
|
|
1720
|
+
reversalOutcome: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
1721
1721
|
failed: "failed";
|
|
1722
1722
|
full: "full";
|
|
1723
1723
|
partial: "partial";
|
|
@@ -1820,7 +1820,7 @@ export declare const __test__: {
|
|
|
1820
1820
|
}>>;
|
|
1821
1821
|
actionApprovalListQuerySchema: z.ZodPipe<z.ZodObject<{
|
|
1822
1822
|
requestedActionId: z.ZodOptional<z.ZodString>;
|
|
1823
|
-
status: z.
|
|
1823
|
+
status: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
1824
1824
|
approved: "approved";
|
|
1825
1825
|
denied: "denied";
|
|
1826
1826
|
expired: "expired";
|
|
@@ -1834,7 +1834,7 @@ export declare const __test__: {
|
|
|
1834
1834
|
delegatedFromPrincipalId: z.ZodOptional<z.ZodString>;
|
|
1835
1835
|
policyName: z.ZodOptional<z.ZodString>;
|
|
1836
1836
|
policyVersion: z.ZodOptional<z.ZodString>;
|
|
1837
|
-
riskSnapshot: z.
|
|
1837
|
+
riskSnapshot: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
1838
1838
|
low: "low";
|
|
1839
1839
|
medium: "medium";
|
|
1840
1840
|
high: "high";
|
|
@@ -2335,7 +2335,7 @@ export declare const __test__: {
|
|
|
2335
2335
|
actionLedgerRelayOutboxListQuerySchema: z.ZodPipe<z.ZodObject<{
|
|
2336
2336
|
actionId: z.ZodOptional<z.ZodString>;
|
|
2337
2337
|
organizationId: z.ZodOptional<z.ZodString>;
|
|
2338
|
-
relayStatus: z.
|
|
2338
|
+
relayStatus: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
2339
2339
|
succeeded: "succeeded";
|
|
2340
2340
|
failed: "failed";
|
|
2341
2341
|
pending: "pending";
|
|
@@ -16,7 +16,6 @@ declare function toActionDelegationListCursor(row: Pick<ActionDelegation, "creat
|
|
|
16
16
|
createdAt: string;
|
|
17
17
|
id: string;
|
|
18
18
|
};
|
|
19
|
-
declare function serializeCursorDate(value: Date | string): string;
|
|
20
19
|
declare function parseCursorDate(value: Date | string): Date;
|
|
21
|
-
export { normalizeListLimit, parseCursorDate,
|
|
20
|
+
export { normalizeListLimit, parseCursorDate, toActionApprovalListCursor, toActionDelegationListCursor, toActionLedgerListCursor, toActionLedgerRelayOutboxListCursor, };
|
|
22
21
|
//# sourceMappingURL=cursors.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cursors.d.ts","sourceRoot":"","sources":["../../src/service/cursors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,cAAc,EACd,gBAAgB,EAChB,iBAAiB,EACjB,uBAAuB,EACxB,MAAM,cAAc,CAAA;AAKrB,iBAAS,kBAAkB,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,CAI7D;AA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service/cursors.js
CHANGED
|
@@ -45,4 +45,4 @@ function parseCursorDate(value) {
|
|
|
45
45
|
}
|
|
46
46
|
return date;
|
|
47
47
|
}
|
|
48
|
-
export { normalizeListLimit, parseCursorDate,
|
|
48
|
+
export { normalizeListLimit, parseCursorDate, toActionApprovalListCursor, toActionDelegationListCursor, toActionLedgerListCursor, toActionLedgerRelayOutboxListCursor, };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@voyant-travel/action-ledger",
|
|
3
|
-
"version": "0.105.
|
|
3
|
+
"version": "0.105.11",
|
|
4
4
|
"description": "Action ledger schema, append-only write helpers, and idempotency primitives for Voyant control surfaces.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
@@ -59,16 +59,16 @@
|
|
|
59
59
|
"dependencies": {
|
|
60
60
|
"@hono/zod-openapi": "^1.4.0",
|
|
61
61
|
"drizzle-orm": "^0.45.2",
|
|
62
|
-
"hono": "^4.12.
|
|
63
|
-
"zod": "^4.3
|
|
64
|
-
"@voyant-travel/core": "^0.111.
|
|
62
|
+
"hono": "^4.12.25",
|
|
63
|
+
"zod": "^4.4.3",
|
|
64
|
+
"@voyant-travel/core": "^0.111.1",
|
|
65
65
|
"@voyant-travel/db": "^0.109.4",
|
|
66
|
-
"@voyant-travel/hono": "^0.
|
|
66
|
+
"@voyant-travel/hono": "^0.120.0"
|
|
67
67
|
},
|
|
68
68
|
"devDependencies": {
|
|
69
69
|
"drizzle-kit": "^0.31.10",
|
|
70
|
-
"typescript": "^6.0.
|
|
71
|
-
"vitest": "^4.1.
|
|
70
|
+
"typescript": "^6.0.3",
|
|
71
|
+
"vitest": "^4.1.9",
|
|
72
72
|
"@voyant-travel/voyant-typescript-config": "^0.1.0"
|
|
73
73
|
},
|
|
74
74
|
"files": [
|