@distilled.cloud/cloudflare 0.18.2 → 0.19.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.
Files changed (246) hide show
  1. package/lib/services/abuse-reports.d.ts +4 -4
  2. package/lib/services/abuse-reports.d.ts.map +1 -1
  3. package/lib/services/abuse-reports.js +28 -22
  4. package/lib/services/abuse-reports.js.map +1 -1
  5. package/lib/services/accounts.d.ts +10 -10
  6. package/lib/services/accounts.d.ts.map +1 -1
  7. package/lib/services/accounts.js +67 -52
  8. package/lib/services/accounts.js.map +1 -1
  9. package/lib/services/ai-gateway.d.ts +10 -10
  10. package/lib/services/ai-gateway.d.ts.map +1 -1
  11. package/lib/services/ai-gateway.js +70 -55
  12. package/lib/services/ai-gateway.js.map +1 -1
  13. package/lib/services/ai.d.ts +2 -2
  14. package/lib/services/ai.d.ts.map +1 -1
  15. package/lib/services/ai.js +14 -11
  16. package/lib/services/ai.js.map +1 -1
  17. package/lib/services/alerting.d.ts +2 -2
  18. package/lib/services/alerting.d.ts.map +1 -1
  19. package/lib/services/alerting.js +14 -11
  20. package/lib/services/alerting.js.map +1 -1
  21. package/lib/services/api-gateway.d.ts +10 -10
  22. package/lib/services/api-gateway.d.ts.map +1 -1
  23. package/lib/services/api-gateway.js +70 -55
  24. package/lib/services/api-gateway.js.map +1 -1
  25. package/lib/services/audit-logs.d.ts +2 -2
  26. package/lib/services/audit-logs.d.ts.map +1 -1
  27. package/lib/services/audit-logs.js +14 -11
  28. package/lib/services/audit-logs.js.map +1 -1
  29. package/lib/services/client-certificates.d.ts +2 -2
  30. package/lib/services/client-certificates.d.ts.map +1 -1
  31. package/lib/services/client-certificates.js +14 -11
  32. package/lib/services/client-certificates.js.map +1 -1
  33. package/lib/services/custom-certificates.d.ts +2 -2
  34. package/lib/services/custom-certificates.d.ts.map +1 -1
  35. package/lib/services/custom-certificates.js +14 -11
  36. package/lib/services/custom-certificates.js.map +1 -1
  37. package/lib/services/custom-hostnames.d.ts +2 -2
  38. package/lib/services/custom-hostnames.d.ts.map +1 -1
  39. package/lib/services/custom-hostnames.js +14 -11
  40. package/lib/services/custom-hostnames.js.map +1 -1
  41. package/lib/services/d1.d.ts +2 -2
  42. package/lib/services/d1.d.ts.map +1 -1
  43. package/lib/services/d1.js +14 -11
  44. package/lib/services/d1.js.map +1 -1
  45. package/lib/services/dns-firewall.d.ts +2 -2
  46. package/lib/services/dns-firewall.d.ts.map +1 -1
  47. package/lib/services/dns-firewall.js +14 -11
  48. package/lib/services/dns-firewall.js.map +1 -1
  49. package/lib/services/dns.d.ts +4 -4
  50. package/lib/services/dns.d.ts.map +1 -1
  51. package/lib/services/dns.js +28 -22
  52. package/lib/services/dns.js.map +1 -1
  53. package/lib/services/durable-objects.d.ts +4 -4
  54. package/lib/services/durable-objects.d.ts.map +1 -1
  55. package/lib/services/durable-objects.js +25 -19
  56. package/lib/services/durable-objects.js.map +1 -1
  57. package/lib/services/email-routing.d.ts +4 -4
  58. package/lib/services/email-routing.d.ts.map +1 -1
  59. package/lib/services/email-routing.js +28 -22
  60. package/lib/services/email-routing.js.map +1 -1
  61. package/lib/services/email-security.d.ts +14 -14
  62. package/lib/services/email-security.d.ts.map +1 -1
  63. package/lib/services/email-security.js +98 -77
  64. package/lib/services/email-security.js.map +1 -1
  65. package/lib/services/filters.d.ts +2 -2
  66. package/lib/services/filters.d.ts.map +1 -1
  67. package/lib/services/filters.js +14 -11
  68. package/lib/services/filters.js.map +1 -1
  69. package/lib/services/firewall.d.ts +16 -16
  70. package/lib/services/firewall.d.ts.map +1 -1
  71. package/lib/services/firewall.js +112 -88
  72. package/lib/services/firewall.js.map +1 -1
  73. package/lib/services/healthchecks.d.ts +2 -2
  74. package/lib/services/healthchecks.d.ts.map +1 -1
  75. package/lib/services/healthchecks.js +14 -11
  76. package/lib/services/healthchecks.js.map +1 -1
  77. package/lib/services/images.d.ts +2 -2
  78. package/lib/services/images.d.ts.map +1 -1
  79. package/lib/services/images.js +14 -11
  80. package/lib/services/images.js.map +1 -1
  81. package/lib/services/intel.d.ts +4 -4
  82. package/lib/services/intel.d.ts.map +1 -1
  83. package/lib/services/intel.js +28 -22
  84. package/lib/services/intel.js.map +1 -1
  85. package/lib/services/kv.d.ts +4 -4
  86. package/lib/services/kv.d.ts.map +1 -1
  87. package/lib/services/kv.js +25 -19
  88. package/lib/services/kv.js.map +1 -1
  89. package/lib/services/load-balancers.d.ts +2 -2
  90. package/lib/services/load-balancers.d.ts.map +1 -1
  91. package/lib/services/load-balancers.js +14 -11
  92. package/lib/services/load-balancers.js.map +1 -1
  93. package/lib/services/magic-cloud-networking.d.ts +2 -2
  94. package/lib/services/magic-cloud-networking.d.ts.map +1 -1
  95. package/lib/services/magic-cloud-networking.js +14 -11
  96. package/lib/services/magic-cloud-networking.js.map +1 -1
  97. package/lib/services/memberships.d.ts +2 -2
  98. package/lib/services/memberships.d.ts.map +1 -1
  99. package/lib/services/memberships.js +14 -11
  100. package/lib/services/memberships.js.map +1 -1
  101. package/lib/services/origin-ca-certificates.d.ts +2 -2
  102. package/lib/services/origin-ca-certificates.d.ts.map +1 -1
  103. package/lib/services/origin-ca-certificates.js +14 -11
  104. package/lib/services/origin-ca-certificates.js.map +1 -1
  105. package/lib/services/pages.d.ts +4 -4
  106. package/lib/services/pages.d.ts.map +1 -1
  107. package/lib/services/pages.js +28 -22
  108. package/lib/services/pages.js.map +1 -1
  109. package/lib/services/queues.d.ts +2 -2
  110. package/lib/services/queues.d.ts.map +1 -1
  111. package/lib/services/queues.js +14 -11
  112. package/lib/services/queues.js.map +1 -1
  113. package/lib/services/r2.d.ts +68 -0
  114. package/lib/services/r2.d.ts.map +1 -1
  115. package/lib/services/r2.js +105 -0
  116. package/lib/services/r2.js.map +1 -1
  117. package/lib/services/radar.d.ts +4 -4
  118. package/lib/services/radar.d.ts.map +1 -1
  119. package/lib/services/radar.js +28 -22
  120. package/lib/services/radar.js.map +1 -1
  121. package/lib/services/rate-limits.d.ts +2 -2
  122. package/lib/services/rate-limits.d.ts.map +1 -1
  123. package/lib/services/rate-limits.js +14 -11
  124. package/lib/services/rate-limits.js.map +1 -1
  125. package/lib/services/resource-sharing.d.ts +6 -6
  126. package/lib/services/resource-sharing.d.ts.map +1 -1
  127. package/lib/services/resource-sharing.js +42 -33
  128. package/lib/services/resource-sharing.js.map +1 -1
  129. package/lib/services/rules.d.ts +2 -2
  130. package/lib/services/rules.d.ts.map +1 -1
  131. package/lib/services/rules.js +11 -8
  132. package/lib/services/rules.js.map +1 -1
  133. package/lib/services/rulesets.d.ts +2 -2
  134. package/lib/services/rulesets.d.ts.map +1 -1
  135. package/lib/services/rulesets.js +12 -9
  136. package/lib/services/rulesets.js.map +1 -1
  137. package/lib/services/rum.d.ts +2 -2
  138. package/lib/services/rum.d.ts.map +1 -1
  139. package/lib/services/rum.js +14 -11
  140. package/lib/services/rum.js.map +1 -1
  141. package/lib/services/schema-validation.d.ts +4 -4
  142. package/lib/services/schema-validation.d.ts.map +1 -1
  143. package/lib/services/schema-validation.js +28 -22
  144. package/lib/services/schema-validation.js.map +1 -1
  145. package/lib/services/secrets-store.d.ts +4 -4
  146. package/lib/services/secrets-store.d.ts.map +1 -1
  147. package/lib/services/secrets-store.js +28 -22
  148. package/lib/services/secrets-store.js.map +1 -1
  149. package/lib/services/security-center.d.ts +2 -2
  150. package/lib/services/security-center.d.ts.map +1 -1
  151. package/lib/services/security-center.js +14 -11
  152. package/lib/services/security-center.js.map +1 -1
  153. package/lib/services/snippets.d.ts +2 -2
  154. package/lib/services/snippets.d.ts.map +1 -1
  155. package/lib/services/snippets.js +14 -11
  156. package/lib/services/snippets.js.map +1 -1
  157. package/lib/services/spectrum.d.ts +2 -2
  158. package/lib/services/spectrum.d.ts.map +1 -1
  159. package/lib/services/spectrum.js +14 -11
  160. package/lib/services/spectrum.js.map +1 -1
  161. package/lib/services/speed.d.ts +2 -2
  162. package/lib/services/speed.d.ts.map +1 -1
  163. package/lib/services/speed.js +14 -11
  164. package/lib/services/speed.js.map +1 -1
  165. package/lib/services/token-validation.d.ts +4 -4
  166. package/lib/services/token-validation.d.ts.map +1 -1
  167. package/lib/services/token-validation.js +28 -22
  168. package/lib/services/token-validation.js.map +1 -1
  169. package/lib/services/turnstile.d.ts +2 -2
  170. package/lib/services/turnstile.d.ts.map +1 -1
  171. package/lib/services/turnstile.js +14 -11
  172. package/lib/services/turnstile.js.map +1 -1
  173. package/lib/services/user.d.ts +8 -8
  174. package/lib/services/user.d.ts.map +1 -1
  175. package/lib/services/user.js +56 -44
  176. package/lib/services/user.js.map +1 -1
  177. package/lib/services/waiting-rooms.d.ts +4 -4
  178. package/lib/services/waiting-rooms.d.ts.map +1 -1
  179. package/lib/services/waiting-rooms.js +28 -22
  180. package/lib/services/waiting-rooms.js.map +1 -1
  181. package/lib/services/workers.d.ts +17 -17
  182. package/lib/services/workers.d.ts.map +1 -1
  183. package/lib/services/workers.js +53 -44
  184. package/lib/services/workers.js.map +1 -1
  185. package/lib/services/workflows.d.ts +6 -6
  186. package/lib/services/workflows.d.ts.map +1 -1
  187. package/lib/services/workflows.js +42 -33
  188. package/lib/services/workflows.js.map +1 -1
  189. package/lib/services/zero-trust.d.ts +60 -60
  190. package/lib/services/zero-trust.d.ts.map +1 -1
  191. package/lib/services/zero-trust.js +416 -326
  192. package/lib/services/zero-trust.js.map +1 -1
  193. package/lib/services/zones.d.ts +2 -2
  194. package/lib/services/zones.d.ts.map +1 -1
  195. package/lib/services/zones.js +14 -11
  196. package/lib/services/zones.js.map +1 -1
  197. package/package.json +2 -2
  198. package/src/services/abuse-reports.ts +42 -28
  199. package/src/services/accounts.ts +94 -67
  200. package/src/services/ai-gateway.ts +101 -70
  201. package/src/services/ai.ts +19 -14
  202. package/src/services/alerting.ts +19 -14
  203. package/src/services/api-gateway.ts +105 -70
  204. package/src/services/audit-logs.ts +19 -14
  205. package/src/services/client-certificates.ts +21 -14
  206. package/src/services/custom-certificates.ts +21 -14
  207. package/src/services/custom-hostnames.ts +21 -14
  208. package/src/services/d1.ts +19 -14
  209. package/src/services/dns-firewall.ts +21 -14
  210. package/src/services/dns.ts +40 -28
  211. package/src/services/durable-objects.ts +39 -25
  212. package/src/services/email-routing.ts +38 -28
  213. package/src/services/email-security.ts +147 -98
  214. package/src/services/filters.ts +19 -14
  215. package/src/services/firewall.ts +162 -112
  216. package/src/services/healthchecks.ts +21 -14
  217. package/src/services/images.ts +19 -14
  218. package/src/services/intel.ts +40 -28
  219. package/src/services/kv.ts +39 -25
  220. package/src/services/load-balancers.ts +19 -14
  221. package/src/services/magic-cloud-networking.ts +19 -14
  222. package/src/services/memberships.ts +21 -14
  223. package/src/services/origin-ca-certificates.ts +21 -14
  224. package/src/services/pages.ts +40 -28
  225. package/src/services/queues.ts +21 -14
  226. package/src/services/r2.ts +241 -0
  227. package/src/services/radar.ts +42 -28
  228. package/src/services/rate-limits.ts +21 -14
  229. package/src/services/resource-sharing.ts +61 -42
  230. package/src/services/rules.ts +18 -11
  231. package/src/services/rulesets.ts +17 -12
  232. package/src/services/rum.ts +19 -14
  233. package/src/services/schema-validation.ts +40 -28
  234. package/src/services/secrets-store.ts +40 -28
  235. package/src/services/security-center.ts +19 -14
  236. package/src/services/snippets.ts +19 -14
  237. package/src/services/spectrum.ts +19 -14
  238. package/src/services/speed.ts +19 -14
  239. package/src/services/token-validation.ts +40 -28
  240. package/src/services/turnstile.ts +19 -14
  241. package/src/services/user.ts +80 -56
  242. package/src/services/waiting-rooms.ts +40 -28
  243. package/src/services/workers.ts +85 -64
  244. package/src/services/workflows.ts +57 -42
  245. package/src/services/zero-trust.ts +618 -416
  246. package/src/services/zones.ts +19 -14
