samva 0.27.0 → 0.28.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.
Files changed (105) hide show
  1. package/AGENTS.md +7 -0
  2. package/README.md +12 -7
  3. package/dist/client/sdk.gen.d.ts +322 -143
  4. package/dist/client/sdk.gen.js +604 -95
  5. package/dist/client/types.gen.d.ts +1342 -479
  6. package/dist/effect/agents.d.ts +6 -8
  7. package/dist/effect/analytics.d.ts +1 -1
  8. package/dist/effect/api-keys.d.ts +6 -6
  9. package/dist/effect/attachments.d.ts +1 -1
  10. package/dist/effect/brands.d.ts +2 -0
  11. package/dist/effect/campaigns.d.ts +275 -25
  12. package/dist/effect/campaigns.js +7 -1
  13. package/dist/effect/contact-groups.d.ts +9 -9
  14. package/dist/effect/contacts.d.ts +74 -81
  15. package/dist/effect/contacts.js +7 -3
  16. package/dist/effect/conversations.d.ts +14 -6
  17. package/dist/effect/email.d.ts +34 -34
  18. package/dist/effect/errors.d.ts +1 -1
  19. package/dist/effect/errors.js +2 -2
  20. package/dist/effect/extension-installations.d.ts +3 -3
  21. package/dist/effect/extensions.d.ts +6 -6
  22. package/dist/effect/generated/agents.d.ts +6 -28
  23. package/dist/effect/generated/agents.js +2 -3
  24. package/dist/effect/generated/analytics.d.ts +3 -3
  25. package/dist/effect/generated/analytics.js +1 -1
  26. package/dist/effect/generated/api-keys.d.ts +6 -6
  27. package/dist/effect/generated/api-keys.js +2 -2
  28. package/dist/effect/generated/attachments.d.ts +3 -3
  29. package/dist/effect/generated/attachments.js +1 -1
  30. package/dist/effect/generated/brands.d.ts +16 -0
  31. package/dist/effect/generated/campaigns.d.ts +1181 -302
  32. package/dist/effect/generated/campaigns.js +169 -36
  33. package/dist/effect/generated/contact-events.d.ts +3 -3
  34. package/dist/effect/generated/contact-events.js +1 -1
  35. package/dist/effect/generated/contact-groups.d.ts +9 -9
  36. package/dist/effect/generated/contact-groups.js +7 -7
  37. package/dist/effect/generated/contacts.d.ts +2063 -290
  38. package/dist/effect/generated/contacts.js +343 -75
  39. package/dist/effect/generated/conversations.d.ts +14 -6
  40. package/dist/effect/generated/conversations.js +6 -6
  41. package/dist/effect/generated/email.d.ts +40 -40
  42. package/dist/effect/generated/email.js +15 -15
  43. package/dist/effect/generated/extension-installations.d.ts +3 -3
  44. package/dist/effect/generated/extension-installations.js +1 -1
  45. package/dist/effect/generated/extensions.d.ts +6 -6
  46. package/dist/effect/generated/extensions.js +2 -2
  47. package/dist/effect/generated/index.d.ts +5 -3
  48. package/dist/effect/generated/journeys.d.ts +9 -9
  49. package/dist/effect/generated/journeys.js +3 -3
  50. package/dist/effect/generated/mailboxes.d.ts +172 -124
  51. package/dist/effect/generated/mailboxes.js +22 -14
  52. package/dist/effect/generated/messages.d.ts +53 -29
  53. package/dist/effect/generated/messages.js +9 -5
  54. package/dist/effect/generated/namespaces.d.ts +3 -3
  55. package/dist/effect/generated/namespaces.js +1 -1
  56. package/dist/effect/generated/operations.d.ts +3 -3
  57. package/dist/effect/generated/operations.js +1 -1
  58. package/dist/effect/generated/organizations.d.ts +0 -9
  59. package/dist/effect/generated/organizations.js +1 -4
  60. package/dist/effect/generated/scheduled-messages.d.ts +69 -20
  61. package/dist/effect/generated/scheduled-messages.js +22 -3
  62. package/dist/effect/generated/shared.d.ts +396 -107
  63. package/dist/effect/generated/shared.js +170 -89
  64. package/dist/effect/generated/subscriptions.d.ts +4 -7
  65. package/dist/effect/generated/subscriptions.js +3 -4
  66. package/dist/effect/generated/templates.d.ts +71 -407
  67. package/dist/effect/generated/templates.js +23 -23
  68. package/dist/effect/generated/topic-forms.d.ts +656 -0
  69. package/dist/effect/generated/topic-forms.js +145 -0
  70. package/dist/effect/generated/{unsubscribe-groups.d.ts → topics.d.ts} +640 -435
  71. package/dist/effect/generated/topics.js +267 -0
  72. package/dist/effect/generated/webhooks.d.ts +6 -6
  73. package/dist/effect/generated/webhooks.js +2 -2
  74. package/dist/effect/generated-metadata.d.ts +78 -24
  75. package/dist/effect/generated-metadata.js +61 -27
  76. package/dist/effect/index.d.ts +2 -1
  77. package/dist/effect/index.js +4 -3
  78. package/dist/effect/internal/operation.js +3 -3
  79. package/dist/effect/internal/send.d.ts +4 -4
  80. package/dist/effect/journeys.d.ts +7 -7
  81. package/dist/effect/mailboxes.d.ts +137 -121
  82. package/dist/effect/messages.d.ts +19 -11
  83. package/dist/effect/namespaces.d.ts +3 -3
  84. package/dist/effect/operations.d.ts +3 -3
  85. package/dist/effect/scheduled-messages.d.ts +6 -6
  86. package/dist/effect/subscriptions.d.ts +1 -2
  87. package/dist/effect/templates.d.ts +13 -13
  88. package/dist/effect/topic-forms.d.ts +30 -0
  89. package/dist/effect/topic-forms.js +21 -0
  90. package/dist/effect/topics.d.ts +94 -0
  91. package/dist/effect/topics.js +29 -0
  92. package/dist/effect/webhooks.d.ts +6 -6
  93. package/dist/index.js +2 -2
  94. package/dist/package.js +1 -1
  95. package/dist/promises/errors.gen.d.ts +65 -8
  96. package/dist/promises/errors.gen.js +139 -7
  97. package/dist/promises/index.d.ts +5 -3
  98. package/dist/promises/index.js +7 -5
  99. package/dist/promises/types.gen.d.ts +1 -1
  100. package/dist/service-map.d.ts +74 -25
  101. package/dist/service-map.js +43 -12
  102. package/package.json +12 -8
  103. package/dist/effect/generated/unsubscribe-groups.js +0 -284
  104. package/dist/effect/unsubscribe-groups.d.ts +0 -74
  105. package/dist/effect/unsubscribe-groups.js +0 -29
@@ -1,7 +1,7 @@
1
1
  import type * as EffectBrand from "effect/Brand";
2
2
  import { HttpApiEndpoint, HttpApiGroup } from "effect/http-api";
3
3
  import * as Schema from "effect/Schema";
4
- import { ApiKeySecurityMiddleware, AttachmentId, BillingProviderError, ConflictError, ConversationId, CreateMailboxEndpointPayload, Cursor, EmailAttachment, FlagDisabledError, ForbiddenError, GatewayTimeoutError, InternalError, JsonValue, MailboxActionDecision, MailboxActionId, MailboxChannel, MailboxDraftId, MailboxEndpointId, MailboxGrantRole, MailboxId, MailboxLabelId, MailboxMetadata, MailboxMetadataPatch, MailboxPolicyId, MailboxPolicyOutcomeKind, MailboxSendConflictError, MailboxSendMode, MailboxSendOutcome, MailboxSendReceipt, MailboxSendRefusedError, MailboxThreadFolder, MailboxThreadId, MailboxThreadPriority, MediaId, MessageId, NamespaceId, OnboardingReviewRequiredError, PaymentRequiredError, RateLimitedError, ResourceNotFoundError, SenderNotReadyError, SkippedRecipient, SuccessResponse, UnauthorizedError, UserId, ValidationError } from "./shared";
4
+ import { ApiKeySecurityMiddleware, AttachmentId, BillingProviderError, CampaignId, CampaignRunId, ConflictError, ConversationId, CreateMailboxEndpointPayload, Cursor, EmailAttachment, FlagDisabledError, ForbiddenError, GatewayTimeoutError, InternalError, JsonValue, MailboxActionDecision, MailboxActionId, MailboxChannel, MailboxDraftId, MailboxEndpointId, MailboxGrantRole, MailboxId, MailboxLabelId, MailboxMetadata, MailboxMetadataPatch, MailboxPolicyId, MailboxPolicyOutcomeKind, MailboxSendConflictError, MailboxSendMode, MailboxSendOutcome, MailboxSendReceipt, MailboxSendRefusedError, MailboxThreadFolder, MailboxThreadId, MailboxThreadPriority, MediaId, MessageId, NamespaceId, OnboardingReviewRequiredError, PaymentRequiredError, RateLimitedError, ResourceNotFoundError, SenderNotReadyError, SkippedRecipient, SuccessResponse, UnauthorizedError, UserId, ValidationError } from "./shared";
5
5
  export type MailboxStatus = "active" | "paused";
6
6
  export declare const MailboxStatus: Schema.Union<readonly [Schema.Literal<"active">, Schema.Literal<"paused">]>;
