evo360-types 1.3.392 → 1.3.395

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.
@@ -1,6 +1,6 @@
1
1
  import { z } from "zod";
2
2
  export declare const zNotificationChannelTypeSchema: z.ZodEnum<["whatsapp", "email", "sms", "push"]>;
3
- export declare const zNotificationMessageStatusSchema: z.ZodEnum<["queued", "processing", "sent", "delivered", "failed", "cancelled", "suppressed"]>;
3
+ export declare const zNotificationMessageStatusSchema: z.ZodEnum<["queued", "processing", "sent", "delivered", "read", "failed", "cancelled", "suppressed"]>;
4
4
  export declare const zNotificationAttemptStatusSchema: z.ZodEnum<["success", "retry", "error"]>;
5
5
  export declare const zNotificationRecipientKindSchema: z.ZodEnum<["patient", "professional", "preconfigured", "raw"]>;
6
6
  export declare const zNotificationLogLevelSchema: z.ZodEnum<["debug", "info", "warn", "error"]>;
@@ -139,11 +139,12 @@ export declare const zNotificationMessageSchema: z.ZodObject<{
139
139
  display_name: z.ZodOptional<z.ZodString>;
140
140
  }, z.ZodTypeAny, "passthrough">>;
141
141
  variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
142
- status: z.ZodEnum<["queued", "processing", "sent", "delivered", "failed", "cancelled", "suppressed"]>;
142
+ status: z.ZodEnum<["queued", "processing", "sent", "delivered", "read", "failed", "cancelled", "suppressed"]>;
143
143
  queued_at: z.ZodDate;
144
144
  processing_started_at: z.ZodOptional<z.ZodDate>;
145
145
  sent_at: z.ZodOptional<z.ZodDate>;
146
146
  delivered_at: z.ZodOptional<z.ZodDate>;
147
+ read_at: z.ZodOptional<z.ZodDate>;
147
148
  completed_at: z.ZodOptional<z.ZodDate>;
