samva 0.18.0 → 0.20.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 (70) hide show
  1. package/README.md +2 -0
  2. package/dist/client/sdk.gen.d.ts +94 -36
  3. package/dist/client/sdk.gen.js +269 -55
  4. package/dist/client/types.gen.d.ts +497 -106
  5. package/dist/effect/campaigns.d.ts +35 -3
  6. package/dist/effect/contact-groups.d.ts +39 -3
  7. package/dist/effect/contacts.d.ts +240 -17
  8. package/dist/effect/contacts.js +3 -1
  9. package/dist/effect/conversations.d.ts +11 -11
  10. package/dist/effect/email.d.ts +22 -6
  11. package/dist/effect/errors.d.ts +1 -1
  12. package/dist/effect/errors.js +2 -2
  13. package/dist/effect/extension-installations.d.ts +12 -12
  14. package/dist/effect/extensions.d.ts +3 -3
  15. package/dist/effect/generated/campaigns.d.ts +73 -4
  16. package/dist/effect/generated/campaigns.js +18 -1
  17. package/dist/effect/generated/contact-groups.d.ts +33 -3
  18. package/dist/effect/generated/contacts.d.ts +608 -55
  19. package/dist/effect/generated/contacts.js +55 -10
  20. package/dist/effect/generated/conversations.d.ts +25 -25
  21. package/dist/effect/generated/conversations.js +1 -1
  22. package/dist/effect/generated/email.d.ts +162 -1
  23. package/dist/effect/generated/email.js +31 -11
  24. package/dist/effect/generated/extension-installations.d.ts +44 -44
  25. package/dist/effect/generated/extension-installations.js +6 -0
  26. package/dist/effect/generated/extensions.d.ts +10 -10
  27. package/dist/effect/generated/extensions.js +2 -0
  28. package/dist/effect/generated/journeys.d.ts +13 -61
  29. package/dist/effect/generated/journeys.js +5 -5
  30. package/dist/effect/generated/mailboxes.d.ts +584 -78
  31. package/dist/effect/generated/mailboxes.js +65 -24
  32. package/dist/effect/generated/messages.d.ts +35 -1
  33. package/dist/effect/generated/messages.js +9 -2
  34. package/dist/effect/generated/namespaces.d.ts +432 -2
  35. package/dist/effect/generated/namespaces.js +91 -4
  36. package/dist/effect/generated/organizations.d.ts +13 -11
  37. package/dist/effect/generated/organizations.js +7 -3
  38. package/dist/effect/generated/shared.d.ts +104 -49
  39. package/dist/effect/generated/shared.js +51 -28
  40. package/dist/effect/generated/templates.d.ts +44 -1
  41. package/dist/effect/generated/templates.js +9 -3
  42. package/dist/effect/generated/unsubscribe-groups.d.ts +173 -78
  43. package/dist/effect/generated/unsubscribe-groups.js +75 -58
  44. package/dist/effect/generated/webhooks.d.ts +19 -19
  45. package/dist/effect/generated/webhooks.js +8 -0
  46. package/dist/effect/generated-metadata.d.ts +22 -6
  47. package/dist/effect/generated-metadata.js +334 -329
  48. package/dist/effect/index.js +2 -2
  49. package/dist/effect/journeys.d.ts +4 -4
  50. package/dist/effect/mailboxes.d.ts +144 -12
  51. package/dist/effect/messages.d.ts +8 -0
  52. package/dist/effect/namespaces.d.ts +29 -0
  53. package/dist/effect/namespaces.js +7 -1
  54. package/dist/effect/organizations.d.ts +4 -4
  55. package/dist/effect/templates.d.ts +12 -1
  56. package/dist/effect/unsubscribe-groups.d.ts +29 -18
  57. package/dist/effect/unsubscribe-groups.js +5 -5
  58. package/dist/effect/webhooks.d.ts +8 -8
  59. package/dist/index.js +2 -2
  60. package/dist/mailbox-events.d.ts +31 -4
  61. package/dist/mailbox-events.js +39 -11
  62. package/dist/package.js +1 -1
  63. package/dist/promises/errors.gen.d.ts +2 -12
  64. package/dist/promises/errors.gen.js +1 -26
  65. package/dist/promises/index.d.ts +1 -1
  66. package/dist/promises/index.js +2 -2
  67. package/dist/promises/types.gen.d.ts +1 -1
  68. package/dist/service-map.d.ts +24 -4
  69. package/dist/service-map.js +26 -2
  70. package/package.json +2 -2
