@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
@@ -738,12 +738,12 @@ export interface ListHistoriesResponse {
738
738
  policyId?: string | null;
739
739
  sent?: string | null;
740
740
  }[];
741
- resultInfo: {
741
+ resultInfo?: {
742
742
  count?: number | null;
743
743
  page?: number | null;
744
744
  perPage?: number | null;
745
745
  totalCount?: number | null;
746
- };
746
+ } | null;
747
747
  }
748
748
 
749
749
  export const ListHistoriesResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
@@ -777,18 +777,23 @@ export const ListHistoriesResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
777
777
  }),
778
778
  ),
779
779
  ),
780
- resultInfo: Schema.Struct({
781
- count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
782
- page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
783
- perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
784
- totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
785
- }).pipe(
786
- Schema.encodeKeys({
787
- count: "count",
788
- page: "page",
789
- perPage: "per_page",
790
- totalCount: "total_count",
791
- }),
780
+ resultInfo: Schema.optional(
781
+ Schema.Union([
782
+ Schema.Struct({
783
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
784
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
785
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
786
+ totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
787
+ }).pipe(
788
+ Schema.encodeKeys({
789
+ count: "count",
790
+ page: "page",
791
+ perPage: "per_page",
792
+ totalCount: "total_count",
793
+ }),
794
+ ),
795
+ Schema.Null,
796
+ ]),
792
797
  ),
793
798
  }).pipe(
794
799
  Schema.encodeKeys({ result: "result", resultInfo: "result_info" }),
@@ -328,12 +328,12 @@ export interface ListDiscoveryOperationsResponse {
328
328
  } | null;
329
329
  } | null;
330
330
  }[];
331
- resultInfo: {
331
+ resultInfo?: {
332
332
  count?: number | null;
333
333
  page?: number | null;
334
334
  perPage?: number | null;
335
335
  totalCount?: number | null;
336
- };
336
+ } | null;
337
337
  }
338
338
 
339
339
  export const ListDiscoveryOperationsResponse =
@@ -395,18 +395,25 @@ export const ListDiscoveryOperationsResponse =
395
395
  }),
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" }),
@@ -1073,12 +1080,12 @@ export interface ListOperationsResponse {
1073
1080
  }
1074
1081
  | null;
1075
1082
  }[];
1076
- resultInfo: {
1083
+ resultInfo?: {
1077
1084
  count?: number | null;
1078
1085
  page?: number | null;
1079
1086
  perPage?: number | null;
1080
1087
  totalCount?: number | null;
1081
- };
1088
+ } | null;
1082
1089
  }
1083
1090
 
1084
1091
  export const ListOperationsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
@@ -1366,18 +1373,25 @@ export const ListOperationsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
1366
1373
  }),
1367
1374
  ),
1368
1375
  ),
1369
- resultInfo: Schema.Struct({
1370
- count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1371
- page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1372
- perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1373
- totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1374
- }).pipe(
1375
- Schema.encodeKeys({
1376
- count: "count",
1377
- page: "page",
1378
- perPage: "per_page",
1379
- totalCount: "total_count",
1380
- }),
1376
+ resultInfo: Schema.optional(
1377
+ Schema.Union([
1378
+ Schema.Struct({
1379
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1380
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1381
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1382
+ totalCount: Schema.optional(
1383
+ Schema.Union([Schema.Number, Schema.Null]),
1384
+ ),
1385
+ }).pipe(
1386
+ Schema.encodeKeys({
1387
+ count: "count",
1388
+ page: "page",
1389
+ perPage: "per_page",
1390
+ totalCount: "total_count",
1391
+ }),
1392
+ ),
1393
+ Schema.Null,
1394
+ ]),
1381
1395
  ),
1382
1396
  },
1383
1397
  ).pipe(
@@ -2994,12 +3008,12 @@ export interface ListUserSchemasResponse {
2994
3008
  source?: string | null;
2995
3009
  validationEnabled?: boolean | null;
2996
3010
  }[];
2997
- resultInfo: {
3011
+ resultInfo?: {
2998
3012
  count?: number | null;
2999
3013
  page?: number | null;
3000
3014
  perPage?: number | null;
3001
3015
  totalCount?: number | null;
3002
- };
3016
+ } | null;
3003
3017
  }
3004
3018
 
3005
3019
  export const ListUserSchemasResponse =
@@ -3025,18 +3039,25 @@ export const ListUserSchemasResponse =
3025
3039
  }),
3026
3040
  ),
3027
3041
  ),