148
149
  provider: z.ZodOptional<z.ZodObject<{
149
150
  name: z.ZodOptional<z.ZodString>;
@@ -255,11 +256,12 @@ export declare const zNotificationMessageSchema: z.ZodObject<{
255
256
  display_name: z.ZodOptional<z.ZodString>;
256
257
  }, z.ZodTypeAny, "passthrough">>;
257
258
  variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
258
- status: z.ZodEnum<["queued", "processing", "sent", "delivered", "failed", "cancelled", "suppressed"]>;
259
+ status: z.ZodEnum<["queued", "processing", "sent", "delivered", "read", "failed", "cancelled", "suppressed"]>;
259
260
  queued_at: z.ZodDate;
260
261
  processing_started_at: z.ZodOptional<z.ZodDate>;
261
262
  sent_at: z.ZodOptional<z.ZodDate>;
262
263
  delivered_at: z.ZodOptional<z.ZodDate>;
264
+ read_at: z.ZodOptional<z.ZodDate>;
263
265
  completed_at: z.ZodOptional<z.ZodDate>;
264
266
  provider: z.ZodOptional<z.ZodObject<{
265
267
  name: z.ZodOptional<z.ZodString>;
@@ -371,11 +373,12 @@ export declare const zNotificationMessageSchema: z.ZodObject<{
371
373
  display_name: z.ZodOptional<z.ZodString>;
372
374
  }, z.ZodTypeAny, "passthrough">>;
373
375
  variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
374
- status: z.ZodEnum<["queued", "processing", "sent", "delivered", "failed", "cancelled", "suppressed"]>;
376
+ status: z.ZodEnum<["queued", "processing", "sent", "delivered", "read", "failed", "cancelled", "suppressed"]>;
375
377
  queued_at: z.ZodDate;
376
378
  processing_started_at: z.ZodOptional<z.ZodDate>;
377
379
  sent_at: z.ZodOptional<z.ZodDate>;
378
380
  delivered_at: z.ZodOptional<z.ZodDate>;
381
+ read_at: z.ZodOptional<z.ZodDate>;
379
382
  completed_at: z.ZodOptional<z.ZodDate>;
380
383
  provider: z.ZodOptional<z.ZodObject<{
381
384
  name: z.ZodOptional<z.ZodString>;
@@ -694,6 +697,25 @@ export declare const zDirectSendPayloadSchema: z.ZodEffects<z.ZodObject<{
694
697
  label: z.ZodOptional<z.ZodString>;
695
698
  ref: z.ZodOptional<z.ZodAny>;
696
699
  }, z.ZodTypeAny, "passthrough">>, "many">>;
700
+ quick_reply_actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
701
+ action_type: z.ZodString;
702
+ action_payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
703
+ button_index: z.ZodNumber;
704
+ button_label: z.ZodString;
705
+ expires_at: z.ZodOptional<z.ZodDate>;
706
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
707
+ action_type: z.ZodString;
708
+ action_payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
709
+ button_index: z.ZodNumber;
710
+ button_label: z.ZodString;
711
+ expires_at: z.ZodOptional<z.ZodDate>;
712
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
713
+ action_type: z.ZodString;
714
+ action_payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
715
+ button_index: z.ZodNumber;
716
+ button_label: z.ZodString;
717
+ expires_at: z.ZodOptional<z.ZodDate>;
718
+ }, z.ZodTypeAny, "passthrough">>, "many">>;
697
719
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
698
720
  tenant: z.ZodString;
699
721
  kind: z.ZodLiteral<"notification.send">;
@@ -776,6 +798,25 @@ export declare const zDirectSendPayloadSchema: z.ZodEffects<z.ZodObject<{
776
798
  label: z.ZodOptional<z.ZodString>;
777
799
  ref: z.ZodOptional<z.ZodAny>;
778
800
  }, z.ZodTypeAny, "passthrough">>, "many">>;
801
+ quick_reply_actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
802
+ action_type: z.ZodString;
803
+ action_payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
804
+ button_index: z.ZodNumber;
805
+ button_label: z.ZodString;
806
+ expires_at: z.ZodOptional<z.ZodDate>;
807
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
808
+ action_type: z.ZodString;
809
+ action_payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
810
+ button_index: z.ZodNumber;
811
+ button_label: z.ZodString;
812
+ expires_at: z.ZodOptional<z.ZodDate>;
813
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
814
+ action_type: z.ZodString;
815
+ action_payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
816
+ button_index: z.ZodNumber;
817
+ button_label: z.ZodString;
818
+ expires_at: z.ZodOptional<z.ZodDate>;
819
+ }, z.ZodTypeAny, "passthrough">>, "many">>;
779
820
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
780
821
  tenant: z.ZodString;
781
822
  kind: z.ZodLiteral<"notification.send">;
@@ -858,6 +899,25 @@ export declare const zDirectSendPayloadSchema: z.ZodEffects<z.ZodObject<{
858
899
  label: z.ZodOptional<z.ZodString>;
859
900
  ref: z.ZodOptional<z.ZodAny>;
860
901
  }, z.ZodTypeAny, "passthrough">>, "many">>;
902
+ quick_reply_actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
903
+ action_type: z.ZodString;
904
+ action_payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
905
+ button_index: z.ZodNumber;
906
+ button_label: z.ZodString;
907
+ expires_at: z.ZodOptional<z.ZodDate>;
908
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
909
+ action_type: z.ZodString;
910
+ action_payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
911
+ button_index: z.ZodNumber;
912
+ button_label: z.ZodString;
913
+ expires_at: z.ZodOptional<z.ZodDate>;
914
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
915
+ action_type: z.ZodString;
916
+ action_payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
917
+ button_index: z.ZodNumber;
918
+ button_label: z.ZodString;
919
+ expires_at: z.ZodOptional<z.ZodDate>;
920
+ }, z.ZodTypeAny, "passthrough">>, "many">>;
861
921
  }, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{
862
922
  tenant: z.ZodString;
863
923
  kind: z.ZodLiteral<"notification.send">;
@@ -940,6 +1000,25 @@ export declare const zDirectSendPayloadSchema: z.ZodEffects<z.ZodObject<{
940
1000
  label: z.ZodOptional<z.ZodString>;
941
1001
  ref: z.ZodOptional<z.ZodAny>;
942
1002
  }, z.ZodTypeAny, "passthrough">>, "many">>;
1003
+ quick_reply_actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
1004
+ action_type: z.ZodString;
1005
+ action_payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1006
+ button_index: z.ZodNumber;
1007
+ button_label: z.ZodString;
1008
+ expires_at: z.ZodOptional<z.ZodDate>;
1009
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1010
+ action_type: z.ZodString;
1011
+ action_payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1012
+ button_index: z.ZodNumber;
1013
+ button_label: z.ZodString;
1014
+ expires_at: z.ZodOptional<z.ZodDate>;
1015
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1016
+ action_type: z.ZodString;
1017
+ action_payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1018
+ button_index: z.ZodNumber;
1019
+ button_label: z.ZodString;
1020
+ expires_at: z.ZodOptional<z.ZodDate>;
1021
+ }, z.ZodTypeAny, "passthrough">>, "many">>;
943
1022
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
944
1023
  tenant: z.ZodString;
