@distilled.cloud/cloudflare 0.18.1 → 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 (250) hide show
  1. package/lib/client/api.d.ts.map +1 -1
  2. package/lib/client/api.js +9 -1
  3. package/lib/client/api.js.map +1 -1
  4. package/lib/services/abuse-reports.d.ts +4 -4
  5. package/lib/services/abuse-reports.d.ts.map +1 -1
  6. package/lib/services/abuse-reports.js +28 -22
  7. package/lib/services/abuse-reports.js.map +1 -1
  8. package/lib/services/accounts.d.ts +10 -10
  9. package/lib/services/accounts.d.ts.map +1 -1
  10. package/lib/services/accounts.js +67 -52
  11. package/lib/services/accounts.js.map +1 -1
  12. package/lib/services/ai-gateway.d.ts +10 -10
  13. package/lib/services/ai-gateway.d.ts.map +1 -1
  14. package/lib/services/ai-gateway.js +70 -55
  15. package/lib/services/ai-gateway.js.map +1 -1
  16. package/lib/services/ai.d.ts +2 -2
  17. package/lib/services/ai.d.ts.map +1 -1
  18. package/lib/services/ai.js +14 -11
  19. package/lib/services/ai.js.map +1 -1
  20. package/lib/services/alerting.d.ts +2 -2
  21. package/lib/services/alerting.d.ts.map +1 -1
  22. package/lib/services/alerting.js +14 -11
  23. package/lib/services/alerting.js.map +1 -1
  24. package/lib/services/api-gateway.d.ts +10 -10
  25. package/lib/services/api-gateway.d.ts.map +1 -1
  26. package/lib/services/api-gateway.js +70 -55
  27. package/lib/services/api-gateway.js.map +1 -1
  28. package/lib/services/audit-logs.d.ts +2 -2
  29. package/lib/services/audit-logs.d.ts.map +1 -1
  30. package/lib/services/audit-logs.js +14 -11
  31. package/lib/services/audit-logs.js.map +1 -1
  32. package/lib/services/client-certificates.d.ts +2 -2
  33. package/lib/services/client-certificates.d.ts.map +1 -1
  34. package/lib/services/client-certificates.js +14 -11
  35. package/lib/services/client-certificates.js.map +1 -1
  36. package/lib/services/custom-certificates.d.ts +2 -2
  37. package/lib/services/custom-certificates.d.ts.map +1 -1
  38. package/lib/services/custom-certificates.js +14 -11
  39. package/lib/services/custom-certificates.js.map +1 -1
  40. package/lib/services/custom-hostnames.d.ts +2 -2
  41. package/lib/services/custom-hostnames.d.ts.map +1 -1
  42. package/lib/services/custom-hostnames.js +14 -11
  43. package/lib/services/custom-hostnames.js.map +1 -1
  44. package/lib/services/d1.d.ts +2 -2
  45. package/lib/services/d1.d.ts.map +1 -1
  46. package/lib/services/d1.js +14 -11
  47. package/lib/services/d1.js.map +1 -1
  48. package/lib/services/dns-firewall.d.ts +2 -2
  49. package/lib/services/dns-firewall.d.ts.map +1 -1
  50. package/lib/services/dns-firewall.js +14 -11
  51. package/lib/services/dns-firewall.js.map +1 -1
  52. package/lib/services/dns.d.ts +4 -4
  53. package/lib/services/dns.d.ts.map +1 -1
  54. package/lib/services/dns.js +28 -22
  55. package/lib/services/dns.js.map +1 -1
  56. package/lib/services/durable-objects.d.ts +4 -4
  57. package/lib/services/durable-objects.d.ts.map +1 -1
  58. package/lib/services/durable-objects.js +25 -19
  59. package/lib/services/durable-objects.js.map +1 -1
  60. package/lib/services/email-routing.d.ts +4 -4
  61. package/lib/services/email-routing.d.ts.map +1 -1
  62. package/lib/services/email-routing.js +28 -22
  63. package/lib/services/email-routing.js.map +1 -1
  64. package/lib/services/email-security.d.ts +14 -14
  65. package/lib/services/email-security.d.ts.map +1 -1
  66. package/lib/services/email-security.js +98 -77
  67. package/lib/services/email-security.js.map +1 -1
  68. package/lib/services/filters.d.ts +2 -2
  69. package/lib/services/filters.d.ts.map +1 -1
  70. package/lib/services/filters.js +14 -11
  71. package/lib/services/filters.js.map +1 -1
  72. package/lib/services/firewall.d.ts +16 -16
  73. package/lib/services/firewall.d.ts.map +1 -1
  74. package/lib/services/firewall.js +112 -88
  75. package/lib/services/firewall.js.map +1 -1
  76. package/lib/services/healthchecks.d.ts +2 -2
  77. package/lib/services/healthchecks.d.ts.map +1 -1
  78. package/lib/services/healthchecks.js +14 -11
  79. package/lib/services/healthchecks.js.map +1 -1
  80. package/lib/services/images.d.ts +2 -2
  81. package/lib/services/images.d.ts.map +1 -1
  82. package/lib/services/images.js +14 -11
  83. package/lib/services/images.js.map +1 -1
  84. package/lib/services/intel.d.ts +4 -4
  85. package/lib/services/intel.d.ts.map +1 -1
  86. package/lib/services/intel.js +28 -22
  87. package/lib/services/intel.js.map +1 -1
  88. package/lib/services/kv.d.ts +4 -4
  89. package/lib/services/kv.d.ts.map +1 -1
  90. package/lib/services/kv.js +25 -19
  91. package/lib/services/kv.js.map +1 -1
  92. package/lib/services/load-balancers.d.ts +2 -2
  93. package/lib/services/load-balancers.d.ts.map +1 -1
  94. package/lib/services/load-balancers.js +14 -11
  95. package/lib/services/load-balancers.js.map +1 -1
  96. package/lib/services/magic-cloud-networking.d.ts +2 -2
  97. package/lib/services/magic-cloud-networking.d.ts.map +1 -1
  98. package/lib/services/magic-cloud-networking.js +14 -11
  99. package/lib/services/magic-cloud-networking.js.map +1 -1
  100. package/lib/services/memberships.d.ts +2 -2
  101. package/lib/services/memberships.d.ts.map +1 -1
  102. package/lib/services/memberships.js +14 -11
  103. package/lib/services/memberships.js.map +1 -1
  104. package/lib/services/origin-ca-certificates.d.ts +2 -2
  105. package/lib/services/origin-ca-certificates.d.ts.map +1 -1
  106. package/lib/services/origin-ca-certificates.js +14 -11
  107. package/lib/services/origin-ca-certificates.js.map +1 -1
  108. package/lib/services/pages.d.ts +4 -4
  109. package/lib/services/pages.d.ts.map +1 -1
  110. package/lib/services/pages.js +28 -22
  111. package/lib/services/pages.js.map +1 -1
  112. package/lib/services/queues.d.ts +10 -4
  113. package/lib/services/queues.d.ts.map +1 -1
  114. package/lib/services/queues.js +22 -11
  115. package/lib/services/queues.js.map +1 -1
  116. package/lib/services/r2.d.ts +68 -0
  117. package/lib/services/r2.d.ts.map +1 -1
  118. package/lib/services/r2.js +105 -0
  119. package/lib/services/r2.js.map +1 -1
  120. package/lib/services/radar.d.ts +4 -4
  121. package/lib/services/radar.d.ts.map +1 -1
  122. package/lib/services/radar.js +28 -22
  123. package/lib/services/radar.js.map +1 -1
  124. package/lib/services/rate-limits.d.ts +2 -2
  125. package/lib/services/rate-limits.d.ts.map +1 -1
  126. package/lib/services/rate-limits.js +14 -11
  127. package/lib/services/rate-limits.js.map +1 -1
  128. package/lib/services/resource-sharing.d.ts +6 -6
  129. package/lib/services/resource-sharing.d.ts.map +1 -1
  130. package/lib/services/resource-sharing.js +42 -33
  131. package/lib/services/resource-sharing.js.map +1 -1
  132. package/lib/services/rules.d.ts +2 -2
  133. package/lib/services/rules.d.ts.map +1 -1
  134. package/lib/services/rules.js +11 -8
  135. package/lib/services/rules.js.map +1 -1
  136. package/lib/services/rulesets.d.ts +2 -2
  137. package/lib/services/rulesets.d.ts.map +1 -1
  138. package/lib/services/rulesets.js +12 -9
  139. package/lib/services/rulesets.js.map +1 -1
  140. package/lib/services/rum.d.ts +2 -2
  141. package/lib/services/rum.d.ts.map +1 -1
  142. package/lib/services/rum.js +14 -11
  143. package/lib/services/rum.js.map +1 -1
  144. package/lib/services/schema-validation.d.ts +4 -4
  145. package/lib/services/schema-validation.d.ts.map +1 -1
  146. package/lib/services/schema-validation.js +28 -22
  147. package/lib/services/schema-validation.js.map +1 -1
  148. package/lib/services/secrets-store.d.ts +4 -4
  149. package/lib/services/secrets-store.d.ts.map +1 -1
  150. package/lib/services/secrets-store.js +28 -22
  151. package/lib/services/secrets-store.js.map +1 -1
  152. package/lib/services/security-center.d.ts +2 -2
  153. package/lib/services/security-center.d.ts.map +1 -1
  154. package/lib/services/security-center.js +14 -11
  155. package/lib/services/security-center.js.map +1 -1
  156. package/lib/services/snippets.d.ts +2 -2
  157. package/lib/services/snippets.d.ts.map +1 -1
  158. package/lib/services/snippets.js +14 -11
  159. package/lib/services/snippets.js.map +1 -1
  160. package/lib/services/spectrum.d.ts +2 -2
  161. package/lib/services/spectrum.d.ts.map +1 -1
  162. package/lib/services/spectrum.js +14 -11
  163. package/lib/services/spectrum.js.map +1 -1
  164. package/lib/services/speed.d.ts +2 -2
  165. package/lib/services/speed.d.ts.map +1 -1
  166. package/lib/services/speed.js +14 -11
  167. package/lib/services/speed.js.map +1 -1
  168. package/lib/services/token-validation.d.ts +4 -4
  169. package/lib/services/token-validation.d.ts.map +1 -1
  170. package/lib/services/token-validation.js +28 -22
  171. package/lib/services/token-validation.js.map +1 -1
  172. package/lib/services/turnstile.d.ts +2 -2
  173. package/lib/services/turnstile.d.ts.map +1 -1
  174. package/lib/services/turnstile.js +14 -11
  175. package/lib/services/turnstile.js.map +1 -1
  176. package/lib/services/user.d.ts +8 -8
  177. package/lib/services/user.d.ts.map +1 -1
  178. package/lib/services/user.js +56 -44
  179. package/lib/services/user.js.map +1 -1
  180. package/lib/services/waiting-rooms.d.ts +4 -4
  181. package/lib/services/waiting-rooms.d.ts.map +1 -1
  182. package/lib/services/waiting-rooms.js +28 -22
  183. package/lib/services/waiting-rooms.js.map +1 -1
  184. package/lib/services/workers.d.ts +17 -17
  185. package/lib/services/workers.d.ts.map +1 -1
  186. package/lib/services/workers.js +53 -44
  187. package/lib/services/workers.js.map +1 -1
  188. package/lib/services/workflows.d.ts +6 -6
  189. package/lib/services/workflows.d.ts.map +1 -1
  190. package/lib/services/workflows.js +42 -33
  191. package/lib/services/workflows.js.map +1 -1
  192. package/lib/services/zero-trust.d.ts +60 -60
  193. package/lib/services/zero-trust.d.ts.map +1 -1
  194. package/lib/services/zero-trust.js +416 -326
  195. package/lib/services/zero-trust.js.map +1 -1
  196. package/lib/services/zones.d.ts +2 -2
  197. package/lib/services/zones.d.ts.map +1 -1
  198. package/lib/services/zones.js +14 -11
  199. package/lib/services/zones.js.map +1 -1
  200. package/package.json +2 -2
  201. package/src/client/api.ts +10 -0
  202. package/src/services/abuse-reports.ts +42 -28
  203. package/src/services/accounts.ts +94 -67
  204. package/src/services/ai-gateway.ts +101 -70
  205. package/src/services/ai.ts +19 -14
  206. package/src/services/alerting.ts +19 -14
  207. package/src/services/api-gateway.ts +105 -70
  208. package/src/services/audit-logs.ts +19 -14
  209. package/src/services/client-certificates.ts +21 -14
  210. package/src/services/custom-certificates.ts +21 -14
  211. package/src/services/custom-hostnames.ts +21 -14
  212. package/src/services/d1.ts +19 -14
  213. package/src/services/dns-firewall.ts +21 -14
  214. package/src/services/dns.ts +40 -28
  215. package/src/services/durable-objects.ts +39 -25
  216. package/src/services/email-routing.ts +38 -28
  217. package/src/services/email-security.ts +147 -98
  218. package/src/services/filters.ts +19 -14
  219. package/src/services/firewall.ts +162 -112
  220. package/src/services/healthchecks.ts +21 -14
  221. package/src/services/images.ts +19 -14
  222. package/src/services/intel.ts +40 -28
  223. package/src/services/kv.ts +39 -25
  224. package/src/services/load-balancers.ts +19 -14
  225. package/src/services/magic-cloud-networking.ts +19 -14
  226. package/src/services/memberships.ts +21 -14
  227. package/src/services/origin-ca-certificates.ts +21 -14
  228. package/src/services/pages.ts +40 -28
  229. package/src/services/queues.ts +34 -14
  230. package/src/services/r2.ts +241 -0
  231. package/src/services/radar.ts +42 -28
  232. package/src/services/rate-limits.ts +21 -14
  233. package/src/services/resource-sharing.ts +61 -42
  234. package/src/services/rules.ts +18 -11
  235. package/src/services/rulesets.ts +17 -12
  236. package/src/services/rum.ts +19 -14
  237. package/src/services/schema-validation.ts +40 -28
  238. package/src/services/secrets-store.ts +40 -28
  239. package/src/services/security-center.ts +19 -14
  240. package/src/services/snippets.ts +19 -14
  241. package/src/services/spectrum.ts +19 -14
  242. package/src/services/speed.ts +19 -14
  243. package/src/services/token-validation.ts +40 -28
  244. package/src/services/turnstile.ts +19 -14
  245. package/src/services/user.ts +80 -56
  246. package/src/services/waiting-rooms.ts +40 -28
  247. package/src/services/workers.ts +85 -64
  248. package/src/services/workflows.ts +57 -42
  249. package/src/services/zero-trust.ts +618 -416
  250. package/src/services/zones.ts +19 -14
