@distilled.cloud/cloudflare 0.6.1 → 0.7.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/services/accounts.d.ts +901 -36
  2. package/lib/services/accounts.d.ts.map +1 -1
  3. package/lib/services/accounts.js +1386 -32
  4. package/lib/services/accounts.js.map +1 -1
  5. package/lib/services/addressing.d.ts +8 -2
  6. package/lib/services/addressing.d.ts.map +1 -1
  7. package/lib/services/addressing.js +14 -2
  8. package/lib/services/addressing.js.map +1 -1
  9. package/lib/services/ai-gateway.d.ts.map +1 -1
  10. package/lib/services/ai-gateway.js +7 -7
  11. package/lib/services/ai-gateway.js.map +1 -1
  12. package/lib/services/aisearch.d.ts.map +1 -1
  13. package/lib/services/aisearch.js +24 -9
  14. package/lib/services/aisearch.js.map +1 -1
  15. package/lib/services/alerting.js +2 -2
  16. package/lib/services/alerting.js.map +1 -1
  17. package/lib/services/api-gateway.d.ts +114 -16
  18. package/lib/services/api-gateway.d.ts.map +1 -1
  19. package/lib/services/api-gateway.js +187 -15
  20. package/lib/services/api-gateway.js.map +1 -1
  21. package/lib/services/audit-logs.d.ts +63 -3
  22. package/lib/services/audit-logs.d.ts.map +1 -1
  23. package/lib/services/audit-logs.js +62 -3
  24. package/lib/services/audit-logs.js.map +1 -1
  25. package/lib/services/bot-management.d.ts +54 -8
  26. package/lib/services/bot-management.d.ts.map +1 -1
  27. package/lib/services/bot-management.js +128 -16
  28. package/lib/services/bot-management.js.map +1 -1
  29. package/lib/services/brand-protection.d.ts.map +1 -1
  30. package/lib/services/brand-protection.js +26 -8
  31. package/lib/services/brand-protection.js.map +1 -1
  32. package/lib/services/browser-rendering.d.ts.map +1 -1
  33. package/lib/services/browser-rendering.js +13 -10
  34. package/lib/services/browser-rendering.js.map +1 -1
  35. package/lib/services/cloudforce-one.d.ts +61 -6
  36. package/lib/services/cloudforce-one.d.ts.map +1 -1
  37. package/lib/services/cloudforce-one.js +107 -6
  38. package/lib/services/cloudforce-one.js.map +1 -1
  39. package/lib/services/custom-certificates.d.ts +145 -8
  40. package/lib/services/custom-certificates.d.ts.map +1 -1
  41. package/lib/services/custom-certificates.js +226 -7
  42. package/lib/services/custom-certificates.js.map +1 -1
  43. package/lib/services/custom-hostnames.d.ts +8 -8
  44. package/lib/services/custom-hostnames.d.ts.map +1 -1
  45. package/lib/services/custom-hostnames.js +17 -14
  46. package/lib/services/custom-hostnames.js.map +1 -1
  47. package/lib/services/d1.d.ts +68 -8
  48. package/lib/services/d1.d.ts.map +1 -1
  49. package/lib/services/d1.js +96 -8
  50. package/lib/services/d1.js.map +1 -1
  51. package/lib/services/dns-firewall.d.ts +57 -4
  52. package/lib/services/dns-firewall.d.ts.map +1 -1
  53. package/lib/services/dns-firewall.js +86 -5
  54. package/lib/services/dns-firewall.js.map +1 -1
  55. package/lib/services/dns.d.ts +85 -745
  56. package/lib/services/dns.d.ts.map +1 -1
  57. package/lib/services/dns.js +118 -1424
  58. package/lib/services/dns.js.map +1 -1
  59. package/lib/services/email-routing.d.ts +59 -7
  60. package/lib/services/email-routing.d.ts.map +1 -1
  61. package/lib/services/email-routing.js +165 -7
  62. package/lib/services/email-routing.js.map +1 -1
  63. package/lib/services/firewall.d.ts +228 -39
  64. package/lib/services/firewall.d.ts.map +1 -1
  65. package/lib/services/firewall.js +220 -33
  66. package/lib/services/firewall.js.map +1 -1
  67. package/lib/services/healthchecks.d.ts +112 -6
  68. package/lib/services/healthchecks.d.ts.map +1 -1
  69. package/lib/services/healthchecks.js +248 -14
  70. package/lib/services/healthchecks.js.map +1 -1
  71. package/lib/services/hostnames.d.ts +5 -5
  72. package/lib/services/hostnames.d.ts.map +1 -1
  73. package/lib/services/hostnames.js +16 -4
  74. package/lib/services/hostnames.js.map +1 -1
  75. package/lib/services/hyperdrive.d.ts +223 -11
  76. package/lib/services/hyperdrive.d.ts.map +1 -1
  77. package/lib/services/hyperdrive.js +351 -11
  78. package/lib/services/hyperdrive.js.map +1 -1
  79. package/lib/services/iam.d.ts +62 -2
  80. package/lib/services/iam.d.ts.map +1 -1
  81. package/lib/services/iam.js +82 -11
  82. package/lib/services/iam.js.map +1 -1
  83. package/lib/services/images.d.ts +9 -1
  84. package/lib/services/images.d.ts.map +1 -1
  85. package/lib/services/images.js +12 -1
  86. package/lib/services/images.js.map +1 -1
  87. package/lib/services/intel.d.ts +4 -4
  88. package/lib/services/intel.d.ts.map +1 -1
  89. package/lib/services/intel.js +2 -3
  90. package/lib/services/intel.js.map +1 -1
  91. package/lib/services/kv.d.ts.map +1 -1
  92. package/lib/services/kv.js +2 -2
  93. package/lib/services/kv.js.map +1 -1
  94. package/lib/services/load-balancers.d.ts +537 -108
  95. package/lib/services/load-balancers.d.ts.map +1 -1
  96. package/lib/services/load-balancers.js +1266 -161
  97. package/lib/services/load-balancers.js.map +1 -1
  98. package/lib/services/logpush.d.ts +153 -9
  99. package/lib/services/logpush.d.ts.map +1 -1
  100. package/lib/services/logpush.js +246 -9
  101. package/lib/services/logpush.js.map +1 -1
  102. package/lib/services/magic-cloud-networking.d.ts.map +1 -1
  103. package/lib/services/magic-cloud-networking.js +54 -30
  104. package/lib/services/magic-cloud-networking.js.map +1 -1
  105. package/lib/services/magic-network-monitoring.d.ts +46 -5
  106. package/lib/services/magic-network-monitoring.d.ts.map +1 -1
  107. package/lib/services/magic-network-monitoring.js +79 -5
  108. package/lib/services/magic-network-monitoring.js.map +1 -1
  109. package/lib/services/magic-transit.d.ts +127 -21
  110. package/lib/services/magic-transit.d.ts.map +1 -1
  111. package/lib/services/magic-transit.js +291 -29
  112. package/lib/services/magic-transit.js.map +1 -1
  113. package/lib/services/memberships.d.ts +248 -52
  114. package/lib/services/memberships.d.ts.map +1 -1
  115. package/lib/services/memberships.js +360 -39
  116. package/lib/services/memberships.js.map +1 -1
  117. package/lib/services/page-rules.d.ts +432 -8
  118. package/lib/services/page-rules.d.ts.map +1 -1
  119. package/lib/services/page-rules.js +877 -33
  120. package/lib/services/page-rules.js.map +1 -1
  121. package/lib/services/pages.d.ts +457 -297
  122. package/lib/services/pages.d.ts.map +1 -1
  123. package/lib/services/pages.js +1366 -491
  124. package/lib/services/pages.js.map +1 -1
  125. package/lib/services/pipelines.d.ts +96 -76
  126. package/lib/services/pipelines.d.ts.map +1 -1
  127. package/lib/services/pipelines.js +145 -197
  128. package/lib/services/pipelines.js.map +1 -1
  129. package/lib/services/queues.d.ts +228 -12
  130. package/lib/services/queues.d.ts.map +1 -1
  131. package/lib/services/queues.js +487 -11
  132. package/lib/services/queues.js.map +1 -1
  133. package/lib/services/radar.d.ts +82 -18
  134. package/lib/services/radar.d.ts.map +1 -1
  135. package/lib/services/radar.js +111 -47
  136. package/lib/services/radar.js.map +1 -1
  137. package/lib/services/realtime-kit.d.ts +650 -334
  138. package/lib/services/realtime-kit.d.ts.map +1 -1
  139. package/lib/services/realtime-kit.js +1472 -693
  140. package/lib/services/realtime-kit.js.map +1 -1
  141. package/lib/services/request-tracers.d.ts +12 -1
  142. package/lib/services/request-tracers.d.ts.map +1 -1
  143. package/lib/services/request-tracers.js +28 -3
  144. package/lib/services/request-tracers.js.map +1 -1
  145. package/lib/services/rules.d.ts +65 -10
  146. package/lib/services/rules.d.ts.map +1 -1
  147. package/lib/services/rules.js +102 -8
  148. package/lib/services/rules.js.map +1 -1
  149. package/lib/services/rulesets.d.ts +7892 -1806
  150. package/lib/services/rulesets.d.ts.map +1 -1
  151. package/lib/services/rulesets.js +18720 -4149
  152. package/lib/services/rulesets.js.map +1 -1
  153. package/lib/services/rum.d.ts +45 -5
  154. package/lib/services/rum.d.ts.map +1 -1
  155. package/lib/services/rum.js +80 -4
  156. package/lib/services/rum.js.map +1 -1
  157. package/lib/services/schema-validation.js +2 -2
  158. package/lib/services/schema-validation.js.map +1 -1
  159. package/lib/services/spectrum.d.ts +139 -33
  160. package/lib/services/spectrum.d.ts.map +1 -1
  161. package/lib/services/spectrum.js +190 -34
  162. package/lib/services/spectrum.js.map +1 -1
  163. package/lib/services/speed.d.ts +345 -24
  164. package/lib/services/speed.d.ts.map +1 -1
  165. package/lib/services/speed.js +785 -19
  166. package/lib/services/speed.js.map +1 -1
  167. package/lib/services/ssl.d.ts +6 -6
  168. package/lib/services/ssl.d.ts.map +1 -1
  169. package/lib/services/ssl.js +5 -5
  170. package/lib/services/ssl.js.map +1 -1
  171. package/lib/services/stream.d.ts +171 -17
  172. package/lib/services/stream.d.ts.map +1 -1
  173. package/lib/services/stream.js +164 -11
  174. package/lib/services/stream.js.map +1 -1
  175. package/lib/services/token-validation.d.ts +16 -2
  176. package/lib/services/token-validation.d.ts.map +1 -1
  177. package/lib/services/token-validation.js +32 -2
  178. package/lib/services/token-validation.js.map +1 -1
  179. package/lib/services/url-scanner.d.ts +43 -11
  180. package/lib/services/url-scanner.d.ts.map +1 -1
  181. package/lib/services/url-scanner.js +46 -11
  182. package/lib/services/url-scanner.js.map +1 -1
  183. package/lib/services/user.d.ts +312 -21
  184. package/lib/services/user.d.ts.map +1 -1
  185. package/lib/services/user.js +442 -19
  186. package/lib/services/user.js.map +1 -1
  187. package/lib/services/workers-for-platforms.d.ts +223 -13
  188. package/lib/services/workers-for-platforms.d.ts.map +1 -1
  189. package/lib/services/workers-for-platforms.js +481 -13
  190. package/lib/services/workers-for-platforms.js.map +1 -1
  191. package/lib/services/workers.d.ts +345 -31
  192. package/lib/services/workers.d.ts.map +1 -1
  193. package/lib/services/workers.js +649 -34
  194. package/lib/services/workers.js.map +1 -1
  195. package/lib/services/zaraz.d.ts +212 -11
  196. package/lib/services/zaraz.d.ts.map +1 -1
  197. package/lib/services/zaraz.js +311 -30
  198. package/lib/services/zaraz.js.map +1 -1
  199. package/lib/services/zero-trust.d.ts +19333 -1905
  200. package/lib/services/zero-trust.d.ts.map +1 -1
  201. package/lib/services/zero-trust.js +30269 -5710
  202. package/lib/services/zero-trust.js.map +1 -1
  203. package/lib/services/zones.d.ts +61 -7
  204. package/lib/services/zones.d.ts.map +1 -1
  205. package/lib/services/zones.js +188 -7
  206. package/lib/services/zones.js.map +1 -1
  207. package/package.json +2 -2
  208. package/src/services/accounts.ts +2897 -63
  209. package/src/services/addressing.ts +28 -4
  210. package/src/services/ai-gateway.ts +9 -7
  211. package/src/services/aisearch.ts +28 -9
  212. package/src/services/alerting.ts +2 -2
  213. package/src/services/api-gateway.ts +410 -27
  214. package/src/services/audit-logs.ts +135 -5
  215. package/src/services/bot-management.ts +282 -24
  216. package/src/services/brand-protection.ts +28 -8
  217. package/src/services/browser-rendering.ts +31 -11
  218. package/src/services/cloudforce-one.ts +201 -9
  219. package/src/services/custom-certificates.ts +405 -14
  220. package/src/services/custom-hostnames.ts +29 -22
  221. package/src/services/d1.ts +180 -12
  222. package/src/services/dns-firewall.ts +163 -7
  223. package/src/services/dns.ts +213 -2389
  224. package/src/services/email-routing.ts +346 -12
  225. package/src/services/firewall.ts +556 -72
  226. package/src/services/healthchecks.ts +463 -18
  227. package/src/services/hostnames.ts +21 -9
  228. package/src/services/hyperdrive.ts +730 -17
  229. package/src/services/iam.ts +228 -24
  230. package/src/services/images.ts +29 -2
  231. package/src/services/intel.ts +6 -5
  232. package/src/services/kv.ts +6 -2
  233. package/src/services/load-balancers.ts +2387 -294
  234. package/src/services/logpush.ts +659 -15
  235. package/src/services/magic-cloud-networking.ts +74 -30
  236. package/src/services/magic-network-monitoring.ts +170 -8
  237. package/src/services/magic-transit.ts +631 -62
  238. package/src/services/memberships.ts +710 -91
  239. package/src/services/page-rules.ts +1592 -88
  240. package/src/services/pages.ts +2011 -1098
  241. package/src/services/pipelines.ts +285 -331
  242. package/src/services/queues.ts +1110 -22
  243. package/src/services/radar.ts +128 -64
  244. package/src/services/realtime-kit.ts +2829 -1603
  245. package/src/services/request-tracers.ts +54 -4
  246. package/src/services/rules.ts +214 -18
  247. package/src/services/rulesets.ts +34524 -6913
  248. package/src/services/rum.ts +187 -9
  249. package/src/services/schema-validation.ts +2 -2
  250. package/src/services/spectrum.ts +357 -67
  251. package/src/services/speed.ts +1845 -42
  252. package/src/services/ssl.ts +11 -11
  253. package/src/services/stream.ts +397 -22
  254. package/src/services/token-validation.ts +64 -4
  255. package/src/services/url-scanner.ts +92 -20
  256. package/src/services/user.ts +973 -34
  257. package/src/services/workers-for-platforms.ts +1012 -39
  258. package/src/services/workers.ts +1472 -120
  259. package/src/services/zaraz.ts +640 -37
  260. package/src/services/zero-trust.ts +55498 -12667
  261. package/src/services/zones.ts +360 -14
