samva 0.50.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 +12 -11
- package/dist/client/sdk.gen.js +1399 -940
- package/dist/client/types.gen.d.ts +21 -10
- 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/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.js +6 -6
- 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 +1 -0
- package/dist/effect/generated/shared.js +2 -1
- 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 +28 -28
- 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/request-policy.d.ts +9 -0
- package/dist/request-policy.js +16 -1
- package/package.json +2 -2
|
@@ -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,
|
|
@@ -2698,7 +2698,7 @@ var MailboxesGroup = class extends HttpApiGroup.make("Mailboxes").add(HttpApiEnd
|
|
|
2698
2698
|
MailboxesApproveAction503.pipe(HttpApiSchema.status(503)),
|
|
2699
2699
|
MailboxesApproveAction504.pipe(HttpApiSchema.status(504))
|
|
2700
2700
|
]
|
|
2701
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.approveAction").annotate(OpenApi.Summary, "Approve a mailbox action").annotate(OpenApi.Description, "Records approval of a send and returns 202 while it is pending. A send is queued for automatic retry within 15 minutes of approval; repeating approval does not extend this deadline. Accepted, completed, and notSent replays return 200. No expiry applies before approval. Only a person signed in or through OAuth may approve, and never the proposer
|
|
2701
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.approveAction").annotate(OpenApi.Summary, "Approve a mailbox action").annotate(OpenApi.Description, "Records approval of a send and returns 202 while it is pending. A send is queued for automatic retry within 15 minutes of approval; repeating approval does not extend this deadline. Accepted, completed, and notSent replays return 200. No expiry applies before approval. Only a person signed in or through OAuth may approve, and never the proposer; an API key is rejected with `403`. Non-send approvals execute synchronously and return 200 with their own execution states. Set `always: true` to add an actor-specific rule allowing matching future actions, subject to policy floors and guards. Remembering an allowance for a hosted agent or API key requires an organization owner or admin; for a hosted agent's integration tool call it lets that tool run without approval for every agent, which only the organization owner may do. A held action's `alwaysAllow` says who may and whether the caller can. A hand-off cannot be always allowed. The action's `resolution` names the approver; approving a held send publishes one `mailbox.action.resolved` event."), HttpApiEndpoint.post("mailboxesCancelAction", "/v1/mailboxes/:id/actions/:actionId/cancel", {
|
|
2702
2702
|
params: MailboxesCancelActionPathParams,
|
|
2703
2703
|
success: [MailboxesCancelAction200, MailboxesCancelAction202.pipe(HttpApiSchema.status(202))],
|
|
2704
2704
|
error: [
|
|
@@ -2715,7 +2715,7 @@ var MailboxesGroup = class extends HttpApiGroup.make("Mailboxes").add(HttpApiEnd
|
|
|
2715
2715
|
MailboxesCancelAction503.pipe(HttpApiSchema.status(503)),
|
|
2716
2716
|
MailboxesCancelAction504.pipe(HttpApiSchema.status(504))
|
|
2717
2717
|
]
|
|
2718
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.cancelAction").annotate(OpenApi.Summary, "Cancel a mailbox send").annotate(OpenApi.Description, "Cancels a definitely unsent action and reopens its draft atomically. Only an authorized person who proposed the send or can approve actions may cancel. Accepted sends return 409 with their winning receipt and cannot be withdrawn. An uncertain send requires reconciliation and cannot be cancelled as unsent. Cancelling a send held for approval records `resolution.outcome: cancelled` and publishes one `mailbox.action.resolved` event."), HttpApiEndpoint.post("mailboxesDenyAction", "/v1/mailboxes/:id/actions/:actionId/deny", {
|
|
2718
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.cancelAction").annotate(OpenApi.Summary, "Cancel a mailbox send").annotate(OpenApi.Description, "Cancels a definitely unsent action and reopens its draft atomically. Only an authorized person who proposed the send or can approve actions may cancel; an API key is rejected with `403`, even one with full access. Accepted sends return 409 with their winning receipt and cannot be withdrawn. An uncertain send requires reconciliation and cannot be cancelled as unsent. Cancelling a send held for approval records `resolution.outcome: cancelled` and publishes one `mailbox.action.resolved` event."), HttpApiEndpoint.post("mailboxesDenyAction", "/v1/mailboxes/:id/actions/:actionId/deny", {
|
|
2719
2719
|
params: MailboxesDenyActionPathParams,
|
|
2720
2720
|
payload: MailboxesDenyActionRequestJson,
|
|
2721
2721
|
success: MailboxesDenyAction200,
|
|
@@ -2729,7 +2729,7 @@ var MailboxesGroup = class extends HttpApiGroup.make("Mailboxes").add(HttpApiEnd
|
|
|
2729
2729
|
MailboxesDenyAction500,
|
|
2730
2730
|
MailboxesDenyAction504.pipe(HttpApiSchema.status(504))
|
|
2731
2731
|
]
|
|
2732
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.denyAction").annotate(OpenApi.Summary, "Deny a mailbox action").annotate(OpenApi.Description, "Denies an action waiting for approval with a reason and returns it without executing it. Only a person signed in or through OAuth may deny, and never the one who proposed it
|
|
2732
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.denyAction").annotate(OpenApi.Summary, "Deny a mailbox action").annotate(OpenApi.Description, "Denies an action waiting for approval with a reason and returns it without executing it. Only a person signed in or through OAuth may deny, and never the one who proposed it; an API key is rejected with `403`. The action's `resolution` records the denier and reason; denying a held send publishes one `mailbox.action.resolved` event."), HttpApiEndpoint.post("mailboxesRetryAction", "/v1/mailboxes/:id/actions/:actionId/retry", {
|
|
2733
2733
|
params: MailboxesRetryActionPathParams,
|
|
2734
2734
|
success: [MailboxesRetryAction200, MailboxesRetryAction202.pipe(HttpApiSchema.status(202))],
|
|
2735
2735
|
error: [
|
|
@@ -2746,7 +2746,7 @@ var MailboxesGroup = class extends HttpApiGroup.make("Mailboxes").add(HttpApiEnd
|
|
|
2746
2746
|
MailboxesRetryAction503.pipe(HttpApiSchema.status(503)),
|
|
2747
2747
|
MailboxesRetryAction504.pipe(HttpApiSchema.status(504))
|
|
2748
2748
|
]
|
|
2749
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.retryAction").annotate(OpenApi.Summary, "Resume a mailbox send").annotate(OpenApi.Description, "Resumes the same eligible action while preserving its content, message identity, existing retry delays and original deadline. A queued action can resume while cleanup from an ended send attempt waits. A send attempt that is still running or whose status is unknown cannot be retried. Only an authorized person who proposed the send or can approve actions may retry. Automatic waits need no manual Retry. This does not grant new approval or resubmit an accepted or uncertain send."), HttpApiEndpoint.get("mailboxesListAddresses", "/v1/mailboxes/:id/addresses", {
|
|
2749
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.retryAction").annotate(OpenApi.Summary, "Resume a mailbox send").annotate(OpenApi.Description, "Resumes the same eligible action while preserving its content, message identity, existing retry delays and original deadline. A queued action can resume while cleanup from an ended send attempt waits. A send attempt that is still running or whose status is unknown cannot be retried. Only an authorized person who proposed the send or can approve actions may retry; an API key is rejected with `403`, even one with full access. Automatic waits need no manual Retry. This does not grant new approval or resubmit an accepted or uncertain send."), HttpApiEndpoint.get("mailboxesListAddresses", "/v1/mailboxes/:id/addresses", {
|
|
2750
2750
|
params: MailboxesListAddressesPathParams,
|
|
2751
2751
|
query: MailboxesListAddressesQuery,
|
|
2752
2752
|
success: MailboxesListAddresses200,
|
|
@@ -3390,7 +3390,7 @@ var MailboxesGroup = class extends HttpApiGroup.make("Mailboxes").add(HttpApiEnd
|
|
|
3390
3390
|
MailboxesDiscardSpamHeld502.pipe(HttpApiSchema.status(502)),
|
|
3391
3391
|
MailboxesDiscardSpamHeld504.pipe(HttpApiSchema.status(504))
|
|
3392
3392
|
]
|
|
3393
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.discardSpamHeld").annotate(OpenApi.Summary, "Discard held malware").annotate(OpenApi.Description, "Permanently removes isolated malware from the mailbox's held list. Publishes one `mailbox.message.discarded` event. Retrying returns the same result and publishes nothing. Delete readable Spam through the thread delete endpoint. Only a person with `spam.discard` can discard held mail
|
|
3393
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.discardSpamHeld").annotate(OpenApi.Summary, "Discard held malware").annotate(OpenApi.Description, "Permanently removes isolated malware from the mailbox's held list. Publishes one `mailbox.message.discarded` event. Retrying returns the same result and publishes nothing. Delete readable Spam through the thread delete endpoint. Only a person signed in to Samva with `spam.discard` can discard held mail; an API key is rejected with `403`."), HttpApiEndpoint.get("mailboxesListThreads", "/v1/mailboxes/:id/threads", {
|
|
3394
3394
|
params: MailboxesListThreadsPathParams,
|
|
3395
3395
|
query: MailboxesListThreadsQuery,
|
|
3396
3396
|
success: MailboxesListThreads200,
|
|
@@ -3403,7 +3403,7 @@ var MailboxesGroup = class extends HttpApiGroup.make("Mailboxes").add(HttpApiEnd
|
|
|
3403
3403
|
MailboxesListThreads500,
|
|
3404
3404
|
MailboxesListThreads504.pipe(HttpApiSchema.status(504))
|
|
3405
3405
|
]
|
|
3406
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.listThreads").annotate(OpenApi.Summary, "List threads in a mailbox").annotate(OpenApi.Description, "Returns thread summaries. With `q`, semantic and keyword search returns up to 100 best-matching threads in relevance order across cursor pages. It searches subjects, participants, message text including quoted history, and attachment filenames, not attachment contents. New mail can take a few seconds to become searchable. Other filters narrow the searchable set. Without `q`, threads use most recent activity first; `after` and `before` filter by last activity for polling. Pass `nextCursor` back as `cursor` for the next page; it is null on the last page. In a list without `q`, a thread that gains activity while you page moves ahead of the cursor, so a walk lists each thread at most once."), HttpApiEndpoint.get("mailboxesGetThread", "/v1/mailboxes/:id/threads/:threadId", {
|
|
3406
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "mailboxes.listThreads").annotate(OpenApi.Summary, "List threads in a mailbox").annotate(OpenApi.Description, "Returns thread summaries. With `q`, semantic and keyword search returns up to 100 best-matching threads in relevance order across cursor pages. It searches subjects, participants, message text including quoted history, and attachment filenames, not attachment contents. New mail can take a few seconds to become searchable. Other filters narrow the searchable set. Without `q`, threads use most recent activity first; `after` and `before` filter by last activity for polling. Pass `nextCursor` back as `cursor` for the next page; it is null on the last page. In a list without `q`, a thread that gains activity while you page moves ahead of the cursor, so a walk lists each thread at most once. Omit `folder` to list every folder. A thread's folder is set when it is created and does not move on later replies: a thread a send started stays in `sent`, so find replies with `unread: true` and no `folder`."), HttpApiEndpoint.get("mailboxesGetThread", "/v1/mailboxes/:id/threads/:threadId", {
|
|
3407
3407
|
params: MailboxesGetThreadPathParams,
|
|
3408
3408
|
success: MailboxesGetThread200,
|
|
3409
3409
|
error: [
|
|
@@ -250,7 +250,7 @@ var NamespacesGroup = class extends HttpApiGroup.make("Namespaces").add(HttpApiE
|
|
|
250
250
|
NamespacesRemove500,
|
|
251
251
|
NamespacesRemove504.pipe(HttpApiSchema.status(504))
|
|
252
252
|
]
|
|
253
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "namespaces.remove").annotate(OpenApi.Summary, "Delete a namespace").annotate(OpenApi.Description, "Deletes an empty namespace. A namespace that still holds anything conflicts, and the error names and counts each resource kind that remains. Delete each, or return it to organization level with `DELETE /v1/namespaces/{id}/resources/{type}/{resourceId}`; mailboxes
|
|
253
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "namespaces.remove").annotate(OpenApi.Summary, "Delete a namespace").annotate(OpenApi.Description, "Deletes an empty namespace. A namespace that still holds anything conflicts, and the error names and counts each resource kind that remains. Delete each, or return it to organization level with `DELETE /v1/namespaces/{id}/resources/{type}/{resourceId}`; mailboxes and webhook endpoints cannot move and are deleted. Only an enabled API key holds the namespace: revoke the namespace's keys, and deletion retires and detaches each one, keeping its record. Deletion also deletes the namespace's portal links and WhatsApp setup links, so their URLs stop working. Messages keep the namespace they ran in."), HttpApiEndpoint.patch("namespacesUpdate", "/v1/namespaces/:id", {
|
|
254
254
|
params: NamespacesUpdatePathParams,
|
|
255
255
|
payload: NamespacesUpdateRequestJson,
|
|
256
256
|
success: NamespacesUpdate200,
|
|
@@ -96,7 +96,7 @@ var PoliciesGroup = class extends HttpApiGroup.make("Policies").add(HttpApiEndpo
|
|
|
96
96
|
PoliciesSetPolicy500,
|
|
97
97
|
PoliciesSetPolicy504.pipe(HttpApiSchema.status(504))
|
|
98
98
|
]
|
|
99
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "policies.setPolicy").annotate(OpenApi.Summary, "Set decision rules").annotate(OpenApi.Description, "Replaces this scope's rules and instructions only when ifVersion matches its current version. A stale version returns a conflict. More specific scopes replace defaults; atLeast floors remain binding. Identical rule matches in one scope are rejected."), HttpApiEndpoint.delete("policiesDeletePolicy", "/v1/policies/:kind/:id", {
|
|
99
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "policies.setPolicy").annotate(OpenApi.Summary, "Set decision rules").annotate(OpenApi.Description, "Replaces this scope's rules and instructions only when ifVersion matches its current version. A stale version returns a conflict. More specific scopes replace defaults; atLeast floors remain binding. Identical rule matches in one scope are rejected. An API key changes policy only with organization-wide reach (full access, no namespace, owned by an organization owner or admin): it may set any rule on another key, and on a mailbox it can configure only add atLeast person or never floors or decide: never rules while keeping every existing rule. Its own key, the organization, and agents return 403; a person changes those."), HttpApiEndpoint.delete("policiesDeletePolicy", "/v1/policies/:kind/:id", {
|
|
100
100
|
params: PoliciesDeletePolicyPathParams,
|
|
101
101
|
query: PoliciesDeletePolicyQuery,
|
|
102
102
|
success: PoliciesDeletePolicy200,
|
|
@@ -110,7 +110,7 @@ var PoliciesGroup = class extends HttpApiGroup.make("Policies").add(HttpApiEndpo
|
|
|
110
110
|
PoliciesDeletePolicy500,
|
|
111
111
|
PoliciesDeletePolicy504.pipe(HttpApiSchema.status(504))
|
|
112
112
|
]
|
|
113
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "policies.deletePolicy").annotate(OpenApi.Summary, "Clear decision rules").annotate(OpenApi.Description, "Clears this scope's rules and instructions only when ifVersion matches, and returns the next version. The stored version is retained. Other scopes and subject defaults continue to apply.")).annotate(OpenApi.Description, "Rules governing who decides each gated action.") {};
|
|
113
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "policies.deletePolicy").annotate(OpenApi.Summary, "Clear decision rules").annotate(OpenApi.Description, "Clears this scope's rules and instructions only when ifVersion matches, and returns the next version. The stored version is retained. Other scopes and subject defaults continue to apply. An API key with organization-wide reach may clear another key's policy; clearing its own key, a mailbox that holds rules, the organization, or an agent returns 403.")).annotate(OpenApi.Description, "Rules governing who decides each gated action.") {};
|
|
114
114
|
export { PoliciesDeletePolicy200, PoliciesDeletePolicy400, PoliciesDeletePolicy401, PoliciesDeletePolicy403, PoliciesDeletePolicy404, PoliciesDeletePolicy409, PoliciesDeletePolicy422, PoliciesDeletePolicy500, PoliciesDeletePolicy504, PoliciesDeletePolicyPathParams, PoliciesDeletePolicyQuery, PoliciesGetPolicy200, PoliciesGetPolicy400, PoliciesGetPolicy401, PoliciesGetPolicy403, PoliciesGetPolicy404, PoliciesGetPolicy409, PoliciesGetPolicy422, PoliciesGetPolicy500, PoliciesGetPolicy504, PoliciesGetPolicyPathParams, PoliciesGroup, PoliciesSetPolicy200, PoliciesSetPolicy400, PoliciesSetPolicy401, PoliciesSetPolicy403, PoliciesSetPolicy404, PoliciesSetPolicy409, PoliciesSetPolicy422, PoliciesSetPolicy500, PoliciesSetPolicy504, PoliciesSetPolicyPathParams, PoliciesSetPolicyRequestJson, PolicySnapshot };
|
|
115
115
|
|
|
116
116
|
//# sourceMappingURL=policies.js.map
|