@@ -80,12 +80,12 @@ export interface ListAuditLogsResponse {
80
80
  resource?: { id?: string | null; type?: string | null } | null;
81
81
  when?: string | null;
82
82
  }[];
83
- resultInfo: {
83
+ resultInfo?: {
84
84
  count?: number | null;
85
85
  page?: number | null;
86
86
  perPage?: number | null;
87
87
  totalCount?: number | null;
88
- };
88
+ } | null;
89
89
  }
90
90
 
91
91
  export const ListAuditLogsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
@@ -143,18 +143,23 @@ export const ListAuditLogsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
143
143
  when: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
144
144
  }),
145
145
  ),
146
- resultInfo: Schema.Struct({
147
- count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
148
- page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
149
- perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
150
- totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
151
- }).pipe(
152
- Schema.encodeKeys({
153
- count: "count",
154
- page: "page",
155
- perPage: "per_page",
156
- totalCount: "total_count",
157
- }),
146
+ resultInfo: Schema.optional(
147
+ Schema.Union([
148
+ Schema.Struct({
149
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
150
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
151
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
152
+ totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
153
+ }).pipe(
154
+ Schema.encodeKeys({
155
+ count: "count",
156
+ page: "page",
157
+ perPage: "per_page",
158
+ totalCount: "total_count",
159
+ }),
160
+ ),
161
+ Schema.Null,
162
+ ]),
158
163
  ),
159
164
  }).pipe(
160
165
  Schema.encodeKeys({ result: "result", resultInfo: "result_info" }),
@@ -202,12 +207,12 @@ export interface ListBillingHistoriesResponse {
202
207
  type: string;
203
208
  zone: { name?: string | null };
204
209
  }[];
205
- resultInfo: {
210
+ resultInfo?: {
206
211
  count?: number | null;
207
212
  page?: number | null;
208
213
  perPage?: number | null;
209
214
  totalCount?: number | null;
210
- };
215
+ } | null;
211
216
  }
