@deepintel-ltd/buildlink-api-contracts 0.2.33 → 0.2.35

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (100) hide show
  1. package/README.md +1 -1
  2. package/contracts/budget.d.ts +824 -6481
  3. package/contracts/budget.d.ts.map +1 -1
  4. package/contracts/budget.js +1 -286
  5. package/contracts/budget.js.map +1 -1
  6. package/contracts/commercial.d.ts +1 -241
  7. package/contracts/commercial.d.ts.map +1 -1
  8. package/contracts/commercial.js +2 -13
  9. package/contracts/commercial.js.map +1 -1
  10. package/contracts/communication.d.ts +1014 -1890
  11. package/contracts/communication.d.ts.map +1 -1
  12. package/contracts/communication.js +1 -65
  13. package/contracts/communication.js.map +1 -1
  14. package/contracts/daily-logs.d.ts +560 -0
  15. package/contracts/daily-logs.d.ts.map +1 -1
  16. package/contracts/deficiencies.d.ts +0 -375
  17. package/contracts/deficiencies.d.ts.map +1 -1
  18. package/contracts/deficiencies.js +1 -14
  19. package/contracts/deficiencies.js.map +1 -1
  20. package/contracts/directory.d.ts +0 -327
  21. package/contracts/directory.d.ts.map +1 -1
  22. package/contracts/directory.js +1 -18
  23. package/contracts/directory.js.map +1 -1
  24. package/contracts/documents.d.ts +41 -3437
  25. package/contracts/documents.d.ts.map +1 -1
  26. package/contracts/documents.js +0 -144
  27. package/contracts/documents.js.map +1 -1
  28. package/contracts/drawings.d.ts +380 -2252
  29. package/contracts/drawings.d.ts.map +1 -1
  30. package/contracts/drawings.js +1 -98
  31. package/contracts/drawings.js.map +1 -1
  32. package/contracts/hub.d.ts +459 -0
  33. package/contracts/hub.d.ts.map +1 -1
  34. package/contracts/hub.js +22 -0
  35. package/contracts/hub.js.map +1 -1
  36. package/contracts/projects.d.ts +91 -1106
  37. package/contracts/projects.d.ts.map +1 -1
  38. package/contracts/projects.js +0 -101
  39. package/contracts/projects.js.map +1 -1
  40. package/contracts/proof.d.ts +322 -0
  41. package/contracts/proof.d.ts.map +1 -1
  42. package/contracts/proof.js +14 -1
  43. package/contracts/proof.js.map +1 -1
  44. package/contracts/qaqc.d.ts +874 -0
  45. package/contracts/qaqc.d.ts.map +1 -1
  46. package/contracts/qaqc.js +13 -1
  47. package/contracts/qaqc.js.map +1 -1
  48. package/contracts/resources.d.ts +1774 -5959
  49. package/contracts/resources.d.ts.map +1 -1
  50. package/contracts/resources.js +1 -245
  51. package/contracts/resources.js.map +1 -1
  52. package/contracts/safety.d.ts +174 -3683
  53. package/contracts/safety.d.ts.map +1 -1
  54. package/contracts/safety.js +1 -238
  55. package/contracts/safety.js.map +1 -1
  56. package/contracts/schedule.d.ts +0 -1371
  57. package/contracts/schedule.d.ts.map +1 -1
  58. package/contracts/schedule.js +1 -65
  59. package/contracts/schedule.js.map +1 -1
  60. package/contracts/specifications.d.ts +0 -704
  61. package/contracts/specifications.d.ts.map +1 -1
  62. package/contracts/specifications.js +3 -18
  63. package/contracts/specifications.js.map +1 -1
  64. package/contracts/tasks.d.ts +2030 -4095
  65. package/contracts/tasks.d.ts.map +1 -1
  66. package/contracts/tasks.js +1 -149
  67. package/contracts/tasks.js.map +1 -1
  68. package/contracts/user-admin.d.ts +358 -0
  69. package/contracts/user-admin.d.ts.map +1 -1
  70. package/contracts/user-admin.js +8 -0
  71. package/contracts/user-admin.js.map +1 -1
  72. package/package.json +1 -1
  73. package/schemas/budget.d.ts +149 -0
  74. package/schemas/budget.d.ts.map +1 -1
  75. package/schemas/budget.js +13 -0
  76. package/schemas/budget.js.map +1 -1
  77. package/schemas/communication.d.ts +94 -0
  78. package/schemas/communication.d.ts.map +1 -1
  79. package/schemas/communication.js +2 -0
  80. package/schemas/communication.js.map +1 -1
  81. package/schemas/daily-logs.d.ts +92 -0
  82. package/schemas/daily-logs.d.ts.map +1 -1
  83. package/schemas/daily-logs.js +1 -0
  84. package/schemas/daily-logs.js.map +1 -1
  85. package/schemas/documents.d.ts +11 -11
  86. package/schemas/drawings.d.ts +12 -12
  87. package/schemas/proof.d.ts +161 -0
  88. package/schemas/proof.d.ts.map +1 -1
  89. package/schemas/proof.js +17 -1
  90. package/schemas/proof.js.map +1 -1
  91. package/schemas/qaqc.d.ts +335 -0
  92. package/schemas/qaqc.d.ts.map +1 -1
  93. package/schemas/qaqc.js +16 -1
  94. package/schemas/qaqc.js.map +1 -1
  95. package/schemas/safety.d.ts +8 -8
  96. package/schemas/specifications.d.ts +0 -17
  97. package/schemas/specifications.d.ts.map +1 -1
  98. package/schemas/specifications.js +0 -6
  99. package/schemas/specifications.js.map +1 -1
  100. package/schemas/tasks.d.ts +4 -4
@@ -68,6 +68,28 @@ export declare const communicationContract: {
68
68
  avatar?: string | null | undefined;
69
69
  }>>;
70
70
  recipients: z.ZodArray<z.ZodString, "many">;
71
+ recipientPeople: z.ZodOptional<z.ZodArray<z.ZodObject<{
72
+ id: z.ZodString;
73
+ firstName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
74
+ lastName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
75
+ email: z.ZodOptional<z.ZodString>;
76
+ name: z.ZodOptional<z.ZodString>;
77
+ avatar: z.ZodOptional<z.ZodNullable<z.ZodString>>;
78
+ }, "strip", z.ZodTypeAny, {
79
+ id: string;
80
+ firstName?: string | null | undefined;
81
+ lastName?: string | null | undefined;
82
+ email?: string | undefined;
83
+ name?: string | undefined;
84
+ avatar?: string | null | undefined;
85
+ }, {
86
+ id: string;
87
+ firstName?: string | null | undefined;
88
+ lastName?: string | null | undefined;
89
+ email?: string | undefined;
90
+ name?: string | undefined;
91
+ avatar?: string | null | undefined;
92
+ }>, "many">>;
71
93
  threadId: z.ZodOptional<z.ZodString>;
72
94
  parentMessageId: z.ZodOptional<z.ZodString>;
73
95
  sentAt: z.ZodOptional<z.ZodString>;
@@ -120,6 +142,14 @@ export declare const communicationContract: {
120
142
  name?: string | undefined;
121
143
  avatar?: string | null | undefined;
122
144
  } | undefined;
145
+ recipientPeople?: {
146
+ id: string;
147
+ firstName?: string | null | undefined;
148
+ lastName?: string | null | undefined;
149
+ email?: string | undefined;
150
+ name?: string | undefined;
151
+ avatar?: string | null | undefined;
152
+ }[] | undefined;
123
153
  threadId?: string | undefined;
124
154
  parentMessageId?: string | undefined;
125
155
  sentAt?: string | undefined;
@@ -151,6 +181,14 @@ export declare const communicationContract: {
151
181
  name?: string | undefined;
152
182
  avatar?: string | null | undefined;
153
183
  } | undefined;
184
+ recipientPeople?: {
185
+ id: string;
186
+ firstName?: string | null | undefined;
187
+ lastName?: string | null | undefined;
188
+ email?: string | undefined;
189
+ name?: string | undefined;
190
+ avatar?: string | null | undefined;
191
+ }[] | undefined;
154
192
  threadId?: string | undefined;
155
193
  parentMessageId?: string | undefined;
156
194
  sentAt?: string | undefined;
@@ -188,6 +226,14 @@ export declare const communicationContract: {
188
226
  name?: string | undefined;
189
227
  avatar?: string | null | undefined;
190
228
  } | undefined;
229
+ recipientPeople?: {
230
+ id: string;
231
+ firstName?: string | null | undefined;
232
+ lastName?: string | null | undefined;
233
+ email?: string | undefined;
234
+ name?: string | undefined;
235
+ avatar?: string | null | undefined;
236
+ }[] | undefined;
191
237
  threadId?: string | undefined;
192
238
  parentMessageId?: string | undefined;
193
239
  sentAt?: string | undefined;
@@ -223,6 +269,14 @@ export declare const communicationContract: {
223
269
  name?: string | undefined;
224
270
  avatar?: string | null | undefined;
225
271
  } | undefined;
272
+ recipientPeople?: {
273
+ id: string;
274
+ firstName?: string | null | undefined;
275
+ lastName?: string | null | undefined;
276
+ email?: string | undefined;
277
+ name?: string | undefined;
278
+ avatar?: string | null | undefined;
279
+ }[] | undefined;
226
280
  threadId?: string | undefined;
227
281
  parentMessageId?: string | undefined;
228
282
  sentAt?: string | undefined;
@@ -303,6 +357,14 @@ export declare const communicationContract: {
303
357
  name?: string | undefined;
304
358
  avatar?: string | null | undefined;
305
359
  } | undefined;
360
+ recipientPeople?: {
361
+ id: string;
362
+ firstName?: string | null | undefined;
363
+ lastName?: string | null | undefined;
364
+ email?: string | undefined;
365
+ name?: string | undefined;
366
+ avatar?: string | null | undefined;
367
+ }[] | undefined;
306
368
  threadId?: string | undefined;
307
369
  parentMessageId?: string | undefined;
308
370
  sentAt?: string | undefined;
@@ -355,6 +417,14 @@ export declare const communicationContract: {
355
417
  name?: string | undefined;
356
418
  avatar?: string | null | undefined;
357
419
  } | undefined;
420
+ recipientPeople?: {
421
+ id: string;
422
+ firstName?: string | null | undefined;
423
+ lastName?: string | null | undefined;
424
+ email?: string | undefined;
425
+ name?: string | undefined;
426
+ avatar?: string | null | undefined;
427
+ }[] | undefined;
358
428
  threadId?: string | undefined;
359
429
  parentMessageId?: string | undefined;
360
430
  sentAt?: string | undefined;
@@ -481,6 +551,28 @@ export declare const communicationContract: {
481
551
  avatar?: string | null | undefined;
482
552
  }>>;
483
553
  recipients: z.ZodArray<z.ZodString, "many">;
554
+ recipientPeople: z.ZodOptional<z.ZodArray<z.ZodObject<{
555
+ id: z.ZodString;
556
+ firstName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
557
+ lastName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
558
+ email: z.ZodOptional<z.ZodString>;
559
+ name: z.ZodOptional<z.ZodString>;
560
+ avatar: z.ZodOptional<z.ZodNullable<z.ZodString>>;
561
+ }, "strip", z.ZodTypeAny, {
562
+ id: string;
563
+ firstName?: string | null | undefined;
564
+ lastName?: string | null | undefined;
565
+ email?: string | undefined;
566
+ name?: string | undefined;
567
+ avatar?: string | null | undefined;
568
+ }, {
569
+ id: string;
570
+ firstName?: string | null | undefined;
571
+ lastName?: string | null | undefined;
572
+ email?: string | undefined;
573
+ name?: string | undefined;
574
+ avatar?: string | null | undefined;
575
+ }>, "many">>;
484
576
  threadId: z.ZodOptional<z.ZodString>;
485
577
  parentMessageId: z.ZodOptional<z.ZodString>;
486
578
  sentAt: z.ZodOptional<z.ZodString>;
@@ -533,6 +625,14 @@ export declare const communicationContract: {
533
625
  name?: string | undefined;
534
626
  avatar?: string | null | undefined;
535
627
  } | undefined;
628
+ recipientPeople?: {
629
+ id: string;
630
+ firstName?: string | null | undefined;
631
+ lastName?: string | null | undefined;
632
+ email?: string | undefined;
633
+ name?: string | undefined;
634
+ avatar?: string | null | undefined;
635
+ }[] | undefined;
536
636
  threadId?: string | undefined;
537
637
  parentMessageId?: string | undefined;
538
638
  sentAt?: string | undefined;
@@ -564,6 +664,14 @@ export declare const communicationContract: {
564
664
  name?: string | undefined;
565
665
  avatar?: string | null | undefined;
566
666
  } | undefined;
667
+ recipientPeople?: {
668
+ id: string;
669
+ firstName?: string | null | undefined;
670
+ lastName?: string | null | undefined;
671
+ email?: string | undefined;
672
+ name?: string | undefined;
673
+ avatar?: string | null | undefined;
674
+ }[] | undefined;
567
675
  threadId?: string | undefined;
568
676
  parentMessageId?: string | undefined;
569
677
  sentAt?: string | undefined;
@@ -601,6 +709,14 @@ export declare const communicationContract: {
601
709
  name?: string | undefined;
602
710
  avatar?: string | null | undefined;
603
711
  } | undefined;
712
+ recipientPeople?: {
713
+ id: string;
714
+ firstName?: string | null | undefined;
715
+ lastName?: string | null | undefined;
716
+ email?: string | undefined;
717
+ name?: string | undefined;
718
+ avatar?: string | null | undefined;
719
+ }[] | undefined;
604
720
  threadId?: string | undefined;
605
721
  parentMessageId?: string | undefined;
606
722
  sentAt?: string | undefined;
@@ -636,6 +752,14 @@ export declare const communicationContract: {
636
752
  name?: string | undefined;
637
753
  avatar?: string | null | undefined;
638
754
  } | undefined;
755
+ recipientPeople?: {
756
+ id: string;
757
+ firstName?: string | null | undefined;
758
+ lastName?: string | null | undefined;
759
+ email?: string | undefined;
760
+ name?: string | undefined;
761
+ avatar?: string | null | undefined;
762
+ }[] | undefined;
639
763
  threadId?: string | undefined;
640
764
  parentMessageId?: string | undefined;
641
765
  sentAt?: string | undefined;
@@ -711,6 +835,14 @@ export declare const communicationContract: {
711
835
  name?: string | undefined;
712
836
  avatar?: string | null | undefined;
713
837
  } | undefined;
838
+ recipientPeople?: {
839
+ id: string;
840
+ firstName?: string | null | undefined;
841
+ lastName?: string | null | undefined;
842
+ email?: string | undefined;
843
+ name?: string | undefined;
844
+ avatar?: string | null | undefined;
845
+ }[] | undefined;
714
846
  threadId?: string | undefined;
715
847
  parentMessageId?: string | undefined;
716
848
  sentAt?: string | undefined;
@@ -762,6 +894,14 @@ export declare const communicationContract: {
762
894
  name?: string | undefined;
763
895
  avatar?: string | null | undefined;
764
896
  } | undefined;
897
+ recipientPeople?: {
898
+ id: string;
899
+ firstName?: string | null | undefined;
900
+ lastName?: string | null | undefined;
901
+ email?: string | undefined;
902
+ name?: string | undefined;
903
+ avatar?: string | null | undefined;
904
+ }[] | undefined;
765
905
  threadId?: string | undefined;
766
906
  parentMessageId?: string | undefined;
767
907
  sentAt?: string | undefined;
@@ -898,6 +1038,28 @@ export declare const communicationContract: {
898
1038
  avatar?: string | null | undefined;
899
1039
  }>>;
900
1040
  recipients: z.ZodArray<z.ZodString, "many">;
1041
+ recipientPeople: z.ZodOptional<z.ZodArray<z.ZodObject<{
1042
+ id: z.ZodString;
1043
+ firstName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1044
+ lastName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1045
+ email: z.ZodOptional<z.ZodString>;
1046
+ name: z.ZodOptional<z.ZodString>;
1047
+ avatar: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1048
+ }, "strip", z.ZodTypeAny, {
1049
+ id: string;
1050
+ firstName?: string | null | undefined;
1051
+ lastName?: string | null | undefined;
1052
+ email?: string | undefined;
1053
+ name?: string | undefined;
1054
+ avatar?: string | null | undefined;
1055
+ }, {
1056
+ id: string;
1057
+ firstName?: string | null | undefined;
1058
+ lastName?: string | null | undefined;
1059
+ email?: string | undefined;
1060
+ name?: string | undefined;
1061
+ avatar?: string | null | undefined;
1062
+ }>, "many">>;
901
1063
  threadId: z.ZodOptional<z.ZodString>;
902
1064
  parentMessageId: z.ZodOptional<z.ZodString>;
903
1065
  sentAt: z.ZodOptional<z.ZodString>;
@@ -950,6 +1112,14 @@ export declare const communicationContract: {
950
1112
  name?: string | undefined;
951
1113
  avatar?: string | null | undefined;
952
1114
  } | undefined;
1115
+ recipientPeople?: {
1116
+ id: string;
1117
+ firstName?: string | null | undefined;
1118
+ lastName?: string | null | undefined;
1119
+ email?: string | undefined;
1120
+ name?: string | undefined;
1121
+ avatar?: string | null | undefined;
1122
+ }[] | undefined;
953
1123
  threadId?: string | undefined;
954
1124
  parentMessageId?: string | undefined;
955
1125
  sentAt?: string | undefined;
@@ -981,6 +1151,14 @@ export declare const communicationContract: {
981
1151
  name?: string | undefined;
982
1152
  avatar?: string | null | undefined;
983
1153
  } | undefined;
1154
+ recipientPeople?: {
1155
+ id: string;
1156
+ firstName?: string | null | undefined;
1157
+ lastName?: string | null | undefined;
1158
+ email?: string | undefined;
1159
+ name?: string | undefined;
1160
+ avatar?: string | null | undefined;
1161
+ }[] | undefined;
984
1162
  threadId?: string | undefined;
985
1163
  parentMessageId?: string | undefined;
986
1164
  sentAt?: string | undefined;
@@ -1018,6 +1196,14 @@ export declare const communicationContract: {
1018
1196
  name?: string | undefined;
1019
1197
  avatar?: string | null | undefined;
1020
1198
  } | undefined;
1199
+ recipientPeople?: {
1200
+ id: string;
1201
+ firstName?: string | null | undefined;
1202
+ lastName?: string | null | undefined;
1203
+ email?: string | undefined;
1204
+ name?: string | undefined;
1205
+ avatar?: string | null | undefined;
1206
+ }[] | undefined;
1021
1207
  threadId?: string | undefined;
1022
1208
  parentMessageId?: string | undefined;
1023
1209
  sentAt?: string | undefined;
@@ -1053,6 +1239,14 @@ export declare const communicationContract: {
1053
1239
  name?: string | undefined;
1054
1240
  avatar?: string | null | undefined;
1055
1241
  } | undefined;
