@hyperscale0/udl 1.0.0 → 2.0.1

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.
Files changed (55) hide show
  1. package/CHANGELOG.md +23 -4
  2. package/README.md +24 -36
  3. package/conformance/invalid/invalid-journeys.expected.json +26 -0
  4. package/conformance/invalid/invalid-journeys.udl +79 -0
  5. package/conformance/valid/commerce-escrow.expected.json +1 -1
  6. package/conformance/valid/commerce-escrow.udl +1 -1
  7. package/conformance/valid/hand-edited.expected.json +1 -1
  8. package/conformance/valid/hand-edited.udl +1 -1
  9. package/conformance/valid/minimal.expected.json +1 -1
  10. package/conformance/valid/minimal.udl +23 -0
  11. package/dist/check-profiles.d.ts.map +1 -1
  12. package/dist/diagnostics.d.ts +31 -1
  13. package/dist/diagnostics.d.ts.map +1 -1
  14. package/dist/diagnostics.js +30 -0
  15. package/dist/diagnostics.js.map +1 -1
  16. package/dist/effects.d.ts.map +1 -1
  17. package/dist/evolution.js +30 -9
  18. package/dist/evolution.js.map +1 -1
  19. package/dist/finance.d.ts.map +1 -1
  20. package/dist/finance.js +37 -18
  21. package/dist/finance.js.map +1 -1
  22. package/dist/index.d.ts +3 -3
  23. package/dist/index.d.ts.map +1 -1
  24. package/dist/index.js +1 -1
  25. package/dist/index.js.map +1 -1
  26. package/dist/limits.d.ts +1 -1
  27. package/dist/limits.d.ts.map +1 -1
  28. package/dist/limits.js +7 -4
  29. package/dist/limits.js.map +1 -1
  30. package/dist/schema.d.ts +258 -147
  31. package/dist/schema.d.ts.map +1 -1
  32. package/dist/schema.js +33 -10
  33. package/dist/schema.js.map +1 -1
  34. package/dist/validation.d.ts +5 -1
  35. package/dist/validation.d.ts.map +1 -1
  36. package/dist/validation.js +176 -7
  37. package/dist/validation.js.map +1 -1
  38. package/docs/assets/udl.svg +18 -0
  39. package/docs/guide/03-laws.md +1 -1
  40. package/docs/guide/08-implementing.md +1 -1
  41. package/docs/llms-full.txt +62 -29
  42. package/docs/llms.txt +1 -1
  43. package/docs/reference/clauses.md +29 -1
  44. package/docs/reference/cli.md +1 -1
  45. package/docs/reference/diagnostics.md +32 -27
  46. package/package.json +6 -5
  47. package/spec/README.md +8 -16
  48. package/spec/udl.schema.json +83 -15
  49. package/src/diagnostics.ts +32 -0
  50. package/src/evolution.ts +31 -13
  51. package/src/finance.ts +53 -20
  52. package/src/index.ts +6 -0
  53. package/src/limits.ts +7 -4
  54. package/src/schema.ts +48 -10
  55. package/src/validation.ts +252 -6
package/dist/schema.d.ts CHANGED
@@ -4,33 +4,33 @@ export declare const UDL_FORMAT_VERSION: 1;
4
4
  export declare const udlPublicActionSchema: z.ZodString;
5
5
  export declare const udlInstrumentActionIdSchema: z.ZodString;
6
6
  export declare const udlProviderFamilyIdSchema: z.ZodEnum<{
7
- national_identity: "national_identity";
8
- identity_verification: "identity_verification";
9
- credit_bureau: "credit_bureau";
10
- sanctions_screening: "sanctions_screening";
11
- enforcement_instrument: "enforcement_instrument";
12
7
  accounts_ledger_first_party: "accounts_ledger_first_party";
13
- credit_servicing: "credit_servicing";
14
- collections_agency: "collections_agency";
15
- settlement_ingestion: "settlement_ingestion";
16
- payouts: "payouts";
8
+ air_carrier: "air_carrier";
17
9
  banking_or_card_issuing: "banking_or_card_issuing";
10
+ collections_agency: "collections_agency";
11
+ credit_bureau: "credit_bureau";
12
+ credit_servicing: "credit_servicing";
13
+ email_or_notification: "email_or_notification";
14
+ enforcement_instrument: "enforcement_instrument";
15
+ identity_verification: "identity_verification";
18
16
  insurance_carrier: "insurance_carrier";
19
17
  insurance_claims_adjuster: "insurance_claims_adjuster";
20
- air_carrier: "air_carrier";
21
18
  lodging_supplier: "lodging_supplier";
22
- email_or_notification: "email_or_notification";
19
+ national_identity: "national_identity";
20
+ payouts: "payouts";
21
+ sanctions_screening: "sanctions_screening";
22
+ settlement_ingestion: "settlement_ingestion";
23
23
  }>;
24
24
  declare const udlDeclaredValuePolicySchema: z.ZodEnum<{
25
+ none: "none";
25
26
  optional: "optional";
26
27
  required: "required";
27
- none: "none";
28
28
  }>;