212
217
 
213
218
  export const ListBillingHistoriesResponse =
@@ -237,18 +242,25 @@ export const ListBillingHistoriesResponse =
237
242
  }),
238
243
  ),
239
244
  ),
240
- resultInfo: Schema.Struct({
241
- count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
242
- page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
243
- perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
244
- totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
245
- }).pipe(
246
- Schema.encodeKeys({
247
- count: "count",
248
- page: "page",
249
- perPage: "per_page",
250
- totalCount: "total_count",
251
- }),
245
+ resultInfo: Schema.optional(
246
+ Schema.Union([
247
+ Schema.Struct({
248
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
249
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
250
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
251
+ totalCount: Schema.optional(
252
+ Schema.Union([Schema.Number, Schema.Null]),
253
+ ),
254
+ }).pipe(
255
+ Schema.encodeKeys({
256
+ count: "count",
257
+ page: "page",
258
+ perPage: "per_page",
259
+ totalCount: "total_count",
260
+ }),
261
+ ),
262
+ Schema.Null,
263
+ ]),
252
264
  ),
253
265
  }).pipe(
254
266
  Schema.encodeKeys({ result: "result", resultInfo: "result_info" }),
@@ -766,12 +778,12 @@ export interface ListOrganizationsResponse {
766
778
  roles?: string[] | null;
767
779
  status?: "member" | "invited" | null;
768
780
  }[];
769
- resultInfo: {
781
+ resultInfo?: {
770
782
  count?: number | null;
771
783
  page?: number | null;
772
784
  perPage?: number | null;
773
785
  totalCount?: number | null;
774
- };
786
+ } | null;
775
787
  }
