@closerepo/notification-contracts 1.6.0 → 1.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -5,6 +5,8 @@ declare const notificationDeliveryContractVersionV2: 2;
5
5
  declare const notificationDeliveryContractVersionV3: 3;
6
6
  declare const notificationDeliveryContractVersionV4: 4;
7
7
  declare const notificationDeliveryContractVersionV5: 5;
8
+ declare const notificationDeliveryContractVersionV7: 7;
9
+ declare const notificationDeliveryMaximumDestinationsV1 = 20;
8
10
  declare const notificationDeliveryRequestMaximumUtf8BytesV1: number;
9
11
  declare const notificationDeliveryMaximumDeadlineMillisecondsV1: number;
10
12
  declare const notificationDeliveryRequestMaximumUtf8BytesV2: number;
@@ -20,7 +22,10 @@ declare const localTaskDeliveryRequestMaximumUtf8BytesV1: number;
20
22
  declare const localTaskDeliveryMaximumDeadlineMillisecondsV1: number;
21
23
  declare const notificationDeliveryStatesV1: readonly ["pending", "delivering", "partial", "delivered", "failed", "expired"];
22
24
  declare const notificationDeliveryReasonsV1: readonly ["accepted", "enqueue_retry_wait", "in_progress", "partial_delivery", "complete", "retry_exhausted", "delivery_deadline_exceeded", "destination_configuration_unavailable"];
25
+ declare const notificationDeliveryStatesV2: readonly ["pending", "delivering", "partial", "delivered", "failed", "expired", "unconfirmed"];
26
+ declare const notificationDeliveryReasonsV2: readonly ["accepted", "enqueue_retry_wait", "in_progress", "partial_delivery", "complete", "retry_exhausted", "delivery_deadline_exceeded", "destination_configuration_unavailable", "delivery_unconfirmed"];
23
27
  declare const notificationDestinationStatesV1: readonly ["pending", "delivering", "delivered", "failed", "expired"];
28
+ declare const notificationDestinationStatesV2: readonly ["pending", "delivering", "delivered", "failed", "expired", "unconfirmed"];
24
29
  declare const notificationDestinationFailureCodesV1: readonly ["provider_timeout", "provider_rate_limited", "provider_unavailable", "provider_rejected", "destination_configuration_unavailable", "delivery_interrupted", "retry_exhausted"];
25
30
  declare const notificationDeliveryRejectionCodesV1: readonly ["invalid_request", "request_too_large", "producer_scope_mismatch", "route_not_allowed", "event_identity_conflict", "route_not_found", "route_empty", "delivery_deadline_invalid"];
26
31
  declare const notificationValidationIssueCodesV1: readonly ["invalid_type", "invalid_value", "too_small", "too_big", "invalid_format", "unrecognized_keys", "custom"];
@@ -448,6 +453,96 @@ declare const notificationDeliveryRequestV6Schema: z.ZodObject<{
448
453
  revision: z.ZodNumber;
449
454
  }, z.core.$strict>;
450
455
  }, z.core.$strict>;
456
+ /** One event matches multiple subscriptions; destinations are unioned before admission. */
457
+ declare const notificationDeliveryRequestV7Schema: z.ZodObject<{
458
+ contractVersion: z.ZodLiteral<7>;
459
+ routeKeys: z.ZodArray<z.ZodString>;
460
+ message: z.ZodObject<{
461
+ type: z.ZodLiteral<"structured_notification">;
462
+ links: z.ZodArray<z.ZodObject<{
463
+ key: z.ZodString;
464
+ url: z.ZodString;
465
+ }, z.core.$strict>>;
466
+ bodies: z.ZodArray<z.ZodObject<{
467
+ key: z.ZodString;
468
+ value: z.ZodString;
469
+ }, z.core.$strict>>;
470
+ variants: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
471
+ key: z.ZodLiteral<"source">;
472
+ title: z.ZodString;
473
+ locale: z.ZodLiteral<"und">;
474
+ sections: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
475
+ key: z.ZodString;
476
+ type: z.ZodLiteral<"text">;
477
+ label: z.ZodOptional<z.ZodString>;
478
+ value: z.ZodString;
479
+ }, z.core.$strict>, z.ZodObject<{
480
+ key: z.ZodString;
481
+ type: z.ZodLiteral<"fields">;
482
+ items: z.ZodArray<z.ZodObject<{
483
+ label: z.ZodString;
484
+ value: z.ZodString;
485
+ }, z.core.$strict>>;
486
+ }, z.core.$strict>], "type">>;
487
+ linkLabels: z.ZodArray<z.ZodObject<{
488
+ key: z.ZodString;
489
+ label: z.ZodString;
490
+ }, z.core.$strict>>;
491
+ bodyRefs: z.ZodArray<z.ZodObject<{
492
+ key: z.ZodString;
493
+ label: z.ZodString;
494
+ }, z.core.$strict>>;
495
+ footer: z.ZodOptional<z.ZodString>;
496
+ }, z.core.$strict>, z.ZodObject<{
497
+ key: z.ZodLiteral<"zh-CN">;
498
+ title: z.ZodString;
499
+ locale: z.ZodLiteral<"zh-CN">;
500
+ sections: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
501
+ key: z.ZodString;
502
+ type: z.ZodLiteral<"text">;
503
+ label: z.ZodOptional<z.ZodString>;
504
+ value: z.ZodString;
505
+ }, z.core.$strict>, z.ZodObject<{
506
+ key: z.ZodString;
507
+ type: z.ZodLiteral<"fields">;
508
+ items: z.ZodArray<z.ZodObject<{
509
+ label: z.ZodString;
510
+ value: z.ZodString;
511
+ }, z.core.$strict>>;
512
+ }, z.core.$strict>], "type">>;
513
+ linkLabels: z.ZodArray<z.ZodObject<{
514
+ key: z.ZodString;
515
+ label: z.ZodString;
516
+ }, z.core.$strict>>;
517
+ bodyRefs: z.ZodArray<z.ZodObject<{
518
+ key: z.ZodString;
519
+ label: z.ZodString;
520
+ }, z.core.$strict>>;
521
+ footer: z.ZodOptional<z.ZodString>;
522
+ }, z.core.$strict>], "key">>;
523
+ }, z.core.$strict>;
524
+ eventType: z.ZodLiteral<"notification.delivery.requested">;
525
+ eventId: z.ZodString;
526
+ producer: z.ZodObject<{
527
+ key: z.ZodString;
528
+ environment: z.ZodString;
529
+ }, z.core.$strict>;
530
+ occurredAt: z.ZodString;
531
+ requestedAt: z.ZodString;
532
+ deliverBy: z.ZodString;
533
+ subject: z.ZodObject<{
534
+ type: z.ZodString;
535
+ id: z.ZodString;
536
+ revision: z.ZodNumber;
537
+ }, z.core.$strict>;
538
+ }, z.core.$strict>;
539
+ type NotificationDeliveryRequestV7 = z.infer<typeof notificationDeliveryRequestV7Schema>;
540
+ /** Reads routing facts from current envelopes and historical single-route records. */
541
+ declare function notificationRouteKeys(value: {
542
+ routeKey: string;
543
+ } | {
544
+ routeKeys: string[];
545
+ }): string[];
451
546
  type NotificationDeliveryRequestV6 = z.infer<typeof notificationDeliveryRequestV6Schema>;
