@distilled.cloud/cloudflare 0.6.0 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/services/accounts.d.ts +901 -36
- package/lib/services/accounts.d.ts.map +1 -1
- package/lib/services/accounts.js +1386 -32
- package/lib/services/accounts.js.map +1 -1
- package/lib/services/addressing.d.ts +8 -2
- package/lib/services/addressing.d.ts.map +1 -1
- package/lib/services/addressing.js +14 -2
- package/lib/services/addressing.js.map +1 -1
- package/lib/services/ai-gateway.d.ts.map +1 -1
- package/lib/services/ai-gateway.js +7 -7
- package/lib/services/ai-gateway.js.map +1 -1
- package/lib/services/aisearch.d.ts.map +1 -1
- package/lib/services/aisearch.js +24 -9
- package/lib/services/aisearch.js.map +1 -1
- package/lib/services/alerting.js +2 -2
- package/lib/services/alerting.js.map +1 -1
- package/lib/services/api-gateway.d.ts +114 -16
- package/lib/services/api-gateway.d.ts.map +1 -1
- package/lib/services/api-gateway.js +187 -15
- package/lib/services/api-gateway.js.map +1 -1
- package/lib/services/audit-logs.d.ts +63 -3
- package/lib/services/audit-logs.d.ts.map +1 -1
- package/lib/services/audit-logs.js +62 -3
- package/lib/services/audit-logs.js.map +1 -1
- package/lib/services/bot-management.d.ts +54 -8
- package/lib/services/bot-management.d.ts.map +1 -1
- package/lib/services/bot-management.js +128 -16
- package/lib/services/bot-management.js.map +1 -1
- package/lib/services/brand-protection.d.ts.map +1 -1
- package/lib/services/brand-protection.js +26 -8
- package/lib/services/brand-protection.js.map +1 -1
- package/lib/services/browser-rendering.d.ts.map +1 -1
- package/lib/services/browser-rendering.js +13 -10
- package/lib/services/browser-rendering.js.map +1 -1
- package/lib/services/cloudforce-one.d.ts +61 -6
- package/lib/services/cloudforce-one.d.ts.map +1 -1
- package/lib/services/cloudforce-one.js +107 -6
- package/lib/services/cloudforce-one.js.map +1 -1
- package/lib/services/custom-certificates.d.ts +145 -8
- package/lib/services/custom-certificates.d.ts.map +1 -1
- package/lib/services/custom-certificates.js +226 -7
- package/lib/services/custom-certificates.js.map +1 -1
- package/lib/services/custom-hostnames.d.ts +8 -8
- package/lib/services/custom-hostnames.d.ts.map +1 -1
- package/lib/services/custom-hostnames.js +17 -14
- package/lib/services/custom-hostnames.js.map +1 -1
- package/lib/services/d1.d.ts +68 -8
- package/lib/services/d1.d.ts.map +1 -1
- package/lib/services/d1.js +96 -8
- package/lib/services/d1.js.map +1 -1
- package/lib/services/dns-firewall.d.ts +57 -4
- package/lib/services/dns-firewall.d.ts.map +1 -1
- package/lib/services/dns-firewall.js +86 -5
- package/lib/services/dns-firewall.js.map +1 -1
- package/lib/services/dns.d.ts +85 -745
- package/lib/services/dns.d.ts.map +1 -1
- package/lib/services/dns.js +118 -1424
- package/lib/services/dns.js.map +1 -1
- package/lib/services/email-routing.d.ts +59 -7
- package/lib/services/email-routing.d.ts.map +1 -1
- package/lib/services/email-routing.js +165 -7
- package/lib/services/email-routing.js.map +1 -1
- package/lib/services/firewall.d.ts +228 -39
- package/lib/services/firewall.d.ts.map +1 -1
- package/lib/services/firewall.js +220 -33
- package/lib/services/firewall.js.map +1 -1
- package/lib/services/healthchecks.d.ts +112 -6
- package/lib/services/healthchecks.d.ts.map +1 -1
- package/lib/services/healthchecks.js +248 -14
- package/lib/services/healthchecks.js.map +1 -1
- package/lib/services/hostnames.d.ts +5 -5
- package/lib/services/hostnames.d.ts.map +1 -1
- package/lib/services/hostnames.js +16 -4
- package/lib/services/hostnames.js.map +1 -1
- package/lib/services/hyperdrive.d.ts +223 -11
- package/lib/services/hyperdrive.d.ts.map +1 -1
- package/lib/services/hyperdrive.js +351 -11
- package/lib/services/hyperdrive.js.map +1 -1
- package/lib/services/iam.d.ts +62 -2
- package/lib/services/iam.d.ts.map +1 -1
- package/lib/services/iam.js +82 -11
- package/lib/services/iam.js.map +1 -1
- package/lib/services/images.d.ts +9 -1
- package/lib/services/images.d.ts.map +1 -1
- package/lib/services/images.js +12 -1
- package/lib/services/images.js.map +1 -1
- package/lib/services/intel.d.ts +4 -4
- package/lib/services/intel.d.ts.map +1 -1
- package/lib/services/intel.js +2 -3
- package/lib/services/intel.js.map +1 -1
- package/lib/services/kv.d.ts.map +1 -1
- package/lib/services/kv.js +2 -2
- package/lib/services/kv.js.map +1 -1
- package/lib/services/load-balancers.d.ts +537 -108
- package/lib/services/load-balancers.d.ts.map +1 -1
- package/lib/services/load-balancers.js +1266 -161
- package/lib/services/load-balancers.js.map +1 -1
- package/lib/services/logpush.d.ts +153 -9
- package/lib/services/logpush.d.ts.map +1 -1
- package/lib/services/logpush.js +246 -9
- package/lib/services/logpush.js.map +1 -1
- package/lib/services/magic-cloud-networking.d.ts.map +1 -1
- package/lib/services/magic-cloud-networking.js +54 -30
- package/lib/services/magic-cloud-networking.js.map +1 -1
- package/lib/services/magic-network-monitoring.d.ts +46 -5
- package/lib/services/magic-network-monitoring.d.ts.map +1 -1
- package/lib/services/magic-network-monitoring.js +79 -5
- package/lib/services/magic-network-monitoring.js.map +1 -1
- package/lib/services/magic-transit.d.ts +127 -21
- package/lib/services/magic-transit.d.ts.map +1 -1
- package/lib/services/magic-transit.js +291 -29
- package/lib/services/magic-transit.js.map +1 -1
- package/lib/services/memberships.d.ts +248 -52
- package/lib/services/memberships.d.ts.map +1 -1
- package/lib/services/memberships.js +360 -39
- package/lib/services/memberships.js.map +1 -1
- package/lib/services/page-rules.d.ts +432 -8
- package/lib/services/page-rules.d.ts.map +1 -1
- package/lib/services/page-rules.js +877 -33
- package/lib/services/page-rules.js.map +1 -1
- package/lib/services/pages.d.ts +457 -297
- package/lib/services/pages.d.ts.map +1 -1
- package/lib/services/pages.js +1366 -491
- package/lib/services/pages.js.map +1 -1
- package/lib/services/pipelines.d.ts +96 -76
- package/lib/services/pipelines.d.ts.map +1 -1
- package/lib/services/pipelines.js +145 -197
- package/lib/services/pipelines.js.map +1 -1
- package/lib/services/queues.d.ts +228 -12
- package/lib/services/queues.d.ts.map +1 -1
- package/lib/services/queues.js +487 -11
- package/lib/services/queues.js.map +1 -1
- package/lib/services/radar.d.ts +82 -18
- package/lib/services/radar.d.ts.map +1 -1
- package/lib/services/radar.js +111 -47
- package/lib/services/radar.js.map +1 -1
- package/lib/services/realtime-kit.d.ts +650 -334
- package/lib/services/realtime-kit.d.ts.map +1 -1
- package/lib/services/realtime-kit.js +1472 -693
- package/lib/services/realtime-kit.js.map +1 -1
- package/lib/services/request-tracers.d.ts +12 -1
- package/lib/services/request-tracers.d.ts.map +1 -1
- package/lib/services/request-tracers.js +28 -3
- package/lib/services/request-tracers.js.map +1 -1
- package/lib/services/rules.d.ts +65 -10
- package/lib/services/rules.d.ts.map +1 -1
- package/lib/services/rules.js +102 -8
- package/lib/services/rules.js.map +1 -1
- package/lib/services/rulesets.d.ts +7892 -1806
- package/lib/services/rulesets.d.ts.map +1 -1
- package/lib/services/rulesets.js +18720 -4149
- package/lib/services/rulesets.js.map +1 -1
- package/lib/services/rum.d.ts +45 -5
- package/lib/services/rum.d.ts.map +1 -1
- package/lib/services/rum.js +80 -4
- package/lib/services/rum.js.map +1 -1
- package/lib/services/schema-validation.js +2 -2
- package/lib/services/schema-validation.js.map +1 -1
- package/lib/services/spectrum.d.ts +139 -33
- package/lib/services/spectrum.d.ts.map +1 -1
- package/lib/services/spectrum.js +190 -34
- package/lib/services/spectrum.js.map +1 -1
- package/lib/services/speed.d.ts +345 -24
- package/lib/services/speed.d.ts.map +1 -1
- package/lib/services/speed.js +785 -19
- package/lib/services/speed.js.map +1 -1
- package/lib/services/ssl.d.ts +6 -6
- package/lib/services/ssl.d.ts.map +1 -1
- package/lib/services/ssl.js +5 -5
- package/lib/services/ssl.js.map +1 -1
- package/lib/services/stream.d.ts +171 -17
- package/lib/services/stream.d.ts.map +1 -1
- package/lib/services/stream.js +164 -11
- package/lib/services/stream.js.map +1 -1
- package/lib/services/token-validation.d.ts +16 -2
- package/lib/services/token-validation.d.ts.map +1 -1
- package/lib/services/token-validation.js +32 -2
- package/lib/services/token-validation.js.map +1 -1
- package/lib/services/url-scanner.d.ts +43 -11
- package/lib/services/url-scanner.d.ts.map +1 -1
- package/lib/services/url-scanner.js +46 -11
- package/lib/services/url-scanner.js.map +1 -1
- package/lib/services/user.d.ts +312 -21
- package/lib/services/user.d.ts.map +1 -1
- package/lib/services/user.js +442 -19
- package/lib/services/user.js.map +1 -1
- package/lib/services/workers-for-platforms.d.ts +223 -13
- package/lib/services/workers-for-platforms.d.ts.map +1 -1
- package/lib/services/workers-for-platforms.js +481 -13
- package/lib/services/workers-for-platforms.js.map +1 -1
- package/lib/services/workers.d.ts +345 -31
- package/lib/services/workers.d.ts.map +1 -1
- package/lib/services/workers.js +649 -34
- package/lib/services/workers.js.map +1 -1
- package/lib/services/zaraz.d.ts +212 -11
- package/lib/services/zaraz.d.ts.map +1 -1
- package/lib/services/zaraz.js +311 -30
- package/lib/services/zaraz.js.map +1 -1
- package/lib/services/zero-trust.d.ts +19333 -1905
- package/lib/services/zero-trust.d.ts.map +1 -1
- package/lib/services/zero-trust.js +30269 -5710
- package/lib/services/zero-trust.js.map +1 -1
- package/lib/services/zones.d.ts +61 -7
- package/lib/services/zones.d.ts.map +1 -1
- package/lib/services/zones.js +188 -7
- package/lib/services/zones.js.map +1 -1
- package/package.json +2 -2
- package/src/services/accounts.ts +2897 -63
- package/src/services/addressing.ts +28 -4
- package/src/services/ai-gateway.ts +9 -7
- package/src/services/aisearch.ts +28 -9
- package/src/services/alerting.ts +2 -2
- package/src/services/api-gateway.ts +410 -27
- package/src/services/audit-logs.ts +135 -5
- package/src/services/bot-management.ts +282 -24
- package/src/services/brand-protection.ts +28 -8
- package/src/services/browser-rendering.ts +31 -11
- package/src/services/cloudforce-one.ts +201 -9
- package/src/services/custom-certificates.ts +405 -14
- package/src/services/custom-hostnames.ts +29 -22
- package/src/services/d1.ts +180 -12
- package/src/services/dns-firewall.ts +163 -7
- package/src/services/dns.ts +213 -2389
- package/src/services/email-routing.ts +346 -12
- package/src/services/firewall.ts +556 -72
- package/src/services/healthchecks.ts +463 -18
- package/src/services/hostnames.ts +21 -9
- package/src/services/hyperdrive.ts +730 -17
- package/src/services/iam.ts +228 -24
- package/src/services/images.ts +29 -2
- package/src/services/intel.ts +6 -5
- package/src/services/kv.ts +6 -2
- package/src/services/load-balancers.ts +2387 -294
- package/src/services/logpush.ts +659 -15
- package/src/services/magic-cloud-networking.ts +74 -30
- package/src/services/magic-network-monitoring.ts +170 -8
- package/src/services/magic-transit.ts +631 -62
- package/src/services/memberships.ts +710 -91
- package/src/services/page-rules.ts +1592 -88
- package/src/services/pages.ts +2011 -1098
- package/src/services/pipelines.ts +285 -331
- package/src/services/queues.ts +1110 -22
- package/src/services/radar.ts +128 -64
- package/src/services/realtime-kit.ts +2829 -1603
- package/src/services/request-tracers.ts +54 -4
- package/src/services/rules.ts +214 -18
- package/src/services/rulesets.ts +34524 -6913
- package/src/services/rum.ts +187 -9
- package/src/services/schema-validation.ts +2 -2
- package/src/services/spectrum.ts +357 -67
- package/src/services/speed.ts +1845 -42
- package/src/services/ssl.ts +11 -11
- package/src/services/stream.ts +397 -22
- package/src/services/token-validation.ts +64 -4
- package/src/services/url-scanner.ts +92 -20
- package/src/services/user.ts +973 -34
- package/src/services/workers-for-platforms.ts +1012 -39
- package/src/services/workers.ts +1472 -120
- package/src/services/zaraz.ts +640 -37
- package/src/services/zero-trust.ts +55498 -12667
- package/src/services/zones.ts +360 -14
package/lib/services/queues.js
CHANGED
|
@@ -365,7 +365,25 @@ export const DeleteConsumerRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
365
365
|
path: "/accounts/{account_id}/queues/{queueId}/consumers/{consumerId}",
|
|
366
366
|
}));
|
|
367
367
|
export const DeleteConsumerResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
368
|
-
errors: Schema.optional(Schema.Union([
|
|
368
|
+
errors: Schema.optional(Schema.Union([
|
|
369
|
+
Schema.Array(Schema.Struct({
|
|
370
|
+
code: Schema.Number,
|
|
371
|
+
message: Schema.String,
|
|
372
|
+
documentationUrl: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
373
|
+
source: Schema.optional(Schema.Union([
|
|
374
|
+
Schema.Struct({
|
|
375
|
+
pointer: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
376
|
+
}),
|
|
377
|
+
Schema.Null,
|
|
378
|
+
])),
|
|
379
|
+
}).pipe(Schema.encodeKeys({
|
|
380
|
+
code: "code",
|
|
381
|
+
message: "message",
|
|
382
|
+
documentationUrl: "documentation_url",
|
|
383
|
+
source: "source",
|
|
384
|
+
}))),
|
|
385
|
+
Schema.Null,
|
|
386
|
+
])),
|
|
369
387
|
messages: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
370
388
|
success: Schema.optional(Schema.Union([Schema.Literal(true), Schema.Null])),
|
|
371
389
|
});
|
|
@@ -405,7 +423,25 @@ export const BulkPushMessagesRequest =
|
|
|
405
423
|
}));
|
|
406
424
|
export const BulkPushMessagesResponse =
|
|
407
425
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
408
|
-
errors: Schema.optional(Schema.Union([
|
|
426
|
+
errors: Schema.optional(Schema.Union([
|
|
427
|
+
Schema.Array(Schema.Struct({
|
|
428
|
+
code: Schema.Number,
|
|
429
|
+
message: Schema.String,
|
|
430
|
+
documentationUrl: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
431
|
+
source: Schema.optional(Schema.Union([
|
|
432
|
+
Schema.Struct({
|
|
433
|
+
pointer: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
434
|
+
}),
|
|
435
|
+
Schema.Null,
|
|
436
|
+
])),
|
|
437
|
+
}).pipe(Schema.encodeKeys({
|
|
438
|
+
code: "code",
|
|
439
|
+
message: "message",
|
|
440
|
+
documentationUrl: "documentation_url",
|
|
441
|
+
source: "source",
|
|
442
|
+
}))),
|
|
443
|
+
Schema.Null,
|
|
444
|
+
])),
|
|
409
445
|
messages: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
410
446
|
success: Schema.optional(Schema.Union([Schema.Literal(true), Schema.Null])),
|
|
411
447
|
});
|
|
@@ -471,7 +507,25 @@ export const PushMessageRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
471
507
|
path: "/accounts/{account_id}/queues/{queueId}/messages",
|
|
472
508
|
}));
|
|
473
509
|
export const PushMessageResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
474
|
-
errors: Schema.optional(Schema.Union([
|
|
510
|
+
errors: Schema.optional(Schema.Union([
|
|
511
|
+
Schema.Array(Schema.Struct({
|
|
512
|
+
code: Schema.Number,
|
|
513
|
+
message: Schema.String,
|
|
514
|
+
documentationUrl: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
515
|
+
source: Schema.optional(Schema.Union([
|
|
516
|
+
Schema.Struct({
|
|
517
|
+
pointer: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
518
|
+
}),
|
|
519
|
+
Schema.Null,
|
|
520
|
+
])),
|
|
521
|
+
}).pipe(Schema.encodeKeys({
|
|
522
|
+
code: "code",
|
|
523
|
+
message: "message",
|
|
524
|
+
documentationUrl: "documentation_url",
|
|
525
|
+
source: "source",
|
|
526
|
+
}))),
|
|
527
|
+
Schema.Null,
|
|
528
|
+
])),
|
|
475
529
|
messages: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
476
530
|
success: Schema.optional(Schema.Union([Schema.Literal(true), Schema.Null])),
|
|
477
531
|
});
|
|
@@ -517,8 +571,112 @@ export const StartPurgeRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
517
571
|
method: "POST",
|
|
518
572
|
path: "/accounts/{account_id}/queues/{queueId}/purge",
|
|
519
573
|
}));
|
|
520
|
-
export const StartPurgeResponse =
|
|
521
|
-
|
|
574
|
+
export const StartPurgeResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
575
|
+
consumers: Schema.optional(Schema.Union([
|
|
576
|
+
Schema.Array(Schema.Union([
|
|
577
|
+
Schema.Struct({
|
|
578
|
+
consumerId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
579
|
+
createdOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
580
|
+
queueId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
581
|
+
script: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
582
|
+
settings: Schema.optional(Schema.Union([
|
|
583
|
+
Schema.Struct({
|
|
584
|
+
batchSize: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
585
|
+
maxConcurrency: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
586
|
+
maxRetries: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
587
|
+
maxWaitTimeMs: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
588
|
+
retryDelay: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
589
|
+
}).pipe(Schema.encodeKeys({
|
|
590
|
+
batchSize: "batch_size",
|
|
591
|
+
maxConcurrency: "max_concurrency",
|
|
592
|
+
maxRetries: "max_retries",
|
|
593
|
+
maxWaitTimeMs: "max_wait_time_ms",
|
|
594
|
+
retryDelay: "retry_delay",
|
|
595
|
+
})),
|
|
596
|
+
Schema.Null,
|
|
597
|
+
])),
|
|
598
|
+
type: Schema.optional(Schema.Union([Schema.Literal("worker"), Schema.Null])),
|
|
599
|
+
}).pipe(Schema.encodeKeys({
|
|
600
|
+
consumerId: "consumer_id",
|
|
601
|
+
createdOn: "created_on",
|
|
602
|
+
queueId: "queue_id",
|
|
603
|
+
script: "script",
|
|
604
|
+
settings: "settings",
|
|
605
|
+
type: "type",
|
|
606
|
+
})),
|
|
607
|
+
Schema.Struct({
|
|
608
|
+
consumerId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
609
|
+
createdOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
610
|
+
queueId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
611
|
+
settings: Schema.optional(Schema.Union([
|
|
612
|
+
Schema.Struct({
|
|
613
|
+
batchSize: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
614
|
+
maxRetries: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
615
|
+
retryDelay: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
616
|
+
visibilityTimeoutMs: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
617
|
+
}).pipe(Schema.encodeKeys({
|
|
618
|
+
batchSize: "batch_size",
|
|
619
|
+
maxRetries: "max_retries",
|
|
620
|
+
retryDelay: "retry_delay",
|
|
621
|
+
visibilityTimeoutMs: "visibility_timeout_ms",
|
|
622
|
+
})),
|
|
623
|
+
Schema.Null,
|
|
624
|
+
])),
|
|
625
|
+
type: Schema.optional(Schema.Union([Schema.Literal("http_pull"), Schema.Null])),
|
|
626
|
+
}).pipe(Schema.encodeKeys({
|
|
627
|
+
consumerId: "consumer_id",
|
|
628
|
+
createdOn: "created_on",
|
|
629
|
+
queueId: "queue_id",
|
|
630
|
+
settings: "settings",
|
|
631
|
+
type: "type",
|
|
632
|
+
})),
|
|
633
|
+
])),
|
|
634
|
+
Schema.Null,
|
|
635
|
+
])),
|
|
636
|
+
consumersTotalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
637
|
+
createdOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
638
|
+
modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
639
|
+
producers: Schema.optional(Schema.Union([
|
|
640
|
+
Schema.Array(Schema.Union([
|
|
641
|
+
Schema.Struct({
|
|
642
|
+
script: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
643
|
+
type: Schema.optional(Schema.Union([Schema.Literal("worker"), Schema.Null])),
|
|
644
|
+
}),
|
|
645
|
+
Schema.Struct({
|
|
646
|
+
bucketName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
647
|
+
type: Schema.optional(Schema.Union([Schema.Literal("r2_bucket"), Schema.Null])),
|
|
648
|
+
}).pipe(Schema.encodeKeys({ bucketName: "bucket_name", type: "type" })),
|
|
649
|
+
])),
|
|
650
|
+
Schema.Null,
|
|
651
|
+
])),
|
|
652
|
+
producersTotalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
653
|
+
queueId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
654
|
+
queueName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
655
|
+
settings: Schema.optional(Schema.Union([
|
|
656
|
+
Schema.Struct({
|
|
657
|
+
deliveryDelay: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
658
|
+
deliveryPaused: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
659
|
+
messageRetentionPeriod: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
660
|
+
}).pipe(Schema.encodeKeys({
|
|
661
|
+
deliveryDelay: "delivery_delay",
|
|
662
|
+
deliveryPaused: "delivery_paused",
|
|
663
|
+
messageRetentionPeriod: "message_retention_period",
|
|
664
|
+
})),
|
|
665
|
+
Schema.Null,
|
|
666
|
+
])),
|
|
667
|
+
})
|
|
668
|
+
.pipe(Schema.encodeKeys({
|
|
669
|
+
consumers: "consumers",
|
|
670
|
+
consumersTotalCount: "consumers_total_count",
|
|
671
|
+
createdOn: "created_on",
|
|
672
|
+
modifiedOn: "modified_on",
|
|
673
|
+
producers: "producers",
|
|
674
|
+
producersTotalCount: "producers_total_count",
|
|
675
|
+
queueId: "queue_id",
|
|
676
|
+
queueName: "queue_name",
|
|
677
|
+
settings: "settings",
|
|
678
|
+
}))
|
|
679
|
+
.pipe(T.ResponsePath("result"));
|
|
522
680
|
export const startPurge = API.make(() => ({
|
|
523
681
|
input: StartPurgeRequest,
|
|
524
682
|
output: StartPurgeResponse,
|
|
@@ -547,7 +705,67 @@ export const GetQueueRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
547
705
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
548
706
|
}).pipe(T.Http({ method: "GET", path: "/accounts/{account_id}/queues/{queueId}" }));
|
|
549
707
|
export const GetQueueResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
550
|
-
consumers: Schema.optional(Schema.Union([
|
|
708
|
+
consumers: Schema.optional(Schema.Union([
|
|
709
|
+
Schema.Array(Schema.Union([
|
|
710
|
+
Schema.Struct({
|
|
711
|
+
consumerId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
712
|
+
createdOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
713
|
+
queueId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
714
|
+
script: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
715
|
+
settings: Schema.optional(Schema.Union([
|
|
716
|
+
Schema.Struct({
|
|
717
|
+
batchSize: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
718
|
+
maxConcurrency: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
719
|
+
maxRetries: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
720
|
+
maxWaitTimeMs: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
721
|
+
retryDelay: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
722
|
+
}).pipe(Schema.encodeKeys({
|
|
723
|
+
batchSize: "batch_size",
|
|
724
|
+
maxConcurrency: "max_concurrency",
|
|
725
|
+
maxRetries: "max_retries",
|
|
726
|
+
maxWaitTimeMs: "max_wait_time_ms",
|
|
727
|
+
retryDelay: "retry_delay",
|
|
728
|
+
})),
|
|
729
|
+
Schema.Null,
|
|
730
|
+
])),
|
|
731
|
+
type: Schema.optional(Schema.Union([Schema.Literal("worker"), Schema.Null])),
|
|
732
|
+
}).pipe(Schema.encodeKeys({
|
|
733
|
+
consumerId: "consumer_id",
|
|
734
|
+
createdOn: "created_on",
|
|
735
|
+
queueId: "queue_id",
|
|
736
|
+
script: "script",
|
|
737
|
+
settings: "settings",
|
|
738
|
+
type: "type",
|
|
739
|
+
})),
|
|
740
|
+
Schema.Struct({
|
|
741
|
+
consumerId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
742
|
+
createdOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
743
|
+
queueId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
744
|
+
settings: Schema.optional(Schema.Union([
|
|
745
|
+
Schema.Struct({
|
|
746
|
+
batchSize: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
747
|
+
maxRetries: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
748
|
+
retryDelay: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
749
|
+
visibilityTimeoutMs: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
750
|
+
}).pipe(Schema.encodeKeys({
|
|
751
|
+
batchSize: "batch_size",
|
|
752
|
+
maxRetries: "max_retries",
|
|
753
|
+
retryDelay: "retry_delay",
|
|
754
|
+
visibilityTimeoutMs: "visibility_timeout_ms",
|
|
755
|
+
})),
|
|
756
|
+
Schema.Null,
|
|
757
|
+
])),
|
|
758
|
+
type: Schema.optional(Schema.Union([Schema.Literal("http_pull"), Schema.Null])),
|
|
759
|
+
}).pipe(Schema.encodeKeys({
|
|
760
|
+
consumerId: "consumer_id",
|
|
761
|
+
createdOn: "created_on",
|
|
762
|
+
queueId: "queue_id",
|
|
763
|
+
settings: "settings",
|
|
764
|
+
type: "type",
|
|
765
|
+
})),
|
|
766
|
+
])),
|
|
767
|
+
Schema.Null,
|
|
768
|
+
])),
|
|
551
769
|
consumersTotalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
552
770
|
createdOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
553
771
|
modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -602,7 +820,67 @@ export const ListQueuesRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
602
820
|
}).pipe(T.Http({ method: "GET", path: "/accounts/{account_id}/queues" }));
|
|
603
821
|
export const ListQueuesResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
604
822
|
result: Schema.Array(Schema.Struct({
|
|
605
|
-
consumers: Schema.optional(Schema.Union([
|
|
823
|
+
consumers: Schema.optional(Schema.Union([
|
|
824
|
+
Schema.Array(Schema.Union([
|
|
825
|
+
Schema.Struct({
|
|
826
|
+
consumerId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
827
|
+
createdOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
828
|
+
queueId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
829
|
+
script: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
830
|
+
settings: Schema.optional(Schema.Union([
|
|
831
|
+
Schema.Struct({
|
|
832
|
+
batchSize: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
833
|
+
maxConcurrency: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
834
|
+
maxRetries: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
835
|
+
maxWaitTimeMs: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
836
|
+
retryDelay: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
837
|
+
}).pipe(Schema.encodeKeys({
|
|
838
|
+
batchSize: "batch_size",
|
|
839
|
+
maxConcurrency: "max_concurrency",
|
|
840
|
+
maxRetries: "max_retries",
|
|
841
|
+
maxWaitTimeMs: "max_wait_time_ms",
|
|
842
|
+
retryDelay: "retry_delay",
|
|
843
|
+
})),
|
|
844
|
+
Schema.Null,
|
|
845
|
+
])),
|
|
846
|
+
type: Schema.optional(Schema.Union([Schema.Literal("worker"), Schema.Null])),
|
|
847
|
+
}).pipe(Schema.encodeKeys({
|
|
848
|
+
consumerId: "consumer_id",
|
|
849
|
+
createdOn: "created_on",
|
|
850
|
+
queueId: "queue_id",
|
|
851
|
+
script: "script",
|
|
852
|
+
settings: "settings",
|
|
853
|
+
type: "type",
|
|
854
|
+
})),
|
|
855
|
+
Schema.Struct({
|
|
856
|
+
consumerId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
857
|
+
createdOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
858
|
+
queueId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
859
|
+
settings: Schema.optional(Schema.Union([
|
|
860
|
+
Schema.Struct({
|
|
861
|
+
batchSize: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
862
|
+
maxRetries: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
863
|
+
retryDelay: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
864
|
+
visibilityTimeoutMs: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
865
|
+
}).pipe(Schema.encodeKeys({
|
|
866
|
+
batchSize: "batch_size",
|
|
867
|
+
maxRetries: "max_retries",
|
|
868
|
+
retryDelay: "retry_delay",
|
|
869
|
+
visibilityTimeoutMs: "visibility_timeout_ms",
|
|
870
|
+
})),
|
|
871
|
+
Schema.Null,
|
|
872
|
+
])),
|
|
873
|
+
type: Schema.optional(Schema.Union([Schema.Literal("http_pull"), Schema.Null])),
|
|
874
|
+
}).pipe(Schema.encodeKeys({
|
|
875
|
+
consumerId: "consumer_id",
|
|
876
|
+
createdOn: "created_on",
|
|
877
|
+
queueId: "queue_id",
|
|
878
|
+
settings: "settings",
|
|
879
|
+
type: "type",
|
|
880
|
+
})),
|
|
881
|
+
])),
|
|
882
|
+
Schema.Null,
|
|
883
|
+
])),
|
|
606
884
|
consumersTotalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
607
885
|
createdOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
608
886
|
modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -660,7 +938,67 @@ export const CreateQueueRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
660
938
|
queueName: Schema.String,
|
|
661
939
|
}).pipe(Schema.encodeKeys({ queueName: "queue_name" }), T.Http({ method: "POST", path: "/accounts/{account_id}/queues" }));
|
|
662
940
|
export const CreateQueueResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
663
|
-
consumers: Schema.optional(Schema.Union([
|
|
941
|
+
consumers: Schema.optional(Schema.Union([
|
|
942
|
+
Schema.Array(Schema.Union([
|
|
943
|
+
Schema.Struct({
|
|
944
|
+
consumerId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
945
|
+
createdOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
946
|
+
queueId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
947
|
+
script: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
948
|
+
settings: Schema.optional(Schema.Union([
|
|
949
|
+
Schema.Struct({
|
|
950
|
+
batchSize: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
951
|
+
maxConcurrency: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
952
|
+
maxRetries: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
953
|
+
maxWaitTimeMs: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
954
|
+
retryDelay: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
955
|
+
}).pipe(Schema.encodeKeys({
|
|
956
|
+
batchSize: "batch_size",
|
|
957
|
+
maxConcurrency: "max_concurrency",
|
|
958
|
+
maxRetries: "max_retries",
|
|
959
|
+
maxWaitTimeMs: "max_wait_time_ms",
|
|
960
|
+
retryDelay: "retry_delay",
|
|
961
|
+
})),
|
|
962
|
+
Schema.Null,
|
|
963
|
+
])),
|
|
964
|
+
type: Schema.optional(Schema.Union([Schema.Literal("worker"), Schema.Null])),
|
|
965
|
+
}).pipe(Schema.encodeKeys({
|
|
966
|
+
consumerId: "consumer_id",
|
|
967
|
+
createdOn: "created_on",
|
|
968
|
+
queueId: "queue_id",
|
|
969
|
+
script: "script",
|
|
970
|
+
settings: "settings",
|
|
971
|
+
type: "type",
|
|
972
|
+
})),
|
|
973
|
+
Schema.Struct({
|
|
974
|
+
consumerId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
975
|
+
createdOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
976
|
+
queueId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
977
|
+
settings: Schema.optional(Schema.Union([
|
|
978
|
+
Schema.Struct({
|
|
979
|
+
batchSize: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
980
|
+
maxRetries: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
981
|
+
retryDelay: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
982
|
+
visibilityTimeoutMs: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
983
|
+
}).pipe(Schema.encodeKeys({
|
|
984
|
+
batchSize: "batch_size",
|
|
985
|
+
maxRetries: "max_retries",
|
|
986
|
+
retryDelay: "retry_delay",
|
|
987
|
+
visibilityTimeoutMs: "visibility_timeout_ms",
|
|
988
|
+
})),
|
|
989
|
+
Schema.Null,
|
|
990
|
+
])),
|
|
991
|
+
type: Schema.optional(Schema.Union([Schema.Literal("http_pull"), Schema.Null])),
|
|
992
|
+
}).pipe(Schema.encodeKeys({
|
|
993
|
+
consumerId: "consumer_id",
|
|
994
|
+
createdOn: "created_on",
|
|
995
|
+
queueId: "queue_id",
|
|
996
|
+
settings: "settings",
|
|
997
|
+
type: "type",
|
|
998
|
+
})),
|
|
999
|
+
])),
|
|
1000
|
+
Schema.Null,
|
|
1001
|
+
])),
|
|
664
1002
|
consumersTotalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
665
1003
|
createdOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
666
1004
|
modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -725,7 +1063,67 @@ export const UpdateQueueRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
725
1063
|
}))),
|
|
726
1064
|
}).pipe(Schema.encodeKeys({ queueName: "queue_name", settings: "settings" }), T.Http({ method: "PUT", path: "/accounts/{account_id}/queues/{queueId}" }));
|
|
727
1065
|
export const UpdateQueueResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
728
|
-
consumers: Schema.optional(Schema.Union([
|
|
1066
|
+
consumers: Schema.optional(Schema.Union([
|
|
1067
|
+
Schema.Array(Schema.Union([
|
|
1068
|
+
Schema.Struct({
|
|
1069
|
+
consumerId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1070
|
+
createdOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1071
|
+
queueId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1072
|
+
script: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1073
|
+
settings: Schema.optional(Schema.Union([
|
|
1074
|
+
Schema.Struct({
|
|
1075
|
+
batchSize: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1076
|
+
maxConcurrency: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1077
|
+
maxRetries: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1078
|
+
maxWaitTimeMs: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1079
|
+
retryDelay: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1080
|
+
}).pipe(Schema.encodeKeys({
|
|
1081
|
+
batchSize: "batch_size",
|
|
1082
|
+
maxConcurrency: "max_concurrency",
|
|
1083
|
+
maxRetries: "max_retries",
|
|
1084
|
+
maxWaitTimeMs: "max_wait_time_ms",
|
|
1085
|
+
retryDelay: "retry_delay",
|
|
1086
|
+
})),
|
|
1087
|
+
Schema.Null,
|
|
1088
|
+
])),
|
|
1089
|
+
type: Schema.optional(Schema.Union([Schema.Literal("worker"), Schema.Null])),
|
|
1090
|
+
}).pipe(Schema.encodeKeys({
|
|
1091
|
+
consumerId: "consumer_id",
|
|
1092
|
+
createdOn: "created_on",
|
|
1093
|
+
queueId: "queue_id",
|
|
1094
|
+
script: "script",
|
|
1095
|
+
settings: "settings",
|
|
1096
|
+
type: "type",
|
|
1097
|
+
})),
|
|
1098
|
+
Schema.Struct({
|
|
1099
|
+
consumerId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1100
|
+
createdOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1101
|
+
queueId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1102
|
+
settings: Schema.optional(Schema.Union([
|
|
1103
|
+
Schema.Struct({
|
|
1104
|
+
batchSize: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1105
|
+
maxRetries: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1106
|
+
retryDelay: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1107
|
+
visibilityTimeoutMs: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1108
|
+
}).pipe(Schema.encodeKeys({
|
|
1109
|
+
batchSize: "batch_size",
|
|
1110
|
+
maxRetries: "max_retries",
|
|
1111
|
+
retryDelay: "retry_delay",
|
|
1112
|
+
visibilityTimeoutMs: "visibility_timeout_ms",
|
|
1113
|
+
})),
|
|
1114
|
+
Schema.Null,
|
|
1115
|
+
])),
|
|
1116
|
+
type: Schema.optional(Schema.Union([Schema.Literal("http_pull"), Schema.Null])),
|
|
1117
|
+
}).pipe(Schema.encodeKeys({
|
|
1118
|
+
consumerId: "consumer_id",
|
|
1119
|
+
createdOn: "created_on",
|
|
1120
|
+
queueId: "queue_id",
|
|
1121
|
+
settings: "settings",
|
|
1122
|
+
type: "type",
|
|
1123
|
+
})),
|
|
1124
|
+
])),
|
|
1125
|
+
Schema.Null,
|
|
1126
|
+
])),
|
|
729
1127
|
consumersTotalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
730
1128
|
createdOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
731
1129
|
modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -790,7 +1188,67 @@ export const PatchQueueRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
790
1188
|
}))),
|
|
791
1189
|
}).pipe(Schema.encodeKeys({ queueName: "queue_name", settings: "settings" }), T.Http({ method: "PATCH", path: "/accounts/{account_id}/queues/{queueId}" }));
|
|
792
1190
|
export const PatchQueueResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
793
|
-
consumers: Schema.optional(Schema.Union([
|
|
1191
|
+
consumers: Schema.optional(Schema.Union([
|
|
1192
|
+
Schema.Array(Schema.Union([
|
|
1193
|
+
Schema.Struct({
|
|
1194
|
+
consumerId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1195
|
+
createdOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1196
|
+
queueId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1197
|
+
script: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1198
|
+
settings: Schema.optional(Schema.Union([
|
|
1199
|
+
Schema.Struct({
|
|
1200
|
+
batchSize: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1201
|
+
maxConcurrency: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1202
|
+
maxRetries: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1203
|
+
maxWaitTimeMs: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1204
|
+
retryDelay: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1205
|
+
}).pipe(Schema.encodeKeys({
|
|
1206
|
+
batchSize: "batch_size",
|
|
1207
|
+
maxConcurrency: "max_concurrency",
|
|
1208
|
+
maxRetries: "max_retries",
|
|
1209
|
+
maxWaitTimeMs: "max_wait_time_ms",
|
|
1210
|
+
retryDelay: "retry_delay",
|
|
1211
|
+
})),
|
|
1212
|
+
Schema.Null,
|
|
1213
|
+
])),
|
|
1214
|
+
type: Schema.optional(Schema.Union([Schema.Literal("worker"), Schema.Null])),
|
|
1215
|
+
}).pipe(Schema.encodeKeys({
|
|
1216
|
+
consumerId: "consumer_id",
|
|
1217
|
+
createdOn: "created_on",
|
|
1218
|
+
queueId: "queue_id",
|
|
1219
|
+
script: "script",
|
|
1220
|
+
settings: "settings",
|
|
1221
|
+
type: "type",
|
|
1222
|
+
})),
|
|
1223
|
+
Schema.Struct({
|
|
1224
|
+
consumerId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1225
|
+
createdOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1226
|
+
queueId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1227
|
+
settings: Schema.optional(Schema.Union([
|
|
1228
|
+
Schema.Struct({
|
|
1229
|
+
batchSize: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1230
|
+
maxRetries: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1231
|
+
retryDelay: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1232
|
+
visibilityTimeoutMs: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1233
|
+
}).pipe(Schema.encodeKeys({
|
|
1234
|
+
batchSize: "batch_size",
|
|
1235
|
+
maxRetries: "max_retries",
|
|
1236
|
+
retryDelay: "retry_delay",
|
|
1237
|
+
visibilityTimeoutMs: "visibility_timeout_ms",
|
|
1238
|
+
})),
|
|
1239
|
+
Schema.Null,
|
|
1240
|
+
])),
|
|
1241
|
+
type: Schema.optional(Schema.Union([Schema.Literal("http_pull"), Schema.Null])),
|
|
1242
|
+
}).pipe(Schema.encodeKeys({
|
|
1243
|
+
consumerId: "consumer_id",
|
|
1244
|
+
createdOn: "created_on",
|
|
1245
|
+
queueId: "queue_id",
|
|
1246
|
+
settings: "settings",
|
|
1247
|
+
type: "type",
|
|
1248
|
+
})),
|
|
1249
|
+
])),
|
|
1250
|
+
Schema.Null,
|
|
1251
|
+
])),
|
|
794
1252
|
consumersTotalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
795
1253
|
createdOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
796
1254
|
modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -845,7 +1303,25 @@ export const DeleteQueueRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
845
1303
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
846
1304
|
}).pipe(T.Http({ method: "DELETE", path: "/accounts/{account_id}/queues/{queueId}" }));
|
|
847
1305
|
export const DeleteQueueResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
848
|
-
errors: Schema.optional(Schema.Union([
|
|
1306
|
+
errors: Schema.optional(Schema.Union([
|
|
1307
|
+
Schema.Array(Schema.Struct({
|
|
1308
|
+
code: Schema.Number,
|
|
1309
|
+
message: Schema.String,
|
|
1310
|
+
documentationUrl: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1311
|
+
source: Schema.optional(Schema.Union([
|
|
1312
|
+
Schema.Struct({
|
|
1313
|
+
pointer: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1314
|
+
}),
|
|
1315
|
+
Schema.Null,
|
|
1316
|
+
])),
|
|
1317
|
+
}).pipe(Schema.encodeKeys({
|
|
1318
|
+
code: "code",
|
|
1319
|
+
message: "message",
|
|
1320
|
+
documentationUrl: "documentation_url",
|
|
1321
|
+
source: "source",
|
|
1322
|
+
}))),
|
|
1323
|
+
Schema.Null,
|
|
1324
|
+
])),
|
|
849
1325
|
messages: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
850
1326
|
success: Schema.optional(Schema.Union([Schema.Literal(true), Schema.Null])),
|
|
851
1327
|
});
|