@distilled.cloud/cloudflare 0.18.2 → 0.19.1

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/schemas.d.ts +7 -8
  2. package/lib/schemas.d.ts.map +1 -1
  3. package/lib/schemas.js +9 -12
  4. package/lib/schemas.js.map +1 -1
  5. package/lib/services/abuse-reports.d.ts +4 -4
  6. package/lib/services/abuse-reports.d.ts.map +1 -1
  7. package/lib/services/abuse-reports.js +28 -22
  8. package/lib/services/abuse-reports.js.map +1 -1
  9. package/lib/services/accounts.d.ts +10 -10
  10. package/lib/services/accounts.d.ts.map +1 -1
  11. package/lib/services/accounts.js +67 -52
  12. package/lib/services/accounts.js.map +1 -1
  13. package/lib/services/ai-gateway.d.ts +10 -10
  14. package/lib/services/ai-gateway.d.ts.map +1 -1
  15. package/lib/services/ai-gateway.js +70 -55
  16. package/lib/services/ai-gateway.js.map +1 -1
  17. package/lib/services/ai.d.ts +2 -2
  18. package/lib/services/ai.d.ts.map +1 -1
  19. package/lib/services/ai.js +14 -11
  20. package/lib/services/ai.js.map +1 -1
  21. package/lib/services/alerting.d.ts +2 -2
  22. package/lib/services/alerting.d.ts.map +1 -1
  23. package/lib/services/alerting.js +14 -11
  24. package/lib/services/alerting.js.map +1 -1
  25. package/lib/services/api-gateway.d.ts +10 -10
  26. package/lib/services/api-gateway.d.ts.map +1 -1
  27. package/lib/services/api-gateway.js +70 -55
  28. package/lib/services/api-gateway.js.map +1 -1
  29. package/lib/services/audit-logs.d.ts +2 -2
  30. package/lib/services/audit-logs.d.ts.map +1 -1
  31. package/lib/services/audit-logs.js +14 -11
  32. package/lib/services/audit-logs.js.map +1 -1
  33. package/lib/services/client-certificates.d.ts +2 -2
  34. package/lib/services/client-certificates.d.ts.map +1 -1
  35. package/lib/services/client-certificates.js +14 -11
  36. package/lib/services/client-certificates.js.map +1 -1
  37. package/lib/services/custom-certificates.d.ts +2 -2
  38. package/lib/services/custom-certificates.d.ts.map +1 -1
  39. package/lib/services/custom-certificates.js +14 -11
  40. package/lib/services/custom-certificates.js.map +1 -1
  41. package/lib/services/custom-hostnames.d.ts +2 -2
  42. package/lib/services/custom-hostnames.d.ts.map +1 -1
  43. package/lib/services/custom-hostnames.js +14 -11
  44. package/lib/services/custom-hostnames.js.map +1 -1
  45. package/lib/services/custom-pages.d.ts +40 -13
  46. package/lib/services/custom-pages.d.ts.map +1 -1
  47. package/lib/services/custom-pages.js +68 -15
  48. package/lib/services/custom-pages.js.map +1 -1
  49. package/lib/services/d1.d.ts +2 -2
  50. package/lib/services/d1.d.ts.map +1 -1
  51. package/lib/services/d1.js +14 -11
  52. package/lib/services/d1.js.map +1 -1
  53. package/lib/services/dns-firewall.d.ts +2 -2
  54. package/lib/services/dns-firewall.d.ts.map +1 -1
  55. package/lib/services/dns-firewall.js +14 -11
  56. package/lib/services/dns-firewall.js.map +1 -1
  57. package/lib/services/dns.d.ts +4 -4
  58. package/lib/services/dns.d.ts.map +1 -1
  59. package/lib/services/dns.js +28 -22
  60. package/lib/services/dns.js.map +1 -1
  61. package/lib/services/durable-objects.d.ts +4 -4
  62. package/lib/services/durable-objects.d.ts.map +1 -1
  63. package/lib/services/durable-objects.js +25 -19
  64. package/lib/services/durable-objects.js.map +1 -1
  65. package/lib/services/email-routing.d.ts +4 -4
  66. package/lib/services/email-routing.d.ts.map +1 -1
  67. package/lib/services/email-routing.js +28 -22
  68. package/lib/services/email-routing.js.map +1 -1
  69. package/lib/services/email-security.d.ts +14 -14
  70. package/lib/services/email-security.d.ts.map +1 -1
  71. package/lib/services/email-security.js +98 -77
  72. package/lib/services/email-security.js.map +1 -1
  73. package/lib/services/filters.d.ts +2 -2
  74. package/lib/services/filters.d.ts.map +1 -1
  75. package/lib/services/filters.js +14 -11
  76. package/lib/services/filters.js.map +1 -1
  77. package/lib/services/firewall.d.ts +82 -39
  78. package/lib/services/firewall.d.ts.map +1 -1
  79. package/lib/services/firewall.js +232 -114
  80. package/lib/services/firewall.js.map +1 -1
  81. package/lib/services/healthchecks.d.ts +2 -2
  82. package/lib/services/healthchecks.d.ts.map +1 -1
  83. package/lib/services/healthchecks.js +14 -11
  84. package/lib/services/healthchecks.js.map +1 -1
  85. package/lib/services/images.d.ts +2 -2
  86. package/lib/services/images.d.ts.map +1 -1
  87. package/lib/services/images.js +14 -11
  88. package/lib/services/images.js.map +1 -1
  89. package/lib/services/intel.d.ts +6 -4
  90. package/lib/services/intel.d.ts.map +1 -1
  91. package/lib/services/intel.js +30 -22
  92. package/lib/services/intel.js.map +1 -1
  93. package/lib/services/kv.d.ts +4 -4
  94. package/lib/services/kv.d.ts.map +1 -1
  95. package/lib/services/kv.js +25 -19
  96. package/lib/services/kv.js.map +1 -1
  97. package/lib/services/load-balancers.d.ts +2 -2
  98. package/lib/services/load-balancers.d.ts.map +1 -1
  99. package/lib/services/load-balancers.js +14 -11
  100. package/lib/services/load-balancers.js.map +1 -1
  101. package/lib/services/logpush.d.ts +157 -64
  102. package/lib/services/logpush.d.ts.map +1 -1
  103. package/lib/services/logpush.js +292 -63
  104. package/lib/services/logpush.js.map +1 -1
  105. package/lib/services/magic-cloud-networking.d.ts +2 -2
  106. package/lib/services/magic-cloud-networking.d.ts.map +1 -1
  107. package/lib/services/magic-cloud-networking.js +14 -11
  108. package/lib/services/magic-cloud-networking.js.map +1 -1
  109. package/lib/services/memberships.d.ts +2 -2
  110. package/lib/services/memberships.d.ts.map +1 -1
  111. package/lib/services/memberships.js +14 -11
  112. package/lib/services/memberships.js.map +1 -1
  113. package/lib/services/origin-ca-certificates.d.ts +2 -2
  114. package/lib/services/origin-ca-certificates.d.ts.map +1 -1
  115. package/lib/services/origin-ca-certificates.js +14 -11
  116. package/lib/services/origin-ca-certificates.js.map +1 -1
  117. package/lib/services/pages.d.ts +4 -4
  118. package/lib/services/pages.d.ts.map +1 -1
  119. package/lib/services/pages.js +28 -22
  120. package/lib/services/pages.js.map +1 -1
  121. package/lib/services/queues.d.ts +2 -2
  122. package/lib/services/queues.d.ts.map +1 -1
  123. package/lib/services/queues.js +14 -11
  124. package/lib/services/queues.js.map +1 -1
  125. package/lib/services/r2.d.ts +97 -2
  126. package/lib/services/r2.d.ts.map +1 -1
  127. package/lib/services/r2.js +125 -6
  128. package/lib/services/r2.js.map +1 -1
  129. package/lib/services/radar.d.ts +4 -4
  130. package/lib/services/radar.d.ts.map +1 -1
  131. package/lib/services/radar.js +28 -22
  132. package/lib/services/radar.js.map +1 -1
  133. package/lib/services/rate-limits.d.ts +2 -2
  134. package/lib/services/rate-limits.d.ts.map +1 -1
  135. package/lib/services/rate-limits.js +14 -11
  136. package/lib/services/rate-limits.js.map +1 -1
  137. package/lib/services/resource-sharing.d.ts +6 -6
  138. package/lib/services/resource-sharing.d.ts.map +1 -1
  139. package/lib/services/resource-sharing.js +42 -33
  140. package/lib/services/resource-sharing.js.map +1 -1
  141. package/lib/services/rules.d.ts +2 -2
  142. package/lib/services/rules.d.ts.map +1 -1
  143. package/lib/services/rules.js +11 -8
  144. package/lib/services/rules.js.map +1 -1
  145. package/lib/services/rulesets.d.ts +202 -67
  146. package/lib/services/rulesets.d.ts.map +1 -1
  147. package/lib/services/rulesets.js +383 -84
  148. package/lib/services/rulesets.js.map +1 -1
  149. package/lib/services/rum.d.ts +2 -2
  150. package/lib/services/rum.d.ts.map +1 -1
  151. package/lib/services/rum.js +14 -11
  152. package/lib/services/rum.js.map +1 -1
  153. package/lib/services/schema-validation.d.ts +4 -4
  154. package/lib/services/schema-validation.d.ts.map +1 -1
  155. package/lib/services/schema-validation.js +28 -22
  156. package/lib/services/schema-validation.js.map +1 -1
  157. package/lib/services/secrets-store.d.ts +4 -4
  158. package/lib/services/secrets-store.d.ts.map +1 -1
  159. package/lib/services/secrets-store.js +28 -22
  160. package/lib/services/secrets-store.js.map +1 -1
  161. package/lib/services/security-center.d.ts +68 -21
  162. package/lib/services/security-center.d.ts.map +1 -1
  163. package/lib/services/security-center.js +142 -33
  164. package/lib/services/security-center.js.map +1 -1
  165. package/lib/services/snippets.d.ts +2 -2
  166. package/lib/services/snippets.d.ts.map +1 -1
  167. package/lib/services/snippets.js +14 -11
  168. package/lib/services/snippets.js.map +1 -1
  169. package/lib/services/spectrum.d.ts +2 -2
  170. package/lib/services/spectrum.d.ts.map +1 -1
  171. package/lib/services/spectrum.js +14 -11
  172. package/lib/services/spectrum.js.map +1 -1
  173. package/lib/services/speed.d.ts +2 -2
  174. package/lib/services/speed.d.ts.map +1 -1
  175. package/lib/services/speed.js +14 -11
  176. package/lib/services/speed.js.map +1 -1
  177. package/lib/services/token-validation.d.ts +4 -4
  178. package/lib/services/token-validation.d.ts.map +1 -1
  179. package/lib/services/token-validation.js +28 -22
  180. package/lib/services/token-validation.js.map +1 -1
  181. package/lib/services/turnstile.d.ts +2 -2
  182. package/lib/services/turnstile.d.ts.map +1 -1
  183. package/lib/services/turnstile.js +14 -11
  184. package/lib/services/turnstile.js.map +1 -1
  185. package/lib/services/user.d.ts +8 -8
  186. package/lib/services/user.d.ts.map +1 -1
  187. package/lib/services/user.js +56 -44
  188. package/lib/services/user.js.map +1 -1
  189. package/lib/services/waiting-rooms.d.ts +18 -7
  190. package/lib/services/waiting-rooms.d.ts.map +1 -1
  191. package/lib/services/waiting-rooms.js +53 -29
  192. package/lib/services/waiting-rooms.js.map +1 -1
  193. package/lib/services/workers.d.ts +17 -17
  194. package/lib/services/workers.d.ts.map +1 -1
  195. package/lib/services/workers.js +53 -44
  196. package/lib/services/workers.js.map +1 -1
  197. package/lib/services/workflows.d.ts +6 -6
  198. package/lib/services/workflows.d.ts.map +1 -1
  199. package/lib/services/workflows.js +42 -33
  200. package/lib/services/workflows.js.map +1 -1
  201. package/lib/services/zero-trust.d.ts +639 -264
  202. package/lib/services/zero-trust.d.ts.map +1 -1
  203. package/lib/services/zero-trust.js +1575 -594
  204. package/lib/services/zero-trust.js.map +1 -1
  205. package/lib/services/zones.d.ts +2 -2
  206. package/lib/services/zones.d.ts.map +1 -1
  207. package/lib/services/zones.js +14 -11
  208. package/lib/services/zones.js.map +1 -1
  209. package/package.json +2 -2
  210. package/src/schemas.ts +19 -17
  211. package/src/services/abuse-reports.ts +42 -28
  212. package/src/services/accounts.ts +94 -67
  213. package/src/services/ai-gateway.ts +101 -70
  214. package/src/services/ai.ts +19 -14
  215. package/src/services/alerting.ts +19 -14
  216. package/src/services/api-gateway.ts +105 -70
  217. package/src/services/audit-logs.ts +19 -14
  218. package/src/services/client-certificates.ts +21 -14
  219. package/src/services/custom-certificates.ts +21 -14
  220. package/src/services/custom-hostnames.ts +21 -14
  221. package/src/services/custom-pages.ts +170 -66
  222. package/src/services/d1.ts +19 -14
  223. package/src/services/dns-firewall.ts +21 -14
  224. package/src/services/dns.ts +40 -28
  225. package/src/services/durable-objects.ts +39 -25
  226. package/src/services/email-routing.ts +38 -28
  227. package/src/services/email-security.ts +147 -98
  228. package/src/services/filters.ts +19 -14
  229. package/src/services/firewall.ts +462 -233
  230. package/src/services/healthchecks.ts +21 -14
  231. package/src/services/images.ts +19 -14
  232. package/src/services/intel.ts +44 -28
  233. package/src/services/kv.ts +39 -25
  234. package/src/services/load-balancers.ts +19 -14
  235. package/src/services/logpush.ts +798 -372
  236. package/src/services/magic-cloud-networking.ts +19 -14
  237. package/src/services/memberships.ts +21 -14
  238. package/src/services/origin-ca-certificates.ts +21 -14
  239. package/src/services/pages.ts +40 -28
  240. package/src/services/queues.ts +21 -14
  241. package/src/services/r2.ts +307 -9
  242. package/src/services/radar.ts +42 -28
  243. package/src/services/rate-limits.ts +21 -14
  244. package/src/services/resource-sharing.ts +61 -42
  245. package/src/services/rules.ts +18 -11
  246. package/src/services/rulesets.ts +3990 -3420
  247. package/src/services/rum.ts +19 -14
  248. package/src/services/schema-validation.ts +40 -28
  249. package/src/services/secrets-store.ts +40 -28
  250. package/src/services/security-center.ts +266 -77
  251. package/src/services/snippets.ts +19 -14
  252. package/src/services/spectrum.ts +19 -14
  253. package/src/services/speed.ts +19 -14
  254. package/src/services/token-validation.ts +40 -28
  255. package/src/services/turnstile.ts +19 -14
  256. package/src/services/user.ts +80 -56
  257. package/src/services/waiting-rooms.ts +89 -39
  258. package/src/services/workers.ts +85 -64
  259. package/src/services/workflows.ts +57 -42
  260. package/src/services/zero-trust.ts +4536 -2654
  261. package/src/services/zones.ts +19 -14