452
547
  declare const creatorDraftTaskV1Schema: z.ZodObject<{
453
548
  type: z.ZodLiteral<"creator.draft.v1">;
@@ -868,6 +963,87 @@ declare const notificationDeliveryRequestSchema: z.ZodUnion<readonly [z.ZodObjec
868
963
  id: z.ZodString;
869
964
  revision: z.ZodNumber;
870
965
  }, z.core.$strict>;
966
+ }, z.core.$strict>, z.ZodObject<{
967
+ contractVersion: z.ZodLiteral<7>;
968
+ routeKeys: z.ZodArray<z.ZodString>;
969
+ message: z.ZodObject<{
970
+ type: z.ZodLiteral<"structured_notification">;
971
+ links: z.ZodArray<z.ZodObject<{
972
+ key: z.ZodString;
973
+ url: z.ZodString;
974
+ }, z.core.$strict>>;
975
+ bodies: z.ZodArray<z.ZodObject<{
976
+ key: z.ZodString;
977
+ value: z.ZodString;
978
+ }, z.core.$strict>>;
979
+ variants: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
980
+ key: z.ZodLiteral<"source">;
981
+ title: z.ZodString;
982
+ locale: z.ZodLiteral<"und">;
983
+ sections: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
984
+ key: z.ZodString;
985
+ type: z.ZodLiteral<"text">;
986
+ label: z.ZodOptional<z.ZodString>;
987
+ value: z.ZodString;
988
+ }, z.core.$strict>, z.ZodObject<{
989
+ key: z.ZodString;
990
+ type: z.ZodLiteral<"fields">;
991
+ items: z.ZodArray<z.ZodObject<{
992
+ label: z.ZodString;
993
+ value: z.ZodString;
994
+ }, z.core.$strict>>;
995
+ }, z.core.$strict>], "type">>;
996
+ linkLabels: z.ZodArray<z.ZodObject<{
997
+ key: z.ZodString;
998
+ label: z.ZodString;
999
+ }, z.core.$strict>>;
1000
+ bodyRefs: z.ZodArray<z.ZodObject<{
1001
+ key: z.ZodString;
1002
+ label: z.ZodString;
1003
+ }, z.core.$strict>>;
1004
+ footer: z.ZodOptional<z.ZodString>;
1005
+ }, z.core.$strict>, z.ZodObject<{
1006
+ key: z.ZodLiteral<"zh-CN">;
1007
+ title: z.ZodString;
1008
+ locale: z.ZodLiteral<"zh-CN">;
1009
+ sections: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1010
+ key: z.ZodString;
1011
+ type: z.ZodLiteral<"text">;
1012
+ label: z.ZodOptional<z.ZodString>;
1013
+ value: z.ZodString;
1014
+ }, z.core.$strict>, z.ZodObject<{
1015
+ key: z.ZodString;
1016
+ type: z.ZodLiteral<"fields">;
1017
+ items: z.ZodArray<z.ZodObject<{
1018
+ label: z.ZodString;
1019
+ value: z.ZodString;
1020
+ }, z.core.$strict>>;
1021
+ }, z.core.$strict>], "type">>;
1022
+ linkLabels: z.ZodArray<z.ZodObject<{
1023
+ key: z.ZodString;
1024
+ label: z.ZodString;
1025
+ }, z.core.$strict>>;
1026
+ bodyRefs: z.ZodArray<z.ZodObject<{
1027
+ key: z.ZodString;
1028
+ label: z.ZodString;
1029
+ }, z.core.$strict>>;
1030
+ footer: z.ZodOptional<z.ZodString>;
1031
+ }, z.core.$strict>], "key">>;
1032
+ }, z.core.$strict>;
1033
+ eventType: z.ZodLiteral<"notification.delivery.requested">;
1034
+ eventId: z.ZodString;
1035
+ producer: z.ZodObject<{
1036
+ key: z.ZodString;
1037
+ environment: z.ZodString;
1038
+ }, z.core.$strict>;
1039
+ occurredAt: z.ZodString;
1040
+ requestedAt: z.ZodString;
1041
+ deliverBy: z.ZodString;
1042
+ subject: z.ZodObject<{
1043
+ type: z.ZodString;
1044
+ id: z.ZodString;
1045
+ revision: z.ZodNumber;
1046
+ }, z.core.$strict>;
871
1047
  }, z.core.$strict>]>;
872
1048
  declare const notificationDeliveryReceiptV1Schema: z.ZodObject<{
873
1049
  contractVersion: z.ZodLiteral<1>;
@@ -929,64 +1105,669 @@ declare const notificationDeliveryReceiptV1Schema: z.ZodObject<{
929
1105
  leaseExpiresAt: z.ZodNullable<z.ZodString>;
930
1106
  }, z.core.$strict>>;
931
1107
  }, z.core.$strict>;
