@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.
- package/lib/services/email-routing.d.ts +13 -1
- package/lib/services/email-routing.d.ts.map +1 -1
- package/lib/services/email-routing.js +24 -35
- package/lib/services/email-routing.js.map +1 -1
- package/lib/services/rum.d.ts +7 -1
- package/lib/services/rum.d.ts.map +1 -1
- package/lib/services/rum.js +12 -13
- package/lib/services/rum.js.map +1 -1
- package/lib/services/workers.d.ts +2 -0
- package/lib/services/workers.d.ts.map +1 -1
- package/lib/services/workers.js +4 -0
- package/lib/services/workers.js.map +1 -1
- package/lib/services/zero-trust.d.ts +1 -1
- package/lib/services/zero-trust.d.ts.map +1 -1
- package/lib/services/zero-trust.js +693 -1433
- package/lib/services/zero-trust.js.map +1 -1
- package/package.json +2 -2
- package/src/services/email-routing.ts +278 -281
- package/src/services/rum.ts +106 -107
- package/src/services/workers.ts +11 -0
- package/src/services/zero-trust.ts +9828 -10455
|
@@ -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
|
-
|
|
80
|
-
Schema.
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
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
|
-
|
|
430
|
-
Schema.
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
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
|
-
|
|
501
|
-
Schema.
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
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
|
-
|
|
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
|
-
|
|
560
|
-
Schema.
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
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
|
-
|
|
581
|
-
Schema.
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
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 =
|
|
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
|
-
|
|
1352
|
-
Schema.
|
|
1353
|
-
|
|
1354
|
-
|
|
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
|
-
|
|
1387
|
-
Schema.
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
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.
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
"unlocked",
|
|
1403
|
-
]),
|
|
1404
|
-
Schema.String,
|
|
1409
|
+
Schema.Literals([
|
|
1410
|
+
"ready",
|
|
1411
|
+
"unconfigured",
|
|
1412
|
+
"misconfigured",
|
|
1413
|
+
"misconfigured/locked",
|
|
1414
|
+
"unlocked",
|
|
1405
1415
|
]),
|
|
1406
|
-
Schema.
|
|
1416
|
+
Schema.String,
|
|
1407
1417
|
]),
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
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
|
-
|
|
1452
|
-
Schema.
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
})
|
|
1456
|
-
|
|
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
|
-
|
|
1490
|
-
Schema.
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
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.
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
"unlocked",
|
|
1506
|
-
]),
|
|
1507
|
-
Schema.String,
|
|
1510
|
+
Schema.Literals([
|
|
1511
|
+
"ready",
|
|
1512
|
+
"unconfigured",
|
|
1513
|
+
"misconfigured",
|
|
1514
|
+
"misconfigured/locked",
|
|
1515
|
+
"unlocked",
|
|
1508
1516
|
]),
|
|
1509
|
-
Schema.
|
|
1517
|
+
Schema.String,
|
|
1510
1518
|
]),
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
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
|
-
|
|
1555
|
-
Schema.
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
})
|
|
1559
|
-
|
|
1560
|
-
|
|
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
|
-
|
|
1596
|
-
Schema.
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
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.
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
"unlocked",
|
|
1612
|
-
]),
|
|
1613
|
-
Schema.String,
|
|
1611
|
+
Schema.Literals([
|
|
1612
|
+
"ready",
|
|
1613
|
+
"unconfigured",
|
|
1614
|
+
"misconfigured",
|
|
1615
|
+
"misconfigured/locked",
|
|
1616
|
+
"unlocked",
|
|
1614
1617
|
]),
|
|
1615
|
-
Schema.
|
|
1618
|
+
Schema.String,
|
|
1616
1619
|
]),
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
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
|
-
|
|
2078
|
-
Schema.
|
|
2079
|
-
|
|
2080
|
-
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
|
|
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
|
-
|
|
2110
|
-
Schema.
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
|
|
2114
|
-
),
|
|
2115
|
-
|
|
2116
|
-
|
|
2117
|
-
|
|
2118
|
-
|
|
2119
|
-
|
|
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
|
-
|
|
2155
|
-
Schema.
|
|
2156
|
-
|
|
2157
|
-
|
|
2158
|
-
|
|
2159
|
-
|
|
2160
|
-
|
|
2161
|
-
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
|
|
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
|
-
|
|
2191
|
-
Schema.
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
),
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
|
|
2199
|
-
|
|
2200
|
-
|
|
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
|