945
1024
  kind: z.ZodLiteral<"notification.send">;
@@ -1022,6 +1101,25 @@ export declare const zDirectSendPayloadSchema: z.ZodEffects<z.ZodObject<{
1022
1101
  label: z.ZodOptional<z.ZodString>;
1023
1102
  ref: z.ZodOptional<z.ZodAny>;
1024
1103
  }, z.ZodTypeAny, "passthrough">>, "many">>;
1104
+ quick_reply_actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
1105
+ action_type: z.ZodString;
1106
+ action_payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1107
+ button_index: z.ZodNumber;
1108
+ button_label: z.ZodString;
1109
+ expires_at: z.ZodOptional<z.ZodDate>;
1110
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1111
+ action_type: z.ZodString;
1112
+ action_payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1113
+ button_index: z.ZodNumber;
1114
+ button_label: z.ZodString;
1115
+ expires_at: z.ZodOptional<z.ZodDate>;
1116
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1117
+ action_type: z.ZodString;
1118
+ action_payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1119
+ button_index: z.ZodNumber;
1120
+ button_label: z.ZodString;
1121
+ expires_at: z.ZodOptional<z.ZodDate>;
1122
+ }, z.ZodTypeAny, "passthrough">>, "many">>;
1025
1123
  }, z.ZodTypeAny, "passthrough">>;
1026
1124
  export declare const zNexusDirectSendPayloadSchema: z.ZodEffects<z.ZodObject<{
1027
1125
  kind: z.ZodLiteral<"notification.send">;
@@ -1103,6 +1201,25 @@ export declare const zNexusDirectSendPayloadSchema: z.ZodEffects<z.ZodObject<{
1103
1201
  label: z.ZodOptional<z.ZodString>;
1104
1202
  ref: z.ZodOptional<z.ZodAny>;
1105
1203
  }, z.ZodTypeAny, "passthrough">>, "many">>;
1204
+ quick_reply_actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
1205
+ action_type: z.ZodString;
1206
+ action_payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1207
+ button_index: z.ZodNumber;
1208
+ button_label: z.ZodString;
1209
+ expires_at: z.ZodOptional<z.ZodDate>;
1210
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1211
+ action_type: z.ZodString;
1212
+ action_payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1213
+ button_index: z.ZodNumber;
1214
+ button_label: z.ZodString;
1215
+ expires_at: z.ZodOptional<z.ZodDate>;
1216
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1217
+ action_type: z.ZodString;
1218
+ action_payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1219
+ button_index: z.ZodNumber;
1220
+ button_label: z.ZodString;
1221
+ expires_at: z.ZodOptional<z.ZodDate>;
1222
+ }, z.ZodTypeAny, "passthrough">>, "many">>;
1106
1223
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1107
1224
  kind: z.ZodLiteral<"notification.send">;
1108
1225
  classification: z.ZodOptional<z.ZodString>;
@@ -1183,6 +1300,25 @@ export declare const zNexusDirectSendPayloadSchema: z.ZodEffects<z.ZodObject<{
1183
1300
  label: z.ZodOptional<z.ZodString>;
1184
1301
  ref: z.ZodOptional<z.ZodAny>;
1185
1302
  }, z.ZodTypeAny, "passthrough">>, "many">>;
1303
+ quick_reply_actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
1304
+ action_type: z.ZodString;
1305
+ action_payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1306
+ button_index: z.ZodNumber;
1307
+ button_label: z.ZodString;
1308
+ expires_at: z.ZodOptional<z.ZodDate>;
1309
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1310
+ action_type: z.ZodString;
1311
+ action_payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1312
+ button_index: z.ZodNumber;
1313
+ button_label: z.ZodString;
1314
+ expires_at: z.ZodOptional<z.ZodDate>;
1315
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1316
+ action_type: z.ZodString;
1317
+ action_payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1318
+ button_index: z.ZodNumber;
1319
+ button_label: z.ZodString;
1320
+ expires_at: z.ZodOptional<z.ZodDate>;
1321
+ }, z.ZodTypeAny, "passthrough">>, "many">>;
1186
1322
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1187
1323
  kind: z.ZodLiteral<"notification.send">;