@@ -208,12 +208,12 @@ export interface ListAccessRulesResponse {
208
208
  type?: "user" | "organization" | null;
209
209
  } | null;
210
210
  }[];
211
- resultInfo: {
211
+ resultInfo?: {
212
212
  count?: number | null;
213
213
  page?: number | null;
214
214
  perPage?: number | null;
215
215
  totalCount?: number | null;
216
- };
216
+ } | null;
217
217
  }
218
218
 
219
219
  export const ListAccessRulesResponse =
@@ -302,18 +302,25 @@ export const ListAccessRulesResponse =
302
302
  }),
303
303
  ),
304
304
  ),
305
- resultInfo: Schema.Struct({
306
- count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
307
- page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
308
- perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
309
- totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
310
- }).pipe(
311
- Schema.encodeKeys({
312
- count: "count",
313
- page: "page",
314
- perPage: "per_page",
315
- totalCount: "total_count",
316
- }),
305
+ resultInfo: Schema.optional(
306
+ Schema.Union([
307
+ Schema.Struct({
308
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
309
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
310
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
311
+ totalCount: Schema.optional(
312
+ Schema.Union([Schema.Number, Schema.Null]),
313
+ ),
314
+ }).pipe(
315
+ Schema.encodeKeys({
316
+ count: "count",
317
+ page: "page",
318
+ perPage: "per_page",
319
+ totalCount: "total_count",
320
+ }),
321
+ ),
322
+ Schema.Null,
323
+ ]),
317
324
  ),
318
325
  }).pipe(
319
326
  Schema.encodeKeys({ result: "result", resultInfo: "result_info" }),
@@ -936,12 +943,12 @@ export interface ListLockdownsResponse {
936
943
  paused: boolean;
937
944
  urls: string[];
938
945
  }[];
939
- resultInfo: {
946
+ resultInfo?: {
940
947
  count?: number | null;
941
948
  page?: number | null;
942
949
  perPage?: number | null;
943
950
  totalCount?: number | null;
944
- };
951
+ } | null;
945
952
  }
