@distilled.cloud/cloudflare 0.6.0 → 0.7.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 (261) hide show
  1. package/lib/services/accounts.d.ts +901 -36
  2. package/lib/services/accounts.d.ts.map +1 -1
  3. package/lib/services/accounts.js +1386 -32
  4. package/lib/services/accounts.js.map +1 -1
  5. package/lib/services/addressing.d.ts +8 -2
  6. package/lib/services/addressing.d.ts.map +1 -1
  7. package/lib/services/addressing.js +14 -2
  8. package/lib/services/addressing.js.map +1 -1
  9. package/lib/services/ai-gateway.d.ts.map +1 -1
  10. package/lib/services/ai-gateway.js +7 -7
  11. package/lib/services/ai-gateway.js.map +1 -1
  12. package/lib/services/aisearch.d.ts.map +1 -1
  13. package/lib/services/aisearch.js +24 -9
  14. package/lib/services/aisearch.js.map +1 -1
  15. package/lib/services/alerting.js +2 -2
  16. package/lib/services/alerting.js.map +1 -1
  17. package/lib/services/api-gateway.d.ts +114 -16
  18. package/lib/services/api-gateway.d.ts.map +1 -1
  19. package/lib/services/api-gateway.js +187 -15
  20. package/lib/services/api-gateway.js.map +1 -1
  21. package/lib/services/audit-logs.d.ts +63 -3
  22. package/lib/services/audit-logs.d.ts.map +1 -1
  23. package/lib/services/audit-logs.js +62 -3
  24. package/lib/services/audit-logs.js.map +1 -1
  25. package/lib/services/bot-management.d.ts +54 -8
  26. package/lib/services/bot-management.d.ts.map +1 -1
  27. package/lib/services/bot-management.js +128 -16
  28. package/lib/services/bot-management.js.map +1 -1
  29. package/lib/services/brand-protection.d.ts.map +1 -1
  30. package/lib/services/brand-protection.js +26 -8
  31. package/lib/services/brand-protection.js.map +1 -1
  32. package/lib/services/browser-rendering.d.ts.map +1 -1
  33. package/lib/services/browser-rendering.js +13 -10
  34. package/lib/services/browser-rendering.js.map +1 -1
  35. package/lib/services/cloudforce-one.d.ts +61 -6
  36. package/lib/services/cloudforce-one.d.ts.map +1 -1
  37. package/lib/services/cloudforce-one.js +107 -6
  38. package/lib/services/cloudforce-one.js.map +1 -1
  39. package/lib/services/custom-certificates.d.ts +145 -8
  40. package/lib/services/custom-certificates.d.ts.map +1 -1
  41. package/lib/services/custom-certificates.js +226 -7
  42. package/lib/services/custom-certificates.js.map +1 -1
  43. package/lib/services/custom-hostnames.d.ts +8 -8
  44. package/lib/services/custom-hostnames.d.ts.map +1 -1
  45. package/lib/services/custom-hostnames.js +17 -14
  46. package/lib/services/custom-hostnames.js.map +1 -1
  47. package/lib/services/d1.d.ts +68 -8
  48. package/lib/services/d1.d.ts.map +1 -1
  49. package/lib/services/d1.js +96 -8
  50. package/lib/services/d1.js.map +1 -1
  51. package/lib/services/dns-firewall.d.ts +57 -4
  52. package/lib/services/dns-firewall.d.ts.map +1 -1
  53. package/lib/services/dns-firewall.js +86 -5
  54. package/lib/services/dns-firewall.js.map +1 -1
  55. package/lib/services/dns.d.ts +85 -745
  56. package/lib/services/dns.d.ts.map +1 -1
  57. package/lib/services/dns.js +118 -1424
  58. package/lib/services/dns.js.map +1 -1
  59. package/lib/services/email-routing.d.ts +59 -7
  60. package/lib/services/email-routing.d.ts.map +1 -1
  61. package/lib/services/email-routing.js +165 -7
  62. package/lib/services/email-routing.js.map +1 -1
  63. package/lib/services/firewall.d.ts +228 -39
  64. package/lib/services/firewall.d.ts.map +1 -1
  65. package/lib/services/firewall.js +220 -33
  66. package/lib/services/firewall.js.map +1 -1
  67. package/lib/services/healthchecks.d.ts +112 -6
  68. package/lib/services/healthchecks.d.ts.map +1 -1
  69. package/lib/services/healthchecks.js +248 -14
  70. package/lib/services/healthchecks.js.map +1 -1
  71. package/lib/services/hostnames.d.ts +5 -5
  72. package/lib/services/hostnames.d.ts.map +1 -1
  73. package/lib/services/hostnames.js +16 -4
  74. package/lib/services/hostnames.js.map +1 -1
  75. package/lib/services/hyperdrive.d.ts +223 -11
  76. package/lib/services/hyperdrive.d.ts.map +1 -1
  77. package/lib/services/hyperdrive.js +351 -11
  78. package/lib/services/hyperdrive.js.map +1 -1
  79. package/lib/services/iam.d.ts +62 -2
  80. package/lib/services/iam.d.ts.map +1 -1
  81. package/lib/services/iam.js +82 -11
  82. package/lib/services/iam.js.map +1 -1
  83. package/lib/services/images.d.ts +9 -1
  84. package/lib/services/images.d.ts.map +1 -1
  85. package/lib/services/images.js +12 -1
  86. package/lib/services/images.js.map +1 -1
  87. package/lib/services/intel.d.ts +4 -4
  88. package/lib/services/intel.d.ts.map +1 -1
  89. package/lib/services/intel.js +2 -3
  90. package/lib/services/intel.js.map +1 -1
  91. package/lib/services/kv.d.ts.map +1 -1
  92. package/lib/services/kv.js +2 -2
  93. package/lib/services/kv.js.map +1 -1
  94. package/lib/services/load-balancers.d.ts +537 -108
  95. package/lib/services/load-balancers.d.ts.map +1 -1
  96. package/lib/services/load-balancers.js +1266 -161
  97. package/lib/services/load-balancers.js.map +1 -1
  98. package/lib/services/logpush.d.ts +153 -9
  99. package/lib/services/logpush.d.ts.map +1 -1
  100. package/lib/services/logpush.js +246 -9
  101. package/lib/services/logpush.js.map +1 -1
  102. package/lib/services/magic-cloud-networking.d.ts.map +1 -1
  103. package/lib/services/magic-cloud-networking.js +54 -30
  104. package/lib/services/magic-cloud-networking.js.map +1 -1
  105. package/lib/services/magic-network-monitoring.d.ts +46 -5
  106. package/lib/services/magic-network-monitoring.d.ts.map +1 -1
  107. package/lib/services/magic-network-monitoring.js +79 -5
  108. package/lib/services/magic-network-monitoring.js.map +1 -1
  109. package/lib/services/magic-transit.d.ts +127 -21
  110. package/lib/services/magic-transit.d.ts.map +1 -1
  111. package/lib/services/magic-transit.js +291 -29
  112. package/lib/services/magic-transit.js.map +1 -1
  113. package/lib/services/memberships.d.ts +248 -52
  114. package/lib/services/memberships.d.ts.map +1 -1
  115. package/lib/services/memberships.js +360 -39
  116. package/lib/services/memberships.js.map +1 -1
  117. package/lib/services/page-rules.d.ts +432 -8
  118. package/lib/services/page-rules.d.ts.map +1 -1
  119. package/lib/services/page-rules.js +877 -33
  120. package/lib/services/page-rules.js.map +1 -1
  121. package/lib/services/pages.d.ts +457 -297
  122. package/lib/services/pages.d.ts.map +1 -1
  123. package/lib/services/pages.js +1366 -491
  124. package/lib/services/pages.js.map +1 -1
  125. package/lib/services/pipelines.d.ts +96 -76
  126. package/lib/services/pipelines.d.ts.map +1 -1
  127. package/lib/services/pipelines.js +145 -197
  128. package/lib/services/pipelines.js.map +1 -1
  129. package/lib/services/queues.d.ts +228 -12
  130. package/lib/services/queues.d.ts.map +1 -1
  131. package/lib/services/queues.js +487 -11
  132. package/lib/services/queues.js.map +1 -1
  133. package/lib/services/radar.d.ts +82 -18
  134. package/lib/services/radar.d.ts.map +1 -1
  135. package/lib/services/radar.js +111 -47
  136. package/lib/services/radar.js.map +1 -1
  137. package/lib/services/realtime-kit.d.ts +650 -334
  138. package/lib/services/realtime-kit.d.ts.map +1 -1
  139. package/lib/services/realtime-kit.js +1472 -693
  140. package/lib/services/realtime-kit.js.map +1 -1
  141. package/lib/services/request-tracers.d.ts +12 -1
  142. package/lib/services/request-tracers.d.ts.map +1 -1
  143. package/lib/services/request-tracers.js +28 -3
  144. package/lib/services/request-tracers.js.map +1 -1
  145. package/lib/services/rules.d.ts +65 -10
  146. package/lib/services/rules.d.ts.map +1 -1
  147. package/lib/services/rules.js +102 -8
  148. package/lib/services/rules.js.map +1 -1
  149. package/lib/services/rulesets.d.ts +7892 -1806
  150. package/lib/services/rulesets.d.ts.map +1 -1
  151. package/lib/services/rulesets.js +18720 -4149
  152. package/lib/services/rulesets.js.map +1 -1
  153. package/lib/services/rum.d.ts +45 -5
  154. package/lib/services/rum.d.ts.map +1 -1
  155. package/lib/services/rum.js +80 -4
  156. package/lib/services/rum.js.map +1 -1
  157. package/lib/services/schema-validation.js +2 -2
  158. package/lib/services/schema-validation.js.map +1 -1
  159. package/lib/services/spectrum.d.ts +139 -33
  160. package/lib/services/spectrum.d.ts.map +1 -1
  161. package/lib/services/spectrum.js +190 -34
  162. package/lib/services/spectrum.js.map +1 -1
  163. package/lib/services/speed.d.ts +345 -24
  164. package/lib/services/speed.d.ts.map +1 -1
  165. package/lib/services/speed.js +785 -19
  166. package/lib/services/speed.js.map +1 -1
  167. package/lib/services/ssl.d.ts +6 -6
  168. package/lib/services/ssl.d.ts.map +1 -1
  169. package/lib/services/ssl.js +5 -5
  170. package/lib/services/ssl.js.map +1 -1
  171. package/lib/services/stream.d.ts +171 -17
  172. package/lib/services/stream.d.ts.map +1 -1
  173. package/lib/services/stream.js +164 -11
  174. package/lib/services/stream.js.map +1 -1
  175. package/lib/services/token-validation.d.ts +16 -2
  176. package/lib/services/token-validation.d.ts.map +1 -1
  177. package/lib/services/token-validation.js +32 -2
  178. package/lib/services/token-validation.js.map +1 -1
  179. package/lib/services/url-scanner.d.ts +43 -11
  180. package/lib/services/url-scanner.d.ts.map +1 -1
  181. package/lib/services/url-scanner.js +46 -11
  182. package/lib/services/url-scanner.js.map +1 -1
  183. package/lib/services/user.d.ts +312 -21
  184. package/lib/services/user.d.ts.map +1 -1
  185. package/lib/services/user.js +442 -19
  186. package/lib/services/user.js.map +1 -1
  187. package/lib/services/workers-for-platforms.d.ts +223 -13
  188. package/lib/services/workers-for-platforms.d.ts.map +1 -1
  189. package/lib/services/workers-for-platforms.js +481 -13
  190. package/lib/services/workers-for-platforms.js.map +1 -1
  191. package/lib/services/workers.d.ts +345 -31
  192. package/lib/services/workers.d.ts.map +1 -1
  193. package/lib/services/workers.js +649 -34
  194. package/lib/services/workers.js.map +1 -1
  195. package/lib/services/zaraz.d.ts +212 -11
  196. package/lib/services/zaraz.d.ts.map +1 -1
  197. package/lib/services/zaraz.js +311 -30
  198. package/lib/services/zaraz.js.map +1 -1
  199. package/lib/services/zero-trust.d.ts +19333 -1905
  200. package/lib/services/zero-trust.d.ts.map +1 -1
  201. package/lib/services/zero-trust.js +30269 -5710
  202. package/lib/services/zero-trust.js.map +1 -1
  203. package/lib/services/zones.d.ts +61 -7
  204. package/lib/services/zones.d.ts.map +1 -1
  205. package/lib/services/zones.js +188 -7
  206. package/lib/services/zones.js.map +1 -1
  207. package/package.json +2 -2
  208. package/src/services/accounts.ts +2897 -63
  209. package/src/services/addressing.ts +28 -4
  210. package/src/services/ai-gateway.ts +9 -7
  211. package/src/services/aisearch.ts +28 -9
  212. package/src/services/alerting.ts +2 -2
  213. package/src/services/api-gateway.ts +410 -27
  214. package/src/services/audit-logs.ts +135 -5
  215. package/src/services/bot-management.ts +282 -24
  216. package/src/services/brand-protection.ts +28 -8
  217. package/src/services/browser-rendering.ts +31 -11
  218. package/src/services/cloudforce-one.ts +201 -9
  219. package/src/services/custom-certificates.ts +405 -14
  220. package/src/services/custom-hostnames.ts +29 -22
  221. package/src/services/d1.ts +180 -12
  222. package/src/services/dns-firewall.ts +163 -7
  223. package/src/services/dns.ts +213 -2389
  224. package/src/services/email-routing.ts +346 -12
  225. package/src/services/firewall.ts +556 -72
  226. package/src/services/healthchecks.ts +463 -18
  227. package/src/services/hostnames.ts +21 -9
  228. package/src/services/hyperdrive.ts +730 -17
  229. package/src/services/iam.ts +228 -24
  230. package/src/services/images.ts +29 -2
  231. package/src/services/intel.ts +6 -5
  232. package/src/services/kv.ts +6 -2
  233. package/src/services/load-balancers.ts +2387 -294
  234. package/src/services/logpush.ts +659 -15
  235. package/src/services/magic-cloud-networking.ts +74 -30
  236. package/src/services/magic-network-monitoring.ts +170 -8
  237. package/src/services/magic-transit.ts +631 -62
  238. package/src/services/memberships.ts +710 -91
  239. package/src/services/page-rules.ts +1592 -88
  240. package/src/services/pages.ts +2011 -1098
  241. package/src/services/pipelines.ts +285 -331
  242. package/src/services/queues.ts +1110 -22
  243. package/src/services/radar.ts +128 -64
  244. package/src/services/realtime-kit.ts +2829 -1603
  245. package/src/services/request-tracers.ts +54 -4
  246. package/src/services/rules.ts +214 -18
  247. package/src/services/rulesets.ts +34524 -6913
  248. package/src/services/rum.ts +187 -9
  249. package/src/services/schema-validation.ts +2 -2
  250. package/src/services/spectrum.ts +357 -67
  251. package/src/services/speed.ts +1845 -42
  252. package/src/services/ssl.ts +11 -11
  253. package/src/services/stream.ts +397 -22
  254. package/src/services/token-validation.ts +64 -4
  255. package/src/services/url-scanner.ts +92 -20
  256. package/src/services/user.ts +973 -34
  257. package/src/services/workers-for-platforms.ts +1012 -39
  258. package/src/services/workers.ts +1472 -120
  259. package/src/services/zaraz.ts +640 -37
  260. package/src/services/zero-trust.ts +55498 -12667
  261. package/src/services/zones.ts +360 -14