@@ -5,6 +5,7 @@
5
5
  * DO NOT EDIT - regenerate with: bun scripts/generate.ts --service logpush
6
6
  */
7
7
 
8
+ import * as stream from "effect/Stream";
8
9
  import * as Schema from "effect/Schema";
9
10
  import type * as HttpClient from "effect/unstable/http/HttpClient";
10
11
  import * as API from "../client/api.ts";
@@ -194,22 +195,317 @@ export const GetDatasetJobRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
194
195
  }),
195
196
  ) as unknown as Schema.Schema<GetDatasetJobRequest>;
196
197
 
197
- export type GetDatasetJobResponse = unknown;
198
+ export interface GetDatasetJobResponse {
199
+ result: ({
200
+ id?: number | null;
201
+ dataset?:
202
+ | "access_requests"
203
+ | "audit_logs"
204
+ | "audit_logs_v2"
205
+ | "biso_user_actions"
206
+ | "casb_findings"
207
+ | "device_posture_results"
208
+ | "dex_application_tests"
209
+ | "dex_device_state_events"
210
+ | "dlp_forensic_copies"
211
+ | "dns_firewall_logs"
212
+ | "dns_logs"
213
+ | "email_security_alerts"
214
+ | "firewall_events"
215
+ | "gateway_dns"
216
+ | "gateway_http"
217
+ | "gateway_network"
218
+ | "http_requests"
219
+ | "ipsec_logs"
220
+ | "magic_ids_detections"
221
+ | "nel_reports"
222
+ | "network_analytics_logs"
223
+ | "page_shield_events"
224
+ | "sinkhole_http_logs"
225
+ | "spectrum_events"
226
+ | "ssh_logs"
227
+ | "warp_config_changes"
228
+ | "warp_toggle_changes"
229
+ | "workers_trace_events"
230
+ | "zaraz_events"
231
+ | "zero_trust_network_sessions"
232
+ | null;
233
+ destinationConf?: string | null;
234
+ enabled?: boolean | null;
235
+ errorMessage?: string | null;
236
+ frequency?: "high" | "low" | null;
237
+ kind?: "" | "edge" | null;
238
+ lastComplete?: string | null;
239
+ lastError?: string | null;
240
+ logpullOptions?: string | null;
241
+ maxUploadBytes?: "0" | number | null;
242
+ maxUploadIntervalSeconds?: "0" | number | null;
243
+ maxUploadRecords?: "0" | number | null;
244
+ name?: string | null;
245
+ outputOptions?: {
246
+ batchPrefix?: string | null;
247
+ batchSuffix?: string | null;
248
+ "cve-2021-44228"?: boolean | null;
249
+ fieldDelimiter?: string | null;
250
+ fieldNames?: string[] | null;
251
+ outputType?: "ndjson" | "csv" | null;
252
+ recordDelimiter?: string | null;
253
+ recordPrefix?: string | null;
254
+ recordSuffix?: string | null;
255
+ recordTemplate?: string | null;
256
+ sampleRate?: number | null;
257
+ timestampFormat?: "unixnano" | "unix" | "rfc3339" | null;
258
+ } | null;
259
+ } | null)[];
260
+ }
198
261
 