946
953
 
947
954
  export const ListLockdownsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
@@ -981,18 +988,23 @@ export const ListLockdownsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
981
988
  }),
982
989
  ),
983
990
  ),
984
- resultInfo: Schema.Struct({
985
- count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
986
- page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
987
- perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
988
- totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
989
- }).pipe(
990
- Schema.encodeKeys({
991
- count: "count",
992
- page: "page",
993
- perPage: "per_page",
994
- totalCount: "total_count",
995
- }),
991
+ resultInfo: Schema.optional(
992
+ Schema.Union([
993
+ Schema.Struct({
994
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
995
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
996
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
997
+ totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
998
+ }).pipe(
999
+ Schema.encodeKeys({
1000
+ count: "count",
1001
+ page: "page",
1002
+ perPage: "per_page",
1003
+ totalCount: "total_count",
1004
+ }),
1005
+ ),
1006
+ Schema.Null,
1007
+ ]),
996
1008
  ),
997
1009
  }).pipe(
998
1010
  Schema.encodeKeys({ result: "result", resultInfo: "result_info" }),
@@ -1624,12 +1636,12 @@ export interface ListRulesResponse {
1624
1636
  | null;
1625
1637
  ref?: string | null;
1626
1638
  }[];
1627
- resultInfo: {
1639
+ resultInfo?: {
1628
1640
  count?: number | null;
1629
1641
  page?: number | null;
1630
1642
  perPage?: number | null;
1631
1643
  totalCount?: number | null;
1632
- };
1644
+ } | null;
1633
1645
  }
