@narrative.io/data-collaboration-sdk-ts 2.90.1 → 2.91.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.
@@ -5,7 +5,7 @@ type LogicalNode<T> = {
5
5
  allOf: Array<T | LogicalNode<T>>;
6
6
  };
7
7
  declare const CollaborationPolicy: z.ZodObject<{
8
- name: z.core.$ZodBranded<z.ZodString, "CollaborationPolicyId">;
8
+ name: z.core.$ZodBranded<z.ZodString, "CollaborationPolicyId", "out">;
9
9
  description: z.ZodOptional<z.ZodString>;
10
10
  display_name: z.ZodString;
11
11
  policy: z.ZodObject<{
@@ -16,7 +16,7 @@ declare const CollaborationPolicy: z.ZodObject<{
16
16
  }, z.core.$strict>>;
17
17
  }, z.core.$strip>;
18
18
  definition: z.ZodObject<{
19
- id: z.core.$ZodBranded<z.ZodString, "CollaborationPolicyId">;
19
+ id: z.core.$ZodBranded<z.ZodString, "CollaborationPolicyId", "out">;
20
20
  structure: z.ZodType<{
21
21
  field: {
22
22
  type: "attribute";
@@ -688,4 +688,683 @@ export type CollaborationPolicyType = z.infer<typeof CollaborationPolicy>;
688
688
  export type CollaborationPolicyInput = z.input<typeof CollaborationPolicy>;
689
689
  export { CollaborationPolicy };
690
690
  type JsonSchemaOptions = Parameters<typeof z.toJSONSchema>[1];
691
- export declare function buildCollaborationPolicyJsonSchema(options?: JsonSchemaOptions): z.core.JSONSchema.JSONSchema;
691
+ export declare function buildCollaborationPolicyJsonSchema(options?: JsonSchemaOptions): z.core.ZodStandardJSONSchemaPayload<z.ZodObject<{
692
+ name: z.core.$ZodBranded<z.ZodString, "CollaborationPolicyId", "out">;
693
+ description: z.ZodOptional<z.ZodString>;
694
+ display_name: z.ZodString;
695
+ policy: z.ZodObject<{
696
+ metadata: z.ZodObject<{
697
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
698
+ refresh_schedule: z.ZodOptional<z.ZodObject<{
699
+ max: z.ZodString;
700
+ }, z.core.$strict>>;
701
+ }, z.core.$strip>;
702
+ definition: z.ZodObject<{
703
+ id: z.core.$ZodBranded<z.ZodString, "CollaborationPolicyId", "out">;
704
+ structure: z.ZodType<{
705
+ field: {
706
+ type: "attribute";
707
+ attribute_name: string;
708
+ additional_required_properties?: ({
709
+ dot: string;
710
+ } | {
711
+ pointer: string;
712
+ })[] | undefined;
713
+ };
714
+ filters?: ({
715
+ op: "or" | "and";
716
+ stage: "generation";
717
+ required: boolean;
718
+ args: (string | number | boolean | {
719
+ type: "attribute";
720
+ attribute_name: string;
721
+ path?: {
722
+ dot: string;
723
+ } | {
724
+ pointer: string;
725
+ } | undefined;
726
+ })[];
727
+ name?: string | undefined;
728
+ } | {
729
+ op: "not";
730
+ stage: "generation";
731
+ required: boolean;
732
+ args: (string | number | boolean | {
733
+ type: "attribute";
734
+ attribute_name: string;
735
+ path?: {
736
+ dot: string;
737
+ } | {
738
+ pointer: string;
739
+ } | undefined;
740
+ })[];
741
+ name?: string | undefined;
742
+ } | {
743
+ op: "is_null" | "is_not_null";
744
+ stage: "generation";
745
+ required: boolean;
746
+ left: string | number | boolean | {
747
+ type: "attribute";
748
+ attribute_name: string;
749
+ path?: {
750
+ dot: string;
751
+ } | {
752
+ pointer: string;
753
+ } | undefined;
754
+ };
755
+ name?: string | undefined;
756
+ } | {
757
+ op: "in" | "not in";
758
+ stage: "generation";
759
+ required: boolean;
760
+ left: string | number | boolean | {
761
+ type: "attribute";
762
+ attribute_name: string;
763
+ path?: {
764
+ dot: string;
765
+ } | {
766
+ pointer: string;
767
+ } | undefined;
768
+ };
769
+ right: (string | number | boolean | {
770
+ type: "attribute";
771
+ attribute_name: string;
772
+ path?: {
773
+ dot: string;
774
+ } | {
775
+ pointer: string;
776
+ } | undefined;
777
+ })[];
778
+ name?: string | undefined;
779
+ } | {
780
+ op: ">" | "<" | ">=" | "<=" | "=" | "<>" | "like" | "not like";
781
+ stage: "generation";
782
+ required: boolean;
783
+ left: string | number | boolean | {
784
+ type: "attribute";
785
+ attribute_name: string;
786
+ path?: {
787
+ dot: string;
788
+ } | {
789
+ pointer: string;
790
+ } | undefined;
791
+ };
792
+ right: string | number | boolean | {
793
+ type: "attribute";
794
+ attribute_name: string;
795
+ path?: {
796
+ dot: string;
797
+ } | {
798
+ pointer: string;
799
+ } | undefined;
800
+ };
801
+ name?: string | undefined;
802
+ } | {
803
+ op: "between";
804
+ stage: "generation";
805
+ required: boolean;
806
+ operand: string | number | boolean | {
807
+ type: "attribute";
808
+ attribute_name: string;
809
+ path?: {
810
+ dot: string;
811
+ } | {
812
+ pointer: string;
813
+ } | undefined;
814
+ };
815
+ lower: string | number | boolean | {
816
+ type: "attribute";
817
+ attribute_name: string;
818
+ path?: {
819
+ dot: string;
820
+ } | {
821
+ pointer: string;
822
+ } | undefined;
823
+ };
824
+ upper: string | number | boolean | {
825
+ type: "attribute";
826
+ attribute_name: string;
827
+ path?: {
828
+ dot: string;
829
+ } | {
830
+ pointer: string;
831
+ } | undefined;
832
+ };
833
+ name?: string | undefined;
834
+ })[] | undefined;
835
+ } | LogicalNode<{
836
+ field: {
837
+ type: "attribute";
838
+ attribute_name: string;
839
+ additional_required_properties?: ({
840
+ dot: string;
841
+ } | {
842
+ pointer: string;
843
+ })[] | undefined;
844
+ };
845
+ filters?: ({
846
+ op: "or" | "and";
847
+ stage: "generation";
848
+ required: boolean;
849
+ args: (string | number | boolean | {
850
+ type: "attribute";
851
+ attribute_name: string;
852
+ path?: {
853
+ dot: string;
854
+ } | {
855
+ pointer: string;
856
+ } | undefined;
857
+ })[];
858
+ name?: string | undefined;
859
+ } | {
860
+ op: "not";
861
+ stage: "generation";
862
+ required: boolean;
863
+ args: (string | number | boolean | {
864
+ type: "attribute";
865
+ attribute_name: string;
866
+ path?: {
867
+ dot: string;
868
+ } | {
869
+ pointer: string;
870
+ } | undefined;
871
+ })[];
872
+ name?: string | undefined;
873
+ } | {
874
+ op: "is_null" | "is_not_null";
875
+ stage: "generation";
876
+ required: boolean;
877
+ left: string | number | boolean | {
878
+ type: "attribute";
879
+ attribute_name: string;
880
+ path?: {
881
+ dot: string;
882
+ } | {
883
+ pointer: string;
884
+ } | undefined;
885
+ };
886
+ name?: string | undefined;
887
+ } | {
888
+ op: "in" | "not in";
889
+ stage: "generation";
890
+ required: boolean;
891
+ left: string | number | boolean | {
892
+ type: "attribute";
893
+ attribute_name: string;
894
+ path?: {
895
+ dot: string;
896
+ } | {
897
+ pointer: string;
898
+ } | undefined;
899
+ };
900
+ right: (string | number | boolean | {
901
+ type: "attribute";
902
+ attribute_name: string;
903
+ path?: {
904
+ dot: string;
905
+ } | {
906
+ pointer: string;
907
+ } | undefined;
908
+ })[];
909
+ name?: string | undefined;
910
+ } | {
911
+ op: ">" | "<" | ">=" | "<=" | "=" | "<>" | "like" | "not like";
912
+ stage: "generation";
913
+ required: boolean;
914
+ left: string | number | boolean | {
915
+ type: "attribute";
916
+ attribute_name: string;
917
+ path?: {
918
+ dot: string;
919
+ } | {
920
+ pointer: string;
921
+ } | undefined;
922
+ };
923
+ right: string | number | boolean | {
924
+ type: "attribute";
925
+ attribute_name: string;
926
+ path?: {
927
+ dot: string;
928
+ } | {
929
+ pointer: string;
930
+ } | undefined;
931
+ };
932
+ name?: string | undefined;
933
+ } | {
934
+ op: "between";
935
+ stage: "generation";
936
+ required: boolean;
937
+ operand: string | number | boolean | {
938
+ type: "attribute";
939
+ attribute_name: string;
940
+ path?: {
941
+ dot: string;
942
+ } | {
943
+ pointer: string;
944
+ } | undefined;
945
+ };
946
+ lower: string | number | boolean | {
947
+ type: "attribute";
948
+ attribute_name: string;
949
+ path?: {
950
+ dot: string;
951
+ } | {
952
+ pointer: string;
953
+ } | undefined;
954
+ };
955
+ upper: string | number | boolean | {
956
+ type: "attribute";
957
+ attribute_name: string;
958
+ path?: {
959
+ dot: string;
960
+ } | {
961
+ pointer: string;
962
+ } | undefined;
963
+ };
964
+ name?: string | undefined;
965
+ })[] | undefined;
966
+ }>, unknown, z.core.$ZodTypeInternals<{
967
+ field: {
968
+ type: "attribute";
969
+ attribute_name: string;
970
+ additional_required_properties?: ({
971
+ dot: string;
972
+ } | {
973
+ pointer: string;
974
+ })[] | undefined;
975
+ };
976
+ filters?: ({
977
+ op: "or" | "and";
978
+ stage: "generation";
979
+ required: boolean;
980
+ args: (string | number | boolean | {
981
+ type: "attribute";
982
+ attribute_name: string;
983
+ path?: {
984
+ dot: string;
985
+ } | {
986
+ pointer: string;
987
+ } | undefined;
988
+ })[];
989
+ name?: string | undefined;
990
+ } | {
991
+ op: "not";
992
+ stage: "generation";
993
+ required: boolean;
994
+ args: (string | number | boolean | {
995
+ type: "attribute";
996
+ attribute_name: string;
997
+ path?: {
998
+ dot: string;
999
+ } | {
1000
+ pointer: string;
1001
+ } | undefined;
1002
+ })[];
1003
+ name?: string | undefined;
1004
+ } | {
1005
+ op: "is_null" | "is_not_null";
1006
+ stage: "generation";
1007
+ required: boolean;
1008
+ left: string | number | boolean | {
1009
+ type: "attribute";
1010
+ attribute_name: string;
1011
+ path?: {
1012
+ dot: string;
1013
+ } | {
1014
+ pointer: string;
1015
+ } | undefined;
1016
+ };
1017
+ name?: string | undefined;
1018
+ } | {
1019
+ op: "in" | "not in";
1020
+ stage: "generation";
1021
+ required: boolean;
1022
+ left: string | number | boolean | {
1023
+ type: "attribute";
1024
+ attribute_name: string;
1025
+ path?: {
1026
+ dot: string;
1027
+ } | {
1028
+ pointer: string;
1029
+ } | undefined;
1030
+ };
1031
+ right: (string | number | boolean | {
1032
+ type: "attribute";
1033
+ attribute_name: string;
1034
+ path?: {
1035
+ dot: string;
1036
+ } | {
1037
+ pointer: string;
1038
+ } | undefined;
1039
+ })[];
1040
+ name?: string | undefined;
1041
+ } | {
1042
+ op: ">" | "<" | ">=" | "<=" | "=" | "<>" | "like" | "not like";
1043
+ stage: "generation";
1044
+ required: boolean;
1045
+ left: string | number | boolean | {
1046
+ type: "attribute";
1047
+ attribute_name: string;
1048
+ path?: {
1049
+ dot: string;
1050
+ } | {
1051
+ pointer: string;
1052
+ } | undefined;
1053
+ };
1054
+ right: string | number | boolean | {
1055
+ type: "attribute";
1056
+ attribute_name: string;
1057
+ path?: {
1058
+ dot: string;
1059
+ } | {
1060
+ pointer: string;
1061
+ } | undefined;
1062
+ };
1063
+ name?: string | undefined;
1064
+ } | {
1065
+ op: "between";
1066
+ stage: "generation";
1067
+ required: boolean;
1068
+ operand: string | number | boolean | {
1069
+ type: "attribute";
1070
+ attribute_name: string;
1071
+ path?: {
1072
+ dot: string;
1073
+ } | {
1074
+ pointer: string;
1075
+ } | undefined;
1076
+ };
1077
+ lower: string | number | boolean | {
1078
+ type: "attribute";
1079
+ attribute_name: string;
1080
+ path?: {
1081
+ dot: string;
1082
+ } | {
1083
+ pointer: string;
1084
+ } | undefined;
1085
+ };
1086
+ upper: string | number | boolean | {
1087
+ type: "attribute";
1088
+ attribute_name: string;
1089
+ path?: {
1090
+ dot: string;
1091
+ } | {
1092
+ pointer: string;
1093
+ } | undefined;
1094
+ };
1095
+ name?: string | undefined;
1096
+ })[] | undefined;
1097
+ } | LogicalNode<{
1098
+ field: {
1099
+ type: "attribute";
1100
+ attribute_name: string;
1101
+ additional_required_properties?: ({
1102
+ dot: string;
1103
+ } | {
1104
+ pointer: string;
1105
+ })[] | undefined;
1106
+ };
1107
+ filters?: ({
1108
+ op: "or" | "and";
1109
+ stage: "generation";
1110
+ required: boolean;
1111
+ args: (string | number | boolean | {
1112
+ type: "attribute";
1113
+ attribute_name: string;
1114
+ path?: {
1115
+ dot: string;
1116
+ } | {
1117
+ pointer: string;
1118
+ } | undefined;
1119
+ })[];
1120
+ name?: string | undefined;
1121
+ } | {
1122
+ op: "not";
1123
+ stage: "generation";
1124
+ required: boolean;
1125
+ args: (string | number | boolean | {
1126
+ type: "attribute";
1127
+ attribute_name: string;
1128
+ path?: {
1129
+ dot: string;
1130
+ } | {
1131
+ pointer: string;
1132
+ } | undefined;
1133
+ })[];
1134
+ name?: string | undefined;
1135
+ } | {
1136
+ op: "is_null" | "is_not_null";
1137
+ stage: "generation";
1138
+ required: boolean;
1139
+ left: string | number | boolean | {
1140
+ type: "attribute";
1141
+ attribute_name: string;
1142
+ path?: {
1143
+ dot: string;
1144
+ } | {
1145
+ pointer: string;
1146
+ } | undefined;
1147
+ };
1148
+ name?: string | undefined;
1149
+ } | {
1150
+ op: "in" | "not in";
1151
+ stage: "generation";
1152
+ required: boolean;
1153
+ left: string | number | boolean | {
1154
+ type: "attribute";
1155
+ attribute_name: string;
1156
+ path?: {
1157
+ dot: string;
1158
+ } | {
1159
+ pointer: string;
1160
+ } | undefined;
1161
+ };
1162
+ right: (string | number | boolean | {
1163
+ type: "attribute";
1164
+ attribute_name: string;
1165
+ path?: {
1166
+ dot: string;
1167
+ } | {
1168
+ pointer: string;
1169
+ } | undefined;
1170
+ })[];
1171
+ name?: string | undefined;
1172
+ } | {
1173
+ op: ">" | "<" | ">=" | "<=" | "=" | "<>" | "like" | "not like";
1174
+ stage: "generation";
1175
+ required: boolean;
1176
+ left: string | number | boolean | {
1177
+ type: "attribute";
1178
+ attribute_name: string;
1179
+ path?: {
1180
+ dot: string;
1181
+ } | {
1182
+ pointer: string;
1183
+ } | undefined;
1184
+ };
1185
+ right: string | number | boolean | {
1186
+ type: "attribute";
1187
+ attribute_name: string;
1188
+ path?: {
1189
+ dot: string;
1190
+ } | {
1191
+ pointer: string;
1192
+ } | undefined;
1193
+ };
1194
+ name?: string | undefined;
1195
+ } | {
1196
+ op: "between";
1197
+ stage: "generation";
1198
+ required: boolean;
1199
+ operand: string | number | boolean | {
1200
+ type: "attribute";
1201
+ attribute_name: string;
1202
+ path?: {
1203
+ dot: string;
1204
+ } | {
1205
+ pointer: string;
1206
+ } | undefined;
1207
+ };
1208
+ lower: string | number | boolean | {
1209
+ type: "attribute";
1210
+ attribute_name: string;
1211
+ path?: {
1212
+ dot: string;
1213
+ } | {
1214
+ pointer: string;
1215
+ } | undefined;
1216
+ };
1217
+ upper: string | number | boolean | {
1218
+ type: "attribute";
1219
+ attribute_name: string;
1220
+ path?: {
1221
+ dot: string;
1222
+ } | {
1223
+ pointer: string;
1224
+ } | undefined;
1225
+ };
1226
+ name?: string | undefined;
1227
+ })[] | undefined;
1228
+ }>, unknown>>;
1229
+ filters: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1230
+ op: z.ZodEnum<{
1231
+ or: "or";
1232
+ and: "and";
1233
+ }>;
1234
+ stage: z.ZodDefault<z.ZodLiteral<"generation">>;
1235
+ name: z.ZodOptional<z.ZodString>;
1236
+ required: z.ZodDefault<z.ZodBoolean>;
1237
+ args: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodObject<{
1238
+ type: z.ZodLiteral<"attribute">;
1239
+ path: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
1240
+ dot: z.ZodString;
1241
+ }, z.core.$strict>, z.ZodObject<{
1242
+ pointer: z.ZodString;
1243
+ }, z.core.$strict>]>>;
1244
+ attribute_name: z.ZodString;
1245
+ }, z.core.$strict>]>>;
1246
+ }, z.core.$strict>, z.ZodObject<{
1247
+ op: z.ZodLiteral<"not">;
1248
+ stage: z.ZodDefault<z.ZodLiteral<"generation">>;
1249
+ name: z.ZodOptional<z.ZodString>;
1250
+ required: z.ZodDefault<z.ZodBoolean>;
1251
+ args: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodObject<{
1252
+ type: z.ZodLiteral<"attribute">;
1253
+ path: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
1254
+ dot: z.ZodString;
1255
+ }, z.core.$strict>, z.ZodObject<{
1256
+ pointer: z.ZodString;
1257
+ }, z.core.$strict>]>>;
1258
+ attribute_name: z.ZodString;
1259
+ }, z.core.$strict>]>>;
1260
+ }, z.core.$strict>, z.ZodObject<{
1261
+ op: z.ZodEnum<{
1262
+ is_null: "is_null";
1263
+ is_not_null: "is_not_null";
1264
+ }>;
1265
+ stage: z.ZodDefault<z.ZodLiteral<"generation">>;
1266
+ name: z.ZodOptional<z.ZodString>;
1267
+ required: z.ZodDefault<z.ZodBoolean>;
1268
+ left: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodObject<{
1269
+ type: z.ZodLiteral<"attribute">;
1270
+ path: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
1271
+ dot: z.ZodString;
1272
+ }, z.core.$strict>, z.ZodObject<{
1273
+ pointer: z.ZodString;
1274
+ }, z.core.$strict>]>>;
1275
+ attribute_name: z.ZodString;
1276
+ }, z.core.$strict>]>;
1277
+ }, z.core.$strict>, z.ZodObject<{
1278
+ op: z.ZodEnum<{
1279
+ in: "in";
1280
+ "not in": "not in";
1281
+ }>;
1282
+ stage: z.ZodDefault<z.ZodLiteral<"generation">>;
1283
+ name: z.ZodOptional<z.ZodString>;
1284
+ required: z.ZodDefault<z.ZodBoolean>;
1285
+ left: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodObject<{
1286
+ type: z.ZodLiteral<"attribute">;
1287
+ path: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
1288
+ dot: z.ZodString;
1289
+ }, z.core.$strict>, z.ZodObject<{
1290
+ pointer: z.ZodString;
1291
+ }, z.core.$strict>]>>;
1292
+ attribute_name: z.ZodString;
1293
+ }, z.core.$strict>]>;
1294
+ right: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodObject<{
1295
+ type: z.ZodLiteral<"attribute">;
1296
+ path: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
1297
+ dot: z.ZodString;
1298
+ }, z.core.$strict>, z.ZodObject<{
1299
+ pointer: z.ZodString;
1300
+ }, z.core.$strict>]>>;
1301
+ attribute_name: z.ZodString;
1302
+ }, z.core.$strict>]>>;
1303
+ }, z.core.$strict>, z.ZodObject<{
1304
+ op: z.ZodEnum<{
1305
+ ">": ">";
1306
+ "<": "<";
1307
+ ">=": ">=";
1308
+ "<=": "<=";
1309
+ "=": "=";
1310
+ "<>": "<>";
1311
+ like: "like";
1312
+ "not like": "not like";
1313
+ }>;
1314
+ stage: z.ZodDefault<z.ZodLiteral<"generation">>;
1315
+ name: z.ZodOptional<z.ZodString>;
1316
+ required: z.ZodDefault<z.ZodBoolean>;
1317
+ left: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodObject<{
1318
+ type: z.ZodLiteral<"attribute">;
1319
+ path: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
1320
+ dot: z.ZodString;
1321
+ }, z.core.$strict>, z.ZodObject<{
1322
+ pointer: z.ZodString;
1323
+ }, z.core.$strict>]>>;
1324
+ attribute_name: z.ZodString;
1325
+ }, z.core.$strict>]>;
1326
+ right: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodObject<{
1327
+ type: z.ZodLiteral<"attribute">;
1328
+ path: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
1329
+ dot: z.ZodString;
1330
+ }, z.core.$strict>, z.ZodObject<{
1331
+ pointer: z.ZodString;
1332
+ }, z.core.$strict>]>>;
1333
+ attribute_name: z.ZodString;
1334
+ }, z.core.$strict>]>;
1335
+ }, z.core.$strict>, z.ZodObject<{
1336
+ op: z.ZodLiteral<"between">;
1337
+ stage: z.ZodDefault<z.ZodLiteral<"generation">>;
1338
+ name: z.ZodOptional<z.ZodString>;
1339
+ required: z.ZodDefault<z.ZodBoolean>;
1340
+ operand: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodObject<{
1341
+ type: z.ZodLiteral<"attribute">;
1342
+ path: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
1343
+ dot: z.ZodString;
1344
+ }, z.core.$strict>, z.ZodObject<{
1345
+ pointer: z.ZodString;
1346
+ }, z.core.$strict>]>>;
1347
+ attribute_name: z.ZodString;
1348
+ }, z.core.$strict>]>;
1349
+ lower: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodObject<{
1350
+ type: z.ZodLiteral<"attribute">;
1351
+ path: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
1352
+ dot: z.ZodString;
1353
+ }, z.core.$strict>, z.ZodObject<{
1354
+ pointer: z.ZodString;
1355
+ }, z.core.$strict>]>>;
1356
+ attribute_name: z.ZodString;
1357
+ }, z.core.$strict>]>;
1358
+ upper: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodObject<{
1359
+ type: z.ZodLiteral<"attribute">;
1360
+ path: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
1361
+ dot: z.ZodString;
1362
+ }, z.core.$strict>, z.ZodObject<{
1363
+ pointer: z.ZodString;
1364
+ }, z.core.$strict>]>>;
1365
+ attribute_name: z.ZodString;
1366
+ }, z.core.$strict>]>;
1367
+ }, z.core.$strict>]>>>;
1368
+ }, z.core.$strip>;
1369
+ }, z.core.$strip>;
1370
+ }, z.core.$strip>>;
@@ -16,7 +16,8 @@ export interface Mapping {
16
16
  }