199
- export const GetDatasetJobResponse =
200
- /*@__PURE__*/ /*#__PURE__*/ Schema.Unknown as unknown as Schema.Schema<GetDatasetJobResponse>;
262
+ export const GetDatasetJobResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
263
+ result: Schema.Array(
264
+ Schema.Union([
265
+ Schema.Struct({
266
+ id: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
267
+ dataset: Schema.optional(
268
+ Schema.Union([
269
+ Schema.Literal("access_requests"),
270
+ Schema.Literal("audit_logs"),
271
+ Schema.Literal("audit_logs_v2"),
272
+ Schema.Literal("biso_user_actions"),
273
+ Schema.Literal("casb_findings"),
274
+ Schema.Literal("device_posture_results"),
275
+ Schema.Literal("dex_application_tests"),
276
+ Schema.Literal("dex_device_state_events"),
277
+ Schema.Literal("dlp_forensic_copies"),
278
+ Schema.Literal("dns_firewall_logs"),
279
+ Schema.Literal("dns_logs"),
280
+ Schema.Literal("email_security_alerts"),
281
+ Schema.Literal("firewall_events"),
282
+ Schema.Literal("gateway_dns"),
283
+ Schema.Literal("gateway_http"),
284
+ Schema.Literal("gateway_network"),
285
+ Schema.Literal("http_requests"),
286
+ Schema.Literal("ipsec_logs"),
287
+ Schema.Literal("magic_ids_detections"),
288
+ Schema.Literal("nel_reports"),
289
+ Schema.Literal("network_analytics_logs"),
290
+ Schema.Literal("page_shield_events"),
291
+ Schema.Literal("sinkhole_http_logs"),
292
+ Schema.Literal("spectrum_events"),
293
+ Schema.Literal("ssh_logs"),
294
+ Schema.Literal("warp_config_changes"),
295
+ Schema.Literal("warp_toggle_changes"),
296
+ Schema.Literal("workers_trace_events"),
297
+ Schema.Literal("zaraz_events"),
298
+ Schema.Literal("zero_trust_network_sessions"),
299
+ Schema.Null,
300
+ ]),
301
+ ),
302
+ destinationConf: Schema.optional(
303
+ Schema.Union([Schema.String, Schema.Null]),
304
+ ),
305
+ enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
306
+ errorMessage: Schema.optional(
307
+ Schema.Union([Schema.String, Schema.Null]),
308
+ ),
309
+ frequency: Schema.optional(
310
+ Schema.Union([
311
+ Schema.Literal("high"),
312
+ Schema.Literal("low"),
313
+ Schema.Null,
314
+ ]),
315
+ ),
316
+ kind: Schema.optional(
317
+ Schema.Union([Schema.Literals(["", "edge"]), Schema.Null]),
318
+ ),
319
+ lastComplete: Schema.optional(
320
+ Schema.Union([Schema.String, Schema.Null]),
321
+ ),
322
+ lastError: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
323
+ logpullOptions: Schema.optional(
324
+ Schema.Union([Schema.String, Schema.Null]),
325
+ ),
326
+ maxUploadBytes: Schema.optional(
327
+ Schema.Union([Schema.Literal("0"), Schema.Number, Schema.Null]),
328
+ ),
329
+ maxUploadIntervalSeconds: Schema.optional(
330
+ Schema.Union([Schema.Literal("0"), Schema.Number, Schema.Null]),
331
+ ),
332
+ maxUploadRecords: Schema.optional(
333
+ Schema.Union([Schema.Literal("0"), Schema.Number, Schema.Null]),
334
+ ),
335
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
336
+ outputOptions: Schema.optional(
337
+ Schema.Union([
338
+ Schema.Struct({
339
+ batchPrefix: Schema.optional(
340
+ Schema.Union([Schema.String, Schema.Null]),
341
+ ),
342
+ batchSuffix: Schema.optional(
343
+ Schema.Union([Schema.String, Schema.Null]),
344
+ ),
345
+ "cve-2021-44228": Schema.optional(
346
+ Schema.Union([Schema.Boolean, Schema.Null]),
347
+ ),
348
+ fieldDelimiter: Schema.optional(
349
+ Schema.Union([Schema.String, Schema.Null]),
350
+ ),
351
+ fieldNames: Schema.optional(
352
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
353
+ ),
354
+ outputType: Schema.optional(
355
+ Schema.Union([Schema.Literals(["ndjson", "csv"]), Schema.Null]),
356
+ ),
357
+ recordDelimiter: Schema.optional(
358
+ Schema.Union([Schema.String, Schema.Null]),
359
+ ),
360
+ recordPrefix: Schema.optional(
361
+ Schema.Union([Schema.String, Schema.Null]),
362
+ ),
363
+ recordSuffix: Schema.optional(
364
+ Schema.Union([Schema.String, Schema.Null]),
365
+ ),
366
+ recordTemplate: Schema.optional(
367
+ Schema.Union([Schema.String, Schema.Null]),
368
+ ),
369
+ sampleRate: Schema.optional(
370
+ Schema.Union([Schema.Number, Schema.Null]),
371
+ ),
372
+ timestampFormat: Schema.optional(
373
+ Schema.Union([
374
+ Schema.Literals(["unixnano", "unix", "rfc3339"]),
375
+ Schema.Null,
376
+ ]),
377
+ ),
378
+ }).pipe(
379
+ Schema.encodeKeys({
380
+ batchPrefix: "batch_prefix",
381
+ batchSuffix: "batch_suffix",
382
+ "cve-2021-44228": "CVE-2021-44228",
383
+ fieldDelimiter: "field_delimiter",
384
+ fieldNames: "field_names",
385
+ outputType: "output_type",
386
+ recordDelimiter: "record_delimiter",
387
+ recordPrefix: "record_prefix",
388
+ recordSuffix: "record_suffix",
389
+ recordTemplate: "record_template",
390
+ sampleRate: "sample_rate",
391
+ timestampFormat: "timestamp_format",
392
+ }),
393
+ ),
394
+ Schema.Null,
395
+ ]),
396
+ ),
397
+ }).pipe(
398
+ Schema.encodeKeys({
399
+ id: "id",
400
+ dataset: "dataset",
401
+ destinationConf: "destination_conf",
402
+ enabled: "enabled",
403
+ errorMessage: "error_message",
404
+ frequency: "frequency",
405
+ kind: "kind",
406
+ lastComplete: "last_complete",
407
+ lastError: "last_error",
408
+ logpullOptions: "logpull_options",
409
+ maxUploadBytes: "max_upload_bytes",
410
+ maxUploadIntervalSeconds: "max_upload_interval_seconds",
411
+ maxUploadRecords: "max_upload_records",
412
+ name: "name",
413
+ outputOptions: "output_options",
414
+ }),
415
+ ),
416
+ Schema.Null,
417
+ ]),
418
+ ),
419
+ }) as unknown as Schema.Schema<GetDatasetJobResponse>;
201
420
 