29
29
  declare const udlSubjectSchema: z.ZodObject<{
30
30
  declaredValue: z.ZodEnum<{
31
+ none: "none";
31
32
  optional: "optional";
32
33
  required: "required";
33
- none: "none";
34
34
  }>;
35
35
  kind: z.ZodString;
36
36
  schema: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
@@ -46,6 +46,23 @@ declare const udlExampleSchema: z.ZodObject<{
46
46
  name: z.ZodString;
47
47
  output: z.ZodOptional<z.ZodJSONSchema>;
48
48
  }, z.core.$strict>;
49
+ declare const udlJourneyStepSchema: z.ZodObject<{
50
+ bind: z.ZodRecord<z.ZodString, z.ZodString>;
51
+ example: z.ZodString;
52
+ id: z.ZodOptional<z.ZodString>;
53
+ operation: z.ZodString;
54
+ }, z.core.$strict>;
55
+ export declare const udlJourneySchema: z.ZodObject<{
56
+ id: z.ZodString;
57
+ label: z.ZodString;
58
+ steps: z.ZodArray<z.ZodObject<{
59
+ bind: z.ZodRecord<z.ZodString, z.ZodString>;
60
+ example: z.ZodString;
61
+ id: z.ZodOptional<z.ZodString>;
62
+ operation: z.ZodString;
63
+ }, z.core.$strict>>;
64
+ summary: z.ZodString;
65
+ }, z.core.$strict>;
49
66
  declare const udlLifecycleTransitionSchema: z.ZodObject<{
50
67
  from: z.ZodArray<z.ZodString>;
51
68
  to: z.ZodString;
@@ -58,8 +75,37 @@ declare const udlLifecycleSchema: z.ZodObject<{
58
75
  to: z.ZodString;
59
76
  }, z.core.$strict>>;
60
77
  }, z.core.$strict>;
78
+ declare const udlDateComparisonOperatorSchema: z.ZodEnum<{
79
+ "<": "<";
80
+ "<=": "<=";
81
+ "==": "==";
82
+ ">": ">";
83
+ ">=": ">=";
84
+ }>;
85
+ declare const udlDateComparisonSchema: z.ZodObject<{
86
+ localPath: z.ZodString;
87
+ operator: z.ZodEnum<{
88
+ "<": "<";
89
+ "<=": "<=";
90
+ "==": "==";
91
+ ">": ">";
92
+ ">=": ">=";
93
+ }>;
94
+ referencedPath: z.ZodString;
95
+ }, z.core.$strict>;
61
96
  declare const udlGateSchema: z.ZodObject<{
62
97
  bind: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
98
+ dateComparison: z.ZodOptional<z.ZodObject<{
99
+ localPath: z.ZodString;
100
+ operator: z.ZodEnum<{
101
+ "<": "<";
102
+ "<=": "<=";
103
+ "==": "==";
104
+ ">": ">";
105
+ ">=": ">=";
106
+ }>;
107
+ referencedPath: z.ZodString;
108
+ }, z.core.$strict>>;
63
109
  field: z.ZodString;
64
110
  match: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
65
111
  optional: z.ZodOptional<z.ZodLiteral<true>>;
@@ -77,12 +123,12 @@ declare const udlBindingSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
77
123
  path: z.ZodString;
78
124
  }, z.core.$strict>], "from">;
79
125
  export declare const udlKernelOperationSchema: z.ZodEnum<{
80
- "internal_transfer.reserve": "internal_transfer.reserve";
81
126
  "account.escrow.provision": "account.escrow.provision";
82
127
  "account.freeze": "account.freeze";
83
128
  "account.unfreeze": "account.unfreeze";
84
129
  "internal_transfer.create": "internal_transfer.create";
85
130
  "internal_transfer.post": "internal_transfer.post";
131
+ "internal_transfer.reserve": "internal_transfer.reserve";
86
132
  "internal_transfer.void": "internal_transfer.void";
87
133
  }>;