7
7
  export type MailboxActionResolution = {
@@ -350,6 +350,10 @@ export declare const MailboxLabel: Schema.Struct<{
350
350
  }>;
351
351
  export type MailboxMessageSummary = {
352
352
  readonly id: MessageId;
353
+ readonly campaign?: {
354
+ readonly campaignId: CampaignId;
355
+ readonly runId: CampaignRunId;
356
+ } | null;
353
357
  readonly channel: MailboxChannel;
354
358
  readonly direction: "inbound" | "outbound";
355
359
  readonly from: MailboxMessageSender;
@@ -361,6 +365,10 @@ export type MailboxMessageSummary = {
361
365
  };
362
366
  export declare const MailboxMessageSummary: Schema.Struct<{
363
367
  readonly id: Schema.brand<Schema.String, "MessageId">;
368
+ readonly campaign: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
369
+ readonly campaignId: Schema.brand<Schema.String, "CampaignId">;
370
+ readonly runId: Schema.brand<Schema.String, "CampaignRunId">;
371
+ }>, Schema.Null]>>;
364
372
  readonly channel: Schema.Literal<"email">;
365
373
  readonly direction: Schema.Union<readonly [Schema.Literal<"inbound">, Schema.Literal<"outbound">]>;
366
374
  readonly from: Schema.Struct<{
@@ -380,6 +388,10 @@ export declare const MailboxMessageSummary: Schema.Struct<{
380
388
  }>;
381
389
  export type MailboxMessage = {
382
390
  readonly id: MessageId;
391
+ readonly campaign?: {
392
+ readonly campaignId: CampaignId;
393
+ readonly runId: CampaignRunId;
394
+ } | null;
383
395
  readonly threadId: MailboxThreadId;
384
396
  readonly conversationId: ConversationId;
385
397
  readonly direction: "inbound" | "outbound";
@@ -413,6 +425,10 @@ export type MailboxMessage = {
413
425
  };
414
426
  export declare const MailboxMessage: Schema.Struct<{
415
427
  readonly id: Schema.brand<Schema.String, "MessageId">;
428
+ readonly campaign: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
429
+ readonly campaignId: Schema.brand<Schema.String, "CampaignId">;
430
+ readonly runId: Schema.brand<Schema.String, "CampaignRunId">;
431
+ }>, Schema.Null]>>;
416
432
  readonly threadId: Schema.brand<Schema.String, "MailboxThreadId">;
417
433
  readonly conversationId: Schema.brand<Schema.String, "ConversationId">;
418
434
  readonly direction: Schema.Union<readonly [Schema.Literal<"inbound">, Schema.Literal<"outbound">]>;
@@ -861,8 +877,8 @@ export declare const MailboxPendingSendReceipt: Schema.Struct<{
861
877
  readonly reviewExpectedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
862
878
  readonly skippedRecipients: Schema.$Array<Schema.Struct<{
863
879
  readonly address: Schema.String;
864
- readonly reason: Schema.Union<readonly [Schema.Literal<"bounce">, Schema.Literal<"complaint">, Schema.Literal<"unsubscribe">, Schema.Literal<"manual">, Schema.Literal<"group-unsubscribe">]>;
865
- readonly unsubscribeGroupId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "UnsubscribeId">, Schema.Null]>>;
880
+ readonly reason: Schema.Union<readonly [Schema.Literal<"bounce">, Schema.Literal<"complaint">, Schema.Literal<"unsubscribe">, Schema.Literal<"manual">, Schema.Literal<"topic-unsubscribe">]>;
881
+ readonly topicId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TopicId">, Schema.Null]>>;
866
882
  }>>;
867
883
  readonly executeUntil: Schema.Union<readonly [Schema.String, Schema.Null]>;
868
884
  readonly retryAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
@@ -997,6 +1013,10 @@ export type MailboxMessagePage = {
997
1013
  export declare const MailboxMessagePage: Schema.Struct<{
998
1014
  readonly items: Schema.$Array<Schema.Struct<{
999
1015
  readonly id: Schema.brand<Schema.String, "MessageId">;
1016
+ readonly campaign: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
1017
+ readonly campaignId: Schema.brand<Schema.String, "CampaignId">;
1018
+ readonly runId: Schema.brand<Schema.String, "CampaignRunId">;
1019
+ }>, Schema.Null]>>;
1000
1020
  readonly channel: Schema.Literal<"email">;
1001
1021
  readonly direction: Schema.Union<readonly [Schema.Literal<"inbound">, Schema.Literal<"outbound">]>;
1002
1022
  readonly from: Schema.Struct<{
@@ -1023,6 +1043,10 @@ export type MailboxThreadContentPage = {
1023
1043
  export declare const MailboxThreadContentPage: Schema.Struct<{
1024
1044
  readonly items: Schema.$Array<Schema.Struct<{
1025
1045
  readonly id: Schema.brand<Schema.String, "MessageId">;
1046
+ readonly campaign: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
1047
+ readonly campaignId: Schema.brand<Schema.String, "CampaignId">;
1048
+ readonly runId: Schema.brand<Schema.String, "CampaignRunId">;
1049
+ }>, Schema.Null]>>;
1026
1050
  readonly threadId: Schema.brand<Schema.String, "MailboxThreadId">;
1027
1051
  readonly conversationId: Schema.brand<Schema.String, "ConversationId">;
1028
1052
  readonly direction: Schema.Union<readonly [Schema.Literal<"inbound">, Schema.Literal<"outbound">]>;
@@ -1201,8 +1225,8 @@ export declare const MailboxSendAction: Schema.Struct<{
1201
1225
  readonly reviewExpectedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
1202
1226
  readonly skippedRecipients: Schema.$Array<Schema.Struct<{
1203
1227
  readonly address: Schema.String;
1204
- readonly reason: Schema.Union<readonly [Schema.Literal<"bounce">, Schema.Literal<"complaint">, Schema.Literal<"unsubscribe">, Schema.Literal<"manual">, Schema.Literal<"group-unsubscribe">]>;
1205
- readonly unsubscribeGroupId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "UnsubscribeId">, Schema.Null]>>;
1228
+ readonly reason: Schema.Union<readonly [Schema.Literal<"bounce">, Schema.Literal<"complaint">, Schema.Literal<"unsubscribe">, Schema.Literal<"manual">, Schema.Literal<"topic-unsubscribe">]>;
1229
+ readonly topicId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TopicId">, Schema.Null]>>;
1206
1230
  }>>;
1207
1231
  readonly executeUntil: Schema.Union<readonly [Schema.String, Schema.Null]>;
1208
1232
  readonly retryAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
@@ -1318,8 +1342,8 @@ export declare const MailboxAction: Schema.Union<readonly [Schema.Struct<{
1318
1342
  readonly reviewExpectedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
1319
1343
  readonly skippedRecipients: Schema.$Array<Schema.Struct<{
1320
1344
  readonly address: Schema.String;
1321
- readonly reason: Schema.Union<readonly [Schema.Literal<"bounce">, Schema.Literal<"complaint">, Schema.Literal<"unsubscribe">, Schema.Literal<"manual">, Schema.Literal<"group-unsubscribe">]>;
1322
- readonly unsubscribeGroupId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "UnsubscribeId">, Schema.Null]>>;
1345
+ readonly reason: Schema.Union<readonly [Schema.Literal<"bounce">, Schema.Literal<"complaint">, Schema.Literal<"unsubscribe">, Schema.Literal<"manual">, Schema.Literal<"topic-unsubscribe">]>;
1346
+ readonly topicId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TopicId">, Schema.Null]>>;
1323
1347
  }>>;
1324
1348
  readonly executeUntil: Schema.Union<readonly [Schema.String, Schema.Null]>;
1325
1349
  readonly retryAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
@@ -1472,8 +1496,8 @@ export declare const MailboxPendingAction: Schema.Union<readonly [Schema.Struct<
1472
1496
  readonly reviewExpectedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
1473
1497
  readonly skippedRecipients: Schema.$Array<Schema.Struct<{
1474
1498
  readonly address: Schema.String;
1475
- readonly reason: Schema.Union<readonly [Schema.Literal<"bounce">, Schema.Literal<"complaint">, Schema.Literal<"unsubscribe">, Schema.Literal<"manual">, Schema.Literal<"group-unsubscribe">]>;
1476
- readonly unsubscribeGroupId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "UnsubscribeId">, Schema.Null]>>;
1499
+ readonly reason: Schema.Union<readonly [Schema.Literal<"bounce">, Schema.Literal<"complaint">, Schema.Literal<"unsubscribe">, Schema.Literal<"manual">, Schema.Literal<"topic-unsubscribe">]>;
1500
+ readonly topicId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TopicId">, Schema.Null]>>;
1477
1501
  }>>;
1478
1502
  readonly executeUntil: Schema.Union<readonly [Schema.String, Schema.Null]>;
1479
1503
  readonly retryAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
@@ -1630,8 +1654,8 @@ export declare const MailboxActionPage: Schema.Struct<{
1630
1654
  readonly reviewExpectedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
1631
1655
  readonly skippedRecipients: Schema.$Array<Schema.Struct<{
1632
1656
  readonly address: Schema.String;
1633
- readonly reason: Schema.Union<readonly [Schema.Literal<"bounce">, Schema.Literal<"complaint">, Schema.Literal<"unsubscribe">, Schema.Literal<"manual">, Schema.Literal<"group-unsubscribe">]>;
1634
- readonly unsubscribeGroupId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "UnsubscribeId">, Schema.Null]>>;
1657
+ readonly reason: Schema.Union<readonly [Schema.Literal<"bounce">, Schema.Literal<"complaint">, Schema.Literal<"unsubscribe">, Schema.Literal<"manual">, Schema.Literal<"topic-unsubscribe">]>;
1658
+ readonly topicId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TopicId">, Schema.Null]>>;
1635
1659
  }>>;
1636
1660
  readonly executeUntil: Schema.Union<readonly [Schema.String, Schema.Null]>;
1637
1661
  readonly retryAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
@@ -1743,13 +1767,13 @@ export declare const MailboxActionPage: Schema.Struct<{
1743
1767
  readonly nextCursor: Schema.Union<readonly [Schema.String, Schema.Null]>;
1744
1768
  }>;
1745
1769
  export type MailboxesListQuery = {
1746
- readonly limit?: string | null;
1770
+ readonly limit?: number | null;
1747
1771
  readonly cursor?: Cursor | null;
1748
1772
  readonly after?: string | null;
1749
1773
  readonly before?: string | null;
1750
1774
  };
1751
1775
  export declare const MailboxesListQuery: Schema.Struct<{
1752
- readonly limit: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
1776
+ readonly limit: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Null]>>;
1753
1777
  readonly cursor: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
1754
1778
  readonly after: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
1755
1779
  readonly before: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
@@ -1954,7 +1978,7 @@ export declare const MailboxesListActionsPathParams: Schema.Struct<{
1954
1978
  readonly id: Schema.brand<Schema.String, "MailboxId">;
1955
1979
  }>;
1956
1980
  export type MailboxesListActionsQuery = {
1957
- readonly limit?: string | null;
1981
+ readonly limit?: number | null;
1958
1982
  readonly cursor?: Cursor | null;
1959
1983
  readonly threadId?: MailboxThreadId | null;
1960
1984
  readonly state?: "proposed" | "allowed" | "approvalRequired" | "policyDenied" | "approved" | "approvalDenied" | "executing" | "executed" | "failed" | "queued" | "accepted" | "completed" | "notSent" | "uncertain" | null;
@@ -1962,7 +1986,7 @@ export type MailboxesListActionsQuery = {
1962
1986
  readonly before?: string | null;
1963
1987
  };
1964
1988
  export declare const MailboxesListActionsQuery: Schema.Struct<{
1965
- readonly limit: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
1989
+ readonly limit: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Null]>>;
1966
1990
  readonly cursor: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
1967
1991
  readonly threadId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "MailboxThreadId">, Schema.Null]>>;
1968
1992
  readonly state: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"proposed">, Schema.Literal<"allowed">, Schema.Literal<"approvalRequired">, Schema.Literal<"policyDenied">, Schema.Literal<"approved">, Schema.Literal<"approvalDenied">, Schema.Literal<"executing">, Schema.Literal<"executed">, Schema.Literal<"failed">, Schema.Literal<"queued">, Schema.Literal<"accepted">, Schema.Literal<"completed">, Schema.Literal<"notSent">, Schema.Literal<"uncertain">]>, Schema.Null]>>;
@@ -2014,8 +2038,8 @@ export declare const MailboxesListActions200: Schema.Struct<{
2014
2038
  readonly reviewExpectedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
2015
2039
  readonly skippedRecipients: Schema.$Array<Schema.Struct<{
2016
2040
  readonly address: Schema.String;
2017
- readonly reason: Schema.Union<readonly [Schema.Literal<"bounce">, Schema.Literal<"complaint">, Schema.Literal<"unsubscribe">, Schema.Literal<"manual">, Schema.Literal<"group-unsubscribe">]>;
2018
- readonly unsubscribeGroupId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "UnsubscribeId">, Schema.Null]>>;
2041
+ readonly reason: Schema.Union<readonly [Schema.Literal<"bounce">, Schema.Literal<"complaint">, Schema.Literal<"unsubscribe">, Schema.Literal<"manual">, Schema.Literal<"topic-unsubscribe">]>;
2042
+ readonly topicId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TopicId">, Schema.Null]>>;
2019
2043
  }>>;
2020
2044
  readonly executeUntil: Schema.Union<readonly [Schema.String, Schema.Null]>;
2021
2045
  readonly retryAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
@@ -2190,8 +2214,8 @@ export declare const MailboxesGetAction200: Schema.Union<readonly [Schema.Struct
2190
2214
  readonly reviewExpectedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
2191
2215
  readonly skippedRecipients: Schema.$Array<Schema.Struct<{
2192
2216
  readonly address: Schema.String;
2193
- readonly reason: Schema.Union<readonly [Schema.Literal<"bounce">, Schema.Literal<"complaint">, Schema.Literal<"unsubscribe">, Schema.Literal<"manual">, Schema.Literal<"group-unsubscribe">]>;
2194
- readonly unsubscribeGroupId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "UnsubscribeId">, Schema.Null]>>;
2217
+ readonly reason: Schema.Union<readonly [Schema.Literal<"bounce">, Schema.Literal<"complaint">, Schema.Literal<"unsubscribe">, Schema.Literal<"manual">, Schema.Literal<"topic-unsubscribe">]>;
2218
+ readonly topicId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TopicId">, Schema.Null]>>;
2195
2219
  }>>;
2196
2220
  readonly executeUntil: Schema.Union<readonly [Schema.String, Schema.Null]>;
2197
2221
  readonly retryAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
@@ -2364,8 +2388,8 @@ export declare const MailboxesApproveAction200: Schema.Union<readonly [Schema.St
2364
2388
  readonly reviewExpectedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
2365
2389
  readonly skippedRecipients: Schema.$Array<Schema.Struct<{
2366
2390
  readonly address: Schema.String;
2367
- readonly reason: Schema.Union<readonly [Schema.Literal<"bounce">, Schema.Literal<"complaint">, Schema.Literal<"unsubscribe">, Schema.Literal<"manual">, Schema.Literal<"group-unsubscribe">]>;
2368
- readonly unsubscribeGroupId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "UnsubscribeId">, Schema.Null]>>;
2391
+ readonly reason: Schema.Union<readonly [Schema.Literal<"bounce">, Schema.Literal<"complaint">, Schema.Literal<"unsubscribe">, Schema.Literal<"manual">, Schema.Literal<"topic-unsubscribe">]>;
2392
+ readonly topicId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TopicId">, Schema.Null]>>;
2369
2393
  }>>;
2370
2394
  readonly executeUntil: Schema.Union<readonly [Schema.String, Schema.Null]>;
2371
2395
  readonly retryAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
@@ -2518,8 +2542,8 @@ export declare const MailboxesApproveAction202: Schema.Union<readonly [Schema.St
2518
2542
  readonly reviewExpectedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
2519
2543
  readonly skippedRecipients: Schema.$Array<Schema.Struct<{
2520
2544
  readonly address: Schema.String;
2521
- readonly reason: Schema.Union<readonly [Schema.Literal<"bounce">, Schema.Literal<"complaint">, Schema.Literal<"unsubscribe">, Schema.Literal<"manual">, Schema.Literal<"group-unsubscribe">]>;
2522
- readonly unsubscribeGroupId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "UnsubscribeId">, Schema.Null]>>;
2545
+ readonly reason: Schema.Union<readonly [Schema.Literal<"bounce">, Schema.Literal<"complaint">, Schema.Literal<"unsubscribe">, Schema.Literal<"manual">, Schema.Literal<"topic-unsubscribe">]>;
2546
+ readonly topicId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TopicId">, Schema.Null]>>;
2523
2547
  }>>;
2524
2548
  readonly executeUntil: Schema.Union<readonly [Schema.String, Schema.Null]>;
2525
2549
  readonly retryAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
@@ -2670,8 +2694,8 @@ export declare const MailboxesCancelAction200: Schema.Struct<{
2670
2694
  readonly reviewExpectedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
2671
2695
  readonly skippedRecipients: Schema.$Array<Schema.Struct<{
2672
2696
  readonly address: Schema.String;
2673
- readonly reason: Schema.Union<readonly [Schema.Literal<"bounce">, Schema.Literal<"complaint">, Schema.Literal<"unsubscribe">, Schema.Literal<"manual">, Schema.Literal<"group-unsubscribe">]>;
2674
- readonly unsubscribeGroupId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "UnsubscribeId">, Schema.Null]>>;
2697
+ readonly reason: Schema.Union<readonly [Schema.Literal<"bounce">, Schema.Literal<"complaint">, Schema.Literal<"unsubscribe">, Schema.Literal<"manual">, Schema.Literal<"topic-unsubscribe">]>;
2698
+ readonly topicId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TopicId">, Schema.Null]>>;
2675
2699
  }>>;
2676
2700
  readonly executeUntil: Schema.Union<readonly [Schema.String, Schema.Null]>;
2677
2701
  readonly retryAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
@@ -2731,8 +2755,8 @@ export declare const MailboxesCancelAction202: Schema.Struct<{
2731
2755
  readonly reviewExpectedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
2732
2756
  readonly skippedRecipients: Schema.$Array<Schema.Struct<{
2733
2757
  readonly address: Schema.String;
2734
- readonly reason: Schema.Union<readonly [Schema.Literal<"bounce">, Schema.Literal<"complaint">, Schema.Literal<"unsubscribe">, Schema.Literal<"manual">, Schema.Literal<"group-unsubscribe">]>;
2735
- readonly unsubscribeGroupId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "UnsubscribeId">, Schema.Null]>>;
2758
+ readonly reason: Schema.Union<readonly [Schema.Literal<"bounce">, Schema.Literal<"complaint">, Schema.Literal<"unsubscribe">, Schema.Literal<"manual">, Schema.Literal<"topic-unsubscribe">]>;
2759
+ readonly topicId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TopicId">, Schema.Null]>>;
2736
2760
  }>>;
2737
2761
  readonly executeUntil: Schema.Union<readonly [Schema.String, Schema.Null]>;
2738
2762
  readonly retryAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
@@ -2860,8 +2884,8 @@ export declare const MailboxesDenyAction200: Schema.Union<readonly [Schema.Struc
2860
2884
  readonly reviewExpectedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
2861
2885
  readonly skippedRecipients: Schema.$Array<Schema.Struct<{
2862
2886
  readonly address: Schema.String;
2863
- readonly reason: Schema.Union<readonly [Schema.Literal<"bounce">, Schema.Literal<"complaint">, Schema.Literal<"unsubscribe">, Schema.Literal<"manual">, Schema.Literal<"group-unsubscribe">]>;
2864
- readonly unsubscribeGroupId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "UnsubscribeId">, Schema.Null]>>;
2887
+ readonly reason: Schema.Union<readonly [Schema.Literal<"bounce">, Schema.Literal<"complaint">, Schema.Literal<"unsubscribe">, Schema.Literal<"manual">, Schema.Literal<"topic-unsubscribe">]>;
2888
+ readonly topicId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TopicId">, Schema.Null]>>;
2865
2889
  }>>;
2866
2890
  readonly executeUntil: Schema.Union<readonly [Schema.String, Schema.Null]>;
2867
2891
  readonly retryAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
@@ -3004,8 +3028,8 @@ export declare const MailboxesRetryAction200: Schema.Struct<{
3004
3028
  readonly reviewExpectedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
3005
3029
  readonly skippedRecipients: Schema.$Array<Schema.Struct<{
3006
3030
  readonly address: Schema.String;
3007
- readonly reason: Schema.Union<readonly [Schema.Literal<"bounce">, Schema.Literal<"complaint">, Schema.Literal<"unsubscribe">, Schema.Literal<"manual">, Schema.Literal<"group-unsubscribe">]>;
3008
- readonly unsubscribeGroupId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "UnsubscribeId">, Schema.Null]>>;
3031
+ readonly reason: Schema.Union<readonly [Schema.Literal<"bounce">, Schema.Literal<"complaint">, Schema.Literal<"unsubscribe">, Schema.Literal<"manual">, Schema.Literal<"topic-unsubscribe">]>;
3032
+ readonly topicId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TopicId">, Schema.Null]>>;
3009
3033
  }>>;
3010
3034
  readonly executeUntil: Schema.Union<readonly [Schema.String, Schema.Null]>;
3011
3035
  readonly retryAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
@@ -3065,8 +3089,8 @@ export declare const MailboxesRetryAction202: Schema.Struct<{
3065
3089
  readonly reviewExpectedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
3066
3090
  readonly skippedRecipients: Schema.$Array<Schema.Struct<{
3067
3091
  readonly address: Schema.String;
3068
- readonly reason: Schema.Union<readonly [Schema.Literal<"bounce">, Schema.Literal<"complaint">, Schema.Literal<"unsubscribe">, Schema.Literal<"manual">, Schema.Literal<"group-unsubscribe">]>;
3069
- readonly unsubscribeGroupId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "UnsubscribeId">, Schema.Null]>>;
3092
+ readonly reason: Schema.Union<readonly [Schema.Literal<"bounce">, Schema.Literal<"complaint">, Schema.Literal<"unsubscribe">, Schema.Literal<"manual">, Schema.Literal<"topic-unsubscribe">]>;
3093
+ readonly topicId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TopicId">, Schema.Null]>>;
3070
3094
  }>>;
3071
3095
  readonly executeUntil: Schema.Union<readonly [Schema.String, Schema.Null]>;
3072
3096
  readonly retryAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
@@ -3189,12 +3213,12 @@ export declare const MailboxesListDraftsPathParams: Schema.Struct<{
3189
3213
  readonly id: Schema.brand<Schema.String, "MailboxId">;
3190
3214
  }>;
3191
3215
  export type MailboxesListDraftsQuery = {
3192
- readonly limit?: string | null;
3216
+ readonly limit?: number | null;
3193
3217
  readonly cursor?: Cursor | null;
3194
3218
  readonly threadId?: MailboxThreadId | null;
3195
3219
  };
3196
3220
  export declare const MailboxesListDraftsQuery: Schema.Struct<{
3197
- readonly limit: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
3221
+ readonly limit: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Null]>>;
3198
3222
  readonly cursor: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
3199
3223
  readonly threadId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "MailboxThreadId">, Schema.Null]>>;
3200
3224
  }>;
@@ -3472,8 +3496,8 @@ export declare const MailboxesSendDraft200: Schema.Struct<{
3472
3496
  readonly reviewExpectedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
3473
3497
  readonly skippedRecipients: Schema.$Array<Schema.Struct<{
3474
3498
  readonly address: Schema.String;
3475
- readonly reason: Schema.Union<readonly [Schema.Literal<"bounce">, Schema.Literal<"complaint">, Schema.Literal<"unsubscribe">, Schema.Literal<"manual">, Schema.Literal<"group-unsubscribe">]>;
3476
- readonly unsubscribeGroupId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "UnsubscribeId">, Schema.Null]>>;
3499
+ readonly reason: Schema.Union<readonly [Schema.Literal<"bounce">, Schema.Literal<"complaint">, Schema.Literal<"unsubscribe">, Schema.Literal<"manual">, Schema.Literal<"topic-unsubscribe">]>;
3500
+ readonly topicId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TopicId">, Schema.Null]>>;
3477
3501
  }>>;
3478
3502
  readonly executeUntil: Schema.Union<readonly [Schema.String, Schema.Null]>;
3479
3503
  readonly retryAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
@@ -3533,8 +3557,8 @@ export declare const MailboxesSendDraft202: Schema.Struct<{
3533
3557
  readonly reviewExpectedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
3534
3558
  readonly skippedRecipients: Schema.$Array<Schema.Struct<{
3535
3559
  readonly address: Schema.String;
3536
- readonly reason: Schema.Union<readonly [Schema.Literal<"bounce">, Schema.Literal<"complaint">, Schema.Literal<"unsubscribe">, Schema.Literal<"manual">, Schema.Literal<"group-unsubscribe">]>;
3537
- readonly unsubscribeGroupId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "UnsubscribeId">, Schema.Null]>>;
3560
+ readonly reason: Schema.Union<readonly [Schema.Literal<"bounce">, Schema.Literal<"complaint">, Schema.Literal<"unsubscribe">, Schema.Literal<"manual">, Schema.Literal<"topic-unsubscribe">]>;
3561
+ readonly topicId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TopicId">, Schema.Null]>>;
3538
3562
  }>>;
3539
3563
  readonly executeUntil: Schema.Union<readonly [Schema.String, Schema.Null]>;
3540
3564
  readonly retryAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
@@ -3755,13 +3779,13 @@ export declare const MailboxesListEventsPathParams: Schema.Struct<{
3755
3779
  readonly id: Schema.brand<Schema.String, "MailboxId">;
3756
3780
  }>;
3757
3781
  export type MailboxesListEventsQuery = {
3758
- readonly limit?: string | null;
3782
+ readonly limit?: number | null;
3759
3783
  readonly cursor?: Cursor | null;
3760
3784
  readonly after?: string | null;
3761
3785
  readonly before?: string | null;
3762
3786
  };
3763
3787
  export declare const MailboxesListEventsQuery: Schema.Struct<{
3764
- readonly limit: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
3788
+ readonly limit: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Null]>>;
3765
3789
  readonly cursor: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
3766
3790
  readonly after: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
3767
3791
  readonly before: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
@@ -3828,11 +3852,11 @@ export declare const MailboxesListGrantsPathParams: Schema.Struct<{
3828
3852
  readonly id: Schema.brand<Schema.String, "MailboxId">;
3829
3853
  }>;
3830
3854
  export type MailboxesListGrantsQuery = {
3831
- readonly limit?: string | null;
3855
+ readonly limit?: number | null;
3832
3856
  readonly cursor?: Cursor | null;
3833
3857
  };
3834
3858
  export declare const MailboxesListGrantsQuery: Schema.Struct<{
3835
- readonly limit: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
3859
+ readonly limit: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Null]>>;
3836
3860
  readonly cursor: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
3837
3861
  }>;
3838
3862
  export type MailboxesListGrants200 = MailboxGrantPage;
@@ -4153,8 +4177,8 @@ export declare const MailboxesSendMessage200: Schema.Struct<{
4153
4177
  readonly reviewExpectedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
4154
4178
  readonly skippedRecipients: Schema.$Array<Schema.Struct<{
4155
4179
  readonly address: Schema.String;
4156
- readonly reason: Schema.Union<readonly [Schema.Literal<"bounce">, Schema.Literal<"complaint">, Schema.Literal<"unsubscribe">, Schema.Literal<"manual">, Schema.Literal<"group-unsubscribe">]>;
4157
- readonly unsubscribeGroupId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "UnsubscribeId">, Schema.Null]>>;
4180
+ readonly reason: Schema.Union<readonly [Schema.Literal<"bounce">, Schema.Literal<"complaint">, Schema.Literal<"unsubscribe">, Schema.Literal<"manual">, Schema.Literal<"topic-unsubscribe">]>;
4181
+ readonly topicId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TopicId">, Schema.Null]>>;
4158
4182
  }>>;
4159
4183
  readonly executeUntil: Schema.Union<readonly [Schema.String, Schema.Null]>;
4160
4184
  readonly retryAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
@@ -4214,8 +4238,8 @@ export declare const MailboxesSendMessage202: Schema.Struct<{
4214
4238
  readonly reviewExpectedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
4215
4239
  readonly skippedRecipients: Schema.$Array<Schema.Struct<{
4216
4240
  readonly address: Schema.String;
4217
- readonly reason: Schema.Union<readonly [Schema.Literal<"bounce">, Schema.Literal<"complaint">, Schema.Literal<"unsubscribe">, Schema.Literal<"manual">, Schema.Literal<"group-unsubscribe">]>;
4218
- readonly unsubscribeGroupId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "UnsubscribeId">, Schema.Null]>>;
4241
+ readonly reason: Schema.Union<readonly [Schema.Literal<"bounce">, Schema.Literal<"complaint">, Schema.Literal<"unsubscribe">, Schema.Literal<"manual">, Schema.Literal<"topic-unsubscribe">]>;
4242
+ readonly topicId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TopicId">, Schema.Null]>>;
4219
4243
  }>>;
4220
4244
  readonly executeUntil: Schema.Union<readonly [Schema.String, Schema.Null]>;
4221
4245
  readonly retryAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
@@ -4296,6 +4320,10 @@ export declare const MailboxesGetMessagePathParams: Schema.Struct<{
4296
4320
  export type MailboxesGetMessage200 = MailboxMessage;
4297
4321
  export declare const MailboxesGetMessage200: Schema.Struct<{
4298
4322
  readonly id: Schema.brand<Schema.String, "MessageId">;
4323
+ readonly campaign: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
4324
+ readonly campaignId: Schema.brand<Schema.String, "CampaignId">;
4325
+ readonly runId: Schema.brand<Schema.String, "CampaignRunId">;
4326
+ }>, Schema.Null]>>;
4299
4327
  readonly threadId: Schema.brand<Schema.String, "MailboxThreadId">;
4300
4328
  readonly conversationId: Schema.brand<Schema.String, "ConversationId">;
4301
4329
  readonly direction: Schema.Union<readonly [Schema.Literal<"inbound">, Schema.Literal<"outbound">]>;
@@ -4508,8 +4536,8 @@ export declare const MailboxesForward200: Schema.Struct<{
4508
4536
  readonly reviewExpectedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
4509
4537
  readonly skippedRecipients: Schema.$Array<Schema.Struct<{
4510
4538
  readonly address: Schema.String;
4511
- readonly reason: Schema.Union<readonly [Schema.Literal<"bounce">, Schema.Literal<"complaint">, Schema.Literal<"unsubscribe">, Schema.Literal<"manual">, Schema.Literal<"group-unsubscribe">]>;
4512
- readonly unsubscribeGroupId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "UnsubscribeId">, Schema.Null]>>;
4539
+ readonly reason: Schema.Union<readonly [Schema.Literal<"bounce">, Schema.Literal<"complaint">, Schema.Literal<"unsubscribe">, Schema.Literal<"manual">, Schema.Literal<"topic-unsubscribe">]>;
4540
+ readonly topicId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TopicId">, Schema.Null]>>;
4513
4541
  }>>;
4514
4542
  readonly executeUntil: Schema.Union<readonly [Schema.String, Schema.Null]>;
4515
4543
  readonly retryAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
@@ -4569,8 +4597,8 @@ export declare const MailboxesForward202: Schema.Struct<{
4569
4597
  readonly reviewExpectedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
4570
4598
  readonly skippedRecipients: Schema.$Array<Schema.Struct<{
4571
4599
  readonly address: Schema.String;
4572
- readonly reason: Schema.Union<readonly [Schema.Literal<"bounce">, Schema.Literal<"complaint">, Schema.Literal<"unsubscribe">, Schema.Literal<"manual">, Schema.Literal<"group-unsubscribe">]>;
4573
- readonly unsubscribeGroupId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "UnsubscribeId">, Schema.Null]>>;
4600
+ readonly reason: Schema.Union<readonly [Schema.Literal<"bounce">, Schema.Literal<"complaint">, Schema.Literal<"unsubscribe">, Schema.Literal<"manual">, Schema.Literal<"topic-unsubscribe">]>;
4601
+ readonly topicId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TopicId">, Schema.Null]>>;
4574
4602
  }>>;
4575
4603
  readonly executeUntil: Schema.Union<readonly [Schema.String, Schema.Null]>;
4576
4604
  readonly retryAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
@@ -4752,8 +4780,8 @@ export declare const MailboxesReply200: Schema.Struct<{
4752
4780
  readonly reviewExpectedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
4753
4781
  readonly skippedRecipients: Schema.$Array<Schema.Struct<{
4754
4782
  readonly address: Schema.String;
4755
- readonly reason: Schema.Union<readonly [Schema.Literal<"bounce">, Schema.Literal<"complaint">, Schema.Literal<"unsubscribe">, Schema.Literal<"manual">, Schema.Literal<"group-unsubscribe">]>;
4756
- readonly unsubscribeGroupId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "UnsubscribeId">, Schema.Null]>>;
4783
+ readonly reason: Schema.Union<readonly [Schema.Literal<"bounce">, Schema.Literal<"complaint">, Schema.Literal<"unsubscribe">, Schema.Literal<"manual">, Schema.Literal<"topic-unsubscribe">]>;
4784
+ readonly topicId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TopicId">, Schema.Null]>>;
4757
4785
  }>>;
4758
4786
  readonly executeUntil: Schema.Union<readonly [Schema.String, Schema.Null]>;
4759
4787
  readonly retryAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
@@ -4813,8 +4841,8 @@ export declare const MailboxesReply202: Schema.Struct<{
4813
4841
  readonly reviewExpectedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
4814
4842
  readonly skippedRecipients: Schema.$Array<Schema.Struct<{
4815
4843
  readonly address: Schema.String;
4816
- readonly reason: Schema.Union<readonly [Schema.Literal<"bounce">, Schema.Literal<"complaint">, Schema.Literal<"unsubscribe">, Schema.Literal<"manual">, Schema.Literal<"group-unsubscribe">]>;
4817
- readonly unsubscribeGroupId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "UnsubscribeId">, Schema.Null]>>;
4844
+ readonly reason: Schema.Union<readonly [Schema.Literal<"bounce">, Schema.Literal<"complaint">, Schema.Literal<"unsubscribe">, Schema.Literal<"manual">, Schema.Literal<"topic-unsubscribe">]>;
4845
+ readonly topicId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TopicId">, Schema.Null]>>;
4818
4846
  }>>;
4819
4847
  readonly executeUntil: Schema.Union<readonly [Schema.String, Schema.Null]>;
4820
4848
  readonly retryAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
@@ -4932,8 +4960,8 @@ export declare const MailboxesReplyAll200: Schema.Struct<{
4932
4960
  readonly reviewExpectedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
4933
4961
  readonly skippedRecipients: Schema.$Array<Schema.Struct<{
4934
4962
  readonly address: Schema.String;
4935
- readonly reason: Schema.Union<readonly [Schema.Literal<"bounce">, Schema.Literal<"complaint">, Schema.Literal<"unsubscribe">, Schema.Literal<"manual">, Schema.Literal<"group-unsubscribe">]>;
4936
- readonly unsubscribeGroupId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "UnsubscribeId">, Schema.Null]>>;
4963
+ readonly reason: Schema.Union<readonly [Schema.Literal<"bounce">, Schema.Literal<"complaint">, Schema.Literal<"unsubscribe">, Schema.Literal<"manual">, Schema.Literal<"topic-unsubscribe">]>;
4964
+ readonly topicId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TopicId">, Schema.Null]>>;
4937
4965
  }>>;
4938
4966
  readonly executeUntil: Schema.Union<readonly [Schema.String, Schema.Null]>;
4939
4967
  readonly retryAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
@@ -4993,8 +5021,8 @@ export declare const MailboxesReplyAll202: Schema.Struct<{
4993
5021
  readonly reviewExpectedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
4994
5022
  readonly skippedRecipients: Schema.$Array<Schema.Struct<{
4995
5023
  readonly address: Schema.String;
4996
- readonly reason: Schema.Union<readonly [Schema.Literal<"bounce">, Schema.Literal<"complaint">, Schema.Literal<"unsubscribe">, Schema.Literal<"manual">, Schema.Literal<"group-unsubscribe">]>;
4997
- readonly unsubscribeGroupId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "UnsubscribeId">, Schema.Null]>>;
5024
+ readonly reason: Schema.Union<readonly [Schema.Literal<"bounce">, Schema.Literal<"complaint">, Schema.Literal<"unsubscribe">, Schema.Literal<"manual">, Schema.Literal<"topic-unsubscribe">]>;
5025
+ readonly topicId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TopicId">, Schema.Null]>>;
4998
5026
  }>>;
4999
5027
  readonly executeUntil: Schema.Union<readonly [Schema.String, Schema.Null]>;
5000
5028
  readonly retryAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
@@ -5279,13 +5307,13 @@ export declare const MailboxesListQuarantinePathParams: Schema.Struct<{
5279
5307
  readonly id: Schema.brand<Schema.String, "MailboxId">;
5280
5308
  }>;
5281
5309
  export type MailboxesListQuarantineQuery = {
5282
- readonly limit?: string | null;
5310
+ readonly limit?: number | null;
5283
5311
  readonly cursor?: Cursor | null;
5284
5312
  readonly after?: string | null;
5285
5313
  readonly before?: string | null;
5286
5314
  };
5287
5315
  export declare const MailboxesListQuarantineQuery: Schema.Struct<{
5288
- readonly limit: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
5316
+ readonly limit: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Null]>>;
5289
5317
  readonly cursor: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
5290
5318
  readonly after: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
5291
5319
  readonly before: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
@@ -5369,28 +5397,28 @@ export declare const MailboxesListThreadsPathParams: Schema.Struct<{
5369
5397
  readonly id: Schema.brand<Schema.String, "MailboxId">;
5370
5398
  }>;
5371
5399
  export type MailboxesListThreadsQuery = {
5372
- readonly limit?: string | null;
5400
+ readonly limit?: number | null;
5373
5401
  readonly cursor?: Cursor | null;
5374
5402
  readonly after?: string | null;
5375
5403
  readonly before?: string | null;
5376
5404
  readonly q?: string | null;
5377
5405
  readonly folder?: MailboxThreadFolder | null;
5378
5406
  readonly label?: MailboxLabelId | null;
5379
- readonly unread?: "true" | "false" | null;
5380
- readonly starred?: "true" | "false" | null;
5381
- readonly snoozed?: "true" | "false" | null;
5407
+ readonly unread?: boolean | null;
5408
+ readonly starred?: boolean | null;
5409
+ readonly snoozed?: boolean | null;
5382
5410
  };
5383
5411
  export declare const MailboxesListThreadsQuery: Schema.Struct<{
5384
- readonly limit: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
5412
+ readonly limit: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Null]>>;
5385
5413
  readonly cursor: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
5386
5414
  readonly after: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
5387
5415
  readonly before: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
5388
5416
  readonly q: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
5389
5417
  readonly folder: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"inbox">, Schema.Literal<"assigned">, Schema.Literal<"pending">, Schema.Literal<"sent">, Schema.Literal<"archived">, Schema.Literal<"trash">]>, Schema.Null]>>;