1634
1646
 
1635
1647
  export const ListRulesResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
@@ -1696,18 +1708,23 @@ export const ListRulesResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1696
1708
  ref: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1697
1709
  }),
1698
1710
  ),
1699
- resultInfo: Schema.Struct({
1700
- count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1701
- page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1702
- perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1703
- totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1704
- }).pipe(
1705
- Schema.encodeKeys({
1706
- count: "count",
1707
- page: "page",
1708
- perPage: "per_page",
1709
- totalCount: "total_count",
1710
- }),
1711
+ resultInfo: Schema.optional(
1712
+ Schema.Union([
1713
+ Schema.Struct({
1714
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1715
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1716
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1717
+ totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1718
+ }).pipe(
1719
+ Schema.encodeKeys({
1720
+ count: "count",
1721
+ page: "page",
1722
+ perPage: "per_page",
1723
+ totalCount: "total_count",
1724
+ }),
1725
+ ),
1726
+ Schema.Null,
1727
+ ]),
1711
1728
  ),
1712
1729
  }).pipe(
1713
1730
  Schema.encodeKeys({ result: "result", resultInfo: "result_info" }),
@@ -2744,12 +2761,12 @@ export interface ListUaRulesResponse {
2744
2761
  mode?: "block" | "challenge" | "js_challenge" | "managed_challenge" | null;
2745
2762
  paused?: boolean | null;
2746
2763
  }[];
2747
- resultInfo: {
2764
+ resultInfo?: {
2748
2765
  count?: number | null;
2749
2766
  page?: number | null;
2750
2767
  perPage?: number | null;
2751
2768
  totalCount?: number | null;
2752
- };
2769
+ } | null;
2753
2770
  }