package/src/schemas.ts CHANGED
@@ -1,19 +1,35 @@
1
1
  /**
2
2
  * Common schemas for Cloudflare API types.
3
3
  *
4
- * Includes file upload schemas for multipart form-data operations.
4
+ * Cloudflare-specific schemas live here. The cloud-agnostic raw-binary HTTP
5
+ * body schemas (`BinaryBodySchema`, `BinaryStreamResponseSchema`,
6
+ * `Uint8ArraySchema`, etc.) live in `@distilled.cloud/core/schemas` and are
7
+ * re-exported below for convenience.
5
8
  */
6
9
 
7
10
  import * as Schema from "effect/Schema";
11
+ import { BlobSchema } from "@distilled.cloud/core/schemas";
12
+
13
+ export {
14
+ ArrayBufferSchema,
15
+ BinaryBodySchema,
16
+ BinaryStreamResponseSchema,
17
+ BlobSchema,
18
+ ReadableStreamSchema,
19
+ StreamSchema,
20
+ Uint8ArraySchema,
21
+ type BinaryBody,
22
+ } from "@distilled.cloud/core/schemas";
8
23
 
9
24
  // =============================================================================
10
- // File Upload Schemas
25
+ // File Upload Schemas (multipart form-data)
11
26
  // =============================================================================