1242
+ recipientPeople?: {
1243
+ id: string;
1244
+ firstName?: string | null | undefined;
1245
+ lastName?: string | null | undefined;
1246
+ email?: string | undefined;
1247
+ name?: string | undefined;
1248
+ avatar?: string | null | undefined;
1249
+ }[] | undefined;
1056
1250
  threadId?: string | undefined;
1057
1251
  parentMessageId?: string | undefined;
1058
1252
  sentAt?: string | undefined;
@@ -1128,6 +1322,14 @@ export declare const communicationContract: {
1128
1322
  name?: string | undefined;
1129
1323
  avatar?: string | null | undefined;
1130
1324
  } | undefined;
1325
+ recipientPeople?: {
1326
+ id: string;
1327
+ firstName?: string | null | undefined;
1328
+ lastName?: string | null | undefined;
1329
+ email?: string | undefined;
1330
+ name?: string | undefined;
1331
+ avatar?: string | null | undefined;
1332
+ }[] | undefined;
1131
1333
  threadId?: string | undefined;
1132
1334
  parentMessageId?: string | undefined;
1133
1335
  sentAt?: string | undefined;
@@ -1179,6 +1381,14 @@ export declare const communicationContract: {
1179
1381
  name?: string | undefined;
1180
1382
  avatar?: string | null | undefined;
1181
1383
  } | undefined;
1384
+ recipientPeople?: {
1385
+ id: string;
1386
+ firstName?: string | null | undefined;
1387
+ lastName?: string | null | undefined;
1388
+ email?: string | undefined;
1389
+ name?: string | undefined;
1390
+ avatar?: string | null | undefined;
1391
+ }[] | undefined;
1182
1392
  threadId?: string | undefined;
1183
1393
  parentMessageId?: string | undefined;
1184
1394
  sentAt?: string | undefined;
@@ -1334,6 +1544,28 @@ export declare const communicationContract: {
1334
1544
  avatar?: string | null | undefined;
1335
1545
  }>>;
1336
1546
  recipients: z.ZodArray<z.ZodString, "many">;
1547
+ recipientPeople: z.ZodOptional<z.ZodArray<z.ZodObject<{
1548
+ id: z.ZodString;
1549
+ firstName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1550
+ lastName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1551
+ email: z.ZodOptional<z.ZodString>;
1552
+ name: z.ZodOptional<z.ZodString>;
1553
+ avatar: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1554
+ }, "strip", z.ZodTypeAny, {
1555
+ id: string;
1556
+ firstName?: string | null | undefined;
1557
+ lastName?: string | null | undefined;
1558
+ email?: string | undefined;
1559
+ name?: string | undefined;
1560
+ avatar?: string | null | undefined;
1561
+ }, {
1562
+ id: string;
1563
+ firstName?: string | null | undefined;
1564
+ lastName?: string | null | undefined;
1565
+ email?: string | undefined;
1566
+ name?: string | undefined;
1567
+ avatar?: string | null | undefined;
1568
+ }>, "many">>;
1337
1569
  threadId: z.ZodOptional<z.ZodString>;
1338
1570
  parentMessageId: z.ZodOptional<z.ZodString>;
1339
1571
  sentAt: z.ZodOptional<z.ZodString>;
@@ -1386,6 +1618,14 @@ export declare const communicationContract: {
1386
1618
  name?: string | undefined;
1387
1619
  avatar?: string | null | undefined;
1388
1620
  } | undefined;
1621
+ recipientPeople?: {
1622
+ id: string;
1623
+ firstName?: string | null | undefined;
1624
+ lastName?: string | null | undefined;
1625
+ email?: string | undefined;
1626
+ name?: string | undefined;
1627
+ avatar?: string | null | undefined;
1628
+ }[] | undefined;
1389
1629
  threadId?: string | undefined;
1390
1630
  parentMessageId?: string | undefined;
1391
1631
  sentAt?: string | undefined;
@@ -1417,6 +1657,14 @@ export declare const communicationContract: {
1417
1657
  name?: string | undefined;
1418
1658
  avatar?: string | null | undefined;
1419
1659
  } | undefined;
1660
+ recipientPeople?: {
1661
+ id: string;
1662
+ firstName?: string | null | undefined;
1663
+ lastName?: string | null | undefined;
1664
+ email?: string | undefined;
1665
+ name?: string | undefined;
1666
+ avatar?: string | null | undefined;
1667
+ }[] | undefined;
1420
1668
  threadId?: string | undefined;
1421
1669
  parentMessageId?: string | undefined;
1422
1670
  sentAt?: string | undefined;
@@ -1454,6 +1702,14 @@ export declare const communicationContract: {
1454
1702
  name?: string | undefined;
1455
1703
  avatar?: string | null | undefined;
1456
1704
  } | undefined;
1705
+ recipientPeople?: {
1706
+ id: string;
1707
+ firstName?: string | null | undefined;
1708
+ lastName?: string | null | undefined;
1709
+ email?: string | undefined;
1710
+ name?: string | undefined;
1711
+ avatar?: string | null | undefined;
1712
+ }[] | undefined;
1457
1713
  threadId?: string | undefined;
1458
1714
  parentMessageId?: string | undefined;
1459
1715
  sentAt?: string | undefined;
@@ -1489,6 +1745,14 @@ export declare const communicationContract: {
1489
1745
  name?: string | undefined;
1490
1746
  avatar?: string | null | undefined;
1491
1747
  } | undefined;
1748
+ recipientPeople?: {
1749
+ id: string;
1750
+ firstName?: string | null | undefined;
1751
+ lastName?: string | null | undefined;
1752
+ email?: string | undefined;
1753
+ name?: string | undefined;
1754
+ avatar?: string | null | undefined;
1755
+ }[] | undefined;
1492
1756
  threadId?: string | undefined;
1493
1757
  parentMessageId?: string | undefined;
1494
1758
  sentAt?: string | undefined;
@@ -1564,6 +1828,14 @@ export declare const communicationContract: {
1564
1828
  name?: string | undefined;
1565
1829
  avatar?: string | null | undefined;
1566
1830
  } | undefined;
1831
+ recipientPeople?: {
1832
+ id: string;
1833
+ firstName?: string | null | undefined;
1834
+ lastName?: string | null | undefined;
1835
+ email?: string | undefined;
1836
+ name?: string | undefined;
1837
+ avatar?: string | null | undefined;
1838
+ }[] | undefined;
1567
1839
  threadId?: string | undefined;
1568
1840
  parentMessageId?: string | undefined;
1569
1841
  sentAt?: string | undefined;
@@ -1615,6 +1887,14 @@ export declare const communicationContract: {
1615
1887
  name?: string | undefined;
1616
1888
  avatar?: string | null | undefined;
1617
1889
  } | undefined;
1890
+ recipientPeople?: {
1891
+ id: string;
1892
+ firstName?: string | null | undefined;
1893
+ lastName?: string | null | undefined;
1894
+ email?: string | undefined;
1895
+ name?: string | undefined;
1896
+ avatar?: string | null | undefined;
1897
+ }[] | undefined;
1618
1898
  threadId?: string | undefined;
1619
1899
  parentMessageId?: string | undefined;
1620
1900
  sentAt?: string | undefined;
@@ -1872,10 +2152,32 @@ export declare const communicationContract: {
1872
2152
  avatar?: string | null | undefined;
1873
2153
  }>>;
1874
2154
  recipients: z.ZodArray<z.ZodString, "many">;
1875
- threadId: z.ZodOptional<z.ZodString>;
1876
- parentMessageId: z.ZodOptional<z.ZodString>;
1877
- sentAt: z.ZodOptional<z.ZodString>;
1878
- deliveredAt: z.ZodOptional<z.ZodString>;
2155
+ recipientPeople: z.ZodOptional<z.ZodArray<z.ZodObject<{
2156
+ id: z.ZodString;
2157
+ firstName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2158
+ lastName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2159
+ email: z.ZodOptional<z.ZodString>;
2160
+ name: z.ZodOptional<z.ZodString>;
2161
+ avatar: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2162
+ }, "strip", z.ZodTypeAny, {
2163
+ id: string;
2164
+ firstName?: string | null | undefined;
2165
+ lastName?: string | null | undefined;
2166
+ email?: string | undefined;
2167
+ name?: string | undefined;
2168
+ avatar?: string | null | undefined;
2169
+ }, {
2170
+ id: string;
2171
+ firstName?: string | null | undefined;
2172
+ lastName?: string | null | undefined;
2173
+ email?: string | undefined;
2174
+ name?: string | undefined;
2175
+ avatar?: string | null | undefined;
2176
+ }>, "many">>;
2177
+ threadId: z.ZodOptional<z.ZodString>;
2178
+ parentMessageId: z.ZodOptional<z.ZodString>;
2179
+ sentAt: z.ZodOptional<z.ZodString>;
2180
+ deliveredAt: z.ZodOptional<z.ZodString>;
1879
2181
  readAt: z.ZodOptional<z.ZodString>;
1880
2182
  isRead: z.ZodDefault<z.ZodBoolean>;
1881
2183
  createdAt: z.ZodString;
@@ -1924,6 +2226,14 @@ export declare const communicationContract: {
1924
2226
  name?: string | undefined;
1925
2227
  avatar?: string | null | undefined;
1926
2228
  } | undefined;
2229
+ recipientPeople?: {
2230
+ id: string;
2231
+ firstName?: string | null | undefined;
2232
+ lastName?: string | null | undefined;
2233
+ email?: string | undefined;
2234
+ name?: string | undefined;
2235
+ avatar?: string | null | undefined;
2236
+ }[] | undefined;
1927
2237
  threadId?: string | undefined;
1928
2238
  parentMessageId?: string | undefined;
1929
2239
  sentAt?: string | undefined;
@@ -1955,6 +2265,14 @@ export declare const communicationContract: {
1955
2265
  name?: string | undefined;
1956
2266
  avatar?: string | null | undefined;
1957
2267
  } | undefined;
2268
+ recipientPeople?: {
2269
+ id: string;
2270
+ firstName?: string | null | undefined;
2271
+ lastName?: string | null | undefined;
2272
+ email?: string | undefined;
2273
+ name?: string | undefined;
2274
+ avatar?: string | null | undefined;
2275
+ }[] | undefined;
1958
2276
  threadId?: string | undefined;
1959
2277
  parentMessageId?: string | undefined;
1960
2278
  sentAt?: string | undefined;
@@ -1992,6 +2310,14 @@ export declare const communicationContract: {
1992
2310
  name?: string | undefined;
1993
2311
  avatar?: string | null | undefined;
1994
2312
  } | undefined;
2313
+ recipientPeople?: {
2314
+ id: string;
2315
+ firstName?: string | null | undefined;
2316
+ lastName?: string | null | undefined;
2317
+ email?: string | undefined;
2318
+ name?: string | undefined;
2319
+ avatar?: string | null | undefined;
2320
+ }[] | undefined;
1995
2321
  threadId?: string | undefined;
1996
2322
  parentMessageId?: string | undefined;
1997
2323
  sentAt?: string | undefined;
@@ -2027,6 +2353,14 @@ export declare const communicationContract: {
2027
2353
  name?: string | undefined;
2028
2354
  avatar?: string | null | undefined;
2029
2355
  } | undefined;
2356
+ recipientPeople?: {
2357
+ id: string;
2358
+ firstName?: string | null | undefined;
2359
+ lastName?: string | null | undefined;
2360
+ email?: string | undefined;
2361
+ name?: string | undefined;
2362
+ avatar?: string | null | undefined;
2363
+ }[] | undefined;
2030
2364
  threadId?: string | undefined;
2031
2365
  parentMessageId?: string | undefined;
2032
2366
  sentAt?: string | undefined;
@@ -2107,6 +2441,14 @@ export declare const communicationContract: {
2107
2441
  name?: string | undefined;
2108
2442
  avatar?: string | null | undefined;
2109
2443
  } | undefined;
2444
+ recipientPeople?: {
2445
+ id: string;
2446
+ firstName?: string | null | undefined;
2447
+ lastName?: string | null | undefined;
2448
+ email?: string | undefined;
2449
+ name?: string | undefined;
2450
+ avatar?: string | null | undefined;
2451
+ }[] | undefined;
2110
2452
  threadId?: string | undefined;
2111
2453
  parentMessageId?: string | undefined;
2112
2454
  sentAt?: string | undefined;
@@ -2159,6 +2501,14 @@ export declare const communicationContract: {
2159
2501
  name?: string | undefined;
2160
2502
  avatar?: string | null | undefined;
2161
2503
  } | undefined;
2504
+ recipientPeople?: {
2505
+ id: string;
2506
+ firstName?: string | null | undefined;
2507
+ lastName?: string | null | undefined;
2508
+ email?: string | undefined;
2509
+ name?: string | undefined;
2510
+ avatar?: string | null | undefined;
2511
+ }[] | undefined;
2162
2512
  threadId?: string | undefined;
2163
2513
  parentMessageId?: string | undefined;
2164
2514
  sentAt?: string | undefined;
@@ -2297,6 +2647,28 @@ export declare const communicationContract: {
2297
2647
  avatar?: string | null | undefined;
2298
2648
  }>>;
2299
2649
  recipients: z.ZodArray<z.ZodString, "many">;
2650
+ recipientPeople: z.ZodOptional<z.ZodArray<z.ZodObject<{
2651
+ id: z.ZodString;
2652
+ firstName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2653
+ lastName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2654
+ email: z.ZodOptional<z.ZodString>;
2655
+ name: z.ZodOptional<z.ZodString>;
2656
+ avatar: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2657
+ }, "strip", z.ZodTypeAny, {
2658
+ id: string;
2659
+ firstName?: string | null | undefined;
2660
+ lastName?: string | null | undefined;
2661
+ email?: string | undefined;
2662
+ name?: string | undefined;
2663
+ avatar?: string | null | undefined;
2664
+ }, {
2665
+ id: string;
2666
+ firstName?: string | null | undefined;
2667
+ lastName?: string | null | undefined;
2668
+ email?: string | undefined;
2669
+ name?: string | undefined;
2670
+ avatar?: string | null | undefined;
2671
+ }>, "many">>;
2300
2672
  threadId: z.ZodOptional<z.ZodString>;
2301
2673
  parentMessageId: z.ZodOptional<z.ZodString>;
2302
2674
  sentAt: z.ZodOptional<z.ZodString>;
@@ -2349,6 +2721,14 @@ export declare const communicationContract: {
2349
2721
  name?: string | undefined;
2350
2722
  avatar?: string | null | undefined;
2351
2723
  } | undefined;
2724
+ recipientPeople?: {
2725
+ id: string;
2726
+ firstName?: string | null | undefined;
2727
+ lastName?: string | null | undefined;
2728
+ email?: string | undefined;
2729
+ name?: string | undefined;
2730
+ avatar?: string | null | undefined;
2731
+ }[] | undefined;
2352
2732
  threadId?: string | undefined;
2353
2733
  parentMessageId?: string | undefined;
2354
2734
  sentAt?: string | undefined;
@@ -2380,6 +2760,14 @@ export declare const communicationContract: {
2380
2760
  name?: string | undefined;
2381
2761
  avatar?: string | null | undefined;
2382
2762
  } | undefined;
2763
+ recipientPeople?: {
2764
+ id: string;
2765
+ firstName?: string | null | undefined;
2766
+ lastName?: string | null | undefined;
2767
+ email?: string | undefined;
2768
+ name?: string | undefined;
2769
+ avatar?: string | null | undefined;
2770
+ }[] | undefined;
2383
2771
  threadId?: string | undefined;
2384
2772
  parentMessageId?: string | undefined;
2385
2773
  sentAt?: string | undefined;
@@ -2417,6 +2805,14 @@ export declare const communicationContract: {
2417
2805
  name?: string | undefined;
2418
2806
  avatar?: string | null | undefined;
2419
2807
  } | undefined;
2808
+ recipientPeople?: {
2809
+ id: string;
2810
+ firstName?: string | null | undefined;
2811
+ lastName?: string | null | undefined;
2812
+ email?: string | undefined;
2813
+ name?: string | undefined;
2814
+ avatar?: string | null | undefined;
2815
+ }[] | undefined;
2420
2816
  threadId?: string | undefined;
2421
2817
  parentMessageId?: string | undefined;
2422
2818
  sentAt?: string | undefined;
@@ -2452,6 +2848,14 @@ export declare const communicationContract: {
2452
2848
  name?: string | undefined;
2453
2849
  avatar?: string | null | undefined;
2454
2850
  } | undefined;
2851
+ recipientPeople?: {
2852
+ id: string;
2853
+ firstName?: string | null | undefined;
2854
+ lastName?: string | null | undefined;
2855
+ email?: string | undefined;
2856
+ name?: string | undefined;
2857
+ avatar?: string | null | undefined;
2858
+ }[] | undefined;
2455
2859
  threadId?: string | undefined;
2456
2860
  parentMessageId?: string | undefined;
2457
2861
  sentAt?: string | undefined;
@@ -2527,6 +2931,14 @@ export declare const communicationContract: {
2527
2931
  name?: string | undefined;
2528
2932
  avatar?: string | null | undefined;
2529
2933
  } | undefined;
2934
+ recipientPeople?: {
2935
+ id: string;
2936
+ firstName?: string | null | undefined;
2937
+ lastName?: string | null | undefined;
2938
+ email?: string | undefined;
2939
+ name?: string | undefined;
2940
+ avatar?: string | null | undefined;
2941
+ }[] | undefined;
2530
2942
  threadId?: string | undefined;
2531
2943
  parentMessageId?: string | undefined;
2532
2944
  sentAt?: string | undefined;
@@ -2578,6 +2990,14 @@ export declare const communicationContract: {
2578
2990
  name?: string | undefined;
2579
2991
  avatar?: string | null | undefined;
2580
2992
  } | undefined;
2993
+ recipientPeople?: {
2994
+ id: string;
2995
+ firstName?: string | null | undefined;
2996
+ lastName?: string | null | undefined;
2997
+ email?: string | undefined;
2998
+ name?: string | undefined;
2999
+ avatar?: string | null | undefined;
3000
+ }[] | undefined;
2581
3001
  threadId?: string | undefined;
2582
3002
  parentMessageId?: string | undefined;
2583
3003
  sentAt?: string | undefined;
@@ -3198,7 +3618,7 @@ export declare const communicationContract: {
3198
3618
  }>;
3199
3619
  };
3200
3620
  };