776
788
 
777
789
  export const ListOrganizationsResponse =
@@ -791,18 +803,25 @@ export const ListOrganizationsResponse =
791
803
  ),
792
804
  }),
793
805
  ),
794
- resultInfo: Schema.Struct({
795
- count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
796
- page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
797
- perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
798
- totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
799
- }).pipe(
800
- Schema.encodeKeys({
801
- count: "count",
802
- page: "page",
803
- perPage: "per_page",
804
- totalCount: "total_count",
805
- }),
806
+ resultInfo: Schema.optional(
807
+ Schema.Union([
808
+ Schema.Struct({
809
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
810
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
811
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
812
+ totalCount: Schema.optional(
813
+ Schema.Union([Schema.Number, Schema.Null]),
814
+ ),
815
+ }).pipe(
816
+ Schema.encodeKeys({
817
+ count: "count",
818
+ page: "page",
819
+ perPage: "per_page",
820
+ totalCount: "total_count",
821
+ }),
822
+ ),
823
+ Schema.Null,
824
+ ]),
806
825
  ),
807
826
  }).pipe(
808
827
  Schema.encodeKeys({ result: "result", resultInfo: "result_info" }),
@@ -1345,12 +1364,12 @@ export interface ListTokensResponse {
1345
1364
  | null;
1346
1365
  status?: "active" | "disabled" | "expired" | null;
1347
1366
  }[];
1348
- resultInfo: {
1367
+ resultInfo?: {
1349
1368
  count?: number | null;
1350
1369
  page?: number | null;
1351
1370
  perPage?: number | null;
1352
1371
  totalCount?: number | null;
1353
- };
1372
+ } | null;
1354
1373
  }
1355
1374
 
1356
1375
  export const ListTokensResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
@@ -1444,18 +1463,23 @@ export const ListTokensResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1444
1463
  }),
1445
1464
  ),
1446
1465
  ),
