@voyant-travel/action-ledger 0.104.10 → 0.104.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.
@@ -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
- read: "read";
6
- create: "create";
5
+ execute: "execute";
6
+ reverse: "reverse";
7
7
  update: "update";
8
8
  delete: "delete";
9
- execute: "execute";
9
+ read: "read";
10
+ create: "create";
10
11
  approve: "approve";
11
12
  reject: "reject";
12
- reverse: "reverse";
13
13
  compensate: "compensate";
14
14
  duplicate: "duplicate";
15
15
  }>>;
@@ -76,9 +76,9 @@ export declare const actionLedgerEntryListQuerySchema: z.ZodPipe<z.ZodObject<{
76
76
  completed: "completed";
77
77
  }>>>>;
78
78
  reversalOutcome: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodArray<z.ZodEnum<{
79
- failed: "failed";
80
79
  full: "full";
81
80
  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?: "read" | "create" | "update" | "delete" | "execute" | "approve" | "reject" | "reverse" | "compensate" | "duplicate" | undefined;
104
+ actionKind?: "execute" | "reverse" | "update" | "delete" | "read" | "create" | "approve" | "reject" | "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?: ("failed" | "full" | "partial")[] | undefined;
131
+ reversalOutcome?: ("full" | "partial" | "failed")[] | 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?: "read" | "create" | "update" | "delete" | "execute" | "approve" | "reject" | "reverse" | "compensate" | "duplicate" | undefined;
140
+ actionKind?: "execute" | "reverse" | "update" | "delete" | "read" | "create" | "approve" | "reject" | "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?: ("failed" | "full" | "partial")[] | undefined;
167
+ reversalOutcome?: ("full" | "partial" | "failed")[] | undefined;
168
168
  reversesActionId?: string | undefined;
169
169
  reversedByActionId?: string | undefined;
170
170
  sensitiveReasonCode?: string | undefined;
@@ -304,14 +304,14 @@ export declare const requestActionApprovalBodySchema: z.ZodPipe<z.ZodObject<{
304
304
  actionName: z.ZodString;
305
305
  actionVersion: z.ZodDefault<z.ZodString>;
306
306
  actionKind: z.ZodEnum<{
307
- read: "read";
308
- create: "create";
307
+ execute: "execute";
308
+ reverse: "reverse";
309
309
  update: "update";
310
310
  delete: "delete";
311
- execute: "execute";
311
+ read: "read";
312
+ create: "create";
312
313
  approve: "approve";
313
314
  reject: "reject";
314
- reverse: "reverse";
315
315
  compensate: "compensate";
316
316
  duplicate: "duplicate";
317
317
  }>;
@@ -391,7 +391,7 @@ export declare const requestActionApprovalBodySchema: z.ZodPipe<z.ZodObject<{
391
391
  requestedAction: {
392
392
  actionName: string;
393
393
  actionVersion: string;
394
- actionKind: "read" | "create" | "update" | "delete" | "execute" | "approve" | "reject" | "reverse" | "compensate" | "duplicate";
394
+ actionKind: "execute" | "reverse" | "update" | "delete" | "read" | "create" | "approve" | "reject" | "compensate" | "duplicate";
395
395
  evaluatedRisk: "low" | "medium" | "high" | "critical";
396
396
  actorType: string | null;
397
397
  principalType: "user" | "api_key" | "agent" | "workflow" | "system";
@@ -424,7 +424,7 @@ export declare const requestActionApprovalBodySchema: z.ZodPipe<z.ZodObject<{
424
424
  requestedAction: {
425
425
  actionName: string;
426
426
  actionVersion: string;
427
- actionKind: "read" | "create" | "update" | "delete" | "execute" | "approve" | "reject" | "reverse" | "compensate" | "duplicate";
427
+ actionKind: "execute" | "reverse" | "update" | "delete" | "read" | "create" | "approve" | "reject" | "compensate" | "duplicate";
428
428
  evaluatedRisk: "low" | "medium" | "high" | "critical";
429
429
  actorType: string | null;
430
430
  principalType: "user" | "api_key" | "agent" | "workflow" | "system";
@@ -662,9 +662,9 @@ export declare const recordActionLedgerReversalBodySchema: z.ZodObject<{
662
662
  completed: "completed";
663
663
  }>>;
664
664
  reversalOutcome: z.ZodOptional<z.ZodEnum<{
665
- failed: "failed";
666
665
  full: "full";
667
666
  partial: "partial";
667
+ failed: "failed";
668
668
  }>>;
669
669
  }, z.core.$strip>>;
670
670
  }, z.core.$strip>;
package/dist/routes.d.ts CHANGED
@@ -118,7 +118,7 @@ export declare const actionLedgerAdminRoutes: import("hono/hono-base").HonoBase<
118
118
  id: string;
119
119
  actionName: string;
120
120
  actionVersion: string;
121
- actionKind: "read" | "create" | "update" | "delete" | "execute" | "approve" | "reject" | "reverse" | "compensate" | "duplicate";
121
+ actionKind: "execute" | "reverse" | "update" | "delete" | "read" | "create" | "approve" | "reject" | "compensate" | "duplicate";
122
122
  status: "requested" | "awaiting_approval" | "approved" | "denied" | "succeeded" | "failed" | "reversed" | "compensated" | "expired" | "cancelled" | "superseded";
123
123
  evaluatedRisk: "low" | "medium" | "high" | "critical";
124
124
  actorType: string | null;
@@ -171,7 +171,7 @@ export declare const actionLedgerAdminRoutes: import("hono/hono-base").HonoBase<
171
171
  id: string;
172
172
  actionName: string;
173
173
  actionVersion: string;
174
- actionKind: "read" | "create" | "update" | "delete" | "execute" | "approve" | "reject" | "reverse" | "compensate" | "duplicate";
174
+ actionKind: "execute" | "reverse" | "update" | "delete" | "read" | "create" | "approve" | "reject" | "compensate" | "duplicate";
175
175
  status: "requested" | "awaiting_approval" | "approved" | "denied" | "succeeded" | "failed" | "reversed" | "compensated" | "expired" | "cancelled" | "superseded";
176
176
  evaluatedRisk: "low" | "medium" | "high" | "critical";
177
177
  actorType: string | null;
@@ -258,7 +258,7 @@ export declare const actionLedgerAdminRoutes: import("hono/hono-base").HonoBase<
258
258
  id: string;
259
259
  actionName: string;
260
260
  actionVersion: string;
261
- actionKind: "read" | "create" | "update" | "delete" | "execute" | "approve" | "reject" | "reverse" | "compensate" | "duplicate";
261
+ actionKind: "execute" | "reverse" | "update" | "delete" | "read" | "create" | "approve" | "reject" | "compensate" | "duplicate";
262
262
  status: "requested" | "awaiting_approval" | "approved" | "denied" | "succeeded" | "failed" | "reversed" | "compensated" | "expired" | "cancelled" | "superseded";
263
263
  evaluatedRisk: "low" | "medium" | "high" | "critical";
264
264
  actorType: string | null;
@@ -355,7 +355,7 @@ export declare const actionLedgerAdminRoutes: import("hono/hono-base").HonoBase<
355
355
  id: string;
356
356
  actionName: string;
357
357
  actionVersion: string;
358
- actionKind: "read" | "create" | "update" | "delete" | "execute" | "approve" | "reject" | "reverse" | "compensate" | "duplicate";
358
+ actionKind: "execute" | "reverse" | "update" | "delete" | "read" | "create" | "approve" | "reject" | "compensate" | "duplicate";
359
359
  status: "requested" | "awaiting_approval" | "approved" | "denied" | "succeeded" | "failed" | "reversed" | "compensated" | "expired" | "cancelled" | "superseded";
360
360
  evaluatedRisk: "low" | "medium" | "high" | "critical";
361
361
  actorType: string | null;
@@ -397,7 +397,7 @@ export declare const actionLedgerAdminRoutes: import("hono/hono-base").HonoBase<
397
397
  reversalCommandVersion: string | null;
398
398
  reversalArgsRef: string | null;
399
399
  reversalStateProjection: "requested" | "failed" | "expired" | "not_reversible" | "available" | "running" | "completed" | null;
400
- reversalOutcomeProjection: "failed" | "full" | "partial" | null;
400
+ reversalOutcomeProjection: "full" | "partial" | "failed" | null;
401
401
  reversesActionId: string | null;
402
402
  reversedByActionIdProjection: string | null;
403
403
  } | null;
@@ -481,7 +481,7 @@ export declare const actionLedgerAdminRoutes: import("hono/hono-base").HonoBase<
481
481
  id: string;
482
482
  actionName: string;
483
483
  actionVersion: string;
484
- actionKind: "read" | "create" | "update" | "delete" | "execute" | "approve" | "reject" | "reverse" | "compensate" | "duplicate";
484
+ actionKind: "execute" | "reverse" | "update" | "delete" | "read" | "create" | "approve" | "reject" | "compensate" | "duplicate";
485
485
  status: "requested" | "awaiting_approval" | "approved" | "denied" | "succeeded" | "failed" | "reversed" | "compensated" | "expired" | "cancelled" | "superseded";
486
486
  evaluatedRisk: "low" | "medium" | "high" | "critical";
487
487
  actorType: string | null;
@@ -655,7 +655,7 @@ export declare const actionLedgerAdminRoutes: import("hono/hono-base").HonoBase<
655
655
  id: string;
656
656
  actionName: string;
657
657
  actionVersion: string;
658
- actionKind: "read" | "create" | "update" | "delete" | "execute" | "approve" | "reject" | "reverse" | "compensate" | "duplicate";
658
+ actionKind: "execute" | "reverse" | "update" | "delete" | "read" | "create" | "approve" | "reject" | "compensate" | "duplicate";
659
659
  status: "requested" | "awaiting_approval" | "approved" | "denied" | "succeeded" | "failed" | "reversed" | "compensated" | "expired" | "cancelled" | "superseded";
660
660
  evaluatedRisk: "low" | "medium" | "high" | "critical";
661
661
  actorType: string | null;
@@ -692,7 +692,7 @@ export declare const actionLedgerAdminRoutes: import("hono/hono-base").HonoBase<
692
692
  id: string;
693
693
  actionName: string;
694
694
  actionVersion: string;
695
- actionKind: "read" | "create" | "update" | "delete" | "execute" | "approve" | "reject" | "reverse" | "compensate" | "duplicate";
695
+ actionKind: "execute" | "reverse" | "update" | "delete" | "read" | "create" | "approve" | "reject" | "compensate" | "duplicate";
696
696
  status: "requested" | "awaiting_approval" | "approved" | "denied" | "succeeded" | "failed" | "reversed" | "compensated" | "expired" | "cancelled" | "superseded";
697
697
  evaluatedRisk: "low" | "medium" | "high" | "critical";
698
698
  actorType: string | null;
@@ -768,7 +768,7 @@ export declare const actionLedgerAdminRoutes: import("hono/hono-base").HonoBase<
768
768
  id: string;
769
769
  actionName: string;
770
770
  actionVersion: string;
771
- actionKind: "read" | "create" | "update" | "delete" | "execute" | "approve" | "reject" | "reverse" | "compensate" | "duplicate";
771
+ actionKind: "execute" | "reverse" | "update" | "delete" | "read" | "create" | "approve" | "reject" | "compensate" | "duplicate";
772
772
  status: "requested" | "awaiting_approval" | "approved" | "denied" | "succeeded" | "failed" | "reversed" | "compensated" | "expired" | "cancelled" | "superseded";
773
773
  evaluatedRisk: "low" | "medium" | "high" | "critical";
774
774
  actorType: string | null;
@@ -810,7 +810,7 @@ export declare const actionLedgerAdminRoutes: import("hono/hono-base").HonoBase<
810
810
  reversalCommandVersion: string | null;
811
811
  reversalArgsRef: string | null;
812
812
  reversalStateProjection: "requested" | "failed" | "expired" | "not_reversible" | "available" | "running" | "completed" | null;
813
- reversalOutcomeProjection: "failed" | "full" | "partial" | null;
813
+ reversalOutcomeProjection: "full" | "partial" | "failed" | null;
814
814
  reversesActionId: string | null;
815
815
  reversedByActionIdProjection: string | null;
816
816
  } | null;
@@ -859,14 +859,14 @@ export declare const __test__: {
859
859
  actionLedgerEntryListQuerySchema: import("zod").ZodPipe<import("zod").ZodObject<{
860
860
  actionName: import("zod").ZodOptional<import("zod").ZodString>;
861
861
  actionKind: import("zod").ZodOptional<import("zod").ZodEnum<{
862
- read: "read";
863
- create: "create";
862
+ execute: "execute";
863
+ reverse: "reverse";
864
864
  update: "update";
865
865
  delete: "delete";
866
- execute: "execute";
866
+ read: "read";
867
+ create: "create";
867
868
  approve: "approve";
868
869
  reject: "reject";
869
- reverse: "reverse";
870
870
  compensate: "compensate";
871
871
  duplicate: "duplicate";
872
872
  }>>;
@@ -933,9 +933,9 @@ export declare const __test__: {
933
933
  completed: "completed";
934
934
  }>>>>;
935
935
  reversalOutcome: import("zod").ZodPipe<import("zod").ZodTransform<unknown, unknown>, import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodEnum<{
936
- failed: "failed";
937
936
  full: "full";
938
937
  partial: "partial";
938
+ failed: "failed";
939
939
  }>>>>;
940
940
  reversesActionId: import("zod").ZodOptional<import("zod").ZodString>;
941
941
  reversedByActionId: import("zod").ZodOptional<import("zod").ZodString>;
@@ -958,7 +958,7 @@ export declare const __test__: {
958
958
  id: string;
959
959
  } | undefined;
960
960
  actionName?: string | undefined;
961
- actionKind?: "read" | "create" | "update" | "delete" | "execute" | "approve" | "reject" | "reverse" | "compensate" | "duplicate" | undefined;
961
+ actionKind?: "execute" | "reverse" | "update" | "delete" | "read" | "create" | "approve" | "reject" | "compensate" | "duplicate" | undefined;
962
962
  actorType?: string | undefined;
963
963
  principalType?: "user" | "api_key" | "agent" | "workflow" | "system" | undefined;
964
964
  principalId?: string | undefined;
@@ -985,7 +985,7 @@ export declare const __test__: {
985
985
  status?: ("requested" | "awaiting_approval" | "approved" | "denied" | "succeeded" | "failed" | "reversed" | "compensated" | "expired" | "cancelled" | "superseded")[] | undefined;
986
986
  reversalKind?: ("compensate" | "none" | "revert" | "domain_command")[] | undefined;
987
987
  reversalState?: ("requested" | "failed" | "expired" | "not_reversible" | "available" | "running" | "completed")[] | undefined;
988
- reversalOutcome?: ("failed" | "full" | "partial")[] | undefined;
988
+ reversalOutcome?: ("full" | "partial" | "failed")[] | undefined;
989
989
  reversesActionId?: string | undefined;
990
990
  reversedByActionId?: string | undefined;
991
991
  sensitiveReasonCode?: string | undefined;
@@ -994,7 +994,7 @@ export declare const __test__: {
994
994
  limit?: number | undefined;
995
995
  }, {
996
996
  actionName?: string | undefined;
997
- actionKind?: "read" | "create" | "update" | "delete" | "execute" | "approve" | "reject" | "reverse" | "compensate" | "duplicate" | undefined;
997
+ actionKind?: "execute" | "reverse" | "update" | "delete" | "read" | "create" | "approve" | "reject" | "compensate" | "duplicate" | undefined;
998
998
  actorType?: string | undefined;
999
999
  principalType?: "user" | "api_key" | "agent" | "workflow" | "system" | undefined;
1000
1000
  principalId?: string | undefined;
@@ -1021,7 +1021,7 @@ export declare const __test__: {
1021
1021
  status?: ("requested" | "awaiting_approval" | "approved" | "denied" | "succeeded" | "failed" | "reversed" | "compensated" | "expired" | "cancelled" | "superseded")[] | undefined;
1022
1022
  reversalKind?: ("compensate" | "none" | "revert" | "domain_command")[] | undefined;
1023
1023
  reversalState?: ("requested" | "failed" | "expired" | "not_reversible" | "available" | "running" | "completed")[] | undefined;
1024
- reversalOutcome?: ("failed" | "full" | "partial")[] | undefined;
1024
+ reversalOutcome?: ("full" | "partial" | "failed")[] | undefined;
1025
1025
  reversesActionId?: string | undefined;
1026
1026
  reversedByActionId?: string | undefined;
1027
1027
  sensitiveReasonCode?: string | undefined;
@@ -1303,9 +1303,9 @@ export declare const __test__: {
1303
1303
  completed: "completed";
1304
1304
  }>>;
1305
1305
  reversalOutcome: import("zod").ZodOptional<import("zod").ZodEnum<{
1306
- failed: "failed";
1307
1306
  full: "full";
1308
1307
  partial: "partial";
1308
+ failed: "failed";
1309
1309
  }>>;
1310
1310
  }, import("zod/v4/core").$strip>>;
1311
1311
  }, import("zod/v4/core").$strip>;
@@ -1314,14 +1314,14 @@ export declare const __test__: {
1314
1314
  actionName: import("zod").ZodString;
1315
1315
  actionVersion: import("zod").ZodDefault<import("zod").ZodString>;
1316
1316
  actionKind: import("zod").ZodEnum<{
1317
- read: "read";
1318
- create: "create";
1317
+ execute: "execute";
1318
+ reverse: "reverse";
1319
1319
  update: "update";
1320
1320
  delete: "delete";
1321
- execute: "execute";
1321
+ read: "read";
1322
+ create: "create";
1322
1323
  approve: "approve";
1323
1324
  reject: "reject";
1324
- reverse: "reverse";
1325
1325
  compensate: "compensate";
1326
1326
  duplicate: "duplicate";
1327
1327
  }>;
@@ -1401,7 +1401,7 @@ export declare const __test__: {
1401
1401
  requestedAction: {
1402
1402
  actionName: string;
1403
1403
  actionVersion: string;
1404
- actionKind: "read" | "create" | "update" | "delete" | "execute" | "approve" | "reject" | "reverse" | "compensate" | "duplicate";
1404
+ actionKind: "execute" | "reverse" | "update" | "delete" | "read" | "create" | "approve" | "reject" | "compensate" | "duplicate";
1405
1405
  evaluatedRisk: "low" | "medium" | "high" | "critical";
1406
1406
  actorType: string | null;
1407
1407
  principalType: "user" | "api_key" | "agent" | "workflow" | "system";
@@ -1434,7 +1434,7 @@ export declare const __test__: {
1434
1434
  requestedAction: {
1435
1435
  actionName: string;
1436
1436
  actionVersion: string;
1437
- actionKind: "read" | "create" | "update" | "delete" | "execute" | "approve" | "reject" | "reverse" | "compensate" | "duplicate";
1437
+ actionKind: "execute" | "reverse" | "update" | "delete" | "read" | "create" | "approve" | "reject" | "compensate" | "duplicate";
1438
1438
  evaluatedRisk: "low" | "medium" | "high" | "critical";
1439
1439
  actorType: string | null;
1440
1440
  principalType: "user" | "api_key" | "agent" | "workflow" | "system";
package/dist/schema.d.ts CHANGED
@@ -85,7 +85,7 @@ export declare const actionLedgerEntries: import("drizzle-orm/pg-core").PgTableW
85
85
  tableName: "action_ledger_entries";
86
86
  dataType: "string";
87
87
  columnType: "PgEnumColumn";
88
- data: "reverse" | "execute" | "delete" | "update" | "read" | "create" | "approve" | "reject" | "compensate" | "duplicate";
88
+ data: "execute" | "reverse" | "update" | "delete" | "read" | "create" | "approve" | "reject" | "compensate" | "duplicate";
89
89
  driverParam: string;
90
90
  notNull: true;
91
91
  hasDefault: false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voyant-travel/action-ledger",
3
- "version": "0.104.10",
3
+ "version": "0.104.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",
@@ -57,7 +57,7 @@
57
57
  "zod": "^4.3.6",
58
58
  "@voyant-travel/core": "^0.109.0",
59
59
  "@voyant-travel/db": "^0.108.0",
60
- "@voyant-travel/hono": "^0.109.1"
60
+ "@voyant-travel/hono": "^0.110.0"
61
61
  },
62
62
  "devDependencies": {
63
63
  "typescript": "^6.0.2",