2754
2771
 
2755
2772
  export const ListUaRulesResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
@@ -2780,18 +2797,23 @@ export const ListUaRulesResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2780
2797
  paused: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
2781
2798
  }),
2782
2799
  ),
2783
- resultInfo: Schema.Struct({
2784
- count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2785
- page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2786
- perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2787
- totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2788
- }).pipe(
2789
- Schema.encodeKeys({
2790
- count: "count",
2791
- page: "page",
2792
- perPage: "per_page",
2793
- totalCount: "total_count",
2794
- }),
2800
+ resultInfo: Schema.optional(
2801
+ Schema.Union([
2802
+ Schema.Struct({
2803
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2804
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2805
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2806
+ totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2807
+ }).pipe(
2808
+ Schema.encodeKeys({
2809
+ count: "count",
2810
+ page: "page",
2811
+ perPage: "per_page",
2812
+ totalCount: "total_count",
2813
+ }),
2814
+ ),
2815
+ Schema.Null,
2816
+ ]),
2795
2817
  ),
2796
2818
  }).pipe(
2797
2819
  Schema.encodeKeys({ result: "result", resultInfo: "result_info" }),
@@ -3324,12 +3346,12 @@ export interface ListWafOverridesResponse {
3324
3346
  rules?: Record<string, unknown> | null;
3325
3347
  urls?: string[] | null;
3326
3348
  }[];
3327
- resultInfo: {
3349
+ resultInfo?: {
3328
3350
  count?: number | null;
3329
3351
  page?: number | null;
3330
3352
  perPage?: number | null;
3331
3353
  totalCount?: number | null;
3332
- };
3354
+ } | null;
3333
3355
  }