1447
- resultInfo: Schema.Struct({
1448
- count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1449
- page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1450
- perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1451
- totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1452
- }).pipe(
1453
- Schema.encodeKeys({
1454
- count: "count",
1455
- page: "page",
1456
- perPage: "per_page",
1457
- totalCount: "total_count",
1458
- }),
1466
+ resultInfo: Schema.optional(
1467
+ Schema.Union([
1468
+ Schema.Struct({
1469
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1470
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1471
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1472
+ totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1473
+ }).pipe(
1474
+ Schema.encodeKeys({
1475
+ count: "count",
1476
+ page: "page",
1477
+ perPage: "per_page",
1478
+ totalCount: "total_count",
1479
+ }),
1480
+ ),
1481
+ Schema.Null,
1482
+ ]),
1459
1483
  ),
1460
1484
  }).pipe(
1461
1485
  Schema.encodeKeys({ result: "result", resultInfo: "result_info" }),
@@ -200,12 +200,12 @@ export interface ListEventsResponse {
200
200
  | "visible_managed"
201
201
  | null;
202
202
  }[];
203
- resultInfo: {
203
+ resultInfo?: {
204
204
  count?: number | null;
205
205
  page?: number | null;
206
206
  perPage?: number | null;
207
207
  totalCount?: number | null;
208
- };
208
+ } | null;
209
209
  }
210
210
 
211
211
  export const ListEventsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
@@ -284,18 +284,23 @@ export const ListEventsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
284
284
  }),
285
285
  ),
286
286
  ),
287
- resultInfo: Schema.Struct({
288
- count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
289
- page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
290
- perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
291
- totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
292
- }).pipe(
293
- Schema.encodeKeys({
294
- count: "count",
295
- page: "page",
296
- perPage: "per_page",
297
- totalCount: "total_count",
298
- }),
287
+ resultInfo: Schema.optional(
288
+ Schema.Union([
289
+ Schema.Struct({
290
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
291
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
292
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
293
+ totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
294
+ }).pipe(
295
+ Schema.encodeKeys({
296
+ count: "count",
297
+ page: "page",
298
+ perPage: "per_page",
299
+ totalCount: "total_count",
300
+ }),
301
+ ),
302
+ Schema.Null,
303
+ ]),
299
304
  ),
300
305
  }).pipe(
301
306
  Schema.encodeKeys({ result: "result", resultInfo: "result_info" }),
@@ -2231,12 +2236,12 @@ export interface ListWaitingRoomsResponse {
2231
2236
  | "visible_managed"
2232
2237
  | null;
2233
2238
  }[];
2234
- resultInfo: {
2239
+ resultInfo?: {
2235
2240
  count?: number | null;
2236
2241
  page?: number | null;
2237
2242
  perPage?: number | null;
2238
2243
  totalCount?: number | null;
2239
- };
2244
+ } | null;
2240
2245
  }
2241
2246
 
2242
2247
  export const ListWaitingRoomsResponse =
@@ -2420,18 +2425,25 @@ export const ListWaitingRoomsResponse =
2420
2425
  }),
2421
2426
  ),
2422
2427
  ),
2423
- resultInfo: Schema.Struct({
2424
- count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2425
- page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2426
- perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2427
- totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2428
- }).pipe(
2429
- Schema.encodeKeys({
2430
- count: "count",
2431
- page: "page",
2432
- perPage: "per_page",
2433
- totalCount: "total_count",
2434
- }),
2428
+ resultInfo: Schema.optional(
2429
+ Schema.Union([
2430
+ Schema.Struct({
2431
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2432
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2433
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2434
+ totalCount: Schema.optional(
2435
+ Schema.Union([Schema.Number, Schema.Null]),
2436
+ ),
2437
+ }).pipe(
2438
+ Schema.encodeKeys({
2439
+ count: "count",
2440
+ page: "page",
2441
+ perPage: "per_page",
2442
+ totalCount: "total_count",
2443
+ }),
2444
+ ),
2445
+ Schema.Null,
2446
+ ]),
2435
2447
  ),
2436
2448
  }).pipe(
2437
2449
  Schema.encodeKeys({ result: "result", resultInfo: "result_info" }),
@@ -379,12 +379,12 @@ export const ListBetaWorkersRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
379
379
 
380
380
  export interface ListBetaWorkersResponse {
381
381
  result: { id: string; name: string }[];
382
- resultInfo: {
382
+ resultInfo?: {
383
383
  count?: number | null;
384
384
  page?: number | null;
385
385
  perPage?: number | null;
386
386
  totalCount?: number | null;
387
- };
387
+ } | null;
388
388
  }
389
389
 
390
390
  export const ListBetaWorkersResponse =
@@ -395,18 +395,25 @@ export const ListBetaWorkersResponse =
395
395
  name: Schema.String,
396
396
  }),
397
397
  ),