202
421
  export type GetDatasetJobError = DefaultErrors;
203
422
 
204
- export const getDatasetJob: API.OperationMethod<
423
+ export const getDatasetJob: API.PaginatedOperationMethod<
205
424
  GetDatasetJobRequest,
206
425
  GetDatasetJobResponse,
207
426
  GetDatasetJobError,
208
427
  Credentials | HttpClient.HttpClient
209
- > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
428
+ > & {
429
+ pages: (
430
+ input: GetDatasetJobRequest,
431
+ ) => stream.Stream<
432
+ GetDatasetJobResponse,
433
+ GetDatasetJobError,
434
+ Credentials | HttpClient.HttpClient
435
+ >;
436
+ items: (input: GetDatasetJobRequest) => stream.Stream<
437
+ {
438
+ id?: number | null;
439
+ dataset?:
440
+ | "access_requests"
441
+ | "audit_logs"
442
+ | "audit_logs_v2"
443
+ | "biso_user_actions"
444
+ | "casb_findings"
445
+ | "device_posture_results"
446
+ | "dex_application_tests"
447
+ | "dex_device_state_events"
448
+ | "dlp_forensic_copies"
449
+ | "dns_firewall_logs"
450
+ | "dns_logs"
451
+ | "email_security_alerts"
452
+ | "firewall_events"
453
+ | "gateway_dns"
454
+ | "gateway_http"
455
+ | "gateway_network"
456
+ | "http_requests"
457
+ | "ipsec_logs"
458
+ | "magic_ids_detections"
459
+ | "nel_reports"
460
+ | "network_analytics_logs"
461
+ | "page_shield_events"
462
+ | "sinkhole_http_logs"
463
+ | "spectrum_events"
464
+ | "ssh_logs"
465
+ | "warp_config_changes"
466
+ | "warp_toggle_changes"
467
+ | "workers_trace_events"
468
+ | "zaraz_events"
469
+ | "zero_trust_network_sessions"
470
+ | null;
471
+ destinationConf?: string | null;
472
+ enabled?: boolean | null;
473
+ errorMessage?: string | null;
474
+ frequency?: "high" | "low" | null;
475
+ kind?: "" | "edge" | null;
476
+ lastComplete?: string | null;
477
+ lastError?: string | null;
478
+ logpullOptions?: string | null;
479
+ maxUploadBytes?: "0" | number | null;
480
+ maxUploadIntervalSeconds?: "0" | number | null;
481
+ maxUploadRecords?: "0" | number | null;
482
+ name?: string | null;
483
+ outputOptions?: {
484
+ batchPrefix?: string | null;
485
+ batchSuffix?: string | null;
486
+ "cve-2021-44228"?: boolean | null;
487
+ fieldDelimiter?: string | null;
488
+ fieldNames?: string[] | null;
489
+ outputType?: "ndjson" | "csv" | null;
490
+ recordDelimiter?: string | null;
491
+ recordPrefix?: string | null;
492
+ recordSuffix?: string | null;
493
+ recordTemplate?: string | null;
494
+ sampleRate?: number | null;
495
+ timestampFormat?: "unixnano" | "unix" | "rfc3339" | null;
496
+ } | null;
497
+ } | null,
498
+ GetDatasetJobError,
499
+ Credentials | HttpClient.HttpClient
500
+ >;
501
+ } = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
210
502
  input: GetDatasetJobRequest,
