@doist/todoist-sdk 9.4.0 → 9.6.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.
@@ -3,26 +3,10 @@ import { WebhookEventSchema, type WebhookEvent } from '../apps/types.js';
3
3
  /**
4
4
  * A single branch covering every event whose payload has not yet been typed
5
5
  * per resource. Follow-up PRs will replace slices of this with dedicated
6
- * variants (notes, projects, sections, labels, filters, reminders).
6
+ * variants (filters, reminders).
7
7
  */
8
8
  export declare const UntypedWebhookPayloadSchema: z.ZodObject<{
9
9
  eventName: z.ZodEnum<{
10
- "project:added": "project:added";
11
- "project:updated": "project:updated";
12
- "project:deleted": "project:deleted";
13
- "project:archived": "project:archived";
14
- "project:unarchived": "project:unarchived";
15
- "note:added": "note:added";
16
- "note:updated": "note:updated";
17
- "note:deleted": "note:deleted";
18
- "section:added": "section:added";
19
- "section:updated": "section:updated";
20
- "section:deleted": "section:deleted";
21
- "section:archived": "section:archived";
22
- "section:unarchived": "section:unarchived";
23
- "label:added": "label:added";
24
- "label:updated": "label:updated";
25
- "label:deleted": "label:deleted";
26
10
  "filter:added": "filter:added";
27
11
  "filter:updated": "filter:updated";
28
12
  "filter:deleted": "filter:deleted";
@@ -50,9 +34,12 @@ export declare const UntypedWebhookPayloadSchema: z.ZodObject<{
50
34
  * (`item:added`) in the `event_name` field, so consumers using
51
35
  * `parseWebhookPayload` receive camelCase fields directly.
52
36
  *
53
- * Typed today: `item:*` events carry a parsed {@link Task}. Other events
54
- * still expose `eventData` as `unknown`; they will be narrowed in follow-up
55
- * PRs (notes, projects, sections, labels, filters, reminders).
37
+ * Typed today: `item:*` events carry a parsed {@link Task}; `note:*` events
38
+ * carry a parsed comment (item-comment or project-comment); `label:*` events
39
+ * carry a parsed label; `project:*` events carry a parsed {@link Project}
40
+ * (personal or workspace); `section:*` events carry a parsed
41
+ * {@link WebhookSection}. Other events still expose `eventData` as
42
+ * `unknown`; they will be narrowed in follow-up PRs (filters, reminders).
56
43
  */
57
44
  export declare const WebhookPayloadSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
58
45
  eventName: z.ZodLiteral<"item:added">;
@@ -846,24 +833,1636 @@ export declare const WebhookPayloadSchema: z.ZodDiscriminatedUnion<[z.ZodObject<
846
833
  isPremium: z.ZodBoolean;
847
834
  }, z.core.$strip>;
848
835
  triggeredAt: z.ZodCoercedDate<unknown>;
836
+ }, z.core.$strip>, z.ZodObject<{
837
+ eventName: z.ZodLiteral<"note:added">;
838
+ eventData: z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
839
+ id: z.ZodString;
840
+ content: z.ZodString;
841
+ postedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
842
+ postedUid: z.ZodNullable<z.ZodString>;
843
+ fileAttachment: z.ZodNullable<z.ZodObject<{
844
+ resourceType: z.ZodString;
845
+ fileName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
846
+ fileSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
847
+ fileType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
848
+ fileUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
849
+ fileDuration: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
850
+ uploadState: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
851
+ completed: "completed";
852
+ pending: "pending";
853
+ }>>>;
854
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
855
+ imageWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
856
+ imageHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
857
+ url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
858
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
859
+ }, z.core.$strip>>;
860
+ uidsToNotify: z.ZodNullable<z.ZodArray<z.ZodString>>;
861
+ reactions: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
862
+ isDeleted: z.ZodBoolean;
863
+ itemId: z.ZodString;
864
+ url: z.ZodString;
865
+ item: z.ZodPipe<z.ZodObject<{
866
+ id: z.ZodString;
867
+ userId: z.ZodString;
868
+ projectId: z.ZodString;
869
+ sectionId: z.ZodNullable<z.ZodString>;
870
+ parentId: z.ZodNullable<z.ZodString>;
871
+ addedByUid: z.ZodNullable<z.ZodString>;
872
+ assignedByUid: z.ZodNullable<z.ZodString>;
873
+ responsibleUid: z.ZodNullable<z.ZodString>;
874
+ labels: z.ZodArray<z.ZodString>;
875
+ deadline: z.ZodNullable<z.ZodObject<{
876
+ date: z.ZodString;
877
+ lang: z.ZodString;
878
+ }, z.core.$strip>>;
879
+ duration: z.ZodNullable<z.ZodObject<{
880
+ amount: z.ZodNumber;
881
+ unit: z.ZodEnum<{
882
+ minute: "minute";
883
+ day: "day";
884
+ }>;
885
+ }, z.core.$strip>>;
886
+ checked: z.ZodBoolean;
887
+ isDeleted: z.ZodBoolean;
888
+ addedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
889
+ completedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
890
+ updatedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
891
+ due: z.ZodNullable<z.ZodObject<{
892
+ isRecurring: z.ZodBoolean;
893
+ string: z.ZodString;
894
+ date: z.ZodString;
895
+ datetime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
896
+ timezone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
897
+ lang: z.ZodOptional<z.ZodNullable<z.ZodString>>;
898
+ }, z.core.$strip>>;
899
+ priority: z.ZodNumber;
900
+ childOrder: z.ZodNumber;
901
+ content: z.ZodString;
902
+ description: z.ZodString;
903
+ dayOrder: z.ZodNumber;
904
+ isCollapsed: z.ZodBoolean;
905
+ isUncompletable: z.ZodDefault<z.ZodBoolean>;
906
+ }, z.core.$strip>, z.ZodTransform<{
907
+ isUncompletable: boolean;
908
+ url: string;
909
+ id: string;
910
+ userId: string;
911
+ projectId: string;
912
+ sectionId: string | null;
913
+ parentId: string | null;
914
+ addedByUid: string | null;
915
+ assignedByUid: string | null;
916
+ responsibleUid: string | null;
917
+ labels: string[];
918
+ deadline: {
919
+ date: string;
920
+ lang: string;
921
+ } | null;
922
+ duration: {
923
+ amount: number;
924
+ unit: "minute" | "day";
925
+ } | null;
926
+ checked: boolean;
927
+ isDeleted: boolean;
928
+ addedAt: Date | null;
929
+ completedAt: Date | null;
930
+ updatedAt: Date | null;
931
+ due: {
932
+ isRecurring: boolean;
933
+ string: string;
934
+ date: string;
935
+ datetime?: string | null | undefined;
936
+ timezone?: string | null | undefined;
937
+ lang?: string | null | undefined;
938
+ } | null;
939
+ priority: number;
940
+ childOrder: number;
941
+ content: string;
942
+ description: string;
943
+ dayOrder: number;
944
+ isCollapsed: boolean;
945
+ }, {
946
+ id: string;
947
+ userId: string;
948
+ projectId: string;
949
+ sectionId: string | null;
950
+ parentId: string | null;
951
+ addedByUid: string | null;
952
+ assignedByUid: string | null;
953
+ responsibleUid: string | null;
954
+ labels: string[];
955
+ deadline: {
956
+ date: string;
957
+ lang: string;
958
+ } | null;
959
+ duration: {
960
+ amount: number;
961
+ unit: "minute" | "day";
962
+ } | null;
963
+ checked: boolean;
964
+ isDeleted: boolean;
965
+ addedAt: Date | null;
966
+ completedAt: Date | null;
967
+ updatedAt: Date | null;
968
+ due: {
969
+ isRecurring: boolean;
970
+ string: string;
971
+ date: string;
972
+ datetime?: string | null | undefined;
973
+ timezone?: string | null | undefined;
974
+ lang?: string | null | undefined;
975
+ } | null;
976
+ priority: number;
977
+ childOrder: number;
978
+ content: string;
979
+ description: string;
980
+ dayOrder: number;
981
+ isCollapsed: boolean;
982
+ isUncompletable: boolean;
983
+ }>>;
984
+ }, z.core.$strict>, z.ZodTransform<{
985
+ taskId: string;
986
+ id: string;
987
+ content: string;
988
+ postedAt: Date | null;
989
+ postedUid: string | null;
990
+ fileAttachment: {
991
+ resourceType: string;
992
+ fileName?: string | null | undefined;
993
+ fileSize?: number | null | undefined;
994
+ fileType?: string | null | undefined;
995
+ fileUrl?: string | null | undefined;
996
+ fileDuration?: number | null | undefined;
997
+ uploadState?: "completed" | "pending" | null | undefined;
998
+ image?: string | null | undefined;
999
+ imageWidth?: number | null | undefined;
1000
+ imageHeight?: number | null | undefined;
1001
+ url?: string | null | undefined;
1002
+ title?: string | null | undefined;
1003
+ } | null;
1004
+ uidsToNotify: string[] | null;
1005
+ reactions: Record<string, string[]> | null;
1006
+ isDeleted: boolean;
1007
+ url: string;
1008
+ item: {
1009
+ isUncompletable: boolean;
1010
+ url: string;
1011
+ id: string;
1012
+ userId: string;
1013
+ projectId: string;
1014
+ sectionId: string | null;
1015
+ parentId: string | null;
1016
+ addedByUid: string | null;
1017
+ assignedByUid: string | null;
1018
+ responsibleUid: string | null;
1019
+ labels: string[];
1020
+ deadline: {
1021
+ date: string;
1022
+ lang: string;
1023
+ } | null;
1024
+ duration: {
1025
+ amount: number;
1026
+ unit: "minute" | "day";
1027
+ } | null;
1028
+ checked: boolean;
1029
+ isDeleted: boolean;
1030
+ addedAt: Date | null;
1031
+ completedAt: Date | null;
1032
+ updatedAt: Date | null;
1033
+ due: {
1034
+ isRecurring: boolean;
1035
+ string: string;
1036
+ date: string;
1037
+ datetime?: string | null | undefined;
1038
+ timezone?: string | null | undefined;
1039
+ lang?: string | null | undefined;
1040
+ } | null;
1041
+ priority: number;
1042
+ childOrder: number;
1043
+ content: string;
1044
+ description: string;
1045
+ dayOrder: number;
1046
+ isCollapsed: boolean;
1047
+ };
1048
+ }, {
1049
+ id: string;
1050
+ content: string;
1051
+ postedAt: Date | null;
1052
+ postedUid: string | null;
1053
+ fileAttachment: {
1054
+ resourceType: string;
1055
+ fileName?: string | null | undefined;
1056
+ fileSize?: number | null | undefined;
1057
+ fileType?: string | null | undefined;
1058
+ fileUrl?: string | null | undefined;
1059
+ fileDuration?: number | null | undefined;
1060
+ uploadState?: "completed" | "pending" | null | undefined;
1061
+ image?: string | null | undefined;
1062
+ imageWidth?: number | null | undefined;
1063
+ imageHeight?: number | null | undefined;
1064
+ url?: string | null | undefined;
1065
+ title?: string | null | undefined;
1066
+ } | null;
1067
+ uidsToNotify: string[] | null;
1068
+ reactions: Record<string, string[]> | null;
1069
+ isDeleted: boolean;
1070
+ itemId: string;
1071
+ url: string;
1072
+ item: {
1073
+ isUncompletable: boolean;
1074
+ url: string;
1075
+ id: string;
1076
+ userId: string;
1077
+ projectId: string;
1078
+ sectionId: string | null;
1079
+ parentId: string | null;
1080
+ addedByUid: string | null;
1081
+ assignedByUid: string | null;
1082
+ responsibleUid: string | null;
1083
+ labels: string[];
1084
+ deadline: {
1085
+ date: string;
1086
+ lang: string;
1087
+ } | null;
1088
+ duration: {
1089
+ amount: number;
1090
+ unit: "minute" | "day";
1091
+ } | null;
1092
+ checked: boolean;
1093
+ isDeleted: boolean;
1094
+ addedAt: Date | null;
1095
+ completedAt: Date | null;
1096
+ updatedAt: Date | null;
1097
+ due: {
1098
+ isRecurring: boolean;
1099
+ string: string;
1100
+ date: string;
1101
+ datetime?: string | null | undefined;
1102
+ timezone?: string | null | undefined;
1103
+ lang?: string | null | undefined;
1104
+ } | null;
1105
+ priority: number;
1106
+ childOrder: number;
1107
+ content: string;
1108
+ description: string;
1109
+ dayOrder: number;
1110
+ isCollapsed: boolean;
1111
+ };
1112
+ }>>, z.ZodObject<{
1113
+ id: z.ZodString;
1114
+ content: z.ZodString;
1115
+ postedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
1116
+ postedUid: z.ZodNullable<z.ZodString>;
1117
+ fileAttachment: z.ZodNullable<z.ZodObject<{
1118
+ resourceType: z.ZodString;
1119
+ fileName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1120
+ fileSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1121
+ fileType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1122
+ fileUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1123
+ fileDuration: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1124
+ uploadState: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1125
+ completed: "completed";
1126
+ pending: "pending";
1127
+ }>>>;
1128
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1129
+ imageWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1130
+ imageHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1131
+ url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1132
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1133
+ }, z.core.$strip>>;
1134
+ uidsToNotify: z.ZodNullable<z.ZodArray<z.ZodString>>;
1135
+ reactions: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
1136
+ isDeleted: z.ZodBoolean;
1137
+ projectId: z.ZodString;
1138
+ }, z.core.$strict>]>;
1139
+ version: z.ZodEnum<{
1140
+ 1: "1";
1141
+ }>;
1142
+ userId: z.ZodString;
1143
+ initiator: z.ZodObject<{
1144
+ id: z.ZodString;
1145
+ fullName: z.ZodString;
1146
+ email: z.ZodString;
1147
+ imageId: z.ZodNullable<z.ZodString>;
1148
+ isPremium: z.ZodBoolean;
1149
+ }, z.core.$strip>;
1150
+ triggeredAt: z.ZodCoercedDate<unknown>;
1151
+ }, z.core.$strip>, z.ZodObject<{
1152
+ eventName: z.ZodLiteral<"note:updated">;
1153
+ eventData: z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
1154
+ id: z.ZodString;
1155
+ content: z.ZodString;
1156
+ postedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
1157
+ postedUid: z.ZodNullable<z.ZodString>;
1158
+ fileAttachment: z.ZodNullable<z.ZodObject<{
1159
+ resourceType: z.ZodString;
1160
+ fileName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1161
+ fileSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1162
+ fileType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1163
+ fileUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1164
+ fileDuration: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1165
+ uploadState: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1166
+ completed: "completed";
1167
+ pending: "pending";
1168
+ }>>>;
1169
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1170
+ imageWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1171
+ imageHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1172
+ url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1173
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1174
+ }, z.core.$strip>>;
1175
+ uidsToNotify: z.ZodNullable<z.ZodArray<z.ZodString>>;
1176
+ reactions: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
1177
+ isDeleted: z.ZodBoolean;
1178
+ itemId: z.ZodString;
1179
+ url: z.ZodString;
1180
+ item: z.ZodPipe<z.ZodObject<{
1181
+ id: z.ZodString;
1182
+ userId: z.ZodString;
1183
+ projectId: z.ZodString;
1184
+ sectionId: z.ZodNullable<z.ZodString>;
1185
+ parentId: z.ZodNullable<z.ZodString>;
1186
+ addedByUid: z.ZodNullable<z.ZodString>;
1187
+ assignedByUid: z.ZodNullable<z.ZodString>;
1188
+ responsibleUid: z.ZodNullable<z.ZodString>;
1189
+ labels: z.ZodArray<z.ZodString>;
1190
+ deadline: z.ZodNullable<z.ZodObject<{
1191
+ date: z.ZodString;
1192
+ lang: z.ZodString;
1193
+ }, z.core.$strip>>;
1194
+ duration: z.ZodNullable<z.ZodObject<{
1195
+ amount: z.ZodNumber;
1196
+ unit: z.ZodEnum<{
1197
+ minute: "minute";
1198
+ day: "day";
1199
+ }>;
1200
+ }, z.core.$strip>>;
1201
+ checked: z.ZodBoolean;
1202
+ isDeleted: z.ZodBoolean;
1203
+ addedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
1204
+ completedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
1205
+ updatedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
1206
+ due: z.ZodNullable<z.ZodObject<{
1207
+ isRecurring: z.ZodBoolean;
1208
+ string: z.ZodString;
1209
+ date: z.ZodString;
1210
+ datetime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1211
+ timezone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1212
+ lang: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1213
+ }, z.core.$strip>>;
1214
+ priority: z.ZodNumber;
1215
+ childOrder: z.ZodNumber;
1216
+ content: z.ZodString;
1217
+ description: z.ZodString;
1218
+ dayOrder: z.ZodNumber;
1219
+ isCollapsed: z.ZodBoolean;
1220
+ isUncompletable: z.ZodDefault<z.ZodBoolean>;
1221
+ }, z.core.$strip>, z.ZodTransform<{
1222
+ isUncompletable: boolean;
1223
+ url: string;
1224
+ id: string;
1225
+ userId: string;
1226
+ projectId: string;
1227
+ sectionId: string | null;
1228
+ parentId: string | null;
1229
+ addedByUid: string | null;
1230
+ assignedByUid: string | null;
1231
+ responsibleUid: string | null;
1232
+ labels: string[];
1233
+ deadline: {
1234
+ date: string;
1235
+ lang: string;
1236
+ } | null;
1237
+ duration: {
1238
+ amount: number;
1239
+ unit: "minute" | "day";
1240
+ } | null;
1241
+ checked: boolean;
1242
+ isDeleted: boolean;
1243
+ addedAt: Date | null;
1244
+ completedAt: Date | null;
1245
+ updatedAt: Date | null;
1246
+ due: {
1247
+ isRecurring: boolean;
1248
+ string: string;
1249
+ date: string;
1250
+ datetime?: string | null | undefined;
1251
+ timezone?: string | null | undefined;
1252
+ lang?: string | null | undefined;
1253
+ } | null;
1254
+ priority: number;
1255
+ childOrder: number;
1256
+ content: string;
1257
+ description: string;
1258
+ dayOrder: number;
1259
+ isCollapsed: boolean;
1260
+ }, {
1261
+ id: string;
1262
+ userId: string;
1263
+ projectId: string;
1264
+ sectionId: string | null;
1265
+ parentId: string | null;
1266
+ addedByUid: string | null;
1267
+ assignedByUid: string | null;
1268
+ responsibleUid: string | null;
1269
+ labels: string[];
1270
+ deadline: {
1271
+ date: string;
1272
+ lang: string;
1273
+ } | null;
1274
+ duration: {
1275
+ amount: number;
1276
+ unit: "minute" | "day";
1277
+ } | null;
1278
+ checked: boolean;
1279
+ isDeleted: boolean;
1280
+ addedAt: Date | null;
1281
+ completedAt: Date | null;
1282
+ updatedAt: Date | null;
1283
+ due: {
1284
+ isRecurring: boolean;
1285
+ string: string;
1286
+ date: string;
1287
+ datetime?: string | null | undefined;
1288
+ timezone?: string | null | undefined;
1289
+ lang?: string | null | undefined;
1290
+ } | null;
1291
+ priority: number;
1292
+ childOrder: number;
1293
+ content: string;
1294
+ description: string;
1295
+ dayOrder: number;
1296
+ isCollapsed: boolean;
1297
+ isUncompletable: boolean;
1298
+ }>>;
1299
+ }, z.core.$strict>, z.ZodTransform<{
1300
+ taskId: string;
1301
+ id: string;
1302
+ content: string;
1303
+ postedAt: Date | null;
1304
+ postedUid: string | null;
1305
+ fileAttachment: {
1306
+ resourceType: string;
1307
+ fileName?: string | null | undefined;
1308
+ fileSize?: number | null | undefined;
1309
+ fileType?: string | null | undefined;
1310
+ fileUrl?: string | null | undefined;
1311
+ fileDuration?: number | null | undefined;
1312
+ uploadState?: "completed" | "pending" | null | undefined;
1313
+ image?: string | null | undefined;
1314
+ imageWidth?: number | null | undefined;
1315
+ imageHeight?: number | null | undefined;
1316
+ url?: string | null | undefined;
1317
+ title?: string | null | undefined;
1318
+ } | null;
1319
+ uidsToNotify: string[] | null;
1320
+ reactions: Record<string, string[]> | null;
1321
+ isDeleted: boolean;
1322
+ url: string;
1323
+ item: {
1324
+ isUncompletable: boolean;
1325
+ url: string;
1326
+ id: string;
1327
+ userId: string;
1328
+ projectId: string;
1329
+ sectionId: string | null;
1330
+ parentId: string | null;
1331
+ addedByUid: string | null;
1332
+ assignedByUid: string | null;
1333
+ responsibleUid: string | null;
1334
+ labels: string[];
1335
+ deadline: {
1336
+ date: string;
1337
+ lang: string;
1338
+ } | null;
1339
+ duration: {
1340
+ amount: number;
1341
+ unit: "minute" | "day";
1342
+ } | null;
1343
+ checked: boolean;
1344
+ isDeleted: boolean;
1345
+ addedAt: Date | null;
1346
+ completedAt: Date | null;
1347
+ updatedAt: Date | null;
1348
+ due: {
1349
+ isRecurring: boolean;
1350
+ string: string;
1351
+ date: string;
1352
+ datetime?: string | null | undefined;
1353
+ timezone?: string | null | undefined;
1354
+ lang?: string | null | undefined;
1355
+ } | null;
1356
+ priority: number;
1357
+ childOrder: number;
1358
+ content: string;
1359
+ description: string;
1360
+ dayOrder: number;
1361
+ isCollapsed: boolean;
1362
+ };
1363
+ }, {
1364
+ id: string;
1365
+ content: string;
1366
+ postedAt: Date | null;
1367
+ postedUid: string | null;
1368
+ fileAttachment: {
1369
+ resourceType: string;
1370
+ fileName?: string | null | undefined;
1371
+ fileSize?: number | null | undefined;
1372
+ fileType?: string | null | undefined;
1373
+ fileUrl?: string | null | undefined;
1374
+ fileDuration?: number | null | undefined;
1375
+ uploadState?: "completed" | "pending" | null | undefined;
1376
+ image?: string | null | undefined;
1377
+ imageWidth?: number | null | undefined;
1378
+ imageHeight?: number | null | undefined;
1379
+ url?: string | null | undefined;
1380
+ title?: string | null | undefined;
1381
+ } | null;
1382
+ uidsToNotify: string[] | null;
1383
+ reactions: Record<string, string[]> | null;
1384
+ isDeleted: boolean;
1385
+ itemId: string;
1386
+ url: string;
1387
+ item: {
1388
+ isUncompletable: boolean;
1389
+ url: string;
1390
+ id: string;
1391
+ userId: string;
1392
+ projectId: string;
1393
+ sectionId: string | null;
1394
+ parentId: string | null;
1395
+ addedByUid: string | null;
1396
+ assignedByUid: string | null;
1397
+ responsibleUid: string | null;
1398
+ labels: string[];
1399
+ deadline: {
1400
+ date: string;
1401
+ lang: string;
1402
+ } | null;
1403
+ duration: {
1404
+ amount: number;
1405
+ unit: "minute" | "day";
1406
+ } | null;
1407
+ checked: boolean;
1408
+ isDeleted: boolean;
1409
+ addedAt: Date | null;
1410
+ completedAt: Date | null;
1411
+ updatedAt: Date | null;
1412
+ due: {
1413
+ isRecurring: boolean;
1414
+ string: string;
1415
+ date: string;
1416
+ datetime?: string | null | undefined;
1417
+ timezone?: string | null | undefined;
1418
+ lang?: string | null | undefined;
1419
+ } | null;
1420
+ priority: number;
1421
+ childOrder: number;
1422
+ content: string;
1423
+ description: string;
1424
+ dayOrder: number;
1425
+ isCollapsed: boolean;
1426
+ };
1427
+ }>>, z.ZodObject<{
1428
+ id: z.ZodString;
1429
+ content: z.ZodString;
1430
+ postedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
1431
+ postedUid: z.ZodNullable<z.ZodString>;
1432
+ fileAttachment: z.ZodNullable<z.ZodObject<{
1433
+ resourceType: z.ZodString;
1434
+ fileName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1435
+ fileSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1436
+ fileType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1437
+ fileUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1438
+ fileDuration: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1439
+ uploadState: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1440
+ completed: "completed";
1441
+ pending: "pending";
1442
+ }>>>;
1443
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1444
+ imageWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1445
+ imageHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1446
+ url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1447
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1448
+ }, z.core.$strip>>;
1449
+ uidsToNotify: z.ZodNullable<z.ZodArray<z.ZodString>>;
1450
+ reactions: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
1451
+ isDeleted: z.ZodBoolean;
1452
+ projectId: z.ZodString;
1453
+ }, z.core.$strict>]>;
1454
+ version: z.ZodEnum<{
1455
+ 1: "1";
1456
+ }>;
1457
+ userId: z.ZodString;
1458
+ initiator: z.ZodObject<{
1459
+ id: z.ZodString;
1460
+ fullName: z.ZodString;
1461
+ email: z.ZodString;
1462
+ imageId: z.ZodNullable<z.ZodString>;
1463
+ isPremium: z.ZodBoolean;
1464
+ }, z.core.$strip>;
1465
+ triggeredAt: z.ZodCoercedDate<unknown>;
1466
+ }, z.core.$strip>, z.ZodObject<{
1467
+ eventName: z.ZodLiteral<"note:deleted">;
1468
+ eventData: z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
1469
+ id: z.ZodString;
1470
+ content: z.ZodString;
1471
+ postedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
1472
+ postedUid: z.ZodNullable<z.ZodString>;
1473
+ fileAttachment: z.ZodNullable<z.ZodObject<{
1474
+ resourceType: z.ZodString;
1475
+ fileName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1476
+ fileSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1477
+ fileType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1478
+ fileUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1479
+ fileDuration: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1480
+ uploadState: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1481
+ completed: "completed";
1482
+ pending: "pending";
1483
+ }>>>;
1484
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1485
+ imageWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1486
+ imageHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1487
+ url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1488
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1489
+ }, z.core.$strip>>;
1490
+ uidsToNotify: z.ZodNullable<z.ZodArray<z.ZodString>>;
1491
+ reactions: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
1492
+ isDeleted: z.ZodBoolean;
1493
+ itemId: z.ZodString;
1494
+ url: z.ZodString;
1495
+ item: z.ZodPipe<z.ZodObject<{
1496
+ id: z.ZodString;
1497
+ userId: z.ZodString;
1498
+ projectId: z.ZodString;
1499
+ sectionId: z.ZodNullable<z.ZodString>;
1500
+ parentId: z.ZodNullable<z.ZodString>;
1501
+ addedByUid: z.ZodNullable<z.ZodString>;
1502
+ assignedByUid: z.ZodNullable<z.ZodString>;
1503
+ responsibleUid: z.ZodNullable<z.ZodString>;
1504
+ labels: z.ZodArray<z.ZodString>;
1505
+ deadline: z.ZodNullable<z.ZodObject<{
1506
+ date: z.ZodString;
1507
+ lang: z.ZodString;
1508
+ }, z.core.$strip>>;
1509
+ duration: z.ZodNullable<z.ZodObject<{
1510
+ amount: z.ZodNumber;
1511
+ unit: z.ZodEnum<{
1512
+ minute: "minute";
1513
+ day: "day";
1514
+ }>;
1515
+ }, z.core.$strip>>;
1516
+ checked: z.ZodBoolean;
1517
+ isDeleted: z.ZodBoolean;
1518
+ addedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
1519
+ completedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
1520
+ updatedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
1521
+ due: z.ZodNullable<z.ZodObject<{
1522
+ isRecurring: z.ZodBoolean;
1523
+ string: z.ZodString;
1524
+ date: z.ZodString;
1525
+ datetime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1526
+ timezone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1527
+ lang: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1528
+ }, z.core.$strip>>;
1529
+ priority: z.ZodNumber;
1530
+ childOrder: z.ZodNumber;
1531
+ content: z.ZodString;
1532
+ description: z.ZodString;
1533
+ dayOrder: z.ZodNumber;
1534
+ isCollapsed: z.ZodBoolean;
1535
+ isUncompletable: z.ZodDefault<z.ZodBoolean>;
1536
+ }, z.core.$strip>, z.ZodTransform<{
1537
+ isUncompletable: boolean;
1538
+ url: string;
1539
+ id: string;
1540
+ userId: string;
1541
+ projectId: string;
1542
+ sectionId: string | null;
1543
+ parentId: string | null;
1544
+ addedByUid: string | null;
1545
+ assignedByUid: string | null;
1546
+ responsibleUid: string | null;
1547
+ labels: string[];
1548
+ deadline: {
1549
+ date: string;
1550
+ lang: string;
1551
+ } | null;
1552
+ duration: {
1553
+ amount: number;
1554
+ unit: "minute" | "day";
1555
+ } | null;
1556
+ checked: boolean;
1557
+ isDeleted: boolean;
1558
+ addedAt: Date | null;
1559
+ completedAt: Date | null;
1560
+ updatedAt: Date | null;
1561
+ due: {
1562
+ isRecurring: boolean;
1563
+ string: string;
1564
+ date: string;
1565
+ datetime?: string | null | undefined;
1566
+ timezone?: string | null | undefined;
1567
+ lang?: string | null | undefined;
1568
+ } | null;
1569
+ priority: number;
1570
+ childOrder: number;
1571
+ content: string;
1572
+ description: string;
1573
+ dayOrder: number;
1574
+ isCollapsed: boolean;
1575
+ }, {
1576
+ id: string;
1577
+ userId: string;
1578
+ projectId: string;
1579
+ sectionId: string | null;
1580
+ parentId: string | null;
1581
+ addedByUid: string | null;
1582
+ assignedByUid: string | null;
1583
+ responsibleUid: string | null;
1584
+ labels: string[];
1585
+ deadline: {
1586
+ date: string;
1587
+ lang: string;
1588
+ } | null;
1589
+ duration: {
1590
+ amount: number;
1591
+ unit: "minute" | "day";
1592
+ } | null;
1593
+ checked: boolean;
1594
+ isDeleted: boolean;
1595
+ addedAt: Date | null;
1596
+ completedAt: Date | null;
1597
+ updatedAt: Date | null;
1598
+ due: {
1599
+ isRecurring: boolean;
1600
+ string: string;
1601
+ date: string;
1602
+ datetime?: string | null | undefined;
1603
+ timezone?: string | null | undefined;
1604
+ lang?: string | null | undefined;
1605
+ } | null;
1606
+ priority: number;
1607
+ childOrder: number;
1608
+ content: string;
1609
+ description: string;
1610
+ dayOrder: number;
1611
+ isCollapsed: boolean;
1612
+ isUncompletable: boolean;
1613
+ }>>;
1614
+ }, z.core.$strict>, z.ZodTransform<{
1615
+ taskId: string;
1616
+ id: string;
1617
+ content: string;
1618
+ postedAt: Date | null;
1619
+ postedUid: string | null;
1620
+ fileAttachment: {
1621
+ resourceType: string;
1622
+ fileName?: string | null | undefined;
1623
+ fileSize?: number | null | undefined;
1624
+ fileType?: string | null | undefined;
1625
+ fileUrl?: string | null | undefined;
1626
+ fileDuration?: number | null | undefined;
1627
+ uploadState?: "completed" | "pending" | null | undefined;
1628
+ image?: string | null | undefined;
1629
+ imageWidth?: number | null | undefined;
1630
+ imageHeight?: number | null | undefined;
1631
+ url?: string | null | undefined;
1632
+ title?: string | null | undefined;
1633
+ } | null;
1634
+ uidsToNotify: string[] | null;
1635
+ reactions: Record<string, string[]> | null;
1636
+ isDeleted: boolean;
1637
+ url: string;
1638
+ item: {
1639
+ isUncompletable: boolean;
1640
+ url: string;
1641
+ id: string;
1642
+ userId: string;
1643
+ projectId: string;
1644
+ sectionId: string | null;
1645
+ parentId: string | null;
1646
+ addedByUid: string | null;
1647
+ assignedByUid: string | null;
1648
+ responsibleUid: string | null;
1649
+ labels: string[];
1650
+ deadline: {
1651
+ date: string;
1652
+ lang: string;
1653
+ } | null;
1654
+ duration: {
1655
+ amount: number;
1656
+ unit: "minute" | "day";
1657
+ } | null;
1658
+ checked: boolean;
1659
+ isDeleted: boolean;
1660
+ addedAt: Date | null;
1661
+ completedAt: Date | null;
1662
+ updatedAt: Date | null;
1663
+ due: {
1664
+ isRecurring: boolean;
1665
+ string: string;
1666
+ date: string;
1667
+ datetime?: string | null | undefined;
1668
+ timezone?: string | null | undefined;
1669
+ lang?: string | null | undefined;
1670
+ } | null;
1671
+ priority: number;
1672
+ childOrder: number;
1673
+ content: string;
1674
+ description: string;
1675
+ dayOrder: number;
1676
+ isCollapsed: boolean;
1677
+ };
1678
+ }, {
1679
+ id: string;
1680
+ content: string;
1681
+ postedAt: Date | null;
1682
+ postedUid: string | null;
1683
+ fileAttachment: {
1684
+ resourceType: string;
1685
+ fileName?: string | null | undefined;
1686
+ fileSize?: number | null | undefined;
1687
+ fileType?: string | null | undefined;
1688
+ fileUrl?: string | null | undefined;
1689
+ fileDuration?: number | null | undefined;
1690
+ uploadState?: "completed" | "pending" | null | undefined;
1691
+ image?: string | null | undefined;
1692
+ imageWidth?: number | null | undefined;
1693
+ imageHeight?: number | null | undefined;
1694
+ url?: string | null | undefined;
1695
+ title?: string | null | undefined;
1696
+ } | null;
1697
+ uidsToNotify: string[] | null;
1698
+ reactions: Record<string, string[]> | null;
1699
+ isDeleted: boolean;
1700
+ itemId: string;
1701
+ url: string;
1702
+ item: {
1703
+ isUncompletable: boolean;
1704
+ url: string;
1705
+ id: string;
1706
+ userId: string;
1707
+ projectId: string;
1708
+ sectionId: string | null;
1709
+ parentId: string | null;
1710
+ addedByUid: string | null;
1711
+ assignedByUid: string | null;
1712
+ responsibleUid: string | null;
1713
+ labels: string[];
1714
+ deadline: {
1715
+ date: string;
1716
+ lang: string;
1717
+ } | null;
1718
+ duration: {
1719
+ amount: number;
1720
+ unit: "minute" | "day";
1721
+ } | null;
1722
+ checked: boolean;
1723
+ isDeleted: boolean;
1724
+ addedAt: Date | null;
1725
+ completedAt: Date | null;
1726
+ updatedAt: Date | null;
1727
+ due: {
1728
+ isRecurring: boolean;
1729
+ string: string;
1730
+ date: string;
1731
+ datetime?: string | null | undefined;
1732
+ timezone?: string | null | undefined;
1733
+ lang?: string | null | undefined;
1734
+ } | null;
1735
+ priority: number;
1736
+ childOrder: number;
1737
+ content: string;
1738
+ description: string;
1739
+ dayOrder: number;
1740
+ isCollapsed: boolean;
1741
+ };
1742
+ }>>, z.ZodObject<{
1743
+ id: z.ZodString;
1744
+ content: z.ZodString;
1745
+ postedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
1746
+ postedUid: z.ZodNullable<z.ZodString>;
1747
+ fileAttachment: z.ZodNullable<z.ZodObject<{
1748
+ resourceType: z.ZodString;
1749
+ fileName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1750
+ fileSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1751
+ fileType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1752
+ fileUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1753
+ fileDuration: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1754
+ uploadState: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1755
+ completed: "completed";
1756
+ pending: "pending";
1757
+ }>>>;
1758
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1759
+ imageWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1760
+ imageHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1761
+ url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1762
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1763
+ }, z.core.$strip>>;
1764
+ uidsToNotify: z.ZodNullable<z.ZodArray<z.ZodString>>;
1765
+ reactions: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
1766
+ isDeleted: z.ZodBoolean;
1767
+ projectId: z.ZodString;
1768
+ }, z.core.$strict>]>;
1769
+ version: z.ZodEnum<{
1770
+ 1: "1";
1771
+ }>;
1772
+ userId: z.ZodString;
1773
+ initiator: z.ZodObject<{
1774
+ id: z.ZodString;
1775
+ fullName: z.ZodString;
1776
+ email: z.ZodString;
1777
+ imageId: z.ZodNullable<z.ZodString>;
1778
+ isPremium: z.ZodBoolean;
1779
+ }, z.core.$strip>;
1780
+ triggeredAt: z.ZodCoercedDate<unknown>;
1781
+ }, z.core.$strip>, z.ZodObject<{
1782
+ eventName: z.ZodLiteral<"label:added">;
1783
+ eventData: z.ZodPipe<z.ZodObject<{
1784
+ name: z.ZodString;
1785
+ id: z.ZodString;
1786
+ color: z.ZodString;
1787
+ isFavorite: z.ZodBoolean;
1788
+ itemOrder: z.ZodNullable<z.ZodNumber>;
1789
+ isDeleted: z.ZodBoolean;
1790
+ }, z.core.$strip>, z.ZodTransform<{
1791
+ order: number | null;
1792
+ name: string;
1793
+ id: string;
1794
+ color: string;
1795
+ isFavorite: boolean;
1796
+ isDeleted: boolean;
1797
+ }, {
1798
+ name: string;
1799
+ id: string;
1800
+ color: string;
1801
+ isFavorite: boolean;
1802
+ itemOrder: number | null;
1803
+ isDeleted: boolean;
1804
+ }>>;
1805
+ version: z.ZodEnum<{
1806
+ 1: "1";
1807
+ }>;
1808
+ userId: z.ZodString;
1809
+ initiator: z.ZodObject<{
1810
+ id: z.ZodString;
1811
+ fullName: z.ZodString;
1812
+ email: z.ZodString;
1813
+ imageId: z.ZodNullable<z.ZodString>;
1814
+ isPremium: z.ZodBoolean;
1815
+ }, z.core.$strip>;
1816
+ triggeredAt: z.ZodCoercedDate<unknown>;
1817
+ }, z.core.$strip>, z.ZodObject<{
1818
+ eventName: z.ZodLiteral<"label:updated">;
1819
+ eventData: z.ZodPipe<z.ZodObject<{
1820
+ name: z.ZodString;
1821
+ id: z.ZodString;
1822
+ color: z.ZodString;
1823
+ isFavorite: z.ZodBoolean;
1824
+ itemOrder: z.ZodNullable<z.ZodNumber>;
1825
+ isDeleted: z.ZodBoolean;
1826
+ }, z.core.$strip>, z.ZodTransform<{
1827
+ order: number | null;
1828
+ name: string;
1829
+ id: string;
1830
+ color: string;
1831
+ isFavorite: boolean;
1832
+ isDeleted: boolean;
1833
+ }, {
1834
+ name: string;
1835
+ id: string;
1836
+ color: string;
1837
+ isFavorite: boolean;
1838
+ itemOrder: number | null;
1839
+ isDeleted: boolean;
1840
+ }>>;
1841
+ version: z.ZodEnum<{
1842
+ 1: "1";
1843
+ }>;
1844
+ userId: z.ZodString;
1845
+ initiator: z.ZodObject<{
1846
+ id: z.ZodString;
1847
+ fullName: z.ZodString;
1848
+ email: z.ZodString;
1849
+ imageId: z.ZodNullable<z.ZodString>;
1850
+ isPremium: z.ZodBoolean;
1851
+ }, z.core.$strip>;
1852
+ triggeredAt: z.ZodCoercedDate<unknown>;
1853
+ }, z.core.$strip>, z.ZodObject<{
1854
+ eventName: z.ZodLiteral<"label:deleted">;
1855
+ eventData: z.ZodPipe<z.ZodObject<{
1856
+ name: z.ZodString;
1857
+ id: z.ZodString;
1858
+ color: z.ZodString;
1859
+ isFavorite: z.ZodBoolean;
1860
+ itemOrder: z.ZodNullable<z.ZodNumber>;
1861
+ isDeleted: z.ZodBoolean;
1862
+ }, z.core.$strip>, z.ZodTransform<{
1863
+ order: number | null;
1864
+ name: string;
1865
+ id: string;
1866
+ color: string;
1867
+ isFavorite: boolean;
1868
+ isDeleted: boolean;
1869
+ }, {
1870
+ name: string;
1871
+ id: string;
1872
+ color: string;
1873
+ isFavorite: boolean;
1874
+ itemOrder: number | null;
1875
+ isDeleted: boolean;
1876
+ }>>;
1877
+ version: z.ZodEnum<{
1878
+ 1: "1";
1879
+ }>;
1880
+ userId: z.ZodString;
1881
+ initiator: z.ZodObject<{
1882
+ id: z.ZodString;
1883
+ fullName: z.ZodString;
1884
+ email: z.ZodString;
1885
+ imageId: z.ZodNullable<z.ZodString>;
1886
+ isPremium: z.ZodBoolean;
1887
+ }, z.core.$strip>;
1888
+ triggeredAt: z.ZodCoercedDate<unknown>;
1889
+ }, z.core.$strip>, z.ZodObject<{
1890
+ eventName: z.ZodLiteral<"project:added">;
1891
+ eventData: z.ZodPipe<z.ZodUnknown, z.ZodTransform<{
1892
+ url: string;
1893
+ id: string;
1894
+ canAssignTasks: boolean;
1895
+ childOrder: number;
1896
+ color: string;
1897
+ createdAt: Date | null;
1898
+ isArchived: boolean;
1899
+ isDeleted: boolean;
1900
+ isFavorite: boolean;
1901
+ isFrozen: boolean;
1902
+ name: string;
1903
+ updatedAt: Date | null;
1904
+ viewStyle: string;
1905
+ defaultOrder: number;
1906
+ description: string;
1907
+ isCollapsed: boolean;
1908
+ isShared: boolean;
1909
+ parentId: string | null;
1910
+ inboxProject: boolean;
1911
+ } | {
1912
+ url: string;
1913
+ id: string;
1914
+ canAssignTasks: boolean;
1915
+ childOrder: number;
1916
+ color: string;
1917
+ createdAt: Date | null;
1918
+ isArchived: boolean;
1919
+ isDeleted: boolean;
1920
+ isFavorite: boolean;
1921
+ isFrozen: boolean;
1922
+ name: string;
1923
+ updatedAt: Date | null;
1924
+ viewStyle: string;
1925
+ defaultOrder: number;
1926
+ description: string;
1927
+ isCollapsed: boolean;
1928
+ isShared: boolean;
1929
+ collaboratorRoleDefault: string;
1930
+ folderId: string | null;
1931
+ isInviteOnly: boolean | null;
1932
+ isLinkSharingEnabled: boolean;
1933
+ role: string | null;
1934
+ status: string;
1935
+ workspaceId: string;
1936
+ access?: {
1937
+ visibility: "restricted" | "team" | "public";
1938
+ } | undefined;
1939
+ }, unknown>>;
1940
+ version: z.ZodEnum<{
1941
+ 1: "1";
1942
+ }>;
1943
+ userId: z.ZodString;
1944
+ initiator: z.ZodObject<{
1945
+ id: z.ZodString;
1946
+ fullName: z.ZodString;
1947
+ email: z.ZodString;
1948
+ imageId: z.ZodNullable<z.ZodString>;
1949
+ isPremium: z.ZodBoolean;
1950
+ }, z.core.$strip>;
1951
+ triggeredAt: z.ZodCoercedDate<unknown>;
1952
+ }, z.core.$strip>, z.ZodObject<{
1953
+ eventName: z.ZodLiteral<"project:updated">;
1954
+ eventData: z.ZodPipe<z.ZodUnknown, z.ZodTransform<{
1955
+ url: string;
1956
+ id: string;
1957
+ canAssignTasks: boolean;
1958
+ childOrder: number;
1959
+ color: string;
1960
+ createdAt: Date | null;
1961
+ isArchived: boolean;
1962
+ isDeleted: boolean;
1963
+ isFavorite: boolean;
1964
+ isFrozen: boolean;
1965
+ name: string;
1966
+ updatedAt: Date | null;
1967
+ viewStyle: string;
1968
+ defaultOrder: number;
1969
+ description: string;
1970
+ isCollapsed: boolean;
1971
+ isShared: boolean;
1972
+ parentId: string | null;
1973
+ inboxProject: boolean;
1974
+ } | {
1975
+ url: string;
1976
+ id: string;
1977
+ canAssignTasks: boolean;
1978
+ childOrder: number;
1979
+ color: string;
1980
+ createdAt: Date | null;
1981
+ isArchived: boolean;
1982
+ isDeleted: boolean;
1983
+ isFavorite: boolean;
1984
+ isFrozen: boolean;
1985
+ name: string;
1986
+ updatedAt: Date | null;
1987
+ viewStyle: string;
1988
+ defaultOrder: number;
1989
+ description: string;
1990
+ isCollapsed: boolean;
1991
+ isShared: boolean;
1992
+ collaboratorRoleDefault: string;
1993
+ folderId: string | null;
1994
+ isInviteOnly: boolean | null;
1995
+ isLinkSharingEnabled: boolean;
1996
+ role: string | null;
1997
+ status: string;
1998
+ workspaceId: string;
1999
+ access?: {
2000
+ visibility: "restricted" | "team" | "public";
2001
+ } | undefined;
2002
+ }, unknown>>;
2003
+ version: z.ZodEnum<{
2004
+ 1: "1";
2005
+ }>;
2006
+ userId: z.ZodString;
2007
+ initiator: z.ZodObject<{
2008
+ id: z.ZodString;
2009
+ fullName: z.ZodString;
2010
+ email: z.ZodString;
2011
+ imageId: z.ZodNullable<z.ZodString>;
2012
+ isPremium: z.ZodBoolean;
2013
+ }, z.core.$strip>;
2014
+ triggeredAt: z.ZodCoercedDate<unknown>;
2015
+ }, z.core.$strip>, z.ZodObject<{
2016
+ eventName: z.ZodLiteral<"project:deleted">;
2017
+ eventData: z.ZodPipe<z.ZodUnknown, z.ZodTransform<{
2018
+ url: string;
2019
+ id: string;
2020
+ canAssignTasks: boolean;
2021
+ childOrder: number;
2022
+ color: string;
2023
+ createdAt: Date | null;
2024
+ isArchived: boolean;
2025
+ isDeleted: boolean;
2026
+ isFavorite: boolean;
2027
+ isFrozen: boolean;
2028
+ name: string;
2029
+ updatedAt: Date | null;
2030
+ viewStyle: string;
2031
+ defaultOrder: number;
2032
+ description: string;
2033
+ isCollapsed: boolean;
2034
+ isShared: boolean;
2035
+ parentId: string | null;
2036
+ inboxProject: boolean;
2037
+ } | {
2038
+ url: string;
2039
+ id: string;
2040
+ canAssignTasks: boolean;
2041
+ childOrder: number;
2042
+ color: string;
2043
+ createdAt: Date | null;
2044
+ isArchived: boolean;
2045
+ isDeleted: boolean;
2046
+ isFavorite: boolean;
2047
+ isFrozen: boolean;
2048
+ name: string;
2049
+ updatedAt: Date | null;
2050
+ viewStyle: string;
2051
+ defaultOrder: number;
2052
+ description: string;
2053
+ isCollapsed: boolean;
2054
+ isShared: boolean;
2055
+ collaboratorRoleDefault: string;
2056
+ folderId: string | null;
2057
+ isInviteOnly: boolean | null;
2058
+ isLinkSharingEnabled: boolean;
2059
+ role: string | null;
2060
+ status: string;
2061
+ workspaceId: string;
2062
+ access?: {
2063
+ visibility: "restricted" | "team" | "public";
2064
+ } | undefined;
2065
+ }, unknown>>;
2066
+ version: z.ZodEnum<{
2067
+ 1: "1";
2068
+ }>;
2069
+ userId: z.ZodString;
2070
+ initiator: z.ZodObject<{
2071
+ id: z.ZodString;
2072
+ fullName: z.ZodString;
2073
+ email: z.ZodString;
2074
+ imageId: z.ZodNullable<z.ZodString>;
2075
+ isPremium: z.ZodBoolean;
2076
+ }, z.core.$strip>;
2077
+ triggeredAt: z.ZodCoercedDate<unknown>;
2078
+ }, z.core.$strip>, z.ZodObject<{
2079
+ eventName: z.ZodLiteral<"project:archived">;
2080
+ eventData: z.ZodPipe<z.ZodUnknown, z.ZodTransform<{
2081
+ url: string;
2082
+ id: string;
2083
+ canAssignTasks: boolean;
2084
+ childOrder: number;
2085
+ color: string;
2086
+ createdAt: Date | null;
2087
+ isArchived: boolean;
2088
+ isDeleted: boolean;
2089
+ isFavorite: boolean;
2090
+ isFrozen: boolean;
2091
+ name: string;
2092
+ updatedAt: Date | null;
2093
+ viewStyle: string;
2094
+ defaultOrder: number;
2095
+ description: string;
2096
+ isCollapsed: boolean;
2097
+ isShared: boolean;
2098
+ parentId: string | null;
2099
+ inboxProject: boolean;
2100
+ } | {
2101
+ url: string;
2102
+ id: string;
2103
+ canAssignTasks: boolean;
2104
+ childOrder: number;
2105
+ color: string;
2106
+ createdAt: Date | null;
2107
+ isArchived: boolean;
2108
+ isDeleted: boolean;
2109
+ isFavorite: boolean;
2110
+ isFrozen: boolean;
2111
+ name: string;
2112
+ updatedAt: Date | null;
2113
+ viewStyle: string;
2114
+ defaultOrder: number;
2115
+ description: string;
2116
+ isCollapsed: boolean;
2117
+ isShared: boolean;
2118
+ collaboratorRoleDefault: string;
2119
+ folderId: string | null;
2120
+ isInviteOnly: boolean | null;
2121
+ isLinkSharingEnabled: boolean;
2122
+ role: string | null;
2123
+ status: string;
2124
+ workspaceId: string;
2125
+ access?: {
2126
+ visibility: "restricted" | "team" | "public";
2127
+ } | undefined;
2128
+ }, unknown>>;
2129
+ version: z.ZodEnum<{
2130
+ 1: "1";
2131
+ }>;
2132
+ userId: z.ZodString;
2133
+ initiator: z.ZodObject<{
2134
+ id: z.ZodString;
2135
+ fullName: z.ZodString;
2136
+ email: z.ZodString;
2137
+ imageId: z.ZodNullable<z.ZodString>;
2138
+ isPremium: z.ZodBoolean;
2139
+ }, z.core.$strip>;
2140
+ triggeredAt: z.ZodCoercedDate<unknown>;
2141
+ }, z.core.$strip>, z.ZodObject<{
2142
+ eventName: z.ZodLiteral<"project:unarchived">;
2143
+ eventData: z.ZodPipe<z.ZodUnknown, z.ZodTransform<{
2144
+ url: string;
2145
+ id: string;
2146
+ canAssignTasks: boolean;
2147
+ childOrder: number;
2148
+ color: string;
2149
+ createdAt: Date | null;
2150
+ isArchived: boolean;
2151
+ isDeleted: boolean;
2152
+ isFavorite: boolean;
2153
+ isFrozen: boolean;
2154
+ name: string;
2155
+ updatedAt: Date | null;
2156
+ viewStyle: string;
2157
+ defaultOrder: number;
2158
+ description: string;
2159
+ isCollapsed: boolean;
2160
+ isShared: boolean;
2161
+ parentId: string | null;
2162
+ inboxProject: boolean;
2163
+ } | {
2164
+ url: string;
2165
+ id: string;
2166
+ canAssignTasks: boolean;
2167
+ childOrder: number;
2168
+ color: string;
2169
+ createdAt: Date | null;
2170
+ isArchived: boolean;
2171
+ isDeleted: boolean;
2172
+ isFavorite: boolean;
2173
+ isFrozen: boolean;
2174
+ name: string;
2175
+ updatedAt: Date | null;
2176
+ viewStyle: string;
2177
+ defaultOrder: number;
2178
+ description: string;
2179
+ isCollapsed: boolean;
2180
+ isShared: boolean;
2181
+ collaboratorRoleDefault: string;
2182
+ folderId: string | null;
2183
+ isInviteOnly: boolean | null;
2184
+ isLinkSharingEnabled: boolean;
2185
+ role: string | null;
2186
+ status: string;
2187
+ workspaceId: string;
2188
+ access?: {
2189
+ visibility: "restricted" | "team" | "public";
2190
+ } | undefined;
2191
+ }, unknown>>;
2192
+ version: z.ZodEnum<{
2193
+ 1: "1";
2194
+ }>;
2195
+ userId: z.ZodString;
2196
+ initiator: z.ZodObject<{
2197
+ id: z.ZodString;
2198
+ fullName: z.ZodString;
2199
+ email: z.ZodString;
2200
+ imageId: z.ZodNullable<z.ZodString>;
2201
+ isPremium: z.ZodBoolean;
2202
+ }, z.core.$strip>;
2203
+ triggeredAt: z.ZodCoercedDate<unknown>;
2204
+ }, z.core.$strip>, z.ZodObject<{
2205
+ eventName: z.ZodLiteral<"section:added">;
2206
+ eventData: z.ZodPipe<z.ZodObject<{
2207
+ id: z.ZodString;
2208
+ userId: z.ZodString;
2209
+ projectId: z.ZodString;
2210
+ addedAt: z.ZodCoercedDate<unknown>;
2211
+ archivedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
2212
+ name: z.ZodString;
2213
+ sectionOrder: z.ZodNumber;
2214
+ isArchived: z.ZodBoolean;
2215
+ isDeleted: z.ZodBoolean;
2216
+ isCollapsed: z.ZodBoolean;
2217
+ updatedAt: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>, z.ZodTransform<Date | null, Date | null | undefined>>;
2218
+ }, z.core.$strip>, z.ZodTransform<{
2219
+ url: string;
2220
+ id: string;
2221
+ userId: string;
2222
+ projectId: string;
2223
+ addedAt: Date;
2224
+ archivedAt: Date | null;
2225
+ name: string;
2226
+ sectionOrder: number;
2227
+ isArchived: boolean;
2228
+ isDeleted: boolean;
2229
+ isCollapsed: boolean;
2230
+ updatedAt: Date | null;
2231
+ }, {
2232
+ id: string;
2233
+ userId: string;
2234
+ projectId: string;
2235
+ addedAt: Date;
2236
+ archivedAt: Date | null;
2237
+ name: string;
2238
+ sectionOrder: number;
2239
+ isArchived: boolean;
2240
+ isDeleted: boolean;
2241
+ isCollapsed: boolean;
2242
+ updatedAt: Date | null;
2243
+ }>>;
2244
+ version: z.ZodEnum<{
2245
+ 1: "1";
2246
+ }>;
2247
+ userId: z.ZodString;
2248
+ initiator: z.ZodObject<{
2249
+ id: z.ZodString;
2250
+ fullName: z.ZodString;
2251
+ email: z.ZodString;
2252
+ imageId: z.ZodNullable<z.ZodString>;
2253
+ isPremium: z.ZodBoolean;
2254
+ }, z.core.$strip>;
2255
+ triggeredAt: z.ZodCoercedDate<unknown>;
2256
+ }, z.core.$strip>, z.ZodObject<{
2257
+ eventName: z.ZodLiteral<"section:updated">;
2258
+ eventData: z.ZodPipe<z.ZodObject<{
2259
+ id: z.ZodString;
2260
+ userId: z.ZodString;
2261
+ projectId: z.ZodString;
2262
+ addedAt: z.ZodCoercedDate<unknown>;
2263
+ archivedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
2264
+ name: z.ZodString;
2265
+ sectionOrder: z.ZodNumber;
2266
+ isArchived: z.ZodBoolean;
2267
+ isDeleted: z.ZodBoolean;
2268
+ isCollapsed: z.ZodBoolean;
2269
+ updatedAt: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>, z.ZodTransform<Date | null, Date | null | undefined>>;
2270
+ }, z.core.$strip>, z.ZodTransform<{
2271
+ url: string;
2272
+ id: string;
2273
+ userId: string;
2274
+ projectId: string;
2275
+ addedAt: Date;
2276
+ archivedAt: Date | null;
2277
+ name: string;
2278
+ sectionOrder: number;
2279
+ isArchived: boolean;
2280
+ isDeleted: boolean;
2281
+ isCollapsed: boolean;
2282
+ updatedAt: Date | null;
2283
+ }, {
2284
+ id: string;
2285
+ userId: string;
2286
+ projectId: string;
2287
+ addedAt: Date;
2288
+ archivedAt: Date | null;
2289
+ name: string;
2290
+ sectionOrder: number;
2291
+ isArchived: boolean;
2292
+ isDeleted: boolean;
2293
+ isCollapsed: boolean;
2294
+ updatedAt: Date | null;
2295
+ }>>;
2296
+ version: z.ZodEnum<{
2297
+ 1: "1";
2298
+ }>;
2299
+ userId: z.ZodString;
2300
+ initiator: z.ZodObject<{
2301
+ id: z.ZodString;
2302
+ fullName: z.ZodString;
2303
+ email: z.ZodString;
2304
+ imageId: z.ZodNullable<z.ZodString>;
2305
+ isPremium: z.ZodBoolean;
2306
+ }, z.core.$strip>;
2307
+ triggeredAt: z.ZodCoercedDate<unknown>;
2308
+ }, z.core.$strip>, z.ZodObject<{
2309
+ eventName: z.ZodLiteral<"section:deleted">;
2310
+ eventData: z.ZodPipe<z.ZodObject<{
2311
+ id: z.ZodString;
2312
+ userId: z.ZodString;
2313
+ projectId: z.ZodString;
2314
+ addedAt: z.ZodCoercedDate<unknown>;
2315
+ archivedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
2316
+ name: z.ZodString;
2317
+ sectionOrder: z.ZodNumber;
2318
+ isArchived: z.ZodBoolean;
2319
+ isDeleted: z.ZodBoolean;
2320
+ isCollapsed: z.ZodBoolean;
2321
+ updatedAt: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>, z.ZodTransform<Date | null, Date | null | undefined>>;
2322
+ }, z.core.$strip>, z.ZodTransform<{
2323
+ url: string;
2324
+ id: string;
2325
+ userId: string;
2326
+ projectId: string;
2327
+ addedAt: Date;
2328
+ archivedAt: Date | null;
2329
+ name: string;
2330
+ sectionOrder: number;
2331
+ isArchived: boolean;
2332
+ isDeleted: boolean;
2333
+ isCollapsed: boolean;
2334
+ updatedAt: Date | null;
2335
+ }, {
2336
+ id: string;
2337
+ userId: string;
2338
+ projectId: string;
2339
+ addedAt: Date;
2340
+ archivedAt: Date | null;
2341
+ name: string;
2342
+ sectionOrder: number;
2343
+ isArchived: boolean;
2344
+ isDeleted: boolean;
2345
+ isCollapsed: boolean;
2346
+ updatedAt: Date | null;
2347
+ }>>;
2348
+ version: z.ZodEnum<{
2349
+ 1: "1";
2350
+ }>;
2351
+ userId: z.ZodString;
2352
+ initiator: z.ZodObject<{
2353
+ id: z.ZodString;
2354
+ fullName: z.ZodString;
2355
+ email: z.ZodString;
2356
+ imageId: z.ZodNullable<z.ZodString>;
2357
+ isPremium: z.ZodBoolean;
2358
+ }, z.core.$strip>;
2359
+ triggeredAt: z.ZodCoercedDate<unknown>;
2360
+ }, z.core.$strip>, z.ZodObject<{
2361
+ eventName: z.ZodLiteral<"section:archived">;
2362
+ eventData: z.ZodPipe<z.ZodObject<{
2363
+ id: z.ZodString;
2364
+ userId: z.ZodString;
2365
+ projectId: z.ZodString;
2366
+ addedAt: z.ZodCoercedDate<unknown>;
2367
+ archivedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
2368
+ name: z.ZodString;
2369
+ sectionOrder: z.ZodNumber;
2370
+ isArchived: z.ZodBoolean;
2371
+ isDeleted: z.ZodBoolean;
2372
+ isCollapsed: z.ZodBoolean;
2373
+ updatedAt: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>, z.ZodTransform<Date | null, Date | null | undefined>>;
2374
+ }, z.core.$strip>, z.ZodTransform<{
2375
+ url: string;
2376
+ id: string;
2377
+ userId: string;
2378
+ projectId: string;
2379
+ addedAt: Date;
2380
+ archivedAt: Date | null;
2381
+ name: string;
2382
+ sectionOrder: number;
2383
+ isArchived: boolean;
2384
+ isDeleted: boolean;
2385
+ isCollapsed: boolean;
2386
+ updatedAt: Date | null;
2387
+ }, {
2388
+ id: string;
2389
+ userId: string;
2390
+ projectId: string;
2391
+ addedAt: Date;
2392
+ archivedAt: Date | null;
2393
+ name: string;
2394
+ sectionOrder: number;
2395
+ isArchived: boolean;
2396
+ isDeleted: boolean;
2397
+ isCollapsed: boolean;
2398
+ updatedAt: Date | null;
2399
+ }>>;
2400
+ version: z.ZodEnum<{
2401
+ 1: "1";
2402
+ }>;
2403
+ userId: z.ZodString;
2404
+ initiator: z.ZodObject<{
2405
+ id: z.ZodString;
2406
+ fullName: z.ZodString;
2407
+ email: z.ZodString;
2408
+ imageId: z.ZodNullable<z.ZodString>;
2409
+ isPremium: z.ZodBoolean;
2410
+ }, z.core.$strip>;
2411
+ triggeredAt: z.ZodCoercedDate<unknown>;
2412
+ }, z.core.$strip>, z.ZodObject<{
2413
+ eventName: z.ZodLiteral<"section:unarchived">;
2414
+ eventData: z.ZodPipe<z.ZodObject<{
2415
+ id: z.ZodString;
2416
+ userId: z.ZodString;
2417
+ projectId: z.ZodString;
2418
+ addedAt: z.ZodCoercedDate<unknown>;
2419
+ archivedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
2420
+ name: z.ZodString;
2421
+ sectionOrder: z.ZodNumber;
2422
+ isArchived: z.ZodBoolean;
2423
+ isDeleted: z.ZodBoolean;
2424
+ isCollapsed: z.ZodBoolean;
2425
+ updatedAt: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>, z.ZodTransform<Date | null, Date | null | undefined>>;
2426
+ }, z.core.$strip>, z.ZodTransform<{
2427
+ url: string;
2428
+ id: string;
2429
+ userId: string;
2430
+ projectId: string;
2431
+ addedAt: Date;
2432
+ archivedAt: Date | null;
2433
+ name: string;
2434
+ sectionOrder: number;
2435
+ isArchived: boolean;
2436
+ isDeleted: boolean;
2437
+ isCollapsed: boolean;
2438
+ updatedAt: Date | null;
2439
+ }, {
2440
+ id: string;
2441
+ userId: string;
2442
+ projectId: string;
2443
+ addedAt: Date;
2444
+ archivedAt: Date | null;
2445
+ name: string;
2446
+ sectionOrder: number;
2447
+ isArchived: boolean;
2448
+ isDeleted: boolean;
2449
+ isCollapsed: boolean;
2450
+ updatedAt: Date | null;
2451
+ }>>;
2452
+ version: z.ZodEnum<{
2453
+ 1: "1";
2454
+ }>;
2455
+ userId: z.ZodString;
2456
+ initiator: z.ZodObject<{
2457
+ id: z.ZodString;
2458
+ fullName: z.ZodString;
2459
+ email: z.ZodString;
2460
+ imageId: z.ZodNullable<z.ZodString>;
2461
+ isPremium: z.ZodBoolean;
2462
+ }, z.core.$strip>;
2463
+ triggeredAt: z.ZodCoercedDate<unknown>;
849
2464
  }, z.core.$strip>, z.ZodObject<{
850
2465
  eventName: z.ZodEnum<{
851
- "project:added": "project:added";
852
- "project:updated": "project:updated";
853
- "project:deleted": "project:deleted";
854
- "project:archived": "project:archived";
855
- "project:unarchived": "project:unarchived";
856
- "note:added": "note:added";
857
- "note:updated": "note:updated";
858
- "note:deleted": "note:deleted";
859
- "section:added": "section:added";
860
- "section:updated": "section:updated";
861
- "section:deleted": "section:deleted";
862
- "section:archived": "section:archived";
863
- "section:unarchived": "section:unarchived";
864
- "label:added": "label:added";
865
- "label:updated": "label:updated";
866
- "label:deleted": "label:deleted";
867
2466
  "filter:added": "filter:added";
868
2467
  "filter:updated": "filter:updated";
869
2468
  "filter:deleted": "filter:deleted";