@hyperscale0/udl 3.1.0 → 3.2.0

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/schema.d.ts CHANGED
@@ -1,5 +1,7 @@
1
1
  import * as z from "zod";
2
2
  export declare const UDL_FORMAT_VERSION: 3;
3
+ /** Counts the root and every nested invocation, including selected and ranged children. */
4
+ export declare const MAX_ACTION_EXPANSION = 4096;
3
5
  /** Currency belongs to the document. Accounts and amounts cannot override it. */
4
6
  export declare const udlPartySchema: z.ZodObject<{
5
7
  kind: z.ZodEnum<{
@@ -54,7 +56,9 @@ export declare const udlFieldSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
54
56
  description: z.ZodOptional<z.ZodString>;
55
57
  type: z.ZodLiteral<"text">;
56
58
  value: z.ZodOptional<z.ZodString>;
59
+ minLength: z.ZodOptional<z.ZodNumber>;
57
60
  maxLength: z.ZodOptional<z.ZodNumber>;
61
+ pattern: z.ZodOptional<z.ZodString>;
58
62
  }, z.core.$strict>, z.ZodObject<{
59
63
  name: z.ZodString;
60
64
  optional: z.ZodOptional<z.ZodLiteral<true>>;
@@ -387,11 +391,26 @@ export declare const udlMoveSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
387
391
  export declare const udlActionSchema: z.ZodObject<{
388
392
  summary: z.ZodString;
389
393
  publicAction: z.ZodOptional<z.ZodString>;
394
+ expansionLimit: z.ZodOptional<z.ZodLiteral<8192>>;
395
+ humanApproval: z.ZodOptional<z.ZodLiteral<"distinct_member">>;
396
+ reminder: z.ZodOptional<z.ZodObject<{
397
+ installment: z.ZodString;
398
+ recipient: z.ZodString;
399
+ dueAt: z.ZodString;
400
+ channel: z.ZodLiteral<"email">;
401
+ template: z.ZodLiteral<"payment_reminder">;
402
+ beforeDays: z.ZodNumber;
403
+ overdueDays: z.ZodNumber;
404
+ maxPerDay: z.ZodNumber;
405
+ startHour: z.ZodNumber;
406
+ endHour: z.ZodNumber;
407
+ timezone: z.ZodString;
408
+ }, z.core.$strict>>;
390
409
  event: z.ZodString;
391
410
  actor: z.ZodUnion<readonly [z.ZodLiteral<"caller">, z.ZodLiteral<"clock">, z.ZodObject<{
392
411
  party: z.ZodString;
393
412
  }, z.core.$strict>, z.ZodObject<{
394
- parent: z.ZodString;
413
+ parent: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>;
395
414
  }, z.core.$strict>]>;
396
415
  input: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
397
416
  name: z.ZodString;
@@ -438,7 +457,9 @@ export declare const udlActionSchema: z.ZodObject<{
438
457
  description: z.ZodOptional<z.ZodString>;
439
458
  type: z.ZodLiteral<"text">;
440
459
  value: z.ZodOptional<z.ZodString>;
460
+ minLength: z.ZodOptional<z.ZodNumber>;
441
461
  maxLength: z.ZodOptional<z.ZodNumber>;
462
+ pattern: z.ZodOptional<z.ZodString>;
442
463
  }, z.core.$strict>, z.ZodObject<{
443
464
  name: z.ZodString;
444
465
  optional: z.ZodOptional<z.ZodLiteral<true>>;
@@ -569,10 +590,28 @@ export declare const udlActionSchema: z.ZodObject<{
569
590
  due: z.ZodOptional<z.ZodObject<{
570
591
  at: z.ZodString;
571
592
  offset: z.ZodOptional<z.ZodNumber>;
593
+ localDay: z.ZodOptional<z.ZodObject<{
594
+ days: z.ZodNumber;
595
+ direction: z.ZodEnum<{
596
+ after: "after";
597
+ before: "before";
598
+ }>;
599
+ hour: z.ZodNumber;
600
+ timezone: z.ZodString;
601
+ }, z.core.$strict>>;
572
602
  }, z.core.$strict>>;
573
603
  deadline: z.ZodOptional<z.ZodObject<{
574
604
  at: z.ZodString;
575
605
  offset: z.ZodOptional<z.ZodNumber>;
606
+ localDay: z.ZodOptional<z.ZodObject<{
607
+ days: z.ZodNumber;
608
+ direction: z.ZodEnum<{
609
+ after: "after";
610
+ before: "before";
611
+ }>;
612
+ hour: z.ZodNumber;
613
+ timezone: z.ZodString;
614
+ }, z.core.$strict>>;
576
615
  }, z.core.$strict>>;
577
616
  set: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
578
617
  literal: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
@@ -759,6 +798,36 @@ export declare const udlActionSchema: z.ZodObject<{
759
798
  }, z.core.$strict>, z.ZodObject<{
760
799
  field: z.ZodString;
761
800
  }, z.core.$strict>]>>;
801
+ guard: z.ZodOptional<z.ZodObject<{
802
+ kind: z.ZodLiteral<"compare">;
803
+ left: z.ZodUnion<readonly [z.ZodObject<{
804
+ literal: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
805
+ }, z.core.$strict>, z.ZodObject<{
806
+ field: z.ZodString;
807
+ }, z.core.$strict>]>;
808
+ operator: z.ZodEnum<{
809
+ "!=": "!=";
810
+ "<": "<";
811
+ "<=": "<=";
812
+ "==": "==";
813
+ ">": ">";
814
+ ">=": ">=";
815
+ }>;
816
+ right: z.ZodUnion<readonly [z.ZodObject<{
817
+ literal: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
818
+ }, z.core.$strict>, z.ZodObject<{
819
+ field: z.ZodString;
820
+ }, z.core.$strict>]>;
821
+ }, z.core.$strict>>;
822
+ range: z.ZodOptional<z.ZodObject<{
823
+ count: z.ZodUnion<readonly [z.ZodObject<{
824
+ literal: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
825
+ }, z.core.$strict>, z.ZodObject<{
826
+ field: z.ZodString;
827
+ }, z.core.$strict>]>;
828
+ maximum: z.ZodNumber;
829
+ bind: z.ZodString;
830
+ }, z.core.$strict>>;
762
831
  }, z.core.$strict>, z.ZodObject<{
763
832
  reference: z.ZodString;
764
833
  action: z.ZodString;
@@ -767,6 +836,27 @@ export declare const udlActionSchema: z.ZodObject<{
767
836
  }, z.core.$strict>, z.ZodObject<{
768
837
  field: z.ZodString;
769
838
  }, z.core.$strict>]>>;
839
+ guard: z.ZodOptional<z.ZodObject<{
840
+ kind: z.ZodLiteral<"compare">;
841
+ left: z.ZodUnion<readonly [z.ZodObject<{
842
+ literal: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
843
+ }, z.core.$strict>, z.ZodObject<{
844
+ field: z.ZodString;
845
+ }, z.core.$strict>]>;
846
+ operator: z.ZodEnum<{
847
+ "!=": "!=";
848
+ "<": "<";
849
+ "<=": "<=";
850
+ "==": "==";
851
+ ">": ">";
852
+ ">=": ">=";
853
+ }>;
854
+ right: z.ZodUnion<readonly [z.ZodObject<{
855
+ literal: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
856
+ }, z.core.$strict>, z.ZodObject<{
857
+ field: z.ZodString;
858
+ }, z.core.$strict>]>;
859
+ }, z.core.$strict>>;
770
860
  }, z.core.$strict>, z.ZodObject<{
771
861
  selection: z.ZodObject<{
772
862
  instrument: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>;
@@ -791,6 +881,27 @@ export declare const udlActionSchema: z.ZodObject<{
791
881
  }, z.core.$strict>, z.ZodObject<{
792
882
  field: z.ZodString;
793
883
  }, z.core.$strict>]>>;
884
+ guard: z.ZodOptional<z.ZodObject<{
885
+ kind: z.ZodLiteral<"compare">;
886
+ left: z.ZodUnion<readonly [z.ZodObject<{
887
+ literal: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
888
+ }, z.core.$strict>, z.ZodObject<{
889
+ field: z.ZodString;
890
+ }, z.core.$strict>]>;
891
+ operator: z.ZodEnum<{
892
+ "!=": "!=";
893
+ "<": "<";
894
+ "<=": "<=";
895
+ "==": "==";
896
+ ">": ">";
897
+ ">=": ">=";
898
+ }>;
899
+ right: z.ZodUnion<readonly [z.ZodObject<{
900
+ literal: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
901
+ }, z.core.$strict>, z.ZodObject<{
902
+ field: z.ZodString;
903
+ }, z.core.$strict>]>;
904
+ }, z.core.$strict>>;
794
905
  }, z.core.$strict>]>>>;
795
906
  approval: z.ZodOptional<z.ZodObject<{
796
907
  target: z.ZodString;
@@ -817,6 +928,392 @@ export declare const udlLifecycleSchema: z.ZodObject<{
817
928
  }, z.core.$strict>>;
818
929
  }, z.core.$strict>;
819
930
  export declare const udlInstrumentSchema: z.ZodObject<{
931
+ reports: z.ZodOptional<z.ZodArray<z.ZodObject<{
932
+ identity: z.ZodObject<{
933
+ id: z.ZodString;
934
+ version: z.ZodNumber;
935
+ description: z.ZodString;
936
+ }, z.core.$strict>;
937
+ scope: z.ZodObject<{
938
+ kind: z.ZodEnum<{
939
+ company: "company";
940
+ product: "product";
941
+ }>;
942
+ classification: z.ZodEnum<{
943
+ internal: "internal";
944
+ personal: "personal";
945
+ restricted: "restricted";
946
+ }>;
947
+ currency: z.ZodString;
948
+ }, z.core.$strict>;
949
+ datasets: z.ZodArray<z.ZodObject<{
950
+ id: z.ZodString;
951
+ source: z.ZodEnum<{
952
+ account: "account";
953
+ identity: "identity";
954
+ instrument: "instrument";
955
+ operation: "operation";
956
+ }>;
957
+ instruments: z.ZodArray<z.ZodString>;
958
+ rowKey: z.ZodString;
959
+ columns: z.ZodArray<z.ZodObject<{
960
+ name: z.ZodString;
961
+ field: z.ZodString;
962
+ type: z.ZodDiscriminatedUnion<[z.ZodObject<{
963
+ kind: z.ZodLiteral<"money">;
964
+ currency: z.ZodString;
965
+ }, z.core.$strict>, z.ZodObject<{
966
+ kind: z.ZodEnum<{
967
+ boolean: "boolean";
968
+ date: "date";
969
+ integer: "integer";
970
+ text: "text";
971
+ }>;
972
+ }, z.core.$strict>], "kind">;
973
+ required: z.ZodBoolean;
974
+ }, z.core.$strict>>;
975
+ expressions: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
976
+ id: z.ZodString;
977
+ op: z.ZodLiteral<"field">;
978
+ path: z.ZodString;
979
+ }, z.core.$strict>, z.ZodObject<{
980
+ id: z.ZodString;
981
+ op: z.ZodLiteral<"literal">;
982
+ type: z.ZodDiscriminatedUnion<[z.ZodObject<{
983
+ kind: z.ZodLiteral<"money">;
984
+ currency: z.ZodString;
985
+ }, z.core.$strict>, z.ZodObject<{
986
+ kind: z.ZodEnum<{
987
+ boolean: "boolean";
988
+ date: "date";
989
+ integer: "integer";
990
+ text: "text";
991
+ }>;
992
+ }, z.core.$strict>], "kind">;
993
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
994
+ }, z.core.$strict>, z.ZodObject<{
995
+ id: z.ZodString;
996
+ op: z.ZodLiteral<"parameter">;
997
+ name: z.ZodEnum<{
998
+ observationAt: "observationAt";
999
+ periodEnd: "periodEnd";
1000
+ periodStart: "periodStart";
1001
+ }>;
1002
+ }, z.core.$strict>, z.ZodObject<{
1003
+ id: z.ZodString;
1004
+ op: z.ZodEnum<{
1005
+ and: "and";
1006
+ atMost: "atMost";
1007
+ daysBetween: "daysBetween";
1008
+ equal: "equal";
1009
+ less: "less";
1010
+ maximum: "maximum";
1011
+ minimum: "minimum";
1012
+ or: "or";
1013
+ subtract: "subtract";
1014
+ sum: "sum";
1015
+ }>;
1016
+ left: z.ZodString;
1017
+ right: z.ZodString;
1018
+ }, z.core.$strict>, z.ZodObject<{
1019
+ id: z.ZodString;
1020
+ op: z.ZodLiteral<"not">;
1021
+ value: z.ZodString;
1022
+ }, z.core.$strict>, z.ZodObject<{
1023
+ id: z.ZodString;
1024
+ op: z.ZodLiteral<"choose">;
1025
+ condition: z.ZodString;
1026
+ yes: z.ZodString;
1027
+ no: z.ZodString;
1028
+ }, z.core.$strict>, z.ZodObject<{
1029
+ id: z.ZodString;
1030
+ op: z.ZodLiteral<"bucket">;
1031
+ value: z.ZodString;
1032
+ unit: z.ZodEnum<{
1033
+ month: "month";
1034
+ quarter: "quarter";
1035
+ }>;
1036
+ }, z.core.$strict>, z.ZodObject<{
1037
+ id: z.ZodString;
1038
+ op: z.ZodLiteral<"ratio">;
1039
+ numerator: z.ZodString;
1040
+ denominator: z.ZodString;
1041
+ scale: z.ZodNumber;
1042
+ rounding: z.ZodEnum<{
1043
+ floor: "floor";
1044
+ halfUp: "halfUp";
1045
+ }>;
1046
+ zero: z.ZodEnum<{
1047
+ null: "null";
1048
+ refuse: "refuse";
1049
+ }>;
1050
+ }, z.core.$strict>], "op">>;
1051
+ selection: z.ZodOptional<z.ZodString>;
1052
+ }, z.core.$strict>>;
1053
+ time: z.ZodObject<{
1054
+ timezone: z.ZodLiteral<"Asia/Riyadh">;
1055
+ boundary: z.ZodLiteral<"startInclusiveEndExclusive">;
1056
+ observation: z.ZodLiteral<"periodEnd">;
1057
+ history: z.ZodLiteral<"retainedOnly">;
1058
+ }, z.core.$strict>;
1059
+ selection: z.ZodObject<{
1060
+ dataset: z.ZodString;
1061
+ predicate: z.ZodOptional<z.ZodString>;
1062
+ }, z.core.$strict>;
1063
+ calculation: z.ZodObject<{
1064
+ joins: z.ZodArray<z.ZodObject<{
1065
+ dataset: z.ZodString;
1066
+ local: z.ZodString;
1067
+ foreign: z.ZodString;
1068
+ cardinality: z.ZodEnum<{
1069
+ many: "many";
1070
+ one: "one";
1071
+ }>;
1072
+ missing: z.ZodEnum<{
1073
+ allow: "allow";
1074
+ refuse: "refuse";
1075
+ }>;
1076
+ aggregates: z.ZodArray<z.ZodObject<{
1077
+ name: z.ZodString;
1078
+ op: z.ZodEnum<{
1079
+ average: "average";
1080
+ count: "count";
1081
+ maximum: "maximum";
1082
+ minimum: "minimum";
1083
+ sum: "sum";
1084
+ }>;
1085
+ rounding: z.ZodOptional<z.ZodEnum<{
1086
+ floor: "floor";
1087
+ halfUp: "halfUp";
1088
+ }>>;
1089
+ value: z.ZodOptional<z.ZodString>;
1090
+ }, z.core.$strict>>;
1091
+ }, z.core.$strict>>;
1092
+ expressions: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1093
+ id: z.ZodString;
1094
+ op: z.ZodLiteral<"field">;
1095
+ path: z.ZodString;
1096
+ }, z.core.$strict>, z.ZodObject<{
1097
+ id: z.ZodString;
1098
+ op: z.ZodLiteral<"literal">;
1099
+ type: z.ZodDiscriminatedUnion<[z.ZodObject<{
1100
+ kind: z.ZodLiteral<"money">;
1101
+ currency: z.ZodString;
1102
+ }, z.core.$strict>, z.ZodObject<{
1103
+ kind: z.ZodEnum<{
1104
+ boolean: "boolean";
1105
+ date: "date";
1106
+ integer: "integer";
1107
+ text: "text";
1108
+ }>;
1109
+ }, z.core.$strict>], "kind">;
1110
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
1111
+ }, z.core.$strict>, z.ZodObject<{
1112
+ id: z.ZodString;
1113
+ op: z.ZodLiteral<"parameter">;
1114
+ name: z.ZodEnum<{
1115
+ observationAt: "observationAt";
1116
+ periodEnd: "periodEnd";
1117
+ periodStart: "periodStart";
1118
+ }>;
1119
+ }, z.core.$strict>, z.ZodObject<{
1120
+ id: z.ZodString;
1121
+ op: z.ZodEnum<{
1122
+ and: "and";
1123
+ atMost: "atMost";
1124
+ daysBetween: "daysBetween";
1125
+ equal: "equal";
1126
+ less: "less";
1127
+ maximum: "maximum";
1128
+ minimum: "minimum";
1129
+ or: "or";
1130
+ subtract: "subtract";
1131
+ sum: "sum";
1132
+ }>;
1133
+ left: z.ZodString;
1134
+ right: z.ZodString;
1135
+ }, z.core.$strict>, z.ZodObject<{
1136
+ id: z.ZodString;
1137
+ op: z.ZodLiteral<"not">;
1138
+ value: z.ZodString;
1139
+ }, z.core.$strict>, z.ZodObject<{
1140
+ id: z.ZodString;
1141
+ op: z.ZodLiteral<"choose">;
1142
+ condition: z.ZodString;
1143
+ yes: z.ZodString;
1144
+ no: z.ZodString;
1145
+ }, z.core.$strict>, z.ZodObject<{
1146
+ id: z.ZodString;
1147
+ op: z.ZodLiteral<"bucket">;
1148
+ value: z.ZodString;
1149
+ unit: z.ZodEnum<{
1150
+ month: "month";
1151
+ quarter: "quarter";
1152
+ }>;
1153
+ }, z.core.$strict>, z.ZodObject<{
1154
+ id: z.ZodString;
1155
+ op: z.ZodLiteral<"ratio">;
1156
+ numerator: z.ZodString;
1157
+ denominator: z.ZodString;
1158
+ scale: z.ZodNumber;
1159
+ rounding: z.ZodEnum<{
1160
+ floor: "floor";
1161
+ halfUp: "halfUp";
1162
+ }>;
1163
+ zero: z.ZodEnum<{
1164
+ null: "null";
1165
+ refuse: "refuse";
1166
+ }>;
1167
+ }, z.core.$strict>], "op">>;
1168
+ groupBy: z.ZodArray<z.ZodString>;
1169
+ aggregates: z.ZodArray<z.ZodObject<{
1170
+ name: z.ZodString;
1171
+ op: z.ZodEnum<{
1172
+ average: "average";
1173
+ count: "count";
1174
+ maximum: "maximum";
1175
+ minimum: "minimum";
1176
+ sum: "sum";
1177
+ }>;
1178
+ rounding: z.ZodOptional<z.ZodEnum<{
1179
+ floor: "floor";
1180
+ halfUp: "halfUp";
1181
+ }>>;
1182
+ value: z.ZodOptional<z.ZodString>;
1183
+ }, z.core.$strict>>;
1184
+ resultExpressions: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1185
+ id: z.ZodString;
1186
+ op: z.ZodLiteral<"field">;
1187
+ path: z.ZodString;
1188
+ }, z.core.$strict>, z.ZodObject<{
1189
+ id: z.ZodString;
1190
+ op: z.ZodLiteral<"literal">;
1191
+ type: z.ZodDiscriminatedUnion<[z.ZodObject<{
1192
+ kind: z.ZodLiteral<"money">;
1193
+ currency: z.ZodString;
1194
+ }, z.core.$strict>, z.ZodObject<{
1195
+ kind: z.ZodEnum<{
1196
+ boolean: "boolean";
1197
+ date: "date";
1198
+ integer: "integer";
1199
+ text: "text";
1200
+ }>;
1201
+ }, z.core.$strict>], "kind">;
1202
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
1203
+ }, z.core.$strict>, z.ZodObject<{
1204
+ id: z.ZodString;
1205
+ op: z.ZodLiteral<"parameter">;
1206
+ name: z.ZodEnum<{
1207
+ observationAt: "observationAt";
1208
+ periodEnd: "periodEnd";
1209
+ periodStart: "periodStart";
1210
+ }>;
1211
+ }, z.core.$strict>, z.ZodObject<{
1212
+ id: z.ZodString;
1213
+ op: z.ZodEnum<{
1214
+ and: "and";
1215
+ atMost: "atMost";
1216
+ daysBetween: "daysBetween";
1217
+ equal: "equal";
1218
+ less: "less";
1219
+ maximum: "maximum";
1220
+ minimum: "minimum";
1221
+ or: "or";
1222
+ subtract: "subtract";
1223
+ sum: "sum";
1224
+ }>;
1225
+ left: z.ZodString;
1226
+ right: z.ZodString;
1227
+ }, z.core.$strict>, z.ZodObject<{
1228
+ id: z.ZodString;
1229
+ op: z.ZodLiteral<"not">;
1230
+ value: z.ZodString;
1231
+ }, z.core.$strict>, z.ZodObject<{
1232
+ id: z.ZodString;
1233
+ op: z.ZodLiteral<"choose">;
1234
+ condition: z.ZodString;
1235
+ yes: z.ZodString;
1236
+ no: z.ZodString;
1237
+ }, z.core.$strict>, z.ZodObject<{
1238
+ id: z.ZodString;
1239
+ op: z.ZodLiteral<"bucket">;
1240
+ value: z.ZodString;
1241
+ unit: z.ZodEnum<{
1242
+ month: "month";
1243
+ quarter: "quarter";
1244
+ }>;
1245
+ }, z.core.$strict>, z.ZodObject<{
1246
+ id: z.ZodString;
1247
+ op: z.ZodLiteral<"ratio">;
1248
+ numerator: z.ZodString;
1249
+ denominator: z.ZodString;
1250
+ scale: z.ZodNumber;
1251
+ rounding: z.ZodEnum<{
1252
+ floor: "floor";
1253
+ halfUp: "halfUp";
1254
+ }>;
1255
+ zero: z.ZodEnum<{
1256
+ null: "null";
1257
+ refuse: "refuse";
1258
+ }>;
1259
+ }, z.core.$strict>], "op">>;
1260
+ }, z.core.$strict>;
1261
+ validation: z.ZodObject<{
1262
+ empty: z.ZodEnum<{
1263
+ noEligibleFacilities: "noEligibleFacilities";
1264
+ refuse: "refuse";
1265
+ }>;
1266
+ required: z.ZodArray<z.ZodString>;
1267
+ rowReconcile: z.ZodArray<z.ZodObject<{
1268
+ left: z.ZodString;
1269
+ right: z.ZodString;
1270
+ }, z.core.$strict>>;
1271
+ reconcile: z.ZodArray<z.ZodObject<{
1272
+ left: z.ZodString;
1273
+ right: z.ZodString;
1274
+ }, z.core.$strict>>;
1275
+ unavailableFacts: z.ZodArray<z.ZodString>;
1276
+ lockTimeoutMs: z.ZodNumber;
1277
+ captureTimeoutMs: z.ZodNumber;
1278
+ maxRows: z.ZodNumber;
1279
+ maxJoinRows: z.ZodNumber;
1280
+ maxBytes: z.ZodNumber;
1281
+ }, z.core.$strict>;
1282
+ output: z.ZodObject<{
1283
+ profile: z.ZodLiteral<"internal.v1">;
1284
+ formats: z.ZodArray<z.ZodEnum<{
1285
+ csv: "csv";
1286
+ json: "json";
1287
+ }>>;
1288
+ columns: z.ZodArray<z.ZodObject<{
1289
+ name: z.ZodString;
1290
+ label: z.ZodString;
1291
+ type: z.ZodDiscriminatedUnion<[z.ZodObject<{
1292
+ kind: z.ZodLiteral<"money">;
1293
+ currency: z.ZodString;
1294
+ }, z.core.$strict>, z.ZodObject<{
1295
+ kind: z.ZodEnum<{
1296
+ boolean: "boolean";
1297
+ date: "date";
1298
+ integer: "integer";
1299
+ text: "text";
1300
+ }>;
1301
+ }, z.core.$strict>], "kind">;
1302
+ }, z.core.$strict>>;
1303
+ sort: z.ZodArray<z.ZodString>;
1304
+ }, z.core.$strict>;
1305
+ authority: z.ZodObject<{
1306
+ request: z.ZodArray<z.ZodString>;
1307
+ read: z.ZodArray<z.ZodString>;
1308
+ release: z.ZodArray<z.ZodString>;
1309
+ independentApproval: z.ZodLiteral<true>;
1310
+ retention: z.ZodObject<{
1311
+ policy: z.ZodString;
1312
+ years: z.ZodNumber;
1313
+ }, z.core.$strict>;
1314
+ }, z.core.$strict>;
1315
+ }, z.core.$strict>>>;
1316
+ revisioned: z.ZodOptional<z.ZodLiteral<true>>;
820
1317
  id: z.ZodString;