1188
1324
  classification: z.ZodOptional<z.ZodString>;
@@ -1263,6 +1399,25 @@ export declare const zNexusDirectSendPayloadSchema: z.ZodEffects<z.ZodObject<{
1263
1399
  label: z.ZodOptional<z.ZodString>;
1264
1400
  ref: z.ZodOptional<z.ZodAny>;
1265
1401
  }, z.ZodTypeAny, "passthrough">>, "many">>;
1402
+ quick_reply_actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
1403
+ action_type: z.ZodString;
1404
+ action_payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1405
+ button_index: z.ZodNumber;
1406
+ button_label: z.ZodString;
1407
+ expires_at: z.ZodOptional<z.ZodDate>;
1408
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1409
+ action_type: z.ZodString;
1410
+ action_payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1411
+ button_index: z.ZodNumber;
1412
+ button_label: z.ZodString;
1413
+ expires_at: z.ZodOptional<z.ZodDate>;
1414
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1415
+ action_type: z.ZodString;
1416
+ action_payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1417
+ button_index: z.ZodNumber;
1418
+ button_label: z.ZodString;
1419
+ expires_at: z.ZodOptional<z.ZodDate>;
1420
+ }, z.ZodTypeAny, "passthrough">>, "many">>;
1266
1421
  }, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{
1267
1422
  kind: z.ZodLiteral<"notification.send">;
1268
1423
  classification: z.ZodOptional<z.ZodString>;
@@ -1343,6 +1498,25 @@ export declare const zNexusDirectSendPayloadSchema: z.ZodEffects<z.ZodObject<{
1343
1498
  label: z.ZodOptional<z.ZodString>;
1344
1499
  ref: z.ZodOptional<z.ZodAny>;
1345
1500
  }, z.ZodTypeAny, "passthrough">>, "many">>;
1501
+ quick_reply_actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
1502
+ action_type: z.ZodString;
1503
+ action_payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1504
+ button_index: z.ZodNumber;
1505
+ button_label: z.ZodString;
1506
+ expires_at: z.ZodOptional<z.ZodDate>;
1507
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1508
+ action_type: z.ZodString;
1509
+ action_payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1510
+ button_index: z.ZodNumber;
1511
+ button_label: z.ZodString;
1512
+ expires_at: z.ZodOptional<z.ZodDate>;
1513
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1514
+ action_type: z.ZodString;
1515
+ action_payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1516
+ button_index: z.ZodNumber;
1517
+ button_label: z.ZodString;
1518
+ expires_at: z.ZodOptional<z.ZodDate>;
1519
+ }, z.ZodTypeAny, "passthrough">>, "many">>;
1346
1520
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1347
1521
  kind: z.ZodLiteral<"notification.send">;
1348
1522
  classification: z.ZodOptional<z.ZodString>;
@@ -1423,4 +1597,23 @@ export declare const zNexusDirectSendPayloadSchema: z.ZodEffects<z.ZodObject<{
1423
1597
  label: z.ZodOptional<z.ZodString>;
1424
1598
  ref: z.ZodOptional<z.ZodAny>;
1425
1599
  }, z.ZodTypeAny, "passthrough">>, "many">>;
1600
+ quick_reply_actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
1601
+ action_type: z.ZodString;
1602
+ action_payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1603
+ button_index: z.ZodNumber;
1604
+ button_label: z.ZodString;
1605
+ expires_at: z.ZodOptional<z.ZodDate>;
1606
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1607
+ action_type: z.ZodString;
1608
+ action_payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1609
+ button_index: z.ZodNumber;
1610
+ button_label: z.ZodString;
1611
+ expires_at: z.ZodOptional<z.ZodDate>;
1612
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1613
+ action_type: z.ZodString;
1614
+ action_payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1615
+ button_index: z.ZodNumber;
1616
+ button_label: z.ZodString;
1617
+ expires_at: z.ZodOptional<z.ZodDate>;
1618
+ }, z.ZodTypeAny, "passthrough">>, "many">>;
1426
1619
  }, z.ZodTypeAny, "passthrough">>;
@@ -4,6 +4,7 @@ exports.zNexusDirectSendPayloadSchema = exports.zDirectSendPayloadSchema = expor
4
4
  const zod_1 = require("zod");
5
5
  const zod_schemas_1 = require("../shared/zod-schemas");
6
6
  const zod_schemas_2 = require("../evo-task/zod-schemas");
