samva 0.50.0 → 0.52.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +49 -5
- package/README.md +137 -7
- package/dist/client/sdk.gen.d.ts +78 -38
- package/dist/client/sdk.gen.js +1554 -967
- package/dist/client/types.gen.d.ts +541 -291
- package/dist/effect/agents.d.ts +4 -4
- package/dist/effect/api-keys.d.ts +4 -6
- package/dist/effect/campaigns.d.ts +222 -230
- package/dist/effect/categories.d.ts +2 -2
- package/dist/effect/categories.js +6 -4
- package/dist/effect/contact-groups.d.ts +4 -4
- package/dist/effect/contacts.d.ts +8 -8
- package/dist/effect/conversations.d.ts +4 -4
- package/dist/effect/descriptors/integrations-catalog.d.ts +1 -1
- package/dist/effect/descriptors/integrations-catalog.js +1 -1
- package/dist/effect/descriptors/integrations.d.ts +1 -1
- package/dist/effect/descriptors/integrations.js +1 -1
- package/dist/effect/descriptors/logs.d.ts +21 -0
- package/dist/effect/descriptors/logs.js +23 -0
- package/dist/effect/descriptors/whats-app.d.ts +1 -1
- package/dist/effect/descriptors/whats-app.js +1 -1
- package/dist/effect/email.d.ts +17 -16
- package/dist/effect/errors.d.ts +1 -0
- package/dist/effect/errors.js +2 -1
- package/dist/effect/generated/agents.js +4 -4
- package/dist/effect/generated/api-keys.d.ts +0 -15
- package/dist/effect/generated/api-keys.js +1 -2
- package/dist/effect/generated/campaigns.d.ts +18 -68
- package/dist/effect/generated/campaigns.js +5 -15
- package/dist/effect/generated/email.d.ts +10 -3
- package/dist/effect/generated/email.js +6 -5
- package/dist/effect/generated/index.d.ts +3 -1
- package/dist/effect/generated/integrations-catalog.d.ts +93 -49
- package/dist/effect/generated/integrations-catalog.js +17 -28
- package/dist/effect/generated/integrations.d.ts +20 -40
- package/dist/effect/generated/integrations.js +9 -13
- package/dist/effect/generated/journeys.d.ts +61 -13
- package/dist/effect/generated/journeys.js +5 -5
- package/dist/effect/generated/logs.d.ts +2311 -0
- package/dist/effect/generated/logs.js +312 -0
- package/dist/effect/generated/mailboxes.d.ts +30 -24
- package/dist/effect/generated/mailboxes.js +25 -25
- package/dist/effect/generated/messages.d.ts +1 -882
- package/dist/effect/generated/messages.js +4 -243
- package/dist/effect/generated/namespaces.js +1 -1
- package/dist/effect/generated/newsletter-domains.d.ts +61 -13
- package/dist/effect/generated/newsletter-domains.js +5 -5
- package/dist/effect/generated/newsletter-issues.d.ts +166 -34
- package/dist/effect/generated/newsletter-issues.js +12 -12
- package/dist/effect/generated/newsletters.d.ts +76 -16
- package/dist/effect/generated/newsletters.js +6 -6
- package/dist/effect/generated/organizations.js +1 -1
- package/dist/effect/generated/policies.js +2 -2
- package/dist/effect/generated/scheduled-messages.d.ts +0 -26
- package/dist/effect/generated/scheduled-messages.js +2 -4
- package/dist/effect/generated/shared.d.ts +1139 -257
- package/dist/effect/generated/shared.js +323 -83
- package/dist/effect/generated/subscriptions.d.ts +4 -4
- package/dist/effect/generated/subscriptions.js +2 -6
- package/dist/effect/generated/template-registrations.d.ts +46 -10
- package/dist/effect/generated/template-registrations.js +4 -4
- package/dist/effect/generated/templates.js +2 -2
- package/dist/effect/generated/whats-app-flows.d.ts +151 -31
- package/dist/effect/generated/whats-app-flows.js +11 -11
- package/dist/effect/generated/whats-app-setup-links.d.ts +61 -13
- package/dist/effect/generated/whats-app-setup-links.js +5 -5
- package/dist/effect/generated/whats-app.d.ts +187 -65
- package/dist/effect/generated/whats-app.js +18 -24
- package/dist/effect/generated-metadata.d.ts +15 -3
- package/dist/effect/generated-metadata.js +375 -349
- package/dist/effect/index.d.ts +1 -0
- package/dist/effect/index.js +3 -1
- package/dist/effect/integrations-catalog.d.ts +92 -4
- package/dist/effect/integrations.d.ts +42 -10
- package/dist/effect/internal/client.d.ts +19 -2
- package/dist/effect/internal/client.js +35 -5
- package/dist/effect/internal/email-sender.d.ts +4 -4
- package/dist/effect/internal/email-sender.js +5 -3
- package/dist/effect/internal/log-events.d.ts +19 -0
- package/dist/effect/internal/log-events.js +53 -0
- package/dist/effect/internal/mailbox-events.d.ts +6 -2
- package/dist/effect/internal/mailbox-events.js +4 -3
- package/dist/effect/internal/operation.d.ts +11 -0
- package/dist/effect/internal/operation.js +10 -6
- package/dist/effect/internal/send.d.ts +4 -0
- package/dist/effect/internal/send.js +11 -8
- package/dist/effect/internal/timeout.d.ts +16 -0
- package/dist/effect/internal/timeout.js +20 -0
- package/dist/effect/journeys.d.ts +4 -4
- package/dist/effect/logs.d.ts +149 -0
- package/dist/effect/logs.js +18 -0
- package/dist/effect/mailboxes.d.ts +184 -178
- package/dist/effect/mailboxes.js +1 -1
- package/dist/effect/messages.d.ts +5 -5
- package/dist/effect/namespaces.d.ts +4 -4
- package/dist/effect/newsletter-domains.d.ts +2 -2
- package/dist/effect/operations.d.ts +2 -2
- package/dist/effect/scheduled-messages.d.ts +2 -6
- package/dist/effect/templates.d.ts +6 -6
- package/dist/effect/topics.d.ts +4 -4
- package/dist/effect/webhooks.d.ts +4 -4
- package/dist/effect/whatsapp-setup-links.d.ts +2 -2
- package/dist/effect/whatsapp.d.ts +73 -3
- package/dist/index.js +2 -2
- package/dist/mailbox-events.d.ts +50 -3
- package/dist/mailbox-events.js +38 -19
- package/dist/package.js +1 -1
- package/dist/promises/client.d.ts +8 -1
- package/dist/promises/client.js +15 -9
- package/dist/promises/errors.gen.d.ts +14 -1
- package/dist/promises/errors.gen.js +158 -36
- package/dist/promises/index.js +2 -2
- package/dist/promises/request.d.ts +31 -2
- package/dist/promises/request.js +42 -7
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/request-id.d.ts +3 -0
- package/dist/request-id.js +7 -0
- package/dist/request-policy.d.ts +9 -0
- package/dist/request-policy.js +16 -1
- package/dist/service-map.d.ts +14 -3
- package/package.json +6 -2
|
@@ -4,12 +4,10 @@ import { ApiKeyAccess, ApiKeyId, ApiKeySecurityMiddleware, BillingProviderError,
|
|
|
4
4
|
export type ApiKeyOwner = {
|
|
5
5
|
readonly id: string;
|
|
6
6
|
readonly name: string;
|
|
7
|
-
readonly email: string;
|
|
8
7
|
};
|
|
9
8
|
export declare const ApiKeyOwner: Schema.Struct<{
|
|
10
9
|
readonly id: Schema.String;
|
|
11
10
|
readonly name: Schema.String;
|
|
12
|
-
readonly email: Schema.String;
|
|
13
11
|
}>;
|
|
14
12
|
export type ApiKeyActivityPage = {
|
|
15
13
|
readonly items: ReadonlyArray<{
|
|
@@ -91,7 +89,6 @@ export declare const ApiKey: Schema.Struct<{
|
|
|
91
89
|
readonly owner: Schema.Union<readonly [Schema.Struct<{
|
|
92
90
|
readonly id: Schema.String;
|
|
93
91
|
readonly name: Schema.String;
|
|
94
|
-
readonly email: Schema.String;
|
|
95
92
|
}>, Schema.Null]>;
|
|
96
93
|
}>;
|
|
97
94
|
export type ApiKeyWithSecret = {
|
|
@@ -152,7 +149,6 @@ export declare const ApiKeyWithSecret: Schema.Struct<{
|
|
|
152
149
|
readonly owner: Schema.Union<readonly [Schema.Struct<{
|
|
153
150
|
readonly id: Schema.String;
|
|
154
151
|
readonly name: Schema.String;
|
|
155
|
-
readonly email: Schema.String;
|
|
156
152
|
}>, Schema.Null]>;
|
|
157
153
|
}>;
|
|
158
154
|
export type ApiKeyPage = {
|
|
@@ -203,7 +199,6 @@ export declare const ApiKeyPage: Schema.Struct<{
|
|
|
203
199
|
readonly owner: Schema.Union<readonly [Schema.Struct<{
|
|
204
200
|
readonly id: Schema.String;
|
|
205
201
|
readonly name: Schema.String;
|
|
206
|
-
readonly email: Schema.String;
|
|
207
202
|
}>, Schema.Null]>;
|
|
208
203
|
}>>;
|
|
209
204
|
readonly nextCursor: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
@@ -267,7 +262,6 @@ export declare const ApiKeysList200: Schema.Struct<{
|
|
|
267
262
|
readonly owner: Schema.Union<readonly [Schema.Struct<{
|
|
268
263
|
readonly id: Schema.String;
|
|
269
264
|
readonly name: Schema.String;
|
|
270
|
-
readonly email: Schema.String;
|
|
271
265
|
}>, Schema.Null]>;
|
|
272
266
|
}>>;
|
|
273
267
|
readonly nextCursor: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
@@ -367,7 +361,6 @@ export declare const ApiKeysCreate201: Schema.Struct<{
|
|
|
367
361
|
readonly owner: Schema.Union<readonly [Schema.Struct<{
|
|
368
362
|
readonly id: Schema.String;
|
|
369
363
|
readonly name: Schema.String;
|
|
370
|
-
readonly email: Schema.String;
|
|
371
364
|
}>, Schema.Null]>;
|
|
372
365
|
}>;
|
|
373
366
|
export type ApiKeysCreate400 = MalformedRequestError;
|
|
@@ -440,7 +433,6 @@ export declare const ApiKeysGet200: Schema.Struct<{
|
|
|
440
433
|
readonly owner: Schema.Union<readonly [Schema.Struct<{
|
|
441
434
|
readonly id: Schema.String;
|
|
442
435
|
readonly name: Schema.String;
|
|
443
|
-
readonly email: Schema.String;
|
|
444
436
|
}>, Schema.Null]>;
|
|
445
437
|
}>;
|
|
446
438
|
export type ApiKeysGet400 = MalformedRequestError;
|
|
@@ -515,7 +507,6 @@ export declare const ApiKeysUpdate200: Schema.Struct<{
|
|
|
515
507
|
readonly owner: Schema.Union<readonly [Schema.Struct<{
|
|
516
508
|
readonly id: Schema.String;
|
|
517
509
|
readonly name: Schema.String;
|
|
518
|
-
readonly email: Schema.String;
|
|
519
510
|
}>, Schema.Null]>;
|
|
520
511
|
}>;
|
|
521
512
|
export type ApiKeysUpdate400 = MalformedRequestError;
|
|
@@ -648,7 +639,6 @@ export declare const ApiKeysRotate200: Schema.Struct<{
|
|
|
648
639
|
readonly owner: Schema.Union<readonly [Schema.Struct<{
|
|
649
640
|
readonly id: Schema.String;
|
|
650
641
|
readonly name: Schema.String;
|
|
651
|
-
readonly email: Schema.String;
|
|
652
642
|
}>, Schema.Null]>;
|
|
653
643
|
}>;
|
|
654
644
|
export type ApiKeysRotate400 = MalformedRequestError;
|
|
@@ -786,7 +776,6 @@ declare const APIKeysGroup_base: HttpApiGroup.HttpApiGroup<"API Keys", HttpApiEn
|
|
|
786
776
|
readonly owner: Schema.Union<readonly [Schema.Struct<{
|
|
787
777
|
readonly id: Schema.String;
|
|
788
778
|
readonly name: Schema.String;
|
|
789
|
-
readonly email: Schema.String;
|
|
790
779
|
}>, Schema.Null]>;
|
|
791
780
|
}>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<BillingProviderError, {
|
|
792
781
|
readonly _tag: "BillingProviderError";
|
|
@@ -985,7 +974,6 @@ declare const APIKeysGroup_base: HttpApiGroup.HttpApiGroup<"API Keys", HttpApiEn
|
|
|
985
974
|
readonly owner: Schema.Union<readonly [Schema.Struct<{
|
|
986
975
|
readonly id: Schema.String;
|
|
987
976
|
readonly name: Schema.String;
|
|
988
|
-
readonly email: Schema.String;
|
|
989
977
|
}>, Schema.Null]>;
|
|
990
978
|
}>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
|
|
991
979
|
readonly _tag: "ForbiddenError";
|
|
@@ -1365,7 +1353,6 @@ declare const APIKeysGroup_base: HttpApiGroup.HttpApiGroup<"API Keys", HttpApiEn
|
|
|
1365
1353
|
readonly owner: Schema.Union<readonly [Schema.Struct<{
|
|
1366
1354
|
readonly id: Schema.String;
|
|
1367
1355
|
readonly name: Schema.String;
|
|
1368
|
-
readonly email: Schema.String;
|
|
1369
1356
|
}>, Schema.Null]>;
|
|
1370
1357
|
}>>;
|
|
1371
1358
|
readonly nextCursor: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
@@ -1610,7 +1597,6 @@ declare const APIKeysGroup_base: HttpApiGroup.HttpApiGroup<"API Keys", HttpApiEn
|
|
|
1610
1597
|
readonly owner: Schema.Union<readonly [Schema.Struct<{
|
|
1611
1598
|
readonly id: Schema.String;
|
|
1612
1599
|
readonly name: Schema.String;
|
|
1613
|
-
readonly email: Schema.String;
|
|
1614
1600
|
}>, Schema.Null]>;
|
|
1615
1601
|
}>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
|
|
1616
1602
|
readonly _tag: "ForbiddenError";
|
|
@@ -1760,7 +1746,6 @@ declare const APIKeysGroup_base: HttpApiGroup.HttpApiGroup<"API Keys", HttpApiEn
|
|
|
1760
1746
|
readonly owner: Schema.Union<readonly [Schema.Struct<{
|
|
1761
1747
|
readonly id: Schema.String;
|
|
1762
1748
|
readonly name: Schema.String;
|
|
1763
|
-
readonly email: Schema.String;
|
|
1764
1749
|
}>, Schema.Null]>;
|
|
1765
1750
|
}>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
|
|
1766
1751
|
readonly _tag: "ForbiddenError";
|
|
@@ -5,8 +5,7 @@ import * as Schema from "effect/Schema";
|
|
|
5
5
|
// src/effect/generated/api-keys.ts
|
|
6
6
|
const ApiKeyOwner = /* @__PURE__ */ (() => Schema.Struct({
|
|
7
7
|
id: Schema.String,
|
|
8
|
-
name: Schema.String
|
|
9
|
-
email: Schema.String
|
|
8
|
+
name: Schema.String
|
|
10
9
|
}).annotate({ identifier: "ApiKeyOwner" }))();
|
|
11
10
|
const ApiKeyActivityPage = /* @__PURE__ */ (() => Schema.Struct({
|
|
12
11
|
items: Schema.Array(Schema.Struct({
|
|
@@ -374,8 +374,6 @@ export type CampaignListItem = {
|
|
|
374
374
|
readonly definition: CampaignDefinitionSummary;
|
|
375
375
|
readonly latestRun: CampaignLatestRun | null;
|
|
376
376
|
readonly createdBy: string | null;
|
|
377
|
-
readonly actorEmail: string;
|
|
378
|
-
readonly memberRole: string;
|
|
379
377
|
readonly createdAt: string;
|
|
380
378
|
readonly updatedAt: string;
|
|
381
379
|
readonly series: SendsSeries;
|
|
@@ -480,8 +478,6 @@ export declare const CampaignListItem: Schema.Struct<{
|
|
|
480
478
|
readonly estimatedCompletionAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
481
479
|
}>, Schema.Null]>;
|
|
482
480
|
readonly createdBy: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
483
|
-
readonly actorEmail: Schema.String;
|
|
484
|
-
readonly memberRole: Schema.String;
|
|
485
481
|
readonly createdAt: Schema.String;
|
|
486
482
|
readonly updatedAt: Schema.String;
|
|
487
483
|
readonly series: Schema.$Array<Schema.Finite>;
|
|
@@ -496,8 +492,6 @@ export type Campaign = {
|
|
|
496
492
|
readonly definition: CampaignDefinitionSummary;
|
|
497
493
|
readonly latestRun: CampaignLatestRun | null;
|
|
498
494
|
readonly createdBy: string | null;
|
|
499
|
-
readonly actorEmail: string;
|
|
500
|
-
readonly memberRole: string;
|
|
501
495
|
readonly createdAt: string;
|
|
502
496
|
readonly updatedAt: string;
|
|
503
497
|
};
|
|
@@ -601,8 +595,6 @@ export declare const Campaign: Schema.Struct<{
|
|
|
601
595
|
readonly estimatedCompletionAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
602
596
|
}>, Schema.Null]>;
|
|
603
597
|
readonly createdBy: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
604
|
-
readonly actorEmail: Schema.String;
|
|
605
|
-
readonly memberRole: Schema.String;
|
|
606
598
|
readonly createdAt: Schema.String;
|
|
607
599
|
readonly updatedAt: Schema.String;
|
|
608
600
|
}>;
|
|
@@ -631,8 +623,6 @@ export type CampaignRun = {
|
|
|
631
623
|
readonly capacityWarning: string | null;
|
|
632
624
|
readonly lastContactId: string | null;
|
|
633
625
|
readonly createdBy: string | null;
|
|
634
|
-
readonly actorEmail: string;
|
|
635
|
-
readonly memberRole: string;
|
|
636
626
|
readonly createdAt: string;
|
|
637
627
|
readonly updatedAt: string;
|
|
638
628
|
};
|
|
@@ -740,8 +730,6 @@ export declare const CampaignRun: Schema.Struct<{
|
|
|
740
730
|
readonly capacityWarning: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
741
731
|
readonly lastContactId: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
742
732
|
readonly createdBy: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
743
|
-
readonly actorEmail: Schema.String;
|
|
744
|
-
readonly memberRole: Schema.String;
|
|
745
733
|
readonly createdAt: Schema.String;
|
|
746
734
|
readonly updatedAt: Schema.String;
|
|
747
735
|
}>;
|
|
@@ -850,8 +838,6 @@ export declare const CampaignPage: Schema.Struct<{
|
|
|
850
838
|
readonly estimatedCompletionAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
851
839
|
}>, Schema.Null]>;
|
|
852
840
|
readonly createdBy: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
853
|
-
readonly actorEmail: Schema.String;
|
|
854
|
-
readonly memberRole: Schema.String;
|
|
855
841
|
readonly createdAt: Schema.String;
|
|
856
842
|
readonly updatedAt: Schema.String;
|
|
857
843
|
readonly series: Schema.$Array<Schema.Finite>;
|
|
@@ -967,8 +953,6 @@ export declare const CampaignRunPage: Schema.Struct<{
|
|
|
967
953
|
readonly capacityWarning: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
968
954
|
readonly lastContactId: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
969
955
|
readonly createdBy: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
970
|
-
readonly actorEmail: Schema.String;
|
|
971
|
-
readonly memberRole: Schema.String;
|
|
972
956
|
readonly createdAt: Schema.String;
|
|
973
957
|
readonly updatedAt: Schema.String;
|
|
974
958
|
}>>;
|
|
@@ -1084,8 +1068,6 @@ export declare const CampaignRunAction: Schema.Struct<{
|
|
|
1084
1068
|
readonly capacityWarning: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1085
1069
|
readonly lastContactId: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1086
1070
|
readonly createdBy: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1087
|
-
readonly actorEmail: Schema.String;
|
|
1088
|
-
readonly memberRole: Schema.String;
|
|
1089
1071
|
readonly createdAt: Schema.String;
|
|
1090
1072
|
readonly updatedAt: Schema.String;
|
|
1091
1073
|
}>;
|
|
@@ -1202,8 +1184,6 @@ export declare const CampaignsList200: Schema.Struct<{
|
|
|
1202
1184
|
readonly estimatedCompletionAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1203
1185
|
}>, Schema.Null]>;
|
|
1204
1186
|
readonly createdBy: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1205
|
-
readonly actorEmail: Schema.String;
|
|
1206
|
-
readonly memberRole: Schema.String;
|
|
1207
1187
|
readonly createdAt: Schema.String;
|
|
1208
1188
|
readonly updatedAt: Schema.String;
|
|
1209
1189
|
readonly series: Schema.$Array<Schema.Finite>;
|
|
@@ -1413,8 +1393,6 @@ export declare const CampaignsCreate201: Schema.Struct<{
|
|
|
1413
1393
|
readonly estimatedCompletionAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1414
1394
|
}>, Schema.Null]>;
|
|
1415
1395
|
readonly createdBy: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1416
|
-
readonly actorEmail: Schema.String;
|
|
1417
|
-
readonly memberRole: Schema.String;
|
|
1418
1396
|
readonly createdAt: Schema.String;
|
|
1419
1397
|
readonly updatedAt: Schema.String;
|
|
1420
1398
|
}>;
|
|
@@ -1543,8 +1521,6 @@ export declare const CampaignsGet200: Schema.Struct<{
|
|
|
1543
1521
|
readonly estimatedCompletionAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1544
1522
|
}>, Schema.Null]>;
|
|
1545
1523
|
readonly createdBy: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1546
|
-
readonly actorEmail: Schema.String;
|
|
1547
|
-
readonly memberRole: Schema.String;
|
|
1548
1524
|
readonly createdAt: Schema.String;
|
|
1549
1525
|
readonly updatedAt: Schema.String;
|
|
1550
1526
|
}>;
|
|
@@ -1757,8 +1733,6 @@ export declare const CampaignsUpdate200: Schema.Struct<{
|
|
|
1757
1733
|
readonly estimatedCompletionAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1758
1734
|
}>, Schema.Null]>;
|
|
1759
1735
|
readonly createdBy: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1760
|
-
readonly actorEmail: Schema.String;
|
|
1761
|
-
readonly memberRole: Schema.String;
|
|
1762
1736
|
readonly createdAt: Schema.String;
|
|
1763
1737
|
readonly updatedAt: Schema.String;
|
|
1764
1738
|
}>;
|
|
@@ -1885,8 +1859,6 @@ export declare const CampaignsArchive200: Schema.Struct<{
|
|
|
1885
1859
|
readonly estimatedCompletionAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1886
1860
|
}>, Schema.Null]>;
|
|
1887
1861
|
readonly createdBy: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1888
|
-
readonly actorEmail: Schema.String;
|
|
1889
|
-
readonly memberRole: Schema.String;
|
|
1890
1862
|
readonly createdAt: Schema.String;
|
|
1891
1863
|
readonly updatedAt: Schema.String;
|
|
1892
1864
|
}>;
|
|
@@ -2028,8 +2000,6 @@ export declare const CampaignsListRuns200: Schema.Struct<{
|
|
|
2028
2000
|
readonly capacityWarning: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
2029
2001
|
readonly lastContactId: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
2030
2002
|
readonly createdBy: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
2031
|
-
readonly actorEmail: Schema.String;
|
|
2032
|
-
readonly memberRole: Schema.String;
|
|
2033
2003
|
readonly createdAt: Schema.String;
|
|
2034
2004
|
readonly updatedAt: Schema.String;
|
|
2035
2005
|
}>>;
|
|
@@ -2172,8 +2142,6 @@ export declare const CampaignsScheduleRun201: Schema.Struct<{
|
|
|
2172
2142
|
readonly capacityWarning: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
2173
2143
|
readonly lastContactId: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
2174
2144
|
readonly createdBy: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
2175
|
-
readonly actorEmail: Schema.String;
|
|
2176
|
-
readonly memberRole: Schema.String;
|
|
2177
2145
|
readonly createdAt: Schema.String;
|
|
2178
2146
|
readonly updatedAt: Schema.String;
|
|
2179
2147
|
}>;
|
|
@@ -2312,8 +2280,6 @@ export declare const CampaignsGetRun200: Schema.Struct<{
|
|
|
2312
2280
|
readonly capacityWarning: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
2313
2281
|
readonly lastContactId: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
2314
2282
|
readonly createdBy: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
2315
|
-
readonly actorEmail: Schema.String;
|
|
2316
|
-
readonly memberRole: Schema.String;
|
|
2317
2283
|
readonly createdAt: Schema.String;
|
|
2318
2284
|
readonly updatedAt: Schema.String;
|
|
2319
2285
|
}>;
|
|
@@ -2446,8 +2412,6 @@ export declare const CampaignsCancelRun200: Schema.Struct<{
|
|
|
2446
2412
|
readonly capacityWarning: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
2447
2413
|
readonly lastContactId: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
2448
2414
|
readonly createdBy: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
2449
|
-
readonly actorEmail: Schema.String;
|
|
2450
|
-
readonly memberRole: Schema.String;
|
|
2451
2415
|
readonly createdAt: Schema.String;
|
|
2452
2416
|
readonly updatedAt: Schema.String;
|
|
2453
2417
|
}>;
|
|
@@ -2585,8 +2549,6 @@ export declare const CampaignsPauseRun200: Schema.Struct<{
|
|
|
2585
2549
|
readonly capacityWarning: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
2586
2550
|
readonly lastContactId: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
2587
2551
|
readonly createdBy: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
2588
|
-
readonly actorEmail: Schema.String;
|
|
2589
|
-
readonly memberRole: Schema.String;
|
|
2590
2552
|
readonly createdAt: Schema.String;
|
|
2591
2553
|
readonly updatedAt: Schema.String;
|
|
2592
2554
|
}>;
|
|
@@ -2820,8 +2782,6 @@ export declare const CampaignsResumeRun200: Schema.Struct<{
|
|
|
2820
2782
|
readonly capacityWarning: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
2821
2783
|
readonly lastContactId: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
2822
2784
|
readonly createdBy: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
2823
|
-
readonly actorEmail: Schema.String;
|
|
2824
|
-
readonly memberRole: Schema.String;
|
|
2825
2785
|
readonly createdAt: Schema.String;
|
|
2826
2786
|
readonly updatedAt: Schema.String;
|
|
2827
2787
|
}>;
|
|
@@ -2941,8 +2901,8 @@ export type CampaignsPreview400 = MalformedRequestError;
|
|
|
2941
2901
|
export declare const CampaignsPreview400: typeof MalformedRequestError;
|
|
2942
2902
|
export type CampaignsPreview401 = UnauthorizedError;
|
|
2943
2903
|
export declare const CampaignsPreview401: typeof UnauthorizedError;
|
|
2944
|
-
export type CampaignsPreview403 =
|
|
2945
|
-
export declare const CampaignsPreview403:
|
|
2904
|
+
export type CampaignsPreview403 = ForbiddenError;
|
|
2905
|
+
export declare const CampaignsPreview403: typeof ForbiddenError;
|
|
2946
2906
|
export type CampaignsPreview404 = ResourceNotFoundError;
|
|
2947
2907
|
export declare const CampaignsPreview404: typeof ResourceNotFoundError;
|
|
2948
2908
|
export type CampaignsPreview409 = ConflictError;
|
|
@@ -3049,8 +3009,8 @@ export type CampaignsSendTest401 = UnauthorizedError;
|
|
|
3049
3009
|
export declare const CampaignsSendTest401: typeof UnauthorizedError;
|
|
3050
3010
|
export type CampaignsSendTest402 = PaymentRequiredError;
|
|
3051
3011
|
export declare const CampaignsSendTest402: typeof PaymentRequiredError;
|
|
3052
|
-
export type CampaignsSendTest403 = ForbiddenError | OnboardingReviewRequiredError
|
|
3053
|
-
export declare const CampaignsSendTest403: Schema.Union<readonly [typeof ForbiddenError, typeof OnboardingReviewRequiredError
|
|
3012
|
+
export type CampaignsSendTest403 = ForbiddenError | OnboardingReviewRequiredError;
|
|
3013
|
+
export declare const CampaignsSendTest403: Schema.Union<readonly [typeof ForbiddenError, typeof OnboardingReviewRequiredError]>;
|
|
3054
3014
|
export type CampaignsSendTest404 = ResourceNotFoundError;
|
|
3055
3015
|
export declare const CampaignsSendTest404: typeof ResourceNotFoundError;
|
|
3056
3016
|
export type CampaignsSendTest409 = ConflictError;
|
|
@@ -3169,8 +3129,6 @@ declare const CampaignsGroup_base: HttpApiGroup.HttpApiGroup<"Campaigns", HttpAp
|
|
|
3169
3129
|
readonly estimatedCompletionAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
3170
3130
|
}>, Schema.Null]>;
|
|
3171
3131
|
readonly createdBy: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
3172
|
-
readonly actorEmail: Schema.String;
|
|
3173
|
-
readonly memberRole: Schema.String;
|
|
3174
3132
|
readonly createdAt: Schema.String;
|
|
3175
3133
|
readonly updatedAt: Schema.String;
|
|
3176
3134
|
}>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<ConflictError, {
|
|
@@ -3402,8 +3360,6 @@ declare const CampaignsGroup_base: HttpApiGroup.HttpApiGroup<"Campaigns", HttpAp
|
|
|
3402
3360
|
readonly capacityWarning: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
3403
3361
|
readonly lastContactId: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
3404
3362
|
readonly createdBy: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
3405
|
-
readonly actorEmail: Schema.String;
|
|
3406
|
-
readonly memberRole: Schema.String;
|
|
3407
3363
|
readonly createdAt: Schema.String;
|
|
3408
3364
|
readonly updatedAt: Schema.String;
|
|
3409
3365
|
}>;
|
|
@@ -3721,8 +3677,6 @@ declare const CampaignsGroup_base: HttpApiGroup.HttpApiGroup<"Campaigns", HttpAp
|
|
|
3721
3677
|
readonly estimatedCompletionAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
3722
3678
|
}>, Schema.Null]>;
|
|
3723
3679
|
readonly createdBy: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
3724
|
-
readonly actorEmail: Schema.String;
|
|
3725
|
-
readonly memberRole: Schema.String;
|
|
3726
3680
|
readonly createdAt: Schema.String;
|
|
3727
3681
|
readonly updatedAt: Schema.String;
|
|
3728
3682
|
}>>, Schema.toCodecJson<Schema.Union<readonly [typeof FlagDisabledError, typeof ForbiddenError]> | Schema.decodeTo<Schema.declareConstructor<BillingProviderError, {
|
|
@@ -3951,8 +3905,6 @@ declare const CampaignsGroup_base: HttpApiGroup.HttpApiGroup<"Campaigns", HttpAp
|
|
|
3951
3905
|
readonly estimatedCompletionAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
3952
3906
|
}>, Schema.Null]>;
|
|
3953
3907
|
readonly createdBy: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
3954
|
-
readonly actorEmail: Schema.String;
|
|
3955
|
-
readonly memberRole: Schema.String;
|
|
3956
3908
|
readonly createdAt: Schema.String;
|
|
3957
3909
|
readonly updatedAt: Schema.String;
|
|
3958
3910
|
}>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
|
|
@@ -4162,8 +4114,6 @@ declare const CampaignsGroup_base: HttpApiGroup.HttpApiGroup<"Campaigns", HttpAp
|
|
|
4162
4114
|
readonly capacityWarning: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
4163
4115
|
readonly lastContactId: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
4164
4116
|
readonly createdBy: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
4165
|
-
readonly actorEmail: Schema.String;
|
|
4166
|
-
readonly memberRole: Schema.String;
|
|
4167
4117
|
readonly createdAt: Schema.String;
|
|
4168
4118
|
readonly updatedAt: Schema.String;
|
|
4169
4119
|
}>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
|
|
@@ -4499,8 +4449,6 @@ declare const CampaignsGroup_base: HttpApiGroup.HttpApiGroup<"Campaigns", HttpAp
|
|
|
4499
4449
|
readonly estimatedCompletionAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
4500
4450
|
}>, Schema.Null]>;
|
|
4501
4451
|
readonly createdBy: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
4502
|
-
readonly actorEmail: Schema.String;
|
|
4503
|
-
readonly memberRole: Schema.String;
|
|
4504
4452
|
readonly createdAt: Schema.String;
|
|
4505
4453
|
readonly updatedAt: Schema.String;
|
|
4506
4454
|
readonly series: Schema.$Array<Schema.Finite>;
|
|
@@ -4817,8 +4765,6 @@ declare const CampaignsGroup_base: HttpApiGroup.HttpApiGroup<"Campaigns", HttpAp
|
|
|
4817
4765
|
readonly capacityWarning: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
4818
4766
|
readonly lastContactId: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
4819
4767
|
readonly createdBy: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
4820
|
-
readonly actorEmail: Schema.String;
|
|
4821
|
-
readonly memberRole: Schema.String;
|
|
4822
4768
|
readonly createdAt: Schema.String;
|
|
4823
4769
|
readonly updatedAt: Schema.String;
|
|
4824
4770
|
}>>;
|
|
@@ -5032,8 +4978,6 @@ declare const CampaignsGroup_base: HttpApiGroup.HttpApiGroup<"Campaigns", HttpAp
|
|
|
5032
4978
|
readonly capacityWarning: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
5033
4979
|
readonly lastContactId: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
5034
4980
|
readonly createdBy: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
5035
|
-
readonly actorEmail: Schema.String;
|
|
5036
|
-
readonly memberRole: Schema.String;
|
|
5037
4981
|
readonly createdAt: Schema.String;
|
|
5038
4982
|
readonly updatedAt: Schema.String;
|
|
5039
4983
|
}>;
|
|
@@ -5252,7 +5196,7 @@ declare const CampaignsGroup_base: HttpApiGroup.HttpApiGroup<"Campaigns", HttpAp
|
|
|
5252
5196
|
readonly preheader: Schema.optionalKey<Schema.String>;
|
|
5253
5197
|
readonly html: Schema.String;
|
|
5254
5198
|
readonly text: Schema.String;
|
|
5255
|
-
}>>, Schema.toCodecJson<Schema.Union<readonly [typeof
|
|
5199
|
+
}>>, Schema.toCodecJson<Schema.Union<readonly [typeof TemplateSourceError, typeof ValidationError]> | Schema.decodeTo<Schema.declareConstructor<ConflictError, {
|
|
5256
5200
|
readonly _tag: "ConflictError";
|
|
5257
5201
|
readonly message: string;
|
|
5258
5202
|
readonly resource: string;
|
|
@@ -5272,6 +5216,18 @@ declare const CampaignsGroup_base: HttpApiGroup.HttpApiGroup<"Campaigns", HttpAp
|
|
|
5272
5216
|
readonly message: Schema.String;
|
|
5273
5217
|
readonly resource: Schema.String;
|
|
5274
5218
|
readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
5219
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
|
|
5220
|
+
readonly _tag: "ForbiddenError";
|
|
5221
|
+
readonly message: string;
|
|
5222
|
+
}, readonly [Schema.Struct<{
|
|
5223
|
+
readonly _tag: Schema.tag<"ForbiddenError">;
|
|
5224
|
+
readonly message: Schema.String;
|
|
5225
|
+
}>], {
|
|
5226
|
+
readonly _tag: "ForbiddenError";
|
|
5227
|
+
readonly message: string;
|
|
5228
|
+
}>, Schema.Struct<{
|
|
5229
|
+
readonly _tag: Schema.tag<"ForbiddenError">;
|
|
5230
|
+
readonly message: Schema.String;
|
|
5275
5231
|
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<GatewayTimeoutError, {
|
|
5276
5232
|
readonly _tag: "GatewayTimeoutError";
|
|
5277
5233
|
readonly message: string;
|
|
@@ -5465,8 +5421,6 @@ declare const CampaignsGroup_base: HttpApiGroup.HttpApiGroup<"Campaigns", HttpAp
|
|
|
5465
5421
|
readonly capacityWarning: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
5466
5422
|
readonly lastContactId: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
5467
5423
|
readonly createdBy: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
5468
|
-
readonly actorEmail: Schema.String;
|
|
5469
|
-
readonly memberRole: Schema.String;
|
|
5470
5424
|
readonly createdAt: Schema.String;
|
|
5471
5425
|
readonly updatedAt: Schema.String;
|
|
5472
5426
|
}>;
|
|
@@ -5724,8 +5678,6 @@ declare const CampaignsGroup_base: HttpApiGroup.HttpApiGroup<"Campaigns", HttpAp
|
|
|
5724
5678
|
readonly capacityWarning: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
5725
5679
|
readonly lastContactId: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
5726
5680
|
readonly createdBy: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
5727
|
-
readonly actorEmail: Schema.String;
|
|
5728
|
-
readonly memberRole: Schema.String;
|
|
5729
5681
|
readonly createdAt: Schema.String;
|
|
5730
5682
|
readonly updatedAt: Schema.String;
|
|
5731
5683
|
}>>, Schema.toCodecJson<Schema.Union<readonly [typeof FlagDisabledError, typeof ForbiddenError]> | Schema.Union<readonly [typeof ExternalServiceError, typeof BillingProviderError]> | Schema.Union<readonly [typeof SenderNotReadyError, typeof ServiceUnavailableError]> | Schema.Union<readonly [typeof TemplateSourceError, typeof FromAddressRequiredError, typeof ValidationError, typeof BrandAddressRequiredError, typeof CampaignFooterRequiredError]> | Schema.decodeTo<Schema.declareConstructor<ConflictError, {
|
|
@@ -5920,7 +5872,7 @@ declare const CampaignsGroup_base: HttpApiGroup.HttpApiGroup<"Campaigns", HttpAp
|
|
|
5920
5872
|
readonly contactId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ContactId">, Schema.Null]>>;
|
|
5921
5873
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
5922
5874
|
readonly id: Schema.brand<Schema.String, "MessageId">;
|
|
5923
|
-
}>>, Schema.toCodecJson<Schema.Union<readonly [typeof
|
|
5875
|
+
}>>, Schema.toCodecJson<Schema.Union<readonly [typeof ForbiddenError, typeof OnboardingReviewRequiredError]> | Schema.Union<readonly [typeof BillingProviderError, typeof ExternalServiceError]> | Schema.Union<readonly [typeof ServiceUnavailableError, typeof SenderNotReadyError, typeof DeliveryUnavailableError]> | Schema.Union<readonly [typeof TemplateSourceError, typeof ValidationError, typeof FromAddressRequiredError, typeof BrandAddressRequiredError, typeof CampaignFooterRequiredError]> | Schema.decodeTo<Schema.declareConstructor<ConflictError, {
|
|
5924
5876
|
readonly _tag: "ConflictError";
|
|
5925
5877
|
readonly message: string;
|
|
5926
5878
|
readonly resource: string;
|
|
@@ -6231,8 +6183,6 @@ declare const CampaignsGroup_base: HttpApiGroup.HttpApiGroup<"Campaigns", HttpAp
|
|
|
6231
6183
|
readonly estimatedCompletionAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
6232
6184
|
}>, Schema.Null]>;
|
|
6233
6185
|
readonly createdBy: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
6234
|
-
readonly actorEmail: Schema.String;
|
|
6235
|
-
readonly memberRole: Schema.String;
|
|
6236
6186
|
readonly createdAt: Schema.String;
|
|
6237
6187
|
readonly updatedAt: Schema.String;
|
|
6238
6188
|
}>>, Schema.toCodecJson<Schema.Union<readonly [typeof FlagDisabledError, typeof ForbiddenError]> | Schema.decodeTo<Schema.declareConstructor<ConflictError, {
|
|
@@ -181,9 +181,7 @@ const CampaignListItem = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
181
181
|
policy: CampaignPolicy,
|
|
182
182
|
definition: CampaignDefinitionSummary,
|
|
183
183
|
latestRun: Schema.Union([CampaignLatestRun, Schema.Null]),
|
|
184
|
-
createdBy: Schema.Union([Schema.String, Schema.Null]),
|
|
185
|
-
actorEmail: Schema.String,
|
|
186
|
-
memberRole: Schema.String,
|
|
184
|
+
createdBy: Schema.Union([Schema.String, Schema.Null]).annotate({ description: "The user id of the member who created it; for an API key, the key owner's user id. Never an email address." }),
|
|
187
185
|
createdAt: Schema.String,
|
|
188
186
|
updatedAt: Schema.String,
|
|
189
187
|
series: SendsSeries
|
|
@@ -201,9 +199,7 @@ const Campaign = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
201
199
|
policy: CampaignPolicy,
|
|
202
200
|
definition: CampaignDefinitionSummary,
|
|
203
201
|
latestRun: Schema.Union([CampaignLatestRun, Schema.Null]),
|
|
204
|
-
createdBy: Schema.Union([Schema.String, Schema.Null]),
|
|
205
|
-
actorEmail: Schema.String,
|
|
206
|
-
memberRole: Schema.String,
|
|
202
|
+
createdBy: Schema.Union([Schema.String, Schema.Null]).annotate({ description: "The user id of the member who created it; for an API key, the key owner's user id. Never an email address." }),
|
|
207
203
|
createdAt: Schema.String,
|
|
208
204
|
updatedAt: Schema.String
|
|
209
205
|
}).annotate({ identifier: "Campaign" }))();
|
|
@@ -239,9 +235,7 @@ const CampaignRun = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
239
235
|
holdUntil: Schema.Union([Schema.String, Schema.Null]),
|
|
240
236
|
capacityWarning: Schema.Union([Schema.String, Schema.Null]),
|
|
241
237
|
lastContactId: Schema.Union([Schema.String, Schema.Null]),
|
|
242
|
-
createdBy: Schema.Union([Schema.String, Schema.Null]),
|
|
243
|
-
actorEmail: Schema.String,
|
|
244
|
-
memberRole: Schema.String,
|
|
238
|
+
createdBy: Schema.Union([Schema.String, Schema.Null]).annotate({ description: "The user id of the member who created it; for an API key, the key owner's user id. Never an email address." }),
|
|
245
239
|
createdAt: Schema.String,
|
|
246
240
|
updatedAt: Schema.String
|
|
247
241
|
}).annotate({ identifier: "CampaignRun" }))();
|
|
@@ -466,7 +460,7 @@ const CampaignsPreviewRequestJson = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
466
460
|
const CampaignsPreview200 = CampaignPreview;
|
|
467
461
|
const CampaignsPreview400 = MalformedRequestError;
|
|
468
462
|
const CampaignsPreview401 = UnauthorizedError;
|
|
469
|
-
const CampaignsPreview403 =
|
|
463
|
+
const CampaignsPreview403 = ForbiddenError;
|
|
470
464
|
const CampaignsPreview404 = ResourceNotFoundError;
|
|
471
465
|
const CampaignsPreview409 = ConflictError;
|
|
472
466
|
const CampaignsPreview422 = /* @__PURE__ */ (() => Schema.Union([TemplateSourceError, ValidationError]))();
|
|
@@ -482,11 +476,7 @@ const CampaignsSendTest200 = CampaignTestSend;
|
|
|
482
476
|
const CampaignsSendTest400 = MalformedRequestError;
|
|
483
477
|
const CampaignsSendTest401 = UnauthorizedError;
|
|
484
478
|
const CampaignsSendTest402 = PaymentRequiredError;
|
|
485
|
-
const CampaignsSendTest403 = /* @__PURE__ */ (() => Schema.Union([
|
|
486
|
-
ForbiddenError,
|
|
487
|
-
OnboardingReviewRequiredError,
|
|
488
|
-
FlagDisabledError
|
|
489
|
-
]))();
|
|
479
|
+
const CampaignsSendTest403 = /* @__PURE__ */ (() => Schema.Union([ForbiddenError, OnboardingReviewRequiredError]))();
|
|
490
480
|
const CampaignsSendTest404 = ResourceNotFoundError;
|
|
491
481
|
const CampaignsSendTest409 = ConflictError;
|
|
492
482
|
const CampaignsSendTest422 = /* @__PURE__ */ (() => Schema.Union([
|
|
@@ -353,6 +353,7 @@ export type EmailDomainPage = {
|
|
|
353
353
|
readonly namespaceId: NamespaceId | null;
|
|
354
354
|
readonly shared: boolean;
|
|
355
355
|
readonly isDefault: boolean;
|
|
356
|
+
readonly deleting: boolean;
|
|
356
357
|
readonly deliverability: DeliverabilityFacts;
|
|
357
358
|
readonly series: SendsSeries;
|
|
358
359
|
readonly createdAt: string;
|
|
@@ -371,6 +372,7 @@ export declare const EmailDomainPage: Schema.Struct<{
|
|
|
371
372
|
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
372
373
|
readonly shared: Schema.Boolean;
|
|
373
374
|
readonly isDefault: Schema.Boolean;
|
|
375
|
+
readonly deleting: Schema.Boolean;
|
|
374
376
|
readonly deliverability: Schema.Struct<{
|
|
375
377
|
readonly bounceRate: Schema.Finite;
|
|
376
378
|
readonly complaintRate: Schema.Finite;
|
|
@@ -402,6 +404,7 @@ export type EmailDomainDetailed = {
|
|
|
402
404
|
readonly namespaceId: NamespaceId | null;
|
|
403
405
|
readonly shared: boolean;
|
|
404
406
|
readonly isDefault: boolean;
|
|
407
|
+
readonly deleting: boolean;
|
|
405
408
|
readonly deliverability: DeliverabilityFacts;
|
|
406
409
|
readonly createdAt: string;
|
|
407
410
|
readonly updatedAt: string;
|
|
@@ -425,6 +428,7 @@ export declare const EmailDomainDetailed: Schema.Struct<{
|
|
|
425
428
|
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
426
429
|
readonly shared: Schema.Boolean;
|
|
427
430
|
readonly isDefault: Schema.Boolean;
|
|
431
|
+
readonly deleting: Schema.Boolean;
|
|
428
432
|
readonly deliverability: Schema.Struct<{
|
|
429
433
|
readonly bounceRate: Schema.Finite;
|
|
430
434
|
readonly complaintRate: Schema.Finite;
|
|
@@ -1476,6 +1480,7 @@ export declare const EmailListDomains200: Schema.Struct<{
|
|
|
1476
1480
|
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
1477
1481
|
readonly shared: Schema.Boolean;
|
|
1478
1482
|
readonly isDefault: Schema.Boolean;
|
|
1483
|
+
readonly deleting: Schema.Boolean;
|
|
1479
1484
|
readonly deliverability: Schema.Struct<{
|
|
1480
1485
|
readonly bounceRate: Schema.Finite;
|
|
1481
1486
|
readonly complaintRate: Schema.Finite;
|
|
@@ -1538,6 +1543,7 @@ export declare const EmailAddDomain201: Schema.Struct<{
|
|
|
1538
1543
|
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
1539
1544
|
readonly shared: Schema.Boolean;
|
|
1540
1545
|
readonly isDefault: Schema.Boolean;
|
|
1546
|
+
readonly deleting: Schema.Boolean;
|
|
1541
1547
|
readonly deliverability: Schema.Struct<{
|
|
1542
1548
|
readonly bounceRate: Schema.Finite;
|
|
1543
1549
|
readonly complaintRate: Schema.Finite;
|
|
@@ -1595,6 +1601,7 @@ export declare const EmailGetDomainById200: Schema.Struct<{
|
|
|
1595
1601
|
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
1596
1602
|
readonly shared: Schema.Boolean;
|
|
1597
1603
|
readonly isDefault: Schema.Boolean;
|
|
1604
|
+
readonly deleting: Schema.Boolean;
|
|
1598
1605
|
readonly deliverability: Schema.Struct<{
|
|
1599
1606
|
readonly bounceRate: Schema.Finite;
|
|
1600
1607
|
readonly complaintRate: Schema.Finite;
|
|
@@ -2214,13 +2221,11 @@ export declare const EmailEnableReceivingPathParams: Schema.Struct<{
|
|
|
2214
2221
|
readonly id: Schema.brand<Schema.String, "EmailDomainId">;
|
|
2215
2222
|
}>;
|
|
2216
2223
|
export type EmailEnableReceivingRequestJson = {
|
|
2217
|
-
readonly domain: string;
|
|
2218
2224
|
readonly catchAll?: boolean | null;
|
|
2219
2225
|
readonly endpointId?: WebhookEndpointId | null;
|
|
2220
2226
|
readonly addresses?: ReadonlyArray<string> | null;
|
|
2221
2227
|
};
|
|
2222
2228
|
export declare const EmailEnableReceivingRequestJson: Schema.Struct<{
|
|
2223
|
-
readonly domain: Schema.String;
|
|
2224
2229
|
readonly catchAll: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
2225
2230
|
readonly endpointId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "WebhookEndpointId">, Schema.Null]>>;
|
|
2226
2231
|
readonly addresses: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>>;
|
|
@@ -4334,6 +4339,7 @@ declare const EmailGroup_base: HttpApiGroup.HttpApiGroup<"Email", HttpApiEndpoin
|
|
|
4334
4339
|
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
4335
4340
|
readonly shared: Schema.Boolean;
|
|
4336
4341
|
readonly isDefault: Schema.Boolean;
|
|
4342
|
+
readonly deleting: Schema.Boolean;
|
|
4337
4343
|
readonly deliverability: Schema.Struct<{
|
|
4338
4344
|
readonly bounceRate: Schema.Finite;
|
|
4339
4345
|
readonly complaintRate: Schema.Finite;
|
|
@@ -7201,7 +7207,6 @@ declare const EmailGroup_base: HttpApiGroup.HttpApiGroup<"Email", HttpApiEndpoin
|
|
|
7201
7207
|
}>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"emailEnableReceiving", "POST", "/v1/email/domains/:id/enable-receiving", Schema.toCodecStringTree<Schema.Struct<{
|
|
7202
7208
|
readonly id: Schema.brand<Schema.String, "EmailDomainId">;
|
|
7203
7209
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
7204
|
-
readonly domain: Schema.String;
|
|
7205
7210
|
readonly catchAll: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
7206
7211
|
readonly endpointId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "WebhookEndpointId">, Schema.Null]>>;
|
|
7207
7212
|
readonly addresses: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>>;
|
|
@@ -7898,6 +7903,7 @@ declare const EmailGroup_base: HttpApiGroup.HttpApiGroup<"Email", HttpApiEndpoin
|
|
|
7898
7903
|
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
7899
7904
|
readonly shared: Schema.Boolean;
|
|
7900
7905
|
readonly isDefault: Schema.Boolean;
|
|
7906
|
+
readonly deleting: Schema.Boolean;
|
|
7901
7907
|
readonly deliverability: Schema.Struct<{
|
|
7902
7908
|
readonly bounceRate: Schema.Finite;
|
|
7903
7909
|
readonly complaintRate: Schema.Finite;
|
|
@@ -9356,6 +9362,7 @@ declare const EmailGroup_base: HttpApiGroup.HttpApiGroup<"Email", HttpApiEndpoin
|
|
|
9356
9362
|
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
9357
9363
|
readonly shared: Schema.Boolean;
|
|
9358
9364
|
readonly isDefault: Schema.Boolean;
|
|
9365
|
+
readonly deleting: Schema.Boolean;
|
|
9359
9366
|
readonly deliverability: Schema.Struct<{
|
|
9360
9367
|
readonly bounceRate: Schema.Finite;
|
|
9361
9368
|
readonly complaintRate: Schema.Finite;
|