5390
5418
  readonly label: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "MailboxLabelId">, Schema.Null]>>;
5391
- readonly unread: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"true">, Schema.Literal<"false">]>, Schema.Null]>>;
5392
- readonly starred: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"true">, Schema.Literal<"false">]>, Schema.Null]>>;
5393
- readonly snoozed: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"true">, Schema.Literal<"false">]>, Schema.Null]>>;
5419
+ readonly unread: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
5420
+ readonly starred: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
5421
+ readonly snoozed: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
5394
5422
  }>;
5395
5423
  export type MailboxesListThreads200 = MailboxThreadPage;
5396
5424
  export declare const MailboxesListThreads200: Schema.Struct<{
@@ -5535,17 +5563,21 @@ export declare const MailboxesGetThreadContentPathParams: Schema.Struct<{
5535
5563
  readonly threadId: Schema.brand<Schema.String, "MailboxThreadId">;
5536
5564
  }>;
5537
5565
  export type MailboxesGetThreadContentQuery = {
5538
- readonly limit?: string | null;
5566
+ readonly limit?: number | null;
5539
5567
  readonly cursor?: Cursor | null;
5540
5568
  };
5541
5569
  export declare const MailboxesGetThreadContentQuery: Schema.Struct<{
5542
- readonly limit: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
5570
+ readonly limit: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Null]>>;
5543
5571
  readonly cursor: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
5544
5572
  }>;