3028
- resultInfo: Schema.Struct({
3029
- count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
3030
- page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
3031
- perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
3032
- totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
3033
- }).pipe(
3034
- Schema.encodeKeys({
3035
- count: "count",
3036
- page: "page",
3037
- perPage: "per_page",
3038
- totalCount: "total_count",
3039
- }),
3042
+ resultInfo: Schema.optional(
3043
+ Schema.Union([
3044
+ Schema.Struct({
3045
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
3046
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
3047
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
3048
+ totalCount: Schema.optional(
3049
+ Schema.Union([Schema.Number, Schema.Null]),
3050
+ ),
3051
+ }).pipe(
3052
+ Schema.encodeKeys({
3053
+ count: "count",
3054
+ page: "page",
3055
+ perPage: "per_page",
3056
+ totalCount: "total_count",
3057
+ }),
3058
+ ),
3059
+ Schema.Null,
3060
+ ]),
3040
3061
  ),
3041
3062
  }).pipe(
3042
3063
  Schema.encodeKeys({ result: "result", resultInfo: "result_info" }),
@@ -3391,12 +3412,12 @@ export interface ListUserSchemaHostsResponse {
3391
3412
  name: string;
3392
3413
  schemaId: string;
3393
3414
  }[];
3394
- resultInfo: {
3415
+ resultInfo?: {
3395
3416
  count?: number | null;
3396
3417
  page?: number | null;
3397
3418
  perPage?: number | null;
3398
3419
  totalCount?: number | null;
3399
- };
3420
+ } | null;
3400
3421
  }
3401
3422
 
3402
3423
  export const ListUserSchemaHostsResponse =
@@ -3416,18 +3437,25 @@ export const ListUserSchemaHostsResponse =
3416
3437
  }),
3417
3438
  ),
3418
3439
  ),
3419
- resultInfo: Schema.Struct({
3420
- count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
3421
- page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
3422
- perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
3423
- totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
3424
- }).pipe(
3425
- Schema.encodeKeys({
3426
- count: "count",
3427
- page: "page",
3428
- perPage: "per_page",
3429
- totalCount: "total_count",
3430
- }),
3440
+ resultInfo: Schema.optional(
3441
+ Schema.Union([
3442
+ Schema.Struct({
3443
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
3444
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
3445
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
3446
+ totalCount: Schema.optional(
3447
+ Schema.Union([Schema.Number, Schema.Null]),
3448
+ ),
3449
+ }).pipe(
3450
+ Schema.encodeKeys({
3451
+ count: "count",
3452
+ page: "page",
3453
+ perPage: "per_page",
3454
+ totalCount: "total_count",
3455
+ }),
3456
+ ),
3457
+ Schema.Null,
3458
+ ]),
3431
3459
  ),
3432
3460
  }).pipe(
3433
3461
  Schema.encodeKeys({ result: "result", resultInfo: "result_info" }),
@@ -3600,12 +3628,12 @@ export interface ListUserSchemaOperationsResponse {
3600
3628
  | "TRACE";
3601
3629
  }
3602
3630
  )[];
3603
- resultInfo: {
3631
+ resultInfo?: {
3604
3632
  count?: number | null;
3605
3633
  page?: number | null;
3606
3634
  perPage?: number | null;
3607
3635
  totalCount?: number | null;
3608
- };
3636
+ } | null;
3609
3637
  }
3610
3638
 
3611
3639
  export const ListUserSchemaOperationsResponse =
@@ -3910,18 +3938,25 @@ export const ListUserSchemaOperationsResponse =
3910
3938
  }),
3911
3939
  ]),
3912
3940
  ),
3913
- resultInfo: Schema.Struct({
3914
- count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
3915
- page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
3916
- perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
3917
- totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
3918
- }).pipe(
3919
- Schema.encodeKeys({
3920
- count: "count",
3921
- page: "page",
3922
- perPage: "per_page",
3923
- totalCount: "total_count",
3924
- }),
3941
+ resultInfo: Schema.optional(
3942
+ Schema.Union([
3943
+ Schema.Struct({
3944
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
3945
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
3946
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
3947
+ totalCount: Schema.optional(
3948
+ Schema.Union([Schema.Number, Schema.Null]),
3949
+ ),
3950
+ }).pipe(
3951
+ Schema.encodeKeys({
3952
+ count: "count",
3953
+ page: "page",
3954
+ perPage: "per_page",
3955
+ totalCount: "total_count",
3956
+ }),
3957
+ ),
3958
+ Schema.Null,
3959
+ ]),
3925
3960
  ),
3926
3961
  }).pipe(
3927
3962
  Schema.encodeKeys({ result: "result", resultInfo: "result_info" }),
@@ -93,12 +93,12 @@ export interface ListAuditLogsResponse {
93
93
  resource?: { id?: string | null; type?: string | null } | null;
94
94
  when?: string | null;
95
95
  }[];
96
- resultInfo: {
96
+ resultInfo?: {
97
97
  count?: number | null;
98
98
  page?: number | null;
99
99
  perPage?: number | null;
100
100
  totalCount?: number | null;
101
- };
101
+ } | null;
102
102
  }