@@ -57,10 +57,10 @@ export interface PutCertificatePackCertificateResponse {
57
57
  id?: string | null;
58
58
  bundleMethod?: "ubiquitous" | "optimal" | "force" | null;
59
59
  certificateAuthority?:
60
+ | "digicert"
60
61
  | "google"
61
62
  | "lets_encrypt"
62
63
  | "ssl_com"
63
- | "digicert"
64
64
  | null;
65
65
  customCertificate?: string | null;
66
66
  customCsrId?: string | null;
@@ -171,7 +171,7 @@ export const PutCertificatePackCertificateResponse =
171
171
  ),
172
172
  certificateAuthority: Schema.optional(
173
173
  Schema.Union([
174
- Schema.Literals(["google", "lets_encrypt", "ssl_com", "digicert"]),
174
+ Schema.Literals(["digicert", "google", "lets_encrypt", "ssl_com"]),
175
175
  Schema.Null,
176
176
  ]),
177
177
  ),
@@ -323,7 +323,7 @@ export const PutCertificatePackCertificateResponse =
323
323
  ),
324
324
  createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
325
325
  customMetadata: Schema.optional(
326
- Schema.Union([Schema.Struct({}), Schema.Null]),
326
+ Schema.Union([Schema.Record(Schema.String, Schema.Unknown), Schema.Null]),
327
327
  ),