211
503
  output: GetDatasetJobResponse,
212
504
  errors: [],
505
+ pagination: {
506
+ mode: "single",
507
+ items: "result",
508
+ } as const,
213
509
  }));
214
510
 
215
511
  // =============================================================================
@@ -227,22 +523,75 @@ export const GetEdgeRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
227
523
  T.Http({ method: "GET", path: "/zones/{zone_id}/logpush/edge/jobs" }),
228
524
  ) as unknown as Schema.Schema<GetEdgeRequest>;
229
525
 
230
- export type GetEdgeResponse = unknown;
526
+ export interface GetEdgeResponse {
527
+ result: ({
528
+ destinationConf?: string | null;
529
+ fields?: string | null;
530
+ filter?: string | null;
531
+ sample?: number | null;
532
+ sessionId?: string | null;
533
+ } | null)[];
534
+ }
231
535
 
232
- export const GetEdgeResponse =
233
- /*@__PURE__*/ /*#__PURE__*/ Schema.Unknown as unknown as Schema.Schema<GetEdgeResponse>;
536
+ export const GetEdgeResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
537
+ result: Schema.Array(
538
+ Schema.Union([
539
+ Schema.Struct({
540
+ destinationConf: Schema.optional(
541
+ Schema.Union([Schema.String, Schema.Null]),
542
+ ),
543
+ fields: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
544
+ filter: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
545
+ sample: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
546
+ sessionId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
547
+ }).pipe(
548
+ Schema.encodeKeys({
549
+ destinationConf: "destination_conf",
550
+ fields: "fields",
551
+ filter: "filter",
552
+ sample: "sample",
553
+ sessionId: "session_id",
554
+ }),
555
+ ),
556
+ Schema.Null,
557
+ ]),
558
+ ),
559
+ }) as unknown as Schema.Schema<GetEdgeResponse>;
234
560
 