398
- resultInfo: Schema.Struct({
399
- count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
400
- page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
401
- perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
402
- totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
403
- }).pipe(
404
- Schema.encodeKeys({
405
- count: "count",
406
- page: "page",
407
- perPage: "per_page",
408
- totalCount: "total_count",
409
- }),
398
+ resultInfo: Schema.optional(
399
+ Schema.Union([
400
+ Schema.Struct({
401
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
402
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
403
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
404
+ totalCount: Schema.optional(
405
+ Schema.Union([Schema.Number, Schema.Null]),
406
+ ),
407
+ }).pipe(
408
+ Schema.encodeKeys({
409
+ count: "count",
410
+ page: "page",
411
+ perPage: "per_page",
412
+ totalCount: "total_count",
413
+ }),
414
+ ),
415
+ Schema.Null,
416
+ ]),
410
417
  ),
411
418
  }).pipe(
412
419
  Schema.encodeKeys({ result: "result", resultInfo: "result_info" }),
@@ -975,7 +982,7 @@ export interface GetBetaWorkerVersionResponse {
975
982
  versionId?: string | null;
976
983
  }
977
984
  | { name: string; type: "images" }
978
- | { json: string; name: string; type: "json" }
985
+ | { json: unknown; name: string; type: "json" }
979
986
  | { name: string; namespaceId: string; type: "kv_namespace" }
980
987
  | { certificateId: string; name: string; type: "mtls_certificate" }
981
988
  | { name: string; text: string; type: "plain_text" }
@@ -1244,7 +1251,7 @@ export const GetBetaWorkerVersionResponse =
1244
1251
  type: Schema.Literal("hyperdrive"),
1245
1252
  }),
1246
1253
  Schema.Struct({
1247
- json: Schema.String,
1254
+ json: Schema.Unknown,
1248
1255
  name: Schema.String,
1249
1256
  type: Schema.Literal("json"),
1250
1257
  }),
@@ -1714,7 +1721,7 @@ export interface ListBetaWorkerVersionsResponse {
1714
1721
  versionId?: string | null;
1715
1722
  }
1716
1723
  | { name: string; type: "images" }
1717
- | { json: string; name: string; type: "json" }
1724
+ | { json: unknown; name: string; type: "json" }
1718
1725
  | { name: string; namespaceId: string; type: "kv_namespace" }
1719
1726
  | { certificateId: string; name: string; type: "mtls_certificate" }
1720
1727
  | { name: string; text: string; type: "plain_text" }
@@ -1813,12 +1820,12 @@ export interface ListBetaWorkerVersionsResponse {
1813
1820
  startupTimeMs?: number | null;
1814
1821
  usageModel?: "standard" | "bundled" | "unbound" | null;
1815
1822
  }[];
1816
- resultInfo: {
1823
+ resultInfo?: {
1817
1824
  count?: number | null;
1818
1825
  page?: number | null;
1819
1826
  perPage?: number | null;
1820
1827
  totalCount?: number | null;
1821
- };
1828
+ } | null;
1822
1829
  }
1823
1830
 
1824
1831
  export const ListBetaWorkerVersionsResponse =
@@ -1988,7 +1995,7 @@ export const ListBetaWorkerVersionsResponse =
1988
1995
  type: Schema.Literal("hyperdrive"),
1989
1996
  }),
1990
1997
  Schema.Struct({
1991
- json: Schema.String,
1998
+ json: Schema.Unknown,
1992
1999
  name: Schema.String,
1993
2000
  type: Schema.Literal("json"),
1994
2001
  }),
@@ -2373,18 +2380,25 @@ export const ListBetaWorkerVersionsResponse =
2373
2380
  }),
2374
2381
  ),
2375
2382
  ),
2376
- resultInfo: Schema.Struct({
2377
- count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2378
- page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2379
- perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2380
- totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2381
- }).pipe(
2382
- Schema.encodeKeys({
2383
- count: "count",
2384
- page: "page",
2385
- perPage: "per_page",
2386
- totalCount: "total_count",
2387
- }),
2383
+ resultInfo: Schema.optional(
2384
+ Schema.Union([
2385
+ Schema.Struct({
2386
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2387
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2388
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2389
+ totalCount: Schema.optional(
2390
+ Schema.Union([Schema.Number, Schema.Null]),
2391
+ ),
2392
+ }).pipe(
2393
+ Schema.encodeKeys({
2394
+ count: "count",
2395
+ page: "page",
2396
+ perPage: "per_page",
2397
+ totalCount: "total_count",
2398
+ }),
2399
+ ),
2400
+ Schema.Null,
2401
+ ]),
2388
2402
  ),
2389
2403
  }).pipe(
2390
2404
  Schema.encodeKeys({ result: "result", resultInfo: "result_info" }),
@@ -2459,7 +2473,7 @@ export interface CreateBetaWorkerVersionRequest {
2459
2473
  | { id: string; name: string; type: "hyperdrive" }
2460
2474
  | { name: string; type: "inherit"; oldName?: string; versionId?: string }
2461
2475
  | { name: string; type: "images" }
2462
- | { json: string; name: string; type: "json" }
2476
+ | { json: unknown; name: string; type: "json" }
2463
2477
  | { name: string; namespaceId: string; type: "kv_namespace" }
2464
2478
  | { certificateId: string; name: string; type: "mtls_certificate" }
2465
2479
  | { name: string; text: string; type: "plain_text" }
@@ -2692,7 +2706,7 @@ export const CreateBetaWorkerVersionRequest =
2692
2706
  type: Schema.Literal("hyperdrive"),
2693
2707
  }),