3201
- getNotification: {
3621
+ deleteNotification: {
3202
3622
  pathParams: z.ZodObject<{
3203
3623
  notificationId: z.ZodString;
3204
3624
  }, "strip", z.ZodTypeAny, {
@@ -3206,9 +3626,89 @@ export declare const communicationContract: {
3206
3626
  }, {
3207
3627
  notificationId: string;
3208
3628
  }>;
3209
- summary: "Get a specific notification";
3210
- method: "GET";
3629
+ summary: "Delete a notification";
3630
+ method: "DELETE";
3211
3631
  path: "/notifications/:notificationId";
3632
+ responses: {
3633
+ 204: z.ZodVoid;
3634
+ 403: z.ZodObject<{
3635
+ errors: z.ZodArray<z.ZodObject<{
3636
+ status: z.ZodString;
3637
+ title: z.ZodString;
3638
+ detail: z.ZodOptional<z.ZodString>;
3639
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3640
+ }, "strip", z.ZodTypeAny, {
3641
+ status: string;
3642
+ title: string;
3643
+ detail?: string | undefined;
3644
+ meta?: Record<string, unknown> | undefined;
3645
+ }, {
3646
+ status: string;
3647
+ title: string;
3648
+ detail?: string | undefined;
3649
+ meta?: Record<string, unknown> | undefined;
3650
+ }>, "many">;
3651
+ }, "strip", z.ZodTypeAny, {
3652
+ errors: {
3653
+ status: string;
3654
+ title: string;
3655
+ detail?: string | undefined;
3656
+ meta?: Record<string, unknown> | undefined;
3657
+ }[];
3658
+ }, {
3659
+ errors: {
3660
+ status: string;
3661
+ title: string;
3662
+ detail?: string | undefined;
3663
+ meta?: Record<string, unknown> | undefined;
3664
+ }[];
3665
+ }>;
3666
+ 404: z.ZodObject<{
3667
+ errors: z.ZodArray<z.ZodObject<{
3668
+ status: z.ZodString;
3669
+ title: z.ZodString;
3670
+ detail: z.ZodOptional<z.ZodString>;
3671
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3672
+ }, "strip", z.ZodTypeAny, {
3673
+ status: string;
3674
+ title: string;
3675
+ detail?: string | undefined;
3676
+ meta?: Record<string, unknown> | undefined;
3677
+ }, {
3678
+ status: string;
3679
+ title: string;
3680
+ detail?: string | undefined;
3681
+ meta?: Record<string, unknown> | undefined;
3682
+ }>, "many">;
3683
+ }, "strip", z.ZodTypeAny, {
3684
+ errors: {
3685
+ status: string;
3686
+ title: string;
3687
+ detail?: string | undefined;
3688
+ meta?: Record<string, unknown> | undefined;
3689
+ }[];
3690
+ }, {
3691
+ errors: {
3692
+ status: string;
3693
+ title: string;
3694
+ detail?: string | undefined;
3695
+ meta?: Record<string, unknown> | undefined;
3696
+ }[];
3697
+ }>;
3698
+ };
3699
+ };
3700
+ markNotificationAsRead: {
3701
+ pathParams: z.ZodObject<{
3702
+ notificationId: z.ZodString;
3703
+ }, "strip", z.ZodTypeAny, {
3704
+ notificationId: string;
3705
+ }, {
3706
+ notificationId: string;
3707
+ }>;
3708
+ summary: "Mark notification as read";
3709
+ method: "POST";
3710
+ body: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
3711
+ path: "/notifications/:notificationId/read";
3212
3712
  responses: {
3213
3713
  200: z.ZodObject<{
3214
3714
  data: z.ZodObject<{
@@ -3458,1694 +3958,30 @@ export declare const communicationContract: {
3458
3958
  }>;
3459
3959
  };
3460
3960
  };
3461
- updateNotification: {
3462
- pathParams: z.ZodObject<{
3463
- notificationId: z.ZodString;
3464
- }, "strip", z.ZodTypeAny, {
3465
- notificationId: string;
3466
- }, {
3467
- notificationId: string;
3468
- }>;
3469
- summary: "Update notification read/archive status";
3470
- method: "PUT";
3471
- body: z.ZodObject<{
3472
- isRead: z.ZodOptional<z.ZodBoolean>;
3473
- isArchived: z.ZodOptional<z.ZodBoolean>;
3474
- }, "strip", z.ZodTypeAny, {
3475
- isRead?: boolean | undefined;
3476
- isArchived?: boolean | undefined;
3477
- }, {
3478
- isRead?: boolean | undefined;
3479
- isArchived?: boolean | undefined;
3480
- }>;
3481
- path: "/notifications/:notificationId";
3961
+ markAllNotificationsAsRead: {
3962
+ summary: "Mark all notifications as read";
3963
+ method: "POST";
3964
+ body: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
3965
+ path: "/notifications/mark-all-read";
3482
3966
  responses: {
3483
3967
  200: z.ZodObject<{
3484
3968
  data: z.ZodObject<{
3485
- type: z.ZodLiteral<"notifications">;
3486
- id: z.ZodString;
3487
- attributes: z.ZodObject<{
3488
- id: z.ZodString;
3489
- title: z.ZodString;
3490
- content: z.ZodString;
3491
- type: z.ZodEnum<["TASK_ASSIGNED", "TASK_COMPLETED", "MESSAGE_RECEIVED", "ANNOUNCEMENT_POSTED", "DEADLINE_APPROACHING", "BUDGET_ALERT", "SAFETY_INCIDENT", "DOCUMENT_SHARED"]>;
3492
- priority: z.ZodEnum<["LOW", "MEDIUM", "HIGH", "URGENT"]>;
3493
- isRead: z.ZodDefault<z.ZodBoolean>;
3494
- userId: z.ZodString;
3495
- actionUrl: z.ZodOptional<z.ZodString>;
3496
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
3497
- readAt: z.ZodOptional<z.ZodString>;
3498
- createdAt: z.ZodString;
3499
- projectId: z.ZodOptional<z.ZodString>;
3500
- }, "strip", z.ZodTypeAny, {
3501
- id: string;
3502
- createdAt: string;
3503
- type: "TASK_ASSIGNED" | "TASK_COMPLETED" | "MESSAGE_RECEIVED" | "ANNOUNCEMENT_POSTED" | "DEADLINE_APPROACHING" | "BUDGET_ALERT" | "SAFETY_INCIDENT" | "DOCUMENT_SHARED";
3504
- title: string;
3505
- userId: string;
3506
- content: string;
3507
- priority: "LOW" | "MEDIUM" | "HIGH" | "URGENT";
3508
- isRead: boolean;
3509
- projectId?: string | undefined;
3510
- metadata?: Record<string, any> | undefined;
3511
- readAt?: string | undefined;
3512
- actionUrl?: string | undefined;
3513
- }, {
3514
- id: string;
3515
- createdAt: string;
3516
- type: "TASK_ASSIGNED" | "TASK_COMPLETED" | "MESSAGE_RECEIVED" | "ANNOUNCEMENT_POSTED" | "DEADLINE_APPROACHING" | "BUDGET_ALERT" | "SAFETY_INCIDENT" | "DOCUMENT_SHARED";
3517
- title: string;
3518
- userId: string;
3519
- content: string;
3520
- priority: "LOW" | "MEDIUM" | "HIGH" | "URGENT";
3521
- projectId?: string | undefined;
3522
- metadata?: Record<string, any> | undefined;
3523
- readAt?: string | undefined;
3524
- isRead?: boolean | undefined;
3525
- actionUrl?: string | undefined;
3526
- }>;
3527
- }, "strip", z.ZodTypeAny, {
3528
- id: string;
3529
- type: "notifications";
3530
- attributes: {
3531
- id: string;
3532
- createdAt: string;
3533
- type: "TASK_ASSIGNED" | "TASK_COMPLETED" | "MESSAGE_RECEIVED" | "ANNOUNCEMENT_POSTED" | "DEADLINE_APPROACHING" | "BUDGET_ALERT" | "SAFETY_INCIDENT" | "DOCUMENT_SHARED";
3534
- title: string;
3535
- userId: string;
3536
- content: string;
3537
- priority: "LOW" | "MEDIUM" | "HIGH" | "URGENT";
3538
- isRead: boolean;
3539
- projectId?: string | undefined;
3540
- metadata?: Record<string, any> | undefined;
3541
- readAt?: string | undefined;
3542
- actionUrl?: string | undefined;
3543
- };
3544
- }, {
3545
- id: string;
3546
- type: "notifications";
3547
- attributes: {
3548
- id: string;
3549
- createdAt: string;
3550
- type: "TASK_ASSIGNED" | "TASK_COMPLETED" | "MESSAGE_RECEIVED" | "ANNOUNCEMENT_POSTED" | "DEADLINE_APPROACHING" | "BUDGET_ALERT" | "SAFETY_INCIDENT" | "DOCUMENT_SHARED";
3551
- title: string;
3552
- userId: string;
3553
- content: string;
3554
- priority: "LOW" | "MEDIUM" | "HIGH" | "URGENT";
3555
- projectId?: string | undefined;
3556
- metadata?: Record<string, any> | undefined;
3557
- readAt?: string | undefined;
3558
- isRead?: boolean | undefined;
3559
- actionUrl?: string | undefined;
3560
- };
3561
- }>;
3562
- meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3563
- links: z.ZodOptional<z.ZodObject<{
3564
- self: z.ZodString;
3565
- first: z.ZodOptional<z.ZodString>;
3566
- last: z.ZodOptional<z.ZodString>;
3567
- prev: z.ZodOptional<z.ZodString>;
3568
- next: z.ZodOptional<z.ZodString>;
3569
- }, "strip", z.ZodTypeAny, {
3570
- self: string;
3571
- first?: string | undefined;
3572
- last?: string | undefined;
3573
- prev?: string | undefined;
3574
- next?: string | undefined;
3575
- }, {
3576
- self: string;
3577
- first?: string | undefined;
3578
- last?: string | undefined;
3579
- prev?: string | undefined;
3580
- next?: string | undefined;
3581
- }>>;
3582
- errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
3583
- status: z.ZodString;
3584
- title: z.ZodString;
3585
- detail: z.ZodOptional<z.ZodString>;
3586
- meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3587
- }, "strip", z.ZodTypeAny, {
3588
- status: string;
3589
- title: string;
3590
- detail?: string | undefined;
3591
- meta?: Record<string, unknown> | undefined;
3592
- }, {
3593
- status: string;
3594
- title: string;
3595
- detail?: string | undefined;
3596
- meta?: Record<string, unknown> | undefined;
3597
- }>, "many">>;
3598
- }, "strip", z.ZodTypeAny, {
3599
- data: {
3600
- id: string;
3601
- type: "notifications";
3602
- attributes: {
3603
- id: string;
3604
- createdAt: string;
3605
- type: "TASK_ASSIGNED" | "TASK_COMPLETED" | "MESSAGE_RECEIVED" | "ANNOUNCEMENT_POSTED" | "DEADLINE_APPROACHING" | "BUDGET_ALERT" | "SAFETY_INCIDENT" | "DOCUMENT_SHARED";
3606
- title: string;
3607
- userId: string;
3608
- content: string;
3609
- priority: "LOW" | "MEDIUM" | "HIGH" | "URGENT";
3610
- isRead: boolean;
3611
- projectId?: string | undefined;
3612
- metadata?: Record<string, any> | undefined;
3613
- readAt?: string | undefined;
3614
- actionUrl?: string | undefined;
3615
- };
3616
- };
3617
- meta?: Record<string, unknown> | undefined;
3618
- links?: {
3619
- self: string;
3620
- first?: string | undefined;
3621
- last?: string | undefined;
3622
- prev?: string | undefined;
3623
- next?: string | undefined;
3624
- } | undefined;
3625
- errors?: {
3626
- status: string;
3627
- title: string;
3628
- detail?: string | undefined;
3629
- meta?: Record<string, unknown> | undefined;
3630
- }[] | undefined;
3631
- }, {
3632
- data: {
3633
- id: string;
3634
- type: "notifications";
3635
- attributes: {
3636
- id: string;
3637
- createdAt: string;
3638
- type: "TASK_ASSIGNED" | "TASK_COMPLETED" | "MESSAGE_RECEIVED" | "ANNOUNCEMENT_POSTED" | "DEADLINE_APPROACHING" | "BUDGET_ALERT" | "SAFETY_INCIDENT" | "DOCUMENT_SHARED";
3639
- title: string;
3640
- userId: string;
3641
- content: string;
3642
- priority: "LOW" | "MEDIUM" | "HIGH" | "URGENT";
3643
- projectId?: string | undefined;
3644
- metadata?: Record<string, any> | undefined;
3645
- readAt?: string | undefined;
3646
- isRead?: boolean | undefined;
3647
- actionUrl?: string | undefined;
3648
- };
3649
- };
3650
- meta?: Record<string, unknown> | undefined;
3651
- links?: {
3652
- self: string;
3653
- first?: string | undefined;
3654
- last?: string | undefined;
3655
- prev?: string | undefined;
3656
- next?: string | undefined;
3657
- } | undefined;
3658
- errors?: {
3659
- status: string;
3660
- title: string;
3661
- detail?: string | undefined;
3662
- meta?: Record<string, unknown> | undefined;
3663
- }[] | undefined;
3664
- }>;
3665
- 400: z.ZodObject<{
3666
- errors: z.ZodArray<z.ZodObject<{
3667
- status: z.ZodString;
3668
- title: z.ZodString;
3669
- detail: z.ZodOptional<z.ZodString>;
3670
- meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3671
- }, "strip", z.ZodTypeAny, {
3672
- status: string;
3673
- title: string;
3674
- detail?: string | undefined;
3675
- meta?: Record<string, unknown> | undefined;
3676
- }, {
3677
- status: string;
3678
- title: string;
3679
- detail?: string | undefined;
3680
- meta?: Record<string, unknown> | undefined;
3681
- }>, "many">;
3682
- }, "strip", z.ZodTypeAny, {
3683
- errors: {
3684
- status: string;
3685
- title: string;
3686
- detail?: string | undefined;
3687
- meta?: Record<string, unknown> | undefined;
3688
- }[];
3689
- }, {
3690
- errors: {
3691
- status: string;
3692
- title: string;
3693
- detail?: string | undefined;
3694
- meta?: Record<string, unknown> | undefined;
3695
- }[];
3696
- }>;
3697
- 403: z.ZodObject<{
3698
- errors: z.ZodArray<z.ZodObject<{
3699
- status: z.ZodString;
3700
- title: z.ZodString;
3701
- detail: z.ZodOptional<z.ZodString>;
3702
- meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3703
- }, "strip", z.ZodTypeAny, {
3704
- status: string;
3705
- title: string;
3706
- detail?: string | undefined;
3707
- meta?: Record<string, unknown> | undefined;
3708
- }, {
3709
- status: string;
3710
- title: string;
3711
- detail?: string | undefined;
3712
- meta?: Record<string, unknown> | undefined;
3713
- }>, "many">;
3714
- }, "strip", z.ZodTypeAny, {
3715
- errors: {
3716
- status: string;
3717
- title: string;
3718
- detail?: string | undefined;
3719
- meta?: Record<string, unknown> | undefined;
3720
- }[];
3721
- }, {
3722
- errors: {
3723
- status: string;
3724
- title: string;
3725
- detail?: string | undefined;
3726
- meta?: Record<string, unknown> | undefined;
3727
- }[];
3728
- }>;
3729
- 404: z.ZodObject<{
3730
- errors: z.ZodArray<z.ZodObject<{
3731
- status: z.ZodString;
3732
- title: z.ZodString;
3733
- detail: z.ZodOptional<z.ZodString>;
3734
- meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3735
- }, "strip", z.ZodTypeAny, {
3736
- status: string;
3737
- title: string;
3738
- detail?: string | undefined;
3739
- meta?: Record<string, unknown> | undefined;
3740
- }, {
3741
- status: string;
3742
- title: string;
3743
- detail?: string | undefined;
3744
- meta?: Record<string, unknown> | undefined;
3745
- }>, "many">;
3746
- }, "strip", z.ZodTypeAny, {
3747
- errors: {
3748
- status: string;
3749
- title: string;
3750
- detail?: string | undefined;
3751
- meta?: Record<string, unknown> | undefined;
3752
- }[];
3753
- }, {
3754
- errors: {
3755
- status: string;
3756
- title: string;
3757
- detail?: string | undefined;
3758
- meta?: Record<string, unknown> | undefined;
3759
- }[];
3760
- }>;
3761
- };
3762
- };
3763
- deleteNotification: {
3764
- pathParams: z.ZodObject<{
3765
- notificationId: z.ZodString;
3766
- }, "strip", z.ZodTypeAny, {
3767
- notificationId: string;
3768
- }, {
3769
- notificationId: string;
3770
- }>;
3771
- summary: "Delete a notification";
3772
- method: "DELETE";
3773
- path: "/notifications/:notificationId";
3774
- responses: {
3775
- 204: z.ZodVoid;
3776
- 403: z.ZodObject<{
3777
- errors: z.ZodArray<z.ZodObject<{
3778
- status: z.ZodString;
3779
- title: z.ZodString;
3780
- detail: z.ZodOptional<z.ZodString>;
3781
- meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3782
- }, "strip", z.ZodTypeAny, {
3783
- status: string;
3784
- title: string;
3785
- detail?: string | undefined;
3786
- meta?: Record<string, unknown> | undefined;
3787
- }, {
3788
- status: string;
3789
- title: string;
3790
- detail?: string | undefined;
3791
- meta?: Record<string, unknown> | undefined;
3792
- }>, "many">;
3793
- }, "strip", z.ZodTypeAny, {
3794
- errors: {
3795
- status: string;
3796
- title: string;
3797
- detail?: string | undefined;
3798
- meta?: Record<string, unknown> | undefined;
3799
- }[];
3800
- }, {
3801
- errors: {
3802
- status: string;
3803
- title: string;
3804
- detail?: string | undefined;
3805
- meta?: Record<string, unknown> | undefined;
3806
- }[];
3807
- }>;
3808
- 404: z.ZodObject<{
3809
- errors: z.ZodArray<z.ZodObject<{
3810
- status: z.ZodString;
3811
- title: z.ZodString;
3812
- detail: z.ZodOptional<z.ZodString>;
3813
- meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3814
- }, "strip", z.ZodTypeAny, {
3815
- status: string;
3816
- title: string;
3817
- detail?: string | undefined;
3818
- meta?: Record<string, unknown> | undefined;
3819
- }, {
3820
- status: string;
3821
- title: string;
3822
- detail?: string | undefined;
3823
- meta?: Record<string, unknown> | undefined;
3824
- }>, "many">;
3825
- }, "strip", z.ZodTypeAny, {
3826
- errors: {
3827
- status: string;
3828
- title: string;
3829
- detail?: string | undefined;
3830
- meta?: Record<string, unknown> | undefined;
3831
- }[];
3832
- }, {
3833
- errors: {
3834
- status: string;
3835
- title: string;
3836
- detail?: string | undefined;
3837
- meta?: Record<string, unknown> | undefined;
3838
- }[];
3839
- }>;
3840
- };
3841
- };
3842
- markNotificationAsRead: {
3843
- pathParams: z.ZodObject<{
3844
- notificationId: z.ZodString;
3845
- }, "strip", z.ZodTypeAny, {
3846
- notificationId: string;
3847
- }, {
3848
- notificationId: string;
3849
- }>;
3850
- summary: "Mark notification as read";
3851
- method: "POST";
3852
- body: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
3853
- path: "/notifications/:notificationId/read";
3854
- responses: {
3855
- 200: z.ZodObject<{
3856
- data: z.ZodObject<{
3857
- type: z.ZodLiteral<"notifications">;
3858
- id: z.ZodString;
3859
- attributes: z.ZodObject<{
3860
- id: z.ZodString;
3861
- title: z.ZodString;
3862
- content: z.ZodString;
3863
- type: z.ZodEnum<["TASK_ASSIGNED", "TASK_COMPLETED", "MESSAGE_RECEIVED", "ANNOUNCEMENT_POSTED", "DEADLINE_APPROACHING", "BUDGET_ALERT", "SAFETY_INCIDENT", "DOCUMENT_SHARED"]>;
3864
- priority: z.ZodEnum<["LOW", "MEDIUM", "HIGH", "URGENT"]>;
3865
- isRead: z.ZodDefault<z.ZodBoolean>;
3866
- userId: z.ZodString;
3867
- actionUrl: z.ZodOptional<z.ZodString>;
3868
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
3869
- readAt: z.ZodOptional<z.ZodString>;
3870
- createdAt: z.ZodString;
3871
- projectId: z.ZodOptional<z.ZodString>;
3872
- }, "strip", z.ZodTypeAny, {
3873
- id: string;
3874
- createdAt: string;
3875
- type: "TASK_ASSIGNED" | "TASK_COMPLETED" | "MESSAGE_RECEIVED" | "ANNOUNCEMENT_POSTED" | "DEADLINE_APPROACHING" | "BUDGET_ALERT" | "SAFETY_INCIDENT" | "DOCUMENT_SHARED";
3876
- title: string;
3877
- userId: string;
3878
- content: string;
3879
- priority: "LOW" | "MEDIUM" | "HIGH" | "URGENT";
3880
- isRead: boolean;
3881
- projectId?: string | undefined;
3882
- metadata?: Record<string, any> | undefined;
3883
- readAt?: string | undefined;
3884
- actionUrl?: string | undefined;
3885
- }, {
3886
- id: string;
3887
- createdAt: string;
3888
- type: "TASK_ASSIGNED" | "TASK_COMPLETED" | "MESSAGE_RECEIVED" | "ANNOUNCEMENT_POSTED" | "DEADLINE_APPROACHING" | "BUDGET_ALERT" | "SAFETY_INCIDENT" | "DOCUMENT_SHARED";
3889
- title: string;
3890
- userId: string;
3891
- content: string;
3892
- priority: "LOW" | "MEDIUM" | "HIGH" | "URGENT";
3893
- projectId?: string | undefined;
3894
- metadata?: Record<string, any> | undefined;
3895
- readAt?: string | undefined;
3896
- isRead?: boolean | undefined;
3897
- actionUrl?: string | undefined;
3898
- }>;
3899
- }, "strip", z.ZodTypeAny, {
3900
- id: string;
3901
- type: "notifications";
3902
- attributes: {
3903
- id: string;
3904
- createdAt: string;
3905
- type: "TASK_ASSIGNED" | "TASK_COMPLETED" | "MESSAGE_RECEIVED" | "ANNOUNCEMENT_POSTED" | "DEADLINE_APPROACHING" | "BUDGET_ALERT" | "SAFETY_INCIDENT" | "DOCUMENT_SHARED";
3906
- title: string;
3907
- userId: string;
3908
- content: string;
3909
- priority: "LOW" | "MEDIUM" | "HIGH" | "URGENT";
3910
- isRead: boolean;
3911
- projectId?: string | undefined;
3912
- metadata?: Record<string, any> | undefined;
3913
- readAt?: string | undefined;
3914
- actionUrl?: string | undefined;
3915
- };
3916
- }, {
3917
- id: string;
3918
- type: "notifications";
3919
- attributes: {
3920
- id: string;
3921
- createdAt: string;
3922
- type: "TASK_ASSIGNED" | "TASK_COMPLETED" | "MESSAGE_RECEIVED" | "ANNOUNCEMENT_POSTED" | "DEADLINE_APPROACHING" | "BUDGET_ALERT" | "SAFETY_INCIDENT" | "DOCUMENT_SHARED";
3923
- title: string;
3924
- userId: string;
3925
- content: string;
3926
- priority: "LOW" | "MEDIUM" | "HIGH" | "URGENT";
3927
- projectId?: string | undefined;
3928
- metadata?: Record<string, any> | undefined;
3929
- readAt?: string | undefined;
3930
- isRead?: boolean | undefined;
3931
- actionUrl?: string | undefined;
3932
- };
3933
- }>;
3934
- meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3935
- links: z.ZodOptional<z.ZodObject<{
3936
- self: z.ZodString;
3937
- first: z.ZodOptional<z.ZodString>;
3938
- last: z.ZodOptional<z.ZodString>;
3939
- prev: z.ZodOptional<z.ZodString>;
3940
- next: z.ZodOptional<z.ZodString>;
3941
- }, "strip", z.ZodTypeAny, {
3942
- self: string;
3943
- first?: string | undefined;
3944
- last?: string | undefined;
3945
- prev?: string | undefined;
3946
- next?: string | undefined;
3947
- }, {
3948
- self: string;
3949
- first?: string | undefined;
3950
- last?: string | undefined;
3951
- prev?: string | undefined;
3952
- next?: string | undefined;
3953
- }>>;
3954
- errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
3955
- status: z.ZodString;
3956
- title: z.ZodString;
3957
- detail: z.ZodOptional<z.ZodString>;
3958
- meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3959
- }, "strip", z.ZodTypeAny, {
3960
- status: string;
3961
- title: string;
3962
- detail?: string | undefined;
3963
- meta?: Record<string, unknown> | undefined;
3964
- }, {
3965
- status: string;
3966
- title: string;
3967
- detail?: string | undefined;
3968
- meta?: Record<string, unknown> | undefined;
3969
- }>, "many">>;
3970
- }, "strip", z.ZodTypeAny, {
3971
- data: {
3972
- id: string;
3973
- type: "notifications";
3974
- attributes: {
3975
- id: string;
3976
- createdAt: string;
3977
- type: "TASK_ASSIGNED" | "TASK_COMPLETED" | "MESSAGE_RECEIVED" | "ANNOUNCEMENT_POSTED" | "DEADLINE_APPROACHING" | "BUDGET_ALERT" | "SAFETY_INCIDENT" | "DOCUMENT_SHARED";
3978
- title: string;
3979
- userId: string;
3980
- content: string;
3981
- priority: "LOW" | "MEDIUM" | "HIGH" | "URGENT";
3982
- isRead: boolean;
3983
- projectId?: string | undefined;
3984
- metadata?: Record<string, any> | undefined;
3985
- readAt?: string | undefined;
3986
- actionUrl?: string | undefined;
3987
- };
3988
- };
3989
- meta?: Record<string, unknown> | undefined;
3990
- links?: {
3991
- self: string;
3992
- first?: string | undefined;
3993
- last?: string | undefined;
3994
- prev?: string | undefined;
3995
- next?: string | undefined;
3996
- } | undefined;
3997
- errors?: {
3998
- status: string;
3999
- title: string;
4000
- detail?: string | undefined;
4001
- meta?: Record<string, unknown> | undefined;
4002
- }[] | undefined;
4003
- }, {
4004
- data: {
4005
- id: string;
4006
- type: "notifications";
4007
- attributes: {
4008
- id: string;
4009
- createdAt: string;
4010
- type: "TASK_ASSIGNED" | "TASK_COMPLETED" | "MESSAGE_RECEIVED" | "ANNOUNCEMENT_POSTED" | "DEADLINE_APPROACHING" | "BUDGET_ALERT" | "SAFETY_INCIDENT" | "DOCUMENT_SHARED";
4011
- title: string;
4012
- userId: string;
4013
- content: string;
4014
- priority: "LOW" | "MEDIUM" | "HIGH" | "URGENT";
4015
- projectId?: string | undefined;
4016
- metadata?: Record<string, any> | undefined;
4017
- readAt?: string | undefined;
4018
- isRead?: boolean | undefined;
4019
- actionUrl?: string | undefined;
4020
- };
4021
- };
4022
- meta?: Record<string, unknown> | undefined;
4023
- links?: {
4024
- self: string;
4025
- first?: string | undefined;
4026
- last?: string | undefined;
4027
- prev?: string | undefined;
4028
- next?: string | undefined;
4029
- } | undefined;
4030
- errors?: {
4031
- status: string;
4032
- title: string;
4033
- detail?: string | undefined;
4034
- meta?: Record<string, unknown> | undefined;
4035
- }[] | undefined;
4036
- }>;
4037
- 403: z.ZodObject<{
4038
- errors: z.ZodArray<z.ZodObject<{
4039
- status: z.ZodString;
4040
- title: z.ZodString;
4041
- detail: z.ZodOptional<z.ZodString>;
4042
- meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4043
- }, "strip", z.ZodTypeAny, {
4044
- status: string;
4045
- title: string;
4046
- detail?: string | undefined;
4047
- meta?: Record<string, unknown> | undefined;
4048
- }, {
4049
- status: string;
4050
- title: string;
4051
- detail?: string | undefined;
4052
- meta?: Record<string, unknown> | undefined;
4053
- }>, "many">;
4054
- }, "strip", z.ZodTypeAny, {
4055
- errors: {
4056
- status: string;
4057
- title: string;
4058
- detail?: string | undefined;
4059
- meta?: Record<string, unknown> | undefined;
4060
- }[];
4061
- }, {
4062
- errors: {
4063
- status: string;
4064
- title: string;
4065
- detail?: string | undefined;
4066
- meta?: Record<string, unknown> | undefined;
4067
- }[];
4068
- }>;
4069
- 404: z.ZodObject<{
4070
- errors: z.ZodArray<z.ZodObject<{
4071
- status: z.ZodString;
4072
- title: z.ZodString;
4073
- detail: z.ZodOptional<z.ZodString>;
4074
- meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4075
- }, "strip", z.ZodTypeAny, {
4076
- status: string;
4077
- title: string;
4078
- detail?: string | undefined;
4079
- meta?: Record<string, unknown> | undefined;
4080
- }, {
4081
- status: string;
4082
- title: string;
4083
- detail?: string | undefined;
4084
- meta?: Record<string, unknown> | undefined;
4085
- }>, "many">;
4086
- }, "strip", z.ZodTypeAny, {
4087
- errors: {
4088
- status: string;
4089
- title: string;
4090
- detail?: string | undefined;
4091
- meta?: Record<string, unknown> | undefined;
4092
- }[];
4093
- }, {
4094
- errors: {
4095
- status: string;
4096
- title: string;
4097
- detail?: string | undefined;
4098
- meta?: Record<string, unknown> | undefined;
4099
- }[];
4100
- }>;
4101
- };
4102
- };
4103
- markAllNotificationsAsRead: {
4104
- summary: "Mark all notifications as read";
4105
- method: "POST";
4106
- body: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
4107
- path: "/notifications/mark-all-read";
4108
- responses: {
4109
- 200: z.ZodObject<{
4110
- data: z.ZodObject<{
4111
- markedCount: z.ZodNumber;
4112
- }, "strip", z.ZodTypeAny, {
4113
- markedCount: number;
4114
- }, {
4115
- markedCount: number;
4116
- }>;
4117
- }, "strip", z.ZodTypeAny, {
4118
- data: {
4119
- markedCount: number;
4120
- };
4121
- }, {
4122
- data: {
4123
- markedCount: number;
4124
- };
4125
- }>;
4126
- 403: z.ZodObject<{
4127
- errors: z.ZodArray<z.ZodObject<{
4128
- status: z.ZodString;
4129
- title: z.ZodString;
4130
- detail: z.ZodOptional<z.ZodString>;
4131
- meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4132
- }, "strip", z.ZodTypeAny, {
4133
- status: string;
4134
- title: string;
4135
- detail?: string | undefined;
4136
- meta?: Record<string, unknown> | undefined;
4137
- }, {
4138
- status: string;
4139
- title: string;
4140
- detail?: string | undefined;
4141
- meta?: Record<string, unknown> | undefined;
4142
- }>, "many">;
4143
- }, "strip", z.ZodTypeAny, {
4144
- errors: {
4145
- status: string;
4146
- title: string;
4147
- detail?: string | undefined;
4148
- meta?: Record<string, unknown> | undefined;
4149
- }[];
4150
- }, {
4151
- errors: {
4152
- status: string;
4153
- title: string;
4154
- detail?: string | undefined;
4155
- meta?: Record<string, unknown> | undefined;
4156
- }[];
4157
- }>;
4158
- };
4159
- };
4160
- getCommunicationSettings: {
4161
- summary: "Get user communication preferences";
4162
- method: "GET";
4163
- path: "/communication/settings";
4164
- responses: {
4165
- 200: z.ZodObject<{
4166
- data: z.ZodObject<{
4167
- type: z.ZodLiteral<"communication-settings">;
4168
- id: z.ZodString;
4169
- attributes: z.ZodObject<{
4170
- id: z.ZodString;
4171
- userId: z.ZodString;
4172
- emailNotifications: z.ZodDefault<z.ZodBoolean>;
4173
- smsNotifications: z.ZodDefault<z.ZodBoolean>;
4174
- pushNotifications: z.ZodDefault<z.ZodBoolean>;
4175
- projectUpdates: z.ZodDefault<z.ZodBoolean>;
4176
- taskAssignments: z.ZodDefault<z.ZodBoolean>;
4177
- documentSharing: z.ZodDefault<z.ZodBoolean>;
4178
- messageReplies: z.ZodDefault<z.ZodBoolean>;
4179
- systemAlerts: z.ZodDefault<z.ZodBoolean>;
4180
- digestFrequency: z.ZodDefault<z.ZodEnum<["IMMEDIATE", "HOURLY", "DAILY", "WEEKLY", "DISABLED"]>>;
4181
- quietHoursStart: z.ZodOptional<z.ZodString>;
4182
- quietHoursEnd: z.ZodOptional<z.ZodString>;
4183
- createdAt: z.ZodString;
4184
- updatedAt: z.ZodString;
4185
- }, "strip", z.ZodTypeAny, {
4186
- id: string;
4187
- createdAt: string;
4188
- updatedAt: string;
4189
- userId: string;
4190
- emailNotifications: boolean;
4191
- smsNotifications: boolean;
4192
- pushNotifications: boolean;
4193
- projectUpdates: boolean;
4194
- taskAssignments: boolean;
4195
- documentSharing: boolean;
4196
- messageReplies: boolean;
4197
- systemAlerts: boolean;
4198
- digestFrequency: "IMMEDIATE" | "HOURLY" | "DAILY" | "WEEKLY" | "DISABLED";
4199
- quietHoursStart?: string | undefined;
4200
- quietHoursEnd?: string | undefined;
4201
- }, {
4202
- id: string;
4203
- createdAt: string;
4204
- updatedAt: string;
4205
- userId: string;
4206
- emailNotifications?: boolean | undefined;
4207
- smsNotifications?: boolean | undefined;
4208
- pushNotifications?: boolean | undefined;
4209
- projectUpdates?: boolean | undefined;
4210
- taskAssignments?: boolean | undefined;
4211
- documentSharing?: boolean | undefined;
4212
- messageReplies?: boolean | undefined;
4213
- systemAlerts?: boolean | undefined;
4214
- digestFrequency?: "IMMEDIATE" | "HOURLY" | "DAILY" | "WEEKLY" | "DISABLED" | undefined;
4215
- quietHoursStart?: string | undefined;
4216
- quietHoursEnd?: string | undefined;
4217
- }>;
4218
- }, "strip", z.ZodTypeAny, {
4219
- id: string;
4220
- type: "communication-settings";
4221
- attributes: {
4222
- id: string;
4223
- createdAt: string;
4224
- updatedAt: string;
4225
- userId: string;
4226
- emailNotifications: boolean;
4227
- smsNotifications: boolean;
4228
- pushNotifications: boolean;
4229
- projectUpdates: boolean;
4230
- taskAssignments: boolean;
4231
- documentSharing: boolean;
4232
- messageReplies: boolean;
4233
- systemAlerts: boolean;
4234
- digestFrequency: "IMMEDIATE" | "HOURLY" | "DAILY" | "WEEKLY" | "DISABLED";
4235
- quietHoursStart?: string | undefined;
4236
- quietHoursEnd?: string | undefined;
4237
- };
4238
- }, {
4239
- id: string;
4240
- type: "communication-settings";
4241
- attributes: {
4242
- id: string;
4243
- createdAt: string;
4244
- updatedAt: string;
4245
- userId: string;
4246
- emailNotifications?: boolean | undefined;
4247
- smsNotifications?: boolean | undefined;
4248
- pushNotifications?: boolean | undefined;
4249
- projectUpdates?: boolean | undefined;
4250
- taskAssignments?: boolean | undefined;
4251
- documentSharing?: boolean | undefined;
4252
- messageReplies?: boolean | undefined;
4253
- systemAlerts?: boolean | undefined;
4254
- digestFrequency?: "IMMEDIATE" | "HOURLY" | "DAILY" | "WEEKLY" | "DISABLED" | undefined;
4255
- quietHoursStart?: string | undefined;
4256
- quietHoursEnd?: string | undefined;
4257
- };
4258
- }>;
4259
- meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4260
- links: z.ZodOptional<z.ZodObject<{
4261
- self: z.ZodString;
4262
- first: z.ZodOptional<z.ZodString>;
4263
- last: z.ZodOptional<z.ZodString>;
4264
- prev: z.ZodOptional<z.ZodString>;
4265
- next: z.ZodOptional<z.ZodString>;
4266
- }, "strip", z.ZodTypeAny, {
4267
- self: string;
4268
- first?: string | undefined;
4269
- last?: string | undefined;
4270
- prev?: string | undefined;
4271
- next?: string | undefined;
4272
- }, {
4273
- self: string;
4274
- first?: string | undefined;
4275
- last?: string | undefined;
4276
- prev?: string | undefined;
4277
- next?: string | undefined;
4278
- }>>;
4279
- errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
4280
- status: z.ZodString;
4281
- title: z.ZodString;
4282
- detail: z.ZodOptional<z.ZodString>;
4283
- meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4284
- }, "strip", z.ZodTypeAny, {
4285
- status: string;
4286
- title: string;
4287
- detail?: string | undefined;
4288
- meta?: Record<string, unknown> | undefined;
4289
- }, {
4290
- status: string;
4291
- title: string;
4292
- detail?: string | undefined;
4293
- meta?: Record<string, unknown> | undefined;
4294
- }>, "many">>;
4295
- }, "strip", z.ZodTypeAny, {
4296
- data: {
4297
- id: string;
4298
- type: "communication-settings";
4299
- attributes: {
4300
- id: string;
4301
- createdAt: string;
4302
- updatedAt: string;
4303
- userId: string;
4304
- emailNotifications: boolean;
4305
- smsNotifications: boolean;
4306
- pushNotifications: boolean;
4307
- projectUpdates: boolean;
4308
- taskAssignments: boolean;
4309
- documentSharing: boolean;
4310
- messageReplies: boolean;
4311
- systemAlerts: boolean;
4312
- digestFrequency: "IMMEDIATE" | "HOURLY" | "DAILY" | "WEEKLY" | "DISABLED";
4313
- quietHoursStart?: string | undefined;
4314
- quietHoursEnd?: string | undefined;
4315
- };
4316
- };
4317
- meta?: Record<string, unknown> | undefined;
4318
- links?: {
4319
- self: string;
4320
- first?: string | undefined;
4321
- last?: string | undefined;
4322
- prev?: string | undefined;
4323
- next?: string | undefined;
4324
- } | undefined;
4325
- errors?: {
4326
- status: string;
4327
- title: string;
4328
- detail?: string | undefined;
4329
- meta?: Record<string, unknown> | undefined;
4330
- }[] | undefined;
4331
- }, {
4332
- data: {
4333
- id: string;
4334
- type: "communication-settings";
4335
- attributes: {
4336
- id: string;
4337
- createdAt: string;
4338
- updatedAt: string;
4339
- userId: string;
4340
- emailNotifications?: boolean | undefined;
4341
- smsNotifications?: boolean | undefined;
4342
- pushNotifications?: boolean | undefined;
4343
- projectUpdates?: boolean | undefined;
4344
- taskAssignments?: boolean | undefined;
4345
- documentSharing?: boolean | undefined;
4346
- messageReplies?: boolean | undefined;
4347
- systemAlerts?: boolean | undefined;
4348
- digestFrequency?: "IMMEDIATE" | "HOURLY" | "DAILY" | "WEEKLY" | "DISABLED" | undefined;
4349
- quietHoursStart?: string | undefined;
4350
- quietHoursEnd?: string | undefined;
4351
- };
4352
- };
4353
- meta?: Record<string, unknown> | undefined;
4354
- links?: {
4355
- self: string;
4356
- first?: string | undefined;
4357
- last?: string | undefined;
4358
- prev?: string | undefined;
4359
- next?: string | undefined;
4360
- } | undefined;
4361
- errors?: {
4362
- status: string;
4363
- title: string;
4364
- detail?: string | undefined;
4365
- meta?: Record<string, unknown> | undefined;
4366
- }[] | undefined;
4367
- }>;
4368
- 403: z.ZodObject<{
4369
- errors: z.ZodArray<z.ZodObject<{
4370
- status: z.ZodString;
4371
- title: z.ZodString;
4372
- detail: z.ZodOptional<z.ZodString>;
4373
- meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4374
- }, "strip", z.ZodTypeAny, {
4375
- status: string;
4376
- title: string;
4377
- detail?: string | undefined;
4378
- meta?: Record<string, unknown> | undefined;
4379
- }, {
4380
- status: string;
4381
- title: string;
4382
- detail?: string | undefined;
4383
- meta?: Record<string, unknown> | undefined;
4384
- }>, "many">;
4385
- }, "strip", z.ZodTypeAny, {
4386
- errors: {
4387
- status: string;
4388
- title: string;
4389
- detail?: string | undefined;
4390
- meta?: Record<string, unknown> | undefined;
4391
- }[];
4392
- }, {
4393
- errors: {
4394
- status: string;
4395
- title: string;
4396
- detail?: string | undefined;
4397
- meta?: Record<string, unknown> | undefined;
4398
- }[];
4399
- }>;
4400
- 404: z.ZodObject<{
4401
- errors: z.ZodArray<z.ZodObject<{
4402
- status: z.ZodString;
4403
- title: z.ZodString;
4404
- detail: z.ZodOptional<z.ZodString>;
4405
- meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4406
- }, "strip", z.ZodTypeAny, {
4407
- status: string;
4408
- title: string;
4409
- detail?: string | undefined;
4410
- meta?: Record<string, unknown> | undefined;
4411
- }, {
4412
- status: string;
4413
- title: string;
4414
- detail?: string | undefined;
4415
- meta?: Record<string, unknown> | undefined;
4416
- }>, "many">;
4417
- }, "strip", z.ZodTypeAny, {
4418
- errors: {
4419
- status: string;
4420
- title: string;
4421
- detail?: string | undefined;
4422
- meta?: Record<string, unknown> | undefined;
4423
- }[];
4424
- }, {
4425
- errors: {
4426
- status: string;
4427
- title: string;
4428
- detail?: string | undefined;
4429
- meta?: Record<string, unknown> | undefined;
4430
- }[];
4431
- }>;
4432
- };
4433
- };
4434
- updateCommunicationSettings: {
4435
- summary: "Update user communication preferences";
4436
- method: "PUT";
4437
- body: z.ZodObject<{
4438
- emailNotifications: z.ZodOptional<z.ZodBoolean>;
4439
- smsNotifications: z.ZodOptional<z.ZodBoolean>;
4440
- pushNotifications: z.ZodOptional<z.ZodBoolean>;
4441
- projectUpdates: z.ZodOptional<z.ZodBoolean>;
4442
- taskAssignments: z.ZodOptional<z.ZodBoolean>;
4443
- documentSharing: z.ZodOptional<z.ZodBoolean>;
4444
- messageReplies: z.ZodOptional<z.ZodBoolean>;
4445
- systemAlerts: z.ZodOptional<z.ZodBoolean>;
4446
- digestFrequency: z.ZodOptional<z.ZodEnum<["IMMEDIATE", "HOURLY", "DAILY", "WEEKLY", "DISABLED"]>>;
4447
- quietHoursStart: z.ZodOptional<z.ZodString>;
4448
- quietHoursEnd: z.ZodOptional<z.ZodString>;
4449
- }, "strip", z.ZodTypeAny, {
4450
- emailNotifications?: boolean | undefined;
4451
- smsNotifications?: boolean | undefined;
4452
- pushNotifications?: boolean | undefined;
4453
- projectUpdates?: boolean | undefined;
4454
- taskAssignments?: boolean | undefined;
4455
- documentSharing?: boolean | undefined;
4456
- messageReplies?: boolean | undefined;
4457
- systemAlerts?: boolean | undefined;
4458
- digestFrequency?: "IMMEDIATE" | "HOURLY" | "DAILY" | "WEEKLY" | "DISABLED" | undefined;
4459
- quietHoursStart?: string | undefined;
4460
- quietHoursEnd?: string | undefined;
4461
- }, {
4462
- emailNotifications?: boolean | undefined;
4463
- smsNotifications?: boolean | undefined;
4464
- pushNotifications?: boolean | undefined;
4465
- projectUpdates?: boolean | undefined;
4466
- taskAssignments?: boolean | undefined;
4467
- documentSharing?: boolean | undefined;
4468
- messageReplies?: boolean | undefined;
4469
- systemAlerts?: boolean | undefined;
4470
- digestFrequency?: "IMMEDIATE" | "HOURLY" | "DAILY" | "WEEKLY" | "DISABLED" | undefined;
4471
- quietHoursStart?: string | undefined;
4472
- quietHoursEnd?: string | undefined;
4473
- }>;
4474
- path: "/communication/settings";
4475
- responses: {
4476
- 200: z.ZodObject<{
4477
- data: z.ZodObject<{
4478
- type: z.ZodLiteral<"communication-settings">;
4479
- id: z.ZodString;
4480
- attributes: z.ZodObject<{
4481
- id: z.ZodString;
4482
- userId: z.ZodString;
4483
- emailNotifications: z.ZodDefault<z.ZodBoolean>;
4484
- smsNotifications: z.ZodDefault<z.ZodBoolean>;
4485
- pushNotifications: z.ZodDefault<z.ZodBoolean>;
4486
- projectUpdates: z.ZodDefault<z.ZodBoolean>;
4487
- taskAssignments: z.ZodDefault<z.ZodBoolean>;
4488
- documentSharing: z.ZodDefault<z.ZodBoolean>;
4489
- messageReplies: z.ZodDefault<z.ZodBoolean>;
4490
- systemAlerts: z.ZodDefault<z.ZodBoolean>;
4491
- digestFrequency: z.ZodDefault<z.ZodEnum<["IMMEDIATE", "HOURLY", "DAILY", "WEEKLY", "DISABLED"]>>;
4492
- quietHoursStart: z.ZodOptional<z.ZodString>;
4493
- quietHoursEnd: z.ZodOptional<z.ZodString>;
4494
- createdAt: z.ZodString;
4495
- updatedAt: z.ZodString;
4496
- }, "strip", z.ZodTypeAny, {
4497
- id: string;
4498
- createdAt: string;
4499
- updatedAt: string;
4500
- userId: string;
4501
- emailNotifications: boolean;
4502
- smsNotifications: boolean;
4503
- pushNotifications: boolean;
4504
- projectUpdates: boolean;
4505
- taskAssignments: boolean;
4506
- documentSharing: boolean;
4507
- messageReplies: boolean;
4508
- systemAlerts: boolean;
4509
- digestFrequency: "IMMEDIATE" | "HOURLY" | "DAILY" | "WEEKLY" | "DISABLED";
4510
- quietHoursStart?: string | undefined;
4511
- quietHoursEnd?: string | undefined;
4512
- }, {
4513
- id: string;
4514
- createdAt: string;
4515
- updatedAt: string;
4516
- userId: string;
4517
- emailNotifications?: boolean | undefined;
4518
- smsNotifications?: boolean | undefined;
4519
- pushNotifications?: boolean | undefined;
4520
- projectUpdates?: boolean | undefined;
4521
- taskAssignments?: boolean | undefined;
4522
- documentSharing?: boolean | undefined;
4523
- messageReplies?: boolean | undefined;
4524
- systemAlerts?: boolean | undefined;
4525
- digestFrequency?: "IMMEDIATE" | "HOURLY" | "DAILY" | "WEEKLY" | "DISABLED" | undefined;
4526
- quietHoursStart?: string | undefined;
4527
- quietHoursEnd?: string | undefined;
4528
- }>;
4529
- }, "strip", z.ZodTypeAny, {
4530
- id: string;
4531
- type: "communication-settings";
4532
- attributes: {
4533
- id: string;
4534
- createdAt: string;
4535
- updatedAt: string;
4536
- userId: string;
4537
- emailNotifications: boolean;
4538
- smsNotifications: boolean;
4539
- pushNotifications: boolean;
4540
- projectUpdates: boolean;
4541
- taskAssignments: boolean;
4542
- documentSharing: boolean;
4543
- messageReplies: boolean;
4544
- systemAlerts: boolean;
4545
- digestFrequency: "IMMEDIATE" | "HOURLY" | "DAILY" | "WEEKLY" | "DISABLED";
4546
- quietHoursStart?: string | undefined;
4547
- quietHoursEnd?: string | undefined;
4548
- };
4549
- }, {
4550
- id: string;
4551
- type: "communication-settings";
4552
- attributes: {
4553
- id: string;
4554
- createdAt: string;
4555
- updatedAt: string;
4556
- userId: string;
4557
- emailNotifications?: boolean | undefined;
4558
- smsNotifications?: boolean | undefined;
4559
- pushNotifications?: boolean | undefined;
4560
- projectUpdates?: boolean | undefined;
4561
- taskAssignments?: boolean | undefined;
4562
- documentSharing?: boolean | undefined;
4563
- messageReplies?: boolean | undefined;
4564
- systemAlerts?: boolean | undefined;
4565
- digestFrequency?: "IMMEDIATE" | "HOURLY" | "DAILY" | "WEEKLY" | "DISABLED" | undefined;
4566
- quietHoursStart?: string | undefined;
4567
- quietHoursEnd?: string | undefined;
4568
- };
4569
- }>;
4570
- meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4571
- links: z.ZodOptional<z.ZodObject<{
4572
- self: z.ZodString;
4573
- first: z.ZodOptional<z.ZodString>;
4574
- last: z.ZodOptional<z.ZodString>;
4575
- prev: z.ZodOptional<z.ZodString>;
4576
- next: z.ZodOptional<z.ZodString>;
4577
- }, "strip", z.ZodTypeAny, {
4578
- self: string;
4579
- first?: string | undefined;
4580
- last?: string | undefined;
4581
- prev?: string | undefined;
4582
- next?: string | undefined;
4583
- }, {
4584
- self: string;
4585
- first?: string | undefined;
4586
- last?: string | undefined;
4587
- prev?: string | undefined;
4588
- next?: string | undefined;
4589
- }>>;
4590
- errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
4591
- status: z.ZodString;
4592
- title: z.ZodString;
4593
- detail: z.ZodOptional<z.ZodString>;
4594
- meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4595
- }, "strip", z.ZodTypeAny, {
4596
- status: string;
4597
- title: string;
4598
- detail?: string | undefined;
4599
- meta?: Record<string, unknown> | undefined;
4600
- }, {
4601
- status: string;
4602
- title: string;
4603
- detail?: string | undefined;
4604
- meta?: Record<string, unknown> | undefined;
4605
- }>, "many">>;
4606
- }, "strip", z.ZodTypeAny, {
4607
- data: {
4608
- id: string;
4609
- type: "communication-settings";
4610
- attributes: {
4611
- id: string;
4612
- createdAt: string;
4613
- updatedAt: string;
4614
- userId: string;
4615
- emailNotifications: boolean;
4616
- smsNotifications: boolean;
4617
- pushNotifications: boolean;
4618
- projectUpdates: boolean;
4619
- taskAssignments: boolean;
4620
- documentSharing: boolean;
4621
- messageReplies: boolean;
4622
- systemAlerts: boolean;
4623
- digestFrequency: "IMMEDIATE" | "HOURLY" | "DAILY" | "WEEKLY" | "DISABLED";
4624
- quietHoursStart?: string | undefined;
4625
- quietHoursEnd?: string | undefined;
4626
- };
4627
- };
4628
- meta?: Record<string, unknown> | undefined;
4629
- links?: {
4630
- self: string;
4631
- first?: string | undefined;
4632
- last?: string | undefined;
4633
- prev?: string | undefined;
4634
- next?: string | undefined;
4635
- } | undefined;
4636
- errors?: {
4637
- status: string;
4638
- title: string;
4639
- detail?: string | undefined;
4640
- meta?: Record<string, unknown> | undefined;
4641
- }[] | undefined;
4642
- }, {
4643
- data: {
4644
- id: string;
4645
- type: "communication-settings";
4646
- attributes: {
4647
- id: string;
4648
- createdAt: string;
4649
- updatedAt: string;
4650
- userId: string;
4651
- emailNotifications?: boolean | undefined;
4652
- smsNotifications?: boolean | undefined;
4653
- pushNotifications?: boolean | undefined;
4654
- projectUpdates?: boolean | undefined;
4655
- taskAssignments?: boolean | undefined;
4656
- documentSharing?: boolean | undefined;
4657
- messageReplies?: boolean | undefined;
4658
- systemAlerts?: boolean | undefined;
4659
- digestFrequency?: "IMMEDIATE" | "HOURLY" | "DAILY" | "WEEKLY" | "DISABLED" | undefined;
4660
- quietHoursStart?: string | undefined;
4661
- quietHoursEnd?: string | undefined;
4662
- };
4663
- };
4664
- meta?: Record<string, unknown> | undefined;
4665
- links?: {
4666
- self: string;
4667
- first?: string | undefined;
4668
- last?: string | undefined;
4669
- prev?: string | undefined;
4670
- next?: string | undefined;
4671
- } | undefined;
4672
- errors?: {
4673
- status: string;
4674
- title: string;
4675
- detail?: string | undefined;
4676
- meta?: Record<string, unknown> | undefined;
4677
- }[] | undefined;
4678
- }>;
4679
- 400: z.ZodObject<{
4680
- errors: z.ZodArray<z.ZodObject<{
4681
- status: z.ZodString;
4682
- title: z.ZodString;
4683
- detail: z.ZodOptional<z.ZodString>;
4684
- meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4685
- }, "strip", z.ZodTypeAny, {
4686
- status: string;
4687
- title: string;
4688
- detail?: string | undefined;
4689
- meta?: Record<string, unknown> | undefined;
4690
- }, {
4691
- status: string;
4692
- title: string;
4693
- detail?: string | undefined;
4694
- meta?: Record<string, unknown> | undefined;
4695
- }>, "many">;
4696
- }, "strip", z.ZodTypeAny, {
4697
- errors: {
4698
- status: string;
4699
- title: string;
4700
- detail?: string | undefined;
4701
- meta?: Record<string, unknown> | undefined;
4702
- }[];
4703
- }, {
4704
- errors: {
4705
- status: string;
4706
- title: string;
4707
- detail?: string | undefined;
4708
- meta?: Record<string, unknown> | undefined;
4709
- }[];
4710
- }>;
4711
- 403: z.ZodObject<{
4712
- errors: z.ZodArray<z.ZodObject<{
4713
- status: z.ZodString;
4714
- title: z.ZodString;
4715
- detail: z.ZodOptional<z.ZodString>;
4716
- meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4717
- }, "strip", z.ZodTypeAny, {
4718
- status: string;
4719
- title: string;
4720
- detail?: string | undefined;
4721
- meta?: Record<string, unknown> | undefined;
4722
- }, {
4723
- status: string;
4724
- title: string;
4725
- detail?: string | undefined;
4726
- meta?: Record<string, unknown> | undefined;
4727
- }>, "many">;
4728
- }, "strip", z.ZodTypeAny, {
4729
- errors: {
4730
- status: string;
4731
- title: string;
4732
- detail?: string | undefined;
4733
- meta?: Record<string, unknown> | undefined;
4734
- }[];
4735
- }, {
4736
- errors: {
4737
- status: string;
4738
- title: string;
4739
- detail?: string | undefined;
4740
- meta?: Record<string, unknown> | undefined;
4741
- }[];
4742
- }>;
4743
- };
4744
- };
4745
- getProjectMessages: {
4746
- pathParams: z.ZodObject<{
4747
- projectId: z.ZodString;
4748
- }, "strip", z.ZodTypeAny, {
4749
- projectId: string;
4750
- }, {
4751
- projectId: string;
4752
- }>;
4753
- query: z.ZodObject<{
4754
- type: z.ZodOptional<z.ZodEnum<["GENERAL", "ANNOUNCEMENT", "URGENT", "STATUS_UPDATE"]>>;
4755
- page: z.ZodDefault<z.ZodNumber>;
4756
- limit: z.ZodDefault<z.ZodNumber>;
4757
- }, "strip", z.ZodTypeAny, {
4758
- page: number;
4759
- limit: number;
4760
- type?: "URGENT" | "GENERAL" | "ANNOUNCEMENT" | "STATUS_UPDATE" | undefined;
4761
- }, {
4762
- type?: "URGENT" | "GENERAL" | "ANNOUNCEMENT" | "STATUS_UPDATE" | undefined;
4763
- page?: number | undefined;
4764
- limit?: number | undefined;
4765
- }>;
4766
- summary: "Get messages for a specific project";
4767
- method: "GET";
4768
- path: "/projects/:projectId/messages";
4769
- responses: {
4770
- 200: z.ZodObject<{
4771
- data: z.ZodArray<z.ZodObject<{
4772
- type: z.ZodLiteral<"messages">;
4773
- id: z.ZodString;
4774
- attributes: z.ZodObject<{
4775
- id: z.ZodString;
4776
- subject: z.ZodOptional<z.ZodString>;
4777
- content: z.ZodString;
4778
- messageType: z.ZodEnum<["EMAIL", "SMS", "PUSH_NOTIFICATION", "SYSTEM"]>;
4779
- priority: z.ZodDefault<z.ZodEnum<["LOW", "MEDIUM", "HIGH", "URGENT"]>>;
4780
- status: z.ZodEnum<["DRAFT", "SENT", "DELIVERED", "READ", "FAILED"]>;
4781
- senderId: z.ZodString;
4782
- sender: z.ZodOptional<z.ZodObject<{
4783
- id: z.ZodString;
4784
- firstName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4785
- lastName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4786
- email: z.ZodOptional<z.ZodString>;
4787
- name: z.ZodOptional<z.ZodString>;
4788
- avatar: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4789
- }, "strip", z.ZodTypeAny, {
4790
- id: string;
4791
- firstName?: string | null | undefined;
4792
- lastName?: string | null | undefined;
4793
- email?: string | undefined;
4794
- name?: string | undefined;
4795
- avatar?: string | null | undefined;
4796
- }, {
4797
- id: string;
4798
- firstName?: string | null | undefined;
4799
- lastName?: string | null | undefined;
4800
- email?: string | undefined;
4801
- name?: string | undefined;
4802
- avatar?: string | null | undefined;
4803
- }>>;
4804
- recipients: z.ZodArray<z.ZodString, "many">;
4805
- threadId: z.ZodOptional<z.ZodString>;
4806
- parentMessageId: z.ZodOptional<z.ZodString>;
4807
- sentAt: z.ZodOptional<z.ZodString>;
4808
- deliveredAt: z.ZodOptional<z.ZodString>;
4809
- readAt: z.ZodOptional<z.ZodString>;
4810
- isRead: z.ZodDefault<z.ZodBoolean>;
4811
- createdAt: z.ZodString;
4812
- updatedAt: z.ZodString;
4813
- projectId: z.ZodOptional<z.ZodString>;
4814
- attachments: z.ZodDefault<z.ZodArray<z.ZodObject<{
4815
- id: z.ZodString;
4816
- filename: z.ZodString;
4817
- url: z.ZodString;
4818
- size: z.ZodNumber;
4819
- }, "strip", z.ZodTypeAny, {
4820
- id: string;
4821
- size: number;
4822
- url: string;
4823
- filename: string;
4824
- }, {
4825
- id: string;
4826
- size: number;
4827
- url: string;
4828
- filename: string;
4829
- }>, "many">>;
4830
- }, "strip", z.ZodTypeAny, {
4831
- id: string;
4832
- createdAt: string;
4833
- updatedAt: string;
4834
- status: "FAILED" | "DRAFT" | "SENT" | "DELIVERED" | "READ";
4835
- attachments: {
4836
- id: string;
4837
- size: number;
4838
- url: string;
4839
- filename: string;
4840
- }[];
4841
- content: string;
4842
- messageType: "EMAIL" | "SMS" | "PUSH_NOTIFICATION" | "SYSTEM";
4843
- priority: "LOW" | "MEDIUM" | "HIGH" | "URGENT";
4844
- senderId: string;
4845
- recipients: string[];
4846
- isRead: boolean;
4847
- projectId?: string | undefined;
4848
- subject?: string | undefined;
4849
- sender?: {
4850
- id: string;
4851
- firstName?: string | null | undefined;
4852
- lastName?: string | null | undefined;
4853
- email?: string | undefined;
4854
- name?: string | undefined;
4855
- avatar?: string | null | undefined;
4856
- } | undefined;
4857
- threadId?: string | undefined;
4858
- parentMessageId?: string | undefined;
4859
- sentAt?: string | undefined;
4860
- deliveredAt?: string | undefined;
4861
- readAt?: string | undefined;
4862
- }, {
4863
- id: string;
4864
- createdAt: string;
4865
- updatedAt: string;
4866
- status: "FAILED" | "DRAFT" | "SENT" | "DELIVERED" | "READ";
4867
- content: string;
4868
- messageType: "EMAIL" | "SMS" | "PUSH_NOTIFICATION" | "SYSTEM";
4869
- senderId: string;
4870
- recipients: string[];
4871
- projectId?: string | undefined;
4872
- attachments?: {
4873
- id: string;
4874
- size: number;
4875
- url: string;
4876
- filename: string;
4877
- }[] | undefined;
4878
- subject?: string | undefined;
4879
- priority?: "LOW" | "MEDIUM" | "HIGH" | "URGENT" | undefined;
4880
- sender?: {
4881
- id: string;
4882
- firstName?: string | null | undefined;
4883
- lastName?: string | null | undefined;
4884
- email?: string | undefined;
4885
- name?: string | undefined;
4886
- avatar?: string | null | undefined;
4887
- } | undefined;
4888
- threadId?: string | undefined;
4889
- parentMessageId?: string | undefined;
4890
- sentAt?: string | undefined;
4891
- deliveredAt?: string | undefined;
4892
- readAt?: string | undefined;
4893
- isRead?: boolean | undefined;
4894
- }>;
4895
- }, "strip", z.ZodTypeAny, {
4896
- id: string;
4897
- type: "messages";
4898
- attributes: {
4899
- id: string;
4900
- createdAt: string;
4901
- updatedAt: string;
4902
- status: "FAILED" | "DRAFT" | "SENT" | "DELIVERED" | "READ";
4903
- attachments: {
4904
- id: string;
4905
- size: number;
4906
- url: string;
4907
- filename: string;
4908
- }[];
4909
- content: string;
4910
- messageType: "EMAIL" | "SMS" | "PUSH_NOTIFICATION" | "SYSTEM";
4911
- priority: "LOW" | "MEDIUM" | "HIGH" | "URGENT";
4912
- senderId: string;
4913
- recipients: string[];
4914
- isRead: boolean;
4915
- projectId?: string | undefined;
4916
- subject?: string | undefined;
4917
- sender?: {
4918
- id: string;
4919
- firstName?: string | null | undefined;
4920
- lastName?: string | null | undefined;
4921
- email?: string | undefined;
4922
- name?: string | undefined;
4923
- avatar?: string | null | undefined;
4924
- } | undefined;
4925
- threadId?: string | undefined;
4926
- parentMessageId?: string | undefined;
4927
- sentAt?: string | undefined;
4928
- deliveredAt?: string | undefined;
4929
- readAt?: string | undefined;
4930
- };
4931
- }, {
4932
- id: string;
4933
- type: "messages";
4934
- attributes: {
4935
- id: string;
4936
- createdAt: string;
4937
- updatedAt: string;
4938
- status: "FAILED" | "DRAFT" | "SENT" | "DELIVERED" | "READ";
4939
- content: string;
4940
- messageType: "EMAIL" | "SMS" | "PUSH_NOTIFICATION" | "SYSTEM";
4941
- senderId: string;
4942
- recipients: string[];
4943
- projectId?: string | undefined;
4944
- attachments?: {
4945
- id: string;
4946
- size: number;
4947
- url: string;
4948
- filename: string;
4949
- }[] | undefined;
4950
- subject?: string | undefined;
4951
- priority?: "LOW" | "MEDIUM" | "HIGH" | "URGENT" | undefined;
4952
- sender?: {
4953
- id: string;
4954
- firstName?: string | null | undefined;
4955
- lastName?: string | null | undefined;
4956
- email?: string | undefined;
4957
- name?: string | undefined;
4958
- avatar?: string | null | undefined;
4959
- } | undefined;
4960
- threadId?: string | undefined;
4961
- parentMessageId?: string | undefined;
4962
- sentAt?: string | undefined;
4963
- deliveredAt?: string | undefined;
4964
- readAt?: string | undefined;
4965
- isRead?: boolean | undefined;
4966
- };
4967
- }>, "many">;
4968
- meta: z.ZodOptional<z.ZodObject<{
4969
- total: z.ZodOptional<z.ZodNumber>;
4970
- page: z.ZodOptional<z.ZodNumber>;
4971
- size: z.ZodOptional<z.ZodNumber>;
4972
- pages: z.ZodOptional<z.ZodNumber>;
4973
- hasNextPage: z.ZodOptional<z.ZodBoolean>;
4974
- hasPreviousPage: z.ZodOptional<z.ZodBoolean>;
4975
- }, "strip", z.ZodTypeAny, {
4976
- page?: number | undefined;
4977
- total?: number | undefined;
4978
- size?: number | undefined;
4979
- pages?: number | undefined;
4980
- hasNextPage?: boolean | undefined;
4981
- hasPreviousPage?: boolean | undefined;
4982
- }, {
4983
- page?: number | undefined;
4984
- total?: number | undefined;
4985
- size?: number | undefined;
4986
- pages?: number | undefined;
4987
- hasNextPage?: boolean | undefined;
4988
- hasPreviousPage?: boolean | undefined;
4989
- }>>;
4990
- links: z.ZodOptional<z.ZodObject<{
4991
- self: z.ZodString;
4992
- first: z.ZodOptional<z.ZodString>;
4993
- last: z.ZodOptional<z.ZodString>;
4994
- prev: z.ZodOptional<z.ZodString>;
4995
- next: z.ZodOptional<z.ZodString>;
4996
- }, "strip", z.ZodTypeAny, {
4997
- self: string;
4998
- first?: string | undefined;
4999
- last?: string | undefined;
5000
- prev?: string | undefined;
5001
- next?: string | undefined;
5002
- }, {
5003
- self: string;
5004
- first?: string | undefined;
5005
- last?: string | undefined;
5006
- prev?: string | undefined;
5007
- next?: string | undefined;
5008
- }>>;
5009
- }, "strip", z.ZodTypeAny, {
5010
- data: {
5011
- id: string;
5012
- type: "messages";
5013
- attributes: {
5014
- id: string;
5015
- createdAt: string;
5016
- updatedAt: string;
5017
- status: "FAILED" | "DRAFT" | "SENT" | "DELIVERED" | "READ";
5018
- attachments: {
5019
- id: string;
5020
- size: number;
5021
- url: string;
5022
- filename: string;
5023
- }[];
5024
- content: string;
5025
- messageType: "EMAIL" | "SMS" | "PUSH_NOTIFICATION" | "SYSTEM";
5026
- priority: "LOW" | "MEDIUM" | "HIGH" | "URGENT";
5027
- senderId: string;
5028
- recipients: string[];
5029
- isRead: boolean;
5030
- projectId?: string | undefined;
5031
- subject?: string | undefined;
5032
- sender?: {
5033
- id: string;
5034
- firstName?: string | null | undefined;
5035
- lastName?: string | null | undefined;
5036
- email?: string | undefined;
5037
- name?: string | undefined;
5038
- avatar?: string | null | undefined;
5039
- } | undefined;
5040
- threadId?: string | undefined;
5041
- parentMessageId?: string | undefined;
5042
- sentAt?: string | undefined;
5043
- deliveredAt?: string | undefined;
5044
- readAt?: string | undefined;
5045
- };
5046
- }[];
5047
- meta?: {
5048
- page?: number | undefined;
5049
- total?: number | undefined;
5050
- size?: number | undefined;
5051
- pages?: number | undefined;
5052
- hasNextPage?: boolean | undefined;
5053
- hasPreviousPage?: boolean | undefined;
5054
- } | undefined;
5055
- links?: {
5056
- self: string;
5057
- first?: string | undefined;
5058
- last?: string | undefined;
5059
- prev?: string | undefined;
5060
- next?: string | undefined;
5061
- } | undefined;
5062
- }, {
5063
- data: {
5064
- id: string;
5065
- type: "messages";
5066
- attributes: {
5067
- id: string;
5068
- createdAt: string;
5069
- updatedAt: string;
5070
- status: "FAILED" | "DRAFT" | "SENT" | "DELIVERED" | "READ";
5071
- content: string;
5072
- messageType: "EMAIL" | "SMS" | "PUSH_NOTIFICATION" | "SYSTEM";
5073
- senderId: string;
5074
- recipients: string[];
5075
- projectId?: string | undefined;
5076
- attachments?: {
5077
- id: string;
5078
- size: number;
5079
- url: string;
5080
- filename: string;
5081
- }[] | undefined;
5082
- subject?: string | undefined;
5083
- priority?: "LOW" | "MEDIUM" | "HIGH" | "URGENT" | undefined;
5084
- sender?: {
5085
- id: string;
5086
- firstName?: string | null | undefined;
5087
- lastName?: string | null | undefined;
5088
- email?: string | undefined;
5089
- name?: string | undefined;
5090
- avatar?: string | null | undefined;
5091
- } | undefined;
5092
- threadId?: string | undefined;
5093
- parentMessageId?: string | undefined;
5094
- sentAt?: string | undefined;
5095
- deliveredAt?: string | undefined;
5096
- readAt?: string | undefined;
5097
- isRead?: boolean | undefined;
5098
- };
5099
- }[];
5100
- meta?: {
5101
- page?: number | undefined;
5102
- total?: number | undefined;
5103
- size?: number | undefined;
5104
- pages?: number | undefined;
5105
- hasNextPage?: boolean | undefined;
5106
- hasPreviousPage?: boolean | undefined;
5107
- } | undefined;
5108
- links?: {
5109
- self: string;
5110
- first?: string | undefined;
5111
- last?: string | undefined;
5112
- prev?: string | undefined;
5113
- next?: string | undefined;
5114
- } | undefined;
5115
- }>;
5116
- 403: z.ZodObject<{
5117
- errors: z.ZodArray<z.ZodObject<{
5118
- status: z.ZodString;
5119
- title: z.ZodString;
5120
- detail: z.ZodOptional<z.ZodString>;
5121
- meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3969
+ markedCount: z.ZodNumber;
5122
3970
  }, "strip", z.ZodTypeAny, {
5123
- status: string;
5124
- title: string;
5125
- detail?: string | undefined;
5126
- meta?: Record<string, unknown> | undefined;
3971
+ markedCount: number;
5127
3972
  }, {
5128
- status: string;
5129
- title: string;
5130
- detail?: string | undefined;
5131
- meta?: Record<string, unknown> | undefined;
5132
- }>, "many">;
3973
+ markedCount: number;
3974
+ }>;
5133
3975
  }, "strip", z.ZodTypeAny, {
5134
- errors: {
5135
- status: string;
5136
- title: string;
5137
- detail?: string | undefined;
5138
- meta?: Record<string, unknown> | undefined;
5139
- }[];
3976
+ data: {
3977
+ markedCount: number;
3978
+ };
5140
3979
  }, {
5141
- errors: {
5142
- status: string;
5143
- title: string;
5144
- detail?: string | undefined;
5145
- meta?: Record<string, unknown> | undefined;
5146
- }[];
3980
+ data: {
3981
+ markedCount: number;
3982
+ };
5147
3983
  }>;
5148
- 404: z.ZodObject<{
3984
+ 403: z.ZodObject<{
5149
3985
  errors: z.ZodArray<z.ZodObject<{
5150
3986
  status: z.ZodString;
5151
3987
  title: z.ZodString;
@@ -5179,7 +4015,7 @@ export declare const communicationContract: {
5179
4015
  }>;
5180
4016
  };
5181
4017
  };
5182
- sendProjectMessage: {
4018
+ getProjectMessages: {
5183
4019
  pathParams: z.ZodObject<{
5184
4020
  projectId: z.ZodString;
5185
4021
  }, "strip", z.ZodTypeAny, {
@@ -5187,40 +4023,25 @@ export declare const communicationContract: {
5187
4023
  }, {
5188
4024
  projectId: string;
5189
4025
  }>;
5190
- summary: "Send a message related to a project";
5191
- method: "POST";
5192
- body: z.ZodObject<{
5193
- subject: z.ZodOptional<z.ZodString>;
5194
- content: z.ZodString;
5195
- messageType: z.ZodDefault<z.ZodEnum<["EMAIL", "SMS", "PUSH_NOTIFICATION", "SYSTEM"]>>;
5196
- priority: z.ZodDefault<z.ZodEnum<["LOW", "MEDIUM", "HIGH", "URGENT"]>>;
5197
- recipientId: z.ZodString;
5198
- threadId: z.ZodOptional<z.ZodString>;
5199
- parentMessageId: z.ZodOptional<z.ZodString>;
5200
- projectId: z.ZodOptional<z.ZodString>;
4026
+ query: z.ZodObject<{
4027
+ type: z.ZodOptional<z.ZodEnum<["GENERAL", "ANNOUNCEMENT", "URGENT", "STATUS_UPDATE"]>>;
4028
+ page: z.ZodDefault<z.ZodNumber>;
4029
+ limit: z.ZodDefault<z.ZodNumber>;
5201
4030
  }, "strip", z.ZodTypeAny, {
5202
- content: string;
5203
- messageType: "EMAIL" | "SMS" | "PUSH_NOTIFICATION" | "SYSTEM";
5204
- priority: "LOW" | "MEDIUM" | "HIGH" | "URGENT";
5205
- recipientId: string;
5206
- projectId?: string | undefined;
5207
- subject?: string | undefined;
5208
- threadId?: string | undefined;
5209
- parentMessageId?: string | undefined;
4031
+ page: number;
4032
+ limit: number;
4033
+ type?: "URGENT" | "GENERAL" | "ANNOUNCEMENT" | "STATUS_UPDATE" | undefined;
5210
4034
  }, {
5211
- content: string;
5212
- recipientId: string;
5213
- projectId?: string | undefined;
5214
- subject?: string | undefined;
5215
- messageType?: "EMAIL" | "SMS" | "PUSH_NOTIFICATION" | "SYSTEM" | undefined;
5216
- priority?: "LOW" | "MEDIUM" | "HIGH" | "URGENT" | undefined;
5217
- threadId?: string | undefined;
5218
- parentMessageId?: string | undefined;
4035
+ type?: "URGENT" | "GENERAL" | "ANNOUNCEMENT" | "STATUS_UPDATE" | undefined;
4036
+ page?: number | undefined;
4037
+ limit?: number | undefined;
5219
4038
  }>;
4039
+ summary: "Get messages for a specific project";
4040
+ method: "GET";
5220
4041
  path: "/projects/:projectId/messages";
5221
4042
  responses: {
5222
- 201: z.ZodObject<{
5223
- data: z.ZodObject<{
4043
+ 200: z.ZodObject<{
4044
+ data: z.ZodArray<z.ZodObject<{
5224
4045
  type: z.ZodLiteral<"messages">;
5225
4046
  id: z.ZodString;
5226
4047
  attributes: z.ZodObject<{
@@ -5254,6 +4075,28 @@ export declare const communicationContract: {
5254
4075
  avatar?: string | null | undefined;
5255
4076
  }>>;
5256
4077
  recipients: z.ZodArray<z.ZodString, "many">;
4078
+ recipientPeople: z.ZodOptional<z.ZodArray<z.ZodObject<{
4079
+ id: z.ZodString;
4080
+ firstName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4081
+ lastName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4082
+ email: z.ZodOptional<z.ZodString>;
4083
+ name: z.ZodOptional<z.ZodString>;
4084
+ avatar: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4085
+ }, "strip", z.ZodTypeAny, {
4086
+ id: string;
4087
+ firstName?: string | null | undefined;
4088
+ lastName?: string | null | undefined;
4089
+ email?: string | undefined;
4090
+ name?: string | undefined;
4091
+ avatar?: string | null | undefined;
4092
+ }, {
4093
+ id: string;
4094
+ firstName?: string | null | undefined;
4095
+ lastName?: string | null | undefined;
4096
+ email?: string | undefined;
4097
+ name?: string | undefined;
4098
+ avatar?: string | null | undefined;
4099
+ }>, "many">>;
5257
4100
  threadId: z.ZodOptional<z.ZodString>;
5258
4101
  parentMessageId: z.ZodOptional<z.ZodString>;
5259
4102
  sentAt: z.ZodOptional<z.ZodString>;
@@ -5306,6 +4149,14 @@ export declare const communicationContract: {
5306
4149
  name?: string | undefined;
5307
4150
  avatar?: string | null | undefined;
5308
4151
  } | undefined;
4152
+ recipientPeople?: {
4153
+ id: string;
4154
+ firstName?: string | null | undefined;
4155
+ lastName?: string | null | undefined;
4156
+ email?: string | undefined;
4157
+ name?: string | undefined;
4158
+ avatar?: string | null | undefined;
4159
+ }[] | undefined;
5309
4160
  threadId?: string | undefined;
5310
4161
  parentMessageId?: string | undefined;
5311
4162
  sentAt?: string | undefined;
@@ -5337,6 +4188,14 @@ export declare const communicationContract: {
5337
4188
  name?: string | undefined;
5338
4189
  avatar?: string | null | undefined;
5339
4190
  } | undefined;
4191
+ recipientPeople?: {
4192
+ id: string;
4193
+ firstName?: string | null | undefined;
4194
+ lastName?: string | null | undefined;
4195
+ email?: string | undefined;
4196
+ name?: string | undefined;
4197
+ avatar?: string | null | undefined;
4198
+ }[] | undefined;
5340
4199
  threadId?: string | undefined;
5341
4200
  parentMessageId?: string | undefined;
5342
4201
  sentAt?: string | undefined;
@@ -5374,6 +4233,14 @@ export declare const communicationContract: {
5374
4233
  name?: string | undefined;
5375
4234
  avatar?: string | null | undefined;
5376
4235
  } | undefined;
4236
+ recipientPeople?: {
4237
+ id: string;
4238
+ firstName?: string | null | undefined;
4239
+ lastName?: string | null | undefined;
4240
+ email?: string | undefined;
4241
+ name?: string | undefined;
4242
+ avatar?: string | null | undefined;
4243
+ }[] | undefined;
5377
4244
  threadId?: string | undefined;
5378
4245
  parentMessageId?: string | undefined;
5379
4246
  sentAt?: string | undefined;
@@ -5409,6 +4276,14 @@ export declare const communicationContract: {
5409
4276
  name?: string | undefined;
5410
4277
  avatar?: string | null | undefined;
5411
4278
  } | undefined;
4279
+ recipientPeople?: {
4280
+ id: string;
4281
+ firstName?: string | null | undefined;
4282
+ lastName?: string | null | undefined;
4283
+ email?: string | undefined;
4284
+ name?: string | undefined;
4285
+ avatar?: string | null | undefined;
4286
+ }[] | undefined;
5412
4287
  threadId?: string | undefined;
5413
4288
  parentMessageId?: string | undefined;
5414
4289
  sentAt?: string | undefined;
@@ -5416,8 +4291,29 @@ export declare const communicationContract: {
5416
4291
  readAt?: string | undefined;
5417
4292
  isRead?: boolean | undefined;
5418
4293
  };
5419
- }>;
5420
- meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4294
+ }>, "many">;
4295
+ meta: z.ZodOptional<z.ZodObject<{
4296
+ total: z.ZodOptional<z.ZodNumber>;
4297
+ page: z.ZodOptional<z.ZodNumber>;
4298
+ size: z.ZodOptional<z.ZodNumber>;
4299
+ pages: z.ZodOptional<z.ZodNumber>;
4300
+ hasNextPage: z.ZodOptional<z.ZodBoolean>;
4301
+ hasPreviousPage: z.ZodOptional<z.ZodBoolean>;
4302
+ }, "strip", z.ZodTypeAny, {
4303
+ page?: number | undefined;
4304
+ total?: number | undefined;
4305
+ size?: number | undefined;
4306
+ pages?: number | undefined;
4307
+ hasNextPage?: boolean | undefined;
4308
+ hasPreviousPage?: boolean | undefined;
4309
+ }, {
4310
+ page?: number | undefined;
4311
+ total?: number | undefined;
4312
+ size?: number | undefined;
4313
+ pages?: number | undefined;
4314
+ hasNextPage?: boolean | undefined;
4315
+ hasPreviousPage?: boolean | undefined;
4316
+ }>>;
5421
4317
  links: z.ZodOptional<z.ZodObject<{
5422
4318
  self: z.ZodString;
5423
4319
  first: z.ZodOptional<z.ZodString>;
@@ -5437,22 +4333,6 @@ export declare const communicationContract: {
5437
4333
  prev?: string | undefined;
5438
4334
  next?: string | undefined;
5439
4335
  }>>;
5440
- errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
5441
- status: z.ZodString;
5442
- title: z.ZodString;
5443
- detail: z.ZodOptional<z.ZodString>;
5444
- meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
5445
- }, "strip", z.ZodTypeAny, {
5446
- status: string;
5447
- title: string;
5448
- detail?: string | undefined;
5449
- meta?: Record<string, unknown> | undefined;
5450
- }, {
5451
- status: string;
5452
- title: string;
5453
- detail?: string | undefined;
5454
- meta?: Record<string, unknown> | undefined;
5455
- }>, "many">>;
5456
4336
  }, "strip", z.ZodTypeAny, {
5457
4337
  data: {
5458
4338
  id: string;
@@ -5484,14 +4364,29 @@ export declare const communicationContract: {
5484
4364
  name?: string | undefined;
5485
4365
  avatar?: string | null | undefined;
5486
4366
  } | undefined;
4367
+ recipientPeople?: {
4368
+ id: string;
4369
+ firstName?: string | null | undefined;
4370
+ lastName?: string | null | undefined;
4371
+ email?: string | undefined;
4372
+ name?: string | undefined;
4373
+ avatar?: string | null | undefined;
4374
+ }[] | undefined;
5487
4375
  threadId?: string | undefined;
5488
4376
  parentMessageId?: string | undefined;
5489
4377
  sentAt?: string | undefined;
5490
4378
  deliveredAt?: string | undefined;
5491
4379
  readAt?: string | undefined;
5492
4380
  };
5493
- };
5494
- meta?: Record<string, unknown> | undefined;
4381
+ }[];
4382
+ meta?: {
4383
+ page?: number | undefined;
4384
+ total?: number | undefined;
4385
+ size?: number | undefined;
4386
+ pages?: number | undefined;
4387
+ hasNextPage?: boolean | undefined;
4388
+ hasPreviousPage?: boolean | undefined;
4389
+ } | undefined;
5495
4390
  links?: {
5496
4391
  self: string;
5497
4392
  first?: string | undefined;
@@ -5499,12 +4394,6 @@ export declare const communicationContract: {
5499
4394
  prev?: string | undefined;
5500
4395
  next?: string | undefined;
5501
4396
  } | undefined;
5502
- errors?: {
5503
- status: string;
5504
- title: string;
5505
- detail?: string | undefined;
5506
- meta?: Record<string, unknown> | undefined;
5507
- }[] | undefined;
5508
4397
  }, {
5509
4398
  data: {
5510
4399
  id: string;
@@ -5535,6 +4424,14 @@ export declare const communicationContract: {
5535
4424
  name?: string | undefined;
5536
4425
  avatar?: string | null | undefined;
5537
4426
  } | undefined;
4427
+ recipientPeople?: {
4428
+ id: string;
4429
+ firstName?: string | null | undefined;
4430
+ lastName?: string | null | undefined;
4431
+ email?: string | undefined;
4432
+ name?: string | undefined;
4433
+ avatar?: string | null | undefined;
4434
+ }[] | undefined;
5538
4435
  threadId?: string | undefined;
5539
4436
  parentMessageId?: string | undefined;
5540
4437
  sentAt?: string | undefined;
@@ -5542,8 +4439,15 @@ export declare const communicationContract: {
5542
4439
  readAt?: string | undefined;
5543
4440
  isRead?: boolean | undefined;
5544
4441
  };
5545
- };
5546
- meta?: Record<string, unknown> | undefined;
4442
+ }[];
4443
+ meta?: {
4444
+ page?: number | undefined;
4445
+ total?: number | undefined;
4446
+ size?: number | undefined;
4447
+ pages?: number | undefined;
4448
+ hasNextPage?: boolean | undefined;
4449
+ hasPreviousPage?: boolean | undefined;
4450
+ } | undefined;
5547
4451
  links?: {
5548
4452
  self: string;
5549
4453
  first?: string | undefined;
@@ -5551,44 +4455,6 @@ export declare const communicationContract: {
5551
4455
  prev?: string | undefined;
5552
4456
  next?: string | undefined;
5553
4457
  } | undefined;
5554
- errors?: {
5555
- status: string;
5556
- title: string;
5557
- detail?: string | undefined;
5558
- meta?: Record<string, unknown> | undefined;
5559
- }[] | undefined;
5560
- }>;
5561
- 400: z.ZodObject<{
5562
- errors: z.ZodArray<z.ZodObject<{
5563
- status: z.ZodString;
5564
- title: z.ZodString;
5565
- detail: z.ZodOptional<z.ZodString>;
5566
- meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
5567
- }, "strip", z.ZodTypeAny, {
5568
- status: string;
5569
- title: string;
5570
- detail?: string | undefined;
5571
- meta?: Record<string, unknown> | undefined;
5572
- }, {
5573
- status: string;
5574
- title: string;
5575
- detail?: string | undefined;
5576
- meta?: Record<string, unknown> | undefined;
5577
- }>, "many">;
5578
- }, "strip", z.ZodTypeAny, {
5579
- errors: {
5580
- status: string;
5581
- title: string;
5582
- detail?: string | undefined;
5583
- meta?: Record<string, unknown> | undefined;
5584
- }[];
5585
- }, {
5586
- errors: {
5587
- status: string;
5588
- title: string;
5589
- detail?: string | undefined;
5590
- meta?: Record<string, unknown> | undefined;
5591
- }[];
5592
4458
  }>;
5593
4459
  403: z.ZodObject<{
5594
4460
  errors: z.ZodArray<z.ZodObject<{
@@ -5656,7 +4522,7 @@ export declare const communicationContract: {
5656
4522
  }>;
5657
4523
  };
5658
4524
  };
5659
- getProjectNotifications: {
4525
+ sendProjectMessage: {
5660
4526
  pathParams: z.ZodObject<{
5661
4527
  projectId: z.ZodString;
5662
4528
  }, "strip", z.ZodTypeAny, {
@@ -5664,133 +4530,291 @@ export declare const communicationContract: {
5664
4530
  }, {
5665
4531
  projectId: string;
5666
4532
  }>;
5667
- query: z.ZodObject<{
5668
- type: z.ZodOptional<z.ZodEnum<["TASK_ASSIGNED", "TASK_COMPLETED", "MESSAGE_RECEIVED", "ANNOUNCEMENT_POSTED", "DEADLINE_APPROACHING", "BUDGET_ALERT", "SAFETY_INCIDENT", "DOCUMENT_SHARED"]>>;
5669
- priority: z.ZodOptional<z.ZodEnum<["LOW", "MEDIUM", "HIGH", "URGENT"]>>;
5670
- isRead: z.ZodOptional<z.ZodBoolean>;
4533
+ summary: "Send a message related to a project";
4534
+ method: "POST";
4535
+ body: z.ZodObject<{
4536
+ subject: z.ZodOptional<z.ZodString>;
4537
+ content: z.ZodString;
4538
+ messageType: z.ZodDefault<z.ZodEnum<["EMAIL", "SMS", "PUSH_NOTIFICATION", "SYSTEM"]>>;
4539
+ priority: z.ZodDefault<z.ZodEnum<["LOW", "MEDIUM", "HIGH", "URGENT"]>>;
4540
+ recipientId: z.ZodString;
4541
+ threadId: z.ZodOptional<z.ZodString>;
4542
+ parentMessageId: z.ZodOptional<z.ZodString>;
5671
4543
  projectId: z.ZodOptional<z.ZodString>;
5672
- page: z.ZodDefault<z.ZodNumber>;
5673
- limit: z.ZodDefault<z.ZodNumber>;
5674
4544
  }, "strip", z.ZodTypeAny, {
5675
- page: number;
5676
- limit: number;
5677
- type?: "TASK_ASSIGNED" | "TASK_COMPLETED" | "MESSAGE_RECEIVED" | "ANNOUNCEMENT_POSTED" | "DEADLINE_APPROACHING" | "BUDGET_ALERT" | "SAFETY_INCIDENT" | "DOCUMENT_SHARED" | undefined;
4545
+ content: string;
4546
+ messageType: "EMAIL" | "SMS" | "PUSH_NOTIFICATION" | "SYSTEM";
4547
+ priority: "LOW" | "MEDIUM" | "HIGH" | "URGENT";
4548
+ recipientId: string;
5678
4549
  projectId?: string | undefined;
5679
- priority?: "LOW" | "MEDIUM" | "HIGH" | "URGENT" | undefined;
5680
- isRead?: boolean | undefined;
4550
+ subject?: string | undefined;
4551
+ threadId?: string | undefined;
4552
+ parentMessageId?: string | undefined;
5681
4553
  }, {
5682
- type?: "TASK_ASSIGNED" | "TASK_COMPLETED" | "MESSAGE_RECEIVED" | "ANNOUNCEMENT_POSTED" | "DEADLINE_APPROACHING" | "BUDGET_ALERT" | "SAFETY_INCIDENT" | "DOCUMENT_SHARED" | undefined;
5683
- page?: number | undefined;
5684
- limit?: number | undefined;
4554
+ content: string;
4555
+ recipientId: string;
5685
4556
  projectId?: string | undefined;
4557
+ subject?: string | undefined;
4558
+ messageType?: "EMAIL" | "SMS" | "PUSH_NOTIFICATION" | "SYSTEM" | undefined;
5686
4559
  priority?: "LOW" | "MEDIUM" | "HIGH" | "URGENT" | undefined;
5687
- isRead?: boolean | undefined;
4560
+ threadId?: string | undefined;
4561
+ parentMessageId?: string | undefined;
5688
4562
  }>;
5689
- summary: "Get notifications for a specific project";
5690
- method: "GET";
5691
- path: "/projects/:projectId/notifications";
4563
+ path: "/projects/:projectId/messages";
5692
4564
  responses: {
5693
- 200: z.ZodObject<{
5694
- data: z.ZodArray<z.ZodObject<{
5695
- type: z.ZodLiteral<"notifications">;
4565
+ 201: z.ZodObject<{
4566
+ data: z.ZodObject<{
4567
+ type: z.ZodLiteral<"messages">;
5696
4568
  id: z.ZodString;
5697
4569
  attributes: z.ZodObject<{
5698
4570
  id: z.ZodString;
5699
- title: z.ZodString;
4571
+ subject: z.ZodOptional<z.ZodString>;
5700
4572
  content: z.ZodString;
5701
- type: z.ZodEnum<["TASK_ASSIGNED", "TASK_COMPLETED", "MESSAGE_RECEIVED", "ANNOUNCEMENT_POSTED", "DEADLINE_APPROACHING", "BUDGET_ALERT", "SAFETY_INCIDENT", "DOCUMENT_SHARED"]>;
5702
- priority: z.ZodEnum<["LOW", "MEDIUM", "HIGH", "URGENT"]>;
5703
- isRead: z.ZodDefault<z.ZodBoolean>;
5704
- userId: z.ZodString;
5705
- actionUrl: z.ZodOptional<z.ZodString>;
5706
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
4573
+ messageType: z.ZodEnum<["EMAIL", "SMS", "PUSH_NOTIFICATION", "SYSTEM"]>;
4574
+ priority: z.ZodDefault<z.ZodEnum<["LOW", "MEDIUM", "HIGH", "URGENT"]>>;
4575
+ status: z.ZodEnum<["DRAFT", "SENT", "DELIVERED", "READ", "FAILED"]>;
4576
+ senderId: z.ZodString;
4577
+ sender: z.ZodOptional<z.ZodObject<{
4578
+ id: z.ZodString;
4579
+ firstName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4580
+ lastName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4581
+ email: z.ZodOptional<z.ZodString>;
4582
+ name: z.ZodOptional<z.ZodString>;
4583
+ avatar: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4584
+ }, "strip", z.ZodTypeAny, {
4585
+ id: string;
4586
+ firstName?: string | null | undefined;
4587
+ lastName?: string | null | undefined;
4588
+ email?: string | undefined;
4589
+ name?: string | undefined;
4590
+ avatar?: string | null | undefined;
4591
+ }, {
4592
+ id: string;
4593
+ firstName?: string | null | undefined;
4594
+ lastName?: string | null | undefined;
4595
+ email?: string | undefined;
4596
+ name?: string | undefined;
4597
+ avatar?: string | null | undefined;
4598
+ }>>;
4599
+ recipients: z.ZodArray<z.ZodString, "many">;
4600
+ recipientPeople: z.ZodOptional<z.ZodArray<z.ZodObject<{
4601
+ id: z.ZodString;
4602
+ firstName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4603
+ lastName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4604
+ email: z.ZodOptional<z.ZodString>;
4605
+ name: z.ZodOptional<z.ZodString>;
4606
+ avatar: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4607
+ }, "strip", z.ZodTypeAny, {
4608
+ id: string;
4609
+ firstName?: string | null | undefined;
4610
+ lastName?: string | null | undefined;
4611
+ email?: string | undefined;
4612
+ name?: string | undefined;
4613
+ avatar?: string | null | undefined;
4614
+ }, {
4615
+ id: string;
4616
+ firstName?: string | null | undefined;
4617
+ lastName?: string | null | undefined;
4618
+ email?: string | undefined;
4619
+ name?: string | undefined;
4620
+ avatar?: string | null | undefined;
4621
+ }>, "many">>;
4622
+ threadId: z.ZodOptional<z.ZodString>;
4623
+ parentMessageId: z.ZodOptional<z.ZodString>;
4624
+ sentAt: z.ZodOptional<z.ZodString>;
4625
+ deliveredAt: z.ZodOptional<z.ZodString>;
5707
4626
  readAt: z.ZodOptional<z.ZodString>;
4627
+ isRead: z.ZodDefault<z.ZodBoolean>;
5708
4628
  createdAt: z.ZodString;
4629
+ updatedAt: z.ZodString;
5709
4630
  projectId: z.ZodOptional<z.ZodString>;
4631
+ attachments: z.ZodDefault<z.ZodArray<z.ZodObject<{
4632
+ id: z.ZodString;
4633
+ filename: z.ZodString;
4634
+ url: z.ZodString;
4635
+ size: z.ZodNumber;
4636
+ }, "strip", z.ZodTypeAny, {
4637
+ id: string;
4638
+ size: number;
4639
+ url: string;
4640
+ filename: string;
4641
+ }, {
4642
+ id: string;
4643
+ size: number;
4644
+ url: string;
4645
+ filename: string;
4646
+ }>, "many">>;
5710
4647
  }, "strip", z.ZodTypeAny, {
5711
4648
  id: string;
5712
4649
  createdAt: string;
5713
- type: "TASK_ASSIGNED" | "TASK_COMPLETED" | "MESSAGE_RECEIVED" | "ANNOUNCEMENT_POSTED" | "DEADLINE_APPROACHING" | "BUDGET_ALERT" | "SAFETY_INCIDENT" | "DOCUMENT_SHARED";
5714
- title: string;
5715
- userId: string;
4650
+ updatedAt: string;
4651
+ status: "FAILED" | "DRAFT" | "SENT" | "DELIVERED" | "READ";
4652
+ attachments: {
4653
+ id: string;
4654
+ size: number;
4655
+ url: string;
4656
+ filename: string;
4657
+ }[];
5716
4658
  content: string;
4659
+ messageType: "EMAIL" | "SMS" | "PUSH_NOTIFICATION" | "SYSTEM";
5717
4660
  priority: "LOW" | "MEDIUM" | "HIGH" | "URGENT";
4661
+ senderId: string;
4662
+ recipients: string[];
5718
4663
  isRead: boolean;
5719
4664
  projectId?: string | undefined;
5720
- metadata?: Record<string, any> | undefined;
4665
+ subject?: string | undefined;
4666
+ sender?: {
4667
+ id: string;
4668
+ firstName?: string | null | undefined;
4669
+ lastName?: string | null | undefined;
4670
+ email?: string | undefined;
4671
+ name?: string | undefined;
4672
+ avatar?: string | null | undefined;
4673
+ } | undefined;
4674
+ recipientPeople?: {
4675
+ id: string;
4676
+ firstName?: string | null | undefined;
4677
+ lastName?: string | null | undefined;
4678
+ email?: string | undefined;
4679
+ name?: string | undefined;
4680
+ avatar?: string | null | undefined;
4681
+ }[] | undefined;
4682
+ threadId?: string | undefined;
4683
+ parentMessageId?: string | undefined;
4684
+ sentAt?: string | undefined;
4685
+ deliveredAt?: string | undefined;
5721
4686
  readAt?: string | undefined;
5722
- actionUrl?: string | undefined;
5723
4687
  }, {
5724
4688
  id: string;
5725
4689
  createdAt: string;
5726
- type: "TASK_ASSIGNED" | "TASK_COMPLETED" | "MESSAGE_RECEIVED" | "ANNOUNCEMENT_POSTED" | "DEADLINE_APPROACHING" | "BUDGET_ALERT" | "SAFETY_INCIDENT" | "DOCUMENT_SHARED";
5727
- title: string;
5728
- userId: string;
4690
+ updatedAt: string;
4691
+ status: "FAILED" | "DRAFT" | "SENT" | "DELIVERED" | "READ";
5729
4692
  content: string;
5730
- priority: "LOW" | "MEDIUM" | "HIGH" | "URGENT";
4693
+ messageType: "EMAIL" | "SMS" | "PUSH_NOTIFICATION" | "SYSTEM";
4694
+ senderId: string;
4695
+ recipients: string[];
5731
4696
  projectId?: string | undefined;
5732
- metadata?: Record<string, any> | undefined;
4697
+ attachments?: {
4698
+ id: string;
4699
+ size: number;
4700
+ url: string;
4701
+ filename: string;
4702
+ }[] | undefined;
4703
+ subject?: string | undefined;
4704
+ priority?: "LOW" | "MEDIUM" | "HIGH" | "URGENT" | undefined;
4705
+ sender?: {
4706
+ id: string;
4707
+ firstName?: string | null | undefined;
4708
+ lastName?: string | null | undefined;
4709
+ email?: string | undefined;
4710
+ name?: string | undefined;
4711
+ avatar?: string | null | undefined;
4712
+ } | undefined;
4713
+ recipientPeople?: {
4714
+ id: string;
4715
+ firstName?: string | null | undefined;
4716
+ lastName?: string | null | undefined;
4717
+ email?: string | undefined;
4718
+ name?: string | undefined;
4719
+ avatar?: string | null | undefined;
4720
+ }[] | undefined;
4721
+ threadId?: string | undefined;
4722
+ parentMessageId?: string | undefined;
4723
+ sentAt?: string | undefined;
4724
+ deliveredAt?: string | undefined;
5733
4725
  readAt?: string | undefined;
5734
4726
  isRead?: boolean | undefined;
5735
- actionUrl?: string | undefined;
5736
4727
  }>;
5737
4728
  }, "strip", z.ZodTypeAny, {
5738
4729
  id: string;
5739
- type: "notifications";
4730
+ type: "messages";
5740
4731
  attributes: {
5741
4732
  id: string;
5742
4733
  createdAt: string;
5743
- type: "TASK_ASSIGNED" | "TASK_COMPLETED" | "MESSAGE_RECEIVED" | "ANNOUNCEMENT_POSTED" | "DEADLINE_APPROACHING" | "BUDGET_ALERT" | "SAFETY_INCIDENT" | "DOCUMENT_SHARED";
5744
- title: string;
5745
- userId: string;
4734
+ updatedAt: string;
4735
+ status: "FAILED" | "DRAFT" | "SENT" | "DELIVERED" | "READ";
4736
+ attachments: {
4737
+ id: string;
4738
+ size: number;
4739
+ url: string;
4740
+ filename: string;
4741
+ }[];
5746
4742
  content: string;
4743
+ messageType: "EMAIL" | "SMS" | "PUSH_NOTIFICATION" | "SYSTEM";
5747
4744
  priority: "LOW" | "MEDIUM" | "HIGH" | "URGENT";
4745
+ senderId: string;
4746
+ recipients: string[];
5748
4747
  isRead: boolean;
5749
4748
  projectId?: string | undefined;
5750
- metadata?: Record<string, any> | undefined;
4749
+ subject?: string | undefined;
4750
+ sender?: {
4751
+ id: string;
4752
+ firstName?: string | null | undefined;
4753
+ lastName?: string | null | undefined;
4754
+ email?: string | undefined;
4755
+ name?: string | undefined;
4756
+ avatar?: string | null | undefined;
4757
+ } | undefined;
4758
+ recipientPeople?: {
4759
+ id: string;
4760
+ firstName?: string | null | undefined;
4761
+ lastName?: string | null | undefined;
4762
+ email?: string | undefined;
4763
+ name?: string | undefined;
4764
+ avatar?: string | null | undefined;
4765
+ }[] | undefined;
4766
+ threadId?: string | undefined;
4767
+ parentMessageId?: string | undefined;
4768
+ sentAt?: string | undefined;
4769
+ deliveredAt?: string | undefined;
5751
4770
  readAt?: string | undefined;
5752
- actionUrl?: string | undefined;
5753
4771
  };
5754
4772
  }, {
5755
4773
  id: string;
5756
- type: "notifications";
4774
+ type: "messages";
5757
4775
  attributes: {
5758
4776
  id: string;
5759
4777
  createdAt: string;
5760
- type: "TASK_ASSIGNED" | "TASK_COMPLETED" | "MESSAGE_RECEIVED" | "ANNOUNCEMENT_POSTED" | "DEADLINE_APPROACHING" | "BUDGET_ALERT" | "SAFETY_INCIDENT" | "DOCUMENT_SHARED";
5761
- title: string;
5762
- userId: string;
4778
+ updatedAt: string;
4779
+ status: "FAILED" | "DRAFT" | "SENT" | "DELIVERED" | "READ";
5763
4780
  content: string;
5764
- priority: "LOW" | "MEDIUM" | "HIGH" | "URGENT";
4781
+ messageType: "EMAIL" | "SMS" | "PUSH_NOTIFICATION" | "SYSTEM";
4782
+ senderId: string;
4783
+ recipients: string[];
5765
4784
  projectId?: string | undefined;
5766
- metadata?: Record<string, any> | undefined;
4785
+ attachments?: {
4786
+ id: string;
4787
+ size: number;
4788
+ url: string;
4789
+ filename: string;
4790
+ }[] | undefined;
4791
+ subject?: string | undefined;
4792
+ priority?: "LOW" | "MEDIUM" | "HIGH" | "URGENT" | undefined;
4793
+ sender?: {
4794
+ id: string;
4795
+ firstName?: string | null | undefined;
4796
+ lastName?: string | null | undefined;
4797
+ email?: string | undefined;
4798
+ name?: string | undefined;
4799
+ avatar?: string | null | undefined;
4800
+ } | undefined;
4801
+ recipientPeople?: {
4802
+ id: string;
4803
+ firstName?: string | null | undefined;
4804
+ lastName?: string | null | undefined;
4805
+ email?: string | undefined;
4806
+ name?: string | undefined;
4807
+ avatar?: string | null | undefined;
4808
+ }[] | undefined;
4809
+ threadId?: string | undefined;
4810
+ parentMessageId?: string | undefined;
4811
+ sentAt?: string | undefined;
4812
+ deliveredAt?: string | undefined;
5767
4813
  readAt?: string | undefined;
5768
4814
  isRead?: boolean | undefined;
5769
- actionUrl?: string | undefined;
5770
4815
  };
5771
- }>, "many">;
5772
- meta: z.ZodOptional<z.ZodObject<{
5773
- total: z.ZodOptional<z.ZodNumber>;
5774
- page: z.ZodOptional<z.ZodNumber>;
5775
- size: z.ZodOptional<z.ZodNumber>;
5776
- pages: z.ZodOptional<z.ZodNumber>;
5777
- hasNextPage: z.ZodOptional<z.ZodBoolean>;
5778
- hasPreviousPage: z.ZodOptional<z.ZodBoolean>;
5779
- }, "strip", z.ZodTypeAny, {
5780
- page?: number | undefined;
5781
- total?: number | undefined;
5782
- size?: number | undefined;
5783
- pages?: number | undefined;
5784
- hasNextPage?: boolean | undefined;
5785
- hasPreviousPage?: boolean | undefined;
5786
- }, {
5787
- page?: number | undefined;
5788
- total?: number | undefined;
5789
- size?: number | undefined;
5790
- pages?: number | undefined;
5791
- hasNextPage?: boolean | undefined;
5792
- hasPreviousPage?: boolean | undefined;
5793
- }>>;
4816
+ }>;
4817
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
5794
4818
  links: z.ZodOptional<z.ZodObject<{
5795
4819
  self: z.ZodString;
5796
4820
  first: z.ZodOptional<z.ZodString>;
@@ -5810,33 +4834,69 @@ export declare const communicationContract: {
5810
4834
  prev?: string | undefined;
5811
4835
  next?: string | undefined;
5812
4836
  }>>;
4837
+ errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
4838
+ status: z.ZodString;
4839
+ title: z.ZodString;
4840
+ detail: z.ZodOptional<z.ZodString>;
4841
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4842
+ }, "strip", z.ZodTypeAny, {
4843
+ status: string;
4844
+ title: string;
4845
+ detail?: string | undefined;
4846
+ meta?: Record<string, unknown> | undefined;
4847
+ }, {
4848
+ status: string;
4849
+ title: string;
4850
+ detail?: string | undefined;
4851
+ meta?: Record<string, unknown> | undefined;
4852
+ }>, "many">>;
5813
4853
  }, "strip", z.ZodTypeAny, {
5814
4854
  data: {
5815
4855
  id: string;
5816
- type: "notifications";
4856
+ type: "messages";
5817
4857
  attributes: {
5818
4858
  id: string;
5819
4859
  createdAt: string;
5820
- type: "TASK_ASSIGNED" | "TASK_COMPLETED" | "MESSAGE_RECEIVED" | "ANNOUNCEMENT_POSTED" | "DEADLINE_APPROACHING" | "BUDGET_ALERT" | "SAFETY_INCIDENT" | "DOCUMENT_SHARED";
5821
- title: string;
5822
- userId: string;
4860
+ updatedAt: string;
4861
+ status: "FAILED" | "DRAFT" | "SENT" | "DELIVERED" | "READ";
4862
+ attachments: {
4863
+ id: string;
4864
+ size: number;
4865
+ url: string;
4866
+ filename: string;
4867
+ }[];
5823
4868
  content: string;
4869
+ messageType: "EMAIL" | "SMS" | "PUSH_NOTIFICATION" | "SYSTEM";
5824
4870
  priority: "LOW" | "MEDIUM" | "HIGH" | "URGENT";
4871
+ senderId: string;
4872
+ recipients: string[];
5825
4873
  isRead: boolean;
5826
4874
  projectId?: string | undefined;
5827
- metadata?: Record<string, any> | undefined;
4875
+ subject?: string | undefined;
4876
+ sender?: {
4877
+ id: string;
4878
+ firstName?: string | null | undefined;
4879
+ lastName?: string | null | undefined;
4880
+ email?: string | undefined;
4881
+ name?: string | undefined;
4882
+ avatar?: string | null | undefined;
4883
+ } | undefined;
4884
+ recipientPeople?: {
4885
+ id: string;
4886
+ firstName?: string | null | undefined;
4887
+ lastName?: string | null | undefined;
4888
+ email?: string | undefined;
4889
+ name?: string | undefined;
4890
+ avatar?: string | null | undefined;
4891
+ }[] | undefined;
4892
+ threadId?: string | undefined;
4893
+ parentMessageId?: string | undefined;
4894
+ sentAt?: string | undefined;
4895
+ deliveredAt?: string | undefined;
5828
4896
  readAt?: string | undefined;
5829
- actionUrl?: string | undefined;
5830
4897
  };
5831
- }[];
5832
- meta?: {
5833
- page?: number | undefined;
5834
- total?: number | undefined;
5835
- size?: number | undefined;
5836
- pages?: number | undefined;
5837
- hasNextPage?: boolean | undefined;
5838
- hasPreviousPage?: boolean | undefined;
5839
- } | undefined;
4898
+ };
4899
+ meta?: Record<string, unknown> | undefined;
5840
4900
  links?: {
5841
4901
  self: string;
5842
4902
  first?: string | undefined;
@@ -5844,33 +4904,59 @@ export declare const communicationContract: {
5844
4904
  prev?: string | undefined;
5845
4905
  next?: string | undefined;
5846
4906
  } | undefined;
4907
+ errors?: {
4908
+ status: string;
4909
+ title: string;
4910
+ detail?: string | undefined;
4911
+ meta?: Record<string, unknown> | undefined;
4912
+ }[] | undefined;
5847
4913
  }, {
5848
4914
  data: {
5849
4915
  id: string;
5850
- type: "notifications";
4916
+ type: "messages";
5851
4917
  attributes: {
5852
4918
  id: string;
5853
4919
  createdAt: string;
5854
- type: "TASK_ASSIGNED" | "TASK_COMPLETED" | "MESSAGE_RECEIVED" | "ANNOUNCEMENT_POSTED" | "DEADLINE_APPROACHING" | "BUDGET_ALERT" | "SAFETY_INCIDENT" | "DOCUMENT_SHARED";
5855
- title: string;
5856
- userId: string;
4920
+ updatedAt: string;
4921
+ status: "FAILED" | "DRAFT" | "SENT" | "DELIVERED" | "READ";
5857
4922
  content: string;
5858
- priority: "LOW" | "MEDIUM" | "HIGH" | "URGENT";
4923
+ messageType: "EMAIL" | "SMS" | "PUSH_NOTIFICATION" | "SYSTEM";
4924
+ senderId: string;
4925
+ recipients: string[];
5859
4926
  projectId?: string | undefined;
5860
- metadata?: Record<string, any> | undefined;
4927
+ attachments?: {
4928
+ id: string;
4929
+ size: number;
4930
+ url: string;
4931
+ filename: string;
4932
+ }[] | undefined;
4933
+ subject?: string | undefined;
4934
+ priority?: "LOW" | "MEDIUM" | "HIGH" | "URGENT" | undefined;
4935
+ sender?: {
4936
+ id: string;
4937
+ firstName?: string | null | undefined;
4938
+ lastName?: string | null | undefined;
4939
+ email?: string | undefined;
4940
+ name?: string | undefined;
4941
+ avatar?: string | null | undefined;
4942
+ } | undefined;
4943
+ recipientPeople?: {
4944
+ id: string;
4945
+ firstName?: string | null | undefined;
4946
+ lastName?: string | null | undefined;
4947
+ email?: string | undefined;
4948
+ name?: string | undefined;
4949
+ avatar?: string | null | undefined;
4950
+ }[] | undefined;
4951
+ threadId?: string | undefined;
4952
+ parentMessageId?: string | undefined;
4953
+ sentAt?: string | undefined;
4954
+ deliveredAt?: string | undefined;
5861
4955
  readAt?: string | undefined;
5862
4956
  isRead?: boolean | undefined;
5863
- actionUrl?: string | undefined;
5864
4957
  };
5865
- }[];
5866
- meta?: {
5867
- page?: number | undefined;
5868
- total?: number | undefined;
5869
- size?: number | undefined;
5870
- pages?: number | undefined;
5871
- hasNextPage?: boolean | undefined;
5872
- hasPreviousPage?: boolean | undefined;
5873
- } | undefined;
4958
+ };
4959
+ meta?: Record<string, unknown> | undefined;
5874
4960
  links?: {
5875
4961
  self: string;
5876
4962
  first?: string | undefined;
@@ -5878,6 +4964,44 @@ export declare const communicationContract: {
5878
4964
  prev?: string | undefined;
5879
4965
  next?: string | undefined;
5880
4966
  } | undefined;
4967
+ errors?: {
4968
+ status: string;
4969
+ title: string;
4970
+ detail?: string | undefined;
4971
+ meta?: Record<string, unknown> | undefined;
4972
+ }[] | undefined;
4973
+ }>;
4974
+ 400: z.ZodObject<{
4975
+ errors: z.ZodArray<z.ZodObject<{
4976
+ status: z.ZodString;
4977
+ title: z.ZodString;
4978
+ detail: z.ZodOptional<z.ZodString>;
4979
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4980
+ }, "strip", z.ZodTypeAny, {
4981
+ status: string;
4982
+ title: string;
4983
+ detail?: string | undefined;
4984
+ meta?: Record<string, unknown> | undefined;
4985
+ }, {
4986
+ status: string;
4987
+ title: string;
4988
+ detail?: string | undefined;
4989
+ meta?: Record<string, unknown> | undefined;
4990
+ }>, "many">;
4991
+ }, "strip", z.ZodTypeAny, {
4992
+ errors: {
4993
+ status: string;
4994
+ title: string;
4995
+ detail?: string | undefined;
4996
+ meta?: Record<string, unknown> | undefined;
4997
+ }[];
4998
+ }, {
4999
+ errors: {
5000
+ status: string;
5001
+ title: string;
5002
+ detail?: string | undefined;
5003
+ meta?: Record<string, unknown> | undefined;
5004
+ }[];
5881
5005
  }>;
5882
5006
  403: z.ZodObject<{
5883
5007
  errors: z.ZodArray<z.ZodObject<{