samva 0.40.0 → 0.42.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/dist/client/sdk.gen.d.ts +15 -8
- package/dist/client/sdk.gen.js +42 -9
- package/dist/client/types.gen.d.ts +49 -4
- package/dist/effect/email.d.ts +16 -1
- package/dist/effect/generated/contacts.js +1 -1
- package/dist/effect/generated/email.d.ts +197 -5
- package/dist/effect/generated/email.js +37 -11
- package/dist/effect/generated/mailboxes.d.ts +18 -0
- package/dist/effect/generated/mailboxes.js +2 -0
- package/dist/package.js +1 -1
- package/dist/service-map.d.ts +2 -2
- package/dist/service-map.js +2 -2
- package/package.json +2 -2
|
@@ -351,6 +351,7 @@ export type EmailDomainPage = {
|
|
|
351
351
|
readonly dkimSelector?: string | null;
|
|
352
352
|
readonly dkimPublicKey?: string | null;
|
|
353
353
|
readonly namespaceId: NamespaceId | null;
|
|
354
|
+
readonly shared: boolean;
|
|
354
355
|
readonly isDefault: boolean;
|
|
355
356
|
readonly deliverability: DeliverabilityFacts;
|
|
356
357
|
readonly series: SendsSeries;
|
|
@@ -368,6 +369,7 @@ export declare const EmailDomainPage: Schema.Struct<{
|
|
|
368
369
|
readonly dkimSelector: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
369
370
|
readonly dkimPublicKey: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
370
371
|
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
372
|
+
readonly shared: Schema.Boolean;
|
|
371
373
|
readonly isDefault: Schema.Boolean;
|
|
372
374
|
readonly deliverability: Schema.Struct<{
|
|
373
375
|
readonly bounceRate: Schema.Finite;
|
|
@@ -398,6 +400,7 @@ export type EmailDomainDetailed = {
|
|
|
398
400
|
}>;
|
|
399
401
|
readonly verifiedAt: string | null;
|
|
400
402
|
readonly namespaceId: NamespaceId | null;
|
|
403
|
+
readonly shared: boolean;
|
|
401
404
|
readonly isDefault: boolean;
|
|
402
405
|
readonly deliverability: DeliverabilityFacts;
|
|
403
406
|
readonly createdAt: string;
|
|
@@ -420,6 +423,7 @@ export declare const EmailDomainDetailed: Schema.Struct<{
|
|
|
420
423
|
}>>;
|
|
421
424
|
readonly verifiedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
422
425
|
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
426
|
+
readonly shared: Schema.Boolean;
|
|
423
427
|
readonly isDefault: Schema.Boolean;
|
|
424
428
|
readonly deliverability: Schema.Struct<{
|
|
425
429
|
readonly bounceRate: Schema.Finite;
|
|
@@ -751,6 +755,7 @@ export declare const EmailSenderPage: Schema.Struct<{
|
|
|
751
755
|
export type SuppressionEntry = {
|
|
752
756
|
readonly id: SuppressionId;
|
|
753
757
|
readonly email: string;
|
|
758
|
+
readonly namespaceId: NamespaceId | null;
|
|
754
759
|
readonly type: "bounce" | "complaint" | "unsubscribe" | "manual";
|
|
755
760
|
readonly bounceType: string | null;
|
|
756
761
|
readonly bounceSubType: string | null;
|
|
@@ -763,6 +768,7 @@ export type SuppressionEntry = {
|
|
|
763
768
|
export declare const SuppressionEntry: Schema.Struct<{
|
|
764
769
|
readonly id: Schema.brand<Schema.String, "SuppressionId">;
|
|
765
770
|
readonly email: Schema.String;
|
|
771
|
+
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
766
772
|
readonly type: Schema.Union<readonly [Schema.Literal<"bounce">, Schema.Literal<"complaint">, Schema.Literal<"unsubscribe">, Schema.Literal<"manual">]>;
|
|
767
773
|
readonly bounceType: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
768
774
|
readonly bounceSubType: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
@@ -1068,6 +1074,7 @@ export declare const SuppressionPage: Schema.Struct<{
|
|
|
1068
1074
|
readonly items: Schema.$Array<Schema.Struct<{
|
|
1069
1075
|
readonly id: Schema.brand<Schema.String, "SuppressionId">;
|
|
1070
1076
|
readonly email: Schema.String;
|
|
1077
|
+
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
1071
1078
|
readonly type: Schema.Union<readonly [Schema.Literal<"bounce">, Schema.Literal<"complaint">, Schema.Literal<"unsubscribe">, Schema.Literal<"manual">]>;
|
|
1072
1079
|
readonly bounceType: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1073
1080
|
readonly bounceSubType: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
@@ -1446,12 +1453,14 @@ export type EmailListDomainsQuery = {
|
|
|
1446
1453
|
readonly cursor?: string;
|
|
1447
1454
|
readonly sendable?: true | null;
|
|
1448
1455
|
readonly namespaceId?: NamespaceId;
|
|
1456
|
+
readonly shared?: boolean | null;
|
|
1449
1457
|
};
|
|
1450
1458
|
export declare const EmailListDomainsQuery: Schema.Struct<{
|
|
1451
1459
|
readonly limit: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Null]>>;
|
|
1452
1460
|
readonly cursor: Schema.optionalKey<Schema.String>;
|
|
1453
1461
|
readonly sendable: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<true>, Schema.Null]>>;
|
|
1454
1462
|
readonly namespaceId: Schema.optionalKey<Schema.brand<Schema.String, "NamespaceId">>;
|
|
1463
|
+
readonly shared: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
1455
1464
|
}>;
|
|
1456
1465
|
export type EmailListDomains200 = EmailDomainPage;
|
|
1457
1466
|
export declare const EmailListDomains200: Schema.Struct<{
|
|
@@ -1463,6 +1472,7 @@ export declare const EmailListDomains200: Schema.Struct<{
|
|
|
1463
1472
|
readonly dkimSelector: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1464
1473
|
readonly dkimPublicKey: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1465
1474
|
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
1475
|
+
readonly shared: Schema.Boolean;
|
|
1466
1476
|
readonly isDefault: Schema.Boolean;
|
|
1467
1477
|
readonly deliverability: Schema.Struct<{
|
|
1468
1478
|
readonly bounceRate: Schema.Finite;
|
|
@@ -1495,6 +1505,7 @@ export type EmailAddDomainRequestJson = {
|
|
|
1495
1505
|
readonly zone: string;
|
|
1496
1506
|
} | null;
|
|
1497
1507
|
readonly namespaceId?: NamespaceId | null;
|
|
1508
|
+
readonly shared?: boolean | null;
|
|
1498
1509
|
};
|
|
1499
1510
|
export declare const EmailAddDomainRequestJson: Schema.Struct<{
|
|
1500
1511
|
readonly domain: Schema.String;
|
|
@@ -1503,6 +1514,7 @@ export declare const EmailAddDomainRequestJson: Schema.Struct<{
|
|
|
1503
1514
|
readonly zone: Schema.String;
|
|
1504
1515
|
}>, Schema.Null]>>;
|
|
1505
1516
|
readonly namespaceId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>>;
|
|
1517
|
+
readonly shared: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
1506
1518
|
}>;
|
|
1507
1519
|
export type EmailAddDomain201 = EmailDomainDetailed;
|
|
1508
1520
|
export declare const EmailAddDomain201: Schema.Struct<{
|
|
@@ -1522,6 +1534,7 @@ export declare const EmailAddDomain201: Schema.Struct<{
|
|
|
1522
1534
|
}>>;
|
|
1523
1535
|
readonly verifiedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1524
1536
|
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
1537
|
+
readonly shared: Schema.Boolean;
|
|
1525
1538
|
readonly isDefault: Schema.Boolean;
|
|
1526
1539
|
readonly deliverability: Schema.Struct<{
|
|
1527
1540
|
readonly bounceRate: Schema.Finite;
|
|
@@ -1578,6 +1591,7 @@ export declare const EmailGetDomainById200: Schema.Struct<{
|
|
|
1578
1591
|
}>>;
|
|
1579
1592
|
readonly verifiedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1580
1593
|
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
1594
|
+
readonly shared: Schema.Boolean;
|
|
1581
1595
|
readonly isDefault: Schema.Boolean;
|
|
1582
1596
|
readonly deliverability: Schema.Struct<{
|
|
1583
1597
|
readonly bounceRate: Schema.Finite;
|
|
@@ -1636,6 +1650,7 @@ export declare const EmailUpdateDomainConfigPathParams: Schema.Struct<{
|
|
|
1636
1650
|
readonly id: Schema.brand<Schema.String, "EmailDomainId">;
|
|
1637
1651
|
}>;
|
|
1638
1652
|
export type EmailUpdateDomainConfigRequestJson = {
|
|
1653
|
+
readonly shared?: boolean | null;
|
|
1639
1654
|
readonly openTracking?: boolean | null;
|
|
1640
1655
|
readonly clickTracking?: boolean | null;
|
|
1641
1656
|
readonly replyTo?: ReadonlyArray<string> | null;
|
|
@@ -1644,6 +1659,7 @@ export type EmailUpdateDomainConfigRequestJson = {
|
|
|
1644
1659
|
readonly brandSlug?: string | null;
|
|
1645
1660
|
};
|
|
1646
1661
|
export declare const EmailUpdateDomainConfigRequestJson: Schema.Struct<{
|
|
1662
|
+
readonly shared: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
1647
1663
|
readonly openTracking: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
1648
1664
|
readonly clickTracking: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
1649
1665
|
readonly replyTo: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>>;
|
|
@@ -1653,6 +1669,7 @@ export declare const EmailUpdateDomainConfigRequestJson: Schema.Struct<{
|
|
|
1653
1669
|
}>;
|
|
1654
1670
|
export type EmailUpdateDomainConfig200 = {
|
|
1655
1671
|
readonly id: EmailDomainId;
|
|
1672
|
+
readonly shared: boolean;
|
|
1656
1673
|
readonly openTracking: boolean | null;
|
|
1657
1674
|
readonly clickTracking: boolean | null;
|
|
1658
1675
|
readonly replyTo: ReadonlyArray<string> | null;
|
|
@@ -1662,6 +1679,7 @@ export type EmailUpdateDomainConfig200 = {
|
|
|
1662
1679
|
};
|
|
1663
1680
|
export declare const EmailUpdateDomainConfig200: Schema.Struct<{
|
|
1664
1681
|
readonly id: Schema.brand<Schema.String, "EmailDomainId">;
|
|
1682
|
+
readonly shared: Schema.Boolean;
|
|
1665
1683
|
readonly openTracking: Schema.Union<readonly [Schema.Boolean, Schema.Null]>;
|
|
1666
1684
|
readonly clickTracking: Schema.Union<readonly [Schema.Boolean, Schema.Null]>;
|
|
1667
1685
|
readonly replyTo: Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>;
|
|
@@ -1677,10 +1695,16 @@ export type EmailUpdateDomainConfig403 = ForbiddenError;
|
|
|
1677
1695
|
export declare const EmailUpdateDomainConfig403: typeof ForbiddenError;
|
|
1678
1696
|
export type EmailUpdateDomainConfig404 = ResourceNotFoundError;
|
|
1679
1697
|
export declare const EmailUpdateDomainConfig404: typeof ResourceNotFoundError;
|
|
1698
|
+
export type EmailUpdateDomainConfig409 = ConflictError;
|
|
1699
|
+
export declare const EmailUpdateDomainConfig409: typeof ConflictError;
|
|
1680
1700
|
export type EmailUpdateDomainConfig422 = ValidationError;
|
|
1681
1701
|
export declare const EmailUpdateDomainConfig422: typeof ValidationError;
|
|
1702
|
+
export type EmailUpdateDomainConfig429 = RateLimitedError;
|
|
1703
|
+
export declare const EmailUpdateDomainConfig429: typeof RateLimitedError;
|
|
1682
1704
|
export type EmailUpdateDomainConfig500 = InternalError;
|
|
1683
1705
|
export declare const EmailUpdateDomainConfig500: typeof InternalError;
|
|
1706
|
+
export type EmailUpdateDomainConfig502 = EmailChannelError;
|
|
1707
|
+
export declare const EmailUpdateDomainConfig502: typeof EmailChannelError;
|
|
1684
1708
|
export type EmailUpdateDomainConfig504 = GatewayTimeoutError;
|
|
1685
1709
|
export declare const EmailUpdateDomainConfig504: typeof GatewayTimeoutError;
|
|
1686
1710
|
export type EmailGetCustomTrackingPathParams = {
|
|
@@ -3857,6 +3881,12 @@ export type EmailSetDefaultSenderPathParams = {
|
|
|
3857
3881
|
export declare const EmailSetDefaultSenderPathParams: Schema.Struct<{
|
|
3858
3882
|
readonly id: Schema.brand<Schema.String, "EmailSenderId">;
|
|
3859
3883
|
}>;
|
|
3884
|
+
export type EmailSetDefaultSenderRequestJson = {
|
|
3885
|
+
readonly namespaceId?: NamespaceId | null;
|
|
3886
|
+
};
|
|
3887
|
+
export declare const EmailSetDefaultSenderRequestJson: Schema.Struct<{
|
|
3888
|
+
readonly namespaceId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>>;
|
|
3889
|
+
}>;
|
|
3860
3890
|
export type EmailSetDefaultSender200 = SuccessResult;
|
|
3861
3891
|
export declare const EmailSetDefaultSender200: Schema.Struct<{
|
|
3862
3892
|
readonly success: Schema.Boolean;
|
|
@@ -3870,10 +3900,16 @@ export type EmailSetDefaultSender403 = ForbiddenError;
|
|
|
3870
3900
|
export declare const EmailSetDefaultSender403: typeof ForbiddenError;
|
|
3871
3901
|
export type EmailSetDefaultSender404 = ResourceNotFoundError;
|
|
3872
3902
|
export declare const EmailSetDefaultSender404: typeof ResourceNotFoundError;
|
|
3903
|
+
export type EmailSetDefaultSender409 = ConflictError;
|
|
3904
|
+
export declare const EmailSetDefaultSender409: typeof ConflictError;
|
|
3873
3905
|
export type EmailSetDefaultSender422 = ValidationError;
|
|
3874
3906
|
export declare const EmailSetDefaultSender422: typeof ValidationError;
|
|
3907
|
+
export type EmailSetDefaultSender429 = RateLimitedError;
|
|
3908
|
+
export declare const EmailSetDefaultSender429: typeof RateLimitedError;
|
|
3875
3909
|
export type EmailSetDefaultSender500 = InternalError;
|
|
3876
3910
|
export declare const EmailSetDefaultSender500: typeof InternalError;
|
|
3911
|
+
export type EmailSetDefaultSender502 = EmailChannelError;
|
|
3912
|
+
export declare const EmailSetDefaultSender502: typeof EmailChannelError;
|
|
3877
3913
|
export type EmailSetDefaultSender504 = GatewayTimeoutError;
|
|
3878
3914
|
export declare const EmailSetDefaultSender504: typeof GatewayTimeoutError;
|
|
3879
3915
|
export type EmailCheckSenderVerificationPathParams = {
|
|
@@ -3949,6 +3985,7 @@ export declare const EmailGetStats500: typeof InternalError;
|
|
|
3949
3985
|
export type EmailGetStats504 = GatewayTimeoutError;
|
|
3950
3986
|
export declare const EmailGetStats504: typeof GatewayTimeoutError;
|
|
3951
3987
|
export type EmailListSuppressionsQuery = {
|
|
3988
|
+
readonly namespaceId?: NamespaceId;
|
|
3952
3989
|
readonly type?: "bounce" | "complaint" | "unsubscribe" | "manual";
|
|
3953
3990
|
readonly status?: "active" | "expired";
|
|
3954
3991
|
readonly search?: string;
|
|
@@ -3956,6 +3993,7 @@ export type EmailListSuppressionsQuery = {
|
|
|
3956
3993
|
readonly cursor?: string;
|
|
3957
3994
|
};
|
|
3958
3995
|
export declare const EmailListSuppressionsQuery: Schema.Struct<{
|
|
3996
|
+
readonly namespaceId: Schema.optionalKey<Schema.brand<Schema.String, "NamespaceId">>;
|
|
3959
3997
|
readonly type: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"bounce">, Schema.Literal<"complaint">, Schema.Literal<"unsubscribe">, Schema.Literal<"manual">]>>;
|
|
3960
3998
|
readonly status: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"active">, Schema.Literal<"expired">]>>;
|
|
3961
3999
|
readonly search: Schema.optionalKey<Schema.String>;
|
|
@@ -3967,6 +4005,7 @@ export declare const EmailListSuppressions200: Schema.Struct<{
|
|
|
3967
4005
|
readonly items: Schema.$Array<Schema.Struct<{
|
|
3968
4006
|
readonly id: Schema.brand<Schema.String, "SuppressionId">;
|
|
3969
4007
|
readonly email: Schema.String;
|
|
4008
|
+
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
3970
4009
|
readonly type: Schema.Union<readonly [Schema.Literal<"bounce">, Schema.Literal<"complaint">, Schema.Literal<"unsubscribe">, Schema.Literal<"manual">]>;
|
|
3971
4010
|
readonly bounceType: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
3972
4011
|
readonly bounceSubType: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
@@ -4009,6 +4048,8 @@ export type EmailRemoveSuppression403 = ForbiddenError;
|
|
|
4009
4048
|
export declare const EmailRemoveSuppression403: typeof ForbiddenError;
|
|
4010
4049
|
export type EmailRemoveSuppression404 = ResourceNotFoundError;
|
|
4011
4050
|
export declare const EmailRemoveSuppression404: typeof ResourceNotFoundError;
|
|
4051
|
+
export type EmailRemoveSuppression409 = ConflictError;
|
|
4052
|
+
export declare const EmailRemoveSuppression409: typeof ConflictError;
|
|
4012
4053
|
export type EmailRemoveSuppression422 = ValidationError;
|
|
4013
4054
|
export declare const EmailRemoveSuppression422: typeof ValidationError;
|
|
4014
4055
|
export type EmailRemoveSuppression500 = InternalError;
|
|
@@ -4017,6 +4058,12 @@ export type EmailRemoveSuppression502 = EmailChannelError;
|
|
|
4017
4058
|
export declare const EmailRemoveSuppression502: typeof EmailChannelError;
|
|
4018
4059
|
export type EmailRemoveSuppression504 = GatewayTimeoutError;
|
|
4019
4060
|
export declare const EmailRemoveSuppression504: typeof GatewayTimeoutError;
|
|
4061
|
+
export type EmailCountSuppressionsQuery = {
|
|
4062
|
+
readonly namespaceId?: NamespaceId;
|
|
4063
|
+
};
|
|
4064
|
+
export declare const EmailCountSuppressionsQuery: Schema.Struct<{
|
|
4065
|
+
readonly namespaceId: Schema.optionalKey<Schema.brand<Schema.String, "NamespaceId">>;
|
|
4066
|
+
}>;
|
|
4020
4067
|
export type EmailCountSuppressions200 = SuppressionCounts;
|
|
4021
4068
|
export declare const EmailCountSuppressions200: Schema.Struct<{
|
|
4022
4069
|
readonly bounce: Schema.Finite;
|
|
@@ -4258,6 +4305,7 @@ declare const EmailGroup_base: HttpApiGroup.HttpApiGroup<"Email", HttpApiEndpoin
|
|
|
4258
4305
|
readonly zone: Schema.String;
|
|
4259
4306
|
}>, Schema.Null]>>;
|
|
4260
4307
|
readonly namespaceId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>>;
|
|
4308
|
+
readonly shared: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
4261
4309
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
4262
4310
|
readonly unknownRecipientMailboxId: Schema.Union<readonly [Schema.brand<Schema.String, "MailboxId">, Schema.Null]>;
|
|
4263
4311
|
readonly id: Schema.brand<Schema.String, "EmailDomainId">;
|
|
@@ -4275,6 +4323,7 @@ declare const EmailGroup_base: HttpApiGroup.HttpApiGroup<"Email", HttpApiEndpoin
|
|
|
4275
4323
|
}>>;
|
|
4276
4324
|
readonly verifiedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
4277
4325
|
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
4326
|
+
readonly shared: Schema.Boolean;
|
|
4278
4327
|
readonly isDefault: Schema.Boolean;
|
|
4279
4328
|
readonly deliverability: Schema.Struct<{
|
|
4280
4329
|
readonly bounceRate: Schema.Finite;
|
|
@@ -5968,7 +6017,9 @@ declare const EmailGroup_base: HttpApiGroup.HttpApiGroup<"Email", HttpApiEndpoin
|
|
|
5968
6017
|
readonly _tag: Schema.tag<"ValidationError">;
|
|
5969
6018
|
readonly message: Schema.String;
|
|
5970
6019
|
readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
|
|
5971
|
-
}>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"emailCountSuppressions", "GET", "/v1/email/suppressions/counts", never,
|
|
6020
|
+
}>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"emailCountSuppressions", "GET", "/v1/email/suppressions/counts", never, Schema.toCodecStringTree<Schema.Struct<{
|
|
6021
|
+
readonly namespaceId: Schema.optionalKey<Schema.brand<Schema.String, "NamespaceId">>;
|
|
6022
|
+
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
5972
6023
|
readonly bounce: Schema.Finite;
|
|
5973
6024
|
readonly complaint: Schema.Finite;
|
|
5974
6025
|
readonly unsubscribe: Schema.Finite;
|
|
@@ -7836,6 +7887,7 @@ declare const EmailGroup_base: HttpApiGroup.HttpApiGroup<"Email", HttpApiEndpoin
|
|
|
7836
7887
|
}>>;
|
|
7837
7888
|
readonly verifiedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
7838
7889
|
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
7890
|
+
readonly shared: Schema.Boolean;
|
|
7839
7891
|
readonly isDefault: Schema.Boolean;
|
|
7840
7892
|
readonly deliverability: Schema.Struct<{
|
|
7841
7893
|
readonly bounceRate: Schema.Finite;
|
|
@@ -9282,6 +9334,7 @@ declare const EmailGroup_base: HttpApiGroup.HttpApiGroup<"Email", HttpApiEndpoin
|
|
|
9282
9334
|
readonly cursor: Schema.optionalKey<Schema.String>;
|
|
9283
9335
|
readonly sendable: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<true>, Schema.Null]>>;
|
|
9284
9336
|
readonly namespaceId: Schema.optionalKey<Schema.brand<Schema.String, "NamespaceId">>;
|
|
9337
|
+
readonly shared: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
9285
9338
|
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
9286
9339
|
readonly items: Schema.$Array<Schema.Struct<{
|
|
9287
9340
|
readonly unknownRecipientMailboxId: Schema.Union<readonly [Schema.brand<Schema.String, "MailboxId">, Schema.Null]>;
|
|
@@ -9291,6 +9344,7 @@ declare const EmailGroup_base: HttpApiGroup.HttpApiGroup<"Email", HttpApiEndpoin
|
|
|
9291
9344
|
readonly dkimSelector: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
9292
9345
|
readonly dkimPublicKey: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
9293
9346
|
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
9347
|
+
readonly shared: Schema.Boolean;
|
|
9294
9348
|
readonly isDefault: Schema.Boolean;
|
|
9295
9349
|
readonly deliverability: Schema.Struct<{
|
|
9296
9350
|
readonly bounceRate: Schema.Finite;
|
|
@@ -9597,6 +9651,7 @@ declare const EmailGroup_base: HttpApiGroup.HttpApiGroup<"Email", HttpApiEndpoin
|
|
|
9597
9651
|
readonly message: Schema.String;
|
|
9598
9652
|
readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
|
|
9599
9653
|
}>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"emailListSuppressions", "GET", "/v1/email/suppressions", never, Schema.toCodecStringTree<Schema.Struct<{
|
|
9654
|
+
readonly namespaceId: Schema.optionalKey<Schema.brand<Schema.String, "NamespaceId">>;
|
|
9600
9655
|
readonly type: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"bounce">, Schema.Literal<"complaint">, Schema.Literal<"unsubscribe">, Schema.Literal<"manual">]>>;
|
|
9601
9656
|
readonly status: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"active">, Schema.Literal<"expired">]>>;
|
|
9602
9657
|
readonly search: Schema.optionalKey<Schema.String>;
|
|
@@ -9606,6 +9661,7 @@ declare const EmailGroup_base: HttpApiGroup.HttpApiGroup<"Email", HttpApiEndpoin
|
|
|
9606
9661
|
readonly items: Schema.$Array<Schema.Struct<{
|
|
9607
9662
|
readonly id: Schema.brand<Schema.String, "SuppressionId">;
|
|
9608
9663
|
readonly email: Schema.String;
|
|
9664
|
+
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
9609
9665
|
readonly type: Schema.Union<readonly [Schema.Literal<"bounce">, Schema.Literal<"complaint">, Schema.Literal<"unsubscribe">, Schema.Literal<"manual">]>;
|
|
9610
9666
|
readonly bounceType: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
9611
9667
|
readonly bounceSubType: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
@@ -10506,7 +10562,27 @@ declare const EmailGroup_base: HttpApiGroup.HttpApiGroup<"Email", HttpApiEndpoin
|
|
|
10506
10562
|
}>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
10507
10563
|
readonly success: Schema.Boolean;
|
|
10508
10564
|
readonly message: Schema.String;
|
|
10509
|
-
}>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<
|
|
10565
|
+
}>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<ConflictError, {
|
|
10566
|
+
readonly _tag: "ConflictError";
|
|
10567
|
+
readonly message: string;
|
|
10568
|
+
readonly resource: string;
|
|
10569
|
+
readonly id?: string | null;
|
|
10570
|
+
}, readonly [Schema.Struct<{
|
|
10571
|
+
readonly _tag: Schema.tag<"ConflictError">;
|
|
10572
|
+
readonly message: Schema.String;
|
|
10573
|
+
readonly resource: Schema.String;
|
|
10574
|
+
readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
10575
|
+
}>], {
|
|
10576
|
+
readonly _tag: "ConflictError";
|
|
10577
|
+
readonly message: string;
|
|
10578
|
+
readonly resource: string;
|
|
10579
|
+
readonly id?: string | null;
|
|
10580
|
+
}>, Schema.Struct<{
|
|
10581
|
+
readonly _tag: Schema.tag<"ConflictError">;
|
|
10582
|
+
readonly message: Schema.String;
|
|
10583
|
+
readonly resource: Schema.String;
|
|
10584
|
+
readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
10585
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<EmailChannelError, {
|
|
10510
10586
|
readonly _tag: "EmailChannelError";
|
|
10511
10587
|
readonly reason: "auth" | "rate_limited" | "rejected" | "transport";
|
|
10512
10588
|
readonly message: string;
|
|
@@ -11210,10 +11286,52 @@ declare const EmailGroup_base: HttpApiGroup.HttpApiGroup<"Email", HttpApiEndpoin
|
|
|
11210
11286
|
readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
|
|
11211
11287
|
}>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"emailSetDefaultSender", "POST", "/v1/email/senders/:id/default", Schema.toCodecStringTree<Schema.Struct<{
|
|
11212
11288
|
readonly id: Schema.brand<Schema.String, "EmailSenderId">;
|
|
11213
|
-
}>>, never,
|
|
11289
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
11290
|
+
readonly namespaceId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>>;
|
|
11291
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
11214
11292
|
readonly success: Schema.Boolean;
|
|
11215
11293
|
readonly message: Schema.String;
|
|
11216
|
-
}>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<
|
|
11294
|
+
}>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<ConflictError, {
|
|
11295
|
+
readonly _tag: "ConflictError";
|
|
11296
|
+
readonly message: string;
|
|
11297
|
+
readonly resource: string;
|
|
11298
|
+
readonly id?: string | null;
|
|
11299
|
+
}, readonly [Schema.Struct<{
|
|
11300
|
+
readonly _tag: Schema.tag<"ConflictError">;
|
|
11301
|
+
readonly message: Schema.String;
|
|
11302
|
+
readonly resource: Schema.String;
|
|
11303
|
+
readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
11304
|
+
}>], {
|
|
11305
|
+
readonly _tag: "ConflictError";
|
|
11306
|
+
readonly message: string;
|
|
11307
|
+
readonly resource: string;
|
|
11308
|
+
readonly id?: string | null;
|
|
11309
|
+
}>, Schema.Struct<{
|
|
11310
|
+
readonly _tag: Schema.tag<"ConflictError">;
|
|
11311
|
+
readonly message: Schema.String;
|
|
11312
|
+
readonly resource: Schema.String;
|
|
11313
|
+
readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
11314
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<EmailChannelError, {
|
|
11315
|
+
readonly _tag: "EmailChannelError";
|
|
11316
|
+
readonly reason: "auth" | "rate_limited" | "rejected" | "transport";
|
|
11317
|
+
readonly message: string;
|
|
11318
|
+
readonly statusCode?: number | null;
|
|
11319
|
+
}, readonly [Schema.Struct<{
|
|
11320
|
+
readonly _tag: Schema.tag<"EmailChannelError">;
|
|
11321
|
+
readonly reason: Schema.Union<readonly [Schema.Literal<"transport">, Schema.Literal<"rejected">, Schema.Literal<"rate_limited">, Schema.Literal<"auth">]>;
|
|
11322
|
+
readonly message: Schema.String;
|
|
11323
|
+
readonly statusCode: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Null]>>;
|
|
11324
|
+
}>], {
|
|
11325
|
+
readonly _tag: "EmailChannelError";
|
|
11326
|
+
readonly reason: "auth" | "rate_limited" | "rejected" | "transport";
|
|
11327
|
+
readonly message: string;
|
|
11328
|
+
readonly statusCode?: number | null;
|
|
11329
|
+
}>, Schema.Struct<{
|
|
11330
|
+
readonly _tag: Schema.tag<"EmailChannelError">;
|
|
11331
|
+
readonly reason: Schema.Union<readonly [Schema.Literal<"transport">, Schema.Literal<"rejected">, Schema.Literal<"rate_limited">, Schema.Literal<"auth">]>;
|
|
11332
|
+
readonly message: Schema.String;
|
|
11333
|
+
readonly statusCode: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Null]>>;
|
|
11334
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
|
|
11217
11335
|
readonly _tag: "ForbiddenError";
|
|
11218
11336
|
readonly message: string;
|
|
11219
11337
|
}, readonly [Schema.Struct<{
|
|
@@ -11261,6 +11379,22 @@ declare const EmailGroup_base: HttpApiGroup.HttpApiGroup<"Email", HttpApiEndpoin
|
|
|
11261
11379
|
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
11262
11380
|
readonly message: Schema.String;
|
|
11263
11381
|
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
11382
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<RateLimitedError, {
|
|
11383
|
+
readonly _tag: "RateLimitedError";
|
|
11384
|
+
readonly message: string;
|
|
11385
|
+
readonly retryAfterSeconds: number;
|
|
11386
|
+
}, readonly [Schema.Struct<{
|
|
11387
|
+
readonly _tag: Schema.tag<"RateLimitedError">;
|
|
11388
|
+
readonly message: Schema.String;
|
|
11389
|
+
readonly retryAfterSeconds: Schema.Finite;
|
|
11390
|
+
}>], {
|
|
11391
|
+
readonly _tag: "RateLimitedError";
|
|
11392
|
+
readonly message: string;
|
|
11393
|
+
readonly retryAfterSeconds: number;
|
|
11394
|
+
}>, Schema.Struct<{
|
|
11395
|
+
readonly _tag: Schema.tag<"RateLimitedError">;
|
|
11396
|
+
readonly message: Schema.String;
|
|
11397
|
+
readonly retryAfterSeconds: Schema.Finite;
|
|
11264
11398
|
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ResourceNotFoundError, {
|
|
11265
11399
|
readonly _tag: "ResourceNotFoundError";
|
|
11266
11400
|
readonly resource: string;
|
|
@@ -11538,6 +11672,7 @@ declare const EmailGroup_base: HttpApiGroup.HttpApiGroup<"Email", HttpApiEndpoin
|
|
|
11538
11672
|
}>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"emailUpdateDomainConfig", "PATCH", "/v1/email/domains/:id/config", Schema.toCodecStringTree<Schema.Struct<{
|
|
11539
11673
|
readonly id: Schema.brand<Schema.String, "EmailDomainId">;
|
|
11540
11674
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
11675
|
+
readonly shared: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
11541
11676
|
readonly openTracking: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
11542
11677
|
readonly clickTracking: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
11543
11678
|
readonly replyTo: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>>;
|
|
@@ -11546,13 +11681,54 @@ declare const EmailGroup_base: HttpApiGroup.HttpApiGroup<"Email", HttpApiEndpoin
|
|
|
11546
11681
|
readonly brandSlug: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
11547
11682
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
11548
11683
|
readonly id: Schema.brand<Schema.String, "EmailDomainId">;
|
|
11684
|
+
readonly shared: Schema.Boolean;
|
|
11549
11685
|
readonly openTracking: Schema.Union<readonly [Schema.Boolean, Schema.Null]>;
|
|
11550
11686
|
readonly clickTracking: Schema.Union<readonly [Schema.Boolean, Schema.Null]>;
|
|
11551
11687
|
readonly replyTo: Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>;
|
|
11552
11688
|
readonly topicId: Schema.Union<readonly [Schema.brand<Schema.String, "TopicId">, Schema.Null]>;
|
|
11553
11689
|
readonly footerEnabled: Schema.Union<readonly [Schema.Boolean, Schema.Null]>;
|
|
11554
11690
|
readonly brandSlug: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
11555
|
-
}>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<
|
|
11691
|
+
}>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<ConflictError, {
|
|
11692
|
+
readonly _tag: "ConflictError";
|
|
11693
|
+
readonly message: string;
|
|
11694
|
+
readonly resource: string;
|
|
11695
|
+
readonly id?: string | null;
|
|
11696
|
+
}, readonly [Schema.Struct<{
|
|
11697
|
+
readonly _tag: Schema.tag<"ConflictError">;
|
|
11698
|
+
readonly message: Schema.String;
|
|
11699
|
+
readonly resource: Schema.String;
|
|
11700
|
+
readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
11701
|
+
}>], {
|
|
11702
|
+
readonly _tag: "ConflictError";
|
|
11703
|
+
readonly message: string;
|
|
11704
|
+
readonly resource: string;
|
|
11705
|
+
readonly id?: string | null;
|
|
11706
|
+
}>, Schema.Struct<{
|
|
11707
|
+
readonly _tag: Schema.tag<"ConflictError">;
|
|
11708
|
+
readonly message: Schema.String;
|
|
11709
|
+
readonly resource: Schema.String;
|
|
11710
|
+
readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
11711
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<EmailChannelError, {
|
|
11712
|
+
readonly _tag: "EmailChannelError";
|
|
11713
|
+
readonly reason: "auth" | "rate_limited" | "rejected" | "transport";
|
|
11714
|
+
readonly message: string;
|
|
11715
|
+
readonly statusCode?: number | null;
|
|
11716
|
+
}, readonly [Schema.Struct<{
|
|
11717
|
+
readonly _tag: Schema.tag<"EmailChannelError">;
|
|
11718
|
+
readonly reason: Schema.Union<readonly [Schema.Literal<"transport">, Schema.Literal<"rejected">, Schema.Literal<"rate_limited">, Schema.Literal<"auth">]>;
|
|
11719
|
+
readonly message: Schema.String;
|
|
11720
|
+
readonly statusCode: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Null]>>;
|
|
11721
|
+
}>], {
|
|
11722
|
+
readonly _tag: "EmailChannelError";
|
|
11723
|
+
readonly reason: "auth" | "rate_limited" | "rejected" | "transport";
|
|
11724
|
+
readonly message: string;
|
|
11725
|
+
readonly statusCode?: number | null;
|
|
11726
|
+
}>, Schema.Struct<{
|
|
11727
|
+
readonly _tag: Schema.tag<"EmailChannelError">;
|
|
11728
|
+
readonly reason: Schema.Union<readonly [Schema.Literal<"transport">, Schema.Literal<"rejected">, Schema.Literal<"rate_limited">, Schema.Literal<"auth">]>;
|
|
11729
|
+
readonly message: Schema.String;
|
|
11730
|
+
readonly statusCode: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Null]>>;
|
|
11731
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
|
|
11556
11732
|
readonly _tag: "ForbiddenError";
|
|
11557
11733
|
readonly message: string;
|
|
11558
11734
|
}, readonly [Schema.Struct<{
|
|
@@ -11600,6 +11776,22 @@ declare const EmailGroup_base: HttpApiGroup.HttpApiGroup<"Email", HttpApiEndpoin
|
|
|
11600
11776
|
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
11601
11777
|
readonly message: Schema.String;
|
|
11602
11778
|
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
11779
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<RateLimitedError, {
|
|
11780
|
+
readonly _tag: "RateLimitedError";
|
|
11781
|
+
readonly message: string;
|
|
11782
|
+
readonly retryAfterSeconds: number;
|
|
11783
|
+
}, readonly [Schema.Struct<{
|
|
11784
|
+
readonly _tag: Schema.tag<"RateLimitedError">;
|
|
11785
|
+
readonly message: Schema.String;
|
|
11786
|
+
readonly retryAfterSeconds: Schema.Finite;
|
|
11787
|
+
}>], {
|
|
11788
|
+
readonly _tag: "RateLimitedError";
|
|
11789
|
+
readonly message: string;
|
|
11790
|
+
readonly retryAfterSeconds: number;
|
|
11791
|
+
}>, Schema.Struct<{
|
|
11792
|
+
readonly _tag: Schema.tag<"RateLimitedError">;
|
|
11793
|
+
readonly message: Schema.String;
|
|
11794
|
+
readonly retryAfterSeconds: Schema.Finite;
|
|
11603
11795
|
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ResourceNotFoundError, {
|
|
11604
11796
|
readonly _tag: "ResourceNotFoundError";
|
|
11605
11797
|
readonly resource: string;
|