328
328
  customOriginServer: Schema.optional(
329
329
  Schema.Union([Schema.String, Schema.Null]),
@@ -487,10 +487,10 @@ export interface GetCustomHostnameResponse {
487
487
  id?: string | null;
488
488
  bundleMethod?: "ubiquitous" | "optimal" | "force" | null;
489
489
  certificateAuthority?:
490
+ | "digicert"
490
491
  | "google"
491
492
  | "lets_encrypt"
492
493
  | "ssl_com"
493
- | "digicert"
494
494
  | null;
495
495
  customCertificate?: string | null;
496
496
  customCsrId?: string | null;
@@ -601,7 +601,7 @@ export const GetCustomHostnameResponse =
601
601
  ),
602
602
  certificateAuthority: Schema.optional(
603
603
  Schema.Union([
604
- Schema.Literals(["google", "lets_encrypt", "ssl_com", "digicert"]),
604
+ Schema.Literals(["digicert", "google", "lets_encrypt", "ssl_com"]),
605
605
  Schema.Null,
606
606
  ]),
607
607
  ),
@@ -753,7 +753,7 @@ export const GetCustomHostnameResponse =
753
753
  ),
754
754
  createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
755
755
  customMetadata: Schema.optional(
756
- Schema.Union([Schema.Struct({}), Schema.Null]),
756
+ Schema.Union([Schema.Record(Schema.String, Schema.Unknown), Schema.Null]),
757
757
  ),