2694
2708
  Schema.Struct({
2695
- json: Schema.String,
2709
+ json: Schema.Unknown,
2696
2710
  name: Schema.String,
2697
2711
  type: Schema.Literal("json"),
2698
2712
  }),
@@ -3089,7 +3103,7 @@ export interface CreateBetaWorkerVersionResponse {
3089
3103
  versionId?: string | null;
3090
3104
  }
3091
3105
  | { name: string; type: "images" }
3092
- | { json: string; name: string; type: "json" }
3106
+ | { json: unknown; name: string; type: "json" }
3093
3107
  | { name: string; namespaceId: string; type: "kv_namespace" }
3094
3108
  | { certificateId: string; name: string; type: "mtls_certificate" }
3095
3109
  | { name: string; text: string; type: "plain_text" }
@@ -3358,7 +3372,7 @@ export const CreateBetaWorkerVersionResponse =
3358
3372
  type: Schema.Literal("hyperdrive"),
3359
3373
  }),
3360
3374
  Schema.Struct({
3361
- json: Schema.String,
3375
+ json: Schema.Unknown,
3362
3376
  name: Schema.String,
3363
3377
  type: Schema.Literal("json"),
3364
3378
  }),
@@ -6553,7 +6567,7 @@ export interface PutScriptRequest {
6553
6567
  | { id: string; name: string; type: "hyperdrive" }
6554
6568
  | { name: string; type: "inherit"; oldName?: string; versionId?: string }
6555
6569
  | { name: string; type: "images" }
6556
- | { json: string; name: string; type: "json" }
6570
+ | { json: unknown; name: string; type: "json" }
6557
6571
  | { name: string; namespaceId: string; type: "kv_namespace" }
6558
6572
  | { certificateId: string; name: string; type: "mtls_certificate" }
6559
6573
  | { name: string; text: string; type: "plain_text" }
@@ -6826,7 +6840,7 @@ export const PutScriptRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
6826
6840
  type: Schema.Literal("hyperdrive"),
6827
6841
  }),
6828
6842
  Schema.Struct({
6829
- json: Schema.String,
6843
+ json: Schema.Unknown,
6830
6844
  name: Schema.String,
6831
6845
  type: Schema.Literal("json"),
6832
6846
  }),
@@ -9655,7 +9669,7 @@ export interface GetScriptScriptAndVersionSettingResponse {
9655
9669
  versionId?: string | null;
9656
9670
  }
9657
9671
  | { name: string; type: "images" }
9658
- | { json: string; name: string; type: "json" }
9672
+ | { json: unknown; name: string; type: "json" }
9659
9673
  | { name: string; namespaceId: string; type: "kv_namespace" }
9660
9674
  | { certificateId: string; name: string; type: "mtls_certificate" }
9661
9675
  | { name: string; text: string; type: "plain_text" }
@@ -9846,7 +9860,7 @@ export const GetScriptScriptAndVersionSettingResponse =
9846
9860
  type: Schema.Literal("hyperdrive"),
9847
9861
  }),
9848
9862
  Schema.Struct({
9849
- json: Schema.String,
9863
+ json: Schema.Unknown,
9850
9864
  name: Schema.String,
9851
9865
  type: Schema.Literal("json"),
9852
9866
  }),
@@ -10233,7 +10247,7 @@ export interface PatchScriptScriptAndVersionSettingRequest {
10233
10247
  | { id: string; name: string; type: "hyperdrive" }
10234
10248
  | { name: string; type: "inherit"; oldName?: string; versionId?: string }
10235
10249
  | { name: string; type: "images" }
10236
- | { json: string; name: string; type: "json" }
10250
+ | { json: unknown; name: string; type: "json" }
10237
10251
  | { name: string; namespaceId: string; type: "kv_namespace" }
10238
10252
  | { certificateId: string; name: string; type: "mtls_certificate" }
10239
10253
  | { name: string; text: string; type: "plain_text" }
@@ -10438,7 +10452,7 @@ export const PatchScriptScriptAndVersionSettingRequest =
10438
10452
  type: Schema.Literal("hyperdrive"),
10439
10453
  }),
10440
10454
  Schema.Struct({
10441
- json: Schema.String,
10455
+ json: Schema.Unknown,
10442
10456
  name: Schema.String,
10443
10457
  type: Schema.Literal("json"),
10444
10458
  }),
@@ -10866,7 +10880,7 @@ export interface PatchScriptScriptAndVersionSettingResponse {
10866
10880
  versionId?: string | null;
10867
10881
  }
10868
10882
  | { name: string; type: "images" }
10869
- | { json: string; name: string; type: "json" }
10883
+ | { json: unknown; name: string; type: "json" }
10870
10884
  | { name: string; namespaceId: string; type: "kv_namespace" }
10871
10885
  | { certificateId: string; name: string; type: "mtls_certificate" }
10872
10886
  | { name: string; text: string; type: "plain_text" }