5545
5573
  export type MailboxesGetThreadContent200 = MailboxThreadContentPage;
5546
5574
  export declare const MailboxesGetThreadContent200: Schema.Struct<{
5547
5575
  readonly items: Schema.$Array<Schema.Struct<{
5548
5576
  readonly id: Schema.brand<Schema.String, "MessageId">;
5577
+ readonly campaign: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
5578
+ readonly campaignId: Schema.brand<Schema.String, "CampaignId">;
5579
+ readonly runId: Schema.brand<Schema.String, "CampaignRunId">;
5580
+ }>, Schema.Null]>>;
5549
5581
  readonly threadId: Schema.brand<Schema.String, "MailboxThreadId">;
5550
5582
  readonly conversationId: Schema.brand<Schema.String, "ConversationId">;
5551
5583
  readonly direction: Schema.Union<readonly [Schema.Literal<"inbound">, Schema.Literal<"outbound">]>;
@@ -5693,17 +5725,21 @@ export declare const MailboxesListThreadMessagesPathParams: Schema.Struct<{
5693
5725
  readonly threadId: Schema.brand<Schema.String, "MailboxThreadId">;
5694
5726
  }>;
5695
5727
  export type MailboxesListThreadMessagesQuery = {
5696
- readonly limit?: string | null;
5728
+ readonly limit?: number | null;
5697
5729
  readonly cursor?: Cursor | null;
5698
5730
  };