@@ -48,6 +48,7 @@ export declare const listDomains: ((input?: {
48
48
  readonly limit?: string | null | undefined;
49
49
  readonly cursor?: string | null | undefined;
50
50
  readonly sendable?: "true" | null | undefined;
51
+ readonly namespaceId?: string | null | undefined;
51
52
  } | undefined) => import("effect/Effect").Effect<{
52
53
  readonly items: readonly {
53
54
  readonly id: string & import("effect/Brand").Brand<"EmailDomainId">;
@@ -55,6 +56,7 @@ export declare const listDomains: ((input?: {
55
56
  readonly phase: "degraded" | "dns-setup" | "failed" | "provisioning" | "ready" | "verifying";
56
57
  readonly dkimSelector?: string | null;
57
58
  readonly dkimPublicKey?: string | null;
59
+ readonly namespaceId: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
58
60
  readonly isDefault: boolean;
59
61
  readonly deliverability: {
60
62
  readonly bounceRate: number;
@@ -72,6 +74,7 @@ export declare const listDomains: ((input?: {
72
74
  readonly limit?: string | null | undefined;
73
75
  readonly cursor?: string | null | undefined;
74
76
  readonly sendable?: "true" | null | undefined;
77
+ readonly namespaceId?: string | null | undefined;
75
78
  } | undefined) => import("effect/Stream").Stream<{
76
79
  readonly items: readonly {
77
80
  readonly id: string & import("effect/Brand").Brand<"EmailDomainId">;
@@ -79,6 +82,7 @@ export declare const listDomains: ((input?: {
79
82
  readonly phase: "degraded" | "dns-setup" | "failed" | "provisioning" | "ready" | "verifying";
80
83
  readonly dkimSelector?: string | null;
81
84
  readonly dkimPublicKey?: string | null;
85
+ readonly namespaceId: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
82
86
  readonly isDefault: boolean;
83
87
  readonly deliverability: {
84
88
  readonly bounceRate: number;
@@ -96,12 +100,14 @@ export declare const listDomains: ((input?: {
96
100
  readonly limit?: string | null | undefined;
97
101
  readonly cursor?: string | null | undefined;
98
102
  readonly sendable?: "true" | null | undefined;
103
+ readonly namespaceId?: string | null | undefined;
99
104
  } | undefined) => import("effect/Stream").Stream<{
100
105
  readonly id: string & import("effect/Brand").Brand<"EmailDomainId">;
101
106
  readonly domain: string;
102
107
  readonly phase: "degraded" | "dns-setup" | "failed" | "provisioning" | "ready" | "verifying";
103
108
  readonly dkimSelector?: string | null;
104
109
  readonly dkimPublicKey?: string | null;
110
+ readonly namespaceId: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
105
111
  readonly isDefault: boolean;
106
112
  readonly deliverability: {
107
113
  readonly bounceRate: number;
@@ -120,6 +126,7 @@ export declare const addDomain: (input: {
120
126
  readonly connectionId: string;
121
127
  readonly zone: string;
122
128
  } | null | undefined;
129
+ readonly namespaceId?: string | null | undefined;
123
130
  }) => import("effect/Effect").Effect<{
124
131
  readonly id: string & import("effect/Brand").Brand<"EmailDomainId">;
125
132
  readonly domain: string;
@@ -135,6 +142,7 @@ export declare const addDomain: (input: {
135
142
  readonly priority?: number | null;
136
143
  }[];
137
144
  readonly verifiedAt: string | null;
145
+ readonly namespaceId: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
138
146
  readonly isDefault: boolean;
139
147
  readonly deliverability: {
140
148
  readonly bounceRate: number;
@@ -144,7 +152,7 @@ export declare const addDomain: (input: {
144
152
  };
145
153
  readonly createdAt: string;
146
154
  readonly updatedAt: string;
147
- }, import("./errors").BillingProviderError | import("./errors").ConflictError | import("./errors").EmailChannelError | import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").PaymentRequiredError | import("./errors").RateLimitedError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
155
+ }, import("./errors").BillingProviderError | import("./errors").ConflictError | import("./errors").EmailChannelError | import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").PaymentRequiredError | import("./errors").RateLimitedError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
148
156
  export declare const rotateDomainDkim: (input: {
149
157
  readonly id: string;
150
158
  } & {
@@ -414,6 +422,7 @@ export declare const getDomainById: (input: {
414
422
  readonly priority?: number | null;
415
423
  }[];
416
424
  readonly verifiedAt: string | null;
425
+ readonly namespaceId: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
417
426
  readonly isDefault: boolean;
418
427
  readonly deliverability: {
419
428
  readonly bounceRate: number;
@@ -461,7 +470,7 @@ export declare const detectRegistrar: (input: {
461
470
  readonly name: string;
462
471
  readonly nameservers: readonly string[];
463
472
  readonly docsUrl: string;
464
- }, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
473
+ }, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
465
474
  export declare const getDomainConnect: (input: {
466
475
  readonly id: string;
467
476
  readonly mode: "send-and-receive" | "send-only";
@@ -564,7 +573,7 @@ export declare const enableCustomTracking: (input: {
564
573
  readonly verificationErrors: readonly string[];
565
574
  readonly teardownScheduledAt: string | null;
566
575
  } | null;
567
- }, import("./errors").BillingProviderError | import("./errors").ConflictError | import("./errors").EmailChannelError | import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
576
+ }, import("./errors").BillingProviderError | import("./errors").ConflictError | import("./errors").EmailChannelError | import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
568
577
  export declare const getCustomTracking: (input: {
569
578
  readonly id: string;
570
579
  }) => import("effect/Effect").Effect<{
@@ -599,7 +608,7 @@ export declare const getCustomTracking: (input: {
599
608
  readonly verificationErrors: readonly string[];
600
609
  readonly teardownScheduledAt: string | null;
601
610
  } | null;
602
- }, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
611
+ }, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
603
612
  export declare const recheckCustomTracking: (input: {
604
613
  readonly id: string;
605
614
  }) => import("effect/Effect").Effect<{
@@ -656,13 +665,13 @@ export declare const completeCustomTrackingDomainConnect: (input: {
656
665
  readonly errorDescription?: string | null | undefined;
657
666
  }) => import("effect/Effect").Effect<{
658
667
  readonly status: "applied" | "cancelled" | "failed" | "invalid" | "stale";
659
- }, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
668
+ }, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
660
669
  export declare const disableCustomTracking: (input: {
661
670
  readonly id: string;
662
671
  }) => import("effect/Effect").Effect<{
663
672
  readonly success: boolean;
664
673
  readonly message: string;
665
- }, import("./errors").ConflictError | import("./errors").EmailChannelError | import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
674
+ }, import("./errors").ConflictError | import("./errors").EmailChannelError | import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
666
675
  export declare const getDomainWarming: (input: {
667
676
  readonly id: string;
668
677
  }) => import("effect/Effect").Effect<{
@@ -1226,6 +1235,7 @@ export declare const listSenders: ((input?: {
1226
1235
  readonly verificationStatus?: "failed" | "pending" | "verified" | null | undefined;
1227
1236
  readonly isActive?: string | null | undefined;
1228
1237
  readonly isDefault?: string | null | undefined;
1238
+ readonly namespaceId?: string | null | undefined;
1229
1239
  } | undefined) => import("effect/Effect").Effect<{
1230
1240
  readonly items: readonly {
1231
1241
  readonly id: string & import("effect/Brand").Brand<"EmailSenderId">;
@@ -1233,6 +1243,7 @@ export declare const listSenders: ((input?: {
1233
1243
  readonly email: string;
1234
1244
  readonly name: string | null;
1235
1245
  readonly domainId: (string & import("effect/Brand").Brand<"EmailDomainId">) | null;
1246
+ readonly namespaceId: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
1236
1247
  readonly verificationStatus: "failed" | "pending" | "verified";
1237
1248
  readonly verifiedAt: string | null;
1238
1249
  readonly verificationToken: string | null;
@@ -1259,6 +1270,7 @@ export declare const listSenders: ((input?: {
1259
1270
  readonly verificationStatus?: "failed" | "pending" | "verified" | null | undefined;
1260
1271
  readonly isActive?: string | null | undefined;
1261
1272
  readonly isDefault?: string | null | undefined;
1273
+ readonly namespaceId?: string | null | undefined;
1262
1274
  } | undefined) => import("effect/Stream").Stream<{
1263
1275
  readonly items: readonly {
1264
1276
  readonly id: string & import("effect/Brand").Brand<"EmailSenderId">;
@@ -1266,6 +1278,7 @@ export declare const listSenders: ((input?: {
1266
1278
  readonly email: string;
1267
1279
  readonly name: string | null;
1268
1280
  readonly domainId: (string & import("effect/Brand").Brand<"EmailDomainId">) | null;
1281
+ readonly namespaceId: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
1269
1282
  readonly verificationStatus: "failed" | "pending" | "verified";
1270
1283
  readonly verifiedAt: string | null;
1271
1284
  readonly verificationToken: string | null;
@@ -1292,12 +1305,14 @@ export declare const listSenders: ((input?: {
1292
1305
  readonly verificationStatus?: "failed" | "pending" | "verified" | null | undefined;
1293
1306
  readonly isActive?: string | null | undefined;
1294
1307
  readonly isDefault?: string | null | undefined;
1308
+ readonly namespaceId?: string | null | undefined;
1295
1309
  } | undefined) => import("effect/Stream").Stream<{
1296
1310
  readonly id: string & import("effect/Brand").Brand<"EmailSenderId">;
1297
1311
  readonly organizationId: string;
1298
1312
  readonly email: string;
1299
1313
  readonly name: string | null;
1300
1314
  readonly domainId: (string & import("effect/Brand").Brand<"EmailDomainId">) | null;
1315
+ readonly namespaceId: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
1301
1316
  readonly verificationStatus: "failed" | "pending" | "verified";
1302
1317
  readonly verifiedAt: string | null;
1303
1318
  readonly verificationToken: string | null;
@@ -1325,6 +1340,7 @@ export declare const getSender: (input: {
1325
1340
  readonly email: string;
1326
1341
  readonly name: string | null;
1327
1342
  readonly domainId: (string & import("effect/Brand").Brand<"EmailDomainId">) | null;
1343
+ readonly namespaceId: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
1328
1344
  readonly verificationStatus: "failed" | "pending" | "verified";
1329
1345
  readonly verifiedAt: string | null;
1330
1346
  readonly verificationToken: string | null;
@@ -1,2 +1,2 @@
1
- export { AnalyticsQueryError, BillingProviderError, BrandAddressRequiredError, CampaignFooterRequiredError, ConflictError, EmailChannelError, ExternalServiceError, FlagDisabledError, ForbiddenError, GatewayTimeoutError, InternalError, MailboxChannelUnsupportedError, MailboxSendConflictError, MailboxSendRefusedError, OnboardingReviewRequiredError, PaymentRequiredError, RateLimitedError, ResourceNotFoundError, SenderNotReadyError, UnauthorizedError, ValidationError, DeliveryUnavailableError, } from "./generated/shared";
1
+ export { AnalyticsQueryError, BillingProviderError, BrandAddressRequiredError, CampaignFooterRequiredError, ConflictError, EmailChannelError, ExternalServiceError, FlagDisabledError, ForbiddenError, GatewayTimeoutError, InternalError, MailboxSendConflictError, MailboxSendRefusedError, OnboardingReviewRequiredError, PaymentRequiredError, RateLimitedError, ResourceNotFoundError, SenderNotReadyError, UnauthorizedError, ValidationError, DeliveryUnavailableError, } from "./generated/shared";
2
2
  export { MediaUploadError } from "../inline-attachments";
@@ -1,3 +1,3 @@
1
1
  import { MediaUploadError } from "../inline-attachments.js";
2
- import { AnalyticsQueryError, BillingProviderError, BrandAddressRequiredError, CampaignFooterRequiredError, ConflictError, DeliveryUnavailableError, EmailChannelError, ExternalServiceError, FlagDisabledError, ForbiddenError, GatewayTimeoutError, InternalError, MailboxChannelUnsupportedError, MailboxSendConflictError, MailboxSendRefusedError, OnboardingReviewRequiredError, PaymentRequiredError, RateLimitedError, ResourceNotFoundError, SenderNotReadyError, UnauthorizedError, ValidationError } from "./generated/shared.js";
3
- export { AnalyticsQueryError, BillingProviderError, BrandAddressRequiredError, CampaignFooterRequiredError, ConflictError, DeliveryUnavailableError, EmailChannelError, ExternalServiceError, FlagDisabledError, ForbiddenError, GatewayTimeoutError, InternalError, MailboxChannelUnsupportedError, MailboxSendConflictError, MailboxSendRefusedError, MediaUploadError, OnboardingReviewRequiredError, PaymentRequiredError, RateLimitedError, ResourceNotFoundError, SenderNotReadyError, UnauthorizedError, ValidationError };
2
+ import { AnalyticsQueryError, BillingProviderError, BrandAddressRequiredError, CampaignFooterRequiredError, ConflictError, DeliveryUnavailableError, EmailChannelError, ExternalServiceError, FlagDisabledError, ForbiddenError, GatewayTimeoutError, InternalError, MailboxSendConflictError, MailboxSendRefusedError, OnboardingReviewRequiredError, PaymentRequiredError, RateLimitedError, ResourceNotFoundError, SenderNotReadyError, UnauthorizedError, ValidationError } from "./generated/shared.js";
3
+ export { AnalyticsQueryError, BillingProviderError, BrandAddressRequiredError, CampaignFooterRequiredError, ConflictError, DeliveryUnavailableError, EmailChannelError, ExternalServiceError, FlagDisabledError, ForbiddenError, GatewayTimeoutError, InternalError, MailboxSendConflictError, MailboxSendRefusedError, MediaUploadError, OnboardingReviewRequiredError, PaymentRequiredError, RateLimitedError, ResourceNotFoundError, SenderNotReadyError, UnauthorizedError, ValidationError };
@@ -80,7 +80,7 @@ export declare const install: (input: {
80
80
  readonly runtime: "hosted" | "webhook";
81
81
  readonly status: "active" | "disabled";
82
82
  readonly createdAt: string;
83
- readonly events: readonly ("mailbox.action.pending_approval" | "mailbox.message.discarded" | "mailbox.message.quarantined" | "mailbox.message.received" | "mailbox.message.released" | "mailbox.message.sent")[];
83
+ readonly events: readonly ("mailbox.action.pending_approval" | "mailbox.action.resolved" | "mailbox.message.discarded" | "mailbox.message.quarantined" | "mailbox.message.received" | "mailbox.message.released" | "mailbox.message.sent")[];
84
84
  readonly permissions: readonly ("quarantine.read" | "read" | "send" | "update")[];
85
85
  readonly sendMode: "approval" | "send";
86
86
  readonly scope: {
@@ -102,7 +102,7 @@ export declare const install: (input: {
102
102
  export declare const upgrade: (input: {
103
103
  readonly id: string;
104
104
  readonly version?: string | null | undefined;
105
- readonly acceptPermissions?: readonly ("event:mailbox.action.pending_approval" | "event:mailbox.message.discarded" | "event:mailbox.message.quarantined" | "event:mailbox.message.received" | "event:mailbox.message.released" | "event:mailbox.message.sent" | "permission:quarantine.read" | "permission:read" | "permission:send" | "permission:update")[] | null | undefined;
105
+ readonly acceptPermissions?: readonly ("event:mailbox.action.pending_approval" | "event:mailbox.action.resolved" | "event:mailbox.message.discarded" | "event:mailbox.message.quarantined" | "event:mailbox.message.received" | "event:mailbox.message.released" | "event:mailbox.message.sent" | "permission:quarantine.read" | "permission:read" | "permission:send" | "permission:update")[] | null | undefined;
106
106
  readonly dryRun?: boolean | null | undefined;
107
107
  }) => import("effect/Effect").Effect<{
108
108
  readonly installation: {
@@ -117,7 +117,7 @@ export declare const upgrade: (input: {
117
117
  readonly runtime: "hosted" | "webhook";
118
118
  readonly status: "active" | "disabled";
119
119
  readonly createdAt: string;
120
- readonly events: readonly ("mailbox.action.pending_approval" | "mailbox.message.discarded" | "mailbox.message.quarantined" | "mailbox.message.received" | "mailbox.message.released" | "mailbox.message.sent")[];
120
+ readonly events: readonly ("mailbox.action.pending_approval" | "mailbox.action.resolved" | "mailbox.message.discarded" | "mailbox.message.quarantined" | "mailbox.message.received" | "mailbox.message.released" | "mailbox.message.sent")[];
121
121
  readonly permissions: readonly ("quarantine.read" | "read" | "send" | "update")[];
122
122
  readonly sendMode: "approval" | "send";
123
123
  readonly scope: {
@@ -140,8 +140,8 @@ export declare const upgrade: (input: {
140
140
  readonly version: string;
141
141
  };
142
142
  readonly permissionDiff: {
143
- readonly added: readonly ("event:mailbox.action.pending_approval" | "event:mailbox.message.discarded" | "event:mailbox.message.quarantined" | "event:mailbox.message.received" | "event:mailbox.message.released" | "event:mailbox.message.sent" | "permission:quarantine.read" | "permission:read" | "permission:send" | "permission:update")[];
144
- readonly removed: readonly ("event:mailbox.action.pending_approval" | "event:mailbox.message.discarded" | "event:mailbox.message.quarantined" | "event:mailbox.message.received" | "event:mailbox.message.released" | "event:mailbox.message.sent" | "permission:quarantine.read" | "permission:read" | "permission:send" | "permission:update")[];
143
+ readonly added: readonly ("event:mailbox.action.pending_approval" | "event:mailbox.action.resolved" | "event:mailbox.message.discarded" | "event:mailbox.message.quarantined" | "event:mailbox.message.received" | "event:mailbox.message.released" | "event:mailbox.message.sent" | "permission:quarantine.read" | "permission:read" | "permission:send" | "permission:update")[];
144
+ readonly removed: readonly ("event:mailbox.action.pending_approval" | "event:mailbox.action.resolved" | "event:mailbox.message.discarded" | "event:mailbox.message.quarantined" | "event:mailbox.message.received" | "event:mailbox.message.released" | "event:mailbox.message.sent" | "permission:quarantine.read" | "permission:read" | "permission:send" | "permission:update")[];
145
145
  };
146
146
  readonly dryRun: boolean;
147
147
  readonly versionChange: {
@@ -158,8 +158,8 @@ export declare const upgrade: (input: {
158
158
  readonly version: string;
159
159
  };
160
160
  readonly permissionDiff: {
161
- readonly added: readonly ("event:mailbox.action.pending_approval" | "event:mailbox.message.discarded" | "event:mailbox.message.quarantined" | "event:mailbox.message.received" | "event:mailbox.message.released" | "event:mailbox.message.sent" | "permission:quarantine.read" | "permission:read" | "permission:send" | "permission:update")[];
162
- readonly removed: readonly ("event:mailbox.action.pending_approval" | "event:mailbox.message.discarded" | "event:mailbox.message.quarantined" | "event:mailbox.message.received" | "event:mailbox.message.released" | "event:mailbox.message.sent" | "permission:quarantine.read" | "permission:read" | "permission:send" | "permission:update")[];
161
+ readonly added: readonly ("event:mailbox.action.pending_approval" | "event:mailbox.action.resolved" | "event:mailbox.message.discarded" | "event:mailbox.message.quarantined" | "event:mailbox.message.received" | "event:mailbox.message.released" | "event:mailbox.message.sent" | "permission:quarantine.read" | "permission:read" | "permission:send" | "permission:update")[];
162
+ readonly removed: readonly ("event:mailbox.action.pending_approval" | "event:mailbox.action.resolved" | "event:mailbox.message.discarded" | "event:mailbox.message.quarantined" | "event:mailbox.message.received" | "event:mailbox.message.released" | "event:mailbox.message.sent" | "permission:quarantine.read" | "permission:read" | "permission:send" | "permission:update")[];
163
163
  };
164
164
  readonly changedBy: string & import("effect/Brand").Brand<"UserId">;
165
165
  readonly changedAt: string;
@@ -179,7 +179,7 @@ export declare const get: (input: {
179
179
  readonly runtime: "hosted" | "webhook";
180
180
  readonly status: "active" | "disabled";
181
181
  readonly createdAt: string;
182
- readonly events: readonly ("mailbox.action.pending_approval" | "mailbox.message.discarded" | "mailbox.message.quarantined" | "mailbox.message.received" | "mailbox.message.released" | "mailbox.message.sent")[];
182
+ readonly events: readonly ("mailbox.action.pending_approval" | "mailbox.action.resolved" | "mailbox.message.discarded" | "mailbox.message.quarantined" | "mailbox.message.received" | "mailbox.message.released" | "mailbox.message.sent")[];
183
183
  readonly permissions: readonly ("quarantine.read" | "read" | "send" | "update")[];
184
184
  readonly sendMode: "approval" | "send";
185
185
  readonly scope: {
@@ -212,7 +212,7 @@ export declare const disable: (input: {
212
212
  readonly runtime: "hosted" | "webhook";
213
213
  readonly status: "active" | "disabled";
214
214
  readonly createdAt: string;
215
- readonly events: readonly ("mailbox.action.pending_approval" | "mailbox.message.discarded" | "mailbox.message.quarantined" | "mailbox.message.received" | "mailbox.message.released" | "mailbox.message.sent")[];
215
+ readonly events: readonly ("mailbox.action.pending_approval" | "mailbox.action.resolved" | "mailbox.message.discarded" | "mailbox.message.quarantined" | "mailbox.message.received" | "mailbox.message.released" | "mailbox.message.sent")[];
216
216
  readonly permissions: readonly ("quarantine.read" | "read" | "send" | "update")[];
217
217
  readonly sendMode: "approval" | "send";
218
218
  readonly scope: {
@@ -240,7 +240,7 @@ export declare const enable: (input: {
240
240
  readonly runtime: "hosted" | "webhook";
241
241
  readonly status: "active" | "disabled";
242
242
  readonly createdAt: string;
243
- readonly events: readonly ("mailbox.action.pending_approval" | "mailbox.message.discarded" | "mailbox.message.quarantined" | "mailbox.message.received" | "mailbox.message.released" | "mailbox.message.sent")[];
243
+ readonly events: readonly ("mailbox.action.pending_approval" | "mailbox.action.resolved" | "mailbox.message.discarded" | "mailbox.message.quarantined" | "mailbox.message.received" | "mailbox.message.released" | "mailbox.message.sent")[];
244
244
  readonly permissions: readonly ("quarantine.read" | "read" | "send" | "update")[];
245
245
  readonly sendMode: "approval" | "send";
246
246
  readonly scope: {
@@ -260,7 +260,7 @@ export declare const listRuns: (input: {
260
260
  readonly items: readonly {
261
261
  readonly id: string;
262
262
  readonly eventId: string;
263
- readonly eventType: "mailbox.action.pending_approval" | "mailbox.message.discarded" | "mailbox.message.quarantined" | "mailbox.message.received" | "mailbox.message.released" | "mailbox.message.sent";
263
+ readonly eventType: "mailbox.action.pending_approval" | "mailbox.action.resolved" | "mailbox.message.discarded" | "mailbox.message.quarantined" | "mailbox.message.received" | "mailbox.message.released" | "mailbox.message.sent";
264
264
  readonly attempt: number;
265
265
  readonly startedAt: string;
266
266
  readonly durationMs: number;
@@ -274,7 +274,7 @@ export declare const getRun: (input: {
274
274
  }) => import("effect/Effect").Effect<{
275
275
  readonly id: string;
276
276
  readonly eventId: string;
277
- readonly eventType: "mailbox.action.pending_approval" | "mailbox.message.discarded" | "mailbox.message.quarantined" | "mailbox.message.received" | "mailbox.message.released" | "mailbox.message.sent";
277
+ readonly eventType: "mailbox.action.pending_approval" | "mailbox.action.resolved" | "mailbox.message.discarded" | "mailbox.message.quarantined" | "mailbox.message.received" | "mailbox.message.released" | "mailbox.message.sent";
278
278
  readonly attempt: number;
279
279
  readonly startedAt: string;
280
280
  readonly durationMs: number;
@@ -66,7 +66,7 @@ export declare const publish: (input: {
66
66
  readonly description?: string | null | undefined;
67
67
  readonly version: string;
68
68
  readonly runtime: "hosted" | "webhook";
69
- readonly events: readonly ("mailbox.action.pending_approval" | "mailbox.message.discarded" | "mailbox.message.quarantined" | "mailbox.message.received" | "mailbox.message.released" | "mailbox.message.sent")[];
69
+ readonly events: readonly ("mailbox.action.pending_approval" | "mailbox.action.resolved" | "mailbox.message.discarded" | "mailbox.message.quarantined" | "mailbox.message.received" | "mailbox.message.released" | "mailbox.message.sent")[];
70
70
  readonly permissions: readonly ("quarantine.read" | "read" | "send" | "update")[];
71
71
  };
72
72
  readonly bundle?: string | null | undefined;
@@ -99,7 +99,7 @@ export declare const publish: (input: {
99
99
  readonly description?: string | null;
100
100
  readonly version: string;
101
101
  readonly runtime: "hosted" | "webhook";
102
- readonly events: readonly ("mailbox.action.pending_approval" | "mailbox.message.discarded" | "mailbox.message.quarantined" | "mailbox.message.received" | "mailbox.message.released" | "mailbox.message.sent")[];
102
+ readonly events: readonly ("mailbox.action.pending_approval" | "mailbox.action.resolved" | "mailbox.message.discarded" | "mailbox.message.quarantined" | "mailbox.message.received" | "mailbox.message.released" | "mailbox.message.sent")[];
103
103
  readonly permissions: readonly ("quarantine.read" | "read" | "send" | "update")[];
104
104
  };
105
105
  };
@@ -186,7 +186,7 @@ export declare const getVersion: (input: {
186
186
  readonly description?: string | null;
187
187
  readonly version: string;
188
188
  readonly runtime: "hosted" | "webhook";
189
- readonly events: readonly ("mailbox.action.pending_approval" | "mailbox.message.discarded" | "mailbox.message.quarantined" | "mailbox.message.received" | "mailbox.message.released" | "mailbox.message.sent")[];
189
+ readonly events: readonly ("mailbox.action.pending_approval" | "mailbox.action.resolved" | "mailbox.message.discarded" | "mailbox.message.quarantined" | "mailbox.message.received" | "mailbox.message.released" | "mailbox.message.sent")[];
190
190
  readonly permissions: readonly ("quarantine.read" | "read" | "send" | "update")[];
191
191
  };
192
192
  }, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
@@ -18,6 +18,14 @@ export declare const CampaignDefinitionSummary: Schema.Struct<{
18
18
  }>;
19
19
  export type CampaignRunId = string & EffectBrand.Brand<"CampaignRunId">;
20
20
  export declare const CampaignRunId: Schema.brand<Schema.String, "CampaignRunId">;
21
+ export type CampaignRunSkippedReason = {
22
+ readonly reason: "unsubscribed" | "blocked" | "suppressed" | "opted_out" | "unreachable" | "no_identity" | "inactive" | "run_cancelled" | "run_failed";
23
+ readonly count: number;
24
+ };
25
+ export declare const CampaignRunSkippedReason: Schema.Struct<{
26
+ readonly reason: Schema.Union<readonly [Schema.Literal<"unsubscribed">, Schema.Literal<"blocked">, Schema.Literal<"suppressed">, Schema.Literal<"opted_out">, Schema.Literal<"unreachable">, Schema.Literal<"no_identity">, Schema.Literal<"inactive">, Schema.Literal<"run_cancelled">, Schema.Literal<"run_failed">]>;
27
+ readonly count: Schema.Finite;
28
+ }>;
21
29
  export type CampaignRecipientId = string & EffectBrand.Brand<"CampaignRecipientId">;
22
30
  export declare const CampaignRecipientId: Schema.brand<Schema.String, "CampaignRecipientId">;
23
31
  export type CampaignPolicy = {
@@ -72,7 +80,7 @@ export type CampaignRecipientPage = {
72
80
  readonly status: "pending" | "dispatching" | "dispatched" | "failed" | "skipped";
73
81
  readonly messageId: string | null;
74
82
  readonly failureReason: string | null;
75
- readonly skippedReason: "unsubscribed" | "blocked" | "suppressed" | "no_identity" | "inactive" | "run_cancelled" | "run_failed" | null;
83
+ readonly skippedReason: "unsubscribed" | "blocked" | "suppressed" | "opted_out" | "unreachable" | "no_identity" | "inactive" | "run_cancelled" | "run_failed" | null;
76
84
  readonly createdAt: string;
77
85
  readonly updatedAt: string;
78
86
  }>;
@@ -86,7 +94,7 @@ export declare const CampaignRecipientPage: Schema.Struct<{
86
94
  readonly status: Schema.Union<readonly [Schema.Literal<"pending">, Schema.Literal<"dispatching">, Schema.Literal<"dispatched">, Schema.Literal<"failed">, Schema.Literal<"skipped">]>;
87
95
  readonly messageId: Schema.Union<readonly [Schema.String, Schema.Null]>;
88
96
  readonly failureReason: Schema.Union<readonly [Schema.String, Schema.Null]>;
89
- readonly skippedReason: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"unsubscribed">, Schema.Literal<"blocked">, Schema.Literal<"suppressed">, Schema.Literal<"no_identity">, Schema.Literal<"inactive">, Schema.Literal<"run_cancelled">, Schema.Literal<"run_failed">]>, Schema.Null]>;
97
+ readonly skippedReason: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"unsubscribed">, Schema.Literal<"blocked">, Schema.Literal<"suppressed">, Schema.Literal<"opted_out">, Schema.Literal<"unreachable">, Schema.Literal<"no_identity">, Schema.Literal<"inactive">, Schema.Literal<"run_cancelled">, Schema.Literal<"run_failed">]>, Schema.Null]>;
90
98
  readonly createdAt: Schema.String;
91
99
  readonly updatedAt: Schema.String;
92
100
  }>>;
@@ -357,6 +365,7 @@ export type CampaignRun = {
357
365
  readonly dispatchedCount: number;
358
366
  readonly failedCount: number;
359
367
  readonly skippedCount: number;
368
+ readonly skippedReasons: ReadonlyArray<CampaignRunSkippedReason>;
360
369
  readonly estimatedCompletionAt: string | null;
361
370
  readonly failureReason: string | null;
362
371
  readonly holdReason: string | null;
@@ -424,6 +433,10 @@ export declare const CampaignRun: Schema.Struct<{
424
433
  readonly dispatchedCount: Schema.Finite;
425
434
  readonly failedCount: Schema.Finite;
426
435
  readonly skippedCount: Schema.Finite;
436
+ readonly skippedReasons: Schema.$Array<Schema.Struct<{
437
+ readonly reason: Schema.Union<readonly [Schema.Literal<"unsubscribed">, Schema.Literal<"blocked">, Schema.Literal<"suppressed">, Schema.Literal<"opted_out">, Schema.Literal<"unreachable">, Schema.Literal<"no_identity">, Schema.Literal<"inactive">, Schema.Literal<"run_cancelled">, Schema.Literal<"run_failed">]>;
438
+ readonly count: Schema.Finite;
439
+ }>>;
427
440
  readonly estimatedCompletionAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
428
441
  readonly failureReason: Schema.Union<readonly [Schema.String, Schema.Null]>;
429
442
  readonly holdReason: Schema.Union<readonly [Schema.String, Schema.Null]>;
@@ -573,6 +586,10 @@ export declare const CampaignRunPage: Schema.Struct<{
573
586
  readonly dispatchedCount: Schema.Finite;
574
587
  readonly failedCount: Schema.Finite;
575
588
  readonly skippedCount: Schema.Finite;
589
+ readonly skippedReasons: Schema.$Array<Schema.Struct<{
590
+ readonly reason: Schema.Union<readonly [Schema.Literal<"unsubscribed">, Schema.Literal<"blocked">, Schema.Literal<"suppressed">, Schema.Literal<"opted_out">, Schema.Literal<"unreachable">, Schema.Literal<"no_identity">, Schema.Literal<"inactive">, Schema.Literal<"run_cancelled">, Schema.Literal<"run_failed">]>;
591
+ readonly count: Schema.Finite;
592
+ }>>;
576
593
  readonly estimatedCompletionAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
577
594
  readonly failureReason: Schema.Union<readonly [Schema.String, Schema.Null]>;
578
595
  readonly holdReason: Schema.Union<readonly [Schema.String, Schema.Null]>;
@@ -648,6 +665,10 @@ export declare const CampaignRunAction: Schema.Struct<{
648
665
  readonly dispatchedCount: Schema.Finite;
649
666
  readonly failedCount: Schema.Finite;
650
667
  readonly skippedCount: Schema.Finite;
668
+ readonly skippedReasons: Schema.$Array<Schema.Struct<{
669
+ readonly reason: Schema.Union<readonly [Schema.Literal<"unsubscribed">, Schema.Literal<"blocked">, Schema.Literal<"suppressed">, Schema.Literal<"opted_out">, Schema.Literal<"unreachable">, Schema.Literal<"no_identity">, Schema.Literal<"inactive">, Schema.Literal<"run_cancelled">, Schema.Literal<"run_failed">]>;
670
+ readonly count: Schema.Finite;
671
+ }>>;
651
672
  readonly estimatedCompletionAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
652
673
  readonly failureReason: Schema.Union<readonly [Schema.String, Schema.Null]>;
653
674
  readonly holdReason: Schema.Union<readonly [Schema.String, Schema.Null]>;
@@ -1284,6 +1305,10 @@ export declare const CampaignsListRuns200: Schema.Struct<{
1284
1305
  readonly dispatchedCount: Schema.Finite;
1285
1306
  readonly failedCount: Schema.Finite;
1286
1307
  readonly skippedCount: Schema.Finite;
1308
+ readonly skippedReasons: Schema.$Array<Schema.Struct<{
1309
+ readonly reason: Schema.Union<readonly [Schema.Literal<"unsubscribed">, Schema.Literal<"blocked">, Schema.Literal<"suppressed">, Schema.Literal<"opted_out">, Schema.Literal<"unreachable">, Schema.Literal<"no_identity">, Schema.Literal<"inactive">, Schema.Literal<"run_cancelled">, Schema.Literal<"run_failed">]>;
1310
+ readonly count: Schema.Finite;
1311
+ }>>;
1287
1312
  readonly estimatedCompletionAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
1288
1313
  readonly failureReason: Schema.Union<readonly [Schema.String, Schema.Null]>;
1289
1314
  readonly holdReason: Schema.Union<readonly [Schema.String, Schema.Null]>;
@@ -1380,6 +1405,10 @@ export declare const CampaignsScheduleRun201: Schema.Struct<{
1380
1405
  readonly dispatchedCount: Schema.Finite;
1381
1406
  readonly failedCount: Schema.Finite;
1382
1407
  readonly skippedCount: Schema.Finite;
1408
+ readonly skippedReasons: Schema.$Array<Schema.Struct<{
1409
+ readonly reason: Schema.Union<readonly [Schema.Literal<"unsubscribed">, Schema.Literal<"blocked">, Schema.Literal<"suppressed">, Schema.Literal<"opted_out">, Schema.Literal<"unreachable">, Schema.Literal<"no_identity">, Schema.Literal<"inactive">, Schema.Literal<"run_cancelled">, Schema.Literal<"run_failed">]>;
1410
+ readonly count: Schema.Finite;
1411
+ }>>;
1383
1412
  readonly estimatedCompletionAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
1384
1413
  readonly failureReason: Schema.Union<readonly [Schema.String, Schema.Null]>;
1385
1414
  readonly holdReason: Schema.Union<readonly [Schema.String, Schema.Null]>;
@@ -1474,6 +1503,10 @@ export declare const CampaignsGetRun200: Schema.Struct<{
1474
1503
  readonly dispatchedCount: Schema.Finite;
1475
1504
  readonly failedCount: Schema.Finite;
1476
1505
  readonly skippedCount: Schema.Finite;
1506
+ readonly skippedReasons: Schema.$Array<Schema.Struct<{
1507
+ readonly reason: Schema.Union<readonly [Schema.Literal<"unsubscribed">, Schema.Literal<"blocked">, Schema.Literal<"suppressed">, Schema.Literal<"opted_out">, Schema.Literal<"unreachable">, Schema.Literal<"no_identity">, Schema.Literal<"inactive">, Schema.Literal<"run_cancelled">, Schema.Literal<"run_failed">]>;
1508
+ readonly count: Schema.Finite;
1509
+ }>>;
1477
1510
  readonly estimatedCompletionAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
1478
1511
  readonly failureReason: Schema.Union<readonly [Schema.String, Schema.Null]>;
1479
1512
  readonly holdReason: Schema.Union<readonly [Schema.String, Schema.Null]>;
@@ -1564,6 +1597,10 @@ export declare const CampaignsCancelRun200: Schema.Struct<{
1564
1597
  readonly dispatchedCount: Schema.Finite;
1565
1598
  readonly failedCount: Schema.Finite;
1566
1599
  readonly skippedCount: Schema.Finite;
1600
+ readonly skippedReasons: Schema.$Array<Schema.Struct<{
1601
+ readonly reason: Schema.Union<readonly [Schema.Literal<"unsubscribed">, Schema.Literal<"blocked">, Schema.Literal<"suppressed">, Schema.Literal<"opted_out">, Schema.Literal<"unreachable">, Schema.Literal<"no_identity">, Schema.Literal<"inactive">, Schema.Literal<"run_cancelled">, Schema.Literal<"run_failed">]>;
1602
+ readonly count: Schema.Finite;
1603
+ }>>;
1567
1604
  readonly estimatedCompletionAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
1568
1605
  readonly failureReason: Schema.Union<readonly [Schema.String, Schema.Null]>;
1569
1606
  readonly holdReason: Schema.Union<readonly [Schema.String, Schema.Null]>;
@@ -1659,6 +1696,10 @@ export declare const CampaignsPauseRun200: Schema.Struct<{
1659
1696
  readonly dispatchedCount: Schema.Finite;
1660
1697
  readonly failedCount: Schema.Finite;
1661
1698
  readonly skippedCount: Schema.Finite;
1699
+ readonly skippedReasons: Schema.$Array<Schema.Struct<{
1700
+ readonly reason: Schema.Union<readonly [Schema.Literal<"unsubscribed">, Schema.Literal<"blocked">, Schema.Literal<"suppressed">, Schema.Literal<"opted_out">, Schema.Literal<"unreachable">, Schema.Literal<"no_identity">, Schema.Literal<"inactive">, Schema.Literal<"run_cancelled">, Schema.Literal<"run_failed">]>;
1701
+ readonly count: Schema.Finite;
1702
+ }>>;
1662
1703
  readonly estimatedCompletionAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
1663
1704
  readonly failureReason: Schema.Union<readonly [Schema.String, Schema.Null]>;
1664
1705
  readonly holdReason: Schema.Union<readonly [Schema.String, Schema.Null]>;
@@ -1714,7 +1755,7 @@ export declare const CampaignsListRecipients200: Schema.Struct<{
1714
1755
  readonly status: Schema.Union<readonly [Schema.Literal<"pending">, Schema.Literal<"dispatching">, Schema.Literal<"dispatched">, Schema.Literal<"failed">, Schema.Literal<"skipped">]>;
1715
1756
  readonly messageId: Schema.Union<readonly [Schema.String, Schema.Null]>;
1716
1757
  readonly failureReason: Schema.Union<readonly [Schema.String, Schema.Null]>;
1717
- readonly skippedReason: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"unsubscribed">, Schema.Literal<"blocked">, Schema.Literal<"suppressed">, Schema.Literal<"no_identity">, Schema.Literal<"inactive">, Schema.Literal<"run_cancelled">, Schema.Literal<"run_failed">]>, Schema.Null]>;
1758
+ readonly skippedReason: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"unsubscribed">, Schema.Literal<"blocked">, Schema.Literal<"suppressed">, Schema.Literal<"opted_out">, Schema.Literal<"unreachable">, Schema.Literal<"no_identity">, Schema.Literal<"inactive">, Schema.Literal<"run_cancelled">, Schema.Literal<"run_failed">]>, Schema.Null]>;
1718
1759
  readonly createdAt: Schema.String;
1719
1760
  readonly updatedAt: Schema.String;
1720
1761
  }>>;
@@ -1799,6 +1840,10 @@ export declare const CampaignsResumeRun200: Schema.Struct<{
1799
1840
  readonly dispatchedCount: Schema.Finite;
1800
1841
  readonly failedCount: Schema.Finite;
1801
1842
  readonly skippedCount: Schema.Finite;
1843
+ readonly skippedReasons: Schema.$Array<Schema.Struct<{
1844
+ readonly reason: Schema.Union<readonly [Schema.Literal<"unsubscribed">, Schema.Literal<"blocked">, Schema.Literal<"suppressed">, Schema.Literal<"opted_out">, Schema.Literal<"unreachable">, Schema.Literal<"no_identity">, Schema.Literal<"inactive">, Schema.Literal<"run_cancelled">, Schema.Literal<"run_failed">]>;
1845
+ readonly count: Schema.Finite;
1846
+ }>>;
1802
1847
  readonly estimatedCompletionAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
1803
1848
  readonly failureReason: Schema.Union<readonly [Schema.String, Schema.Null]>;
1804
1849
  readonly holdReason: Schema.Union<readonly [Schema.String, Schema.Null]>;
@@ -2058,6 +2103,10 @@ declare const CampaignsGroup_base: HttpApiGroup.HttpApiGroup<"Campaigns", HttpAp
2058
2103
  readonly dispatchedCount: Schema.Finite;
2059
2104
  readonly failedCount: Schema.Finite;
2060
2105
  readonly skippedCount: Schema.Finite;
2106
+ readonly skippedReasons: Schema.$Array<Schema.Struct<{
2107
+ readonly reason: Schema.Union<readonly [Schema.Literal<"unsubscribed">, Schema.Literal<"blocked">, Schema.Literal<"suppressed">, Schema.Literal<"opted_out">, Schema.Literal<"unreachable">, Schema.Literal<"no_identity">, Schema.Literal<"inactive">, Schema.Literal<"run_cancelled">, Schema.Literal<"run_failed">]>;
2108
+ readonly count: Schema.Finite;
2109
+ }>>;
2061
2110
  readonly estimatedCompletionAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
2062
2111
  readonly failureReason: Schema.Union<readonly [Schema.String, Schema.Null]>;
2063
2112
  readonly holdReason: Schema.Union<readonly [Schema.String, Schema.Null]>;
@@ -2553,6 +2602,10 @@ declare const CampaignsGroup_base: HttpApiGroup.HttpApiGroup<"Campaigns", HttpAp
2553
2602
  readonly dispatchedCount: Schema.Finite;
2554
2603
  readonly failedCount: Schema.Finite;
2555
2604
  readonly skippedCount: Schema.Finite;
2605
+ readonly skippedReasons: Schema.$Array<Schema.Struct<{
2606
+ readonly reason: Schema.Union<readonly [Schema.Literal<"unsubscribed">, Schema.Literal<"blocked">, Schema.Literal<"suppressed">, Schema.Literal<"opted_out">, Schema.Literal<"unreachable">, Schema.Literal<"no_identity">, Schema.Literal<"inactive">, Schema.Literal<"run_cancelled">, Schema.Literal<"run_failed">]>;
2607
+ readonly count: Schema.Finite;
2608
+ }>>;
2556
2609
  readonly estimatedCompletionAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
2557
2610
  readonly failureReason: Schema.Union<readonly [Schema.String, Schema.Null]>;
2558
2611
  readonly holdReason: Schema.Union<readonly [Schema.String, Schema.Null]>;
@@ -2794,7 +2847,7 @@ declare const CampaignsGroup_base: HttpApiGroup.HttpApiGroup<"Campaigns", HttpAp
2794
2847
  readonly status: Schema.Union<readonly [Schema.Literal<"pending">, Schema.Literal<"dispatching">, Schema.Literal<"dispatched">, Schema.Literal<"failed">, Schema.Literal<"skipped">]>;
2795
2848
  readonly messageId: Schema.Union<readonly [Schema.String, Schema.Null]>;
2796
2849
  readonly failureReason: Schema.Union<readonly [Schema.String, Schema.Null]>;
2797
- readonly skippedReason: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"unsubscribed">, Schema.Literal<"blocked">, Schema.Literal<"suppressed">, Schema.Literal<"no_identity">, Schema.Literal<"inactive">, Schema.Literal<"run_cancelled">, Schema.Literal<"run_failed">]>, Schema.Null]>;
2850
+ readonly skippedReason: Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"unsubscribed">, Schema.Literal<"blocked">, Schema.Literal<"suppressed">, Schema.Literal<"opted_out">, Schema.Literal<"unreachable">, Schema.Literal<"no_identity">, Schema.Literal<"inactive">, Schema.Literal<"run_cancelled">, Schema.Literal<"run_failed">]>, Schema.Null]>;
2798
2851
  readonly createdAt: Schema.String;
2799
2852
  readonly updatedAt: Schema.String;
2800
2853
  }>>;
@@ -2942,6 +2995,10 @@ declare const CampaignsGroup_base: HttpApiGroup.HttpApiGroup<"Campaigns", HttpAp
2942
2995
  readonly dispatchedCount: Schema.Finite;
2943
2996
  readonly failedCount: Schema.Finite;
2944
2997
  readonly skippedCount: Schema.Finite;
2998
+ readonly skippedReasons: Schema.$Array<Schema.Struct<{
2999
+ readonly reason: Schema.Union<readonly [Schema.Literal<"unsubscribed">, Schema.Literal<"blocked">, Schema.Literal<"suppressed">, Schema.Literal<"opted_out">, Schema.Literal<"unreachable">, Schema.Literal<"no_identity">, Schema.Literal<"inactive">, Schema.Literal<"run_cancelled">, Schema.Literal<"run_failed">]>;
3000
+ readonly count: Schema.Finite;
3001
+ }>>;
2945
3002
  readonly estimatedCompletionAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
2946
3003
  readonly failureReason: Schema.Union<readonly [Schema.String, Schema.Null]>;
2947
3004
  readonly holdReason: Schema.Union<readonly [Schema.String, Schema.Null]>;
@@ -3095,6 +3152,10 @@ declare const CampaignsGroup_base: HttpApiGroup.HttpApiGroup<"Campaigns", HttpAp
3095
3152
  readonly dispatchedCount: Schema.Finite;
3096
3153
  readonly failedCount: Schema.Finite;
3097
3154
  readonly skippedCount: Schema.Finite;
3155
+ readonly skippedReasons: Schema.$Array<Schema.Struct<{
3156
+ readonly reason: Schema.Union<readonly [Schema.Literal<"unsubscribed">, Schema.Literal<"blocked">, Schema.Literal<"suppressed">, Schema.Literal<"opted_out">, Schema.Literal<"unreachable">, Schema.Literal<"no_identity">, Schema.Literal<"inactive">, Schema.Literal<"run_cancelled">, Schema.Literal<"run_failed">]>;
3157
+ readonly count: Schema.Finite;
3158
+ }>>;
3098
3159
  readonly estimatedCompletionAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
3099
3160
  readonly failureReason: Schema.Union<readonly [Schema.String, Schema.Null]>;
3100
3161
  readonly holdReason: Schema.Union<readonly [Schema.String, Schema.Null]>;
@@ -3279,6 +3340,10 @@ declare const CampaignsGroup_base: HttpApiGroup.HttpApiGroup<"Campaigns", HttpAp
3279
3340
  readonly dispatchedCount: Schema.Finite;
3280
3341
  readonly failedCount: Schema.Finite;
3281
3342
  readonly skippedCount: Schema.Finite;
3343
+ readonly skippedReasons: Schema.$Array<Schema.Struct<{
3344
+ readonly reason: Schema.Union<readonly [Schema.Literal<"unsubscribed">, Schema.Literal<"blocked">, Schema.Literal<"suppressed">, Schema.Literal<"opted_out">, Schema.Literal<"unreachable">, Schema.Literal<"no_identity">, Schema.Literal<"inactive">, Schema.Literal<"run_cancelled">, Schema.Literal<"run_failed">]>;
3345
+ readonly count: Schema.Finite;
3346
+ }>>;
3282
3347
  readonly estimatedCompletionAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
3283
3348
  readonly failureReason: Schema.Union<readonly [Schema.String, Schema.Null]>;
3284
3349
  readonly holdReason: Schema.Union<readonly [Schema.String, Schema.Null]>;
@@ -3463,6 +3528,10 @@ declare const CampaignsGroup_base: HttpApiGroup.HttpApiGroup<"Campaigns", HttpAp
3463
3528
  readonly dispatchedCount: Schema.Finite;
3464
3529
  readonly failedCount: Schema.Finite;
3465
3530
  readonly skippedCount: Schema.Finite;
3531
+ readonly skippedReasons: Schema.$Array<Schema.Struct<{
3532
+ readonly reason: Schema.Union<readonly [Schema.Literal<"unsubscribed">, Schema.Literal<"blocked">, Schema.Literal<"suppressed">, Schema.Literal<"opted_out">, Schema.Literal<"unreachable">, Schema.Literal<"no_identity">, Schema.Literal<"inactive">, Schema.Literal<"run_cancelled">, Schema.Literal<"run_failed">]>;
3533
+ readonly count: Schema.Finite;
3534
+ }>>;
3466
3535
  readonly estimatedCompletionAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
3467
3536
  readonly failureReason: Schema.Union<readonly [Schema.String, Schema.Null]>;
3468
3537
  readonly holdReason: Schema.Union<readonly [Schema.String, Schema.Null]>;
@@ -20,6 +20,20 @@ const CampaignRunId = /* @__PURE__ */ Schema.String.check(Schema.isPattern(/* @_
20
20
  expected: "a string matching the RegExp ^crun_[0-9a-hjkmnp-tv-z]{16,24}$",
21
21
  identifier: "CampaignRunId"
22
22
  })).pipe(Schema.brand("CampaignRunId"));
23
+ const CampaignRunSkippedReason = /* @__PURE__ */ Schema.Struct({
24
+ reason: Schema.Union([
25
+ Schema.Literal("unsubscribed"),
26
+ Schema.Literal("blocked"),
27
+ Schema.Literal("suppressed"),
28
+ Schema.Literal("opted_out"),
29
+ Schema.Literal("unreachable"),
30
+ Schema.Literal("no_identity"),
31
+ Schema.Literal("inactive"),
32
+ Schema.Literal("run_cancelled"),
33
+ Schema.Literal("run_failed")
34
+ ]),
35
+ count: Schema.Finite.check(Schema.isFinite().annotate({ expected: "a finite number" }))
36
+ }).annotate({ identifier: "CampaignRunSkippedReason" });
23
37
  const CampaignRecipientId = /* @__PURE__ */ Schema.String.check(Schema.isPattern(/* @__PURE__ */ new RegExp("^crcpt_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).annotate({
24
38
  expected: "a string matching the RegExp ^crcpt_[0-9a-hjkmnp-tv-z]{16,24}$",
25
39
  identifier: "CampaignRecipientId"
@@ -72,6 +86,8 @@ const CampaignRecipientPage = /* @__PURE__ */ Schema.Struct({
72
86
  Schema.Literal("unsubscribed"),
73
87
  Schema.Literal("blocked"),
74
88
  Schema.Literal("suppressed"),
89
+ Schema.Literal("opted_out"),
90
+ Schema.Literal("unreachable"),
75
91
  Schema.Literal("no_identity"),
76
92
  Schema.Literal("inactive"),
77
93
  Schema.Literal("run_cancelled"),
@@ -148,6 +164,7 @@ const CampaignRun = /* @__PURE__ */ Schema.Struct({
148
164
  dispatchedCount: Schema.Finite.check(Schema.isFinite().annotate({ expected: "a finite number" })),
149
165
  failedCount: Schema.Finite.check(Schema.isFinite().annotate({ expected: "a finite number" })),
150
166
  skippedCount: Schema.Finite.check(Schema.isFinite().annotate({ expected: "a finite number" })),
167
+ skippedReasons: Schema.Array(CampaignRunSkippedReason),
151
168
  estimatedCompletionAt: Schema.Union([Schema.String, Schema.Null]),
152
169
  failureReason: Schema.Union([Schema.String, Schema.Null]),
153
170
  holdReason: Schema.Union([Schema.String, Schema.Null]),
@@ -486,6 +503,6 @@ var CampaignsGroup = class extends HttpApiGroup.make("Campaigns").add(HttpApiEnd
486
503
  ]
487
504
  }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "campaigns.resumeRun").annotate(OpenApi.Summary, "Resume a campaign run").annotate(OpenApi.Description, "Resumes a paused campaign run and returns the updated run.")).annotate(OpenApi.Description, "Campaign drafts and scheduled campaign runs") {};
488
505
  //#endregion
489
- export { Campaign, CampaignAudience, CampaignContent, CampaignContentInput, CampaignContentMetadata, CampaignConversationRef, CampaignDefinitionSummary, CampaignId, CampaignLatestRun, CampaignListItem, CampaignPage, CampaignPolicy, CampaignRecipientId, CampaignRecipientPage, CampaignRun, CampaignRunAction, CampaignRunId, CampaignRunPage, CampaignsArchive200, CampaignsArchive401, CampaignsArchive403, CampaignsArchive404, CampaignsArchive409, CampaignsArchive422, CampaignsArchive500, CampaignsArchive504, CampaignsArchivePathParams, CampaignsCancelRun200, CampaignsCancelRun401, CampaignsCancelRun403, CampaignsCancelRun404, CampaignsCancelRun409, CampaignsCancelRun422, CampaignsCancelRun500, CampaignsCancelRun502, CampaignsCancelRun504, CampaignsCancelRunPathParams, CampaignsCreate201, CampaignsCreate401, CampaignsCreate403, CampaignsCreate422, CampaignsCreate500, CampaignsCreate504, CampaignsCreateRequestJson, CampaignsGet200, CampaignsGet401, CampaignsGet403, CampaignsGet404, CampaignsGet422, CampaignsGet500, CampaignsGet504, CampaignsGetPathParams, CampaignsGetRun200, CampaignsGetRun401, CampaignsGetRun403, CampaignsGetRun404, CampaignsGetRun422, CampaignsGetRun500, CampaignsGetRun504, CampaignsGetRunPathParams, CampaignsGroup, CampaignsList200, CampaignsList401, CampaignsList403, CampaignsList422, CampaignsList500, CampaignsList504, CampaignsListQuery, CampaignsListRecipients200, CampaignsListRecipients401, CampaignsListRecipients403, CampaignsListRecipients404, CampaignsListRecipients422, CampaignsListRecipients500, CampaignsListRecipients504, CampaignsListRecipientsPathParams, CampaignsListRecipientsQuery, CampaignsListRuns200, CampaignsListRuns401, CampaignsListRuns403, CampaignsListRuns404, CampaignsListRuns422, CampaignsListRuns500, CampaignsListRuns504, CampaignsListRunsPathParams, CampaignsListRunsQuery, CampaignsPauseRun200, CampaignsPauseRun401, CampaignsPauseRun403, CampaignsPauseRun404, CampaignsPauseRun409, CampaignsPauseRun422, CampaignsPauseRun500, CampaignsPauseRun502, CampaignsPauseRun504, CampaignsPauseRunPathParams, CampaignsResumeRun200, CampaignsResumeRun401, CampaignsResumeRun403, CampaignsResumeRun404, CampaignsResumeRun409, CampaignsResumeRun422, CampaignsResumeRun500, CampaignsResumeRun502, CampaignsResumeRun504, CampaignsResumeRunPathParams, CampaignsScheduleRun201, CampaignsScheduleRun401, CampaignsScheduleRun403, CampaignsScheduleRun404, CampaignsScheduleRun409, CampaignsScheduleRun422, CampaignsScheduleRun500, CampaignsScheduleRun502, CampaignsScheduleRun503, CampaignsScheduleRun504, CampaignsScheduleRunPathParams, CampaignsScheduleRunRequestJson, CampaignsUpdate200, CampaignsUpdate401, CampaignsUpdate403, CampaignsUpdate404, CampaignsUpdate409, CampaignsUpdate422, CampaignsUpdate500, CampaignsUpdate504, CampaignsUpdatePathParams, CampaignsUpdateRequestJson };
506
+ export { Campaign, CampaignAudience, CampaignContent, CampaignContentInput, CampaignContentMetadata, CampaignConversationRef, CampaignDefinitionSummary, CampaignId, CampaignLatestRun, CampaignListItem, CampaignPage, CampaignPolicy, CampaignRecipientId, CampaignRecipientPage, CampaignRun, CampaignRunAction, CampaignRunId, CampaignRunPage, CampaignRunSkippedReason, CampaignsArchive200, CampaignsArchive401, CampaignsArchive403, CampaignsArchive404, CampaignsArchive409, CampaignsArchive422, CampaignsArchive500, CampaignsArchive504, CampaignsArchivePathParams, CampaignsCancelRun200, CampaignsCancelRun401, CampaignsCancelRun403, CampaignsCancelRun404, CampaignsCancelRun409, CampaignsCancelRun422, CampaignsCancelRun500, CampaignsCancelRun502, CampaignsCancelRun504, CampaignsCancelRunPathParams, CampaignsCreate201, CampaignsCreate401, CampaignsCreate403, CampaignsCreate422, CampaignsCreate500, CampaignsCreate504, CampaignsCreateRequestJson, CampaignsGet200, CampaignsGet401, CampaignsGet403, CampaignsGet404, CampaignsGet422, CampaignsGet500, CampaignsGet504, CampaignsGetPathParams, CampaignsGetRun200, CampaignsGetRun401, CampaignsGetRun403, CampaignsGetRun404, CampaignsGetRun422, CampaignsGetRun500, CampaignsGetRun504, CampaignsGetRunPathParams, CampaignsGroup, CampaignsList200, CampaignsList401, CampaignsList403, CampaignsList422, CampaignsList500, CampaignsList504, CampaignsListQuery, CampaignsListRecipients200, CampaignsListRecipients401, CampaignsListRecipients403, CampaignsListRecipients404, CampaignsListRecipients422, CampaignsListRecipients500, CampaignsListRecipients504, CampaignsListRecipientsPathParams, CampaignsListRecipientsQuery, CampaignsListRuns200, CampaignsListRuns401, CampaignsListRuns403, CampaignsListRuns404, CampaignsListRuns422, CampaignsListRuns500, CampaignsListRuns504, CampaignsListRunsPathParams, CampaignsListRunsQuery, CampaignsPauseRun200, CampaignsPauseRun401, CampaignsPauseRun403, CampaignsPauseRun404, CampaignsPauseRun409, CampaignsPauseRun422, CampaignsPauseRun500, CampaignsPauseRun502, CampaignsPauseRun504, CampaignsPauseRunPathParams, CampaignsResumeRun200, CampaignsResumeRun401, CampaignsResumeRun403, CampaignsResumeRun404, CampaignsResumeRun409, CampaignsResumeRun422, CampaignsResumeRun500, CampaignsResumeRun502, CampaignsResumeRun504, CampaignsResumeRunPathParams, CampaignsScheduleRun201, CampaignsScheduleRun401, CampaignsScheduleRun403, CampaignsScheduleRun404, CampaignsScheduleRun409, CampaignsScheduleRun422, CampaignsScheduleRun500, CampaignsScheduleRun502, CampaignsScheduleRun503, CampaignsScheduleRun504, CampaignsScheduleRunPathParams, CampaignsScheduleRunRequestJson, CampaignsUpdate200, CampaignsUpdate401, CampaignsUpdate403, CampaignsUpdate404, CampaignsUpdate409, CampaignsUpdate422, CampaignsUpdate500, CampaignsUpdate504, CampaignsUpdatePathParams, CampaignsUpdateRequestJson };
490
507
 
491
508
  //# sourceMappingURL=campaigns.js.map