758
758
  customOriginServer: Schema.optional(
759
759
  Schema.Union([Schema.String, Schema.Null]),
@@ -882,10 +882,10 @@ export interface ListCustomHostnamesResponse {
882
882
  id?: string | null;
883
883
  bundleMethod?: "ubiquitous" | "optimal" | "force" | null;
884
884
  certificateAuthority?:
885
+ | "digicert"
885
886
  | "google"
886
887
  | "lets_encrypt"
887
888
  | "ssl_com"
888
- | "digicert"
889
889
  | null;
890
890
  customCertificate?: string | null;
891
891
  customCsrId?: string | null;
@@ -998,10 +998,10 @@ export const ListCustomHostnamesResponse =
998
998
  certificateAuthority: Schema.optional(
999
999
  Schema.Union([
1000
1000
  Schema.Literals([
1001
+ "digicert",
1001
1002
  "google",
1002
1003
  "lets_encrypt",
1003
1004
  "ssl_com",
1004
- "digicert",
1005
1005
  ]),
1006
1006
  Schema.Null,
1007
1007
  ]),
@@ -1173,7 +1173,10 @@ export const ListCustomHostnamesResponse =
1173
1173
  ),
1174
1174
  createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1175
1175
  customMetadata: Schema.optional(
1176
- Schema.Union([Schema.Struct({}), Schema.Null]),
1176
+ Schema.Union([
1177
+ Schema.Record(Schema.String, Schema.Unknown),
1178
+ Schema.Null,
1179
+ ]),
1177
1180
  ),
1178
1181
  customOriginServer: Schema.optional(
1179
1182
  Schema.Union([Schema.String, Schema.Null]),
@@ -1292,10 +1295,10 @@ export const listCustomHostnames: API.PaginatedOperationMethod<
1292
1295
  id?: string | null;
1293
1296
  bundleMethod?: "ubiquitous" | "optimal" | "force" | null;
1294
1297
  certificateAuthority?:
1298
+ | "digicert"
1295
1299
  | "google"
1296
1300
  | "lets_encrypt"
1297
1301
  | "ssl_com"
1298
- | "digicert"
1299
1302
  | null;
1300
1303
  customCertificate?: string | null;
1301
1304
  customCsrId?: string | null;
@@ -1409,7 +1412,7 @@ export interface CreateCustomHostnameRequest {
1409
1412
  /** Body param: SSL properties used when creating the custom hostname. */
1410
1413
  ssl?: {
1411
1414
  bundleMethod?: "ubiquitous" | "optimal" | "force";
1412
- certificateAuthority?: "google" | "lets_encrypt" | "ssl_com" | "digicert";
1415
+ certificateAuthority?: "digicert" | "google" | "lets_encrypt" | "ssl_com";
1413
1416
  cloudflareBranding?: boolean;
1414
1417
  customCertBundle?: { customCertificate: string; customKey: string }[];
1415
1418
  customCertificate?: string;
@@ -1431,14 +1434,16 @@ export const CreateCustomHostnameRequest =
1431
1434
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1432
1435
  zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
1433
1436
  hostname: Schema.String,
1434
- customMetadata: Schema.optional(Schema.Struct({})),
1437
+ customMetadata: Schema.optional(
1438
+ Schema.Record(Schema.String, Schema.Unknown),
1439
+ ),
1435
1440
  ssl: Schema.optional(
1436
1441
  Schema.Struct({
1437
1442
  bundleMethod: Schema.optional(
1438
1443
  Schema.Literals(["ubiquitous", "optimal", "force"]),
1439
1444
  ),
1440
1445
  certificateAuthority: Schema.optional(
1441
- Schema.Literals(["google", "lets_encrypt", "ssl_com", "digicert"]),
1446
+ Schema.Literals(["digicert", "google", "lets_encrypt", "ssl_com"]),
1442
1447
  ),
1443
1448
  cloudflareBranding: Schema.optional(Schema.Boolean),
1444
1449
  customCertBundle: Schema.optional(
@@ -1511,10 +1516,10 @@ export interface CreateCustomHostnameResponse {
1511
1516
  id?: string | null;
1512
1517
  bundleMethod?: "ubiquitous" | "optimal" | "force" | null;
1513
1518
  certificateAuthority?:
1519
+ | "digicert"
1514
1520
  | "google"
1515
1521
  | "lets_encrypt"
1516
1522
  | "ssl_com"
1517
- | "digicert"
1518
1523
  | null;
1519
1524
  customCertificate?: string | null;
1520
1525
  customCsrId?: string | null;
@@ -1625,7 +1630,7 @@ export const CreateCustomHostnameResponse =
1625
1630
  ),
1626
1631
  certificateAuthority: Schema.optional(
1627
1632
  Schema.Union([
1628
- Schema.Literals(["google", "lets_encrypt", "ssl_com", "digicert"]),
1633
+ Schema.Literals(["digicert", "google", "lets_encrypt", "ssl_com"]),
1629
1634
  Schema.Null,
1630
1635
  ]),
1631
1636
  ),
@@ -1777,7 +1782,7 @@ export const CreateCustomHostnameResponse =
1777
1782
  ),
1778
1783
  createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1779
1784
  customMetadata: Schema.optional(
1780
- Schema.Union([Schema.Struct({}), Schema.Null]),
1785
+ Schema.Union([Schema.Record(Schema.String, Schema.Unknown), Schema.Null]),
1781
1786
  ),
1782
1787
  customOriginServer: Schema.optional(
1783
1788
  Schema.Union([Schema.String, Schema.Null]),
@@ -1880,7 +1885,7 @@ export interface PatchCustomHostnameRequest {
1880
1885
  /** Body param: SSL properties used when creating the custom hostname. */
1881
1886
  ssl?: {
1882
1887
  bundleMethod?: "ubiquitous" | "optimal" | "force";
1883
- certificateAuthority?: "google" | "lets_encrypt" | "ssl_com" | "digicert";
1888
+ certificateAuthority?: "digicert" | "google" | "lets_encrypt" | "ssl_com";
1884
1889
  cloudflareBranding?: boolean;
1885
1890
  customCertBundle?: { customCertificate: string; customKey: string }[];
1886
1891
  customCertificate?: string;
@@ -1902,7 +1907,9 @@ export const PatchCustomHostnameRequest =
1902
1907
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1903
1908
  customHostnameId: Schema.String.pipe(T.HttpPath("customHostnameId")),
1904
1909
  zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
1905
- customMetadata: Schema.optional(Schema.Struct({})),
1910
+ customMetadata: Schema.optional(
1911
+ Schema.Record(Schema.String, Schema.Unknown),
1912
+ ),
1906
1913
  customOriginServer: Schema.optional(Schema.String),
1907
1914
  customOriginSni: Schema.optional(Schema.String),
1908
1915
  ssl: Schema.optional(
@@ -1911,7 +1918,7 @@ export const PatchCustomHostnameRequest =
1911
1918
  Schema.Literals(["ubiquitous", "optimal", "force"]),
1912
1919
  ),
1913
1920
  certificateAuthority: Schema.optional(
1914
- Schema.Literals(["google", "lets_encrypt", "ssl_com", "digicert"]),
1921
+ Schema.Literals(["digicert", "google", "lets_encrypt", "ssl_com"]),
1915
1922
  ),
1916
1923
  cloudflareBranding: Schema.optional(Schema.Boolean),
1917
1924
  customCertBundle: Schema.optional(
@@ -1988,10 +1995,10 @@ export interface PatchCustomHostnameResponse {
1988
1995
  id?: string | null;
1989
1996
  bundleMethod?: "ubiquitous" | "optimal" | "force" | null;
1990
1997
  certificateAuthority?:
1998
+ | "digicert"
1991
1999
  | "google"
1992
2000
  | "lets_encrypt"
1993
2001
  | "ssl_com"
1994
- | "digicert"
1995
2002
  | null;
1996
2003
  customCertificate?: string | null;
1997
2004
  customCsrId?: string | null;
@@ -2102,7 +2109,7 @@ export const PatchCustomHostnameResponse =
2102
2109
  ),
2103
2110
  certificateAuthority: Schema.optional(
2104
2111
  Schema.Union([
2105
- Schema.Literals(["google", "lets_encrypt", "ssl_com", "digicert"]),
2112
+ Schema.Literals(["digicert", "google", "lets_encrypt", "ssl_com"]),
2106
2113
  Schema.Null,
2107
2114
  ]),
2108
2115
  ),
@@ -2254,7 +2261,7 @@ export const PatchCustomHostnameResponse =
2254
2261
  ),
2255
2262
  createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2256
2263
  customMetadata: Schema.optional(
2257
- Schema.Union([Schema.Struct({}), Schema.Null]),
2264
+ Schema.Union([Schema.Record(Schema.String, Schema.Unknown), Schema.Null]),
2258
2265
  ),
2259
2266
  customOriginServer: Schema.optional(
2260
2267
  Schema.Union([Schema.String, Schema.Null]),
@@ -248,10 +248,51 @@ export const GetDatabaseRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
248
248
  }),
249
249
  ) as unknown as Schema.Schema<GetDatabaseRequest>;
250
250
 
251
- export type GetDatabaseResponse = unknown;
251
+ export interface GetDatabaseResponse {
252
+ /** Specifies the timestamp the resource was created as an ISO8601 string. */
253
+ createdAt?: string | null;
254
+ /** The D1 database's size, in bytes. */
255
+ fileSize?: number | null;
256
+ /** D1 database name. */
257
+ name?: string | null;
258
+ numTables?: number | null;
259
+ /** Configuration for D1 read replication. */
260
+ readReplication?: { mode: "auto" | "disabled" } | null;
261
+ /** D1 database identifier (UUID). */
262
+ uuid?: string | null;
263
+ version?: string | null;
264
+ }
252
265
 
253
- export const GetDatabaseResponse =
254
- /*@__PURE__*/ /*#__PURE__*/ Schema.Unknown as unknown as Schema.Schema<GetDatabaseResponse>;
266
+ export const GetDatabaseResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
267
+ createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
268
+ fileSize: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
269
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
270
+ numTables: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
271
+ readReplication: Schema.optional(
272
+ Schema.Union([
273
+ Schema.Struct({
274
+ mode: Schema.Literals(["auto", "disabled"]),
275
+ }),
276
+ Schema.Null,
277
+ ]),
278
+ ),
279
+ uuid: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
280
+ version: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
281
+ })
282
+ .pipe(
283
+ Schema.encodeKeys({
284
+ createdAt: "created_at",
285
+ fileSize: "file_size",
286
+ name: "name",
287
+ numTables: "num_tables",
288
+ readReplication: "read_replication",
289
+ uuid: "uuid",
290
+ version: "version",
291
+ }),
292
+ )
293
+ .pipe(
294
+ T.ResponsePath("result"),
295
+ ) as unknown as Schema.Schema<GetDatabaseResponse>;
255
296
 
256
297
  export type GetDatabaseError =
257
298
  | DefaultErrors
@@ -297,10 +338,53 @@ export const CreateDatabaseRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
297
338
  T.Http({ method: "POST", path: "/accounts/{account_id}/d1/database" }),
298
339
  ) as unknown as Schema.Schema<CreateDatabaseRequest>;
299
340
 
300
- export type CreateDatabaseResponse = unknown;
341
+ export interface CreateDatabaseResponse {
342
+ /** Specifies the timestamp the resource was created as an ISO8601 string. */
343
+ createdAt?: string | null;
344
+ /** The D1 database's size, in bytes. */
345
+ fileSize?: number | null;
346
+ /** D1 database name. */
347
+ name?: string | null;
348
+ numTables?: number | null;
349
+ /** Configuration for D1 read replication. */
350
+ readReplication?: { mode: "auto" | "disabled" } | null;
351
+ /** D1 database identifier (UUID). */
352
+ uuid?: string | null;
353
+ version?: string | null;
354
+ }
301
355
 
302
- export const CreateDatabaseResponse =
303
- /*@__PURE__*/ /*#__PURE__*/ Schema.Unknown as unknown as Schema.Schema<CreateDatabaseResponse>;
356
+ export const CreateDatabaseResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
357
+ {
358
+ createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
359
+ fileSize: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
360
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
361
+ numTables: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
362
+ readReplication: Schema.optional(
363
+ Schema.Union([
364
+ Schema.Struct({
365
+ mode: Schema.Literals(["auto", "disabled"]),
366
+ }),
367
+ Schema.Null,
368
+ ]),
369
+ ),
370
+ uuid: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
371
+ version: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
372
+ },
373
+ )
374
+ .pipe(
375
+ Schema.encodeKeys({
376
+ createdAt: "created_at",
377
+ fileSize: "file_size",
378
+ name: "name",
379
+ numTables: "num_tables",
380
+ readReplication: "read_replication",
381
+ uuid: "uuid",
382
+ version: "version",
383
+ }),
384
+ )
385
+ .pipe(
386
+ T.ResponsePath("result"),
387
+ ) as unknown as Schema.Schema<CreateDatabaseResponse>;
304
388
 
305
389
  export type CreateDatabaseError =
306
390
  | DefaultErrors
@@ -340,10 +424,53 @@ export const UpdateDatabaseRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
340
424
  }),
341
425
  ) as unknown as Schema.Schema<UpdateDatabaseRequest>;
342
426
 
343
- export type UpdateDatabaseResponse = unknown;
427
+ export interface UpdateDatabaseResponse {
428
+ /** Specifies the timestamp the resource was created as an ISO8601 string. */
429
+ createdAt?: string | null;
430
+ /** The D1 database's size, in bytes. */
431
+ fileSize?: number | null;
432
+ /** D1 database name. */
433
+ name?: string | null;
434
+ numTables?: number | null;
435
+ /** Configuration for D1 read replication. */
436
+ readReplication?: { mode: "auto" | "disabled" } | null;
437
+ /** D1 database identifier (UUID). */
438
+ uuid?: string | null;
439
+ version?: string | null;
440
+ }
344
441
 
345
- export const UpdateDatabaseResponse =
346
- /*@__PURE__*/ /*#__PURE__*/ Schema.Unknown as unknown as Schema.Schema<UpdateDatabaseResponse>;
442
+ export const UpdateDatabaseResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
443
+ {
444
+ createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
445
+ fileSize: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
446
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
447
+ numTables: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
448
+ readReplication: Schema.optional(
449
+ Schema.Union([
450
+ Schema.Struct({
451
+ mode: Schema.Literals(["auto", "disabled"]),
452
+ }),
453
+ Schema.Null,
454
+ ]),
455
+ ),
456
+ uuid: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
457
+ version: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
458
+ },
459
+ )
460
+ .pipe(
461
+ Schema.encodeKeys({
462
+ createdAt: "created_at",
463
+ fileSize: "file_size",
464
+ name: "name",
465
+ numTables: "num_tables",
466
+ readReplication: "read_replication",
467
+ uuid: "uuid",
468
+ version: "version",
469
+ }),
470
+ )
471
+ .pipe(
472
+ T.ResponsePath("result"),
473
+ ) as unknown as Schema.Schema<UpdateDatabaseResponse>;
347
474
 
348
475
  export type UpdateDatabaseError =
349
476
  | DefaultErrors
@@ -386,10 +513,51 @@ export const PatchDatabaseRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
386
513
  }),