5699
5731
  export declare const MailboxesListThreadMessagesQuery: Schema.Struct<{
5700
- readonly limit: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
5732
+ readonly limit: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Null]>>;
5701
5733
  readonly cursor: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
5702
5734
  }>;
5703
5735
  export type MailboxesListThreadMessages200 = MailboxMessagePage;
5704
5736
  export declare const MailboxesListThreadMessages200: Schema.Struct<{
5705
5737
  readonly items: Schema.$Array<Schema.Struct<{
5706
5738
  readonly id: Schema.brand<Schema.String, "MessageId">;
5739
+ readonly campaign: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
5740
+ readonly campaignId: Schema.brand<Schema.String, "CampaignId">;
5741
+ readonly runId: Schema.brand<Schema.String, "CampaignRunId">;
5742
+ }>, Schema.Null]>>;
5707
5743
  readonly channel: Schema.Literal<"email">;
5708
5744
  readonly direction: Schema.Union<readonly [Schema.Literal<"inbound">, Schema.Literal<"outbound">]>;
5709
5745
  readonly from: Schema.Struct<{
@@ -5744,11 +5780,11 @@ export declare const MailboxesListThreadNotesPathParams: Schema.Struct<{
5744
5780
  readonly threadId: Schema.brand<Schema.String, "MailboxThreadId">;
5745
5781
  }>;
5746
5782
  export type MailboxesListThreadNotesQuery = {
5747
- readonly limit?: string | null;
5783
+ readonly limit?: number | null;
5748
5784
  readonly cursor?: Cursor | null;
5749
5785
  };
5750
5786
  export declare const MailboxesListThreadNotesQuery: Schema.Struct<{
5751
- readonly limit: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
5787
+ readonly limit: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Null]>>;
5752
5788
  readonly cursor: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
5753
5789
  }>;