3334
3356
 
3335
3357
  export const ListWafOverridesResponse =
@@ -3437,18 +3459,25 @@ export const ListWafOverridesResponse =
3437
3459
  }),
3438
3460
  ),
3439
3461
  ),
3440
- resultInfo: Schema.Struct({
3441
- count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
3442
- page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
3443
- perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
3444
- totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
3445
- }).pipe(
3446
- Schema.encodeKeys({
3447
- count: "count",
3448
- page: "page",
3449
- perPage: "per_page",
3450
- totalCount: "total_count",
3451
- }),
3462
+ resultInfo: Schema.optional(
3463
+ Schema.Union([
3464
+ Schema.Struct({
3465
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
3466
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
3467
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
3468
+ totalCount: Schema.optional(
3469
+ Schema.Union([Schema.Number, Schema.Null]),
3470
+ ),
3471
+ }).pipe(
3472
+ Schema.encodeKeys({
3473
+ count: "count",
3474
+ page: "page",
3475
+ perPage: "per_page",
3476
+ totalCount: "total_count",
3477
+ }),
3478
+ ),
3479
+ Schema.Null,
3480
+ ]),
3452
3481
  ),
3453
3482
  }).pipe(
3454
3483
  Schema.encodeKeys({ result: "result", resultInfo: "result_info" }),
@@ -4065,29 +4094,36 @@ export const ListWafPackagesRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
4065
4094
 
4066
4095
  export interface ListWafPackagesResponse {
4067
4096
  result: unknown[];
4068
- resultInfo: {
4097
+ resultInfo?: {
4069
4098
  count?: number | null;
4070
4099
  page?: number | null;
4071
4100
  perPage?: number | null;
4072
4101
  totalCount?: number | null;
4073
- };
4102
+ } | null;
4074
4103
  }
4075
4104
 
4076
4105
  export const ListWafPackagesResponse =
4077
4106
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
4078
4107
  result: Schema.Array(Schema.Unknown),
4079
- resultInfo: Schema.Struct({
4080
- count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
4081
- page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
4082
- perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
4083
- totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
4084
- }).pipe(
4085
- Schema.encodeKeys({
4086
- count: "count",
4087
- page: "page",
4088
- perPage: "per_page",
4089
- totalCount: "total_count",
4090
- }),
4108
+ resultInfo: Schema.optional(
4109
+ Schema.Union([
4110
+ Schema.Struct({
4111
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
4112
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
4113
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
4114
+ totalCount: Schema.optional(
4115
+ Schema.Union([Schema.Number, Schema.Null]),
4116
+ ),
4117
+ }).pipe(
4118
+ Schema.encodeKeys({
4119
+ count: "count",
4120
+ page: "page",
4121
+ perPage: "per_page",
4122
+ totalCount: "total_count",
4123
+ }),
4124
+ ),
4125
+ Schema.Null,
4126
+ ]),
4091
4127
  ),
4092
4128
  }).pipe(
4093
4129
  Schema.encodeKeys({ result: "result", resultInfo: "result_info" }),
@@ -4214,12 +4250,12 @@ export interface ListWafPackageGroupsResponse {
4214
4250
  modifiedRulesCount?: number | null;
4215
4251
  packageId?: string | null;
4216
4252
  }[];
4217
- resultInfo: {
4253
+ resultInfo?: {
4218
4254
  count?: number | null;
4219
4255
  page?: number | null;
4220
4256
  perPage?: number | null;
4221
4257
  totalCount?: number | null;
4222
- };
4258
+ } | null;
4223
4259
  }
4224
4260
 
4225
4261
  export const ListWafPackageGroupsResponse =
@@ -4254,18 +4290,25 @@ export const ListWafPackageGroupsResponse =
4254
4290
  }),
4255
4291
  ),
4256
4292
  ),