932
- declare const notificationDeliveryRejectionV1Schema: z.ZodUnion<readonly [z.ZodObject<{
933
- code: z.ZodLiteral<"invalid_request">;
934
- issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
935
- path: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
936
- code: z.ZodEnum<{
937
- invalid_type: "invalid_type";
938
- invalid_value: "invalid_value";
939
- too_small: "too_small";
940
- too_big: "too_big";
941
- invalid_format: "invalid_format";
942
- unrecognized_keys: "unrecognized_keys";
943
- custom: "custom";
944
- }>;
945
- }, z.core.$strict>>>;
946
- }, z.core.$strict>, z.ZodObject<{
947
- code: z.ZodEnum<{
948
- request_too_large: "request_too_large";
949
- producer_scope_mismatch: "producer_scope_mismatch";
950
- route_not_allowed: "route_not_allowed";
951
- event_identity_conflict: "event_identity_conflict";
952
- route_not_found: "route_not_found";
953
- route_empty: "route_empty";
954
- delivery_deadline_invalid: "delivery_deadline_invalid";
1108
+ declare const safeDeliveryCauseSchema: z.ZodObject<{
1109
+ name: z.ZodString;
1110
+ message: z.ZodOptional<z.ZodString>;
1111
+ code: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
1112
+ status: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
1113
+ cause: z.ZodOptional<z.ZodObject<{
1114
+ name: z.ZodString;
1115
+ message: z.ZodOptional<z.ZodString>;
1116
+ code: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
1117
+ status: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
1118
+ cause: z.ZodOptional<z.ZodObject<{
1119
+ name: z.ZodString;
1120
+ message: z.ZodOptional<z.ZodString>;
1121
+ code: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
1122
+ status: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
1123
+ cause: z.ZodOptional<z.ZodObject<{
1124
+ name: z.ZodString;
1125
+ message: z.ZodOptional<z.ZodString>;
1126
+ code: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
1127
+ status: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
1128
+ }, z.core.$strict>>;
1129
+ }, z.core.$strict>>;
1130
+ }, z.core.$strict>>;
1131
+ }, z.core.$strict>;
1132
+ /** Message receipt V2 is additive; V1 remains the local-task and in-flight format. */
1133
+ declare const notificationDeliveryReceiptV2Schema: z.ZodObject<{
1134
+ eventId: z.ZodString;
1135
+ producer: z.ZodObject<{
1136
+ key: z.ZodString;
1137
+ environment: z.ZodString;
1138
+ }, z.core.$strict>;
1139
+ routeKey: z.ZodString;
1140
+ subject: z.ZodObject<{
1141
+ type: z.ZodString;
1142
+ id: z.ZodString;
1143
+ revision: z.ZodNumber;
1144
+ }, z.core.$strict>;
1145
+ terminal: z.ZodBoolean;
1146
+ acceptedAt: z.ZodString;
1147
+ updatedAt: z.ZodString;
1148
+ deliverBy: z.ZodString;
1149
+ terminalAt: z.ZodNullable<z.ZodString>;
1150
+ contractVersion: z.ZodLiteral<2>;
1151
+ state: z.ZodEnum<{
1152
+ pending: "pending";
1153
+ delivering: "delivering";
1154
+ partial: "partial";
1155
+ delivered: "delivered";
1156
+ failed: "failed";
1157
+ expired: "expired";
1158
+ unconfirmed: "unconfirmed";
955
1159
  }>;
956
- }, z.core.$strict>]>;
957
- declare const notificationDeliverResultV1Schema: z.ZodDiscriminatedUnion<[z.ZodObject<{
958
- status: z.ZodLiteral<"accepted">;
959
- receipt: z.ZodObject<{
960
- contractVersion: z.ZodLiteral<1>;
961
- eventId: z.ZodString;
962
- producer: z.ZodObject<{
963
- key: z.ZodString;
964
- environment: z.ZodString;
965
- }, z.core.$strict>;
966
- routeKey: z.ZodString;
967
- subject: z.ZodObject<{
968
- type: z.ZodString;
969
- id: z.ZodString;
970
- revision: z.ZodNumber;
971
- }, z.core.$strict>;
1160
+ reason: z.ZodEnum<{
1161
+ accepted: "accepted";
1162
+ enqueue_retry_wait: "enqueue_retry_wait";
1163
+ in_progress: "in_progress";
1164
+ partial_delivery: "partial_delivery";
1165
+ complete: "complete";
1166
+ retry_exhausted: "retry_exhausted";
1167
+ delivery_deadline_exceeded: "delivery_deadline_exceeded";
1168
+ destination_configuration_unavailable: "destination_configuration_unavailable";
1169
+ delivery_unconfirmed: "delivery_unconfirmed";
1170
+ }>;
1171
+ revision: z.ZodNumber;
1172
+ destinations: z.ZodArray<z.ZodObject<{
1173
+ destinationKey: z.ZodString;
1174
+ failureCode: z.ZodNullable<z.ZodEnum<{
1175
+ retry_exhausted: "retry_exhausted";
1176
+ destination_configuration_unavailable: "destination_configuration_unavailable";
1177
+ provider_timeout: "provider_timeout";
1178
+ provider_rate_limited: "provider_rate_limited";
1179
+ provider_unavailable: "provider_unavailable";
1180
+ provider_rejected: "provider_rejected";
1181
+ delivery_interrupted: "delivery_interrupted";
1182
+ }>>;
1183
+ lastAttemptAt: z.ZodNullable<z.ZodString>;
1184
+ nextAttemptAt: z.ZodNullable<z.ZodString>;
1185
+ leaseExpiresAt: z.ZodNullable<z.ZodString>;
972
1186
  state: z.ZodEnum<{
973
1187
  pending: "pending";
974
1188
  delivering: "delivering";
975
- partial: "partial";
976
1189
  delivered: "delivered";
977
1190
  failed: "failed";
978
1191
  expired: "expired";
1192
+ unconfirmed: "unconfirmed";
1193
+ }>;
1194
+ attempts: z.ZodNumber;
1195
+ revision: z.ZodNumber;
1196
+ cause: z.ZodNullable<z.ZodObject<{
1197
+ name: z.ZodString;
1198
+ message: z.ZodOptional<z.ZodString>;
1199
+ code: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
1200
+ status: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
1201
+ cause: z.ZodOptional<z.ZodObject<{
1202
+ name: z.ZodString;
1203
+ message: z.ZodOptional<z.ZodString>;
1204
+ code: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
1205
+ status: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
1206
+ cause: z.ZodOptional<z.ZodObject<{
1207
+ name: z.ZodString;
1208
+ message: z.ZodOptional<z.ZodString>;
1209
+ code: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
1210
+ status: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
1211
+ cause: z.ZodOptional<z.ZodObject<{
1212
+ name: z.ZodString;
1213
+ message: z.ZodOptional<z.ZodString>;
1214
+ code: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
1215
+ status: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
1216
+ }, z.core.$strict>>;
1217
+ }, z.core.$strict>>;
1218
+ }, z.core.$strict>>;
1219
+ }, z.core.$strict>>;
1220
+ unconfirmedAt: z.ZodNullable<z.ZodString>;
1221
+ }, z.core.$strict>>;
1222
+ }, z.core.$strict>;
1223
+ /** V3 retains independent destination outcomes and records every matched route. */
1224
+ declare const notificationDeliveryReceiptV3Schema: z.ZodObject<{
1225
+ revision: z.ZodNumber;
1226
+ eventId: z.ZodString;
1227
+ producer: z.ZodObject<{
1228
+ key: z.ZodString;
1229
+ environment: z.ZodString;
1230
+ }, z.core.$strict>;
1231
+ deliverBy: z.ZodString;
1232
+ subject: z.ZodObject<{
1233
+ type: z.ZodString;
1234
+ id: z.ZodString;
1235
+ revision: z.ZodNumber;
1236
+ }, z.core.$strict>;
1237
+ acceptedAt: z.ZodString;
1238
+ updatedAt: z.ZodString;
1239
+ state: z.ZodEnum<{
1240
+ pending: "pending";
1241
+ delivering: "delivering";
1242
+ partial: "partial";
1243
+ delivered: "delivered";
1244
+ failed: "failed";
1245
+ expired: "expired";
1246
+ unconfirmed: "unconfirmed";
1247
+ }>;
1248
+ reason: z.ZodEnum<{
1249
+ accepted: "accepted";
1250
+ enqueue_retry_wait: "enqueue_retry_wait";
1251
+ in_progress: "in_progress";
1252
+ partial_delivery: "partial_delivery";
1253
+ complete: "complete";
1254
+ retry_exhausted: "retry_exhausted";
1255
+ delivery_deadline_exceeded: "delivery_deadline_exceeded";
1256
+ destination_configuration_unavailable: "destination_configuration_unavailable";
1257
+ delivery_unconfirmed: "delivery_unconfirmed";
1258
+ }>;
1259
+ terminal: z.ZodBoolean;
1260
+ terminalAt: z.ZodNullable<z.ZodString>;
1261
+ destinations: z.ZodArray<z.ZodObject<{
1262
+ destinationKey: z.ZodString;
1263
+ failureCode: z.ZodNullable<z.ZodEnum<{
1264
+ retry_exhausted: "retry_exhausted";
1265
+ destination_configuration_unavailable: "destination_configuration_unavailable";
1266
+ provider_timeout: "provider_timeout";
1267
+ provider_rate_limited: "provider_rate_limited";
1268
+ provider_unavailable: "provider_unavailable";
1269
+ provider_rejected: "provider_rejected";
1270
+ delivery_interrupted: "delivery_interrupted";
1271
+ }>>;
1272
+ lastAttemptAt: z.ZodNullable<z.ZodString>;
1273
+ nextAttemptAt: z.ZodNullable<z.ZodString>;
1274
+ leaseExpiresAt: z.ZodNullable<z.ZodString>;
1275
+ state: z.ZodEnum<{
1276
+ pending: "pending";
1277
+ delivering: "delivering";
1278
+ delivered: "delivered";
1279
+ failed: "failed";
1280
+ expired: "expired";
1281
+ unconfirmed: "unconfirmed";
1282
+ }>;
1283
+ attempts: z.ZodNumber;
1284
+ revision: z.ZodNumber;
1285
+ cause: z.ZodNullable<z.ZodObject<{
1286
+ name: z.ZodString;
1287
+ message: z.ZodOptional<z.ZodString>;
1288
+ code: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
1289
+ status: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
1290
+ cause: z.ZodOptional<z.ZodObject<{
1291
+ name: z.ZodString;
1292
+ message: z.ZodOptional<z.ZodString>;
1293
+ code: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
1294
+ status: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
1295
+ cause: z.ZodOptional<z.ZodObject<{
1296
+ name: z.ZodString;
1297
+ message: z.ZodOptional<z.ZodString>;
1298
+ code: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
1299
+ status: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
1300
+ cause: z.ZodOptional<z.ZodObject<{
1301
+ name: z.ZodString;
1302
+ message: z.ZodOptional<z.ZodString>;
1303
+ code: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
1304
+ status: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
1305
+ }, z.core.$strict>>;
1306
+ }, z.core.$strict>>;
1307
+ }, z.core.$strict>>;
1308
+ }, z.core.$strict>>;
1309
+ unconfirmedAt: z.ZodNullable<z.ZodString>;
1310
+ }, z.core.$strict>>;
1311
+ contractVersion: z.ZodLiteral<3>;
1312
+ routeKeys: z.ZodArray<z.ZodString>;
1313
+ }, z.core.$strict>;
1314
+ type NotificationDeliveryReceiptV3 = z.infer<typeof notificationDeliveryReceiptV3Schema>;
1315
+ declare const notificationMessageReceiptSchema: z.ZodUnion<readonly [z.ZodObject<{
1316
+ contractVersion: z.ZodLiteral<1>;
1317
+ eventId: z.ZodString;
1318
+ producer: z.ZodObject<{
1319
+ key: z.ZodString;
1320
+ environment: z.ZodString;
1321
+ }, z.core.$strict>;
1322
+ routeKey: z.ZodString;
1323
+ subject: z.ZodObject<{
1324
+ type: z.ZodString;
1325
+ id: z.ZodString;
1326
+ revision: z.ZodNumber;
1327
+ }, z.core.$strict>;
1328
+ state: z.ZodEnum<{
1329
+ pending: "pending";
1330
+ delivering: "delivering";
1331
+ partial: "partial";
1332
+ delivered: "delivered";
1333
+ failed: "failed";
1334
+ expired: "expired";
1335
+ }>;
1336
+ reason: z.ZodEnum<{
1337
+ accepted: "accepted";
1338
+ enqueue_retry_wait: "enqueue_retry_wait";
1339
+ in_progress: "in_progress";
1340
+ partial_delivery: "partial_delivery";
1341
+ complete: "complete";
1342
+ retry_exhausted: "retry_exhausted";
1343
+ delivery_deadline_exceeded: "delivery_deadline_exceeded";
1344
+ destination_configuration_unavailable: "destination_configuration_unavailable";
1345
+ }>;
1346
+ terminal: z.ZodBoolean;
1347
+ acceptedAt: z.ZodString;
1348
+ updatedAt: z.ZodString;
1349
+ deliverBy: z.ZodString;
1350
+ terminalAt: z.ZodNullable<z.ZodString>;
1351
+ destinations: z.ZodArray<z.ZodObject<{
1352
+ destinationKey: z.ZodString;
1353
+ state: z.ZodEnum<{
1354
+ pending: "pending";
1355
+ delivering: "delivering";
1356
+ delivered: "delivered";
1357
+ failed: "failed";
1358
+ expired: "expired";
1359
+ }>;
1360
+ attempts: z.ZodNumber;
1361
+ failureCode: z.ZodNullable<z.ZodEnum<{
1362
+ retry_exhausted: "retry_exhausted";
1363
+ destination_configuration_unavailable: "destination_configuration_unavailable";
1364
+ provider_timeout: "provider_timeout";
1365
+ provider_rate_limited: "provider_rate_limited";
1366
+ provider_unavailable: "provider_unavailable";
1367
+ provider_rejected: "provider_rejected";
1368
+ delivery_interrupted: "delivery_interrupted";
1369
+ }>>;
1370
+ lastAttemptAt: z.ZodNullable<z.ZodString>;
1371
+ nextAttemptAt: z.ZodNullable<z.ZodString>;
1372
+ leaseExpiresAt: z.ZodNullable<z.ZodString>;
1373
+ }, z.core.$strict>>;
1374
+ }, z.core.$strict>, z.ZodObject<{
1375
+ eventId: z.ZodString;
1376
+ producer: z.ZodObject<{
1377
+ key: z.ZodString;
1378
+ environment: z.ZodString;
1379
+ }, z.core.$strict>;
1380
+ routeKey: z.ZodString;
1381
+ subject: z.ZodObject<{
1382
+ type: z.ZodString;
1383
+ id: z.ZodString;
1384
+ revision: z.ZodNumber;
1385
+ }, z.core.$strict>;
1386
+ terminal: z.ZodBoolean;
1387
+ acceptedAt: z.ZodString;
1388
+ updatedAt: z.ZodString;
1389
+ deliverBy: z.ZodString;
1390
+ terminalAt: z.ZodNullable<z.ZodString>;
1391
+ contractVersion: z.ZodLiteral<2>;
1392
+ state: z.ZodEnum<{
1393
+ pending: "pending";
1394
+ delivering: "delivering";
1395
+ partial: "partial";
1396
+ delivered: "delivered";
1397
+ failed: "failed";
1398
+ expired: "expired";
1399
+ unconfirmed: "unconfirmed";
1400
+ }>;
1401
+ reason: z.ZodEnum<{
1402
+ accepted: "accepted";
1403
+ enqueue_retry_wait: "enqueue_retry_wait";
1404
+ in_progress: "in_progress";
1405
+ partial_delivery: "partial_delivery";
1406
+ complete: "complete";
1407
+ retry_exhausted: "retry_exhausted";
1408
+ delivery_deadline_exceeded: "delivery_deadline_exceeded";
1409
+ destination_configuration_unavailable: "destination_configuration_unavailable";
1410
+ delivery_unconfirmed: "delivery_unconfirmed";
1411
+ }>;
1412
+ revision: z.ZodNumber;
1413
+ destinations: z.ZodArray<z.ZodObject<{
1414
+ destinationKey: z.ZodString;
1415
+ failureCode: z.ZodNullable<z.ZodEnum<{
1416
+ retry_exhausted: "retry_exhausted";
1417
+ destination_configuration_unavailable: "destination_configuration_unavailable";
1418
+ provider_timeout: "provider_timeout";
1419
+ provider_rate_limited: "provider_rate_limited";
1420
+ provider_unavailable: "provider_unavailable";
1421
+ provider_rejected: "provider_rejected";
1422
+ delivery_interrupted: "delivery_interrupted";
1423
+ }>>;
1424
+ lastAttemptAt: z.ZodNullable<z.ZodString>;
1425
+ nextAttemptAt: z.ZodNullable<z.ZodString>;
1426
+ leaseExpiresAt: z.ZodNullable<z.ZodString>;
1427
+ state: z.ZodEnum<{
1428
+ pending: "pending";
1429
+ delivering: "delivering";
1430
+ delivered: "delivered";
1431
+ failed: "failed";
1432
+ expired: "expired";
1433
+ unconfirmed: "unconfirmed";
1434
+ }>;
1435
+ attempts: z.ZodNumber;
1436
+ revision: z.ZodNumber;
1437
+ cause: z.ZodNullable<z.ZodObject<{
1438
+ name: z.ZodString;
1439
+ message: z.ZodOptional<z.ZodString>;
1440
+ code: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
1441
+ status: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
1442
+ cause: z.ZodOptional<z.ZodObject<{
1443
+ name: z.ZodString;
1444
+ message: z.ZodOptional<z.ZodString>;
1445
+ code: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
1446
+ status: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
1447
+ cause: z.ZodOptional<z.ZodObject<{
1448
+ name: z.ZodString;
1449
+ message: z.ZodOptional<z.ZodString>;
1450
+ code: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
1451
+ status: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
1452
+ cause: z.ZodOptional<z.ZodObject<{
1453
+ name: z.ZodString;
1454
+ message: z.ZodOptional<z.ZodString>;
1455
+ code: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
1456
+ status: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
1457
+ }, z.core.$strict>>;
1458
+ }, z.core.$strict>>;
1459
+ }, z.core.$strict>>;
1460
+ }, z.core.$strict>>;
1461
+ unconfirmedAt: z.ZodNullable<z.ZodString>;
1462
+ }, z.core.$strict>>;
1463
+ }, z.core.$strict>, z.ZodObject<{
1464
+ revision: z.ZodNumber;
1465
+ eventId: z.ZodString;
1466
+ producer: z.ZodObject<{
1467
+ key: z.ZodString;
1468
+ environment: z.ZodString;
1469
+ }, z.core.$strict>;
1470
+ deliverBy: z.ZodString;
1471
+ subject: z.ZodObject<{
1472
+ type: z.ZodString;
1473
+ id: z.ZodString;
1474
+ revision: z.ZodNumber;
1475
+ }, z.core.$strict>;
1476
+ acceptedAt: z.ZodString;
1477
+ updatedAt: z.ZodString;
1478
+ state: z.ZodEnum<{
1479
+ pending: "pending";
1480
+ delivering: "delivering";
1481
+ partial: "partial";
1482
+ delivered: "delivered";
1483
+ failed: "failed";
1484
+ expired: "expired";
1485
+ unconfirmed: "unconfirmed";
1486
+ }>;
1487
+ reason: z.ZodEnum<{
1488
+ accepted: "accepted";
1489
+ enqueue_retry_wait: "enqueue_retry_wait";
1490
+ in_progress: "in_progress";
1491
+ partial_delivery: "partial_delivery";
1492
+ complete: "complete";
1493
+ retry_exhausted: "retry_exhausted";
1494
+ delivery_deadline_exceeded: "delivery_deadline_exceeded";
1495
+ destination_configuration_unavailable: "destination_configuration_unavailable";
1496
+ delivery_unconfirmed: "delivery_unconfirmed";
1497
+ }>;
1498
+ terminal: z.ZodBoolean;
1499
+ terminalAt: z.ZodNullable<z.ZodString>;
1500
+ destinations: z.ZodArray<z.ZodObject<{
1501
+ destinationKey: z.ZodString;
1502
+ failureCode: z.ZodNullable<z.ZodEnum<{
1503
+ retry_exhausted: "retry_exhausted";
1504
+ destination_configuration_unavailable: "destination_configuration_unavailable";
1505
+ provider_timeout: "provider_timeout";
1506
+ provider_rate_limited: "provider_rate_limited";
1507
+ provider_unavailable: "provider_unavailable";
1508
+ provider_rejected: "provider_rejected";
1509
+ delivery_interrupted: "delivery_interrupted";
1510
+ }>>;
1511
+ lastAttemptAt: z.ZodNullable<z.ZodString>;
1512
+ nextAttemptAt: z.ZodNullable<z.ZodString>;
1513
+ leaseExpiresAt: z.ZodNullable<z.ZodString>;
1514
+ state: z.ZodEnum<{
1515
+ pending: "pending";
1516
+ delivering: "delivering";
1517
+ delivered: "delivered";
1518
+ failed: "failed";
1519
+ expired: "expired";
1520
+ unconfirmed: "unconfirmed";
1521
+ }>;
1522
+ attempts: z.ZodNumber;
1523
+ revision: z.ZodNumber;
1524
+ cause: z.ZodNullable<z.ZodObject<{
1525
+ name: z.ZodString;
1526
+ message: z.ZodOptional<z.ZodString>;
1527
+ code: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
1528
+ status: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
1529
+ cause: z.ZodOptional<z.ZodObject<{
1530
+ name: z.ZodString;
1531
+ message: z.ZodOptional<z.ZodString>;
1532
+ code: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
1533
+ status: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
1534
+ cause: z.ZodOptional<z.ZodObject<{
1535
+ name: z.ZodString;
1536
+ message: z.ZodOptional<z.ZodString>;
1537
+ code: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
1538
+ status: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
1539
+ cause: z.ZodOptional<z.ZodObject<{
1540
+ name: z.ZodString;
1541
+ message: z.ZodOptional<z.ZodString>;
1542
+ code: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
1543
+ status: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
1544
+ }, z.core.$strict>>;
1545
+ }, z.core.$strict>>;
1546
+ }, z.core.$strict>>;
1547
+ }, z.core.$strict>>;
1548
+ unconfirmedAt: z.ZodNullable<z.ZodString>;
1549
+ }, z.core.$strict>>;
1550
+ contractVersion: z.ZodLiteral<3>;
1551
+ routeKeys: z.ZodArray<z.ZodString>;
1552
+ }, z.core.$strict>]>;
1553
+ declare const notificationDeliveryRejectionV1Schema: z.ZodUnion<readonly [z.ZodObject<{
1554
+ code: z.ZodLiteral<"invalid_request">;
1555
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
1556
+ path: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
1557
+ code: z.ZodEnum<{
1558
+ invalid_type: "invalid_type";
1559
+ invalid_value: "invalid_value";
1560
+ too_small: "too_small";
1561
+ too_big: "too_big";
1562
+ invalid_format: "invalid_format";
1563
+ unrecognized_keys: "unrecognized_keys";
1564
+ custom: "custom";
1565
+ }>;
1566
+ }, z.core.$strict>>>;
1567
+ }, z.core.$strict>, z.ZodObject<{
1568
+ code: z.ZodEnum<{
1569
+ request_too_large: "request_too_large";
1570
+ producer_scope_mismatch: "producer_scope_mismatch";
1571
+ route_not_allowed: "route_not_allowed";
1572
+ event_identity_conflict: "event_identity_conflict";
1573
+ route_not_found: "route_not_found";
1574
+ route_empty: "route_empty";
1575
+ delivery_deadline_invalid: "delivery_deadline_invalid";
1576
+ }>;
1577
+ }, z.core.$strict>]>;
1578
+ declare const notificationDeliverResultV1Schema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1579
+ status: z.ZodLiteral<"accepted">;
1580
+ receipt: z.ZodObject<{
1581
+ contractVersion: z.ZodLiteral<1>;
1582
+ eventId: z.ZodString;
1583
+ producer: z.ZodObject<{
1584
+ key: z.ZodString;
1585
+ environment: z.ZodString;
1586
+ }, z.core.$strict>;
1587
+ routeKey: z.ZodString;
1588
+ subject: z.ZodObject<{
1589
+ type: z.ZodString;
1590
+ id: z.ZodString;
1591
+ revision: z.ZodNumber;
1592
+ }, z.core.$strict>;
1593
+ state: z.ZodEnum<{
1594
+ pending: "pending";
1595
+ delivering: "delivering";
1596
+ partial: "partial";
1597
+ delivered: "delivered";
1598
+ failed: "failed";
1599
+ expired: "expired";
1600
+ }>;
1601
+ reason: z.ZodEnum<{
1602
+ accepted: "accepted";
1603
+ enqueue_retry_wait: "enqueue_retry_wait";
1604
+ in_progress: "in_progress";
1605
+ partial_delivery: "partial_delivery";
1606
+ complete: "complete";
1607
+ retry_exhausted: "retry_exhausted";
1608
+ delivery_deadline_exceeded: "delivery_deadline_exceeded";
1609
+ destination_configuration_unavailable: "destination_configuration_unavailable";
1610
+ }>;
1611
+ terminal: z.ZodBoolean;
1612
+ acceptedAt: z.ZodString;
1613
+ updatedAt: z.ZodString;
1614
+ deliverBy: z.ZodString;
1615
+ terminalAt: z.ZodNullable<z.ZodString>;
1616
+ destinations: z.ZodArray<z.ZodObject<{
1617
+ destinationKey: z.ZodString;
1618
+ state: z.ZodEnum<{
1619
+ pending: "pending";
1620
+ delivering: "delivering";
1621
+ delivered: "delivered";
1622
+ failed: "failed";
1623
+ expired: "expired";
1624
+ }>;
1625
+ attempts: z.ZodNumber;
1626
+ failureCode: z.ZodNullable<z.ZodEnum<{
1627
+ retry_exhausted: "retry_exhausted";
1628
+ destination_configuration_unavailable: "destination_configuration_unavailable";
1629
+ provider_timeout: "provider_timeout";
1630
+ provider_rate_limited: "provider_rate_limited";
1631
+ provider_unavailable: "provider_unavailable";
1632
+ provider_rejected: "provider_rejected";
1633
+ delivery_interrupted: "delivery_interrupted";
1634
+ }>>;
1635
+ lastAttemptAt: z.ZodNullable<z.ZodString>;
1636
+ nextAttemptAt: z.ZodNullable<z.ZodString>;
1637
+ leaseExpiresAt: z.ZodNullable<z.ZodString>;
1638
+ }, z.core.$strict>>;
1639
+ }, z.core.$strict>;
1640
+ }, z.core.$strict>, z.ZodObject<{
1641
+ status: z.ZodLiteral<"rejected">;
1642
+ error: z.ZodUnion<readonly [z.ZodObject<{
1643
+ code: z.ZodLiteral<"invalid_request">;
1644
+ issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
1645
+ path: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
1646
+ code: z.ZodEnum<{
1647
+ invalid_type: "invalid_type";
1648
+ invalid_value: "invalid_value";
1649
+ too_small: "too_small";
1650
+ too_big: "too_big";
1651
+ invalid_format: "invalid_format";
1652
+ unrecognized_keys: "unrecognized_keys";
1653
+ custom: "custom";
1654
+ }>;
1655
+ }, z.core.$strict>>>;
1656
+ }, z.core.$strict>, z.ZodObject<{
1657
+ code: z.ZodEnum<{
1658
+ request_too_large: "request_too_large";
1659
+ producer_scope_mismatch: "producer_scope_mismatch";
1660
+ route_not_allowed: "route_not_allowed";
1661
+ event_identity_conflict: "event_identity_conflict";
1662
+ route_not_found: "route_not_found";
1663
+ route_empty: "route_empty";
1664
+ delivery_deadline_invalid: "delivery_deadline_invalid";
1665
+ }>;
1666
+ }, z.core.$strict>]>;
1667
+ }, z.core.$strict>], "status">;
1668
+ declare const notificationGetReceiptResultV1Schema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1669
+ status: z.ZodLiteral<"found">;
1670
+ receipt: z.ZodObject<{
1671
+ contractVersion: z.ZodLiteral<1>;
1672
+ eventId: z.ZodString;
1673
+ producer: z.ZodObject<{
1674
+ key: z.ZodString;
1675
+ environment: z.ZodString;
1676
+ }, z.core.$strict>;
1677
+ routeKey: z.ZodString;
1678
+ subject: z.ZodObject<{
1679
+ type: z.ZodString;
1680
+ id: z.ZodString;
1681
+ revision: z.ZodNumber;
1682
+ }, z.core.$strict>;
1683
+ state: z.ZodEnum<{
1684
+ pending: "pending";
1685
+ delivering: "delivering";
1686
+ partial: "partial";
1687
+ delivered: "delivered";
1688
+ failed: "failed";
1689
+ expired: "expired";
1690
+ }>;
1691
+ reason: z.ZodEnum<{
1692
+ accepted: "accepted";
1693
+ enqueue_retry_wait: "enqueue_retry_wait";
1694
+ in_progress: "in_progress";
1695
+ partial_delivery: "partial_delivery";
1696
+ complete: "complete";
1697
+ retry_exhausted: "retry_exhausted";
1698
+ delivery_deadline_exceeded: "delivery_deadline_exceeded";
1699
+ destination_configuration_unavailable: "destination_configuration_unavailable";
1700
+ }>;
1701
+ terminal: z.ZodBoolean;
1702
+ acceptedAt: z.ZodString;
1703
+ updatedAt: z.ZodString;
1704
+ deliverBy: z.ZodString;
1705
+ terminalAt: z.ZodNullable<z.ZodString>;
1706
+ destinations: z.ZodArray<z.ZodObject<{
1707
+ destinationKey: z.ZodString;
1708
+ state: z.ZodEnum<{
1709
+ pending: "pending";
1710
+ delivering: "delivering";
1711
+ delivered: "delivered";
1712
+ failed: "failed";
1713
+ expired: "expired";
1714
+ }>;
1715
+ attempts: z.ZodNumber;
1716
+ failureCode: z.ZodNullable<z.ZodEnum<{
1717
+ retry_exhausted: "retry_exhausted";
1718
+ destination_configuration_unavailable: "destination_configuration_unavailable";
1719
+ provider_timeout: "provider_timeout";
1720
+ provider_rate_limited: "provider_rate_limited";
1721
+ provider_unavailable: "provider_unavailable";
1722
+ provider_rejected: "provider_rejected";
1723
+ delivery_interrupted: "delivery_interrupted";
1724
+ }>>;
1725
+ lastAttemptAt: z.ZodNullable<z.ZodString>;
1726
+ nextAttemptAt: z.ZodNullable<z.ZodString>;
1727
+ leaseExpiresAt: z.ZodNullable<z.ZodString>;
1728
+ }, z.core.$strict>>;
1729
+ }, z.core.$strict>;
1730
+ }, z.core.$strict>, z.ZodObject<{
1731
+ status: z.ZodLiteral<"not_found">;
1732
+ }, z.core.$strict>, z.ZodObject<{
1733
+ status: z.ZodLiteral<"unavailable">;
1734
+ error: z.ZodObject<{
1735
+ code: z.ZodLiteral<"receipt_unavailable">;
1736
+ }, z.core.$strict>;
1737
+ }, z.core.$strict>], "status">;
1738
+ declare const notificationDeliverResultV2Schema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1739
+ status: z.ZodLiteral<"accepted">;
1740
+ receipt: z.ZodUnion<readonly [z.ZodObject<{
1741
+ contractVersion: z.ZodLiteral<1>;
1742
+ eventId: z.ZodString;
1743
+ producer: z.ZodObject<{
1744
+ key: z.ZodString;
1745
+ environment: z.ZodString;
1746
+ }, z.core.$strict>;
1747
+ routeKey: z.ZodString;
1748
+ subject: z.ZodObject<{
1749
+ type: z.ZodString;
1750
+ id: z.ZodString;
1751
+ revision: z.ZodNumber;
1752
+ }, z.core.$strict>;
1753
+ state: z.ZodEnum<{
1754
+ pending: "pending";
1755
+ delivering: "delivering";
1756
+ partial: "partial";
1757
+ delivered: "delivered";
1758
+ failed: "failed";
1759
+ expired: "expired";
1760
+ }>;
1761
+ reason: z.ZodEnum<{
1762
+ accepted: "accepted";
1763
+ enqueue_retry_wait: "enqueue_retry_wait";
1764
+ in_progress: "in_progress";
1765
+ partial_delivery: "partial_delivery";
1766
+ complete: "complete";
1767
+ retry_exhausted: "retry_exhausted";
1768
+ delivery_deadline_exceeded: "delivery_deadline_exceeded";
1769
+ destination_configuration_unavailable: "destination_configuration_unavailable";
979
1770
  }>;
980
- reason: z.ZodEnum<{
981
- accepted: "accepted";
982
- enqueue_retry_wait: "enqueue_retry_wait";
983
- in_progress: "in_progress";
984
- partial_delivery: "partial_delivery";
985
- complete: "complete";
986
- retry_exhausted: "retry_exhausted";
987
- delivery_deadline_exceeded: "delivery_deadline_exceeded";
988
- destination_configuration_unavailable: "destination_configuration_unavailable";
989
- }>;
990
1771
  terminal: z.ZodBoolean;
991
1772
  acceptedAt: z.ZodString;
992
1773
  updatedAt: z.ZodString;
@@ -1015,7 +1796,185 @@ declare const notificationDeliverResultV1Schema: z.ZodDiscriminatedUnion<[z.ZodO
1015
1796
  nextAttemptAt: z.ZodNullable<z.ZodString>;
1016
1797
  leaseExpiresAt: z.ZodNullable<z.ZodString>;
1017
1798
  }, z.core.$strict>>;
1018
- }, z.core.$strict>;
1799
+ }, z.core.$strict>, z.ZodObject<{
1800
+ eventId: z.ZodString;
1801
+ producer: z.ZodObject<{
1802
+ key: z.ZodString;
1803
+ environment: z.ZodString;
1804
+ }, z.core.$strict>;
1805
+ routeKey: z.ZodString;
1806
+ subject: z.ZodObject<{
1807
+ type: z.ZodString;
1808
+ id: z.ZodString;
1809
+ revision: z.ZodNumber;
1810
+ }, z.core.$strict>;
1811
+ terminal: z.ZodBoolean;
1812
+ acceptedAt: z.ZodString;
1813
+ updatedAt: z.ZodString;
1814
+ deliverBy: z.ZodString;
1815
+ terminalAt: z.ZodNullable<z.ZodString>;
1816
+ contractVersion: z.ZodLiteral<2>;
1817
+ state: z.ZodEnum<{
1818
+ pending: "pending";
1819
+ delivering: "delivering";
1820
+ partial: "partial";
1821
+ delivered: "delivered";
1822
+ failed: "failed";
1823
+ expired: "expired";
1824
+ unconfirmed: "unconfirmed";
1825
+ }>;
1826
+ reason: z.ZodEnum<{
1827
+ accepted: "accepted";
1828
+ enqueue_retry_wait: "enqueue_retry_wait";
1829
+ in_progress: "in_progress";
1830
+ partial_delivery: "partial_delivery";
1831
+ complete: "complete";
1832
+ retry_exhausted: "retry_exhausted";
1833
+ delivery_deadline_exceeded: "delivery_deadline_exceeded";
1834
+ destination_configuration_unavailable: "destination_configuration_unavailable";
1835
+ delivery_unconfirmed: "delivery_unconfirmed";
1836
+ }>;
1837
+ revision: z.ZodNumber;
1838
+ destinations: z.ZodArray<z.ZodObject<{
1839
+ destinationKey: z.ZodString;
1840
+ failureCode: z.ZodNullable<z.ZodEnum<{
1841
+ retry_exhausted: "retry_exhausted";
1842
+ destination_configuration_unavailable: "destination_configuration_unavailable";
1843
+ provider_timeout: "provider_timeout";
1844
+ provider_rate_limited: "provider_rate_limited";
1845
+ provider_unavailable: "provider_unavailable";
1846
+ provider_rejected: "provider_rejected";
1847
+ delivery_interrupted: "delivery_interrupted";
1848
+ }>>;
1849
+ lastAttemptAt: z.ZodNullable<z.ZodString>;
1850
+ nextAttemptAt: z.ZodNullable<z.ZodString>;
1851
+ leaseExpiresAt: z.ZodNullable<z.ZodString>;
1852
+ state: z.ZodEnum<{
1853
+ pending: "pending";
1854
+ delivering: "delivering";
1855
+ delivered: "delivered";
1856
+ failed: "failed";
1857
+ expired: "expired";
1858
+ unconfirmed: "unconfirmed";
1859
+ }>;
1860
+ attempts: z.ZodNumber;
1861
+ revision: z.ZodNumber;
1862
+ cause: z.ZodNullable<z.ZodObject<{
1863
+ name: z.ZodString;
1864
+ message: z.ZodOptional<z.ZodString>;
1865
+ code: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
1866
+ status: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
1867
+ cause: z.ZodOptional<z.ZodObject<{
1868
+ name: z.ZodString;
1869
+ message: z.ZodOptional<z.ZodString>;
1870
+ code: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
1871
+ status: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
1872
+ cause: z.ZodOptional<z.ZodObject<{
1873
+ name: z.ZodString;
1874
+ message: z.ZodOptional<z.ZodString>;
1875
+ code: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
1876
+ status: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
1877
+ cause: z.ZodOptional<z.ZodObject<{
1878
+ name: z.ZodString;
1879
+ message: z.ZodOptional<z.ZodString>;
1880
+ code: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
1881
+ status: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
1882
+ }, z.core.$strict>>;
1883
+ }, z.core.$strict>>;
1884
+ }, z.core.$strict>>;
1885
+ }, z.core.$strict>>;
1886
+ unconfirmedAt: z.ZodNullable<z.ZodString>;
1887
+ }, z.core.$strict>>;
1888
+ }, z.core.$strict>, z.ZodObject<{
1889
+ revision: z.ZodNumber;
1890
+ eventId: z.ZodString;
1891
+ producer: z.ZodObject<{
1892
+ key: z.ZodString;
1893
+ environment: z.ZodString;
1894
+ }, z.core.$strict>;
1895
+ deliverBy: z.ZodString;
1896
+ subject: z.ZodObject<{
1897
+ type: z.ZodString;
1898
+ id: z.ZodString;
1899
+ revision: z.ZodNumber;
1900
+ }, z.core.$strict>;
1901
+ acceptedAt: z.ZodString;
1902
+ updatedAt: z.ZodString;
1903
+ state: z.ZodEnum<{
1904
+ pending: "pending";
1905
+ delivering: "delivering";
1906
+ partial: "partial";
1907
+ delivered: "delivered";
1908
+ failed: "failed";
1909
+ expired: "expired";
1910
+ unconfirmed: "unconfirmed";
1911
+ }>;
1912
+ reason: z.ZodEnum<{
1913
+ accepted: "accepted";
1914
+ enqueue_retry_wait: "enqueue_retry_wait";
1915
+ in_progress: "in_progress";
1916
+ partial_delivery: "partial_delivery";
1917
+ complete: "complete";
1918
+ retry_exhausted: "retry_exhausted";
1919
+ delivery_deadline_exceeded: "delivery_deadline_exceeded";
1920
+ destination_configuration_unavailable: "destination_configuration_unavailable";
1921
+ delivery_unconfirmed: "delivery_unconfirmed";
1922
+ }>;
1923
+ terminal: z.ZodBoolean;
1924
+ terminalAt: z.ZodNullable<z.ZodString>;
1925
+ destinations: z.ZodArray<z.ZodObject<{
1926
+ destinationKey: z.ZodString;
1927
+ failureCode: z.ZodNullable<z.ZodEnum<{
1928
+ retry_exhausted: "retry_exhausted";
1929
+ destination_configuration_unavailable: "destination_configuration_unavailable";
1930
+ provider_timeout: "provider_timeout";
1931
+ provider_rate_limited: "provider_rate_limited";
1932
+ provider_unavailable: "provider_unavailable";
1933
+ provider_rejected: "provider_rejected";
1934
+ delivery_interrupted: "delivery_interrupted";
1935
+ }>>;
1936
+ lastAttemptAt: z.ZodNullable<z.ZodString>;
1937
+ nextAttemptAt: z.ZodNullable<z.ZodString>;
1938
+ leaseExpiresAt: z.ZodNullable<z.ZodString>;
1939
+ state: z.ZodEnum<{
1940
+ pending: "pending";
1941
+ delivering: "delivering";
1942
+ delivered: "delivered";
1943
+ failed: "failed";
1944
+ expired: "expired";
1945
+ unconfirmed: "unconfirmed";
1946
+ }>;
1947
+ attempts: z.ZodNumber;
1948
+ revision: z.ZodNumber;
1949
+ cause: z.ZodNullable<z.ZodObject<{
1950
+ name: z.ZodString;
1951
+ message: z.ZodOptional<z.ZodString>;
1952
+ code: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
1953
+ status: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
1954
+ cause: z.ZodOptional<z.ZodObject<{
1955
+ name: z.ZodString;
1956
+ message: z.ZodOptional<z.ZodString>;
1957
+ code: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
1958
+ status: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
1959
+ cause: z.ZodOptional<z.ZodObject<{
1960
+ name: z.ZodString;
1961
+ message: z.ZodOptional<z.ZodString>;
1962
+ code: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
1963
+ status: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
1964
+ cause: z.ZodOptional<z.ZodObject<{
1965
+ name: z.ZodString;
1966
+ message: z.ZodOptional<z.ZodString>;
1967
+ code: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
1968
+ status: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
1969
+ }, z.core.$strict>>;
1970
+ }, z.core.$strict>>;
1971
+ }, z.core.$strict>>;
1972
+ }, z.core.$strict>>;
1973
+ unconfirmedAt: z.ZodNullable<z.ZodString>;
1974
+ }, z.core.$strict>>;
1975
+ contractVersion: z.ZodLiteral<3>;
1976
+ routeKeys: z.ZodArray<z.ZodString>;
1977
+ }, z.core.$strict>]>;
1019
1978
  }, z.core.$strict>, z.ZodObject<{
1020
1979
  status: z.ZodLiteral<"rejected">;
1021
1980
  error: z.ZodUnion<readonly [z.ZodObject<{
@@ -1044,9 +2003,9 @@ declare const notificationDeliverResultV1Schema: z.ZodDiscriminatedUnion<[z.ZodO
1044
2003
  }>;
1045
2004
  }, z.core.$strict>]>;
1046
2005
  }, z.core.$strict>], "status">;