5754
5790
  export type MailboxesListThreadNotes200 = MailboxNotePage;
@@ -6035,8 +6071,8 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
6035
6071
  readonly reviewExpectedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
6036
6072
  readonly skippedRecipients: Schema.$Array<Schema.Struct<{
6037
6073
  readonly address: Schema.String;
6038
- readonly reason: Schema.Union<readonly [Schema.Literal<"bounce">, Schema.Literal<"complaint">, Schema.Literal<"unsubscribe">, Schema.Literal<"manual">, Schema.Literal<"group-unsubscribe">]>;
6039
- readonly unsubscribeGroupId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "UnsubscribeId">, Schema.Null]>>;
6074
+ readonly reason: Schema.Union<readonly [Schema.Literal<"bounce">, Schema.Literal<"complaint">, Schema.Literal<"unsubscribe">, Schema.Literal<"manual">, Schema.Literal<"topic-unsubscribe">]>;
6075
+ readonly topicId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TopicId">, Schema.Null]>>;
6040
6076
  }>>;
6041
6077
  readonly executeUntil: Schema.Union<readonly [Schema.String, Schema.Null]>;
6042
6078
  readonly retryAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
@@ -6298,8 +6334,8 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
6298
6334
  readonly reviewExpectedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
6299
6335
  readonly skippedRecipients: Schema.$Array<Schema.Struct<{
6300
6336
  readonly address: Schema.String;
6301
- readonly reason: Schema.Union<readonly [Schema.Literal<"bounce">, Schema.Literal<"complaint">, Schema.Literal<"unsubscribe">, Schema.Literal<"manual">, Schema.Literal<"group-unsubscribe">]>;
6302
- readonly unsubscribeGroupId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "UnsubscribeId">, Schema.Null]>>;
6337
+ readonly reason: Schema.Union<readonly [Schema.Literal<"bounce">, Schema.Literal<"complaint">, Schema.Literal<"unsubscribe">, Schema.Literal<"manual">, Schema.Literal<"topic-unsubscribe">]>;
6338
+ readonly topicId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TopicId">, Schema.Null]>>;
6303
6339
  }>>;
6304
6340
  readonly executeUntil: Schema.Union<readonly [Schema.String, Schema.Null]>;
6305
6341
  readonly retryAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
@@ -6357,8 +6393,8 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
6357
6393
  readonly reviewExpectedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
6358
6394
  readonly skippedRecipients: Schema.$Array<Schema.Struct<{
6359
6395
  readonly address: Schema.String;
6360
- readonly reason: Schema.Union<readonly [Schema.Literal<"bounce">, Schema.Literal<"complaint">, Schema.Literal<"unsubscribe">, Schema.Literal<"manual">, Schema.Literal<"group-unsubscribe">]>;
6361
- readonly unsubscribeGroupId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "UnsubscribeId">, Schema.Null]>>;
6396
+ readonly reason: Schema.Union<readonly [Schema.Literal<"bounce">, Schema.Literal<"complaint">, Schema.Literal<"unsubscribe">, Schema.Literal<"manual">, Schema.Literal<"topic-unsubscribe">]>;
6397
+ readonly topicId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TopicId">, Schema.Null]>>;
6362
6398
  }>>;
6363
6399
  readonly executeUntil: Schema.Union<readonly [Schema.String, Schema.Null]>;
6364
6400
  readonly retryAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
@@ -7879,8 +7915,8 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
7879
7915
  readonly reviewExpectedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
7880
7916
  readonly skippedRecipients: Schema.$Array<Schema.Struct<{
7881
7917
  readonly address: Schema.String;
7882
- readonly reason: Schema.Union<readonly [Schema.Literal<"bounce">, Schema.Literal<"complaint">, Schema.Literal<"unsubscribe">, Schema.Literal<"manual">, Schema.Literal<"group-unsubscribe">]>;
7883
- readonly unsubscribeGroupId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "UnsubscribeId">, Schema.Null]>>;
7918
+ readonly reason: Schema.Union<readonly [Schema.Literal<"bounce">, Schema.Literal<"complaint">, Schema.Literal<"unsubscribe">, Schema.Literal<"manual">, Schema.Literal<"topic-unsubscribe">]>;
7919
+ readonly topicId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TopicId">, Schema.Null]>>;
7884
7920
  }>>;
7885
7921
  readonly executeUntil: Schema.Union<readonly [Schema.String, Schema.Null]>;
7886
7922
  readonly retryAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
@@ -8227,8 +8263,8 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
8227
8263
  readonly reviewExpectedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
8228
8264
  readonly skippedRecipients: Schema.$Array<Schema.Struct<{
8229
8265
  readonly address: Schema.String;
8230
- readonly reason: Schema.Union<readonly [Schema.Literal<"bounce">, Schema.Literal<"complaint">, Schema.Literal<"unsubscribe">, Schema.Literal<"manual">, Schema.Literal<"group-unsubscribe">]>;
8231
- readonly unsubscribeGroupId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "UnsubscribeId">, Schema.Null]>>;
8266
+ readonly reason: Schema.Union<readonly [Schema.Literal<"bounce">, Schema.Literal<"complaint">, Schema.Literal<"unsubscribe">, Schema.Literal<"manual">, Schema.Literal<"topic-unsubscribe">]>;
8267
+ readonly topicId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TopicId">, Schema.Null]>>;
8232
8268
  }>>;
8233
8269
  readonly executeUntil: Schema.Union<readonly [Schema.String, Schema.Null]>;
8234
8270
  readonly retryAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
@@ -8286,8 +8322,8 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
8286
8322
  readonly reviewExpectedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
8287
8323
  readonly skippedRecipients: Schema.$Array<Schema.Struct<{
8288
8324
  readonly address: Schema.String;
8289
- readonly reason: Schema.Union<readonly [Schema.Literal<"bounce">, Schema.Literal<"complaint">, Schema.Literal<"unsubscribe">, Schema.Literal<"manual">, Schema.Literal<"group-unsubscribe">]>;
8290
- readonly unsubscribeGroupId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "UnsubscribeId">, Schema.Null]>>;
8325
+ readonly reason: Schema.Union<readonly [Schema.Literal<"bounce">, Schema.Literal<"complaint">, Schema.Literal<"unsubscribe">, Schema.Literal<"manual">, Schema.Literal<"topic-unsubscribe">]>;
8326
+ readonly topicId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TopicId">, Schema.Null]>>;
8291
8327
  }>>;
8292
8328
  readonly executeUntil: Schema.Union<readonly [Schema.String, Schema.Null]>;
8293
8329
  readonly retryAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
@@ -8622,8 +8658,8 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
8622
8658
  readonly reviewExpectedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
8623
8659
  readonly skippedRecipients: Schema.$Array<Schema.Struct<{
8624
8660
  readonly address: Schema.String;
8625
- readonly reason: Schema.Union<readonly [Schema.Literal<"bounce">, Schema.Literal<"complaint">, Schema.Literal<"unsubscribe">, Schema.Literal<"manual">, Schema.Literal<"group-unsubscribe">]>;
8626
- readonly unsubscribeGroupId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "UnsubscribeId">, Schema.Null]>>;
8661
+ readonly reason: Schema.Union<readonly [Schema.Literal<"bounce">, Schema.Literal<"complaint">, Schema.Literal<"unsubscribe">, Schema.Literal<"manual">, Schema.Literal<"topic-unsubscribe">]>;
8662
+ readonly topicId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TopicId">, Schema.Null]>>;
8627
8663
  }>>;
8628
8664
  readonly executeUntil: Schema.Union<readonly [Schema.String, Schema.Null]>;
8629
8665
  readonly retryAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
@@ -9026,6 +9062,10 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
9026
9062
  readonly messageId: Schema.brand<Schema.String, "MessageId">;
9027
9063
  }>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
9028
9064
  readonly id: Schema.brand<Schema.String, "MessageId">;
9065
+ readonly campaign: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
9066
+ readonly campaignId: Schema.brand<Schema.String, "CampaignId">;
9067
+ readonly runId: Schema.brand<Schema.String, "CampaignRunId">;
9068
+ }>, Schema.Null]>>;
9029
9069
  readonly threadId: Schema.brand<Schema.String, "MailboxThreadId">;
