@distilled.cloud/cloudflare 0.16.3 → 0.16.4
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/ai.js +25 -25
- package/lib/services/ai.js.map +1 -1
- package/lib/services/api-gateway.js +84 -84
- package/lib/services/api-gateway.js.map +1 -1
- package/lib/services/connectivity.js +12 -12
- package/lib/services/connectivity.js.map +1 -1
- package/lib/services/dns.js +439 -439
- package/lib/services/dns.js.map +1 -1
- package/lib/services/firewall.js +76 -76
- package/lib/services/firewall.js.map +1 -1
- package/lib/services/hyperdrive.js +26 -26
- package/lib/services/hyperdrive.js.map +1 -1
- package/lib/services/magic-cloud-networking.js +7 -7
- package/lib/services/magic-cloud-networking.js.map +1 -1
- package/lib/services/magic-transit.js +8 -8
- package/lib/services/magic-transit.js.map +1 -1
- package/lib/services/pipelines.js +101 -101
- package/lib/services/pipelines.js.map +1 -1
- package/lib/services/radar.js +32 -32
- package/lib/services/radar.js.map +1 -1
- package/lib/services/realtime-kit.js +5 -5
- package/lib/services/realtime-kit.js.map +1 -1
- package/lib/services/rules.js +4 -4
- package/lib/services/rules.js.map +1 -1
- package/lib/services/token-validation.js +84 -84
- package/lib/services/token-validation.js.map +1 -1
- package/lib/services/workers-for-platforms.js +438 -438
- package/lib/services/workers-for-platforms.js.map +1 -1
- package/lib/services/workers.js +1207 -1207
- package/lib/services/workers.js.map +1 -1
- package/lib/services/workflows.js +9 -9
- package/lib/services/workflows.js.map +1 -1
- package/lib/services/zero-trust.js +3979 -3979
- package/lib/services/zero-trust.js.map +1 -1
- package/lib/services/zones.js +50 -50
- package/lib/services/zones.js.map +1 -1
- package/package.json +2 -2
- package/src/services/ai.ts +35 -35
- package/src/services/api-gateway.ts +130 -130
- package/src/services/connectivity.ts +12 -12
- package/src/services/dns.ts +523 -523
- package/src/services/firewall.ts +80 -80
- package/src/services/hyperdrive.ts +28 -28
- package/src/services/magic-cloud-networking.ts +8 -8
- package/src/services/magic-transit.ts +8 -8
- package/src/services/pipelines.ts +149 -149
- package/src/services/radar.ts +32 -32
- package/src/services/realtime-kit.ts +5 -5
- package/src/services/rules.ts +4 -4
- package/src/services/token-validation.ts +84 -84
- package/src/services/workers-for-platforms.ts +555 -555
- package/src/services/workers.ts +1524 -1524
- package/src/services/workflows.ts +9 -9
- package/src/services/zero-trust.ts +5599 -5599
- package/src/services/zones.ts +74 -74
package/lib/services/firewall.js
CHANGED
|
@@ -650,6 +650,10 @@ export const BulkPutRulesResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
650
650
|
description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
651
651
|
filter: Schema.optional(Schema.Union([
|
|
652
652
|
Schema.Union([
|
|
653
|
+
Schema.Struct({
|
|
654
|
+
id: Schema.String,
|
|
655
|
+
deleted: Schema.Boolean,
|
|
656
|
+
}),
|
|
653
657
|
Schema.Struct({
|
|
654
658
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
655
659
|
description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -657,10 +661,6 @@ export const BulkPutRulesResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
657
661
|
paused: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
658
662
|
ref: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
659
663
|
}),
|
|
660
|
-
Schema.Struct({
|
|
661
|
-
id: Schema.String,
|
|
662
|
-
deleted: Schema.Boolean,
|
|
663
|
-
}),
|
|
664
664
|
]),
|
|
665
665
|
Schema.Null,
|
|
666
666
|
])),
|
|
@@ -711,6 +711,10 @@ export const GetRuleResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
711
711
|
description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
712
712
|
filter: Schema.optional(Schema.Union([
|
|
713
713
|
Schema.Union([
|
|
714
|
+
Schema.Struct({
|
|
715
|
+
id: Schema.String,
|
|
716
|
+
deleted: Schema.Boolean,
|
|
717
|
+
}),
|
|
714
718
|
Schema.Struct({
|
|
715
719
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
716
720
|
description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -718,10 +722,6 @@ export const GetRuleResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
718
722
|
paused: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
719
723
|
ref: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
720
724
|
}),
|
|
721
|
-
Schema.Struct({
|
|
722
|
-
id: Schema.String,
|
|
723
|
-
deleted: Schema.Boolean,
|
|
724
|
-
}),
|
|
725
725
|
]),
|
|
726
726
|
Schema.Null,
|
|
727
727
|
])),
|
|
@@ -773,6 +773,10 @@ export const ListRulesResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
773
773
|
description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
774
774
|
filter: Schema.optional(Schema.Union([
|
|
775
775
|
Schema.Union([
|
|
776
|
+
Schema.Struct({
|
|
777
|
+
id: Schema.String,
|
|
778
|
+
deleted: Schema.Boolean,
|
|
779
|
+
}),
|
|
776
780
|
Schema.Struct({
|
|
777
781
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
778
782
|
description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -780,10 +784,6 @@ export const ListRulesResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
780
784
|
paused: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
781
785
|
ref: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
782
786
|
}),
|
|
783
|
-
Schema.Struct({
|
|
784
|
-
id: Schema.String,
|
|
785
|
-
deleted: Schema.Boolean,
|
|
786
|
-
}),
|
|
787
787
|
]),
|
|
788
788
|
Schema.Null,
|
|
789
789
|
])),
|
|
@@ -868,6 +868,10 @@ export const CreateRuleResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
868
868
|
description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
869
869
|
filter: Schema.optional(Schema.Union([
|
|
870
870
|
Schema.Union([
|
|
871
|
+
Schema.Struct({
|
|
872
|
+
id: Schema.String,
|
|
873
|
+
deleted: Schema.Boolean,
|
|
874
|
+
}),
|
|
871
875
|
Schema.Struct({
|
|
872
876
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
873
877
|
description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -875,10 +879,6 @@ export const CreateRuleResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
875
879
|
paused: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
876
880
|
ref: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
877
881
|
}),
|
|
878
|
-
Schema.Struct({
|
|
879
|
-
id: Schema.String,
|
|
880
|
-
deleted: Schema.Boolean,
|
|
881
|
-
}),
|
|
882
882
|
]),
|
|
883
883
|
Schema.Null,
|
|
884
884
|
])),
|
|
@@ -949,6 +949,10 @@ export const UpdateRuleResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
949
949
|
description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
950
950
|
filter: Schema.optional(Schema.Union([
|
|
951
951
|
Schema.Union([
|
|
952
|
+
Schema.Struct({
|
|
953
|
+
id: Schema.String,
|
|
954
|
+
deleted: Schema.Boolean,
|
|
955
|
+
}),
|
|
952
956
|
Schema.Struct({
|
|
953
957
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
954
958
|
description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -956,10 +960,6 @@ export const UpdateRuleResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
956
960
|
paused: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
957
961
|
ref: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
958
962
|
}),
|
|
959
|
-
Schema.Struct({
|
|
960
|
-
id: Schema.String,
|
|
961
|
-
deleted: Schema.Boolean,
|
|
962
|
-
}),
|
|
963
963
|
]),
|
|
964
964
|
Schema.Null,
|
|
965
965
|
])),
|
|
@@ -1006,6 +1006,10 @@ export const PatchRuleResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
1006
1006
|
description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1007
1007
|
filter: Schema.optional(Schema.Union([
|
|
1008
1008
|
Schema.Union([
|
|
1009
|
+
Schema.Struct({
|
|
1010
|
+
id: Schema.String,
|
|
1011
|
+
deleted: Schema.Boolean,
|
|
1012
|
+
}),
|
|
1009
1013
|
Schema.Struct({
|
|
1010
1014
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1011
1015
|
description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -1013,10 +1017,6 @@ export const PatchRuleResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
1013
1017
|
paused: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1014
1018
|
ref: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1015
1019
|
}),
|
|
1016
|
-
Schema.Struct({
|
|
1017
|
-
id: Schema.String,
|
|
1018
|
-
deleted: Schema.Boolean,
|
|
1019
|
-
}),
|
|
1020
1020
|
]),
|
|
1021
1021
|
Schema.Null,
|
|
1022
1022
|
])),
|
|
@@ -1070,6 +1070,10 @@ export const DeleteRuleResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
1070
1070
|
description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1071
1071
|
filter: Schema.optional(Schema.Union([
|
|
1072
1072
|
Schema.Union([
|
|
1073
|
+
Schema.Struct({
|
|
1074
|
+
id: Schema.String,
|
|
1075
|
+
deleted: Schema.Boolean,
|
|
1076
|
+
}),
|
|
1073
1077
|
Schema.Struct({
|
|
1074
1078
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1075
1079
|
description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -1077,10 +1081,6 @@ export const DeleteRuleResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
1077
1081
|
paused: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1078
1082
|
ref: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1079
1083
|
}),
|
|
1080
|
-
Schema.Struct({
|
|
1081
|
-
id: Schema.String,
|
|
1082
|
-
deleted: Schema.Boolean,
|
|
1083
|
-
}),
|
|
1084
1084
|
]),
|
|
1085
1085
|
Schema.Null,
|
|
1086
1086
|
])),
|
|
@@ -1127,6 +1127,10 @@ export const BulkPatchRulesResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
|
|
|
1127
1127
|
description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1128
1128
|
filter: Schema.optional(Schema.Union([
|
|
1129
1129
|
Schema.Union([
|
|
1130
|
+
Schema.Struct({
|
|
1131
|
+
id: Schema.String,
|
|
1132
|
+
deleted: Schema.Boolean,
|
|
1133
|
+
}),
|
|
1130
1134
|
Schema.Struct({
|
|
1131
1135
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1132
1136
|
description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -1134,10 +1138,6 @@ export const BulkPatchRulesResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
|
|
|
1134
1138
|
paused: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1135
1139
|
ref: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1136
1140
|
}),
|
|
1137
|
-
Schema.Struct({
|
|
1138
|
-
id: Schema.String,
|
|
1139
|
-
deleted: Schema.Boolean,
|
|
1140
|
-
}),
|
|
1141
1141
|
]),
|
|
1142
1142
|
Schema.Null,
|
|
1143
1143
|
])),
|
|
@@ -1189,6 +1189,10 @@ export const BulkDeleteRulesResponse =
|
|
|
1189
1189
|
description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1190
1190
|
filter: Schema.optional(Schema.Union([
|
|
1191
1191
|
Schema.Union([
|
|
1192
|
+
Schema.Struct({
|
|
1193
|
+
id: Schema.String,
|
|
1194
|
+
deleted: Schema.Boolean,
|
|
1195
|
+
}),
|
|
1192
1196
|
Schema.Struct({
|
|
1193
1197
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1194
1198
|
description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -1196,10 +1200,6 @@ export const BulkDeleteRulesResponse =
|
|
|
1196
1200
|
paused: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1197
1201
|
ref: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1198
1202
|
}),
|
|
1199
|
-
Schema.Struct({
|
|
1200
|
-
id: Schema.String,
|
|
1201
|
-
deleted: Schema.Boolean,
|
|
1202
|
-
}),
|
|
1203
1203
|
]),
|
|
1204
1204
|
Schema.Null,
|
|
1205
1205
|
])),
|
|
@@ -2112,26 +2112,6 @@ export const ListWafPackageRulesRequest =
|
|
|
2112
2112
|
export const ListWafPackageRulesResponse =
|
|
2113
2113
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
2114
2114
|
result: Schema.Array(Schema.Union([
|
|
2115
|
-
Schema.Struct({
|
|
2116
|
-
id: Schema.String,
|
|
2117
|
-
allowedModes: Schema.Array(Schema.Literals(["on", "off"])),
|
|
2118
|
-
description: Schema.String,
|
|
2119
|
-
group: Schema.Struct({
|
|
2120
|
-
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2121
|
-
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2122
|
-
}),
|
|
2123
|
-
mode: Schema.Literals(["on", "off"]),
|
|
2124
|
-
packageId: Schema.String,
|
|
2125
|
-
priority: Schema.String,
|
|
2126
|
-
}).pipe(Schema.encodeKeys({
|
|
2127
|
-
id: "id",
|
|
2128
|
-
allowedModes: "allowed_modes",
|
|
2129
|
-
description: "description",
|
|
2130
|
-
group: "group",
|
|
2131
|
-
mode: "mode",
|
|
2132
|
-
packageId: "package_id",
|
|
2133
|
-
priority: "priority",
|
|
2134
|
-
})),
|
|
2135
2115
|
Schema.Struct({
|
|
2136
2116
|
id: Schema.String,
|
|
2137
2117
|
allowedModes: Schema.Array(Schema.Literals([
|
|
@@ -2171,6 +2151,26 @@ export const ListWafPackageRulesResponse =
|
|
|
2171
2151
|
packageId: "package_id",
|
|
2172
2152
|
priority: "priority",
|
|
2173
2153
|
})),
|
|
2154
|
+
Schema.Struct({
|
|
2155
|
+
id: Schema.String,
|
|
2156
|
+
allowedModes: Schema.Array(Schema.Literals(["on", "off"])),
|
|
2157
|
+
description: Schema.String,
|
|
2158
|
+
group: Schema.Struct({
|
|
2159
|
+
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2160
|
+
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2161
|
+
}),
|
|
2162
|
+
mode: Schema.Literals(["on", "off"]),
|
|
2163
|
+
packageId: Schema.String,
|
|
2164
|
+
priority: Schema.String,
|
|
2165
|
+
}).pipe(Schema.encodeKeys({
|
|
2166
|
+
id: "id",
|
|
2167
|
+
allowedModes: "allowed_modes",
|
|
2168
|
+
description: "description",
|
|
2169
|
+
group: "group",
|
|
2170
|
+
mode: "mode",
|
|
2171
|
+
packageId: "package_id",
|
|
2172
|
+
priority: "priority",
|
|
2173
|
+
})),
|
|
2174
2174
|
])),
|
|
2175
2175
|
resultInfo: Schema.Struct({
|
|
2176
2176
|
count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
@@ -2216,26 +2216,6 @@ export const PatchWafPackageRuleRequest =
|
|
|
2216
2216
|
}));
|
|
2217
2217
|
export const PatchWafPackageRuleResponse =
|
|
2218
2218
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Union([
|
|
2219
|
-
Schema.Struct({
|
|
2220
|
-
id: Schema.String,
|
|
2221
|
-
allowedModes: Schema.Array(Schema.Literals(["on", "off"])),
|
|
2222
|
-
description: Schema.String,
|
|
2223
|
-
group: Schema.Struct({
|
|
2224
|
-
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2225
|
-
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2226
|
-
}),
|
|
2227
|
-
mode: Schema.Literals(["on", "off"]),
|
|
2228
|
-
packageId: Schema.String,
|
|
2229
|
-
priority: Schema.String,
|
|
2230
|
-
}).pipe(Schema.encodeKeys({
|
|
2231
|
-
id: "id",
|
|
2232
|
-
allowedModes: "allowed_modes",
|
|
2233
|
-
description: "description",
|
|
2234
|
-
group: "group",
|
|
2235
|
-
mode: "mode",
|
|
2236
|
-
packageId: "package_id",
|
|
2237
|
-
priority: "priority",
|
|
2238
|
-
})),
|
|
2239
2219
|
Schema.Struct({
|
|
2240
2220
|
id: Schema.String,
|
|
2241
2221
|
allowedModes: Schema.Array(Schema.Literals([
|
|
@@ -2275,6 +2255,26 @@ export const PatchWafPackageRuleResponse =
|
|
|
2275
2255
|
packageId: "package_id",
|
|
2276
2256
|
priority: "priority",
|
|
2277
2257
|
})),
|
|
2258
|
+
Schema.Struct({
|
|
2259
|
+
id: Schema.String,
|
|
2260
|
+
allowedModes: Schema.Array(Schema.Literals(["on", "off"])),
|
|
2261
|
+
description: Schema.String,
|
|
2262
|
+
group: Schema.Struct({
|
|
2263
|
+
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2264
|
+
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2265
|
+
}),
|
|
2266
|
+
mode: Schema.Literals(["on", "off"]),
|
|
2267
|
+
packageId: Schema.String,
|
|
2268
|
+
priority: Schema.String,
|
|
2269
|
+
}).pipe(Schema.encodeKeys({
|
|
2270
|
+
id: "id",
|
|
2271
|
+
allowedModes: "allowed_modes",
|
|
2272
|
+
description: "description",
|
|
2273
|
+
group: "group",
|
|
2274
|
+
mode: "mode",
|
|
2275
|
+
packageId: "package_id",
|
|
2276
|
+
priority: "priority",
|
|
2277
|
+
})),
|
|
2278
2278
|
]).pipe(T.ResponsePath("result"));
|
|
2279
2279
|
export const patchWafPackageRule = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
2280
2280
|
input: PatchWafPackageRuleRequest,
|