235
561
  export type GetEdgeError = DefaultErrors;
236
562
 
237
- export const getEdge: API.OperationMethod<
563
+ export const getEdge: API.PaginatedOperationMethod<
238
564
  GetEdgeRequest,
239
565
  GetEdgeResponse,
240
566
  GetEdgeError,
241
567
  Credentials | HttpClient.HttpClient
242
- > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
568
+ > & {
569
+ pages: (
570
+ input: GetEdgeRequest,
571
+ ) => stream.Stream<
572
+ GetEdgeResponse,
573
+ GetEdgeError,
574
+ Credentials | HttpClient.HttpClient
575
+ >;
576
+ items: (input: GetEdgeRequest) => stream.Stream<
577
+ {
578
+ destinationConf?: string | null;
579
+ fields?: string | null;
580
+ filter?: string | null;
581
+ sample?: number | null;
582
+ sessionId?: string | null;
583
+ } | null,
584
+ GetEdgeError,
585
+ Credentials | HttpClient.HttpClient
586
+ >;
587
+ } = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
243
588
  input: GetEdgeRequest,
244
589
  output: GetEdgeResponse,
245
590
  errors: [],
591
+ pagination: {
592
+ mode: "single",
593
+ items: "result",
594
+ } as const,
246
595
  }));
247
596
 
248
597
  export interface CreateEdgeRequest {
@@ -619,22 +968,317 @@ export const ListJobsRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
619
968
  }),
620
969
  ) as unknown as Schema.Schema<ListJobsRequest>;
621
970
 
622
- export type ListJobsResponse = unknown;
971
+ export interface ListJobsResponse {
972
+ result: ({
973
+ id?: number | null;
974
+ dataset?:
975
+ | "access_requests"
976
+ | "audit_logs"
977
+ | "audit_logs_v2"
978
+ | "biso_user_actions"
979
+ | "casb_findings"
980
+ | "device_posture_results"
981
+ | "dex_application_tests"
982
+ | "dex_device_state_events"
983
+ | "dlp_forensic_copies"
984
+ | "dns_firewall_logs"
985
+ | "dns_logs"
986
+ | "email_security_alerts"
987
+ | "firewall_events"
988
+ | "gateway_dns"
989
+ | "gateway_http"
990
+ | "gateway_network"
991
+ | "http_requests"
992
+ | "ipsec_logs"
993
+ | "magic_ids_detections"
994
+ | "nel_reports"
995
+ | "network_analytics_logs"
996
+ | "page_shield_events"
997
+ | "sinkhole_http_logs"
998
+ | "spectrum_events"
999
+ | "ssh_logs"
1000
+ | "warp_config_changes"
1001
+ | "warp_toggle_changes"
1002
+ | "workers_trace_events"
1003
+ | "zaraz_events"
1004
+ | "zero_trust_network_sessions"
1005
+ | null;
1006
+ destinationConf?: string | null;
1007
+ enabled?: boolean | null;
1008
+ errorMessage?: string | null;
1009
+ frequency?: "high" | "low" | null;
1010
+ kind?: "" | "edge" | null;
1011
+ lastComplete?: string | null;
1012
+ lastError?: string | null;
1013
+ logpullOptions?: string | null;
1014
+ maxUploadBytes?: "0" | number | null;
1015
+ maxUploadIntervalSeconds?: "0" | number | null;
1016
+ maxUploadRecords?: "0" | number | null;
1017
+ name?: string | null;
1018
+ outputOptions?: {
1019
+ batchPrefix?: string | null;
1020
+ batchSuffix?: string | null;
1021
+ "cve-2021-44228"?: boolean | null;
1022
+ fieldDelimiter?: string | null;
1023
+ fieldNames?: string[] | null;
1024
+ outputType?: "ndjson" | "csv" | null;
1025
+ recordDelimiter?: string | null;
1026
+ recordPrefix?: string | null;
1027
+ recordSuffix?: string | null;
1028
+ recordTemplate?: string | null;
1029
+ sampleRate?: number | null;
1030
+ timestampFormat?: "unixnano" | "unix" | "rfc3339" | null;
1031
+ } | null;
1032
+ } | null)[];
1033
+ }
623
1034
 