9030
9070
  readonly conversationId: Schema.brand<Schema.String, "ConversationId">;
9031
9071
  readonly direction: Schema.Union<readonly [Schema.Literal<"inbound">, Schema.Literal<"outbound">]>;
@@ -9539,11 +9579,15 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
9539
9579
  readonly id: Schema.brand<Schema.String, "MailboxId">;
9540
9580
  readonly threadId: Schema.brand<Schema.String, "MailboxThreadId">;
9541
9581
  }>>, Schema.toCodecStringTree<Schema.Struct<{
9542
- readonly limit: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
9582
+ readonly limit: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Null]>>;
9543
9583
  readonly cursor: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
9544
9584
  }>>, never, never, Schema.toCodecJson<Schema.Struct<{
9545
9585
  readonly items: Schema.$Array<Schema.Struct<{
9546
9586
  readonly id: Schema.brand<Schema.String, "MessageId">;
9587
+ readonly campaign: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
9588
+ readonly campaignId: Schema.brand<Schema.String, "CampaignId">;
9589
+ readonly runId: Schema.brand<Schema.String, "CampaignRunId">;
9590
+ }>, Schema.Null]>>;
9547
9591
  readonly threadId: Schema.brand<Schema.String, "MailboxThreadId">;
9548
9592
  readonly conversationId: Schema.brand<Schema.String, "ConversationId">;
9549
9593
  readonly direction: Schema.Union<readonly [Schema.Literal<"inbound">, Schema.Literal<"outbound">]>;
@@ -9678,7 +9722,7 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
9678
9722
  readonly message: Schema.String;
9679
9723
  readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
9680
9724
  }>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"mailboxesList", "GET", "/v1/mailboxes", never, Schema.toCodecStringTree<Schema.Struct<{
9681
- readonly limit: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
9725
+ readonly limit: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Null]>>;
9682
9726
  readonly cursor: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
9683
9727
  readonly after: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
9684
9728
  readonly before: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
@@ -9756,7 +9800,7 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
9756
9800
  }>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"mailboxesListActions", "GET", "/v1/mailboxes/:id/actions", Schema.toCodecStringTree<Schema.Struct<{
9757
9801
  readonly id: Schema.brand<Schema.String, "MailboxId">;
9758
9802
  }>>, Schema.toCodecStringTree<Schema.Struct<{
9759
- readonly limit: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
9803
+ readonly limit: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Null]>>;
9760
9804
  readonly cursor: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
9761
9805
  readonly threadId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "MailboxThreadId">, Schema.Null]>>;
9762
9806
  readonly state: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"proposed">, Schema.Literal<"allowed">, Schema.Literal<"approvalRequired">, Schema.Literal<"policyDenied">, Schema.Literal<"approved">, Schema.Literal<"approvalDenied">, Schema.Literal<"executing">, Schema.Literal<"executed">, Schema.Literal<"failed">, Schema.Literal<"queued">, Schema.Literal<"accepted">, Schema.Literal<"completed">, Schema.Literal<"notSent">, Schema.Literal<"uncertain">]>, Schema.Null]>>;
@@ -9806,8 +9850,8 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
9806
9850
  readonly reviewExpectedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
9807
9851
  readonly skippedRecipients: Schema.$Array<Schema.Struct<{
9808
9852
  readonly address: Schema.String;
9809
- readonly reason: Schema.Union<readonly [Schema.Literal<"bounce">, Schema.Literal<"complaint">, Schema.Literal<"unsubscribe">, Schema.Literal<"manual">, Schema.Literal<"group-unsubscribe">]>;
9810
- readonly unsubscribeGroupId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "UnsubscribeId">, Schema.Null]>>;
9853
+ readonly reason: Schema.Union<readonly [Schema.Literal<"bounce">, Schema.Literal<"complaint">, Schema.Literal<"unsubscribe">, Schema.Literal<"manual">, Schema.Literal<"topic-unsubscribe">]>;
9854
+ readonly topicId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TopicId">, Schema.Null]>>;
9811
9855
  }>>;
9812
9856
  readonly executeUntil: Schema.Union<readonly [Schema.String, Schema.Null]>;
9813
9857
  readonly retryAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
@@ -10000,7 +10044,7 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
10000
10044
  }>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"mailboxesListDrafts", "GET", "/v1/mailboxes/:id/drafts", Schema.toCodecStringTree<Schema.Struct<{
10001
10045
  readonly id: Schema.brand<Schema.String, "MailboxId">;
10002
10046
  }>>, Schema.toCodecStringTree<Schema.Struct<{
10003
- readonly limit: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
10047
+ readonly limit: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Null]>>;
10004
10048
  readonly cursor: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
10005
10049
  readonly threadId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "MailboxThreadId">, Schema.Null]>>;
10006
10050
  }>>, never, never, Schema.toCodecJson<Schema.Struct<{
@@ -10100,7 +10144,7 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
10100
10144
  }>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"mailboxesListEvents", "GET", "/v1/mailboxes/:id/events", Schema.toCodecStringTree<Schema.Struct<{
10101
10145
  readonly id: Schema.brand<Schema.String, "MailboxId">;
10102
10146
  }>>, Schema.toCodecStringTree<Schema.Struct<{
10103
- readonly limit: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
10147
+ readonly limit: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Null]>>;
10104
10148
  readonly cursor: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
10105
10149
  readonly after: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
10106
10150
  readonly before: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
@@ -10290,7 +10334,7 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
10290
10334
  }>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"mailboxesListGrants", "GET", "/v1/mailboxes/:id/grants", Schema.toCodecStringTree<Schema.Struct<{
10291
10335
  readonly id: Schema.brand<Schema.String, "MailboxId">;
10292
10336
  }>>, Schema.toCodecStringTree<Schema.Struct<{
10293
- readonly limit: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
10337
+ readonly limit: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Null]>>;
10294
10338
  readonly cursor: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
10295
10339
  }>>, never, never, Schema.toCodecJson<Schema.Struct<{
10296
10340
  readonly items: Schema.$Array<Schema.Struct<{
@@ -10571,7 +10615,7 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
10571
10615
  }>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"mailboxesListQuarantine", "GET", "/v1/mailboxes/:id/quarantine", Schema.toCodecStringTree<Schema.Struct<{
10572
10616
  readonly id: Schema.brand<Schema.String, "MailboxId">;
10573
10617
  }>>, Schema.toCodecStringTree<Schema.Struct<{
10574
- readonly limit: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
10618
+ readonly limit: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Null]>>;
10575
10619
  readonly cursor: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
10576
10620
  readonly after: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
10577
10621
  readonly before: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
@@ -10677,11 +10721,15 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
10677
10721
  readonly id: Schema.brand<Schema.String, "MailboxId">;
10678
10722
  readonly threadId: Schema.brand<Schema.String, "MailboxThreadId">;
10679
10723
  }>>, Schema.toCodecStringTree<Schema.Struct<{
10680
- readonly limit: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
10724
+ readonly limit: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Null]>>;
10681
10725
  readonly cursor: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
10682
10726
  }>>, never, never, Schema.toCodecJson<Schema.Struct<{
10683
10727
  readonly items: Schema.$Array<Schema.Struct<{
10684
10728
  readonly id: Schema.brand<Schema.String, "MessageId">;
10729
+ readonly campaign: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
10730
+ readonly campaignId: Schema.brand<Schema.String, "CampaignId">;
10731
+ readonly runId: Schema.brand<Schema.String, "CampaignRunId">;
10732
+ }>, Schema.Null]>>;
10685
10733
  readonly channel: Schema.Literal<"email">;
10686
10734
  readonly direction: Schema.Union<readonly [Schema.Literal<"inbound">, Schema.Literal<"outbound">]>;
10687
10735
  readonly from: Schema.Struct<{
@@ -10784,7 +10832,7 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
10784
10832
  readonly id: Schema.brand<Schema.String, "MailboxId">;
10785
10833
  readonly threadId: Schema.brand<Schema.String, "MailboxThreadId">;
10786
10834
  }>>, Schema.toCodecStringTree<Schema.Struct<{
10787
- readonly limit: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
10835
+ readonly limit: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Null]>>;
10788
10836
  readonly cursor: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
10789
10837
  }>>, never, never, Schema.toCodecJson<Schema.Struct<{
10790
10838
  readonly items: Schema.$Array<Schema.Struct<{
@@ -10884,16 +10932,16 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
10884
10932
  }>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"mailboxesListThreads", "GET", "/v1/mailboxes/:id/threads", Schema.toCodecStringTree<Schema.Struct<{
10885
10933
  readonly id: Schema.brand<Schema.String, "MailboxId">;
10886
10934
  }>>, Schema.toCodecStringTree<Schema.Struct<{
10887
- readonly limit: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
10935
+ readonly limit: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Null]>>;
10888
10936
  readonly cursor: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
10889
10937
  readonly after: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
10890
10938
  readonly before: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
10891
10939
  readonly q: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
10892
10940
  readonly folder: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"inbox">, Schema.Literal<"assigned">, Schema.Literal<"pending">, Schema.Literal<"sent">, Schema.Literal<"archived">, Schema.Literal<"trash">]>, Schema.Null]>>;
10893
10941
  readonly label: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "MailboxLabelId">, Schema.Null]>>;