4257
- resultInfo: Schema.Struct({
4258
- count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
4259
- page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
4260
- perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
4261
- totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
4262
- }).pipe(
4263
- Schema.encodeKeys({
4264
- count: "count",
4265
- page: "page",
4266
- perPage: "per_page",
4267
- totalCount: "total_count",
4268
- }),
4293
+ resultInfo: Schema.optional(
4294
+ Schema.Union([
4295
+ Schema.Struct({
4296
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
4297
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
4298
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
4299
+ totalCount: Schema.optional(
4300
+ Schema.Union([Schema.Number, Schema.Null]),
4301
+ ),
4302
+ }).pipe(
4303
+ Schema.encodeKeys({
4304
+ count: "count",
4305
+ page: "page",
4306
+ perPage: "per_page",
4307
+ totalCount: "total_count",
4308
+ }),
4309
+ ),
4310
+ Schema.Null,
4311
+ ]),
4269
4312
  ),
4270
4313
  }).pipe(
4271
4314
  Schema.encodeKeys({ result: "result", resultInfo: "result_info" }),
@@ -4456,12 +4499,12 @@ export interface ListWafPackageRulesResponse {
4456
4499
  priority: string;
4457
4500
  }
4458
4501
  )[];
4459
- resultInfo: {
4502
+ resultInfo?: {
4460
4503
  count?: number | null;
4461
4504
  page?: number | null;
4462
4505
  perPage?: number | null;
4463
4506
  totalCount?: number | null;
4464
- };
4507
+ } | null;
4465
4508
  }
4466
4509
 
4467
4510
  export const ListWafPackageRulesResponse =
@@ -4535,18 +4578,25 @@ export const ListWafPackageRulesResponse =
4535
4578
  ),
4536
4579
  ]),
4537
4580
  ),
4538
- resultInfo: Schema.Struct({
4539
- count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
4540
- page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
4541
- perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
4542
- totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
4543
- }).pipe(
4544
- Schema.encodeKeys({
4545
- count: "count",
4546
- page: "page",
4547
- perPage: "per_page",
4548
- totalCount: "total_count",
4549
- }),
4581
+ resultInfo: Schema.optional(
4582
+ Schema.Union([
4583
+ Schema.Struct({
4584
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
4585
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
4586
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
4587
+ totalCount: Schema.optional(
4588
+ Schema.Union([Schema.Number, Schema.Null]),
4589
+ ),
4590
+ }).pipe(
4591
+ Schema.encodeKeys({
4592
+ count: "count",
4593
+ page: "page",
4594
+ perPage: "per_page",
4595
+ totalCount: "total_count",
4596
+ }),
4597
+ ),
4598
+ Schema.Null,
4599
+ ]),
4550
4600
  ),
4551
4601
  }).pipe(
4552
4602
  Schema.encodeKeys({ result: "result", resultInfo: "result_info" }),
@@ -309,12 +309,12 @@ export interface ListHealthchecksResponse {
309
309
  timeout?: number | null;
310
310
  type?: string | null;
311
311
  }[];
312
- resultInfo: {
312
+ resultInfo?: {
313
313
  count?: number | null;
314
314
  page?: number | null;
315
315
  perPage?: number | null;
316
316
  totalCount?: number | null;
317
- };
317
+ } | null;
318
318
  }
319
319
 
320
320
  export const ListHealthchecksResponse =
@@ -450,18 +450,25 @@ export const ListHealthchecksResponse =
450
450
  }),
451
451
  ),
452
452
  ),
453
- resultInfo: Schema.Struct({
454
- count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
455
- page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
456
- perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
457
- totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
458
- }).pipe(
459
- Schema.encodeKeys({
460
- count: "count",
461
- page: "page",
462
- perPage: "per_page",
463
- totalCount: "total_count",
464
- }),
453
+ resultInfo: Schema.optional(
454
+ Schema.Union([
455
+ Schema.Struct({
456
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
457
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
458
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
459
+ totalCount: Schema.optional(
460
+ Schema.Union([Schema.Number, Schema.Null]),
461
+ ),
462
+ }).pipe(
463
+ Schema.encodeKeys({
464
+ count: "count",
465
+ page: "page",
466
+ perPage: "per_page",
467
+ totalCount: "total_count",
468
+ }),
469
+ ),
470
+ Schema.Null,
471
+ ]),
465
472
  ),
466
473
  }).pipe(
467
474
  Schema.encodeKeys({ result: "result", resultInfo: "result_info" }),
@@ -158,12 +158,12 @@ export interface ListV1sResponse {
158
158
  }[]
159
159
  | null;
160
160
  };
161
- resultInfo: {
161
+ resultInfo?: {
162
162
  count?: number | null;
163
163
  page?: number | null;
164
164
  perPage?: number | null;
165
165
  totalCount?: number | null;
166
- };
166
+ } | null;
167
167
  }