103
103
 
104
104
  export const ListAuditLogsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
@@ -156,18 +156,23 @@ export const ListAuditLogsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
156
156
  when: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
157
157
  }),
158
158
  ),
159
- resultInfo: Schema.Struct({
160
- count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
161
- page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
162
- perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
163
- totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
164
- }).pipe(
165
- Schema.encodeKeys({
166
- count: "count",
167
- page: "page",
168
- perPage: "per_page",
169
- totalCount: "total_count",
170
- }),
159
+ resultInfo: Schema.optional(
160
+ Schema.Union([
161
+ Schema.Struct({
162
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
163
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
164
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
165
+ totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
166
+ }).pipe(
167
+ Schema.encodeKeys({
168
+ count: "count",
169
+ page: "page",
170
+ perPage: "per_page",
171
+ totalCount: "total_count",
172
+ }),
173
+ ),
174
+ Schema.Null,
175
+ ]),
171
176
  ),
172
177
  }).pipe(
173
178
  Schema.encodeKeys({ result: "result", resultInfo: "result_info" }),
@@ -223,12 +223,12 @@ export interface ListClientCertificatesResponse {
223
223
  | null;
224
224
  validityDays?: number | null;
225
225
  }[];
226
- resultInfo: {
226
+ resultInfo?: {
227
227
  count?: number | null;
228
228
  page?: number | null;
229
229
  perPage?: number | null;
230
230
  totalCount?: number | null;
231
- };
231
+ } | null;
232
232
  }
233
233
 
234
234
  export const ListClientCertificatesResponse =
@@ -306,18 +306,25 @@ export const ListClientCertificatesResponse =
306
306
  }),
307
307
  ),
308
308
  ),
309
- resultInfo: Schema.Struct({
310
- count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
311
- page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
312
- perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
313
- totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
314
- }).pipe(
315
- Schema.encodeKeys({
316
- count: "count",
317
- page: "page",
318
- perPage: "per_page",
319
- totalCount: "total_count",
320
- }),
309
+ resultInfo: Schema.optional(
310
+ Schema.Union([
311
+ Schema.Struct({
312
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
313
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
314
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
315
+ totalCount: Schema.optional(
316
+ Schema.Union([Schema.Number, Schema.Null]),
317
+ ),
318
+ }).pipe(
319
+ Schema.encodeKeys({
320
+ count: "count",
321
+ page: "page",
322
+ perPage: "per_page",
323
+ totalCount: "total_count",
324
+ }),
325
+ ),
326
+ Schema.Null,
327
+ ]),
321
328
  ),
322
329
  }).pipe(
323
330
  Schema.encodeKeys({ result: "result", resultInfo: "result_info" }),
@@ -247,12 +247,12 @@ export interface ListCustomCertificatesResponse {
247
247
  } | null;
248
248
  policy?: string | null;
249
249
  }[];
250
- resultInfo: {
250
+ resultInfo?: {
251
251
  count?: number | null;
252
252
  page?: number | null;
253
253
  perPage?: number | null;
254
254
  totalCount?: number | null;
255
- };
255
+ } | null;
256
256
  }
257
257
 
258
258
  export const ListCustomCertificatesResponse =
@@ -352,18 +352,25 @@ export const ListCustomCertificatesResponse =
352
352
  }),
353
353
  ),
354
354
  ),
355
- resultInfo: Schema.Struct({
356
- count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
357
- page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
358
- perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
359
- totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
360
- }).pipe(
361
- Schema.encodeKeys({
362
- count: "count",
363
- page: "page",
364
- perPage: "per_page",
365
- totalCount: "total_count",
366
- }),
355
+ resultInfo: Schema.optional(
356
+ Schema.Union([
357
+ Schema.Struct({
358
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
359
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
360
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
361
+ totalCount: Schema.optional(
362
+ Schema.Union([Schema.Number, Schema.Null]),
363
+ ),
364
+ }).pipe(
365
+ Schema.encodeKeys({
366
+ count: "count",
367
+ page: "page",
368
+ perPage: "per_page",
369
+ totalCount: "total_count",
370
+ }),
371
+ ),
372
+ Schema.Null,
373
+ ]),
367
374
  ),
368
375
  }).pipe(
369
376
  Schema.encodeKeys({ result: "result", resultInfo: "result_info" }),
@@ -976,12 +976,12 @@ export interface ListCustomHostnamesResponse {
976
976
  | null;
977
977
  verificationErrors?: string[] | null;
978
978
  }[];
979
- resultInfo: {
979
+ resultInfo?: {
980
980
  count?: number | null;
981
981
  page?: number | null;
982
982
  perPage?: number | null;
983
983
  totalCount?: number | null;
984
- };
984
+ } | null;
985
985
  }