387
514
  ) as unknown as Schema.Schema<PatchDatabaseRequest>;
388
515
 
389
- export type PatchDatabaseResponse = unknown;
516
+ export interface PatchDatabaseResponse {
517
+ /** Specifies the timestamp the resource was created as an ISO8601 string. */
518
+ createdAt?: string | null;
519
+ /** The D1 database's size, in bytes. */
520
+ fileSize?: number | null;
521
+ /** D1 database name. */
522
+ name?: string | null;
523
+ numTables?: number | null;
524
+ /** Configuration for D1 read replication. */
525
+ readReplication?: { mode: "auto" | "disabled" } | null;
526
+ /** D1 database identifier (UUID). */
527
+ uuid?: string | null;
528
+ version?: string | null;
529
+ }
390
530
 
391
- export const PatchDatabaseResponse =
392
- /*@__PURE__*/ /*#__PURE__*/ Schema.Unknown as unknown as Schema.Schema<PatchDatabaseResponse>;
531
+ export const PatchDatabaseResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
532
+ createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
533
+ fileSize: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
534
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
535
+ numTables: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
536
+ readReplication: Schema.optional(
537
+ Schema.Union([
538
+ Schema.Struct({
539
+ mode: Schema.Literals(["auto", "disabled"]),
540
+ }),
541
+ Schema.Null,
542
+ ]),
543
+ ),
544
+ uuid: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
545
+ version: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
546
+ })
547
+ .pipe(
548
+ Schema.encodeKeys({
549
+ createdAt: "created_at",
550
+ fileSize: "file_size",
551
+ name: "name",
552
+ numTables: "num_tables",
553
+ readReplication: "read_replication",
554
+ uuid: "uuid",
555
+ version: "version",
556
+ }),
557
+ )
558
+ .pipe(
559
+ T.ResponsePath("result"),
560
+ ) as unknown as Schema.Schema<PatchDatabaseResponse>;
393
561
 