88
134
  declare const udlStepSchema: z.ZodObject<{
@@ -117,9 +163,9 @@ declare const udlMoveSchema: z.ZodObject<{
117
163
  capture: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
118
164
  key: z.ZodString;
119
165
  operation: z.ZodEnum<{
120
- "internal_transfer.reserve": "internal_transfer.reserve";
121
166
  "internal_transfer.create": "internal_transfer.create";
122
167
  "internal_transfer.post": "internal_transfer.post";
168
+ "internal_transfer.reserve": "internal_transfer.reserve";
123
169
  "internal_transfer.void": "internal_transfer.void";
124
170
  }>;
125
171
  }, z.core.$strict>;
@@ -192,22 +238,22 @@ export declare function quoteSeededRefKeys(quote: {
192
238
  }): readonly string[];
193
239
  declare const udlDecisionSchema: z.ZodObject<{
194
240
  capability: z.ZodEnum<{
195
- national_identity: "national_identity";
196
- identity_verification: "identity_verification";
197
- credit_bureau: "credit_bureau";
198
- sanctions_screening: "sanctions_screening";
199
- enforcement_instrument: "enforcement_instrument";
200
241
  accounts_ledger_first_party: "accounts_ledger_first_party";
201
- credit_servicing: "credit_servicing";
202
- collections_agency: "collections_agency";
203
- settlement_ingestion: "settlement_ingestion";
204
- payouts: "payouts";
242
+ air_carrier: "air_carrier";
205
243
  banking_or_card_issuing: "banking_or_card_issuing";
244
+ collections_agency: "collections_agency";
245
+ credit_bureau: "credit_bureau";
246
+ credit_servicing: "credit_servicing";
247
+ email_or_notification: "email_or_notification";
248
+ enforcement_instrument: "enforcement_instrument";
249
+ identity_verification: "identity_verification";
206
250
  insurance_carrier: "insurance_carrier";
207
251
  insurance_claims_adjuster: "insurance_claims_adjuster";
208
- air_carrier: "air_carrier";
209
252
  lodging_supplier: "lodging_supplier";
210
- email_or_notification: "email_or_notification";
253
+ national_identity: "national_identity";
254
+ payouts: "payouts";
255
+ sanctions_screening: "sanctions_screening";
256
+ settlement_ingestion: "settlement_ingestion";
211
257
  }>;
212
258
  deadlineMs: z.ZodNumber;
213
259
  onTimeout: z.ZodLiteral<"decline">;
@@ -431,22 +477,22 @@ declare const udlActionShape: {
431
477
  }, z.core.$strict>>;
432
478
  decision: z.ZodOptional<z.ZodObject<{
433
479
  capability: z.ZodEnum<{
434
- national_identity: "national_identity";
435
- identity_verification: "identity_verification";
436
- credit_bureau: "credit_bureau";
437
- sanctions_screening: "sanctions_screening";
438
- enforcement_instrument: "enforcement_instrument";
439
480
  accounts_ledger_first_party: "accounts_ledger_first_party";
440
- credit_servicing: "credit_servicing";
441
- collections_agency: "collections_agency";
442
- settlement_ingestion: "settlement_ingestion";
443
- payouts: "payouts";
481
+ air_carrier: "air_carrier";
444
482
  banking_or_card_issuing: "banking_or_card_issuing";
483
+ collections_agency: "collections_agency";
484
+ credit_bureau: "credit_bureau";
485
+ credit_servicing: "credit_servicing";
486
+ email_or_notification: "email_or_notification";
487
+ enforcement_instrument: "enforcement_instrument";
488
+ identity_verification: "identity_verification";
445
489
  insurance_carrier: "insurance_carrier";
446
490
  insurance_claims_adjuster: "insurance_claims_adjuster";
447
- air_carrier: "air_carrier";
448
491
  lodging_supplier: "lodging_supplier";
449
- email_or_notification: "email_or_notification";
492
+ national_identity: "national_identity";
493
+ payouts: "payouts";
494
+ sanctions_screening: "sanctions_screening";
495
+ settlement_ingestion: "settlement_ingestion";
450
496
  }>;
451
497
  deadlineMs: z.ZodNumber;
452
498
  onTimeout: z.ZodLiteral<"decline">;
@@ -541,9 +587,9 @@ declare const udlActionShape: {
541
587
  capture: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
542
588
  key: z.ZodString;
543
589
  operation: z.ZodEnum<{
544
- "internal_transfer.reserve": "internal_transfer.reserve";
545
590
  "internal_transfer.create": "internal_transfer.create";
546
591
  "internal_transfer.post": "internal_transfer.post";
592
+ "internal_transfer.reserve": "internal_transfer.reserve";
547
593
  "internal_transfer.void": "internal_transfer.void";
548
594
  }>;
549
595
  }, z.core.$strict>>>;
@@ -557,11 +603,7 @@ declare const udlActionShape: {
557
603
  speed: z.ZodLiteral<"standard">;
558
604
  }, z.core.$strict>>;
559
605
  port: z.ZodOptional<z.ZodObject<{
560
- allowedParties: z.ZodArray<z.ZodEnum<{
561
- payer: "payer";
562
- beneficiary: "beneficiary";
563
- subjectHolder: "subjectHolder";
564
- }>>;
606
+ allowedParties: z.ZodArray<z.ZodString>;
565
607
  }, z.core.$strict>>;
566
608
  quote: z.ZodOptional<z.ZodObject<{
567
609
  anchorField: z.ZodOptional<z.ZodString>;
@@ -683,6 +725,17 @@ declare const udlActionShape: {
683
725
  }, z.core.$strict>>>;
684
726
  requiresRefs: z.ZodOptional<z.ZodArray<z.ZodObject<{
685
727
  bind: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
728
+ dateComparison: z.ZodOptional<z.ZodObject<{
729
+ localPath: z.ZodString;
730
+ operator: z.ZodEnum<{
731
+ "<": "<";
732
+ "<=": "<=";
733
+ "==": "==";
734
+ ">": ">";
735
+ ">=": ">=";
736
+ }>;
737
+ referencedPath: z.ZodString;
738
+ }, z.core.$strict>>;
686
739
  field: z.ZodString;
687
740
  match: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
688
741
  optional: z.ZodOptional<z.ZodLiteral<true>>;
@@ -753,22 +806,22 @@ declare const udlActionSchema: z.ZodObject<{
753
806
  }, z.core.$strict>>;
754
807
  decision: z.ZodOptional<z.ZodObject<{
755
808
  capability: z.ZodEnum<{
756
- national_identity: "national_identity";
757
- identity_verification: "identity_verification";
758
- credit_bureau: "credit_bureau";
759
- sanctions_screening: "sanctions_screening";
760
- enforcement_instrument: "enforcement_instrument";
761
809
  accounts_ledger_first_party: "accounts_ledger_first_party";
762
- credit_servicing: "credit_servicing";
763
- collections_agency: "collections_agency";
764
- settlement_ingestion: "settlement_ingestion";
765
- payouts: "payouts";
810
+ air_carrier: "air_carrier";
766
811
  banking_or_card_issuing: "banking_or_card_issuing";
812
+ collections_agency: "collections_agency";
813
+ credit_bureau: "credit_bureau";
814
+ credit_servicing: "credit_servicing";
815
+ email_or_notification: "email_or_notification";
816
+ enforcement_instrument: "enforcement_instrument";
817
+ identity_verification: "identity_verification";
767
818
  insurance_carrier: "insurance_carrier";
768
819
  insurance_claims_adjuster: "insurance_claims_adjuster";
769
- air_carrier: "air_carrier";
770
820
  lodging_supplier: "lodging_supplier";
771
- email_or_notification: "email_or_notification";
821
+ national_identity: "national_identity";
822
+ payouts: "payouts";
823
+ sanctions_screening: "sanctions_screening";
824
+ settlement_ingestion: "settlement_ingestion";
772
825
  }>;
773
826
  deadlineMs: z.ZodNumber;
774
827
  onTimeout: z.ZodLiteral<"decline">;
@@ -863,9 +916,9 @@ declare const udlActionSchema: z.ZodObject<{
863
916
  capture: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
864
917
  key: z.ZodString;
865
918
  operation: z.ZodEnum<{
866
- "internal_transfer.reserve": "internal_transfer.reserve";
867
919
  "internal_transfer.create": "internal_transfer.create";
868
920
  "internal_transfer.post": "internal_transfer.post";
921
+ "internal_transfer.reserve": "internal_transfer.reserve";
869
922
  "internal_transfer.void": "internal_transfer.void";
870
923
  }>;
871
924
  }, z.core.$strict>>>;
@@ -879,11 +932,7 @@ declare const udlActionSchema: z.ZodObject<{
879
932
  speed: z.ZodLiteral<"standard">;
880
933
  }, z.core.$strict>>;
881
934
  port: z.ZodOptional<z.ZodObject<{
882
- allowedParties: z.ZodArray<z.ZodEnum<{
883
- payer: "payer";
884
- beneficiary: "beneficiary";
885
- subjectHolder: "subjectHolder";
886
- }>>;
935
+ allowedParties: z.ZodArray<z.ZodString>;
887
936
  }, z.core.$strict>>;
888
937
  quote: z.ZodOptional<z.ZodObject<{
889
938
  anchorField: z.ZodOptional<z.ZodString>;
@@ -1005,6 +1054,17 @@ declare const udlActionSchema: z.ZodObject<{
1005
1054
  }, z.core.$strict>>>;
1006
1055
  requiresRefs: z.ZodOptional<z.ZodArray<z.ZodObject<{
1007
1056
  bind: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1057
+ dateComparison: z.ZodOptional<z.ZodObject<{
1058
+ localPath: z.ZodString;
1059
+ operator: z.ZodEnum<{
1060
+ "<": "<";
1061
+ "<=": "<=";
1062
+ "==": "==";
1063
+ ">": ">";
1064
+ ">=": ">=";
1065
+ }>;
1066
+ referencedPath: z.ZodString;
1067
+ }, z.core.$strict>>;
1008
1068
  field: z.ZodString;
1009
1069
  match: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1010
1070
  optional: z.ZodOptional<z.ZodLiteral<true>>;
@@ -1061,41 +1121,41 @@ declare const udlActionSchema: z.ZodObject<{
1061
1121
  updates: z.ZodOptional<z.ZodArray<z.ZodString>>;
1062
1122
  }, z.core.$strict>;
1063
1123
  declare const udlAggregateSchema: z.ZodUnion<readonly [z.ZodObject<{
1064
- childField: z.ZodString;
1065
1124
  childInstrumentId: z.ZodString;
1066
1125
  childRefField: z.ZodString;
1067
1126
  childStatuses: z.ZodArray<z.ZodString>;
1068
1127
  parentField: z.ZodString;
1128
+ childField: z.ZodString;
1069
1129
  }, z.core.$strict>, z.ZodObject<{
1130
+ childInstrumentId: z.ZodString;
1131
+ childRefField: z.ZodString;
1132
+ childStatuses: z.ZodArray<z.ZodString>;
1133
+ parentField: z.ZodString;
1070
1134
  count: z.ZodLiteral<true>;
1071
1135
  window: z.ZodOptional<z.ZodObject<{
1072
1136
  field: z.ZodString;
1073
1137
  days: z.ZodNumber;
1074
1138
  }, z.core.$strict>>;
1075
- childInstrumentId: z.ZodString;
1076
- childRefField: z.ZodString;
1077
- childStatuses: z.ZodArray<z.ZodString>;
1078
- parentField: z.ZodString;
1079
1139
  }, z.core.$strict>]>;
1080
1140
  declare const udlInstrumentShape: {
1081
1141
  actionOrder: z.ZodArray<z.ZodString>;
1082
1142
  agentDescription: z.ZodOptional<z.ZodString>;
1083
1143
  aggregateInvariants: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1084
- childField: z.ZodString;
1085
1144
  childInstrumentId: z.ZodString;
1086
1145
  childRefField: z.ZodString;
1087
1146
  childStatuses: z.ZodArray<z.ZodString>;
1088
1147
  parentField: z.ZodString;
1148
+ childField: z.ZodString;
1089
1149
  }, z.core.$strict>, z.ZodObject<{
1150
+ childInstrumentId: z.ZodString;
1151
+ childRefField: z.ZodString;
1152
+ childStatuses: z.ZodArray<z.ZodString>;
1153
+ parentField: z.ZodString;
1090
1154
  count: z.ZodLiteral<true>;
1091
1155
  window: z.ZodOptional<z.ZodObject<{
1092
1156
  field: z.ZodString;
1093
1157
  days: z.ZodNumber;
1094
1158
  }, z.core.$strict>>;
1095
- childInstrumentId: z.ZodString;
1096
- childRefField: z.ZodString;
1097
- childStatuses: z.ZodArray<z.ZodString>;
1098
- parentField: z.ZodString;
1099
1159
  }, z.core.$strict>]>>>;
1100
1160
  callerParkedStates: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1101
1161
  description: z.ZodOptional<z.ZodString>;
@@ -1179,12 +1239,19 @@ declare const udlInstrumentShape: {
1179
1239
  to: z.ZodString;
1180
1240
  }, z.core.$strict>>;
1181
1241
  }, z.core.$strict>;
1242
+ journeys: z.ZodOptional<z.ZodArray<z.ZodObject<{
1243
+ id: z.ZodString;
1244
+ label: z.ZodString;
1245
+ steps: z.ZodArray<z.ZodObject<{
1246
+ bind: z.ZodRecord<z.ZodString, z.ZodString>;
1247
+ example: z.ZodString;
1248
+ id: z.ZodOptional<z.ZodString>;
1249
+ operation: z.ZodString;
1250
+ }, z.core.$strict>>;
1251
+ summary: z.ZodString;
1252
+ }, z.core.$strict>>>;
1182
1253
  nav: z.ZodOptional<z.ZodArray<z.ZodString>>;
1183
- parties: z.ZodOptional<z.ZodObject<{
1184
- beneficiary: z.ZodOptional<z.ZodString>;
1185
- payer: z.ZodOptional<z.ZodString>;
1186
- subjectHolder: z.ZodOptional<z.ZodString>;
1187
- }, z.core.$strict>>;
1254
+ parties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1188
1255
  partitions: z.ZodOptional<z.ZodArray<z.ZodObject<{
1189
1256
  pieceFields: z.ZodArray<z.ZodString>;
1190
1257
  totalField: z.ZodString;
@@ -1226,22 +1293,22 @@ declare const udlInstrumentShape: {
1226
1293
  }, z.core.$strict>>;
1227
1294
  decision: z.ZodOptional<z.ZodObject<{
1228
1295
  capability: z.ZodEnum<{
1229
- national_identity: "national_identity";
1230
- identity_verification: "identity_verification";
1231
- credit_bureau: "credit_bureau";
1232
- sanctions_screening: "sanctions_screening";
1233
- enforcement_instrument: "enforcement_instrument";
1234
1296
  accounts_ledger_first_party: "accounts_ledger_first_party";
1235
- credit_servicing: "credit_servicing";
1236
- collections_agency: "collections_agency";
1237
- settlement_ingestion: "settlement_ingestion";
1238
- payouts: "payouts";
1297
+ air_carrier: "air_carrier";
1239
1298
  banking_or_card_issuing: "banking_or_card_issuing";
1299
+ collections_agency: "collections_agency";
1300
+ credit_bureau: "credit_bureau";
1301
+ credit_servicing: "credit_servicing";
1302
+ email_or_notification: "email_or_notification";
1303
+ enforcement_instrument: "enforcement_instrument";
1304
+ identity_verification: "identity_verification";
1240
1305
  insurance_carrier: "insurance_carrier";
1241
1306
  insurance_claims_adjuster: "insurance_claims_adjuster";
1242
- air_carrier: "air_carrier";
1243
1307
  lodging_supplier: "lodging_supplier";
1244
- email_or_notification: "email_or_notification";
1308
+ national_identity: "national_identity";
1309
+ payouts: "payouts";
1310
+ sanctions_screening: "sanctions_screening";
1311
+ settlement_ingestion: "settlement_ingestion";
1245
1312
  }>;
1246
1313
  deadlineMs: z.ZodNumber;
1247
1314
  onTimeout: z.ZodLiteral<"decline">;
@@ -1336,9 +1403,9 @@ declare const udlInstrumentShape: {
1336
1403
  capture: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1337
1404
  key: z.ZodString;
1338
1405
  operation: z.ZodEnum<{
1339
- "internal_transfer.reserve": "internal_transfer.reserve";
1340
1406
  "internal_transfer.create": "internal_transfer.create";
1341
1407
  "internal_transfer.post": "internal_transfer.post";
1408
+ "internal_transfer.reserve": "internal_transfer.reserve";
1342
1409
  "internal_transfer.void": "internal_transfer.void";
1343
1410
  }>;
1344
1411
  }, z.core.$strict>>>;
@@ -1352,11 +1419,7 @@ declare const udlInstrumentShape: {
1352
1419
  speed: z.ZodLiteral<"standard">;
1353
1420
  }, z.core.$strict>>;
1354
1421
  port: z.ZodOptional<z.ZodObject<{
1355
- allowedParties: z.ZodArray<z.ZodEnum<{
1356
- payer: "payer";
1357
- beneficiary: "beneficiary";
1358
- subjectHolder: "subjectHolder";
1359
- }>>;
1422
+ allowedParties: z.ZodArray<z.ZodString>;
1360
1423
  }, z.core.$strict>>;
1361
1424
  quote: z.ZodOptional<z.ZodObject<{
1362
1425
  anchorField: z.ZodOptional<z.ZodString>;
@@ -1478,6 +1541,17 @@ declare const udlInstrumentShape: {
1478
1541
  }, z.core.$strict>>>;
1479
1542
  requiresRefs: z.ZodOptional<z.ZodArray<z.ZodObject<{
1480
1543
  bind: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1544
+ dateComparison: z.ZodOptional<z.ZodObject<{
1545
+ localPath: z.ZodString;
1546
+ operator: z.ZodEnum<{
1547
+ "<": "<";
1548
+ "<=": "<=";
1549
+ "==": "==";
1550
+ ">": ">";
1551
+ ">=": ">=";
1552
+ }>;
1553
+ referencedPath: z.ZodString;
1554
+ }, z.core.$strict>>;
1481
1555
  field: z.ZodString;
1482
1556
  match: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1483
1557
  optional: z.ZodOptional<z.ZodLiteral<true>>;
@@ -1538,21 +1612,21 @@ declare const udlInstrumentSchema: z.ZodObject<{
1538
1612
  actionOrder: z.ZodArray<z.ZodString>;
1539
1613
  agentDescription: z.ZodOptional<z.ZodString>;
1540
1614
  aggregateInvariants: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1541
- childField: z.ZodString;
1542
1615
  childInstrumentId: z.ZodString;
1543
1616
  childRefField: z.ZodString;
1544
1617
  childStatuses: z.ZodArray<z.ZodString>;
1545
1618
  parentField: z.ZodString;
1619
+ childField: z.ZodString;
1546
1620
  }, z.core.$strict>, z.ZodObject<{
1621
+ childInstrumentId: z.ZodString;
1622
+ childRefField: z.ZodString;
1623
+ childStatuses: z.ZodArray<z.ZodString>;
1624
+ parentField: z.ZodString;
1547
1625
  count: z.ZodLiteral<true>;
1548
1626
  window: z.ZodOptional<z.ZodObject<{
1549
1627
  field: z.ZodString;
1550
1628
  days: z.ZodNumber;
1551
1629
  }, z.core.$strict>>;
1552
- childInstrumentId: z.ZodString;
1553
- childRefField: z.ZodString;
1554
- childStatuses: z.ZodArray<z.ZodString>;
1555
- parentField: z.ZodString;
1556
1630
  }, z.core.$strict>]>>>;
1557
1631
  callerParkedStates: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1558
1632
  description: z.ZodOptional<z.ZodString>;
@@ -1636,12 +1710,19 @@ declare const udlInstrumentSchema: z.ZodObject<{
1636
1710
  to: z.ZodString;
1637
1711
  }, z.core.$strict>>;
1638
1712
  }, z.core.$strict>;
1713
+ journeys: z.ZodOptional<z.ZodArray<z.ZodObject<{
1714
+ id: z.ZodString;
1715
+ label: z.ZodString;
1716
+ steps: z.ZodArray<z.ZodObject<{
1717
+ bind: z.ZodRecord<z.ZodString, z.ZodString>;
1718
+ example: z.ZodString;
1719
+ id: z.ZodOptional<z.ZodString>;
1720
+ operation: z.ZodString;
1721
+ }, z.core.$strict>>;
1722
+ summary: z.ZodString;
1723
+ }, z.core.$strict>>>;
1639
1724
  nav: z.ZodOptional<z.ZodArray<z.ZodString>>;
1640
- parties: z.ZodOptional<z.ZodObject<{
1641
- beneficiary: z.ZodOptional<z.ZodString>;
1642
- payer: z.ZodOptional<z.ZodString>;
1643
- subjectHolder: z.ZodOptional<z.ZodString>;
1644
- }, z.core.$strict>>;
1725
+ parties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1645
1726
  partitions: z.ZodOptional<z.ZodArray<z.ZodObject<{
1646
1727
  pieceFields: z.ZodArray<z.ZodString>;
1647
1728
  totalField: z.ZodString;
@@ -1683,22 +1764,22 @@ declare const udlInstrumentSchema: z.ZodObject<{
1683
1764
  }, z.core.$strict>>;
1684
1765
  decision: z.ZodOptional<z.ZodObject<{
1685
1766
  capability: z.ZodEnum<{
1686
- national_identity: "national_identity";
1687
- identity_verification: "identity_verification";
1688
- credit_bureau: "credit_bureau";
1689
- sanctions_screening: "sanctions_screening";
1690
- enforcement_instrument: "enforcement_instrument";
1691
1767
  accounts_ledger_first_party: "accounts_ledger_first_party";
1692
- credit_servicing: "credit_servicing";
1693
- collections_agency: "collections_agency";
1694
- settlement_ingestion: "settlement_ingestion";
1695
- payouts: "payouts";
1768
+ air_carrier: "air_carrier";
1696
1769
  banking_or_card_issuing: "banking_or_card_issuing";
1770
+ collections_agency: "collections_agency";
1771
+ credit_bureau: "credit_bureau";
1772
+ credit_servicing: "credit_servicing";
1773
+ email_or_notification: "email_or_notification";
1774
+ enforcement_instrument: "enforcement_instrument";
1775
+ identity_verification: "identity_verification";
1697
1776
  insurance_carrier: "insurance_carrier";
1698
1777
  insurance_claims_adjuster: "insurance_claims_adjuster";
1699
- air_carrier: "air_carrier";
1700
1778
  lodging_supplier: "lodging_supplier";
1701
- email_or_notification: "email_or_notification";
1779
+ national_identity: "national_identity";
1780
+ payouts: "payouts";
1781
+ sanctions_screening: "sanctions_screening";
1782
+ settlement_ingestion: "settlement_ingestion";
1702
1783
  }>;
1703
1784
  deadlineMs: z.ZodNumber;
1704
1785
  onTimeout: z.ZodLiteral<"decline">;
@@ -1793,9 +1874,9 @@ declare const udlInstrumentSchema: z.ZodObject<{
1793
1874
  capture: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1794
1875
  key: z.ZodString;
1795
1876
  operation: z.ZodEnum<{
1796
- "internal_transfer.reserve": "internal_transfer.reserve";
1797
1877
  "internal_transfer.create": "internal_transfer.create";
1798
1878
  "internal_transfer.post": "internal_transfer.post";
1879
+ "internal_transfer.reserve": "internal_transfer.reserve";
1799
1880
  "internal_transfer.void": "internal_transfer.void";
1800
1881
  }>;
1801
1882
  }, z.core.$strict>>>;
@@ -1809,11 +1890,7 @@ declare const udlInstrumentSchema: z.ZodObject<{
1809
1890
  speed: z.ZodLiteral<"standard">;
1810
1891
  }, z.core.$strict>>;
1811
1892
  port: z.ZodOptional<z.ZodObject<{
1812
- allowedParties: z.ZodArray<z.ZodEnum<{
1813
- payer: "payer";
1814
- beneficiary: "beneficiary";
1815
- subjectHolder: "subjectHolder";
1816
- }>>;
1893
+ allowedParties: z.ZodArray<z.ZodString>;
1817
1894
  }, z.core.$strict>>;
1818
1895
  quote: z.ZodOptional<z.ZodObject<{
1819
1896
  anchorField: z.ZodOptional<z.ZodString>;
@@ -1935,6 +2012,17 @@ declare const udlInstrumentSchema: z.ZodObject<{
1935
2012
  }, z.core.$strict>>>;
1936
2013
  requiresRefs: z.ZodOptional<z.ZodArray<z.ZodObject<{
1937
2014
  bind: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2015
+ dateComparison: z.ZodOptional<z.ZodObject<{
2016
+ localPath: z.ZodString;
2017
+ operator: z.ZodEnum<{
2018
+ "<": "<";
2019
+ "<=": "<=";
2020
+ "==": "==";
2021
+ ">": ">";
2022
+ ">=": ">=";
2023
+ }>;
2024
+ referencedPath: z.ZodString;
2025
+ }, z.core.$strict>>;
1938
2026
  field: z.ZodString;
1939
2027
  match: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1940
2028
  optional: z.ZodOptional<z.ZodLiteral<true>>;
@@ -2335,6 +2423,11 @@ export declare const udlClauseVocabulary: readonly [{
2335
2423
  readonly scope: "instrument";
2336
2424
  readonly spelling: "id prefix";
2337
2425
  readonly target: "idPrefix";
2426
+ }, {
2427
+ readonly cardinality: "many";
2428
+ readonly scope: "instrument";
2429
+ readonly spelling: "journeys";
2430
+ readonly target: "journeys";
2338
2431
  }, {
2339
2432
  readonly cardinality: "many";
2340
2433
  readonly scope: "instrument";
@@ -2388,21 +2481,21 @@ export declare const udlDocumentSchema: z.ZodObject<{
2388
2481
  actionOrder: z.ZodArray<z.ZodString>;
2389
2482
  agentDescription: z.ZodOptional<z.ZodString>;
2390
2483
  aggregateInvariants: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
2391
- childField: z.ZodString;
2392
2484
  childInstrumentId: z.ZodString;
2393
2485
  childRefField: z.ZodString;
2394
2486
  childStatuses: z.ZodArray<z.ZodString>;
2395
2487
  parentField: z.ZodString;
2488
+ childField: z.ZodString;
2396
2489
  }, z.core.$strict>, z.ZodObject<{
2490
+ childInstrumentId: z.ZodString;
2491
+ childRefField: z.ZodString;
2492
+ childStatuses: z.ZodArray<z.ZodString>;
2493
+ parentField: z.ZodString;
2397
2494
  count: z.ZodLiteral<true>;
2398
2495
  window: z.ZodOptional<z.ZodObject<{
2399
2496
  field: z.ZodString;
2400
2497
  days: z.ZodNumber;
2401
2498
  }, z.core.$strict>>;
2402
- childInstrumentId: z.ZodString;
2403
- childRefField: z.ZodString;
2404
- childStatuses: z.ZodArray<z.ZodString>;
2405
- parentField: z.ZodString;
2406
2499
  }, z.core.$strict>]>>>;
2407
2500
  callerParkedStates: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2408
2501
  description: z.ZodOptional<z.ZodString>;
@@ -2486,12 +2579,19 @@ export declare const udlDocumentSchema: z.ZodObject<{
2486
2579
  to: z.ZodString;
2487
2580
  }, z.core.$strict>>;
2488
2581
  }, z.core.$strict>;
2582
+ journeys: z.ZodOptional<z.ZodArray<z.ZodObject<{
2583
+ id: z.ZodString;
2584
+ label: z.ZodString;
2585
+ steps: z.ZodArray<z.ZodObject<{
2586
+ bind: z.ZodRecord<z.ZodString, z.ZodString>;
2587
+ example: z.ZodString;
2588
+ id: z.ZodOptional<z.ZodString>;
2589
+ operation: z.ZodString;
2590
+ }, z.core.$strict>>;
2591
+ summary: z.ZodString;
2592
+ }, z.core.$strict>>>;
2489
2593
  nav: z.ZodOptional<z.ZodArray<z.ZodString>>;
2490
- parties: z.ZodOptional<z.ZodObject<{
2491
- beneficiary: z.ZodOptional<z.ZodString>;
2492
- payer: z.ZodOptional<z.ZodString>;
2493
- subjectHolder: z.ZodOptional<z.ZodString>;
2494
- }, z.core.$strict>>;
2594
+ parties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2495
2595
  partitions: z.ZodOptional<z.ZodArray<z.ZodObject<{
2496
2596
  pieceFields: z.ZodArray<z.ZodString>;
2497
2597
  totalField: z.ZodString;
@@ -2533,22 +2633,22 @@ export declare const udlDocumentSchema: z.ZodObject<{
2533
2633
  }, z.core.$strict>>;
2534
2634
  decision: z.ZodOptional<z.ZodObject<{
2535
2635
  capability: z.ZodEnum<{
2536
- national_identity: "national_identity";
2537
- identity_verification: "identity_verification";
2538
- credit_bureau: "credit_bureau";
2539
- sanctions_screening: "sanctions_screening";
2540
- enforcement_instrument: "enforcement_instrument";
2541
2636
  accounts_ledger_first_party: "accounts_ledger_first_party";
2542
- credit_servicing: "credit_servicing";
2543
- collections_agency: "collections_agency";
2544
- settlement_ingestion: "settlement_ingestion";
2545
- payouts: "payouts";
2637
+ air_carrier: "air_carrier";
2546
2638
  banking_or_card_issuing: "banking_or_card_issuing";
2639
+ collections_agency: "collections_agency";
2640
+ credit_bureau: "credit_bureau";
2641
+ credit_servicing: "credit_servicing";
2642
+ email_or_notification: "email_or_notification";
2643
+ enforcement_instrument: "enforcement_instrument";
2644
+ identity_verification: "identity_verification";
2547
2645
  insurance_carrier: "insurance_carrier";
2548
2646
  insurance_claims_adjuster: "insurance_claims_adjuster";
2549
- air_carrier: "air_carrier";
2550
2647
  lodging_supplier: "lodging_supplier";
2551
- email_or_notification: "email_or_notification";
2648
+ national_identity: "national_identity";
2649
+ payouts: "payouts";
2650
+ sanctions_screening: "sanctions_screening";
2651
+ settlement_ingestion: "settlement_ingestion";
2552
2652
  }>;
2553
2653
  deadlineMs: z.ZodNumber;
2554
2654
  onTimeout: z.ZodLiteral<"decline">;
@@ -2643,9 +2743,9 @@ export declare const udlDocumentSchema: z.ZodObject<{
2643
2743
  capture: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2644
2744
  key: z.ZodString;
2645
2745
  operation: z.ZodEnum<{
2646
- "internal_transfer.reserve": "internal_transfer.reserve";
2647
2746
  "internal_transfer.create": "internal_transfer.create";
2648
2747
  "internal_transfer.post": "internal_transfer.post";
2748
+ "internal_transfer.reserve": "internal_transfer.reserve";
2649
2749
  "internal_transfer.void": "internal_transfer.void";
2650
2750
  }>;
2651
2751
  }, z.core.$strict>>>;
@@ -2659,11 +2759,7 @@ export declare const udlDocumentSchema: z.ZodObject<{
2659
2759
  speed: z.ZodLiteral<"standard">;
2660
2760
  }, z.core.$strict>>;
2661
2761
  port: z.ZodOptional<z.ZodObject<{
2662
- allowedParties: z.ZodArray<z.ZodEnum<{
2663
- payer: "payer";
2664
- beneficiary: "beneficiary";
2665
- subjectHolder: "subjectHolder";
2666
- }>>;
2762
+ allowedParties: z.ZodArray<z.ZodString>;
2667
2763
  }, z.core.$strict>>;
2668
2764
  quote: z.ZodOptional<z.ZodObject<{
2669
2765
  anchorField: z.ZodOptional<z.ZodString>;
@@ -2785,6 +2881,17 @@ export declare const udlDocumentSchema: z.ZodObject<{
2785
2881
  }, z.core.$strict>>>;
2786
2882
  requiresRefs: z.ZodOptional<z.ZodArray<z.ZodObject<{
2787
2883
  bind: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2884
+ dateComparison: z.ZodOptional<z.ZodObject<{
2885
+ localPath: z.ZodString;
2886
+ operator: z.ZodEnum<{
2887
+ "<": "<";
2888
+ "<=": "<=";
2889
+ "==": "==";
2890
+ ">": ">";
2891
+ ">=": ">=";
2892
+ }>;
2893
+ referencedPath: z.ZodString;
2894
+ }, z.core.$strict>>;
2788
2895
  field: z.ZodString;
2789
2896
  match: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2790
2897
  optional: z.ZodOptional<z.ZodLiteral<true>>;
@@ -2844,9 +2951,9 @@ export declare const udlDocumentSchema: z.ZodObject<{
2844
2951
  product: z.ZodString;
2845
2952
  subjects: z.ZodArray<z.ZodObject<{
2846
2953
  declaredValue: z.ZodEnum<{
2954
+ none: "none";
2847
2955
  optional: "optional";
2848
2956
  required: "required";
2849
- none: "none";
2850
2957
  }>;
2851
2958
  kind: z.ZodString;
2852
2959
  schema: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
@@ -2868,12 +2975,16 @@ export type UdlDocument = z.infer<typeof udlDocumentSchema>;
2868
2975
  export type UdlDue = z.infer<typeof udlDueSchema>;
2869
2976
  export type UdlEffects = z.infer<typeof udlEffectsSchema>;
2870
2977
  export type UdlExample = z.infer<typeof udlExampleSchema>;
2978
+ export type UdlDateComparison = z.infer<typeof udlDateComparisonSchema>;
2979
+ export type UdlDateComparisonOperator = z.infer<typeof udlDateComparisonOperatorSchema>;
2871
2980
  export type UdlGate = z.infer<typeof udlGateSchema>;
2872
2981
  export type UdlKernelOperation = z.infer<typeof udlKernelOperationSchema>;
2873
2982
  export type UdlLifecycle = z.infer<typeof udlLifecycleSchema>;
2874
2983
  export type UdlLifecycleTransition = z.infer<typeof udlLifecycleTransitionSchema>;
2875
2984
  export type UdlInstrument = z.infer<typeof udlInstrumentSchema>;
2876
2985
  export type UdlInstrumentSubject = z.infer<typeof udlInstrumentSubjectSchema>;
2986
+ export type UdlJourney = z.infer<typeof udlJourneySchema>;
2987
+ export type UdlJourneyStep = z.infer<typeof udlJourneyStepSchema>;
2877
2988
  export type UdlMove = z.infer<typeof udlMoveSchema>;
2878
2989
  export type UdlPayout = z.infer<typeof udlPayoutSchema>;
2879
2990
  export type UdlQuote = z.infer<typeof udlQuoteSchema>;