@@ -11051,7 +11065,7 @@ export const PatchScriptScriptAndVersionSettingResponse =
11051
11065
  type: Schema.Literal("hyperdrive"),
11052
11066
  }),
11053
11067
  Schema.Struct({
11054
- json: Schema.String,
11068
+ json: Schema.Unknown,
11055
11069
  name: Schema.String,
11056
11070
  type: Schema.Literal("json"),
11057
11071
  }),
@@ -12572,7 +12586,7 @@ export interface GetScriptVersionResponse {
12572
12586
  versionId?: string | null;
12573
12587
  }
12574
12588
  | { name: string; type: "images" }
12575
- | { json: string; name: string; type: "json" }
12589
+ | { json: unknown; name: string; type: "json" }
12576
12590
  | { name: string; namespaceId: string; type: "kv_namespace" }
12577
12591
  | { certificateId: string; name: string; type: "mtls_certificate" }
12578
12592
  | { name: string; text: string; type: "plain_text" }
@@ -12766,7 +12780,7 @@ export const GetScriptVersionResponse =
12766
12780
  type: Schema.Literal("hyperdrive"),
12767
12781
  }),
12768
12782
  Schema.Struct({
12769
- json: Schema.String,
12783
+ json: Schema.Unknown,
12770
12784
  name: Schema.String,
12771
12785
  type: Schema.Literal("json"),
12772
12786
  }),
@@ -13183,12 +13197,12 @@ export interface ListScriptVersionsResponse {
13183
13197
  }[]
13184
13198
  | null;
13185
13199
  };
13186
- resultInfo: {
13200
+ resultInfo?: {
13187
13201
  count?: number | null;
13188
13202
  page?: number | null;
13189
13203
  perPage?: number | null;
13190
13204
  totalCount?: number | null;
13191
- };
13205
+ } | null;
13192
13206
  }
13193
13207
 
13194
13208
  export const ListScriptVersionsResponse =
@@ -13256,18 +13270,25 @@ export const ListScriptVersionsResponse =
13256
13270
  ]),
13257
13271
  ),
13258
13272
  }),
13259
- resultInfo: Schema.Struct({
13260
- count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
13261
- page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
13262
- perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
13263
- totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
13264
- }).pipe(
13265
- Schema.encodeKeys({
13266
- count: "count",
13267
- page: "page",
13268
- perPage: "per_page",
13269
- totalCount: "total_count",
13270
- }),
13273
+ resultInfo: Schema.optional(
13274
+ Schema.Union([
13275
+ Schema.Struct({
13276
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
13277
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
13278
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
13279
+ totalCount: Schema.optional(
13280
+ Schema.Union([Schema.Number, Schema.Null]),
13281
+ ),
13282
+ }).pipe(
13283
+ Schema.encodeKeys({
13284
+ count: "count",
13285
+ page: "page",
13286
+ perPage: "per_page",
13287
+ totalCount: "total_count",
13288
+ }),
13289
+ ),
13290
+ Schema.Null,
13291
+ ]),
13271
13292
  ),
13272
13293
  }).pipe(
13273
13294
  Schema.encodeKeys({ result: "result", resultInfo: "result_info" }),
@@ -13332,7 +13353,7 @@ export interface CreateScriptVersionRequest {
13332
13353
  | { id: string; name: string; type: "hyperdrive" }
13333
13354
  | { name: string; type: "inherit"; oldName?: string; versionId?: string }
13334
13355
  | { name: string; type: "images" }
13335
- | { json: string; name: string; type: "json" }
13356
+ | { json: unknown; name: string; type: "json" }
13336
13357
  | { name: string; namespaceId: string; type: "kv_namespace" }
13337
13358
  | { certificateId: string; name: string; type: "mtls_certificate" }
13338
13359
  | { name: string; text: string; type: "plain_text" }
@@ -13502,7 +13523,7 @@ export const CreateScriptVersionRequest =
13502
13523
  type: Schema.Literal("hyperdrive"),
13503
13524
  }),
13504
13525
  Schema.Struct({
13505
- json: Schema.String,
13526
+ json: Schema.Unknown,
13506
13527
  name: Schema.String,
13507
13528
  type: Schema.Literal("json"),
13508
13529
  }),
@@ -13756,7 +13777,7 @@ export interface CreateScriptVersionResponse {
13756
13777
  versionId?: string | null;
13757
13778
  }
13758
13779
  | { name: string; type: "images" }
13759
- | { json: string; name: string; type: "json" }
13780
+ | { json: unknown; name: string; type: "json" }
13760
13781
  | { name: string; namespaceId: string; type: "kv_namespace" }
13761
13782
  | { certificateId: string; name: string; type: "mtls_certificate" }
13762
13783
  | { name: string; text: string; type: "plain_text" }
@@ -13952,7 +13973,7 @@ export const CreateScriptVersionResponse =
13952
13973
  type: Schema.Literal("hyperdrive"),
13953
13974
  }),
13954
13975
  Schema.Struct({
13955
- json: Schema.String,
13976
+ json: Schema.Unknown,
13956
13977
  name: Schema.String,
13957
13978
  type: Schema.Literal("json"),
13958
13979
  }),