624
- export const ListJobsResponse =
625
- /*@__PURE__*/ /*#__PURE__*/ Schema.Unknown as unknown as Schema.Schema<ListJobsResponse>;
1035
+ export const ListJobsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1036
+ result: Schema.Array(
1037
+ Schema.Union([
1038
+ Schema.Struct({
1039
+ id: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1040
+ dataset: Schema.optional(
1041
+ Schema.Union([
1042
+ Schema.Literal("access_requests"),
1043
+ Schema.Literal("audit_logs"),
1044
+ Schema.Literal("audit_logs_v2"),
1045
+ Schema.Literal("biso_user_actions"),
1046
+ Schema.Literal("casb_findings"),
1047
+ Schema.Literal("device_posture_results"),
1048
+ Schema.Literal("dex_application_tests"),
1049
+ Schema.Literal("dex_device_state_events"),
1050
+ Schema.Literal("dlp_forensic_copies"),
1051
+ Schema.Literal("dns_firewall_logs"),
1052
+ Schema.Literal("dns_logs"),
1053
+ Schema.Literal("email_security_alerts"),
1054
+ Schema.Literal("firewall_events"),
1055
+ Schema.Literal("gateway_dns"),
1056
+ Schema.Literal("gateway_http"),
1057
+ Schema.Literal("gateway_network"),
1058
+ Schema.Literal("http_requests"),
1059
+ Schema.Literal("ipsec_logs"),
1060
+ Schema.Literal("magic_ids_detections"),
1061
+ Schema.Literal("nel_reports"),
1062
+ Schema.Literal("network_analytics_logs"),
1063
+ Schema.Literal("page_shield_events"),
1064
+ Schema.Literal("sinkhole_http_logs"),
1065
+ Schema.Literal("spectrum_events"),
1066
+ Schema.Literal("ssh_logs"),
1067
+ Schema.Literal("warp_config_changes"),
1068
+ Schema.Literal("warp_toggle_changes"),
1069
+ Schema.Literal("workers_trace_events"),
1070
+ Schema.Literal("zaraz_events"),
1071
+ Schema.Literal("zero_trust_network_sessions"),
1072
+ Schema.Null,
1073
+ ]),
1074
+ ),
1075
+ destinationConf: Schema.optional(
1076
+ Schema.Union([Schema.String, Schema.Null]),
1077
+ ),
1078
+ enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
1079
+ errorMessage: Schema.optional(
1080
+ Schema.Union([Schema.String, Schema.Null]),
1081
+ ),
1082
+ frequency: Schema.optional(
1083
+ Schema.Union([
1084
+ Schema.Literal("high"),
1085
+ Schema.Literal("low"),
1086
+ Schema.Null,
1087
+ ]),
1088
+ ),
1089
+ kind: Schema.optional(
1090
+ Schema.Union([Schema.Literals(["", "edge"]), Schema.Null]),
1091
+ ),
1092
+ lastComplete: Schema.optional(
1093
+ Schema.Union([Schema.String, Schema.Null]),
1094
+ ),
1095
+ lastError: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1096
+ logpullOptions: Schema.optional(
1097
+ Schema.Union([Schema.String, Schema.Null]),
1098
+ ),
1099
+ maxUploadBytes: Schema.optional(
1100
+ Schema.Union([Schema.Literal("0"), Schema.Number, Schema.Null]),
1101
+ ),
1102
+ maxUploadIntervalSeconds: Schema.optional(
1103
+ Schema.Union([Schema.Literal("0"), Schema.Number, Schema.Null]),
1104
+ ),
1105
+ maxUploadRecords: Schema.optional(
1106
+ Schema.Union([Schema.Literal("0"), Schema.Number, Schema.Null]),
1107
+ ),
1108
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1109
+ outputOptions: Schema.optional(
1110
+ Schema.Union([
1111
+ Schema.Struct({
1112
+ batchPrefix: Schema.optional(
1113
+ Schema.Union([Schema.String, Schema.Null]),
1114
+ ),
1115
+ batchSuffix: Schema.optional(
1116
+ Schema.Union([Schema.String, Schema.Null]),
1117
+ ),
1118
+ "cve-2021-44228": Schema.optional(
1119
+ Schema.Union([Schema.Boolean, Schema.Null]),
1120
+ ),
1121
+ fieldDelimiter: Schema.optional(
1122
+ Schema.Union([Schema.String, Schema.Null]),
1123
+ ),
1124
+ fieldNames: Schema.optional(
1125
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1126
+ ),
1127
+ outputType: Schema.optional(
1128
+ Schema.Union([Schema.Literals(["ndjson", "csv"]), Schema.Null]),
1129
+ ),
1130
+ recordDelimiter: Schema.optional(
1131
+ Schema.Union([Schema.String, Schema.Null]),
1132
+ ),
1133
+ recordPrefix: Schema.optional(
1134
+ Schema.Union([Schema.String, Schema.Null]),
1135
+ ),
1136
+ recordSuffix: Schema.optional(
1137
+ Schema.Union([Schema.String, Schema.Null]),
1138
+ ),
1139
+ recordTemplate: Schema.optional(
1140
+ Schema.Union([Schema.String, Schema.Null]),
1141
+ ),
1142
+ sampleRate: Schema.optional(
1143
+ Schema.Union([Schema.Number, Schema.Null]),
1144
+ ),
1145
+ timestampFormat: Schema.optional(
1146
+ Schema.Union([
1147
+ Schema.Literals(["unixnano", "unix", "rfc3339"]),
1148
+ Schema.Null,
1149
+ ]),
1150
+ ),
1151
+ }).pipe(
1152
+ Schema.encodeKeys({
1153
+ batchPrefix: "batch_prefix",
1154
+ batchSuffix: "batch_suffix",
1155
+ "cve-2021-44228": "CVE-2021-44228",
1156
+ fieldDelimiter: "field_delimiter",
1157
+ fieldNames: "field_names",
1158
+ outputType: "output_type",
1159
+ recordDelimiter: "record_delimiter",
1160
+ recordPrefix: "record_prefix",
1161
+ recordSuffix: "record_suffix",
1162
+ recordTemplate: "record_template",
1163
+ sampleRate: "sample_rate",
1164
+ timestampFormat: "timestamp_format",
1165
+ }),
1166
+ ),
1167
+ Schema.Null,
1168
+ ]),
1169
+ ),
1170
+ }).pipe(
1171
+ Schema.encodeKeys({
1172
+ id: "id",
1173
+ dataset: "dataset",
1174
+ destinationConf: "destination_conf",
1175
+ enabled: "enabled",
1176
+ errorMessage: "error_message",
1177
+ frequency: "frequency",
1178
+ kind: "kind",
1179
+ lastComplete: "last_complete",
1180
+ lastError: "last_error",
1181
+ logpullOptions: "logpull_options",
1182
+ maxUploadBytes: "max_upload_bytes",
1183
+ maxUploadIntervalSeconds: "max_upload_interval_seconds",
1184
+ maxUploadRecords: "max_upload_records",
1185
+ name: "name",
1186
+ outputOptions: "output_options",
1187
+ }),
1188
+ ),
1189
+ Schema.Null,
1190
+ ]),
1191
+ ),
1192
+ }) as unknown as Schema.Schema<ListJobsResponse>;
626
1193
 