168
168
 
169
169
  export const ListV1sResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
@@ -208,18 +208,23 @@ export const ListV1sResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
208
208
  ]),
209
209
  ),
210
210
  }),
211
- resultInfo: Schema.Struct({
212
- count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
213
- page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
214
- perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
215
- totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
216
- }).pipe(
217
- Schema.encodeKeys({
218
- count: "count",
219
- page: "page",
220
- perPage: "per_page",
221
- totalCount: "total_count",
222
- }),
211
+ resultInfo: Schema.optional(
212
+ Schema.Union([
213
+ Schema.Struct({
214
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
215
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
216
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
217
+ totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
218
+ }).pipe(
219
+ Schema.encodeKeys({
220
+ count: "count",
221
+ page: "page",
222
+ perPage: "per_page",
223
+ totalCount: "total_count",
224
+ }),
225
+ ),
226
+ Schema.Null,
227
+ ]),
223
228
  ),
224
229
  }).pipe(
225
230
  Schema.encodeKeys({ result: "result", resultInfo: "result_info" }),
@@ -252,12 +252,12 @@ export interface ListAttackSurfaceReportIssuesResponse {
252
252
  }[]
253
253
  | null;
254
254
  };
255
- resultInfo: {
255
+ resultInfo?: {
256
256
  count?: number | null;
257
257
  page?: number | null;
258
258
  perPage?: number | null;
259
259
  totalCount?: number | null;
260
- };
260
+ } | null;
261
261
  }
262
262
 
263
263
  export const ListAttackSurfaceReportIssuesResponse =
@@ -371,18 +371,25 @@ export const ListAttackSurfaceReportIssuesResponse =
371
371
  ]),
372
372
  ),
373
373
  }),
374
- resultInfo: Schema.Struct({
375
- count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
376
- page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
377
- perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
378
- totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
379
- }).pipe(
380
- Schema.encodeKeys({
381
- count: "count",
382
- page: "page",
383
- perPage: "per_page",
384
- totalCount: "total_count",
385
- }),
374
+ resultInfo: Schema.optional(
375
+ Schema.Union([
376
+ Schema.Struct({
377
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
378
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
379
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
380
+ totalCount: Schema.optional(
381
+ Schema.Union([Schema.Number, Schema.Null]),
382
+ ),
383
+ }).pipe(
384
+ Schema.encodeKeys({
385
+ count: "count",
386
+ page: "page",
387
+ perPage: "per_page",
388
+ totalCount: "total_count",
389
+ }),
390
+ ),
391
+ Schema.Null,
392
+ ]),
386
393
  ),
387
394
  }).pipe(
388
395
  Schema.encodeKeys({ result: "result", resultInfo: "result_info" }),
@@ -991,12 +998,12 @@ export interface ListDnsResponse {
991
998
  }[]
992
999
  | null;
993
1000
  };
994
- resultInfo: {
1001
+ resultInfo?: {
995
1002
  count?: number | null;
996
1003
  page?: number | null;
997
1004
  perPage?: number | null;
998
1005
  totalCount?: number | null;
999
- };
1006
+ } | null;
1000
1007
  }
1001
1008
 
1002
1009
  export const ListDnsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
@@ -1047,18 +1054,23 @@ export const ListDnsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1047
1054
  ]),
1048
1055
  ),
1049
1056
  }),
1050
- resultInfo: Schema.Struct({
1051
- count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1052
- page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1053
- perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1054
- totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1055
- }).pipe(
1056
- Schema.encodeKeys({
1057
- count: "count",
1058
- page: "page",
1059
- perPage: "per_page",
1060
- totalCount: "total_count",
1061
- }),
1057
+ resultInfo: Schema.optional(
1058
+ Schema.Union([
1059
+ Schema.Struct({
1060
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1061
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1062
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1063
+ totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1064
+ }).pipe(
1065
+ Schema.encodeKeys({
1066
+ count: "count",
1067
+ page: "page",
1068
+ perPage: "per_page",
1069
+ totalCount: "total_count",
1070
+ }),
1071
+ ),
1072
+ Schema.Null,
1073
+ ]),
1062
1074
  ),
1063
1075
  }).pipe(
1064
1076
  Schema.encodeKeys({ result: "result", resultInfo: "result_info" }),