samva 0.41.0 → 0.43.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 +56 -9
- package/dist/client/sdk.gen.js +185 -9
- package/dist/client/types.gen.d.ts +316 -5
- package/dist/effect/email.d.ts +8 -0
- package/dist/effect/generated/api-keys.js +5 -5
- package/dist/effect/generated/email.d.ts +198 -4
- package/dist/effect/generated/email.js +32 -8
- package/dist/effect/generated/mailboxes.d.ts +46 -0
- package/dist/effect/generated/mailboxes.js +4 -2
- package/dist/effect/generated/namespaces.d.ts +536 -1
- package/dist/effect/generated/namespaces.js +112 -3
- package/dist/effect/generated/organizations.d.ts +251 -2
- package/dist/effect/generated/organizations.js +58 -3
- package/dist/effect/generated/shared.d.ts +16 -0
- package/dist/effect/generated/shared.js +9 -1
- package/dist/effect/generated-metadata.d.ts +24 -0
- package/dist/effect/generated-metadata.js +4 -0
- package/dist/effect/mailboxes.d.ts +6 -0
- package/dist/effect/namespaces.d.ts +55 -0
- package/dist/effect/namespaces.js +7 -1
- package/dist/effect/organizations.d.ts +9 -1
- package/dist/effect/organizations.js +3 -1
- package/dist/package.js +1 -1
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/service-map.d.ts +21 -2
- package/dist/service-map.js +9 -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;
|
|
@@ -1449,12 +1453,14 @@ export type EmailListDomainsQuery = {
|
|
|
1449
1453
|
readonly cursor?: string;
|
|
1450
1454
|
readonly sendable?: true | null;
|
|
1451
1455
|
readonly namespaceId?: NamespaceId;
|
|
1456
|
+
readonly shared?: boolean | null;
|
|
1452
1457
|
};
|
|
1453
1458
|
export declare const EmailListDomainsQuery: Schema.Struct<{
|
|
1454
1459
|
readonly limit: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Null]>>;
|
|
1455
1460
|
readonly cursor: Schema.optionalKey<Schema.String>;
|
|
1456
1461
|
readonly sendable: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<true>, Schema.Null]>>;
|
|
1457
1462
|
readonly namespaceId: Schema.optionalKey<Schema.brand<Schema.String, "NamespaceId">>;
|
|
1463
|
+
readonly shared: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
1458
1464
|
}>;
|
|
1459
1465
|
export type EmailListDomains200 = EmailDomainPage;
|
|
1460
1466
|
export declare const EmailListDomains200: Schema.Struct<{
|
|
@@ -1466,6 +1472,7 @@ export declare const EmailListDomains200: Schema.Struct<{
|
|
|
1466
1472
|
readonly dkimSelector: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1467
1473
|
readonly dkimPublicKey: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1468
1474
|
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
1475
|
+
readonly shared: Schema.Boolean;
|
|
1469
1476
|
readonly isDefault: Schema.Boolean;
|
|
1470
1477
|
readonly deliverability: Schema.Struct<{
|
|
1471
1478
|
readonly bounceRate: Schema.Finite;
|
|
@@ -1498,6 +1505,7 @@ export type EmailAddDomainRequestJson = {
|
|
|
1498
1505
|
readonly zone: string;
|
|
1499
1506
|
} | null;
|
|
1500
1507
|
readonly namespaceId?: NamespaceId | null;
|
|
1508
|
+
readonly shared?: boolean | null;
|
|
1501
1509
|
};
|
|
1502
1510
|
export declare const EmailAddDomainRequestJson: Schema.Struct<{
|
|
1503
1511
|
readonly domain: Schema.String;
|
|
@@ -1506,6 +1514,7 @@ export declare const EmailAddDomainRequestJson: Schema.Struct<{
|
|
|
1506
1514
|
readonly zone: Schema.String;
|
|
1507
1515
|
}>, Schema.Null]>>;
|
|
1508
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]>>;
|
|
1509
1518
|
}>;
|
|
1510
1519
|
export type EmailAddDomain201 = EmailDomainDetailed;
|
|
1511
1520
|
export declare const EmailAddDomain201: Schema.Struct<{
|
|
@@ -1525,6 +1534,7 @@ export declare const EmailAddDomain201: Schema.Struct<{
|
|
|
1525
1534
|
}>>;
|
|
1526
1535
|
readonly verifiedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1527
1536
|
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
1537
|
+
readonly shared: Schema.Boolean;
|
|
1528
1538
|
readonly isDefault: Schema.Boolean;
|
|
1529
1539
|
readonly deliverability: Schema.Struct<{
|
|
1530
1540
|
readonly bounceRate: Schema.Finite;
|
|
@@ -1581,6 +1591,7 @@ export declare const EmailGetDomainById200: Schema.Struct<{
|
|
|
1581
1591
|
}>>;
|
|
1582
1592
|
readonly verifiedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1583
1593
|
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
1594
|
+
readonly shared: Schema.Boolean;
|
|
1584
1595
|
readonly isDefault: Schema.Boolean;
|
|
1585
1596
|
readonly deliverability: Schema.Struct<{
|
|
1586
1597
|
readonly bounceRate: Schema.Finite;
|
|
@@ -1624,8 +1635,12 @@ export type EmailRemoveDomain403 = ForbiddenError;
|
|
|
1624
1635
|
export declare const EmailRemoveDomain403: typeof ForbiddenError;
|
|
1625
1636
|
export type EmailRemoveDomain404 = ResourceNotFoundError;
|
|
1626
1637
|
export declare const EmailRemoveDomain404: typeof ResourceNotFoundError;
|
|
1638
|
+
export type EmailRemoveDomain409 = ConflictError;
|
|
1639
|
+
export declare const EmailRemoveDomain409: typeof ConflictError;
|
|
1627
1640
|
export type EmailRemoveDomain422 = ValidationError;
|
|
1628
1641
|
export declare const EmailRemoveDomain422: typeof ValidationError;
|
|
1642
|
+
export type EmailRemoveDomain429 = RateLimitedError;
|
|
1643
|
+
export declare const EmailRemoveDomain429: typeof RateLimitedError;
|
|
1629
1644
|
export type EmailRemoveDomain500 = InternalError;
|
|
1630
1645
|
export declare const EmailRemoveDomain500: typeof InternalError;
|
|
1631
1646
|
export type EmailRemoveDomain502 = EmailChannelError | BillingProviderError;
|
|
@@ -1639,6 +1654,7 @@ export declare const EmailUpdateDomainConfigPathParams: Schema.Struct<{
|
|
|
1639
1654
|
readonly id: Schema.brand<Schema.String, "EmailDomainId">;
|
|
1640
1655
|
}>;
|
|
1641
1656
|
export type EmailUpdateDomainConfigRequestJson = {
|
|
1657
|
+
readonly shared?: boolean | null;
|
|
1642
1658
|
readonly openTracking?: boolean | null;
|
|
1643
1659
|
readonly clickTracking?: boolean | null;
|
|
1644
1660
|
readonly replyTo?: ReadonlyArray<string> | null;
|
|
@@ -1647,6 +1663,7 @@ export type EmailUpdateDomainConfigRequestJson = {
|
|
|
1647
1663
|
readonly brandSlug?: string | null;
|
|
1648
1664
|
};
|
|
1649
1665
|
export declare const EmailUpdateDomainConfigRequestJson: Schema.Struct<{
|
|
1666
|
+
readonly shared: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
1650
1667
|
readonly openTracking: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
1651
1668
|
readonly clickTracking: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
1652
1669
|
readonly replyTo: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>>;
|
|
@@ -1656,6 +1673,7 @@ export declare const EmailUpdateDomainConfigRequestJson: Schema.Struct<{
|
|
|
1656
1673
|
}>;
|
|
1657
1674
|
export type EmailUpdateDomainConfig200 = {
|
|
1658
1675
|
readonly id: EmailDomainId;
|
|
1676
|
+
readonly shared: boolean;
|
|
1659
1677
|
readonly openTracking: boolean | null;
|
|
1660
1678
|
readonly clickTracking: boolean | null;
|
|
1661
1679
|
readonly replyTo: ReadonlyArray<string> | null;
|
|
@@ -1665,6 +1683,7 @@ export type EmailUpdateDomainConfig200 = {
|
|
|
1665
1683
|
};
|
|
1666
1684
|
export declare const EmailUpdateDomainConfig200: Schema.Struct<{
|
|
1667
1685
|
readonly id: Schema.brand<Schema.String, "EmailDomainId">;
|
|
1686
|
+
readonly shared: Schema.Boolean;
|
|
1668
1687
|
readonly openTracking: Schema.Union<readonly [Schema.Boolean, Schema.Null]>;
|
|
1669
1688
|
readonly clickTracking: Schema.Union<readonly [Schema.Boolean, Schema.Null]>;
|
|
1670
1689
|
readonly replyTo: Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>;
|
|
@@ -1680,10 +1699,16 @@ export type EmailUpdateDomainConfig403 = ForbiddenError;
|
|
|
1680
1699
|
export declare const EmailUpdateDomainConfig403: typeof ForbiddenError;
|
|
1681
1700
|
export type EmailUpdateDomainConfig404 = ResourceNotFoundError;
|
|
1682
1701
|
export declare const EmailUpdateDomainConfig404: typeof ResourceNotFoundError;
|
|
1702
|
+
export type EmailUpdateDomainConfig409 = ConflictError;
|
|
1703
|
+
export declare const EmailUpdateDomainConfig409: typeof ConflictError;
|
|
1683
1704
|
export type EmailUpdateDomainConfig422 = ValidationError;
|
|
1684
1705
|
export declare const EmailUpdateDomainConfig422: typeof ValidationError;
|
|
1706
|
+
export type EmailUpdateDomainConfig429 = RateLimitedError;
|
|
1707
|
+
export declare const EmailUpdateDomainConfig429: typeof RateLimitedError;
|
|
1685
1708
|
export type EmailUpdateDomainConfig500 = InternalError;
|
|
1686
1709
|
export declare const EmailUpdateDomainConfig500: typeof InternalError;
|
|
1710
|
+
export type EmailUpdateDomainConfig502 = EmailChannelError;
|
|
1711
|
+
export declare const EmailUpdateDomainConfig502: typeof EmailChannelError;
|
|
1687
1712
|
export type EmailUpdateDomainConfig504 = GatewayTimeoutError;
|
|
1688
1713
|
export declare const EmailUpdateDomainConfig504: typeof GatewayTimeoutError;
|
|
1689
1714
|
export type EmailGetCustomTrackingPathParams = {
|
|
@@ -3860,6 +3885,12 @@ export type EmailSetDefaultSenderPathParams = {
|
|
|
3860
3885
|
export declare const EmailSetDefaultSenderPathParams: Schema.Struct<{
|
|
3861
3886
|
readonly id: Schema.brand<Schema.String, "EmailSenderId">;
|
|
3862
3887
|
}>;
|
|
3888
|
+
export type EmailSetDefaultSenderRequestJson = {
|
|
3889
|
+
readonly namespaceId?: NamespaceId | null;
|
|
3890
|
+
};
|
|
3891
|
+
export declare const EmailSetDefaultSenderRequestJson: Schema.Struct<{
|
|
3892
|
+
readonly namespaceId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>>;
|
|
3893
|
+
}>;
|
|
3863
3894
|
export type EmailSetDefaultSender200 = SuccessResult;
|
|
3864
3895
|
export declare const EmailSetDefaultSender200: Schema.Struct<{
|
|
3865
3896
|
readonly success: Schema.Boolean;
|
|
@@ -3873,10 +3904,16 @@ export type EmailSetDefaultSender403 = ForbiddenError;
|
|
|
3873
3904
|
export declare const EmailSetDefaultSender403: typeof ForbiddenError;
|
|
3874
3905
|
export type EmailSetDefaultSender404 = ResourceNotFoundError;
|
|
3875
3906
|
export declare const EmailSetDefaultSender404: typeof ResourceNotFoundError;
|
|
3907
|
+
export type EmailSetDefaultSender409 = ConflictError;
|
|
3908
|
+
export declare const EmailSetDefaultSender409: typeof ConflictError;
|
|
3876
3909
|
export type EmailSetDefaultSender422 = ValidationError;
|
|
3877
3910
|
export declare const EmailSetDefaultSender422: typeof ValidationError;
|
|
3911
|
+
export type EmailSetDefaultSender429 = RateLimitedError;
|
|
3912
|
+
export declare const EmailSetDefaultSender429: typeof RateLimitedError;
|
|
3878
3913
|
export type EmailSetDefaultSender500 = InternalError;
|
|
3879
3914
|
export declare const EmailSetDefaultSender500: typeof InternalError;
|
|
3915
|
+
export type EmailSetDefaultSender502 = EmailChannelError;
|
|
3916
|
+
export declare const EmailSetDefaultSender502: typeof EmailChannelError;
|
|
3880
3917
|
export type EmailSetDefaultSender504 = GatewayTimeoutError;
|
|
3881
3918
|
export declare const EmailSetDefaultSender504: typeof GatewayTimeoutError;
|
|
3882
3919
|
export type EmailCheckSenderVerificationPathParams = {
|
|
@@ -4272,6 +4309,7 @@ declare const EmailGroup_base: HttpApiGroup.HttpApiGroup<"Email", HttpApiEndpoin
|
|
|
4272
4309
|
readonly zone: Schema.String;
|
|
4273
4310
|
}>, Schema.Null]>>;
|
|
4274
4311
|
readonly namespaceId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>>;
|
|
4312
|
+
readonly shared: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
4275
4313
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
4276
4314
|
readonly unknownRecipientMailboxId: Schema.Union<readonly [Schema.brand<Schema.String, "MailboxId">, Schema.Null]>;
|
|
4277
4315
|
readonly id: Schema.brand<Schema.String, "EmailDomainId">;
|
|
@@ -4289,6 +4327,7 @@ declare const EmailGroup_base: HttpApiGroup.HttpApiGroup<"Email", HttpApiEndpoin
|
|
|
4289
4327
|
}>>;
|
|
4290
4328
|
readonly verifiedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
4291
4329
|
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
4330
|
+
readonly shared: Schema.Boolean;
|
|
4292
4331
|
readonly isDefault: Schema.Boolean;
|
|
4293
4332
|
readonly deliverability: Schema.Struct<{
|
|
4294
4333
|
readonly bounceRate: Schema.Finite;
|
|
@@ -7852,6 +7891,7 @@ declare const EmailGroup_base: HttpApiGroup.HttpApiGroup<"Email", HttpApiEndpoin
|
|
|
7852
7891
|
}>>;
|
|
7853
7892
|
readonly verifiedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
7854
7893
|
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
7894
|
+
readonly shared: Schema.Boolean;
|
|
7855
7895
|
readonly isDefault: Schema.Boolean;
|
|
7856
7896
|
readonly deliverability: Schema.Struct<{
|
|
7857
7897
|
readonly bounceRate: Schema.Finite;
|
|
@@ -9298,6 +9338,7 @@ declare const EmailGroup_base: HttpApiGroup.HttpApiGroup<"Email", HttpApiEndpoin
|
|
|
9298
9338
|
readonly cursor: Schema.optionalKey<Schema.String>;
|
|
9299
9339
|
readonly sendable: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<true>, Schema.Null]>>;
|
|
9300
9340
|
readonly namespaceId: Schema.optionalKey<Schema.brand<Schema.String, "NamespaceId">>;
|
|
9341
|
+
readonly shared: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
9301
9342
|
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
9302
9343
|
readonly items: Schema.$Array<Schema.Struct<{
|
|
9303
9344
|
readonly unknownRecipientMailboxId: Schema.Union<readonly [Schema.brand<Schema.String, "MailboxId">, Schema.Null]>;
|
|
@@ -9307,6 +9348,7 @@ declare const EmailGroup_base: HttpApiGroup.HttpApiGroup<"Email", HttpApiEndpoin
|
|
|
9307
9348
|
readonly dkimSelector: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
9308
9349
|
readonly dkimPublicKey: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
9309
9350
|
readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
|
|
9351
|
+
readonly shared: Schema.Boolean;
|
|
9310
9352
|
readonly isDefault: Schema.Boolean;
|
|
9311
9353
|
readonly deliverability: Schema.Struct<{
|
|
9312
9354
|
readonly bounceRate: Schema.Finite;
|
|
@@ -10314,7 +10356,27 @@ declare const EmailGroup_base: HttpApiGroup.HttpApiGroup<"Email", HttpApiEndpoin
|
|
|
10314
10356
|
}>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
10315
10357
|
readonly success: Schema.Boolean;
|
|
10316
10358
|
readonly message: Schema.String;
|
|
10317
|
-
}>>, Schema.toCodecJson<Schema.Union<readonly [typeof EmailChannelError, typeof BillingProviderError]> | Schema.decodeTo<Schema.declareConstructor<
|
|
10359
|
+
}>>, Schema.toCodecJson<Schema.Union<readonly [typeof EmailChannelError, typeof BillingProviderError]> | Schema.decodeTo<Schema.declareConstructor<ConflictError, {
|
|
10360
|
+
readonly _tag: "ConflictError";
|
|
10361
|
+
readonly message: string;
|
|
10362
|
+
readonly resource: string;
|
|
10363
|
+
readonly id?: string | null;
|
|
10364
|
+
}, readonly [Schema.Struct<{
|
|
10365
|
+
readonly _tag: Schema.tag<"ConflictError">;
|
|
10366
|
+
readonly message: Schema.String;
|
|
10367
|
+
readonly resource: Schema.String;
|
|
10368
|
+
readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
10369
|
+
}>], {
|
|
10370
|
+
readonly _tag: "ConflictError";
|
|
10371
|
+
readonly message: string;
|
|
10372
|
+
readonly resource: string;
|
|
10373
|
+
readonly id?: string | null;
|
|
10374
|
+
}>, Schema.Struct<{
|
|
10375
|
+
readonly _tag: Schema.tag<"ConflictError">;
|
|
10376
|
+
readonly message: Schema.String;
|
|
10377
|
+
readonly resource: Schema.String;
|
|
10378
|
+
readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
10379
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
|
|
10318
10380
|
readonly _tag: "ForbiddenError";
|
|
10319
10381
|
readonly message: string;
|
|
10320
10382
|
}, readonly [Schema.Struct<{
|
|
@@ -10362,6 +10424,22 @@ declare const EmailGroup_base: HttpApiGroup.HttpApiGroup<"Email", HttpApiEndpoin
|
|
|
10362
10424
|
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
10363
10425
|
readonly message: Schema.String;
|
|
10364
10426
|
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
10427
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<RateLimitedError, {
|
|
10428
|
+
readonly _tag: "RateLimitedError";
|
|
10429
|
+
readonly message: string;
|
|
10430
|
+
readonly retryAfterSeconds: number;
|
|
10431
|
+
}, readonly [Schema.Struct<{
|
|
10432
|
+
readonly _tag: Schema.tag<"RateLimitedError">;
|
|
10433
|
+
readonly message: Schema.String;
|
|
10434
|
+
readonly retryAfterSeconds: Schema.Finite;
|
|
10435
|
+
}>], {
|
|
10436
|
+
readonly _tag: "RateLimitedError";
|
|
10437
|
+
readonly message: string;
|
|
10438
|
+
readonly retryAfterSeconds: number;
|
|
10439
|
+
}>, Schema.Struct<{
|
|
10440
|
+
readonly _tag: Schema.tag<"RateLimitedError">;
|
|
10441
|
+
readonly message: Schema.String;
|
|
10442
|
+
readonly retryAfterSeconds: Schema.Finite;
|
|
10365
10443
|
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ResourceNotFoundError, {
|
|
10366
10444
|
readonly _tag: "ResourceNotFoundError";
|
|
10367
10445
|
readonly resource: string;
|
|
@@ -11248,10 +11326,52 @@ declare const EmailGroup_base: HttpApiGroup.HttpApiGroup<"Email", HttpApiEndpoin
|
|
|
11248
11326
|
readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
|
|
11249
11327
|
}>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"emailSetDefaultSender", "POST", "/v1/email/senders/:id/default", Schema.toCodecStringTree<Schema.Struct<{
|
|
11250
11328
|
readonly id: Schema.brand<Schema.String, "EmailSenderId">;
|
|
11251
|
-
}>>, never,
|
|
11329
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
11330
|
+
readonly namespaceId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>>;
|
|
11331
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
11252
11332
|
readonly success: Schema.Boolean;
|
|
11253
11333
|
readonly message: Schema.String;
|
|
11254
|
-
}>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<
|
|
11334
|
+
}>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<ConflictError, {
|
|
11335
|
+
readonly _tag: "ConflictError";
|
|
11336
|
+
readonly message: string;
|
|
11337
|
+
readonly resource: string;
|
|
11338
|
+
readonly id?: string | null;
|
|
11339
|
+
}, readonly [Schema.Struct<{
|
|
11340
|
+
readonly _tag: Schema.tag<"ConflictError">;
|
|
11341
|
+
readonly message: Schema.String;
|
|
11342
|
+
readonly resource: Schema.String;
|
|
11343
|
+
readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
11344
|
+
}>], {
|
|
11345
|
+
readonly _tag: "ConflictError";
|
|
11346
|
+
readonly message: string;
|
|
11347
|
+
readonly resource: string;
|
|
11348
|
+
readonly id?: string | null;
|
|
11349
|
+
}>, Schema.Struct<{
|
|
11350
|
+
readonly _tag: Schema.tag<"ConflictError">;
|
|
11351
|
+
readonly message: Schema.String;
|
|
11352
|
+
readonly resource: Schema.String;
|
|
11353
|
+
readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
11354
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<EmailChannelError, {
|
|
11355
|
+
readonly _tag: "EmailChannelError";
|
|
11356
|
+
readonly reason: "auth" | "rate_limited" | "rejected" | "transport";
|
|
11357
|
+
readonly message: string;
|
|
11358
|
+
readonly statusCode?: number | null;
|
|
11359
|
+
}, readonly [Schema.Struct<{
|
|
11360
|
+
readonly _tag: Schema.tag<"EmailChannelError">;
|
|
11361
|
+
readonly reason: Schema.Union<readonly [Schema.Literal<"transport">, Schema.Literal<"rejected">, Schema.Literal<"rate_limited">, Schema.Literal<"auth">]>;
|
|
11362
|
+
readonly message: Schema.String;
|
|
11363
|
+
readonly statusCode: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Null]>>;
|
|
11364
|
+
}>], {
|
|
11365
|
+
readonly _tag: "EmailChannelError";
|
|
11366
|
+
readonly reason: "auth" | "rate_limited" | "rejected" | "transport";
|
|
11367
|
+
readonly message: string;
|
|
11368
|
+
readonly statusCode?: number | null;
|
|
11369
|
+
}>, Schema.Struct<{
|
|
11370
|
+
readonly _tag: Schema.tag<"EmailChannelError">;
|
|
11371
|
+
readonly reason: Schema.Union<readonly [Schema.Literal<"transport">, Schema.Literal<"rejected">, Schema.Literal<"rate_limited">, Schema.Literal<"auth">]>;
|
|
11372
|
+
readonly message: Schema.String;
|
|
11373
|
+
readonly statusCode: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Null]>>;
|
|
11374
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
|
|
11255
11375
|
readonly _tag: "ForbiddenError";
|
|
11256
11376
|
readonly message: string;
|
|
11257
11377
|
}, readonly [Schema.Struct<{
|
|
@@ -11299,6 +11419,22 @@ declare const EmailGroup_base: HttpApiGroup.HttpApiGroup<"Email", HttpApiEndpoin
|
|
|
11299
11419
|
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
11300
11420
|
readonly message: Schema.String;
|
|
11301
11421
|
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
11422
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<RateLimitedError, {
|
|
11423
|
+
readonly _tag: "RateLimitedError";
|
|
11424
|
+
readonly message: string;
|
|
11425
|
+
readonly retryAfterSeconds: number;
|
|
11426
|
+
}, readonly [Schema.Struct<{
|
|
11427
|
+
readonly _tag: Schema.tag<"RateLimitedError">;
|
|
11428
|
+
readonly message: Schema.String;
|
|
11429
|
+
readonly retryAfterSeconds: Schema.Finite;
|
|
11430
|
+
}>], {
|
|
11431
|
+
readonly _tag: "RateLimitedError";
|
|
11432
|
+
readonly message: string;
|
|
11433
|
+
readonly retryAfterSeconds: number;
|
|
11434
|
+
}>, Schema.Struct<{
|
|
11435
|
+
readonly _tag: Schema.tag<"RateLimitedError">;
|
|
11436
|
+
readonly message: Schema.String;
|
|
11437
|
+
readonly retryAfterSeconds: Schema.Finite;
|
|
11302
11438
|
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ResourceNotFoundError, {
|
|
11303
11439
|
readonly _tag: "ResourceNotFoundError";
|
|
11304
11440
|
readonly resource: string;
|
|
@@ -11576,6 +11712,7 @@ declare const EmailGroup_base: HttpApiGroup.HttpApiGroup<"Email", HttpApiEndpoin
|
|
|
11576
11712
|
}>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"emailUpdateDomainConfig", "PATCH", "/v1/email/domains/:id/config", Schema.toCodecStringTree<Schema.Struct<{
|
|
11577
11713
|
readonly id: Schema.brand<Schema.String, "EmailDomainId">;
|
|
11578
11714
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
11715
|
+
readonly shared: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
11579
11716
|
readonly openTracking: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
11580
11717
|
readonly clickTracking: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
11581
11718
|
readonly replyTo: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>>;
|
|
@@ -11584,13 +11721,54 @@ declare const EmailGroup_base: HttpApiGroup.HttpApiGroup<"Email", HttpApiEndpoin
|
|
|
11584
11721
|
readonly brandSlug: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
11585
11722
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
11586
11723
|
readonly id: Schema.brand<Schema.String, "EmailDomainId">;
|
|
11724
|
+
readonly shared: Schema.Boolean;
|
|
11587
11725
|
readonly openTracking: Schema.Union<readonly [Schema.Boolean, Schema.Null]>;
|
|
11588
11726
|
readonly clickTracking: Schema.Union<readonly [Schema.Boolean, Schema.Null]>;
|
|
11589
11727
|
readonly replyTo: Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>;
|
|
11590
11728
|
readonly topicId: Schema.Union<readonly [Schema.brand<Schema.String, "TopicId">, Schema.Null]>;
|
|
11591
11729
|
readonly footerEnabled: Schema.Union<readonly [Schema.Boolean, Schema.Null]>;
|
|
11592
11730
|
readonly brandSlug: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
11593
|
-
}>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<
|
|
11731
|
+
}>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<ConflictError, {
|
|
11732
|
+
readonly _tag: "ConflictError";
|
|
11733
|
+
readonly message: string;
|
|
11734
|
+
readonly resource: string;
|
|
11735
|
+
readonly id?: string | null;
|
|
11736
|
+
}, readonly [Schema.Struct<{
|
|
11737
|
+
readonly _tag: Schema.tag<"ConflictError">;
|
|
11738
|
+
readonly message: Schema.String;
|
|
11739
|
+
readonly resource: Schema.String;
|
|
11740
|
+
readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
11741
|
+
}>], {
|
|
11742
|
+
readonly _tag: "ConflictError";
|
|
11743
|
+
readonly message: string;
|
|
11744
|
+
readonly resource: string;
|
|
11745
|
+
readonly id?: string | null;
|
|
11746
|
+
}>, Schema.Struct<{
|
|
11747
|
+
readonly _tag: Schema.tag<"ConflictError">;
|
|
11748
|
+
readonly message: Schema.String;
|
|
11749
|
+
readonly resource: Schema.String;
|
|
11750
|
+
readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
11751
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<EmailChannelError, {
|
|
11752
|
+
readonly _tag: "EmailChannelError";
|
|
11753
|
+
readonly reason: "auth" | "rate_limited" | "rejected" | "transport";
|
|
11754
|
+
readonly message: string;
|
|
11755
|
+
readonly statusCode?: number | null;
|
|
11756
|
+
}, readonly [Schema.Struct<{
|
|
11757
|
+
readonly _tag: Schema.tag<"EmailChannelError">;
|
|
11758
|
+
readonly reason: Schema.Union<readonly [Schema.Literal<"transport">, Schema.Literal<"rejected">, Schema.Literal<"rate_limited">, Schema.Literal<"auth">]>;
|
|
11759
|
+
readonly message: Schema.String;
|
|
11760
|
+
readonly statusCode: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Null]>>;
|
|
11761
|
+
}>], {
|
|
11762
|
+
readonly _tag: "EmailChannelError";
|
|
11763
|
+
readonly reason: "auth" | "rate_limited" | "rejected" | "transport";
|
|
11764
|
+
readonly message: string;
|
|
11765
|
+
readonly statusCode?: number | null;
|
|
11766
|
+
}>, Schema.Struct<{
|
|
11767
|
+
readonly _tag: Schema.tag<"EmailChannelError">;
|
|
11768
|
+
readonly reason: Schema.Union<readonly [Schema.Literal<"transport">, Schema.Literal<"rejected">, Schema.Literal<"rate_limited">, Schema.Literal<"auth">]>;
|
|
11769
|
+
readonly message: Schema.String;
|
|
11770
|
+
readonly statusCode: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Null]>>;
|
|
11771
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
|
|
11594
11772
|
readonly _tag: "ForbiddenError";
|
|
11595
11773
|
readonly message: string;
|
|
11596
11774
|
}, readonly [Schema.Struct<{
|
|
@@ -11638,6 +11816,22 @@ declare const EmailGroup_base: HttpApiGroup.HttpApiGroup<"Email", HttpApiEndpoin
|
|
|
11638
11816
|
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
11639
11817
|
readonly message: Schema.String;
|
|
11640
11818
|
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
11819
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<RateLimitedError, {
|
|
11820
|
+
readonly _tag: "RateLimitedError";
|
|
11821
|
+
readonly message: string;
|
|
11822
|
+
readonly retryAfterSeconds: number;
|
|
11823
|
+
}, readonly [Schema.Struct<{
|
|
11824
|
+
readonly _tag: Schema.tag<"RateLimitedError">;
|
|
11825
|
+
readonly message: Schema.String;
|
|
11826
|
+
readonly retryAfterSeconds: Schema.Finite;
|
|
11827
|
+
}>], {
|
|
11828
|
+
readonly _tag: "RateLimitedError";
|
|
11829
|
+
readonly message: string;
|
|
11830
|
+
readonly retryAfterSeconds: number;
|
|
11831
|
+
}>, Schema.Struct<{
|
|
11832
|
+
readonly _tag: Schema.tag<"RateLimitedError">;
|
|
11833
|
+
readonly message: Schema.String;
|
|
11834
|
+
readonly retryAfterSeconds: Schema.Finite;
|
|
11641
11835
|
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ResourceNotFoundError, {
|
|
11642
11836
|
readonly _tag: "ResourceNotFoundError";
|
|
11643
11837
|
readonly resource: string;
|