394
562
  export type PatchDatabaseError =
395
563
  | DefaultErrors
@@ -55,10 +55,69 @@ export const GetAnalyticReportRequest =
55
55
  }),
56
56
  ) as unknown as Schema.Schema<GetAnalyticReportRequest>;
57
57
 
58
- export type GetAnalyticReportResponse = unknown;
58
+ export interface GetAnalyticReportResponse {
59
+ /** Array with one row per combination of dimension values. */
60
+ data: { dimensions: string[]; metrics: number[] }[];
61
+ /** Number of seconds between current time and last processed event, in another words how many seconds of data could be missing. */
62
+ dataLag: number;
63
+ /** Maximum results for each metric (object mapping metric names to values). Currently always an empty object. */
64
+ max: unknown;
65
+ /** Minimum results for each metric (object mapping metric names to values). Currently always an empty object. */
66
+ min: unknown;
67
+ query: {
68
+ dimensions: string[];
69
+ limit: number;
70
+ metrics: string[];
71
+ since: string;
72
+ until: string;
73
+ filters?: string | null;
74
+ sort?: string[] | null;
75
+ };
76
+ /** Total number of rows in the result. */
77
+ rows: number;
78
+ /** Total results for metrics across all data (object mapping metric names to values). */
79
+ totals: unknown;
80
+ }
59
81
 