7
+ const zod_schemas_3 = require("./quick-reply-action/zod-schemas");
7
8
  // ---- Primitives ----
8
9
  exports.zNotificationChannelTypeSchema = zod_1.z.enum([
9
10
  "whatsapp",
@@ -16,6 +17,7 @@ exports.zNotificationMessageStatusSchema = zod_1.z.enum([
16
17
  "processing",
17
18
  "sent",
18
19
  "delivered",
20
+ "read",
19
21
  "failed",
20
22
  "cancelled",
21
23
  "suppressed",
@@ -95,6 +97,7 @@ exports.zNotificationMessageSchema = zod_schemas_1.zFireDocSchema
95
97
  processing_started_at: zod_1.z.coerce.date().optional(),
96
98
  sent_at: zod_1.z.coerce.date().optional(),
97
99
  delivered_at: zod_1.z.coerce.date().optional(),
100
+ read_at: zod_1.z.coerce.date().optional(),
98
101
  completed_at: zod_1.z.coerce.date().optional(),
99
102
  provider: exports.zNotificationProviderMetaSchema.optional(),
100
103
  error: exports.zNotificationErrorSchema.optional(),
@@ -153,6 +156,7 @@ exports.zDirectSendPayloadSchema = zod_1.z
153
156
  dedup_key: zod_1.z.string().optional(),
154
157
  dedup_group_key: zod_1.z.string().optional(),
155
158
  externalLinks: zod_1.z.array(zod_schemas_2.zExternalLinkSchema).optional(),
159
+ quick_reply_actions: zod_1.z.array(zod_schemas_3.zQuickReplyActionIntentSchema).optional(),
156
160
  })
157
161
  .passthrough()
158
162
  .superRefine((data, ctx) => {
@@ -203,6 +207,7 @@ exports.zNexusDirectSendPayloadSchema = zod_1.z
203
207
  dedup_key: zod_1.z.string().optional(),
204
208
  dedup_group_key: zod_1.z.string().optional(),
205
209
  externalLinks: zod_1.z.array(zod_schemas_2.zExternalLinkSchema).optional(),
210
+ quick_reply_actions: zod_1.z.array(zod_schemas_3.zQuickReplyActionIntentSchema).optional(),
206
211
  })
207
212
  .passthrough()
208
213
  .superRefine((data, ctx) => {
@@ -1,6 +1,7 @@
1
1
  import { z } from "zod";
2
2
  import { zFireDocSchema } from "../shared/zod-schemas";
3
3
  import { zExternalLinkSchema } from "../evo-task/zod-schemas";
4
+ import { zQuickReplyActionIntentSchema } from "./quick-reply-action/zod-schemas";
4
5
 
5
6
  // ---- Primitives ----
6
7
 
@@ -16,6 +17,7 @@ export const zNotificationMessageStatusSchema = z.enum([
16
17
  "processing",
17
18
  "sent",
18
19
  "delivered",
20
+ "read",
19
21
  "failed",
20
22
  "cancelled",
21
23
  "suppressed",
@@ -106,6 +108,7 @@ export const zNotificationMessageSchema = zFireDocSchema
106
108
  processing_started_at: z.coerce.date().optional(),
107
109
  sent_at: z.coerce.date().optional(),
108
110
  delivered_at: z.coerce.date().optional(),
111
+ read_at: z.coerce.date().optional(),
109
112
  completed_at: z.coerce.date().optional(),
110
113
  provider: zNotificationProviderMetaSchema.optional(),
111
114
  error: zNotificationErrorSchema.optional(),
@@ -168,6 +171,7 @@ export const zDirectSendPayloadSchema = z
168
171
  dedup_key: z.string().optional(),
169
172
  dedup_group_key: z.string().optional(),
170
173
  externalLinks: z.array(zExternalLinkSchema).optional(),
174
+ quick_reply_actions: z.array(zQuickReplyActionIntentSchema).optional(),
171
175
  })
172
176
  .passthrough()
173
177
  .superRefine((data, ctx) => {
@@ -224,6 +228,7 @@ export const zNexusDirectSendPayloadSchema = z
224
228
  dedup_key: z.string().optional(),
225
229
  dedup_group_key: z.string().optional(),
226
230
  externalLinks: z.array(zExternalLinkSchema).optional(),
231
+ quick_reply_actions: z.array(zQuickReplyActionIntentSchema).optional(),
227
232
  })
228
233
  .passthrough()
229
234
  .superRefine((data, ctx) => {