821
1318
  title: z.ZodString;
822
1319
  summary: z.ZodString;
@@ -865,7 +1362,9 @@ export declare const udlInstrumentSchema: z.ZodObject<{
865
1362
  description: z.ZodOptional<z.ZodString>;
866
1363
  type: z.ZodLiteral<"text">;
867
1364
  value: z.ZodOptional<z.ZodString>;
1365
+ minLength: z.ZodOptional<z.ZodNumber>;
868
1366
  maxLength: z.ZodOptional<z.ZodNumber>;
1367
+ pattern: z.ZodOptional<z.ZodString>;
869
1368
  }, z.core.$strict>, z.ZodObject<{
870
1369
  name: z.ZodString;
871
1370
  optional: z.ZodOptional<z.ZodLiteral<true>>;
@@ -1058,11 +1557,26 @@ export declare const udlInstrumentSchema: z.ZodObject<{
1058
1557
  actions: z.ZodRecord<z.ZodString, z.ZodObject<{
1059
1558
  summary: z.ZodString;
1060
1559
  publicAction: z.ZodOptional<z.ZodString>;
1560
+ expansionLimit: z.ZodOptional<z.ZodLiteral<8192>>;
1561
+ humanApproval: z.ZodOptional<z.ZodLiteral<"distinct_member">>;
1562
+ reminder: z.ZodOptional<z.ZodObject<{
1563
+ installment: z.ZodString;
1564
+ recipient: z.ZodString;
1565
+ dueAt: z.ZodString;
1566
+ channel: z.ZodLiteral<"email">;
1567
+ template: z.ZodLiteral<"payment_reminder">;
1568
+ beforeDays: z.ZodNumber;
1569
+ overdueDays: z.ZodNumber;
1570
+ maxPerDay: z.ZodNumber;
1571
+ startHour: z.ZodNumber;
1572
+ endHour: z.ZodNumber;
1573
+ timezone: z.ZodString;
1574
+ }, z.core.$strict>>;
1061
1575
  event: z.ZodString;
1062
1576
  actor: z.ZodUnion<readonly [z.ZodLiteral<"caller">, z.ZodLiteral<"clock">, z.ZodObject<{
1063
1577
  party: z.ZodString;
1064
1578
  }, z.core.$strict>, z.ZodObject<{
1065
- parent: z.ZodString;
1579
+ parent: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>;
1066
1580
  }, z.core.$strict>]>;
1067
1581
  input: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1068
1582
  name: z.ZodString;
@@ -1109,7 +1623,9 @@ export declare const udlInstrumentSchema: z.ZodObject<{
1109
1623
  description: z.ZodOptional<z.ZodString>;
1110
1624
  type: z.ZodLiteral<"text">;
1111
1625
  value: z.ZodOptional<z.ZodString>;
1626
+ minLength: z.ZodOptional<z.ZodNumber>;
1112
1627
  maxLength: z.ZodOptional<z.ZodNumber>;
1628
+ pattern: z.ZodOptional<z.ZodString>;
1113
1629
  }, z.core.$strict>, z.ZodObject<{
1114
1630
  name: z.ZodString;
1115
1631
  optional: z.ZodOptional<z.ZodLiteral<true>>;
@@ -1240,10 +1756,28 @@ export declare const udlInstrumentSchema: z.ZodObject<{
1240
1756
  due: z.ZodOptional<z.ZodObject<{
1241
1757
  at: z.ZodString;
1242
1758
  offset: z.ZodOptional<z.ZodNumber>;
1759
+ localDay: z.ZodOptional<z.ZodObject<{
1760
+ days: z.ZodNumber;
1761
+ direction: z.ZodEnum<{
1762
+ after: "after";
1763
+ before: "before";
1764
+ }>;
1765
+ hour: z.ZodNumber;
1766
+ timezone: z.ZodString;
1767
+ }, z.core.$strict>>;
1243
1768
  }, z.core.$strict>>;
1244
1769
  deadline: z.ZodOptional<z.ZodObject<{
1245
1770
  at: z.ZodString;
1246
1771
  offset: z.ZodOptional<z.ZodNumber>;
1772
+ localDay: z.ZodOptional<z.ZodObject<{
1773
+ days: z.ZodNumber;
1774
+ direction: z.ZodEnum<{
1775
+ after: "after";
1776
+ before: "before";
1777
+ }>;
1778
+ hour: z.ZodNumber;
1779
+ timezone: z.ZodString;
1780
+ }, z.core.$strict>>;
1247
1781
  }, z.core.$strict>>;
1248
1782
  set: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
1249
1783
  literal: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
@@ -1430,6 +1964,36 @@ export declare const udlInstrumentSchema: z.ZodObject<{
1430
1964
  }, z.core.$strict>, z.ZodObject<{
1431
1965
  field: z.ZodString;
1432
1966
  }, z.core.$strict>]>>;
1967
+ guard: z.ZodOptional<z.ZodObject<{
1968
+ kind: z.ZodLiteral<"compare">;
1969
+ left: z.ZodUnion<readonly [z.ZodObject<{
1970
+ literal: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
1971
+ }, z.core.$strict>, z.ZodObject<{
1972
+ field: z.ZodString;
1973
+ }, z.core.$strict>]>;
1974
+ operator: z.ZodEnum<{
1975
+ "!=": "!=";
1976
+ "<": "<";
1977
+ "<=": "<=";
1978
+ "==": "==";
1979
+ ">": ">";
1980
+ ">=": ">=";
1981
+ }>;
1982
+ right: z.ZodUnion<readonly [z.ZodObject<{
1983
+ literal: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
1984
+ }, z.core.$strict>, z.ZodObject<{
1985
+ field: z.ZodString;
1986
+ }, z.core.$strict>]>;
1987
+ }, z.core.$strict>>;
1988
+ range: z.ZodOptional<z.ZodObject<{
1989
+ count: z.ZodUnion<readonly [z.ZodObject<{
1990
+ literal: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
1991
+ }, z.core.$strict>, z.ZodObject<{
1992
+ field: z.ZodString;
1993
+ }, z.core.$strict>]>;
1994
+ maximum: z.ZodNumber;
1995
+ bind: z.ZodString;
1996
+ }, z.core.$strict>>;
1433
1997
  }, z.core.$strict>, z.ZodObject<{
1434
1998
  reference: z.ZodString;
1435
1999
  action: z.ZodString;
@@ -1438,6 +2002,27 @@ export declare const udlInstrumentSchema: z.ZodObject<{
1438
2002
  }, z.core.$strict>, z.ZodObject<{
1439
2003
  field: z.ZodString;
1440
2004
  }, z.core.$strict>]>>;
2005
+ guard: z.ZodOptional<z.ZodObject<{
2006
+ kind: z.ZodLiteral<"compare">;
2007
+ left: z.ZodUnion<readonly [z.ZodObject<{
2008
+ literal: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
2009
+ }, z.core.$strict>, z.ZodObject<{
2010
+ field: z.ZodString;
2011
+ }, z.core.$strict>]>;
2012
+ operator: z.ZodEnum<{
2013
+ "!=": "!=";
2014
+ "<": "<";
2015
+ "<=": "<=";
2016
+ "==": "==";
2017
+ ">": ">";
2018
+ ">=": ">=";
2019
+ }>;
2020
+ right: z.ZodUnion<readonly [z.ZodObject<{
2021
+ literal: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
2022
+ }, z.core.$strict>, z.ZodObject<{
2023
+ field: z.ZodString;
2024
+ }, z.core.$strict>]>;
2025
+ }, z.core.$strict>>;
1441
2026
  }, z.core.$strict>, z.ZodObject<{
1442
2027
  selection: z.ZodObject<{
1443
2028
  instrument: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>;
@@ -1462,6 +2047,27 @@ export declare const udlInstrumentSchema: z.ZodObject<{
1462
2047
  }, z.core.$strict>, z.ZodObject<{
1463
2048
  field: z.ZodString;
1464
2049
  }, z.core.$strict>]>>;
2050
+ guard: z.ZodOptional<z.ZodObject<{
2051
+ kind: z.ZodLiteral<"compare">;
2052
+ left: z.ZodUnion<readonly [z.ZodObject<{
2053
+ literal: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
2054
+ }, z.core.$strict>, z.ZodObject<{
2055
+ field: z.ZodString;
2056
+ }, z.core.$strict>]>;
2057
+ operator: z.ZodEnum<{
2058
+ "!=": "!=";
2059
+ "<": "<";
2060
+ "<=": "<=";
2061
+ "==": "==";
2062
+ ">": ">";
2063
+ ">=": ">=";
2064
+ }>;
2065
+ right: z.ZodUnion<readonly [z.ZodObject<{
2066
+ literal: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
2067
+ }, z.core.$strict>, z.ZodObject<{
2068
+ field: z.ZodString;
2069
+ }, z.core.$strict>]>;
2070
+ }, z.core.$strict>>;
1465
2071
  }, z.core.$strict>]>>>;
1466
2072
  approval: z.ZodOptional<z.ZodObject<{
1467
2073
  target: z.ZodString;
@@ -1585,6 +2191,392 @@ export declare const udlDocumentSchema: z.ZodObject<{
1585
2191
  role: z.ZodOptional<z.ZodString>;
1586
2192
  }, z.core.$strict>>;
1587
2193
  instruments: z.ZodArray<z.ZodObject<{
2194
+ reports: z.ZodOptional<z.ZodArray<z.ZodObject<{
2195
+ identity: z.ZodObject<{
2196
+ id: z.ZodString;
2197
+ version: z.ZodNumber;
2198
+ description: z.ZodString;
2199
+ }, z.core.$strict>;
2200
+ scope: z.ZodObject<{
2201
+ kind: z.ZodEnum<{
2202
+ company: "company";
2203
+ product: "product";
2204
+ }>;
2205
+ classification: z.ZodEnum<{
2206
+ internal: "internal";
2207
+ personal: "personal";
2208
+ restricted: "restricted";
2209
+ }>;
2210
+ currency: z.ZodString;
2211
+ }, z.core.$strict>;
2212
+ datasets: z.ZodArray<z.ZodObject<{
2213
+ id: z.ZodString;
2214
+ source: z.ZodEnum<{
2215
+ account: "account";
2216
+ identity: "identity";
2217
+ instrument: "instrument";
2218
+ operation: "operation";
2219
+ }>;
2220
+ instruments: z.ZodArray<z.ZodString>;
2221
+ rowKey: z.ZodString;
2222
+ columns: z.ZodArray<z.ZodObject<{
2223
+ name: z.ZodString;
2224
+ field: z.ZodString;
2225
+ type: z.ZodDiscriminatedUnion<[z.ZodObject<{
2226
+ kind: z.ZodLiteral<"money">;
2227
+ currency: z.ZodString;
2228
+ }, z.core.$strict>, z.ZodObject<{
2229
+ kind: z.ZodEnum<{
2230
+ boolean: "boolean";
2231
+ date: "date";
2232
+ integer: "integer";
2233
+ text: "text";
2234
+ }>;
2235
+ }, z.core.$strict>], "kind">;
2236
+ required: z.ZodBoolean;
2237
+ }, z.core.$strict>>;
2238
+ expressions: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
2239
+ id: z.ZodString;
2240
+ op: z.ZodLiteral<"field">;
2241
+ path: z.ZodString;
2242
+ }, z.core.$strict>, z.ZodObject<{
2243
+ id: z.ZodString;
2244
+ op: z.ZodLiteral<"literal">;
2245
+ type: z.ZodDiscriminatedUnion<[z.ZodObject<{
2246
+ kind: z.ZodLiteral<"money">;
2247
+ currency: z.ZodString;
2248
+ }, z.core.$strict>, z.ZodObject<{
2249
+ kind: z.ZodEnum<{
2250
+ boolean: "boolean";
2251
+ date: "date";
2252
+ integer: "integer";
2253
+ text: "text";
2254
+ }>;
2255
+ }, z.core.$strict>], "kind">;
2256
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
2257
+ }, z.core.$strict>, z.ZodObject<{
2258
+ id: z.ZodString;
2259
+ op: z.ZodLiteral<"parameter">;
2260
+ name: z.ZodEnum<{
2261
+ observationAt: "observationAt";
2262
+ periodEnd: "periodEnd";
2263
+ periodStart: "periodStart";
2264
+ }>;
2265
+ }, z.core.$strict>, z.ZodObject<{
2266
+ id: z.ZodString;
2267
+ op: z.ZodEnum<{
2268
+ and: "and";
2269
+ atMost: "atMost";
2270
+ daysBetween: "daysBetween";
2271
+ equal: "equal";
2272
+ less: "less";
2273
+ maximum: "maximum";
2274
+ minimum: "minimum";
2275
+ or: "or";
2276
+ subtract: "subtract";
2277
+ sum: "sum";
2278
+ }>;
2279
+ left: z.ZodString;
2280
+ right: z.ZodString;
2281
+ }, z.core.$strict>, z.ZodObject<{
2282
+ id: z.ZodString;
2283
+ op: z.ZodLiteral<"not">;
2284
+ value: z.ZodString;
2285
+ }, z.core.$strict>, z.ZodObject<{
2286
+ id: z.ZodString;
2287
+ op: z.ZodLiteral<"choose">;
2288
+ condition: z.ZodString;
2289
+ yes: z.ZodString;
2290
+ no: z.ZodString;
2291
+ }, z.core.$strict>, z.ZodObject<{
2292
+ id: z.ZodString;
2293
+ op: z.ZodLiteral<"bucket">;
2294
+ value: z.ZodString;
2295
+ unit: z.ZodEnum<{
2296
+ month: "month";
2297
+ quarter: "quarter";
2298
+ }>;
2299
+ }, z.core.$strict>, z.ZodObject<{
2300
+ id: z.ZodString;
2301
+ op: z.ZodLiteral<"ratio">;
2302
+ numerator: z.ZodString;
2303
+ denominator: z.ZodString;
2304
+ scale: z.ZodNumber;
2305
+ rounding: z.ZodEnum<{
2306
+ floor: "floor";
2307
+ halfUp: "halfUp";
2308
+ }>;
2309
+ zero: z.ZodEnum<{
2310
+ null: "null";
2311
+ refuse: "refuse";
2312
+ }>;
2313
+ }, z.core.$strict>], "op">>;
2314
+ selection: z.ZodOptional<z.ZodString>;
2315
+ }, z.core.$strict>>;
2316
+ time: z.ZodObject<{
2317
+ timezone: z.ZodLiteral<"Asia/Riyadh">;
2318
+ boundary: z.ZodLiteral<"startInclusiveEndExclusive">;
2319
+ observation: z.ZodLiteral<"periodEnd">;
2320
+ history: z.ZodLiteral<"retainedOnly">;
2321
+ }, z.core.$strict>;
2322
+ selection: z.ZodObject<{
2323
+ dataset: z.ZodString;
2324
+ predicate: z.ZodOptional<z.ZodString>;
2325
+ }, z.core.$strict>;
2326
+ calculation: z.ZodObject<{
2327
+ joins: z.ZodArray<z.ZodObject<{
2328
+ dataset: z.ZodString;
2329
+ local: z.ZodString;
2330
+ foreign: z.ZodString;
2331
+ cardinality: z.ZodEnum<{
2332
+ many: "many";
2333
+ one: "one";
2334
+ }>;
2335
+ missing: z.ZodEnum<{
2336
+ allow: "allow";
2337
+ refuse: "refuse";
2338
+ }>;
2339
+ aggregates: z.ZodArray<z.ZodObject<{
2340
+ name: z.ZodString;
2341
+ op: z.ZodEnum<{
2342
+ average: "average";
2343
+ count: "count";
2344
+ maximum: "maximum";
2345
+ minimum: "minimum";
2346
+ sum: "sum";
2347
+ }>;
2348
+ rounding: z.ZodOptional<z.ZodEnum<{
2349
+ floor: "floor";
2350
+ halfUp: "halfUp";
2351
+ }>>;
2352
+ value: z.ZodOptional<z.ZodString>;
2353
+ }, z.core.$strict>>;
2354
+ }, z.core.$strict>>;
2355
+ expressions: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
2356
+ id: z.ZodString;
2357
+ op: z.ZodLiteral<"field">;
2358
+ path: z.ZodString;
2359
+ }, z.core.$strict>, z.ZodObject<{
2360
+ id: z.ZodString;
2361
+ op: z.ZodLiteral<"literal">;
2362
+ type: z.ZodDiscriminatedUnion<[z.ZodObject<{
2363
+ kind: z.ZodLiteral<"money">;
2364
+ currency: z.ZodString;
2365
+ }, z.core.$strict>, z.ZodObject<{
2366
+ kind: z.ZodEnum<{
2367
+ boolean: "boolean";
2368
+ date: "date";
2369
+ integer: "integer";
2370
+ text: "text";
2371
+ }>;
2372
+ }, z.core.$strict>], "kind">;
2373
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
2374
+ }, z.core.$strict>, z.ZodObject<{
2375
+ id: z.ZodString;
2376
+ op: z.ZodLiteral<"parameter">;
2377
+ name: z.ZodEnum<{
2378
+ observationAt: "observationAt";
2379
+ periodEnd: "periodEnd";
2380
+ periodStart: "periodStart";
2381
+ }>;
2382
+ }, z.core.$strict>, z.ZodObject<{
2383
+ id: z.ZodString;
2384
+ op: z.ZodEnum<{
2385
+ and: "and";
2386
+ atMost: "atMost";
2387
+ daysBetween: "daysBetween";
2388
+ equal: "equal";
2389
+ less: "less";
2390
+ maximum: "maximum";
2391
+ minimum: "minimum";
2392
+ or: "or";
2393
+ subtract: "subtract";
2394
+ sum: "sum";
2395
+ }>;
2396
+ left: z.ZodString;
2397
+ right: z.ZodString;
2398
+ }, z.core.$strict>, z.ZodObject<{
2399
+ id: z.ZodString;
2400
+ op: z.ZodLiteral<"not">;
2401
+ value: z.ZodString;
2402
+ }, z.core.$strict>, z.ZodObject<{
2403
+ id: z.ZodString;
2404
+ op: z.ZodLiteral<"choose">;
2405
+ condition: z.ZodString;
2406
+ yes: z.ZodString;
2407
+ no: z.ZodString;
2408
+ }, z.core.$strict>, z.ZodObject<{
2409
+ id: z.ZodString;
2410
+ op: z.ZodLiteral<"bucket">;
2411
+ value: z.ZodString;
2412
+ unit: z.ZodEnum<{
2413
+ month: "month";
2414
+ quarter: "quarter";
2415
+ }>;
2416
+ }, z.core.$strict>, z.ZodObject<{
2417
+ id: z.ZodString;
2418
+ op: z.ZodLiteral<"ratio">;
2419
+ numerator: z.ZodString;
2420
+ denominator: z.ZodString;
2421
+ scale: z.ZodNumber;
2422
+ rounding: z.ZodEnum<{
2423
+ floor: "floor";
2424
+ halfUp: "halfUp";
2425
+ }>;
2426
+ zero: z.ZodEnum<{
2427
+ null: "null";
2428
+ refuse: "refuse";
2429
+ }>;
2430
+ }, z.core.$strict>], "op">>;
2431
+ groupBy: z.ZodArray<z.ZodString>;
2432
+ aggregates: z.ZodArray<z.ZodObject<{
2433
+ name: z.ZodString;
2434
+ op: z.ZodEnum<{
2435
+ average: "average";
2436
+ count: "count";
2437
+ maximum: "maximum";
2438
+ minimum: "minimum";
2439
+ sum: "sum";
2440
+ }>;
2441
+ rounding: z.ZodOptional<z.ZodEnum<{
2442
+ floor: "floor";
2443
+ halfUp: "halfUp";
2444
+ }>>;
2445
+ value: z.ZodOptional<z.ZodString>;
2446
+ }, z.core.$strict>>;
2447
+ resultExpressions: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
2448
+ id: z.ZodString;
2449
+ op: z.ZodLiteral<"field">;
2450
+ path: z.ZodString;
2451
+ }, z.core.$strict>, z.ZodObject<{
2452
+ id: z.ZodString;
2453
+ op: z.ZodLiteral<"literal">;
2454
+ type: z.ZodDiscriminatedUnion<[z.ZodObject<{
2455
+ kind: z.ZodLiteral<"money">;
2456
+ currency: z.ZodString;
2457
+ }, z.core.$strict>, z.ZodObject<{
2458
+ kind: z.ZodEnum<{
2459
+ boolean: "boolean";
2460
+ date: "date";
2461
+ integer: "integer";
2462
+ text: "text";
2463
+ }>;
2464
+ }, z.core.$strict>], "kind">;
2465
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
2466
+ }, z.core.$strict>, z.ZodObject<{
2467
+ id: z.ZodString;
2468
+ op: z.ZodLiteral<"parameter">;
2469
+ name: z.ZodEnum<{
2470
+ observationAt: "observationAt";
2471
+ periodEnd: "periodEnd";
2472
+ periodStart: "periodStart";
2473
+ }>;
2474
+ }, z.core.$strict>, z.ZodObject<{
2475
+ id: z.ZodString;
2476
+ op: z.ZodEnum<{
2477
+ and: "and";
2478
+ atMost: "atMost";
2479
+ daysBetween: "daysBetween";
2480
+ equal: "equal";
2481
+ less: "less";
2482
+ maximum: "maximum";
2483
+ minimum: "minimum";
2484
+ or: "or";
2485
+ subtract: "subtract";
2486
+ sum: "sum";
2487
+ }>;
2488
+ left: z.ZodString;
2489
+ right: z.ZodString;
2490
+ }, z.core.$strict>, z.ZodObject<{
2491
+ id: z.ZodString;
2492
+ op: z.ZodLiteral<"not">;
2493
+ value: z.ZodString;
2494
+ }, z.core.$strict>, z.ZodObject<{
2495
+ id: z.ZodString;
2496
+ op: z.ZodLiteral<"choose">;
2497
+ condition: z.ZodString;
2498
+ yes: z.ZodString;
2499
+ no: z.ZodString;
2500
+ }, z.core.$strict>, z.ZodObject<{
2501
+ id: z.ZodString;
2502
+ op: z.ZodLiteral<"bucket">;
2503
+ value: z.ZodString;
2504
+ unit: z.ZodEnum<{
2505
+ month: "month";
2506
+ quarter: "quarter";
2507
+ }>;
2508
+ }, z.core.$strict>, z.ZodObject<{
2509
+ id: z.ZodString;
2510
+ op: z.ZodLiteral<"ratio">;
2511
+ numerator: z.ZodString;
2512
+ denominator: z.ZodString;
2513
+ scale: z.ZodNumber;
2514
+ rounding: z.ZodEnum<{
2515
+ floor: "floor";
2516
+ halfUp: "halfUp";
2517
+ }>;
2518
+ zero: z.ZodEnum<{
2519
+ null: "null";
2520
+ refuse: "refuse";
2521
+ }>;
2522
+ }, z.core.$strict>], "op">>;
2523
+ }, z.core.$strict>;
2524
+ validation: z.ZodObject<{
2525
+ empty: z.ZodEnum<{
2526
+ noEligibleFacilities: "noEligibleFacilities";
2527
+ refuse: "refuse";
2528
+ }>;
2529
+ required: z.ZodArray<z.ZodString>;
2530
+ rowReconcile: z.ZodArray<z.ZodObject<{
2531
+ left: z.ZodString;
2532
+ right: z.ZodString;
2533
+ }, z.core.$strict>>;
2534
+ reconcile: z.ZodArray<z.ZodObject<{
2535
+ left: z.ZodString;
2536
+ right: z.ZodString;
2537
+ }, z.core.$strict>>;
2538
+ unavailableFacts: z.ZodArray<z.ZodString>;
2539
+ lockTimeoutMs: z.ZodNumber;
2540
+ captureTimeoutMs: z.ZodNumber;
2541
+ maxRows: z.ZodNumber;
2542
+ maxJoinRows: z.ZodNumber;
2543
+ maxBytes: z.ZodNumber;
2544
+ }, z.core.$strict>;
2545
+ output: z.ZodObject<{
2546
+ profile: z.ZodLiteral<"internal.v1">;
2547
+ formats: z.ZodArray<z.ZodEnum<{
2548
+ csv: "csv";
2549
+ json: "json";
2550
+ }>>;
2551
+ columns: z.ZodArray<z.ZodObject<{
2552
+ name: z.ZodString;
2553
+ label: z.ZodString;
2554
+ type: z.ZodDiscriminatedUnion<[z.ZodObject<{
2555
+ kind: z.ZodLiteral<"money">;
2556
+ currency: z.ZodString;
2557
+ }, z.core.$strict>, z.ZodObject<{
2558
+ kind: z.ZodEnum<{
2559
+ boolean: "boolean";
2560
+ date: "date";
2561
+ integer: "integer";
2562
+ text: "text";
2563
+ }>;
2564
+ }, z.core.$strict>], "kind">;
2565
+ }, z.core.$strict>>;
2566
+ sort: z.ZodArray<z.ZodString>;
2567
+ }, z.core.$strict>;
2568
+ authority: z.ZodObject<{
2569
+ request: z.ZodArray<z.ZodString>;
2570
+ read: z.ZodArray<z.ZodString>;
2571
+ release: z.ZodArray<z.ZodString>;
2572
+ independentApproval: z.ZodLiteral<true>;
2573
+ retention: z.ZodObject<{
2574
+ policy: z.ZodString;
2575
+ years: z.ZodNumber;
2576
+ }, z.core.$strict>;
2577
+ }, z.core.$strict>;
2578
+ }, z.core.$strict>>>;
2579
+ revisioned: z.ZodOptional<z.ZodLiteral<true>>;
1588
2580
  id: z.ZodString;