627
1194
  export type ListJobsError = DefaultErrors;
628
1195
 
629
- export const listJobs: API.OperationMethod<
1196
+ export const listJobs: API.PaginatedOperationMethod<
630
1197
  ListJobsRequest,
631
1198
  ListJobsResponse,
632
1199
  ListJobsError,
633
1200
  Credentials | HttpClient.HttpClient
634
- > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
1201
+ > & {
1202
+ pages: (
1203
+ input: ListJobsRequest,
1204
+ ) => stream.Stream<
1205
+ ListJobsResponse,
1206
+ ListJobsError,
1207
+ Credentials | HttpClient.HttpClient
1208
+ >;
1209
+ items: (input: ListJobsRequest) => stream.Stream<
1210
+ {
1211
+ id?: number | null;
1212
+ dataset?:
1213
+ | "access_requests"
1214
+ | "audit_logs"
1215
+ | "audit_logs_v2"
1216
+ | "biso_user_actions"
1217
+ | "casb_findings"
1218
+ | "device_posture_results"
1219
+ | "dex_application_tests"
1220
+ | "dex_device_state_events"
1221
+ | "dlp_forensic_copies"
1222
+ | "dns_firewall_logs"
1223
+ | "dns_logs"
1224
+ | "email_security_alerts"
1225
+ | "firewall_events"
1226
+ | "gateway_dns"
1227
+ | "gateway_http"
1228
+ | "gateway_network"
1229
+ | "http_requests"
1230
+ | "ipsec_logs"
1231
+ | "magic_ids_detections"
1232
+ | "nel_reports"
1233
+ | "network_analytics_logs"
1234
+ | "page_shield_events"
1235
+ | "sinkhole_http_logs"
1236
+ | "spectrum_events"
1237
+ | "ssh_logs"
1238
+ | "warp_config_changes"
1239
+ | "warp_toggle_changes"
1240
+ | "workers_trace_events"
1241
+ | "zaraz_events"
1242
+ | "zero_trust_network_sessions"
1243
+ | null;
1244
+ destinationConf?: string | null;
1245
+ enabled?: boolean | null;
1246
+ errorMessage?: string | null;
1247
+ frequency?: "high" | "low" | null;
1248
+ kind?: "" | "edge" | null;
1249
+ lastComplete?: string | null;
1250
+ lastError?: string | null;
1251
+ logpullOptions?: string | null;
1252
+ maxUploadBytes?: "0" | number | null;
1253
+ maxUploadIntervalSeconds?: "0" | number | null;
1254
+ maxUploadRecords?: "0" | number | null;
1255
+ name?: string | null;
1256
+ outputOptions?: {
1257
+ batchPrefix?: string | null;
1258
+ batchSuffix?: string | null;
1259
+ "cve-2021-44228"?: boolean | null;
1260
+ fieldDelimiter?: string | null;
1261
+ fieldNames?: string[] | null;
1262
+ outputType?: "ndjson" | "csv" | null;
1263
+ recordDelimiter?: string | null;
1264
+ recordPrefix?: string | null;
1265
+ recordSuffix?: string | null;
1266
+ recordTemplate?: string | null;
1267
+ sampleRate?: number | null;
1268
+ timestampFormat?: "unixnano" | "unix" | "rfc3339" | null;
1269
+ } | null;
1270
+ } | null,
1271
+ ListJobsError,
1272
+ Credentials | HttpClient.HttpClient
1273
+ >;
1274
+ } = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
635
1275
  input: ListJobsRequest,
636
1276
  output: ListJobsResponse,
637
1277
  errors: [],
1278
+ pagination: {
1279
+ mode: "single",
1280
+ items: "result",
1281
+ } as const,
638
1282
  }));
639
1283
 
640
1284
  export interface CreateJobRequest {