60
82
  export const GetAnalyticReportResponse =
61
- /*@__PURE__*/ /*#__PURE__*/ Schema.Unknown as unknown as Schema.Schema<GetAnalyticReportResponse>;
83
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
84
+ data: Schema.Array(
85
+ Schema.Struct({
86
+ dimensions: Schema.Array(Schema.String),
87
+ metrics: Schema.Array(Schema.Number),
88
+ }),
89
+ ),
90
+ dataLag: Schema.Number,
91
+ max: Schema.Unknown,
92
+ min: Schema.Unknown,
93
+ query: Schema.Struct({
94
+ dimensions: Schema.Array(Schema.String),
95
+ limit: Schema.Number,
96
+ metrics: Schema.Array(Schema.String),
97
+ since: Schema.String,
98
+ until: Schema.String,
99
+ filters: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
100
+ sort: Schema.optional(
101
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
102
+ ),
103
+ }),
104
+ rows: Schema.Number,
105
+ totals: Schema.Unknown,
106
+ })
107
+ .pipe(
108
+ Schema.encodeKeys({
109
+ data: "data",
110
+ dataLag: "data_lag",
111
+ max: "max",
112
+ min: "min",
113
+ query: "query",
114
+ rows: "rows",
115
+ totals: "totals",
116
+ }),
117
+ )
118
+ .pipe(
119
+ T.ResponsePath("result"),
120
+ ) as unknown as Schema.Schema<GetAnalyticReportResponse>;
62
121
 