10894
- readonly unread: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"true">, Schema.Literal<"false">]>, Schema.Null]>>;
10895
- readonly starred: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"true">, Schema.Literal<"false">]>, Schema.Null]>>;
10896
- readonly snoozed: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"true">, Schema.Literal<"false">]>, Schema.Null]>>;
10942
+ readonly unread: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
10943
+ readonly starred: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
10944
+ readonly snoozed: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
10897
10945
  }>>, never, never, Schema.toCodecJson<Schema.Struct<{
10898
10946
  readonly items: Schema.$Array<Schema.Struct<{
10899
10947
  readonly id: Schema.brand<Schema.String, "MailboxThreadId">;
@@ -11538,8 +11586,8 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
11538
11586
  readonly reviewExpectedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
11539
11587
  readonly skippedRecipients: Schema.$Array<Schema.Struct<{
11540
11588
  readonly address: Schema.String;
11541
- readonly reason: Schema.Union<readonly [Schema.Literal<"bounce">, Schema.Literal<"complaint">, Schema.Literal<"unsubscribe">, Schema.Literal<"manual">, Schema.Literal<"group-unsubscribe">]>;
11542
- readonly unsubscribeGroupId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "UnsubscribeId">, Schema.Null]>>;
11589
+ readonly reason: Schema.Union<readonly [Schema.Literal<"bounce">, Schema.Literal<"complaint">, Schema.Literal<"unsubscribe">, Schema.Literal<"manual">, Schema.Literal<"topic-unsubscribe">]>;
11590
+ readonly topicId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TopicId">, Schema.Null]>>;
11543
11591
  }>>;
11544
11592
  readonly executeUntil: Schema.Union<readonly [Schema.String, Schema.Null]>;
11545
11593
  readonly retryAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
@@ -11597,8 +11645,8 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
11597
11645
  readonly reviewExpectedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
11598
11646
  readonly skippedRecipients: Schema.$Array<Schema.Struct<{
11599
11647
  readonly address: Schema.String;
11600
- readonly reason: Schema.Union<readonly [Schema.Literal<"bounce">, Schema.Literal<"complaint">, Schema.Literal<"unsubscribe">, Schema.Literal<"manual">, Schema.Literal<"group-unsubscribe">]>;
11601
- readonly unsubscribeGroupId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "UnsubscribeId">, Schema.Null]>>;
11648
+ readonly reason: Schema.Union<readonly [Schema.Literal<"bounce">, Schema.Literal<"complaint">, Schema.Literal<"unsubscribe">, Schema.Literal<"manual">, Schema.Literal<"topic-unsubscribe">]>;
11649
+ readonly topicId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TopicId">, Schema.Null]>>;
11602
11650
  }>>;
11603
11651
  readonly executeUntil: Schema.Union<readonly [Schema.String, Schema.Null]>;
11604
11652
  readonly retryAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
@@ -11814,8 +11862,8 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
11814
11862
  readonly reviewExpectedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
11815
11863
  readonly skippedRecipients: Schema.$Array<Schema.Struct<{
11816
11864
  readonly address: Schema.String;
11817
- readonly reason: Schema.Union<readonly [Schema.Literal<"bounce">, Schema.Literal<"complaint">, Schema.Literal<"unsubscribe">, Schema.Literal<"manual">, Schema.Literal<"group-unsubscribe">]>;
11818
- readonly unsubscribeGroupId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "UnsubscribeId">, Schema.Null]>>;
11865
+ readonly reason: Schema.Union<readonly [Schema.Literal<"bounce">, Schema.Literal<"complaint">, Schema.Literal<"unsubscribe">, Schema.Literal<"manual">, Schema.Literal<"topic-unsubscribe">]>;
11866
+ readonly topicId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TopicId">, Schema.Null]>>;
11819
11867
  }>>;
11820
11868
  readonly executeUntil: Schema.Union<readonly [Schema.String, Schema.Null]>;
11821
11869
  readonly retryAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
@@ -11873,8 +11921,8 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
11873
11921
  readonly reviewExpectedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
11874
11922
  readonly skippedRecipients: Schema.$Array<Schema.Struct<{
11875
11923
  readonly address: Schema.String;
11876
- readonly reason: Schema.Union<readonly [Schema.Literal<"bounce">, Schema.Literal<"complaint">, Schema.Literal<"unsubscribe">, Schema.Literal<"manual">, Schema.Literal<"group-unsubscribe">]>;
11877
- readonly unsubscribeGroupId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "UnsubscribeId">, Schema.Null]>>;
11924
+ readonly reason: Schema.Union<readonly [Schema.Literal<"bounce">, Schema.Literal<"complaint">, Schema.Literal<"unsubscribe">, Schema.Literal<"manual">, Schema.Literal<"topic-unsubscribe">]>;
11925
+ readonly topicId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TopicId">, Schema.Null]>>;
11878
11926
  }>>;
11879
11927
  readonly executeUntil: Schema.Union<readonly [Schema.String, Schema.Null]>;
11880
11928
  readonly retryAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
@@ -12177,8 +12225,8 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
12177
12225
  readonly reviewExpectedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
12178
12226
  readonly skippedRecipients: Schema.$Array<Schema.Struct<{
12179
12227
  readonly address: Schema.String;
12180
- readonly reason: Schema.Union<readonly [Schema.Literal<"bounce">, Schema.Literal<"complaint">, Schema.Literal<"unsubscribe">, Schema.Literal<"manual">, Schema.Literal<"group-unsubscribe">]>;
12181
- readonly unsubscribeGroupId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "UnsubscribeId">, Schema.Null]>>;
12228
+ readonly reason: Schema.Union<readonly [Schema.Literal<"bounce">, Schema.Literal<"complaint">, Schema.Literal<"unsubscribe">, Schema.Literal<"manual">, Schema.Literal<"topic-unsubscribe">]>;
12229
+ readonly topicId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TopicId">, Schema.Null]>>;
12182
12230
  }>>;
12183
12231
  readonly executeUntil: Schema.Union<readonly [Schema.String, Schema.Null]>;
12184
12232
  readonly retryAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
@@ -12236,8 +12284,8 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
12236
12284
  readonly reviewExpectedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
12237
12285
  readonly skippedRecipients: Schema.$Array<Schema.Struct<{
12238
12286
  readonly address: Schema.String;
12239
- readonly reason: Schema.Union<readonly [Schema.Literal<"bounce">, Schema.Literal<"complaint">, Schema.Literal<"unsubscribe">, Schema.Literal<"manual">, Schema.Literal<"group-unsubscribe">]>;
12240
- readonly unsubscribeGroupId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "UnsubscribeId">, Schema.Null]>>;
12287
+ readonly reason: Schema.Union<readonly [Schema.Literal<"bounce">, Schema.Literal<"complaint">, Schema.Literal<"unsubscribe">, Schema.Literal<"manual">, Schema.Literal<"topic-unsubscribe">]>;
12288
+ readonly topicId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TopicId">, Schema.Null]>>;
12241
12289
  }>>;
12242
12290
  readonly executeUntil: Schema.Union<readonly [Schema.String, Schema.Null]>;
12243
12291
  readonly retryAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
@@ -12545,8 +12593,8 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
12545
12593
  readonly reviewExpectedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
12546
12594
  readonly skippedRecipients: Schema.$Array<Schema.Struct<{
12547
12595
  readonly address: Schema.String;
12548
- readonly reason: Schema.Union<readonly [Schema.Literal<"bounce">, Schema.Literal<"complaint">, Schema.Literal<"unsubscribe">, Schema.Literal<"manual">, Schema.Literal<"group-unsubscribe">]>;
12549
- readonly unsubscribeGroupId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "UnsubscribeId">, Schema.Null]>>;
12596
+ readonly reason: Schema.Union<readonly [Schema.Literal<"bounce">, Schema.Literal<"complaint">, Schema.Literal<"unsubscribe">, Schema.Literal<"manual">, Schema.Literal<"topic-unsubscribe">]>;
12597
+ readonly topicId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TopicId">, Schema.Null]>>;
12550
12598
  }>>;
12551
12599
  readonly executeUntil: Schema.Union<readonly [Schema.String, Schema.Null]>;
12552
12600
  readonly retryAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
@@ -12604,8 +12652,8 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
12604
12652
  readonly reviewExpectedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
12605
12653
  readonly skippedRecipients: Schema.$Array<Schema.Struct<{
12606
12654
  readonly address: Schema.String;
12607
- readonly reason: Schema.Union<readonly [Schema.Literal<"bounce">, Schema.Literal<"complaint">, Schema.Literal<"unsubscribe">, Schema.Literal<"manual">, Schema.Literal<"group-unsubscribe">]>;
12608
- readonly unsubscribeGroupId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "UnsubscribeId">, Schema.Null]>>;
12655
+ readonly reason: Schema.Union<readonly [Schema.Literal<"bounce">, Schema.Literal<"complaint">, Schema.Literal<"unsubscribe">, Schema.Literal<"manual">, Schema.Literal<"topic-unsubscribe">]>;
12656
+ readonly topicId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TopicId">, Schema.Null]>>;
12609
12657
  }>>;
12610
12658
  readonly executeUntil: Schema.Union<readonly [Schema.String, Schema.Null]>;
12611
12659
  readonly retryAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
@@ -12823,8 +12871,8 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
12823
12871
  readonly reviewExpectedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
12824
12872
  readonly skippedRecipients: Schema.$Array<Schema.Struct<{
12825
12873
  readonly address: Schema.String;
12826
- readonly reason: Schema.Union<readonly [Schema.Literal<"bounce">, Schema.Literal<"complaint">, Schema.Literal<"unsubscribe">, Schema.Literal<"manual">, Schema.Literal<"group-unsubscribe">]>;
12827
- readonly unsubscribeGroupId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "UnsubscribeId">, Schema.Null]>>;
12874
+ readonly reason: Schema.Union<readonly [Schema.Literal<"bounce">, Schema.Literal<"complaint">, Schema.Literal<"unsubscribe">, Schema.Literal<"manual">, Schema.Literal<"topic-unsubscribe">]>;
12875
+ readonly topicId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TopicId">, Schema.Null]>>;
12828
12876
  }>>;
12829
12877
  readonly executeUntil: Schema.Union<readonly [Schema.String, Schema.Null]>;
12830
12878
  readonly retryAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
@@ -12882,8 +12930,8 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
12882
12930
  readonly reviewExpectedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
12883
12931
  readonly skippedRecipients: Schema.$Array<Schema.Struct<{
12884
12932
  readonly address: Schema.String;
12885
- readonly reason: Schema.Union<readonly [Schema.Literal<"bounce">, Schema.Literal<"complaint">, Schema.Literal<"unsubscribe">, Schema.Literal<"manual">, Schema.Literal<"group-unsubscribe">]>;
12886
- readonly unsubscribeGroupId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "UnsubscribeId">, Schema.Null]>>;
12933
+ readonly reason: Schema.Union<readonly [Schema.Literal<"bounce">, Schema.Literal<"complaint">, Schema.Literal<"unsubscribe">, Schema.Literal<"manual">, Schema.Literal<"topic-unsubscribe">]>;
12934
+ readonly topicId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "TopicId">, Schema.Null]>>;
12887
12935
  }>>;
12888
12936
  readonly executeUntil: Schema.Union<readonly [Schema.String, Schema.Null]>;
12889
12937
  readonly retryAt: Schema.Union<readonly [Schema.String, Schema.Null]>;