1589
2581
  title: z.ZodString;
1590
2582
  summary: z.ZodString;
@@ -1633,7 +2625,9 @@ export declare const udlDocumentSchema: z.ZodObject<{
1633
2625
  description: z.ZodOptional<z.ZodString>;
1634
2626
  type: z.ZodLiteral<"text">;
1635
2627
  value: z.ZodOptional<z.ZodString>;
2628
+ minLength: z.ZodOptional<z.ZodNumber>;
1636
2629
  maxLength: z.ZodOptional<z.ZodNumber>;
2630
+ pattern: z.ZodOptional<z.ZodString>;
1637
2631
  }, z.core.$strict>, z.ZodObject<{
1638
2632
  name: z.ZodString;
1639
2633
  optional: z.ZodOptional<z.ZodLiteral<true>>;
@@ -1826,11 +2820,26 @@ export declare const udlDocumentSchema: z.ZodObject<{
1826
2820
  actions: z.ZodRecord<z.ZodString, z.ZodObject<{
1827
2821
  summary: z.ZodString;
1828
2822
  publicAction: z.ZodOptional<z.ZodString>;
2823
+ expansionLimit: z.ZodOptional<z.ZodLiteral<8192>>;
2824
+ humanApproval: z.ZodOptional<z.ZodLiteral<"distinct_member">>;
2825
+ reminder: z.ZodOptional<z.ZodObject<{
2826
+ installment: z.ZodString;
2827
+ recipient: z.ZodString;
2828
+ dueAt: z.ZodString;
2829
+ channel: z.ZodLiteral<"email">;
2830
+ template: z.ZodLiteral<"payment_reminder">;
2831
+ beforeDays: z.ZodNumber;
2832
+ overdueDays: z.ZodNumber;
2833
+ maxPerDay: z.ZodNumber;
2834
+ startHour: z.ZodNumber;
2835
+ endHour: z.ZodNumber;
2836
+ timezone: z.ZodString;
2837
+ }, z.core.$strict>>;
1829
2838
  event: z.ZodString;
1830
2839
  actor: z.ZodUnion<readonly [z.ZodLiteral<"caller">, z.ZodLiteral<"clock">, z.ZodObject<{
1831
2840
  party: z.ZodString;
1832
2841
  }, z.core.$strict>, z.ZodObject<{
1833
- parent: z.ZodString;
2842
+ parent: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>;
1834
2843
  }, z.core.$strict>]>;
1835
2844
  input: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1836
2845
  name: z.ZodString;
@@ -1877,7 +2886,9 @@ export declare const udlDocumentSchema: z.ZodObject<{
1877
2886
  description: z.ZodOptional<z.ZodString>;
1878
2887
  type: z.ZodLiteral<"text">;
1879
2888
  value: z.ZodOptional<z.ZodString>;
2889
+ minLength: z.ZodOptional<z.ZodNumber>;
1880
2890
  maxLength: z.ZodOptional<z.ZodNumber>;
2891
+ pattern: z.ZodOptional<z.ZodString>;
1881
2892
  }, z.core.$strict>, z.ZodObject<{
1882
2893
  name: z.ZodString;
1883
2894
  optional: z.ZodOptional<z.ZodLiteral<true>>;
@@ -2008,10 +3019,28 @@ export declare const udlDocumentSchema: z.ZodObject<{
2008
3019
  due: z.ZodOptional<z.ZodObject<{
2009
3020
  at: z.ZodString;
2010
3021
  offset: z.ZodOptional<z.ZodNumber>;
3022
+ localDay: z.ZodOptional<z.ZodObject<{
3023
+ days: z.ZodNumber;
3024
+ direction: z.ZodEnum<{
3025
+ after: "after";
3026
+ before: "before";
3027
+ }>;
3028
+ hour: z.ZodNumber;
3029
+ timezone: z.ZodString;
3030
+ }, z.core.$strict>>;
2011
3031
  }, z.core.$strict>>;
2012
3032
  deadline: z.ZodOptional<z.ZodObject<{
2013
3033
  at: z.ZodString;
2014
3034
  offset: z.ZodOptional<z.ZodNumber>;
3035
+ localDay: z.ZodOptional<z.ZodObject<{
3036
+ days: z.ZodNumber;
3037
+ direction: z.ZodEnum<{
3038
+ after: "after";
3039
+ before: "before";
3040
+ }>;
3041
+ hour: z.ZodNumber;
3042
+ timezone: z.ZodString;
3043
+ }, z.core.$strict>>;
2015
3044
  }, z.core.$strict>>;
2016
3045
  set: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
2017
3046
  literal: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
@@ -2198,6 +3227,36 @@ export declare const udlDocumentSchema: z.ZodObject<{
2198
3227
  }, z.core.$strict>, z.ZodObject<{
2199
3228
  field: z.ZodString;
2200
3229
  }, z.core.$strict>]>>;
3230
+ guard: z.ZodOptional<z.ZodObject<{
3231
+ kind: z.ZodLiteral<"compare">;
3232
+ left: z.ZodUnion<readonly [z.ZodObject<{
3233
+ literal: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
3234
+ }, z.core.$strict>, z.ZodObject<{
3235
+ field: z.ZodString;
3236
+ }, z.core.$strict>]>;
3237
+ operator: z.ZodEnum<{
3238
+ "!=": "!=";
3239
+ "<": "<";
3240
+ "<=": "<=";
3241
+ "==": "==";
3242
+ ">": ">";
3243
+ ">=": ">=";
3244
+ }>;
3245
+ right: z.ZodUnion<readonly [z.ZodObject<{
3246
+ literal: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
3247
+ }, z.core.$strict>, z.ZodObject<{
3248
+ field: z.ZodString;
3249
+ }, z.core.$strict>]>;
3250
+ }, z.core.$strict>>;
3251
+ range: z.ZodOptional<z.ZodObject<{
3252
+ count: z.ZodUnion<readonly [z.ZodObject<{
3253
+ literal: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
3254
+ }, z.core.$strict>, z.ZodObject<{
3255
+ field: z.ZodString;
3256
+ }, z.core.$strict>]>;
3257
+ maximum: z.ZodNumber;
3258
+ bind: z.ZodString;
3259
+ }, z.core.$strict>>;
2201
3260
  }, z.core.$strict>, z.ZodObject<{
2202
3261
  reference: z.ZodString;
2203
3262
  action: z.ZodString;
@@ -2206,6 +3265,27 @@ export declare const udlDocumentSchema: z.ZodObject<{
2206
3265
  }, z.core.$strict>, z.ZodObject<{
2207
3266
  field: z.ZodString;
2208
3267
  }, z.core.$strict>]>>;
3268
+ guard: z.ZodOptional<z.ZodObject<{
3269
+ kind: z.ZodLiteral<"compare">;
3270
+ left: z.ZodUnion<readonly [z.ZodObject<{
3271
+ literal: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
3272
+ }, z.core.$strict>, z.ZodObject<{
3273
+ field: z.ZodString;
3274
+ }, z.core.$strict>]>;
3275
+ operator: z.ZodEnum<{
3276
+ "!=": "!=";
3277
+ "<": "<";
3278
+ "<=": "<=";
3279
+ "==": "==";
3280
+ ">": ">";
3281
+ ">=": ">=";
3282
+ }>;
3283
+ right: z.ZodUnion<readonly [z.ZodObject<{
3284
+ literal: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
3285
+ }, z.core.$strict>, z.ZodObject<{
3286
+ field: z.ZodString;
3287
+ }, z.core.$strict>]>;
3288
+ }, z.core.$strict>>;
2209
3289
  }, z.core.$strict>, z.ZodObject<{
2210
3290
  selection: z.ZodObject<{
2211
3291
  instrument: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>;
@@ -2230,6 +3310,27 @@ export declare const udlDocumentSchema: z.ZodObject<{
2230
3310
  }, z.core.$strict>, z.ZodObject<{
2231
3311
  field: z.ZodString;
2232
3312
  }, z.core.$strict>]>>;
3313
+ guard: z.ZodOptional<z.ZodObject<{
3314
+ kind: z.ZodLiteral<"compare">;
3315
+ left: z.ZodUnion<readonly [z.ZodObject<{
3316
+ literal: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
3317
+ }, z.core.$strict>, z.ZodObject<{
3318
+ field: z.ZodString;
3319
+ }, z.core.$strict>]>;
3320
+ operator: z.ZodEnum<{
3321
+ "!=": "!=";
3322
+ "<": "<";
3323
+ "<=": "<=";
3324
+ "==": "==";
3325
+ ">": ">";
3326
+ ">=": ">=";
3327
+ }>;
3328
+ right: z.ZodUnion<readonly [z.ZodObject<{
3329
+ literal: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
3330
+ }, z.core.$strict>, z.ZodObject<{
3331
+ field: z.ZodString;
3332
+ }, z.core.$strict>]>;
3333
+ }, z.core.$strict>>;
2233
3334
  }, z.core.$strict>]>>>;
2234
3335
  approval: z.ZodOptional<z.ZodObject<{
2235
3336
  target: z.ZodString;