986
986
 
987
987
  export const ListCustomHostnamesResponse =
@@ -1258,18 +1258,25 @@ export const ListCustomHostnamesResponse =
1258
1258
  }),
1259
1259
  ),
1260
1260
  ),
1261
- resultInfo: Schema.Struct({
1262
- count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1263
- page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1264
- perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1265
- totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1266
- }).pipe(
1267
- Schema.encodeKeys({
1268
- count: "count",
1269
- page: "page",
1270
- perPage: "per_page",
1271
- totalCount: "total_count",
1272
- }),
1261
+ resultInfo: Schema.optional(
1262
+ Schema.Union([
1263
+ Schema.Struct({
1264
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1265
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1266
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1267
+ totalCount: Schema.optional(
1268
+ Schema.Union([Schema.Number, Schema.Null]),
1269
+ ),
1270
+ }).pipe(
1271
+ Schema.encodeKeys({
1272
+ count: "count",
1273
+ page: "page",
1274
+ perPage: "per_page",
1275
+ totalCount: "total_count",
1276
+ }),
1277
+ ),
1278
+ Schema.Null,
1279
+ ]),
1273
1280
  ),
1274
1281
  }).pipe(
1275
1282
  Schema.encodeKeys({ result: "result", resultInfo: "result_info" }),
@@ -158,12 +158,12 @@ export interface ListDatabasesResponse {
158
158
  uuid?: string | null;
159
159
  version?: string | 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 ListDatabasesResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
@@ -182,18 +182,23 @@ export const ListDatabasesResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
182
182
  }),
183
183
  ),
184
184
  ),
185
- resultInfo: Schema.Struct({
186
- count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
187
- page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
188
- perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
189
- totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
190
- }).pipe(
191
- Schema.encodeKeys({
192
- count: "count",
193
- page: "page",
194
- perPage: "per_page",
195
- totalCount: "total_count",
196
- }),
185
+ resultInfo: Schema.optional(
186
+ Schema.Union([
187
+ Schema.Struct({
188
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
189
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
190
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
191
+ totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
192
+ }).pipe(
193
+ Schema.encodeKeys({
194
+ count: "count",
195
+ page: "page",
196
+ perPage: "per_page",
197
+ totalCount: "total_count",
198
+ }),
199
+ ),
200
+ Schema.Null,
201
+ ]),
197
202
  ),
198
203
  }).pipe(
199
204
  Schema.encodeKeys({ result: "result", resultInfo: "result_info" }),
@@ -465,12 +465,12 @@ export interface ListDnsFirewallsResponse {
465
465
  onlyWhenUpstreamUnhealthy?: boolean | null;
466
466
  } | null;
467
467
  }[];
468
- resultInfo: {
468
+ resultInfo?: {
469
469
  count?: number | null;
470
470
  page?: number | null;
471
471
  perPage?: number | null;
472
472
  totalCount?: number | null;
473
- };
473
+ } | null;
474
474
  }
475
475
 
476
476
  export const ListDnsFirewallsResponse =
@@ -525,18 +525,25 @@ export const ListDnsFirewallsResponse =
525
525
  }),
526
526
  ),
527
527
  ),
528
- resultInfo: Schema.Struct({
529
- count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
530
- page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
531
- perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
532
- totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
533
- }).pipe(
534
- Schema.encodeKeys({
535
- count: "count",
536
- page: "page",
537
- perPage: "per_page",
538
- totalCount: "total_count",
539
- }),
528
+ resultInfo: Schema.optional(
529
+ Schema.Union([
530
+ Schema.Struct({
531
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
532
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
533
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
534
+ totalCount: Schema.optional(
535
+ Schema.Union([Schema.Number, Schema.Null]),
536
+ ),
537
+ }).pipe(
538
+ Schema.encodeKeys({
539
+ count: "count",
540
+ page: "page",
541
+ perPage: "per_page",
542
+ totalCount: "total_count",
543
+ }),
544
+ ),
545
+ Schema.Null,
546
+ ]),
540
547
  ),
541
548
  }).pipe(
542
549
  Schema.encodeKeys({ result: "result", resultInfo: "result_info" }),