12
27
 
13
28
  /**
14
29
  * Schema for File objects (browser File API).
15
30
  *
16
- * Used for multipart form-data file uploads.
31
+ * Used for multipart form-data file uploads (e.g. Workers script bundles,
32
+ * Pages assets, brand-protection submissions).
17
33
  */
18
34
  export const FileSchema = Schema.declare(
19
35
  (input): input is File =>
@@ -24,20 +40,6 @@ export const FileSchema = Schema.declare(
24
40
  },
25
41
  );
26
42
 
27
- /**
28
- * Schema for Blob objects.
29
- *
30
- * Used for binary data uploads.
31
- */
32
- export const BlobSchema = Schema.declare(
33
- (input): input is Blob =>
34
- typeof Blob !== "undefined" && input instanceof Blob,
35
- {
36
- identifier: "Blob",
37
- description: "A Blob object for upload",
38
- },
39
- );
40
-
41
43
  /**
42
44
  * Schema for uploadable content (File or Blob).
43
45
  *
@@ -298,12 +298,12 @@ export interface ListAbuseReportsResponse {
298
298
  }[]
299
299
  | null;
300
300
  };
301
- resultInfo: {
301
+ resultInfo?: {
302
302
  count?: number | null;
303
303
  page?: number | null;
304
304
  perPage?: number | null;
305
305
  totalCount?: number | null;
306
- };
306
+ } | null;
307
307
  }
308
308
 
309
309
  export const ListAbuseReportsResponse =
@@ -394,18 +394,25 @@ export const ListAbuseReportsResponse =
394
394
  ]),
395
395
  ),
396
396
  }),
397
- resultInfo: Schema.Struct({
398
- count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
399
- page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
400
- perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
401
- totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
402
- }).pipe(
403
- Schema.encodeKeys({
404
- count: "count",
405
- page: "page",
406
- perPage: "per_page",
407
- totalCount: "total_count",
408
- }),
397
+ resultInfo: Schema.optional(
398
+ Schema.Union([
399
+ Schema.Struct({
400
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
401
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
402
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
403
+ totalCount: Schema.optional(
404
+ Schema.Union([Schema.Number, Schema.Null]),
405
+ ),
406
+ }).pipe(
407
+ Schema.encodeKeys({
408
+ count: "count",
409
+ page: "page",
410
+ perPage: "per_page",
411
+ totalCount: "total_count",
412
+ }),
413
+ ),
414
+ Schema.Null,
415
+ ]),
409
416
  ),
410
417
  }).pipe(
411
418
  Schema.encodeKeys({ result: "result", resultInfo: "result_info" }),
@@ -672,12 +679,12 @@ export interface ListMitigationsResponse {
672
679
  }[]
673
680
  | null;
674
681
  };
675
- resultInfo: {
682
+ resultInfo?: {
676
683
  count?: number | null;
677
684
  page?: number | null;
678
685
  perPage?: number | null;
679
686
  totalCount?: number | null;
680
- };
687
+ } | null;
681
688
  }
682
689
 
683
690
  export const ListMitigationsResponse =
@@ -729,18 +736,25 @@ export const ListMitigationsResponse =
729
736
  ]),
730
737
  ),
731
738
  }),
732
- resultInfo: Schema.Struct({
733
- count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
734
- page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
735
- perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
736
- totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
737
- }).pipe(
738
- Schema.encodeKeys({
739
- count: "count",
740
- page: "page",
741
- perPage: "per_page",
742
- totalCount: "total_count",
743
- }),
739
+ resultInfo: Schema.optional(
740
+ Schema.Union([
741
+ Schema.Struct({
742
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
743
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
744
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
745
+ totalCount: Schema.optional(
746
+ Schema.Union([Schema.Number, Schema.Null]),
747
+ ),
748
+ }).pipe(
749
+ Schema.encodeKeys({
750
+ count: "count",
751
+ page: "page",
752
+ perPage: "per_page",
753
+ totalCount: "total_count",
754
+ }),
755
+ ),
756
+ Schema.Null,
757
+ ]),
744
758
  ),
745
759
  }).pipe(
746
760
  Schema.encodeKeys({ result: "result", resultInfo: "result_info" }),
@@ -253,12 +253,12 @@ export interface ListAccountsResponse {
253
253
  enforceTwofactor?: boolean | null;
254
254
  } | null;
255
255
  }[];
256
- resultInfo: {
256
+ resultInfo?: {
257
257
  count?: number | null;
258
258
  page?: number | null;
259
259
  perPage?: number | null;
260
260
  totalCount?: number | null;
261
- };
261
+ } | null;
262
262
  }
263
263
 
264
264
  export const ListAccountsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
@@ -315,18 +315,23 @@ export const ListAccountsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
315
315
  }),
316
316
  ),
317
317
  ),
318
- resultInfo: Schema.Struct({
319
- count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
320
- page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
321
- perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
322
- totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
323
- }).pipe(
324
- Schema.encodeKeys({
325
- count: "count",
326
- page: "page",
327
- perPage: "per_page",
328
- totalCount: "total_count",
329
- }),
318
+ resultInfo: Schema.optional(
319
+ Schema.Union([
320
+ Schema.Struct({
321
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
322
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
323
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
324
+ totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
325
+ }).pipe(
326
+ Schema.encodeKeys({
327
+ count: "count",
328
+ page: "page",
329
+ perPage: "per_page",
330
+ totalCount: "total_count",
331
+ }),
332
+ ),
333
+ Schema.Null,
334
+ ]),
330
335
  ),
331
336
  }).pipe(
332
337
  Schema.encodeKeys({ result: "result", resultInfo: "result_info" }),
@@ -895,7 +900,7 @@ export interface ListLogAuditsResponse {
895
900
  } | null;
896
901
  zone?: { id?: string | null; name?: string | null } | null;
897
902
  }[];
898
- resultInfo: { cursors?: { after?: string | null } | null };
903
+ resultInfo?: { cursors?: { after?: string | null } | null } | null;
899
904
  }
900
905
 
901
906
  export const ListLogAuditsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
@@ -1031,16 +1036,23 @@ export const ListLogAuditsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1031
1036
  ),
1032
1037
  }),
1033
1038
  ),
1034
- resultInfo: Schema.Struct({
1035
- cursors: Schema.optional(
1036
- Schema.Union([
1037
- Schema.Struct({
1038
- after: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1039
- }),
1040
- Schema.Null,
1041
- ]),
1042
- ),
1043
- }),
1039
+ resultInfo: Schema.optional(
1040
+ Schema.Union([
1041
+ Schema.Struct({
1042
+ cursors: Schema.optional(
1043
+ Schema.Union([
1044
+ Schema.Struct({
1045
+ after: Schema.optional(
1046
+ Schema.Union([Schema.String, Schema.Null]),
1047
+ ),
1048
+ }),
1049
+ Schema.Null,
1050
+ ]),
1051
+ ),
1052
+ }),
1053
+ Schema.Null,
1054
+ ]),
1055
+ ),
1044
1056
  }).pipe(
1045
1057
  Schema.encodeKeys({ result: "result", resultInfo: "result_info" }),
1046
1058
  ) as unknown as Schema.Schema<ListLogAuditsResponse>;
@@ -1497,12 +1509,12 @@ export interface ListMembersResponse {
1497
1509
  twoFactorAuthenticationEnabled?: boolean | null;
1498
1510
  } | null;
1499
1511
  }[];
1500
- resultInfo: {
1512
+ resultInfo?: {
1501
1513
  count?: number | null;
1502
1514
  page?: number | null;
1503
1515
  perPage?: number | null;
1504
1516
  totalCount?: number | null;
1505
- };
1517
+ } | null;
1506
1518
  }
1507
1519
 
1508
1520
  export const ListMembersResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
@@ -1767,18 +1779,23 @@ export const ListMembersResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1767
1779
  ),
1768
1780
  }),
1769
1781
  ),
1770
- resultInfo: Schema.Struct({
1771
- count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1772
- page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1773
- perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1774
- totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1775
- }).pipe(
1776
- Schema.encodeKeys({
1777
- count: "count",
1778
- page: "page",
1779
- perPage: "per_page",
1780
- totalCount: "total_count",
1781
- }),
1782
+ resultInfo: Schema.optional(
1783
+ Schema.Union([
1784
+ Schema.Struct({
1785
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1786
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1787
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1788
+ totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1789
+ }).pipe(
1790
+ Schema.encodeKeys({
1791
+ count: "count",
1792
+ page: "page",
1793
+ perPage: "per_page",
1794
+ totalCount: "total_count",
1795
+ }),
1796
+ ),
1797
+ Schema.Null,
1798
+ ]),
1782
1799
  ),
1783
1800
  }).pipe(
1784
1801
  Schema.encodeKeys({ result: "result", resultInfo: "result_info" }),
@@ -2758,12 +2775,12 @@ export interface ListRolesResponse {
2758
2775
  zones?: { read?: boolean | null; write?: boolean | null } | null;
2759
2776
  };
2760
2777
  }[];
2761
- resultInfo: {
2778
+ resultInfo?: {
2762
2779
  count?: number | null;
2763
2780
  page?: number | null;
2764
2781
  perPage?: number | null;
2765
2782
  totalCount?: number | null;
2766
- };
2783
+ } | null;
2767
2784
  }
2768
2785
 
2769
2786
  export const ListRolesResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
@@ -2947,18 +2964,23 @@ export const ListRolesResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2947
2964
  ),
2948
2965
  }),
2949
2966
  ),
2950
- resultInfo: Schema.Struct({
2951
- count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2952
- page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2953
- perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2954
- totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2955
- }).pipe(
2956
- Schema.encodeKeys({
2957
- count: "count",
2958
- page: "page",
2959
- perPage: "per_page",
2960
- totalCount: "total_count",
2961
- }),
2967
+ resultInfo: Schema.optional(
2968
+ Schema.Union([
2969
+ Schema.Struct({
2970
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2971
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2972
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2973
+ totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2974
+ }).pipe(
2975
+ Schema.encodeKeys({
2976
+ count: "count",
2977
+ page: "page",
2978
+ perPage: "per_page",
2979
+ totalCount: "total_count",
2980
+ }),
2981
+ ),
2982
+ Schema.Null,
2983
+ ]),
2962
2984
  ),
2963
2985
  }).pipe(
2964
2986
  Schema.encodeKeys({ result: "result", resultInfo: "result_info" }),
@@ -3875,12 +3897,12 @@ export interface ListTokensResponse {
3875
3897
  | null;
3876
3898
  status?: "active" | "disabled" | "expired" | null;
3877
3899
  }[];
3878
- resultInfo: {
3900
+ resultInfo?: {
3879
3901
  count?: number | null;
3880
3902
  page?: number | null;
3881
3903
  perPage?: number | null;
3882
3904
  totalCount?: number | null;
3883
- };
3905
+ } | null;
3884
3906
  }
3885
3907
 
3886
3908
  export const ListTokensResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
@@ -3974,18 +3996,23 @@ export const ListTokensResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
3974
3996
  }),
3975
3997
  ),
3976
3998
  ),
3977
- resultInfo: Schema.Struct({
3978
- count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
3979
- page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
3980
- perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
3981
- totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
3982
- }).pipe(
3983
- Schema.encodeKeys({
3984
- count: "count",
3985
- page: "page",
3986
- perPage: "per_page",
3987
- totalCount: "total_count",
3988
- }),
3999
+ resultInfo: Schema.optional(
4000
+ Schema.Union([
4001
+ Schema.Struct({
4002
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
4003
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
4004
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
4005
+ totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
4006
+ }).pipe(
4007
+ Schema.encodeKeys({
4008
+ count: "count",
4009
+ page: "page",
4010
+ perPage: "per_page",
4011
+ totalCount: "total_count",
4012
+ }),
4013
+ ),
4014
+ Schema.Null,
4015
+ ]),
3989
4016
  ),
3990
4017
  }).pipe(
3991
4018
  Schema.encodeKeys({ result: "result", resultInfo: "result_info" }),
@@ -279,12 +279,12 @@ export interface ListAiGatewaysResponse {
279
279
  } | null;
280
280
  zdr?: boolean | null;
281
281
  }[];
282
- resultInfo: {
282
+ resultInfo?: {
283
283
  count?: number | null;
284
284
  page?: number | null;
285
285
  perPage?: number | null;
286
286
  totalCount?: number | null;
287
- };
287
+ } | null;
288
288
  }
289
289
 
290
290
  export const ListAiGatewaysResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
@@ -407,18 +407,25 @@ export const ListAiGatewaysResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
407
407
  }),
408
408
  ),
409
409
  ),
410
- resultInfo: Schema.Struct({
411
- count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
412
- page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
413
- perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
414
- totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
415
- }).pipe(
416
- Schema.encodeKeys({
417
- count: "count",
418
- page: "page",
419
- perPage: "per_page",
420
- totalCount: "total_count",
421
- }),
410
+ resultInfo: Schema.optional(
411
+ Schema.Union([
412
+ Schema.Struct({
413
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
414
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
415
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
416
+ totalCount: Schema.optional(
417
+ Schema.Union([Schema.Number, Schema.Null]),
418
+ ),
419
+ }).pipe(
420
+ Schema.encodeKeys({
421
+ count: "count",
422
+ page: "page",
423
+ perPage: "per_page",
424
+ totalCount: "total_count",
425
+ }),
426
+ ),
427
+ Schema.Null,
428
+ ]),
422
429
  ),
423
430
  },
424
431
  ).pipe(
@@ -1389,12 +1396,12 @@ export interface ListDatasetsResponse {
1389
1396
  modifiedAt: string;
1390
1397
  name: string;
1391
1398
  }[];
1392
- resultInfo: {
1399
+ resultInfo?: {
1393
1400
  count?: number | null;
1394
1401
  page?: number | null;
1395
1402
  perPage?: number | null;
1396
1403
  totalCount?: number | null;
1397
- };
1404
+ } | null;
1398
1405
  }
1399
1406
 
1400
1407
  export const ListDatasetsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
@@ -1445,18 +1452,23 @@ export const ListDatasetsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1445
1452
  }),
1446
1453
  ),
1447
1454
  ),
1448
- resultInfo: Schema.Struct({
1449
- count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1450
- page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1451
- perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1452
- totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1453
- }).pipe(
1454
- Schema.encodeKeys({
1455
- count: "count",
1456
- page: "page",
1457
- perPage: "per_page",
1458
- totalCount: "total_count",
1459
- }),
1455
+ resultInfo: Schema.optional(
1456
+ Schema.Union([
1457
+ Schema.Struct({
1458
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1459
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1460
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1461
+ totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1462
+ }).pipe(
1463
+ Schema.encodeKeys({
1464
+ count: "count",
1465
+ page: "page",
1466
+ perPage: "per_page",
1467
+ totalCount: "total_count",
1468
+ }),
1469
+ ),
1470
+ Schema.Null,
1471
+ ]),
1460
1472
  ),
1461
1473
  }).pipe(
1462
1474
  Schema.encodeKeys({ result: "result", resultInfo: "result_info" }),
@@ -2178,12 +2190,12 @@ export interface ListEvaluationsResponse {
2178
2190
  }[];
2179
2191
  totalLogs: number;
2180
2192
  }[];
2181
- resultInfo: {
2193
+ resultInfo?: {
2182
2194
  count?: number | null;
2183
2195
  page?: number | null;
2184
2196
  perPage?: number | null;
2185
2197
  totalCount?: number | null;
2186
- };
2198
+ } | null;
2187
2199
  }
2188
2200
 
2189
2201
  export const ListEvaluationsResponse =
@@ -2287,18 +2299,25 @@ export const ListEvaluationsResponse =
2287
2299
  }),
2288
2300
  ),
2289
2301
  ),
2290
- resultInfo: Schema.Struct({
2291
- count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2292
- page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2293
- perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2294
- totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2295
- }).pipe(
2296
- Schema.encodeKeys({
2297
- count: "count",
2298
- page: "page",
2299
- perPage: "per_page",
2300
- totalCount: "total_count",
2301
- }),
2302
+ resultInfo: Schema.optional(
2303
+ Schema.Union([
2304
+ Schema.Struct({
2305
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2306
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2307
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2308
+ totalCount: Schema.optional(
2309
+ Schema.Union([Schema.Number, Schema.Null]),
2310
+ ),
2311
+ }).pipe(
2312
+ Schema.encodeKeys({
2313
+ count: "count",
2314
+ page: "page",
2315
+ perPage: "per_page",
2316
+ totalCount: "total_count",
2317
+ }),
2318
+ ),
2319
+ Schema.Null,
2320
+ ]),
2302
2321
  ),
2303
2322
  }).pipe(
2304
2323
  Schema.encodeKeys({ result: "result", resultInfo: "result_info" }),
@@ -2751,12 +2770,12 @@ export interface ListEvaluationTypesResponse {
2751
2770
  name: string;
2752
2771
  type: string;
2753
2772
  }[];
2754
- resultInfo: {
2773
+ resultInfo?: {
2755
2774
  count?: number | null;
2756
2775
  page?: number | null;
2757
2776
  perPage?: number | null;
2758
2777
  totalCount?: number | null;
2759
- };
2778
+ } | null;
2760
2779
  }
2761
2780
 
2762
2781
  export const ListEvaluationTypesResponse =
@@ -2784,18 +2803,25 @@ export const ListEvaluationTypesResponse =
2784
2803
  }),
2785
2804
  ),
2786
2805
  ),
2787
- resultInfo: Schema.Struct({
2788
- count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2789
- page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2790
- perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2791
- totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2792
- }).pipe(
2793
- Schema.encodeKeys({
2794
- count: "count",
2795
- page: "page",
2796
- perPage: "per_page",
2797
- totalCount: "total_count",
2798
- }),
2806
+ resultInfo: Schema.optional(
2807
+ Schema.Union([
2808
+ Schema.Struct({
2809
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2810
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2811
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2812
+ totalCount: Schema.optional(
2813
+ Schema.Union([Schema.Number, Schema.Null]),
2814
+ ),
2815
+ }).pipe(
2816
+ Schema.encodeKeys({
2817
+ count: "count",
2818
+ page: "page",
2819
+ perPage: "per_page",
2820
+ totalCount: "total_count",
2821
+ }),
2822
+ ),
2823
+ Schema.Null,
2824
+ ]),
2799
2825
  ),
2800
2826
  }).pipe(
2801
2827
  Schema.encodeKeys({ result: "result", resultInfo: "result_info" }),
@@ -3176,12 +3202,12 @@ export interface ListLogsResponse {
3176
3202
  statusCode?: number | null;
3177
3203
  step?: number | null;
3178
3204
  }[];
3179
- resultInfo: {
3205
+ resultInfo?: {
3180
3206
  count?: number | null;
3181
3207
  page?: number | null;
3182
3208
  perPage?: number | null;
3183
3209
  totalCount?: number | null;
3184
- };
3210
+ } | null;
3185
3211
  }
3186
3212
 
3187
3213
  export const ListLogsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
@@ -3234,18 +3260,23 @@ export const ListLogsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
3234
3260
  }),
3235
3261
  ),
3236
3262
  ),
3237
- resultInfo: Schema.Struct({
3238
- count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
3239
- page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
3240
- perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
3241
- totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
3242
- }).pipe(
3243
- Schema.encodeKeys({
3244
- count: "count",
3245
- page: "page",
3246
- perPage: "per_page",
3247
- totalCount: "total_count",
3248
- }),
3263
+ resultInfo: Schema.optional(
3264
+ Schema.Union([
3265
+ Schema.Struct({
3266
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
3267
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
3268
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
3269
+ totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
3270
+ }).pipe(
3271
+ Schema.encodeKeys({
3272
+ count: "count",
3273
+ page: "page",
3274
+ perPage: "per_page",
3275
+ totalCount: "total_count",
3276
+ }),
3277
+ ),
3278
+ Schema.Null,
3279
+ ]),
3249
3280
  ),
3250
3281
  }).pipe(
3251
3282
  Schema.encodeKeys({ result: "result", resultInfo: "result_info" }),