63
122
  export type GetAnalyticReportError = DefaultErrors;
64
123
 
@@ -141,10 +200,107 @@ export const GetAnalyticReportBytimeRequest =
141
200
  }),
142
201
  ) as unknown as Schema.Schema<GetAnalyticReportBytimeRequest>;
143
202
 
144
- export type GetAnalyticReportBytimeResponse = unknown;
203
+ export interface GetAnalyticReportBytimeResponse {
204
+ /** Array with one row per combination of dimension values. */
205
+ data: { dimensions: string[]; metrics: number[][] }[];
206
+ /** Number of seconds between current time and last processed event, in another words how many seconds of data could be missing. */
207
+ dataLag: number;
208
+ /** Maximum results for each metric (object mapping metric names to values). Currently always an empty object. */
209
+ max: unknown;
210
+ /** Minimum results for each metric (object mapping metric names to values). Currently always an empty object. */
211
+ min: unknown;
212
+ query: {
213
+ dimensions: string[];
214
+ limit: number;
215
+ metrics: string[];
216
+ since: string;
217
+ timeDelta:
218
+ | "all"
219
+ | "auto"
220
+ | "year"
221
+ | "quarter"
222
+ | "month"
223
+ | "week"
224
+ | "day"
225
+ | "hour"
226
+ | "dekaminute"
227
+ | "minute";
228
+ until: string;
229
+ filters?: string | null;
230
+ sort?: string[] | null;
231
+ };
232
+ /** Total number of rows in the result. */
233
+ rows: number;
234
+ /** Array of time intervals in the response data. Each interval is represented as an array containing two values: the start time, and the end time. */
235
+ timeIntervals: string[][];
236
+ /** Total results for metrics across all data (object mapping metric names to values). */
237
+ totals: unknown;
238
+ }
145
239
 
146
240
  export const GetAnalyticReportBytimeResponse =
147
- /*@__PURE__*/ /*#__PURE__*/ Schema.Unknown as unknown as Schema.Schema<GetAnalyticReportBytimeResponse>;
241
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
242
+ data: Schema.Array(
243
+ Schema.Struct({
244
+ dimensions: Schema.Array(Schema.String),
245
+ metrics: Schema.Array(Schema.Array(Schema.Number)),
246
+ }),
247
+ ),
248
+ dataLag: Schema.Number,
249
+ max: Schema.Unknown,
250
+ min: Schema.Unknown,
251
+ query: Schema.Struct({
252
+ dimensions: Schema.Array(Schema.String),
253
+ limit: Schema.Number,
254
+ metrics: Schema.Array(Schema.String),
255
+ since: Schema.String,
256
+ timeDelta: Schema.Literals([
257
+ "all",
258
+ "auto",
259
+ "year",
260
+ "quarter",
261
+ "month",
262
+ "week",
263
+ "day",
264
+ "hour",
265
+ "dekaminute",
266
+ "minute",
267
+ ]),
268
+ until: Schema.String,
269
+ filters: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
270
+ sort: Schema.optional(
271
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
272
+ ),
273
+ }).pipe(
274
+ Schema.encodeKeys({
275
+ dimensions: "dimensions",
276
+ limit: "limit",
277
+ metrics: "metrics",
278
+ since: "since",
279
+ timeDelta: "time_delta",
280
+ until: "until",
281
+ filters: "filters",
282
+ sort: "sort",
283
+ }),
284
+ ),
285
+ rows: Schema.Number,
286
+ timeIntervals: Schema.Array(Schema.Array(Schema.String)),
287
+ totals: Schema.Unknown,
288
+ })
289
+ .pipe(
290
+ Schema.encodeKeys({
291
+ data: "data",
292
+ dataLag: "data_lag",
293
+ max: "max",
294
+ min: "min",
295
+ query: "query",
296
+ rows: "rows",
297
+ timeIntervals: "time_intervals",
298
+ totals: "totals",
299
+ }),
300
+ )
301
+ .pipe(
302
+ T.ResponsePath("result"),
303
+ ) as unknown as Schema.Schema<GetAnalyticReportBytimeResponse>;
148
304
 
149
305
  export type GetAnalyticReportBytimeError = DefaultErrors;
150
306
 
@@ -840,7 +996,7 @@ export interface GetReverseDnResponse {
840
996
  }
841
997
 
842
998
  export const GetReverseDnResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
843
- ptr: Schema.Struct({}),
999
+ ptr: Schema.Record(Schema.String, Schema.Unknown),
844
1000
  }).pipe(
845
1001
  T.ResponsePath("result"),
846
1002
  ) as unknown as Schema.Schema<GetReverseDnResponse>;
@@ -869,7 +1025,7 @@ export interface PatchReverseDnRequest {
869
1025
  export const PatchReverseDnRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
870
1026
  dnsFirewallId: Schema.String.pipe(T.HttpPath("dnsFirewallId")),
871
1027
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
872
- ptr: Schema.optional(Schema.Struct({})),
1028
+ ptr: Schema.optional(Schema.Record(Schema.String, Schema.Unknown)),
873
1029
  }).pipe(
874
1030
  T.Http({
875
1031
  method: "PATCH",
@@ -884,7 +1040,7 @@ export interface PatchReverseDnResponse {
884
1040
 
885
1041
  export const PatchReverseDnResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
886
1042
  {
887
- ptr: Schema.Struct({}),
1043
+ ptr: Schema.Record(Schema.String, Schema.Unknown),
888
1044
  },
889
1045
  ).pipe(
890
1046
  T.ResponsePath("result"),