@distilled.cloud/cloudflare 0.30.2 → 0.30.3

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.
@@ -24,6 +24,22 @@ export class DestinationNotVerified extends T.applyErrorMatchers(
24
24
  [{ code: 2054 }],
25
25
  ) {}
26
26
 
27
+ export class EmailAddressCreatedTooRecently extends T.applyErrorMatchers(
28
+ Schema.TaggedErrorClass<EmailAddressCreatedTooRecently>()(
29
+ "EmailAddressCreatedTooRecently",
30
+ { code: Schema.Number, message: Schema.String },
31
+ ),
32
+ [{ code: 2032 }],
33
+ ) {}
34
+
35
+ export class EmailAddressNotFound extends T.applyErrorMatchers(
36
+ Schema.TaggedErrorClass<EmailAddressNotFound>()("EmailAddressNotFound", {
37
+ code: Schema.Number,
38
+ message: Schema.String,
39
+ }),
40
+ [{ code: 2015 }],
41
+ ) {}
42
+
27
43
  export class EmailRoutingRuleNotFound extends T.applyErrorMatchers(
28
44
  Schema.TaggedErrorClass<EmailRoutingRuleNotFound>()(
29
45
  "EmailRoutingRuleNotFound",
@@ -75,22 +91,21 @@ interface ListAddressesResponseResultInfo {
75
91
  perPage?: number | null;
76
92
  totalCount?: number | null;
77
93
  }
78
- const ListAddressesResponseResultInfo =
79
- /*@__PURE__*/ Schema.suspend(() =>
80
- Schema.Struct({
81
- count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
82
- page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
83
- perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
84
- totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
85
- }).pipe(
86
- Schema.encodeKeys({
87
- count: "count",
88
- page: "page",
89
- perPage: "per_page",
90
- totalCount: "total_count",
91
- }),
92
- ),
93
- ) as unknown as Schema.Codec<ListAddressesResponseResultInfo>;
94
+ const ListAddressesResponseResultInfo = /*@__PURE__*/ Schema.suspend(() =>
95
+ Schema.Struct({
96
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
97
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
98
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
99
+ totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
100
+ }).pipe(
101
+ Schema.encodeKeys({
102
+ count: "count",
103
+ page: "page",
104
+ perPage: "per_page",
105
+ totalCount: "total_count",
106
+ }),
107
+ ),
108
+ ) as unknown as Schema.Codec<ListAddressesResponseResultInfo>;
94
109
 
95
110
  interface Source {
96
111
  pointer?: string | null;
@@ -425,24 +440,23 @@ interface EmailEmailRoutingDNSQueryResponse {
425
440
  totalPages?: number | null;
426
441
  } | null;
427
442
  }
428
- const EmailEmailRoutingDNSQueryResponse =
429
- /*@__PURE__*/ Schema.suspend(() =>
430
- Schema.Struct({
431
- errors: Schema.Array(Error2),
432
- messages: Schema.Array(Error2),
433
- success: Schema.Literal(true),
434
- result: Schema.optional(Schema.Union([Result, Schema.Null])),
435
- resultInfo: Schema.optional(Schema.Union([ResultInfo, Schema.Null])),
436
- }).pipe(
437
- Schema.encodeKeys({
438
- errors: "errors",
439
- messages: "messages",
440
- success: "success",
441
- result: "result",
442
- resultInfo: "result_info",
443
- }),
444
- ),
445
- ) as unknown as Schema.Codec<EmailEmailRoutingDNSQueryResponse>;
443
+ const EmailEmailRoutingDNSQueryResponse = /*@__PURE__*/ Schema.suspend(() =>
444
+ Schema.Struct({
445
+ errors: Schema.Array(Error2),
446
+ messages: Schema.Array(Error2),
447
+ success: Schema.Literal(true),
448
+ result: Schema.optional(Schema.Union([Result, Schema.Null])),
449
+ resultInfo: Schema.optional(Schema.Union([ResultInfo, Schema.Null])),
450
+ }).pipe(
451
+ Schema.encodeKeys({
452
+ errors: "errors",
453
+ messages: "messages",
454
+ success: "success",
455
+ result: "result",
456
+ resultInfo: "result_info",
457
+ }),
458
+ ),
459
+ ) as unknown as Schema.Codec<EmailEmailRoutingDNSQueryResponse>;
446
460
 
447
461
  interface EmailDNSSettingsResponseCollection {
448
462
  errors: {
@@ -496,26 +510,25 @@ interface EmailDNSSettingsResponseCollection {
496
510
  totalPages?: number | null;
497
511
  } | null;
498
512
  }
499
- const EmailDNSSettingsResponseCollection =
500
- /*@__PURE__*/ Schema.suspend(() =>
501
- Schema.Struct({
502
- errors: Schema.Array(Error2),
503
- messages: Schema.Array(Error2),
504
- success: Schema.Literal(true),
505
- result: Schema.optional(
506
- Schema.Union([Schema.Array(Dnsrecord), Schema.Null]),
507
- ),
508
- resultInfo: Schema.optional(Schema.Union([ResultInfo, Schema.Null])),
509
- }).pipe(
510
- Schema.encodeKeys({
511
- errors: "errors",
512
- messages: "messages",
513
- success: "success",
514
- result: "result",
515
- resultInfo: "result_info",
516
- }),
513
+ const EmailDNSSettingsResponseCollection = /*@__PURE__*/ Schema.suspend(() =>
514
+ Schema.Struct({
515
+ errors: Schema.Array(Error2),
516
+ messages: Schema.Array(Error2),
517
+ success: Schema.Literal(true),
518
+ result: Schema.optional(
519
+ Schema.Union([Schema.Array(Dnsrecord), Schema.Null]),
517
520
  ),
518
- ) as unknown as Schema.Codec<EmailDNSSettingsResponseCollection>;
521
+ resultInfo: Schema.optional(Schema.Union([ResultInfo, Schema.Null])),
522
+ }).pipe(
523
+ Schema.encodeKeys({
524
+ errors: "errors",
525
+ messages: "messages",
526
+ success: "success",
527
+ result: "result",
528
+ resultInfo: "result_info",
529
+ }),
530
+ ),
531
+ ) as unknown as Schema.Codec<EmailDNSSettingsResponseCollection>;
519
532
 
520
533
  interface Action {
521
534
  /** Type of supported action. */
@@ -555,18 +568,17 @@ interface ListRulesResponseResultAction {
555
568
  type: "drop" | "forward" | "worker" | (string & {});
556
569
  value?: string[] | null;
557
570
  }
558
- const ListRulesResponseResultAction =
559
- /*@__PURE__*/ Schema.suspend(() =>
560
- Schema.Struct({
561
- type: Schema.Union([
562
- Schema.Literals(["drop", "forward", "worker"]),
563
- Schema.String,
564
- ]),
565
- value: Schema.optional(
566
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
567
- ),
568
- }),
569
- ) as unknown as Schema.Codec<ListRulesResponseResultAction>;
571
+ const ListRulesResponseResultAction = /*@__PURE__*/ Schema.suspend(() =>
572
+ Schema.Struct({
573
+ type: Schema.Union([
574
+ Schema.Literals(["drop", "forward", "worker"]),
575
+ Schema.String,
576
+ ]),
577
+ value: Schema.optional(
578
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
579
+ ),
580
+ }),
581
+ ) as unknown as Schema.Codec<ListRulesResponseResultAction>;
570
582
 
571
583
  interface ListRulesResponseResultMatcher {
572
584
  /** Type of matcher. */
@@ -576,14 +588,13 @@ interface ListRulesResponseResultMatcher {
576
588
  /** Value for matcher. */
577
589
  value?: string | null;
578
590
  }
579
- const ListRulesResponseResultMatcher =
580
- /*@__PURE__*/ Schema.suspend(() =>
581
- Schema.Struct({
582
- type: Schema.Union([Schema.Literals(["all", "literal"]), Schema.String]),
583
- field: Schema.optional(Schema.Union([Schema.Literal("to"), Schema.Null])),
584
- value: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
585
- }),
586
- ) as unknown as Schema.Codec<ListRulesResponseResultMatcher>;
591
+ const ListRulesResponseResultMatcher = /*@__PURE__*/ Schema.suspend(() =>
592
+ Schema.Struct({
593
+ type: Schema.Union([Schema.Literals(["all", "literal"]), Schema.String]),
594
+ field: Schema.optional(Schema.Union([Schema.Literal("to"), Schema.Null])),
595
+ value: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
596
+ }),
597
+ ) as unknown as Schema.Codec<ListRulesResponseResultMatcher>;
587
598
 
588
599
  interface ListRulesResponseResult {
589
600
  /** Routing rule identifier. */
@@ -879,7 +890,10 @@ export const DeleteAddressResponse = /*@__PURE__*/ Schema.suspend(() =>
879
890
  }).pipe(T.ResponsePath("result")),
880
891
  ) as unknown as Schema.Codec<DeleteAddressResponse>;
881
892
 
882
- export type DeleteAddressError = DefaultErrors;
893
+ export type DeleteAddressError =
894
+ | DefaultErrors
895
+ | EmailAddressNotFound
896
+ | EmailAddressCreatedTooRecently;
883
897
 
884
898
  export const deleteAddress: API.OperationMethod<
885
899
  DeleteAddressRequest,
@@ -889,7 +903,7 @@ export const deleteAddress: API.OperationMethod<
889
903
  > = /*@__PURE__*/ API.make(() => ({
890
904
  input: DeleteAddressRequest,
891
905
  output: DeleteAddressResponse,
892
- errors: [],
906
+ errors: [EmailAddressNotFound, EmailAddressCreatedTooRecently],
893
907
  }));
894
908
 
895
909
  // =============================================================================
@@ -1347,12 +1361,11 @@ export interface GetEmailRoutingRequest {
1347
1361
  zoneId: string;
1348
1362
  }
1349
1363
 
1350
- export const GetEmailRoutingRequest =
1351
- /*@__PURE__*/ Schema.suspend(() =>
1352
- Schema.Struct({
1353
- zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
1354
- }).pipe(T.Http({ method: "GET", path: "/zones/{zone_id}/email/routing" })),
1355
- ) as unknown as Schema.Codec<GetEmailRoutingRequest>;
1364
+ export const GetEmailRoutingRequest = /*@__PURE__*/ Schema.suspend(() =>
1365
+ Schema.Struct({
1366
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
1367
+ }).pipe(T.Http({ method: "GET", path: "/zones/{zone_id}/email/routing" })),
1368
+ ) as unknown as Schema.Codec<GetEmailRoutingRequest>;
1356
1369
 
1357
1370
  export interface GetEmailRoutingResponse {
1358
1371
  /** Email Routing settings identifier. */
@@ -1382,50 +1395,49 @@ export interface GetEmailRoutingResponse {
1382
1395
  tag?: string | null;
1383
1396
  }
1384
1397
 
1385
- export const GetEmailRoutingResponse =
1386
- /*@__PURE__*/ Schema.suspend(() =>
1387
- Schema.Struct({
1388
- id: Schema.String,
1389
- enabled: Schema.Boolean,
1390
- name: Schema.String,
1391
- created: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1392
- modified: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1393
- skipWizard: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
1394
- status: Schema.optional(
1398
+ export const GetEmailRoutingResponse = /*@__PURE__*/ Schema.suspend(() =>
1399
+ Schema.Struct({
1400
+ id: Schema.String,
1401
+ enabled: Schema.Boolean,
1402
+ name: Schema.String,
1403
+ created: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1404
+ modified: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1405
+ skipWizard: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
1406
+ status: Schema.optional(
1407
+ Schema.Union([
1395
1408
  Schema.Union([
1396
- Schema.Union([
1397
- Schema.Literals([
1398
- "ready",
1399
- "unconfigured",
1400
- "misconfigured",
1401
- "misconfigured/locked",
1402
- "unlocked",
1403
- ]),
1404
- Schema.String,
1409
+ Schema.Literals([
1410
+ "ready",
1411
+ "unconfigured",
1412
+ "misconfigured",
1413
+ "misconfigured/locked",
1414
+ "unlocked",
1405
1415
  ]),
1406
- Schema.Null,
1416
+ Schema.String,
1407
1417
  ]),
1408
- ),
1409
- supportSubaddress: Schema.optional(
1410
- Schema.Union([Schema.Boolean, Schema.Null]),
1411
- ),
1412
- tag: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1413
- })
1414
- .pipe(
1415
- Schema.encodeKeys({
1416
- id: "id",
1417
- enabled: "enabled",
1418
- name: "name",
1419
- created: "created",
1420
- modified: "modified",
1421
- skipWizard: "skip_wizard",
1422
- status: "status",
1423
- supportSubaddress: "support_subaddress",
1424
- tag: "tag",
1425
- }),
1426
- )
1427
- .pipe(T.ResponsePath("result")),
1428
- ) as unknown as Schema.Codec<GetEmailRoutingResponse>;
1418
+ Schema.Null,
1419
+ ]),
1420
+ ),
1421
+ supportSubaddress: Schema.optional(
1422
+ Schema.Union([Schema.Boolean, Schema.Null]),
1423
+ ),
1424
+ tag: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1425
+ })
1426
+ .pipe(
1427
+ Schema.encodeKeys({
1428
+ id: "id",
1429
+ enabled: "enabled",
1430
+ name: "name",
1431
+ created: "created",
1432
+ modified: "modified",
1433
+ skipWizard: "skip_wizard",
1434
+ status: "status",
1435
+ supportSubaddress: "support_subaddress",
1436
+ tag: "tag",
1437
+ }),
1438
+ )
1439
+ .pipe(T.ResponsePath("result")),
1440
+ ) as unknown as Schema.Codec<GetEmailRoutingResponse>;
1429
1441
 
1430
1442
  export type GetEmailRoutingError = DefaultErrors | Forbidden;
1431
1443
 
@@ -1447,15 +1459,14 @@ export interface EnableEmailRoutingRequest {
1447
1459
  body: unknown;
1448
1460
  }
1449
1461
 
1450
- export const EnableEmailRoutingRequest =
1451
- /*@__PURE__*/ Schema.suspend(() =>
1452
- Schema.Struct({
1453
- zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
1454
- body: Schema.Unknown.pipe(T.HttpBody()),
1455
- }).pipe(
1456
- T.Http({ method: "POST", path: "/zones/{zone_id}/email/routing/enable" }),
1457
- ),
1458
- ) as unknown as Schema.Codec<EnableEmailRoutingRequest>;
1462
+ export const EnableEmailRoutingRequest = /*@__PURE__*/ Schema.suspend(() =>
1463
+ Schema.Struct({
1464
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
1465
+ body: Schema.Unknown.pipe(T.HttpBody()),
1466
+ }).pipe(
1467
+ T.Http({ method: "POST", path: "/zones/{zone_id}/email/routing/enable" }),
1468
+ ),
1469
+ ) as unknown as Schema.Codec<EnableEmailRoutingRequest>;
1459
1470
 
1460
1471
  export interface EnableEmailRoutingResponse {
1461
1472
  /** Email Routing settings identifier. */
@@ -1485,50 +1496,49 @@ export interface EnableEmailRoutingResponse {
1485
1496
  tag?: string | null;
1486
1497
  }
1487
1498
 
1488
- export const EnableEmailRoutingResponse =
1489
- /*@__PURE__*/ Schema.suspend(() =>
1490
- Schema.Struct({
1491
- id: Schema.String,
1492
- enabled: Schema.Boolean,
1493
- name: Schema.String,
1494
- created: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1495
- modified: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1496
- skipWizard: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
1497
- status: Schema.optional(
1499
+ export const EnableEmailRoutingResponse = /*@__PURE__*/ Schema.suspend(() =>
1500
+ Schema.Struct({
1501
+ id: Schema.String,
1502
+ enabled: Schema.Boolean,
1503
+ name: Schema.String,
1504
+ created: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1505
+ modified: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1506
+ skipWizard: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
1507
+ status: Schema.optional(
1508
+ Schema.Union([
1498
1509
  Schema.Union([
1499
- Schema.Union([
1500
- Schema.Literals([
1501
- "ready",
1502
- "unconfigured",
1503
- "misconfigured",
1504
- "misconfigured/locked",
1505
- "unlocked",
1506
- ]),
1507
- Schema.String,
1510
+ Schema.Literals([
1511
+ "ready",
1512
+ "unconfigured",
1513
+ "misconfigured",
1514
+ "misconfigured/locked",
1515
+ "unlocked",
1508
1516
  ]),
1509
- Schema.Null,
1517
+ Schema.String,
1510
1518
  ]),
1511
- ),
1512
- supportSubaddress: Schema.optional(
1513
- Schema.Union([Schema.Boolean, Schema.Null]),
1514
- ),
1515
- tag: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1516
- })
1517
- .pipe(
1518
- Schema.encodeKeys({
1519
- id: "id",
1520
- enabled: "enabled",
1521
- name: "name",
1522
- created: "created",
1523
- modified: "modified",
1524
- skipWizard: "skip_wizard",
1525
- status: "status",
1526
- supportSubaddress: "support_subaddress",
1527
- tag: "tag",
1528
- }),
1529
- )
1530
- .pipe(T.ResponsePath("result")),
1531
- ) as unknown as Schema.Codec<EnableEmailRoutingResponse>;
1519
+ Schema.Null,
1520
+ ]),
1521
+ ),
1522
+ supportSubaddress: Schema.optional(
1523
+ Schema.Union([Schema.Boolean, Schema.Null]),
1524
+ ),
1525
+ tag: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1526
+ })
1527
+ .pipe(
1528
+ Schema.encodeKeys({
1529
+ id: "id",
1530
+ enabled: "enabled",
1531
+ name: "name",
1532
+ created: "created",
1533
+ modified: "modified",
1534
+ skipWizard: "skip_wizard",
1535
+ status: "status",
1536
+ supportSubaddress: "support_subaddress",
1537
+ tag: "tag",
1538
+ }),
1539
+ )
1540
+ .pipe(T.ResponsePath("result")),
1541
+ ) as unknown as Schema.Codec<EnableEmailRoutingResponse>;
1532
1542
 
1533
1543
  export type EnableEmailRoutingError = DefaultErrors | Forbidden;
1534
1544
 
@@ -1550,18 +1560,14 @@ export interface DisableEmailRoutingRequest {
1550
1560
  body: unknown;
1551
1561
  }
1552
1562
 
1553
- export const DisableEmailRoutingRequest =
1554
- /*@__PURE__*/ Schema.suspend(() =>
1555
- Schema.Struct({
1556
- zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
1557
- body: Schema.Unknown.pipe(T.HttpBody()),
1558
- }).pipe(
1559
- T.Http({
1560
- method: "POST",
1561
- path: "/zones/{zone_id}/email/routing/disable",
1562
- }),
1563
- ),
1564
- ) as unknown as Schema.Codec<DisableEmailRoutingRequest>;
1563
+ export const DisableEmailRoutingRequest = /*@__PURE__*/ Schema.suspend(() =>
1564
+ Schema.Struct({
1565
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
1566
+ body: Schema.Unknown.pipe(T.HttpBody()),
1567
+ }).pipe(
1568
+ T.Http({ method: "POST", path: "/zones/{zone_id}/email/routing/disable" }),
1569
+ ),
1570
+ ) as unknown as Schema.Codec<DisableEmailRoutingRequest>;
1565
1571
 
1566
1572
  export interface DisableEmailRoutingResponse {
1567
1573
  /** Email Routing settings identifier. */
@@ -1591,50 +1597,49 @@ export interface DisableEmailRoutingResponse {
1591
1597
  tag?: string | null;
1592
1598
  }
1593
1599
 
1594
- export const DisableEmailRoutingResponse =
1595
- /*@__PURE__*/ Schema.suspend(() =>
1596
- Schema.Struct({
1597
- id: Schema.String,
1598
- enabled: Schema.Boolean,
1599
- name: Schema.String,
1600
- created: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1601
- modified: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1602
- skipWizard: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
1603
- status: Schema.optional(
1600
+ export const DisableEmailRoutingResponse = /*@__PURE__*/ Schema.suspend(() =>
1601
+ Schema.Struct({
1602
+ id: Schema.String,
1603
+ enabled: Schema.Boolean,
1604
+ name: Schema.String,
1605
+ created: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1606
+ modified: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1607
+ skipWizard: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
1608
+ status: Schema.optional(
1609
+ Schema.Union([
1604
1610
  Schema.Union([
1605
- Schema.Union([
1606
- Schema.Literals([
1607
- "ready",
1608
- "unconfigured",
1609
- "misconfigured",
1610
- "misconfigured/locked",
1611
- "unlocked",
1612
- ]),
1613
- Schema.String,
1611
+ Schema.Literals([
1612
+ "ready",
1613
+ "unconfigured",
1614
+ "misconfigured",
1615
+ "misconfigured/locked",
1616
+ "unlocked",
1614
1617
  ]),
1615
- Schema.Null,
1618
+ Schema.String,
1616
1619
  ]),
1617
- ),
1618
- supportSubaddress: Schema.optional(
1619
- Schema.Union([Schema.Boolean, Schema.Null]),
1620
- ),
1621
- tag: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1622
- })
1623
- .pipe(
1624
- Schema.encodeKeys({
1625
- id: "id",
1626
- enabled: "enabled",
1627
- name: "name",
1628
- created: "created",
1629
- modified: "modified",
1630
- skipWizard: "skip_wizard",
1631
- status: "status",
1632
- supportSubaddress: "support_subaddress",
1633
- tag: "tag",
1634
- }),
1635
- )
1636
- .pipe(T.ResponsePath("result")),
1637
- ) as unknown as Schema.Codec<DisableEmailRoutingResponse>;
1620
+ Schema.Null,
1621
+ ]),
1622
+ ),
1623
+ supportSubaddress: Schema.optional(
1624
+ Schema.Union([Schema.Boolean, Schema.Null]),
1625
+ ),
1626
+ tag: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1627
+ })
1628
+ .pipe(
1629
+ Schema.encodeKeys({
1630
+ id: "id",
1631
+ enabled: "enabled",
1632
+ name: "name",
1633
+ created: "created",
1634
+ modified: "modified",
1635
+ skipWizard: "skip_wizard",
1636
+ status: "status",
1637
+ supportSubaddress: "support_subaddress",
1638
+ tag: "tag",
1639
+ }),
1640
+ )
1641
+ .pipe(T.ResponsePath("result")),
1642
+ ) as unknown as Schema.Codec<DisableEmailRoutingResponse>;
1638
1643
 
1639
1644
  export type DisableEmailRoutingError = DefaultErrors | Forbidden;
1640
1645
 
@@ -2073,17 +2078,16 @@ export interface GetRuleCatchAllRequest {
2073
2078
  zoneId: string;
2074
2079
  }
2075
2080
 
2076
- export const GetRuleCatchAllRequest =
2077
- /*@__PURE__*/ Schema.suspend(() =>
2078
- Schema.Struct({
2079
- zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
2080
- }).pipe(
2081
- T.Http({
2082
- method: "GET",
2083
- path: "/zones/{zone_id}/email/routing/rules/catch_all",
2084
- }),
2085
- ),
2086
- ) as unknown as Schema.Codec<GetRuleCatchAllRequest>;
2081
+ export const GetRuleCatchAllRequest = /*@__PURE__*/ Schema.suspend(() =>
2082
+ Schema.Struct({
2083
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
2084
+ }).pipe(
2085
+ T.Http({
2086
+ method: "GET",
2087
+ path: "/zones/{zone_id}/email/routing/rules/catch_all",
2088
+ }),
2089
+ ),
2090
+ ) as unknown as Schema.Codec<GetRuleCatchAllRequest>;
2087
2091
 
2088
2092
  export interface GetRuleCatchAllResponse {
2089
2093
  /** Routing rule identifier. */
@@ -2105,21 +2109,18 @@ export interface GetRuleCatchAllResponse {
2105
2109
  tag?: string | null;
2106
2110
  }
2107
2111
 
2108
- export const GetRuleCatchAllResponse =
2109
- /*@__PURE__*/ Schema.suspend(() =>
2110
- Schema.Struct({
2111
- id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2112
- actions: Schema.optional(
2113
- Schema.Union([Schema.Array(Action), Schema.Null]),
2114
- ),
2115
- enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
2116
- matchers: Schema.optional(
2117
- Schema.Union([Schema.Array(CatchAllMatcher), Schema.Null]),
2118
- ),
2119
- name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2120
- tag: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2121
- }).pipe(T.ResponsePath("result")),
2122
- ) as unknown as Schema.Codec<GetRuleCatchAllResponse>;
2112
+ export const GetRuleCatchAllResponse = /*@__PURE__*/ Schema.suspend(() =>
2113
+ Schema.Struct({
2114
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2115
+ actions: Schema.optional(Schema.Union([Schema.Array(Action), Schema.Null])),
2116
+ enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
2117
+ matchers: Schema.optional(
2118
+ Schema.Union([Schema.Array(CatchAllMatcher), Schema.Null]),
2119
+ ),
2120
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2121
+ tag: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2122
+ }).pipe(T.ResponsePath("result")),
2123
+ ) as unknown as Schema.Codec<GetRuleCatchAllResponse>;
2123
2124
 
2124
2125
  export type GetRuleCatchAllError = DefaultErrors | Forbidden;
2125
2126
 
@@ -2150,21 +2151,20 @@ export interface PutRuleCatchAllRequest {
2150
2151
  name?: string;
2151
2152
  }
2152
2153
 
2153
- export const PutRuleCatchAllRequest =
2154
- /*@__PURE__*/ Schema.suspend(() =>
2155
- Schema.Struct({
2156
- zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
2157
- actions: Schema.Array(Action),
2158
- matchers: Schema.Array(CatchAllMatcher),
2159
- enabled: Schema.optional(Schema.Boolean),
2160
- name: Schema.optional(Schema.String),
2161
- }).pipe(
2162
- T.Http({
2163
- method: "PUT",
2164
- path: "/zones/{zone_id}/email/routing/rules/catch_all",
2165
- }),
2166
- ),
2167
- ) as unknown as Schema.Codec<PutRuleCatchAllRequest>;
2154
+ export const PutRuleCatchAllRequest = /*@__PURE__*/ Schema.suspend(() =>
2155
+ Schema.Struct({
2156
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
2157
+ actions: Schema.Array(Action),
2158
+ matchers: Schema.Array(CatchAllMatcher),
2159
+ enabled: Schema.optional(Schema.Boolean),
2160
+ name: Schema.optional(Schema.String),
2161
+ }).pipe(
2162
+ T.Http({
2163
+ method: "PUT",
2164
+ path: "/zones/{zone_id}/email/routing/rules/catch_all",
2165
+ }),
2166
+ ),
2167
+ ) as unknown as Schema.Codec<PutRuleCatchAllRequest>;
2168
2168
 
2169
2169
  export interface PutRuleCatchAllResponse {
2170
2170
  /** Routing rule identifier. */
@@ -2186,21 +2186,18 @@ export interface PutRuleCatchAllResponse {
2186
2186
  tag?: string | null;
2187
2187
  }
2188
2188
 
2189
- export const PutRuleCatchAllResponse =
2190
- /*@__PURE__*/ Schema.suspend(() =>
2191
- Schema.Struct({
2192
- id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2193
- actions: Schema.optional(
2194
- Schema.Union([Schema.Array(Action), Schema.Null]),
2195
- ),
2196
- enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
2197
- matchers: Schema.optional(
2198
- Schema.Union([Schema.Array(CatchAllMatcher), Schema.Null]),
2199
- ),
2200
- name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2201
- tag: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2202
- }).pipe(T.ResponsePath("result")),
2203
- ) as unknown as Schema.Codec<PutRuleCatchAllResponse>;
2189
+ export const PutRuleCatchAllResponse = /*@__PURE__*/ Schema.suspend(() =>
2190
+ Schema.Struct({
2191
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2192
+ actions: Schema.optional(Schema.Union([Schema.Array(Action), Schema.Null])),
2193
+ enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
2194
+ matchers: Schema.optional(
2195
+ Schema.Union([Schema.Array(CatchAllMatcher), Schema.Null]),
2196
+ ),
2197
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2198
+ tag: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2199
+ }).pipe(T.ResponsePath("result")),
2200
+ ) as unknown as Schema.Codec<PutRuleCatchAllResponse>;
2204
2201
 
2205
2202
  export type PutRuleCatchAllError =
2206
2203
  | DefaultErrors