17
17
  type MappingStatus = "active" | "archived" | "pending" | "rejected";
18
18
  type MappingScope = "global" | "private";
19
- type MappingSource = "system" | "admin" | "company";
19
+ type MappingSource = "system" | "admin" | "company" | "lineage" | "rosetta_stone";
20
+ type CreateMappingSource = "company" | "rosetta_stone";
20
21
  export interface MappingExpressionDependencies {
21
22
  properties: string[];
22
23
  }
@@ -53,6 +54,7 @@ export interface CreateMapping {
53
54
  mapping: RawMappingDefinition;
54
55
  tags?: string[];
55
56
  status?: MappingStatus;
57
+ source?: CreateMappingSource;
56
58
  }
57
59
  export interface MappingTestResult {
58
60
  input: Record<string, unknown>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@narrative.io/data-collaboration-sdk-ts",
3
- "version": "2.90.1",
3
+ "version": "2.91.0",
4
4
  "main": "build/index.js",
5
5
  "repository": "github:narrative-io/data-collaboration-sdk-ts",
6
6
  "source": "src/index.ts",
@@ -28,18 +28,18 @@
28
28
  "@babel/core": "7.28.5",
29
29
  "@babel/preset-env": "7.28.5",
30
30
  "@babel/preset-typescript": "7.28.5",
31
- "@biomejs/biome": "2.3.8",
32
- "@commitlint/cli": "20.2.0",
33
- "@commitlint/config-conventional": "20.2.0",
31
+ "@biomejs/biome": "2.3.11",
32
+ "@commitlint/cli": "20.3.0",
33
+ "@commitlint/config-conventional": "20.3.0",
34
34
  "@types/jest": "30.0.0",
35
35
  "babel-jest": "30.2.0",
36
36
  "jest": "30.2.0",
37
- "lefthook": "2.0.9",
37
+ "lefthook": "2.0.13",
38
38
  "ts-jest": "29.4.6"
39
39
  },
40
40
  "dependencies": {
41
41
  "mande": "2.0.9",
42
- "zod": "4.1.13",
42
+ "zod": "4.3.5",
43
43
  "bignumber.js": "9.3.1"
44
44
  },
45
45
  "overrides": {