samva 0.49.0 → 0.51.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 +44 -3
- package/README.md +136 -7
- package/dist/client/sdk.gen.d.ts +63 -18
- package/dist/client/sdk.gen.js +1549 -945
- package/dist/client/types.gen.d.ts +269 -31
- package/dist/effect/agents.d.ts +4 -4
- package/dist/effect/api-keys.d.ts +4 -6
- package/dist/effect/campaigns.d.ts +166 -174
- 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/mailboxes.d.ts +41 -1
- package/dist/effect/descriptors/mailboxes.js +53 -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/api-keys.d.ts +0 -15
- package/dist/effect/generated/api-keys.js +1 -2
- package/dist/effect/generated/campaigns.d.ts +0 -62
- package/dist/effect/generated/campaigns.js +3 -9
- package/dist/effect/generated/email.d.ts +10 -3
- package/dist/effect/generated/email.js +3 -2
- package/dist/effect/generated/mailboxes.d.ts +780 -77
- package/dist/effect/generated/mailboxes.js +135 -12
- package/dist/effect/generated/namespaces.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 +1 -3
- package/dist/effect/generated/shared.d.ts +28 -31
- package/dist/effect/generated/shared.js +12 -19
- package/dist/effect/generated/template-registrations.d.ts +6 -6
- package/dist/effect/generated/template-registrations.js +3 -3
- package/dist/effect/generated-metadata.d.ts +24 -0
- package/dist/effect/generated-metadata.js +4 -0
- package/dist/effect/index.js +2 -1
- package/dist/effect/integrations.d.ts +2 -2
- package/dist/effect/internal/client.d.ts +19 -2
- package/dist/effect/internal/client.js +10 -2
- package/dist/effect/internal/email-sender.d.ts +4 -4
- package/dist/effect/internal/email-sender.js +5 -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 +152 -152
- package/dist/effect/mailboxes.d.ts +54 -30
- package/dist/effect/mailboxes.js +10 -2
- 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/index.js +2 -2
- package/dist/package.js +1 -1
- package/dist/promises/client.d.ts +5 -0
- package/dist/promises/client.js +12 -8
- package/dist/promises/errors.gen.d.ts +12 -1
- package/dist/promises/errors.gen.js +21 -2
- 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-policy.d.ts +9 -0
- package/dist/request-policy.js +16 -1
- package/dist/service-map.d.ts +22 -2
- package/package.json +3 -3
|
@@ -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
|
}>;
|
|
@@ -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
|
}>;
|
|
@@ -5465,8 +5409,6 @@ declare const CampaignsGroup_base: HttpApiGroup.HttpApiGroup<"Campaigns", HttpAp
|
|
|
5465
5409
|
readonly capacityWarning: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
5466
5410
|
readonly lastContactId: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
5467
5411
|
readonly createdBy: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
5468
|
-
readonly actorEmail: Schema.String;
|
|
5469
|
-
readonly memberRole: Schema.String;
|
|
5470
5412
|
readonly createdAt: Schema.String;
|
|
5471
5413
|
readonly updatedAt: Schema.String;
|
|
5472
5414
|
}>;
|
|
@@ -5724,8 +5666,6 @@ declare const CampaignsGroup_base: HttpApiGroup.HttpApiGroup<"Campaigns", HttpAp
|
|
|
5724
5666
|
readonly capacityWarning: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
5725
5667
|
readonly lastContactId: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
5726
5668
|
readonly createdBy: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
5727
|
-
readonly actorEmail: Schema.String;
|
|
5728
|
-
readonly memberRole: Schema.String;
|
|
5729
5669
|
readonly createdAt: Schema.String;
|
|
5730
5670
|
readonly updatedAt: Schema.String;
|
|
5731
5671
|
}>>, 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, {
|
|
@@ -6231,8 +6171,6 @@ declare const CampaignsGroup_base: HttpApiGroup.HttpApiGroup<"Campaigns", HttpAp
|
|
|
6231
6171
|
readonly estimatedCompletionAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
6232
6172
|
}>, Schema.Null]>;
|
|
6233
6173
|
readonly createdBy: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
6234
|
-
readonly actorEmail: Schema.String;
|
|
6235
|
-
readonly memberRole: Schema.String;
|
|
6236
6174
|
readonly createdAt: Schema.String;
|
|
6237
6175
|
readonly updatedAt: Schema.String;
|
|
6238
6176
|
}>>, 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" }))();
|
|
@@ -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;
|
|
@@ -312,6 +312,7 @@ const EmailDomainPage = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
312
312
|
namespaceId: Schema.Union([NamespaceId, Schema.Null]).annotate({ description: "The namespace the domain belongs to, or null at organization level. Namespace callers also reach organization-level domains whose shared flag is true." }),
|
|
313
313
|
shared: Schema.Boolean,
|
|
314
314
|
isDefault: Schema.Boolean,
|
|
315
|
+
deleting: Schema.Boolean.annotate({ description: "True once a removal was accepted. Removal runs in the background: the domain stays listed and sends nothing while its provider teardown finishes, then it reads as not found." }),
|
|
315
316
|
deliverability: DeliverabilityFacts,
|
|
316
317
|
series: SendsSeries,
|
|
317
318
|
createdAt: Schema.String,
|
|
@@ -356,6 +357,7 @@ const EmailDomainDetailed = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
356
357
|
namespaceId: Schema.Union([NamespaceId, Schema.Null]).annotate({ description: "The namespace the domain belongs to, or null at organization level. Namespace callers also reach organization-level domains whose shared flag is true." }),
|
|
357
358
|
shared: Schema.Boolean,
|
|
358
359
|
isDefault: Schema.Boolean,
|
|
360
|
+
deleting: Schema.Boolean.annotate({ description: "True once a removal was accepted. Removal runs in the background: the domain stays listed and sends nothing while its provider teardown finishes, then it reads as not found." }),
|
|
359
361
|
deliverability: DeliverabilityFacts,
|
|
360
362
|
createdAt: Schema.String,
|
|
361
363
|
updatedAt: Schema.String
|
|
@@ -1210,7 +1212,6 @@ const EmailEnableCatchAll502 = ExternalServiceError;
|
|
|
1210
1212
|
const EmailEnableCatchAll504 = GatewayTimeoutError;
|
|
1211
1213
|
const EmailEnableReceivingPathParams = /* @__PURE__ */ (() => Schema.Struct({ id: EmailDomainId }))();
|
|
1212
1214
|
const EmailEnableReceivingRequestJson = /* @__PURE__ */ (() => Schema.Struct({
|
|
1213
|
-
domain: Schema.String,
|
|
1214
1215
|
catchAll: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1215
1216
|
endpointId: Schema.optionalKey(Schema.Union([WebhookEndpointId, Schema.Null])),
|
|
1216
1217
|
addresses: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null]))
|
|
@@ -1888,7 +1889,7 @@ var EmailGroup = class extends HttpApiGroup.make("Email").add(HttpApiEndpoint.ge
|
|
|
1888
1889
|
EmailRemoveDomain502.pipe(HttpApiSchema.status(502)),
|
|
1889
1890
|
EmailRemoveDomain504.pipe(HttpApiSchema.status(504))
|
|
1890
1891
|
]
|
|
1891
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "email.removeDomain").annotate(OpenApi.Summary, "Remove a sending domain").annotate(OpenApi.Description, "Permanently deletes a sending domain from the organization."), HttpApiEndpoint.patch("emailUpdateDomainConfig", "/v1/email/domains/:id/config", {
|
|
1892
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "email.removeDomain").annotate(OpenApi.Summary, "Remove a sending domain").annotate(OpenApi.Description, "Permanently deletes a sending domain from the organization. Removal is asynchronous: a `200` means its teardown was accepted. The domain stays listed with `deleting: true` and sends nothing until teardown finishes, then reads as `404`. A repeat call while teardown runs answers `200` again; once it finishes, a `404` means the domain is gone."), HttpApiEndpoint.patch("emailUpdateDomainConfig", "/v1/email/domains/:id/config", {
|
|
1892
1893
|
params: EmailUpdateDomainConfigPathParams,
|
|
1893
1894
|
payload: EmailUpdateDomainConfigRequestJson,
|
|
1894
1895
|
success: EmailUpdateDomainConfig200,
|