1047
- declare const notificationGetReceiptResultV1Schema: z.ZodDiscriminatedUnion<[z.ZodObject<{
2006
+ declare const notificationGetReceiptResultV2Schema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1048
2007
  status: z.ZodLiteral<"found">;
1049
- receipt: z.ZodObject<{
2008
+ receipt: z.ZodUnion<readonly [z.ZodObject<{
1050
2009
  contractVersion: z.ZodLiteral<1>;
1051
2010
  eventId: z.ZodString;
1052
2011
  producer: z.ZodObject<{
@@ -1105,7 +2064,185 @@ declare const notificationGetReceiptResultV1Schema: z.ZodDiscriminatedUnion<[z.Z
1105
2064
  nextAttemptAt: z.ZodNullable<z.ZodString>;
1106
2065
  leaseExpiresAt: z.ZodNullable<z.ZodString>;
1107
2066
  }, z.core.$strict>>;
1108
- }, z.core.$strict>;
2067
+ }, z.core.$strict>, z.ZodObject<{
2068
+ eventId: z.ZodString;
2069
+ producer: z.ZodObject<{
2070
+ key: z.ZodString;
2071
+ environment: z.ZodString;
2072
+ }, z.core.$strict>;
2073
+ routeKey: z.ZodString;
2074
+ subject: z.ZodObject<{
2075
+ type: z.ZodString;
2076
+ id: z.ZodString;
2077
+ revision: z.ZodNumber;
2078
+ }, z.core.$strict>;
2079
+ terminal: z.ZodBoolean;
2080
+ acceptedAt: z.ZodString;
2081
+ updatedAt: z.ZodString;
2082
+ deliverBy: z.ZodString;
2083
+ terminalAt: z.ZodNullable<z.ZodString>;
2084
+ contractVersion: z.ZodLiteral<2>;
2085
+ state: z.ZodEnum<{
2086
+ pending: "pending";
2087
+ delivering: "delivering";
2088
+ partial: "partial";
2089
+ delivered: "delivered";
2090
+ failed: "failed";
2091
+ expired: "expired";
2092
+ unconfirmed: "unconfirmed";
2093
+ }>;
2094
+ reason: z.ZodEnum<{
2095
+ accepted: "accepted";
2096
+ enqueue_retry_wait: "enqueue_retry_wait";
2097
+ in_progress: "in_progress";
2098
+ partial_delivery: "partial_delivery";
2099
+ complete: "complete";
2100
+ retry_exhausted: "retry_exhausted";
2101
+ delivery_deadline_exceeded: "delivery_deadline_exceeded";
2102
+ destination_configuration_unavailable: "destination_configuration_unavailable";
2103
+ delivery_unconfirmed: "delivery_unconfirmed";
2104
+ }>;
2105
+ revision: z.ZodNumber;
2106
+ destinations: z.ZodArray<z.ZodObject<{
2107
+ destinationKey: z.ZodString;
2108
+ failureCode: z.ZodNullable<z.ZodEnum<{
2109
+ retry_exhausted: "retry_exhausted";
2110
+ destination_configuration_unavailable: "destination_configuration_unavailable";
2111
+ provider_timeout: "provider_timeout";
2112
+ provider_rate_limited: "provider_rate_limited";
2113
+ provider_unavailable: "provider_unavailable";
2114
+ provider_rejected: "provider_rejected";
2115
+ delivery_interrupted: "delivery_interrupted";
2116
+ }>>;
2117
+ lastAttemptAt: z.ZodNullable<z.ZodString>;
2118
+ nextAttemptAt: z.ZodNullable<z.ZodString>;
2119
+ leaseExpiresAt: z.ZodNullable<z.ZodString>;
2120
+ state: z.ZodEnum<{
2121
+ pending: "pending";
2122
+ delivering: "delivering";
2123
+ delivered: "delivered";
2124
+ failed: "failed";
2125
+ expired: "expired";
2126
+ unconfirmed: "unconfirmed";
2127
+ }>;
2128
+ attempts: z.ZodNumber;
2129
+ revision: z.ZodNumber;
2130
+ cause: z.ZodNullable<z.ZodObject<{
2131
+ name: z.ZodString;
2132
+ message: z.ZodOptional<z.ZodString>;
2133
+ code: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
2134
+ status: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
2135
+ cause: z.ZodOptional<z.ZodObject<{
2136
+ name: z.ZodString;
2137
+ message: z.ZodOptional<z.ZodString>;
2138
+ code: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
2139
+ status: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
2140
+ cause: z.ZodOptional<z.ZodObject<{
2141
+ name: z.ZodString;
2142
+ message: z.ZodOptional<z.ZodString>;
2143
+ code: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
2144
+ status: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
2145
+ cause: z.ZodOptional<z.ZodObject<{
2146
+ name: z.ZodString;
2147
+ message: z.ZodOptional<z.ZodString>;
2148
+ code: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
2149
+ status: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
2150
+ }, z.core.$strict>>;
2151
+ }, z.core.$strict>>;
2152
+ }, z.core.$strict>>;
2153
+ }, z.core.$strict>>;
2154
+ unconfirmedAt: z.ZodNullable<z.ZodString>;
2155
+ }, z.core.$strict>>;
2156
+ }, z.core.$strict>, z.ZodObject<{
2157
+ revision: z.ZodNumber;
2158
+ eventId: z.ZodString;
2159
+ producer: z.ZodObject<{
2160
+ key: z.ZodString;
2161
+ environment: z.ZodString;
2162
+ }, z.core.$strict>;
2163
+ deliverBy: z.ZodString;
2164
+ subject: z.ZodObject<{
2165
+ type: z.ZodString;
2166
+ id: z.ZodString;
2167
+ revision: z.ZodNumber;
2168
+ }, z.core.$strict>;
2169
+ acceptedAt: z.ZodString;
2170
+ updatedAt: z.ZodString;
2171
+ state: z.ZodEnum<{
2172
+ pending: "pending";
2173
+ delivering: "delivering";
2174
+ partial: "partial";
2175
+ delivered: "delivered";
2176
+ failed: "failed";
2177
+ expired: "expired";
2178
+ unconfirmed: "unconfirmed";
2179
+ }>;
2180
+ reason: z.ZodEnum<{
2181
+ accepted: "accepted";
2182
+ enqueue_retry_wait: "enqueue_retry_wait";
2183
+ in_progress: "in_progress";
2184
+ partial_delivery: "partial_delivery";
2185
+ complete: "complete";
2186
+ retry_exhausted: "retry_exhausted";
2187
+ delivery_deadline_exceeded: "delivery_deadline_exceeded";
2188
+ destination_configuration_unavailable: "destination_configuration_unavailable";
2189
+ delivery_unconfirmed: "delivery_unconfirmed";
2190
+ }>;
2191
+ terminal: z.ZodBoolean;
2192
+ terminalAt: z.ZodNullable<z.ZodString>;
2193
+ destinations: z.ZodArray<z.ZodObject<{
2194
+ destinationKey: z.ZodString;
2195
+ failureCode: z.ZodNullable<z.ZodEnum<{
2196
+ retry_exhausted: "retry_exhausted";
2197
+ destination_configuration_unavailable: "destination_configuration_unavailable";
2198
+ provider_timeout: "provider_timeout";
2199
+ provider_rate_limited: "provider_rate_limited";
2200
+ provider_unavailable: "provider_unavailable";
2201
+ provider_rejected: "provider_rejected";
2202
+ delivery_interrupted: "delivery_interrupted";
2203
+ }>>;
2204
+ lastAttemptAt: z.ZodNullable<z.ZodString>;
2205
+ nextAttemptAt: z.ZodNullable<z.ZodString>;
2206
+ leaseExpiresAt: z.ZodNullable<z.ZodString>;
2207
+ state: z.ZodEnum<{
2208
+ pending: "pending";
2209
+ delivering: "delivering";
2210
+ delivered: "delivered";
2211
+ failed: "failed";
2212
+ expired: "expired";
2213
+ unconfirmed: "unconfirmed";
2214
+ }>;
2215
+ attempts: z.ZodNumber;
2216
+ revision: z.ZodNumber;
2217
+ cause: z.ZodNullable<z.ZodObject<{
2218
+ name: z.ZodString;
2219
+ message: z.ZodOptional<z.ZodString>;
2220
+ code: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
2221
+ status: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
2222
+ cause: z.ZodOptional<z.ZodObject<{
2223
+ name: z.ZodString;
2224
+ message: z.ZodOptional<z.ZodString>;
2225
+ code: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
2226
+ status: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
2227
+ cause: z.ZodOptional<z.ZodObject<{
2228
+ name: z.ZodString;
2229
+ message: z.ZodOptional<z.ZodString>;
2230
+ code: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
2231
+ status: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
2232
+ cause: z.ZodOptional<z.ZodObject<{
2233
+ name: z.ZodString;
2234
+ message: z.ZodOptional<z.ZodString>;
2235
+ code: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
2236
+ status: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
2237
+ }, z.core.$strict>>;
2238
+ }, z.core.$strict>>;
2239
+ }, z.core.$strict>>;
2240
+ }, z.core.$strict>>;
2241
+ unconfirmedAt: z.ZodNullable<z.ZodString>;
2242
+ }, z.core.$strict>>;
2243
+ contractVersion: z.ZodLiteral<3>;
2244
+ routeKeys: z.ZodArray<z.ZodString>;
2245
+ }, z.core.$strict>]>;
1109
2246
  }, z.core.$strict>, z.ZodObject<{
1110
2247
  status: z.ZodLiteral<"not_found">;
1111
2248
  }, z.core.$strict>, z.ZodObject<{
@@ -1126,9 +2263,13 @@ type NotificationStructuredMessageVariant = z.infer<typeof structuredNotificatio
1126
2263
  type NotificationMessageBody = z.infer<typeof notificationMessageBodySchema>;
1127
2264
  type NotificationSharedMessageBody = z.infer<typeof sharedNotificationBodySchema>;
1128
2265
  type NotificationDeliveryReceiptV1 = z.infer<typeof notificationDeliveryReceiptV1Schema>;
2266
+ type NotificationDeliveryReceiptV2 = z.infer<typeof notificationDeliveryReceiptV2Schema>;
2267
+ type NotificationMessageReceipt = z.infer<typeof notificationMessageReceiptSchema>;
1129
2268
  type NotificationDeliveryRejectionV1 = z.infer<typeof notificationDeliveryRejectionV1Schema>;
1130
2269
  type NotificationDeliverResultV1 = z.infer<typeof notificationDeliverResultV1Schema>;
1131
2270
  type NotificationGetReceiptResultV1 = z.infer<typeof notificationGetReceiptResultV1Schema>;
2271
+ type NotificationDeliverResultV2 = z.infer<typeof notificationDeliverResultV2Schema>;
2272
+ type NotificationGetReceiptResultV2 = z.infer<typeof notificationGetReceiptResultV2Schema>;
1132
2273
  type CreatorDraftTaskV1 = z.infer<typeof creatorDraftTaskV1Schema>;
1133
2274
  type LocalTaskDeliveryRequestV1 = z.infer<typeof localTaskDeliveryRequestV1Schema>;
1134
2275
  type LocalTaskDeliveryRequest = z.infer<typeof localTaskDeliveryRequestSchema>;
@@ -1152,5 +2293,14 @@ interface LocalTaskDeliveryServiceV1 {
1152
2293
  }
1153
2294
  /** Private Service Binding supporting notifications and profile-routed local tasks. */
1154
2295
  interface NotificationDeliveryServiceV3 extends NotificationDeliveryServiceV2, LocalTaskDeliveryServiceV1 {}
2296
+ /** Message receipts include historical V1/V2 and multi-route V3 outcomes. */
2297
+ interface NotificationMessageDeliveryServiceV4 {
2298
+ deliver: (request: NotificationDeliveryRequest) => Promise<NotificationDeliverResultV2>;
2299
+ getReceipt: (eventId: string) => Promise<NotificationGetReceiptResultV2>;
2300
+ deliverTask: LocalTaskDeliveryServiceV1['deliverTask'];
2301
+ getTaskReceipt: LocalTaskDeliveryServiceV1['getTaskReceipt'];
2302
+ }
2303
+ /** Multi-route message delivery; historical requests and receipts remain supported. */
2304
+ interface NotificationMessageDeliveryServiceV5 extends NotificationMessageDeliveryServiceV4 {}
1155
2305
  //#endregion
1156
- export { CreatorDraftTaskV1, LocalTaskDeliverResultV1, LocalTaskDeliveryReceiptV1, LocalTaskDeliveryRequest, LocalTaskDeliveryRequestV1, LocalTaskDeliveryServiceV1, LocalTaskGetReceiptResultV1, NotificationDeliverResultV1, NotificationDeliveryReceiptV1, NotificationDeliveryRejectionV1, NotificationDeliveryRequest, NotificationDeliveryRequestV1, NotificationDeliveryRequestV2, NotificationDeliveryRequestV3, NotificationDeliveryRequestV4, NotificationDeliveryRequestV5, NotificationDeliveryRequestV6, NotificationDeliveryServiceV1, NotificationDeliveryServiceV2, NotificationDeliveryServiceV3, NotificationGetReceiptResultV1, NotificationMessageBody, NotificationMessageVariantKey, NotificationSharedMessageBody, NotificationStructuredMessageSection, NotificationStructuredMessageVariant, localTaskDeliveryContractVersionV1, localTaskDeliveryMaximumDeadlineMillisecondsV1, localTaskDeliveryRequestMaximumUtf8BytesV1, localTaskDeliveryRequestSchema, localTaskDeliveryRequestV1Schema, notificationDeliverResultV1Schema, notificationDeliveryContractVersionV1, notificationDeliveryContractVersionV2, notificationDeliveryContractVersionV3, notificationDeliveryContractVersionV4, notificationDeliveryContractVersionV5, notificationDeliveryMaximumDeadlineMillisecondsV1, notificationDeliveryMaximumDeadlineMillisecondsV2, notificationDeliveryMaximumDeadlineMillisecondsV3, notificationDeliveryMaximumDeadlineMillisecondsV4, notificationDeliveryMaximumDeadlineMillisecondsV5, notificationDeliveryReasonsV1, notificationDeliveryReceiptV1Schema, notificationDeliveryRejectionCodesV1, notificationDeliveryRejectionV1Schema, notificationDeliveryRequestMaximumUtf8BytesV1, notificationDeliveryRequestMaximumUtf8BytesV2, notificationDeliveryRequestMaximumUtf8BytesV3, notificationDeliveryRequestMaximumUtf8BytesV4, notificationDeliveryRequestMaximumUtf8BytesV5, notificationDeliveryRequestSchema, notificationDeliveryRequestV1Schema, notificationDeliveryRequestV2Schema, notificationDeliveryRequestV3Schema, notificationDeliveryRequestV4Schema, notificationDeliveryRequestV5Schema, notificationDeliveryRequestV6Schema, notificationDeliveryStatesV1, notificationDestinationFailureCodesV1, notificationDestinationStatesV1, notificationGetReceiptResultV1Schema, notificationMessageVariantKeys, notificationValidationIssueCodesV1 };
2306
+ export { CreatorDraftTaskV1, LocalTaskDeliverResultV1, LocalTaskDeliveryReceiptV1, LocalTaskDeliveryRequest, LocalTaskDeliveryRequestV1, LocalTaskDeliveryServiceV1, LocalTaskGetReceiptResultV1, NotificationDeliverResultV1, NotificationDeliverResultV2, NotificationDeliveryReceiptV1, NotificationDeliveryReceiptV2, NotificationDeliveryReceiptV3, NotificationDeliveryRejectionV1, NotificationDeliveryRequest, NotificationDeliveryRequestV1, NotificationDeliveryRequestV2, NotificationDeliveryRequestV3, NotificationDeliveryRequestV4, NotificationDeliveryRequestV5, NotificationDeliveryRequestV6, NotificationDeliveryRequestV7, NotificationDeliveryServiceV1, NotificationDeliveryServiceV2, NotificationDeliveryServiceV3, NotificationGetReceiptResultV1, NotificationGetReceiptResultV2, NotificationMessageBody, NotificationMessageDeliveryServiceV4, NotificationMessageDeliveryServiceV5, NotificationMessageReceipt, NotificationMessageVariantKey, NotificationSharedMessageBody, NotificationStructuredMessageSection, NotificationStructuredMessageVariant, localTaskDeliveryContractVersionV1, localTaskDeliveryMaximumDeadlineMillisecondsV1, localTaskDeliveryRequestMaximumUtf8BytesV1, localTaskDeliveryRequestSchema, localTaskDeliveryRequestV1Schema, notificationDeliverResultV1Schema, notificationDeliverResultV2Schema, notificationDeliveryContractVersionV1, notificationDeliveryContractVersionV2, notificationDeliveryContractVersionV3, notificationDeliveryContractVersionV4, notificationDeliveryContractVersionV5, notificationDeliveryContractVersionV7, notificationDeliveryMaximumDeadlineMillisecondsV1, notificationDeliveryMaximumDeadlineMillisecondsV2, notificationDeliveryMaximumDeadlineMillisecondsV3, notificationDeliveryMaximumDeadlineMillisecondsV4, notificationDeliveryMaximumDeadlineMillisecondsV5, notificationDeliveryMaximumDestinationsV1, notificationDeliveryReasonsV1, notificationDeliveryReasonsV2, notificationDeliveryReceiptV1Schema, notificationDeliveryReceiptV2Schema, notificationDeliveryReceiptV3Schema, notificationDeliveryRejectionCodesV1, notificationDeliveryRejectionV1Schema, notificationDeliveryRequestMaximumUtf8BytesV1, notificationDeliveryRequestMaximumUtf8BytesV2, notificationDeliveryRequestMaximumUtf8BytesV3, notificationDeliveryRequestMaximumUtf8BytesV4, notificationDeliveryRequestMaximumUtf8BytesV5, notificationDeliveryRequestSchema, notificationDeliveryRequestV1Schema, notificationDeliveryRequestV2Schema, notificationDeliveryRequestV3Schema, notificationDeliveryRequestV4Schema, notificationDeliveryRequestV5Schema, notificationDeliveryRequestV6Schema, notificationDeliveryRequestV7Schema, notificationDeliveryStatesV1, notificationDeliveryStatesV2, notificationDestinationFailureCodesV1, notificationDestinationStatesV1, notificationDestinationStatesV2, notificationGetReceiptResultV1Schema, notificationGetReceiptResultV2Schema, notificationMessageReceiptSchema, notificationMessageVariantKeys, notificationRouteKeys, notificationValidationIssueCodesV1, safeDeliveryCauseSchema };