@distilled.cloud/cloudflare 0.29.0 → 0.30.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/abuse-reports.d.ts.map +1 -1
- package/lib/services/abuse-reports.js +26 -26
- package/lib/services/abuse-reports.js.map +1 -1
- package/lib/services/accounts.d.ts.map +1 -1
- package/lib/services/accounts.js +114 -123
- package/lib/services/accounts.js.map +1 -1
- package/lib/services/acm.d.ts.map +1 -1
- package/lib/services/acm.js +23 -23
- package/lib/services/acm.js.map +1 -1
- package/lib/services/addressing.d.ts.map +1 -1
- package/lib/services/addressing.js +132 -132
- package/lib/services/addressing.js.map +1 -1
- package/lib/services/ai-gateway.d.ts.map +1 -1
- package/lib/services/ai-gateway.js +213 -207
- package/lib/services/ai-gateway.js.map +1 -1
- package/lib/services/ai-security.d.ts.map +1 -1
- package/lib/services/ai-security.js +13 -13
- package/lib/services/ai-security.js.map +1 -1
- package/lib/services/ai.d.ts.map +1 -1
- package/lib/services/ai.js +62 -62
- package/lib/services/ai.js.map +1 -1
- package/lib/services/aisearch.d.ts.map +1 -1
- package/lib/services/aisearch.js +187 -193
- package/lib/services/aisearch.js.map +1 -1
- package/lib/services/alerting.d.ts.map +1 -1
- package/lib/services/alerting.js +78 -78
- package/lib/services/alerting.js.map +1 -1
- package/lib/services/api-gateway.d.ts.map +1 -1
- package/lib/services/api-gateway.js +168 -177
- package/lib/services/api-gateway.js.map +1 -1
- package/lib/services/argo.js +12 -12
- package/lib/services/argo.js.map +1 -1
- package/lib/services/audit-logs.d.ts.map +1 -1
- package/lib/services/audit-logs.js +9 -9
- package/lib/services/audit-logs.js.map +1 -1
- package/lib/services/billing.d.ts.map +1 -1
- package/lib/services/billing.js +11 -11
- package/lib/services/billing.js.map +1 -1
- package/lib/services/bot-management.d.ts.map +1 -1
- package/lib/services/bot-management.js +18 -30
- package/lib/services/bot-management.js.map +1 -1
- package/lib/services/botnet-feed.d.ts.map +1 -1
- package/lib/services/botnet-feed.js +12 -12
- package/lib/services/botnet-feed.js.map +1 -1
- package/lib/services/brand-protection.d.ts.map +1 -1
- package/lib/services/brand-protection.js +59 -59
- 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 +103 -103
- package/lib/services/browser-rendering.js.map +1 -1
- package/lib/services/cache.d.ts.map +1 -1
- package/lib/services/cache.js +72 -72
- package/lib/services/cache.js.map +1 -1
- package/lib/services/calls.d.ts.map +1 -1
- package/lib/services/calls.js +31 -31
- package/lib/services/calls.js.map +1 -1
- package/lib/services/certificate-authorities.js +6 -6
- package/lib/services/certificate-authorities.js.map +1 -1
- package/lib/services/client-certificates.js +18 -18
- package/lib/services/client-certificates.js.map +1 -1
- package/lib/services/cloud-connector.d.ts.map +1 -1
- package/lib/services/cloud-connector.js +8 -8
- package/lib/services/cloud-connector.js.map +1 -1
- package/lib/services/cloudforce-one.d.ts.map +1 -1
- package/lib/services/cloudforce-one.js +178 -178
- package/lib/services/cloudforce-one.js.map +1 -1
- package/lib/services/connectivity.js +25 -25
- package/lib/services/connectivity.js.map +1 -1
- package/lib/services/containers.js +49 -49
- package/lib/services/containers.js.map +1 -1
- package/lib/services/content-scanning.d.ts.map +1 -1
- package/lib/services/content-scanning.js +29 -29
- package/lib/services/content-scanning.js.map +1 -1
- package/lib/services/csam-scanner.d.ts.map +1 -1
- package/lib/services/csam-scanner.js +8 -8
- package/lib/services/csam-scanner.js.map +1 -1
- package/lib/services/custom-certificates.d.ts.map +1 -1
- package/lib/services/custom-certificates.js +24 -24
- package/lib/services/custom-certificates.js.map +1 -1
- package/lib/services/custom-csrs.d.ts.map +1 -1
- package/lib/services/custom-csrs.js +22 -22
- package/lib/services/custom-csrs.js.map +1 -1
- package/lib/services/custom-hostnames.d.ts.map +1 -1
- package/lib/services/custom-hostnames.js +40 -40
- package/lib/services/custom-hostnames.js.map +1 -1
- package/lib/services/custom-nameservers.js +11 -11
- package/lib/services/custom-nameservers.js.map +1 -1
- package/lib/services/custom-pages.d.ts.map +1 -1
- package/lib/services/custom-pages.js +43 -43
- package/lib/services/custom-pages.js.map +1 -1
- package/lib/services/d1.d.ts +4 -4
- package/lib/services/d1.d.ts.map +1 -1
- package/lib/services/d1.js +69 -51
- package/lib/services/d1.js.map +1 -1
- package/lib/services/dcv-delegation.js +3 -3
- package/lib/services/dcv-delegation.js.map +1 -1
- package/lib/services/ddos-protection.js +126 -126
- package/lib/services/ddos-protection.js.map +1 -1
- package/lib/services/diagnostics.js +27 -27
- package/lib/services/diagnostics.js.map +1 -1
- package/lib/services/dls.d.ts.map +1 -1
- package/lib/services/dls.js +26 -26
- package/lib/services/dls.js.map +1 -1
- package/lib/services/dns-firewall.d.ts.map +1 -1
- package/lib/services/dns-firewall.js +34 -34
- package/lib/services/dns-firewall.js.map +1 -1
- package/lib/services/dns.d.ts.map +1 -1
- package/lib/services/dns.js +268 -268
- package/lib/services/dns.js.map +1 -1
- package/lib/services/durable-objects.d.ts.map +1 -1
- package/lib/services/durable-objects.js +11 -11
- package/lib/services/durable-objects.js.map +1 -1
- package/lib/services/email-auth.d.ts.map +1 -1
- package/lib/services/email-auth.js +13 -13
- package/lib/services/email-auth.js.map +1 -1
- package/lib/services/email-routing.d.ts.map +1 -1
- package/lib/services/email-routing.js +70 -70
- package/lib/services/email-routing.js.map +1 -1
- package/lib/services/email-security.d.ts.map +1 -1
- package/lib/services/email-security.js +195 -195
- package/lib/services/email-security.js.map +1 -1
- package/lib/services/email-sending.d.ts.map +1 -1
- package/lib/services/email-sending.js +28 -28
- package/lib/services/email-sending.js.map +1 -1
- package/lib/services/filters.d.ts.map +1 -1
- package/lib/services/filters.js +25 -25
- package/lib/services/filters.js.map +1 -1
- package/lib/services/firewall.d.ts.map +1 -1
- package/lib/services/firewall.js +149 -149
- package/lib/services/firewall.js.map +1 -1
- package/lib/services/flagship.d.ts.map +1 -1
- package/lib/services/flagship.js +52 -52
- package/lib/services/flagship.js.map +1 -1
- package/lib/services/fraud.js +8 -8
- package/lib/services/fraud.js.map +1 -1
- package/lib/services/google-tag-gateway.d.ts.map +1 -1
- package/lib/services/google-tag-gateway.js +7 -7
- package/lib/services/google-tag-gateway.js.map +1 -1
- package/lib/services/healthchecks.d.ts.map +1 -1
- package/lib/services/healthchecks.js +31 -31
- package/lib/services/healthchecks.js.map +1 -1
- package/lib/services/hostnames.d.ts.map +1 -1
- package/lib/services/hostnames.js +10 -10
- package/lib/services/hostnames.js.map +1 -1
- package/lib/services/hyperdrive.d.ts.map +1 -1
- package/lib/services/hyperdrive.js +32 -32
- package/lib/services/hyperdrive.js.map +1 -1
- package/lib/services/iam.d.ts.map +1 -1
- package/lib/services/iam.js +113 -113
- package/lib/services/iam.js.map +1 -1
- package/lib/services/images.d.ts.map +1 -1
- package/lib/services/images.js +59 -59
- package/lib/services/images.js.map +1 -1
- package/lib/services/intel.d.ts.map +1 -1
- package/lib/services/intel.js +102 -102
- package/lib/services/intel.js.map +1 -1
- package/lib/services/ips.js +5 -5
- package/lib/services/ips.js.map +1 -1
- package/lib/services/keyless-certificates.js +17 -17
- package/lib/services/keyless-certificates.js.map +1 -1
- package/lib/services/kv.d.ts.map +1 -1
- package/lib/services/kv.js +54 -54
- package/lib/services/kv.js.map +1 -1
- package/lib/services/leaked-credential-checks.d.ts.map +1 -1
- package/lib/services/leaked-credential-checks.js +22 -22
- package/lib/services/leaked-credential-checks.js.map +1 -1
- package/lib/services/load-balancers.d.ts.map +1 -1
- package/lib/services/load-balancers.js +139 -157
- package/lib/services/load-balancers.js.map +1 -1
- package/lib/services/logpush.d.ts.map +1 -1
- package/lib/services/logpush.js +69 -69
- package/lib/services/logpush.js.map +1 -1
- package/lib/services/logs.d.ts.map +1 -1
- package/lib/services/logs.js +58 -58
- package/lib/services/logs.js.map +1 -1
- package/lib/services/magic-cloud-networking.d.ts.map +1 -1
- package/lib/services/magic-cloud-networking.js +138 -168
- package/lib/services/magic-cloud-networking.js.map +1 -1
- package/lib/services/magic-network-monitoring.d.ts.map +1 -1
- package/lib/services/magic-network-monitoring.js +47 -65
- package/lib/services/magic-network-monitoring.js.map +1 -1
- package/lib/services/magic-transit.d.ts.map +1 -1
- package/lib/services/magic-transit.js +340 -364
- package/lib/services/magic-transit.js.map +1 -1
- package/lib/services/managed-transforms.js +11 -11
- package/lib/services/managed-transforms.js.map +1 -1
- package/lib/services/memberships.d.ts.map +1 -1
- package/lib/services/memberships.js +25 -25
- package/lib/services/memberships.js.map +1 -1
- package/lib/services/moq.d.ts.map +1 -1
- package/lib/services/moq.js +23 -23
- package/lib/services/moq.js.map +1 -1
- package/lib/services/mtls-certificates.d.ts.map +1 -1
- package/lib/services/mtls-certificates.js +17 -17
- package/lib/services/mtls-certificates.js.map +1 -1
- package/lib/services/network-interconnects.d.ts.map +1 -1
- package/lib/services/network-interconnects.js +56 -56
- package/lib/services/network-interconnects.js.map +1 -1
- package/lib/services/organizations.d.ts.map +1 -1
- package/lib/services/organizations.js +42 -42
- package/lib/services/organizations.js.map +1 -1
- package/lib/services/origin-ca-certificates.js +14 -14
- package/lib/services/origin-ca-certificates.js.map +1 -1
- package/lib/services/origin-post-quantum-encryption.js +6 -6
- package/lib/services/origin-post-quantum-encryption.js.map +1 -1
- package/lib/services/origin-tls-client-auth.d.ts.map +1 -1
- package/lib/services/origin-tls-client-auth.js +52 -52
- package/lib/services/origin-tls-client-auth.js.map +1 -1
- package/lib/services/origin-tls-compliance-modes.js +12 -12
- package/lib/services/origin-tls-compliance-modes.js.map +1 -1
- package/lib/services/page-rules.d.ts.map +1 -1
- package/lib/services/page-rules.js +62 -62
- package/lib/services/page-rules.js.map +1 -1
- package/lib/services/page-shield.d.ts.map +1 -1
- package/lib/services/page-shield.js +45 -48
- package/lib/services/page-shield.js.map +1 -1
- package/lib/services/pages.d.ts.map +1 -1
- package/lib/services/pages.js +78 -78
- package/lib/services/pages.js.map +1 -1
- package/lib/services/pipelines.d.ts.map +1 -1
- package/lib/services/pipelines.js +102 -102
- package/lib/services/pipelines.js.map +1 -1
- package/lib/services/queues.d.ts.map +1 -1
- package/lib/services/queues.js +100 -103
- package/lib/services/queues.js.map +1 -1
- package/lib/services/r2-data-catalog.d.ts.map +1 -1
- package/lib/services/r2-data-catalog.js +42 -42
- package/lib/services/r2-data-catalog.js.map +1 -1
- package/lib/services/r2.d.ts.map +1 -1
- package/lib/services/r2.js +190 -190
- package/lib/services/r2.js.map +1 -1
- package/lib/services/radar.d.ts.map +1 -1
- package/lib/services/radar.js +991 -1009
- package/lib/services/radar.js.map +1 -1
- package/lib/services/rate-limits.d.ts.map +1 -1
- package/lib/services/rate-limits.js +24 -24
- package/lib/services/rate-limits.js.map +1 -1
- package/lib/services/realtime-kit.d.ts.map +1 -1
- package/lib/services/realtime-kit.js +276 -276
- package/lib/services/realtime-kit.js.map +1 -1
- package/lib/services/registrar.d.ts.map +1 -1
- package/lib/services/registrar.js +28 -28
- package/lib/services/registrar.js.map +1 -1
- package/lib/services/request-tracers.d.ts.map +1 -1
- package/lib/services/request-tracers.js +7 -7
- package/lib/services/request-tracers.js.map +1 -1
- package/lib/services/resource-sharing.d.ts.map +1 -1
- package/lib/services/resource-sharing.js +49 -49
- package/lib/services/resource-sharing.js.map +1 -1
- package/lib/services/resource-tagging.d.ts.map +1 -1
- package/lib/services/resource-tagging.js +56 -56
- package/lib/services/resource-tagging.js.map +1 -1
- package/lib/services/rules.d.ts.map +1 -1
- package/lib/services/rules.js +50 -50
- package/lib/services/rules.js.map +1 -1
- package/lib/services/rulesets.d.ts +2 -2
- package/lib/services/rulesets.d.ts.map +1 -1
- package/lib/services/rulesets.js +226 -190
- package/lib/services/rulesets.js.map +1 -1
- package/lib/services/rum.d.ts.map +1 -1
- package/lib/services/rum.js +35 -35
- package/lib/services/rum.js.map +1 -1
- package/lib/services/schema-validation.d.ts.map +1 -1
- package/lib/services/schema-validation.js +43 -46
- package/lib/services/schema-validation.js.map +1 -1
- package/lib/services/secrets-store.d.ts.map +1 -1
- package/lib/services/secrets-store.js +41 -41
- package/lib/services/secrets-store.js.map +1 -1
- package/lib/services/security-center.d.ts.map +1 -1
- package/lib/services/security-center.js +54 -57
- package/lib/services/security-center.js.map +1 -1
- package/lib/services/security-txt.d.ts.map +1 -1
- package/lib/services/security-txt.js +12 -12
- package/lib/services/security-txt.js.map +1 -1
- package/lib/services/snippets.d.ts.map +1 -1
- package/lib/services/snippets.js +31 -31
- package/lib/services/snippets.js.map +1 -1
- package/lib/services/spectrum.d.ts.map +1 -1
- package/lib/services/spectrum.js +35 -35
- package/lib/services/spectrum.js.map +1 -1
- package/lib/services/speed.d.ts.map +1 -1
- package/lib/services/speed.js +41 -41
- package/lib/services/speed.js.map +1 -1
- package/lib/services/ssl.d.ts.map +1 -1
- package/lib/services/ssl.js +48 -48
- package/lib/services/ssl.js.map +1 -1
- package/lib/services/stream.d.ts.map +1 -1
- package/lib/services/stream.js +147 -147
- package/lib/services/stream.js.map +1 -1
- package/lib/services/tenant-custom-nameservers.js +11 -11
- package/lib/services/tenant-custom-nameservers.js.map +1 -1
- package/lib/services/tenants.d.ts.map +1 -1
- package/lib/services/tenants.js +28 -28
- package/lib/services/tenants.js.map +1 -1
- package/lib/services/token-validation.d.ts.map +1 -1
- package/lib/services/token-validation.js +56 -56
- package/lib/services/token-validation.js.map +1 -1
- package/lib/services/turnstile.d.ts.map +1 -1
- package/lib/services/turnstile.js +27 -54
- package/lib/services/turnstile.js.map +1 -1
- package/lib/services/url-normalization.js +9 -9
- package/lib/services/url-normalization.js.map +1 -1
- package/lib/services/url-scanner.d.ts.map +1 -1
- package/lib/services/url-scanner.js +120 -120
- package/lib/services/url-scanner.js.map +1 -1
- package/lib/services/user.d.ts.map +1 -1
- package/lib/services/user.js +95 -95
- package/lib/services/user.js.map +1 -1
- package/lib/services/vectorize.d.ts +10 -10
- package/lib/services/vectorize.d.ts.map +1 -1
- package/lib/services/vectorize.js +59 -57
- package/lib/services/vectorize.js.map +1 -1
- package/lib/services/vulnerability-scanner.d.ts.map +1 -1
- package/lib/services/vulnerability-scanner.js +95 -95
- package/lib/services/vulnerability-scanner.js.map +1 -1
- package/lib/services/waiting-rooms.d.ts.map +1 -1
- package/lib/services/waiting-rooms.js +81 -81
- package/lib/services/waiting-rooms.js.map +1 -1
- package/lib/services/web3.d.ts.map +1 -1
- package/lib/services/web3.js +39 -39
- package/lib/services/web3.js.map +1 -1
- package/lib/services/workers-for-platforms.d.ts.map +1 -1
- package/lib/services/workers-for-platforms.js +139 -139
- package/lib/services/workers-for-platforms.js.map +1 -1
- package/lib/services/workers.d.ts.map +1 -1
- package/lib/services/workers.js +420 -420
- package/lib/services/workers.js.map +1 -1
- package/lib/services/workflows.d.ts.map +1 -1
- package/lib/services/workflows.js +88 -88
- package/lib/services/workflows.js.map +1 -1
- package/lib/services/zaraz.d.ts.map +1 -1
- package/lib/services/zaraz.js +36 -39
- package/lib/services/zaraz.js.map +1 -1
- package/lib/services/zero-trust.d.ts.map +1 -1
- package/lib/services/zero-trust.js +1765 -1771
- package/lib/services/zero-trust.js.map +1 -1
- package/lib/services/zones.d.ts.map +1 -1
- package/lib/services/zones.js +168 -168
- package/lib/services/zones.js.map +1 -1
- package/package.json +3 -2
- package/src/services/abuse-reports.ts +35 -36
- package/src/services/accounts.ts +714 -760
- package/src/services/acm.ts +115 -125
- package/src/services/addressing.ts +484 -512
- package/src/services/ai-gateway.ts +653 -672
- package/src/services/ai-security.ts +47 -53
- package/src/services/ai.ts +172 -185
- package/src/services/aisearch.ts +1814 -1861
- package/src/services/alerting.ts +710 -742
- package/src/services/api-gateway.ts +481 -508
- package/src/services/argo.ts +12 -12
- package/src/services/audit-logs.ts +45 -49
- package/src/services/billing.ts +121 -136
- package/src/services/bot-management.ts +122 -136
- package/src/services/botnet-feed.ts +68 -74
- package/src/services/brand-protection.ts +275 -294
- package/src/services/browser-rendering.ts +758 -769
- package/src/services/cache.ts +148 -158
- package/src/services/calls.ts +110 -120
- package/src/services/certificate-authorities.ts +6 -6
- package/src/services/client-certificates.ts +18 -18
- package/src/services/cloud-connector.ts +11 -12
- package/src/services/cloudforce-one.ts +589 -617
- package/src/services/connectivity.ts +25 -25
- package/src/services/containers.ts +49 -49
- package/src/services/content-scanning.ts +80 -89
- package/src/services/csam-scanner.ts +16 -17
- package/src/services/custom-certificates.ts +36 -38
- package/src/services/custom-csrs.ts +103 -105
- package/src/services/custom-hostnames.ts +44 -45
- package/src/services/custom-nameservers.ts +11 -11
- package/src/services/custom-pages.ts +173 -184
- package/src/services/d1.ts +335 -325
- package/src/services/dcv-delegation.ts +3 -3
- package/src/services/ddos-protection.ts +126 -126
- package/src/services/diagnostics.ts +27 -27
- package/src/services/dls.ts +82 -86
- package/src/services/dns-firewall.ts +65 -69
- package/src/services/dns.ts +1080 -1107
- package/src/services/durable-objects.ts +36 -38
- package/src/services/email-auth.ts +47 -52
- package/src/services/email-routing.ts +264 -288
- package/src/services/email-security.ts +205 -208
- package/src/services/email-sending.ts +94 -99
- package/src/services/filters.ts +97 -111
- package/src/services/firewall.ts +698 -753
- package/src/services/flagship.ts +321 -336
- package/src/services/fraud.ts +8 -8
- package/src/services/google-tag-gateway.ts +17 -19
- package/src/services/healthchecks.ts +269 -286
- package/src/services/hostnames.ts +94 -99
- package/src/services/hyperdrive.ts +310 -324
- package/src/services/iam.ts +205 -212
- package/src/services/images.ts +138 -150
- package/src/services/intel.ts +248 -261
- package/src/services/ips.ts +5 -5
- package/src/services/keyless-certificates.ts +17 -17
- package/src/services/kv.ts +106 -110
- package/src/services/leaked-credential-checks.ts +49 -53
- package/src/services/load-balancers.ts +1119 -1212
- package/src/services/logpush.ts +298 -313
- package/src/services/logs.ts +74 -77
- package/src/services/magic-cloud-networking.ts +1219 -1311
- package/src/services/magic-network-monitoring.ts +647 -685
- package/src/services/magic-transit.ts +1988 -2119
- package/src/services/managed-transforms.ts +11 -11
- package/src/services/memberships.ts +101 -105
- package/src/services/moq.ts +100 -110
- package/src/services/mtls-certificates.ts +30 -32
- package/src/services/network-interconnects.ts +137 -145
- package/src/services/organizations.ts +189 -192
- package/src/services/origin-ca-certificates.ts +14 -14
- package/src/services/origin-post-quantum-encryption.ts +6 -6
- package/src/services/origin-tls-client-auth.ts +219 -236
- package/src/services/origin-tls-compliance-modes.ts +12 -12
- package/src/services/page-rules.ts +365 -373
- package/src/services/page-shield.ts +489 -528
- package/src/services/pages.ts +309 -319
- package/src/services/pipelines.ts +534 -573
- package/src/services/queues.ts +598 -635
- package/src/services/r2-data-catalog.ts +59 -60
- package/src/services/r2.ts +654 -689
- package/src/services/radar.ts +3395 -3487
- package/src/services/rate-limits.ts +81 -93
- package/src/services/realtime-kit.ts +386 -399
- package/src/services/registrar.ts +90 -96
- package/src/services/request-tracers.ts +41 -43
- package/src/services/resource-sharing.ts +293 -305
- package/src/services/resource-tagging.ts +354 -366
- package/src/services/rules.ts +272 -292
- package/src/services/rulesets.ts +1214 -1116
- package/src/services/rum.ts +252 -273
- package/src/services/schema-validation.ts +284 -305
- package/src/services/secrets-store.ts +130 -138
- package/src/services/security-center.ts +64 -69
- package/src/services/security-txt.ts +48 -50
- package/src/services/snippets.ts +132 -142
- package/src/services/spectrum.ts +75 -80
- package/src/services/speed.ts +385 -397
- package/src/services/ssl.ts +64 -65
- package/src/services/stream.ts +658 -718
- package/src/services/tenant-custom-nameservers.ts +11 -11
- package/src/services/tenants.ts +86 -93
- package/src/services/token-validation.ts +145 -151
- package/src/services/turnstile.ts +344 -381
- package/src/services/url-normalization.ts +9 -9
- package/src/services/url-scanner.ts +393 -399
- package/src/services/user.ts +479 -503
- package/src/services/vectorize.ts +215 -230
- package/src/services/vulnerability-scanner.ts +145 -148
- package/src/services/waiting-rooms.ts +759 -825
- package/src/services/web3.ts +186 -197
- package/src/services/workers-for-platforms.ts +408 -432
- package/src/services/workers.ts +1175 -1239
- package/src/services/workflows.ts +585 -616
- package/src/services/zaraz.ts +168 -192
- package/src/services/zero-trust.ts +2965 -3074
- package/src/services/zones.ts +753 -785
package/src/services/queues.ts
CHANGED
|
@@ -172,7 +172,7 @@ interface Settings {
|
|
|
172
172
|
/** The number of seconds to delay before making the message available for another attempt. */
|
|
173
173
|
retryDelay?: number | null;
|
|
174
174
|
}
|
|
175
|
-
const Settings = /*@__PURE__*/
|
|
175
|
+
const Settings = /*@__PURE__*/ Schema.suspend(() =>
|
|
176
176
|
Schema.Struct({
|
|
177
177
|
batchSize: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
178
178
|
maxConcurrency: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
@@ -208,31 +208,30 @@ interface MqWorkerConsumerResponse {
|
|
|
208
208
|
} | null;
|
|
209
209
|
type?: "worker" | null;
|
|
210
210
|
}
|
|
211
|
-
const MqWorkerConsumerResponse = /*@__PURE__*/
|
|
212
|
-
(
|
|
213
|
-
Schema.
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
Schema.Union([Schema.Literal("worker"), Schema.Null]),
|
|
224
|
-
),
|
|
225
|
-
}).pipe(
|
|
226
|
-
Schema.encodeKeys({
|
|
227
|
-
consumerId: "consumer_id",
|
|
228
|
-
createdOn: "created_on",
|
|
229
|
-
deadLetterQueue: "dead_letter_queue",
|
|
230
|
-
queueName: "queue_name",
|
|
231
|
-
scriptName: "script",
|
|
232
|
-
settings: "settings",
|
|
233
|
-
type: "type",
|
|
234
|
-
}),
|
|
211
|
+
const MqWorkerConsumerResponse = /*@__PURE__*/ Schema.suspend(() =>
|
|
212
|
+
Schema.Struct({
|
|
213
|
+
consumerId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
214
|
+
createdOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
215
|
+
deadLetterQueue: Schema.optional(
|
|
216
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
217
|
+
),
|
|
218
|
+
queueName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
219
|
+
scriptName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
220
|
+
settings: Schema.optional(Schema.Union([Settings, Schema.Null])),
|
|
221
|
+
type: Schema.optional(
|
|
222
|
+
Schema.Union([Schema.Literal("worker"), Schema.Null]),
|
|
235
223
|
),
|
|
224
|
+
}).pipe(
|
|
225
|
+
Schema.encodeKeys({
|
|
226
|
+
consumerId: "consumer_id",
|
|
227
|
+
createdOn: "created_on",
|
|
228
|
+
deadLetterQueue: "dead_letter_queue",
|
|
229
|
+
queueName: "queue_name",
|
|
230
|
+
scriptName: "script",
|
|
231
|
+
settings: "settings",
|
|
232
|
+
type: "type",
|
|
233
|
+
}),
|
|
234
|
+
),
|
|
236
235
|
) as unknown as Schema.Codec<MqWorkerConsumerResponse>;
|
|
237
236
|
|
|
238
237
|
interface Settings2 {
|
|
@@ -245,7 +244,7 @@ interface Settings2 {
|
|
|
245
244
|
/** The number of milliseconds that a message is exclusively leased. After the timeout, the message becomes available for another attempt. */
|
|
246
245
|
visibilityTimeoutMs?: number | null;
|
|
247
246
|
}
|
|
248
|
-
const Settings2 = /*@__PURE__*/
|
|
247
|
+
const Settings2 = /*@__PURE__*/ Schema.suspend(() =>
|
|
249
248
|
Schema.Struct({
|
|
250
249
|
batchSize: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
251
250
|
maxRetries: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
@@ -278,7 +277,7 @@ interface MqHTTPConsumerResponse {
|
|
|
278
277
|
} | null;
|
|
279
278
|
type?: "http_pull" | null;
|
|
280
279
|
}
|
|
281
|
-
const MqHTTPConsumerResponse = /*@__PURE__*/
|
|
280
|
+
const MqHTTPConsumerResponse = /*@__PURE__*/ Schema.suspend(() =>
|
|
282
281
|
Schema.Struct({
|
|
283
282
|
consumerId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
284
283
|
createdOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -316,7 +315,7 @@ interface Settings3 {
|
|
|
316
315
|
/** The number of milliseconds that a message is exclusively leased. After the timeout, the message becomes available for another attempt. */
|
|
317
316
|
visibilityTimeoutMs?: number | null;
|
|
318
317
|
}
|
|
319
|
-
const Settings3 = /*@__PURE__*/
|
|
318
|
+
const Settings3 = /*@__PURE__*/ Schema.suspend(() =>
|
|
320
319
|
Schema.Struct({
|
|
321
320
|
batchSize: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
322
321
|
maxConcurrency: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
@@ -356,37 +355,36 @@ interface MqWorkerConsumerResponse2 {
|
|
|
356
355
|
} | null;
|
|
357
356
|
type?: "worker" | null;
|
|
358
357
|
}
|
|
359
|
-
const MqWorkerConsumerResponse2 = /*@__PURE__*/
|
|
360
|
-
(
|
|
361
|
-
Schema.
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
Schema.Union([Schema.Literal("worker"), Schema.Null]),
|
|
372
|
-
),
|
|
373
|
-
}).pipe(
|
|
374
|
-
Schema.encodeKeys({
|
|
375
|
-
consumerId: "consumer_id",
|
|
376
|
-
createdOn: "created_on",
|
|
377
|
-
deadLetterQueue: "dead_letter_queue",
|
|
378
|
-
queueName: "queue_name",
|
|
379
|
-
scriptName: "script_name",
|
|
380
|
-
settings: "settings",
|
|
381
|
-
type: "type",
|
|
382
|
-
}),
|
|
358
|
+
const MqWorkerConsumerResponse2 = /*@__PURE__*/ Schema.suspend(() =>
|
|
359
|
+
Schema.Struct({
|
|
360
|
+
consumerId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
361
|
+
createdOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
362
|
+
deadLetterQueue: Schema.optional(
|
|
363
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
364
|
+
),
|
|
365
|
+
queueName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
366
|
+
scriptName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
367
|
+
settings: Schema.optional(Schema.Union([Settings, Schema.Null])),
|
|
368
|
+
type: Schema.optional(
|
|
369
|
+
Schema.Union([Schema.Literal("worker"), Schema.Null]),
|
|
383
370
|
),
|
|
371
|
+
}).pipe(
|
|
372
|
+
Schema.encodeKeys({
|
|
373
|
+
consumerId: "consumer_id",
|
|
374
|
+
createdOn: "created_on",
|
|
375
|
+
deadLetterQueue: "dead_letter_queue",
|
|
376
|
+
queueName: "queue_name",
|
|
377
|
+
scriptName: "script_name",
|
|
378
|
+
settings: "settings",
|
|
379
|
+
type: "type",
|
|
380
|
+
}),
|
|
381
|
+
),
|
|
384
382
|
) as unknown as Schema.Codec<MqWorkerConsumerResponse2>;
|
|
385
383
|
|
|
386
384
|
interface Source {
|
|
387
385
|
pointer?: string | null;
|
|
388
386
|
}
|
|
389
|
-
const Source = /*@__PURE__*/
|
|
387
|
+
const Source = /*@__PURE__*/ Schema.suspend(() =>
|
|
390
388
|
Schema.Struct({
|
|
391
389
|
pointer: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
392
390
|
}),
|
|
@@ -398,7 +396,7 @@ interface ResponseInfo {
|
|
|
398
396
|
documentationUrl?: string | null;
|
|
399
397
|
source?: { pointer?: string | null } | null;
|
|
400
398
|
}
|
|
401
|
-
const ResponseInfo = /*@__PURE__*/
|
|
399
|
+
const ResponseInfo = /*@__PURE__*/ Schema.suspend(() =>
|
|
402
400
|
Schema.Struct({
|
|
403
401
|
code: Schema.Number,
|
|
404
402
|
message: Schema.String,
|
|
@@ -422,7 +420,7 @@ interface MqQueueMessageText {
|
|
|
422
420
|
/** The number of seconds to wait for attempting to deliver this message to consumers */
|
|
423
421
|
delaySeconds?: number | null;
|
|
424
422
|
}
|
|
425
|
-
const MqQueueMessageText = /*@__PURE__*/
|
|
423
|
+
const MqQueueMessageText = /*@__PURE__*/ Schema.suspend(() =>
|
|
426
424
|
Schema.Struct({
|
|
427
425
|
body: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
428
426
|
contentType: Schema.optional(
|
|
@@ -444,7 +442,7 @@ interface MqQueueMessageJson {
|
|
|
444
442
|
/** The number of seconds to wait for attempting to deliver this message to consumers */
|
|
445
443
|
delaySeconds?: number | null;
|
|
446
444
|
}
|
|
447
|
-
const MqQueueMessageJson = /*@__PURE__*/
|
|
445
|
+
const MqQueueMessageJson = /*@__PURE__*/ Schema.suspend(() =>
|
|
448
446
|
Schema.Struct({
|
|
449
447
|
body: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
|
|
450
448
|
contentType: Schema.optional(
|
|
@@ -468,7 +466,7 @@ interface Metrics {
|
|
|
468
466
|
/** Unix timestamp in milliseconds of the oldest unacknowledged message in the queue. Returns 0 if unknown. */
|
|
469
467
|
oldestMessageTimestampMs: number;
|
|
470
468
|
}
|
|
471
|
-
const Metrics = /*@__PURE__*/
|
|
469
|
+
const Metrics = /*@__PURE__*/ Schema.suspend(() =>
|
|
472
470
|
Schema.Struct({
|
|
473
471
|
backlogBytes: Schema.Number,
|
|
474
472
|
backlogCount: Schema.Number,
|
|
@@ -490,7 +488,7 @@ interface Metadata {
|
|
|
490
488
|
oldestMessageTimestampMs: number;
|
|
491
489
|
} | null;
|
|
492
490
|
}
|
|
493
|
-
const Metadata = /*@__PURE__*/
|
|
491
|
+
const Metadata = /*@__PURE__*/ Schema.suspend(() =>
|
|
494
492
|
Schema.Struct({
|
|
495
493
|
metrics: Schema.optional(Schema.Union([Metrics, Schema.Null])),
|
|
496
494
|
}),
|
|
@@ -505,7 +503,7 @@ interface Message {
|
|
|
505
503
|
metadata?: unknown | null;
|
|
506
504
|
timestampMs?: number | null;
|
|
507
505
|
}
|
|
508
|
-
const Message = /*@__PURE__*/
|
|
506
|
+
const Message = /*@__PURE__*/ Schema.suspend(() =>
|
|
509
507
|
Schema.Struct({
|
|
510
508
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
511
509
|
attempts: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
@@ -529,7 +527,7 @@ interface Ack {
|
|
|
529
527
|
/** An ID that represents an "in-flight" message that has been pulled from a Queue. You must hold on to this ID and use it to acknowledge this message. */
|
|
530
528
|
leaseId?: string | null;
|
|
531
529
|
}
|
|
532
|
-
const Ack = /*@__PURE__*/
|
|
530
|
+
const Ack = /*@__PURE__*/ Schema.suspend(() =>
|
|
533
531
|
Schema.Struct({
|
|
534
532
|
leaseId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
535
533
|
}).pipe(Schema.encodeKeys({ leaseId: "lease_id" })),
|
|
@@ -541,7 +539,7 @@ interface Retry {
|
|
|
541
539
|
/** An ID that represents an "in-flight" message that has been pulled from a Queue. You must hold on to this ID and use it to acknowledge this message. */
|
|
542
540
|
leaseId?: string | null;
|
|
543
541
|
}
|
|
544
|
-
const Retry = /*@__PURE__*/
|
|
542
|
+
const Retry = /*@__PURE__*/ Schema.suspend(() =>
|
|
545
543
|
Schema.Struct({
|
|
546
544
|
delaySeconds: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
547
545
|
leaseId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -554,7 +552,7 @@ interface MqWorkerProducer {
|
|
|
554
552
|
script?: string | null;
|
|
555
553
|
type?: "worker" | null;
|
|
556
554
|
}
|
|
557
|
-
const MqWorkerProducer = /*@__PURE__*/
|
|
555
|
+
const MqWorkerProducer = /*@__PURE__*/ Schema.suspend(() =>
|
|
558
556
|
Schema.Struct({
|
|
559
557
|
script: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
560
558
|
type: Schema.optional(
|
|
@@ -567,7 +565,7 @@ interface MqR2Producer {
|
|
|
567
565
|
bucketName?: string | null;
|
|
568
566
|
type?: "r2_bucket" | null;
|
|
569
567
|
}
|
|
570
|
-
const MqR2Producer = /*@__PURE__*/
|
|
568
|
+
const MqR2Producer = /*@__PURE__*/ Schema.suspend(() =>
|
|
571
569
|
Schema.Struct({
|
|
572
570
|
bucketName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
573
571
|
type: Schema.optional(
|
|
@@ -584,7 +582,7 @@ interface Settings4 {
|
|
|
584
582
|
/** Number of seconds after which an unconsumed message will be delayed. */
|
|
585
583
|
messageRetentionPeriod?: number | null;
|
|
586
584
|
}
|
|
587
|
-
const Settings4 = /*@__PURE__*/
|
|
585
|
+
const Settings4 = /*@__PURE__*/ Schema.suspend(() =>
|
|
588
586
|
Schema.Struct({
|
|
589
587
|
deliveryDelay: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
590
588
|
deliveryPaused: Schema.optional(
|
|
@@ -653,47 +651,46 @@ interface ListQueuesResponseResult {
|
|
|
653
651
|
messageRetentionPeriod?: number | null;
|
|
654
652
|
} | null;
|
|
655
653
|
}
|
|
656
|
-
const ListQueuesResponseResult = /*@__PURE__*/
|
|
657
|
-
(
|
|
658
|
-
Schema.
|
|
659
|
-
|
|
660
|
-
Schema.
|
|
661
|
-
Schema.
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
Schema.Union([
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
Schema.Union([Schema.Number, Schema.Null]),
|
|
680
|
-
),
|
|
681
|
-
queueId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
682
|
-
queueName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
683
|
-
settings: Schema.optional(Schema.Union([Settings4, Schema.Null])),
|
|
684
|
-
}).pipe(
|
|
685
|
-
Schema.encodeKeys({
|
|
686
|
-
consumers: "consumers",
|
|
687
|
-
consumersTotalCount: "consumers_total_count",
|
|
688
|
-
createdOn: "created_on",
|
|
689
|
-
modifiedOn: "modified_on",
|
|
690
|
-
producers: "producers",
|
|
691
|
-
producersTotalCount: "producers_total_count",
|
|
692
|
-
queueId: "queue_id",
|
|
693
|
-
queueName: "queue_name",
|
|
694
|
-
settings: "settings",
|
|
695
|
-
}),
|
|
654
|
+
const ListQueuesResponseResult = /*@__PURE__*/ Schema.suspend(() =>
|
|
655
|
+
Schema.Struct({
|
|
656
|
+
consumers: Schema.optional(
|
|
657
|
+
Schema.Union([
|
|
658
|
+
Schema.Array(
|
|
659
|
+
Schema.Union([MqWorkerConsumerResponse, MqHTTPConsumerResponse]),
|
|
660
|
+
),
|
|
661
|
+
Schema.Null,
|
|
662
|
+
]),
|
|
663
|
+
),
|
|
664
|
+
consumersTotalCount: Schema.optional(
|
|
665
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
666
|
+
),
|
|
667
|
+
createdOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
668
|
+
modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
669
|
+
producers: Schema.optional(
|
|
670
|
+
Schema.Union([
|
|
671
|
+
Schema.Array(Schema.Union([MqWorkerProducer, MqR2Producer])),
|
|
672
|
+
Schema.Null,
|
|
673
|
+
]),
|
|
674
|
+
),
|
|
675
|
+
producersTotalCount: Schema.optional(
|
|
676
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
696
677
|
),
|
|
678
|
+
queueId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
679
|
+
queueName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
680
|
+
settings: Schema.optional(Schema.Union([Settings4, Schema.Null])),
|
|
681
|
+
}).pipe(
|
|
682
|
+
Schema.encodeKeys({
|
|
683
|
+
consumers: "consumers",
|
|
684
|
+
consumersTotalCount: "consumers_total_count",
|
|
685
|
+
createdOn: "created_on",
|
|
686
|
+
modifiedOn: "modified_on",
|
|
687
|
+
producers: "producers",
|
|
688
|
+
producersTotalCount: "producers_total_count",
|
|
689
|
+
queueId: "queue_id",
|
|
690
|
+
queueName: "queue_name",
|
|
691
|
+
settings: "settings",
|
|
692
|
+
}),
|
|
693
|
+
),
|
|
697
694
|
) as unknown as Schema.Codec<ListQueuesResponseResult>;
|
|
698
695
|
|
|
699
696
|
interface Destination {
|
|
@@ -702,7 +699,7 @@ interface Destination {
|
|
|
702
699
|
/** Type of destination */
|
|
703
700
|
type: "queues.queue";
|
|
704
701
|
}
|
|
705
|
-
const Destination = /*@__PURE__*/
|
|
702
|
+
const Destination = /*@__PURE__*/ Schema.suspend(() =>
|
|
706
703
|
Schema.Struct({
|
|
707
704
|
queueId: Schema.String,
|
|
708
705
|
type: Schema.Literal("queues.queue"),
|
|
@@ -713,7 +710,7 @@ interface MqEventSourceImages {
|
|
|
713
710
|
/** Type of source */
|
|
714
711
|
type?: "images" | null;
|
|
715
712
|
}
|
|
716
|
-
const MqEventSourceImages = /*@__PURE__*/
|
|
713
|
+
const MqEventSourceImages = /*@__PURE__*/ Schema.suspend(() =>
|
|
717
714
|
Schema.Struct({
|
|
718
715
|
type: Schema.optional(
|
|
719
716
|
Schema.Union([Schema.Literal("images"), Schema.Null]),
|
|
@@ -725,7 +722,7 @@ interface MqEventSourceKV {
|
|
|
725
722
|
/** Type of source */
|
|
726
723
|
type?: "kv" | null;
|
|
727
724
|
}
|
|
728
|
-
const MqEventSourceKV = /*@__PURE__*/
|
|
725
|
+
const MqEventSourceKV = /*@__PURE__*/ Schema.suspend(() =>
|
|
729
726
|
Schema.Struct({
|
|
730
727
|
type: Schema.optional(Schema.Union([Schema.Literal("kv"), Schema.Null])),
|
|
731
728
|
}),
|
|
@@ -735,7 +732,7 @@ interface MqEventSourceR2 {
|
|
|
735
732
|
/** Type of source */
|
|
736
733
|
type?: "r2" | null;
|
|
737
734
|
}
|
|
738
|
-
const MqEventSourceR2 = /*@__PURE__*/
|
|
735
|
+
const MqEventSourceR2 = /*@__PURE__*/ Schema.suspend(() =>
|
|
739
736
|
Schema.Struct({
|
|
740
737
|
type: Schema.optional(Schema.Union([Schema.Literal("r2"), Schema.Null])),
|
|
741
738
|
}),
|
|
@@ -745,20 +742,19 @@ interface MqEventSourceSuperSlurper {
|
|
|
745
742
|
/** Type of source */
|
|
746
743
|
type?: "superSlurper" | null;
|
|
747
744
|
}
|
|
748
|
-
const MqEventSourceSuperSlurper = /*@__PURE__*/
|
|
749
|
-
(
|
|
750
|
-
Schema.
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
}),
|
|
745
|
+
const MqEventSourceSuperSlurper = /*@__PURE__*/ Schema.suspend(() =>
|
|
746
|
+
Schema.Struct({
|
|
747
|
+
type: Schema.optional(
|
|
748
|
+
Schema.Union([Schema.Literal("superSlurper"), Schema.Null]),
|
|
749
|
+
),
|
|
750
|
+
}),
|
|
755
751
|
) as unknown as Schema.Codec<MqEventSourceSuperSlurper>;
|
|
756
752
|
|
|
757
753
|
interface MqEventSourceVectorize {
|
|
758
754
|
/** Type of source */
|
|
759
755
|
type?: "vectorize" | null;
|
|
760
756
|
}
|
|
761
|
-
const MqEventSourceVectorize = /*@__PURE__*/
|
|
757
|
+
const MqEventSourceVectorize = /*@__PURE__*/ Schema.suspend(() =>
|
|
762
758
|
Schema.Struct({
|
|
763
759
|
type: Schema.optional(
|
|
764
760
|
Schema.Union([Schema.Literal("vectorize"), Schema.Null]),
|
|
@@ -772,14 +768,13 @@ interface MqEventSourceWorkersAIModel {
|
|
|
772
768
|
/** Type of source */
|
|
773
769
|
type?: "workersAi.model" | null;
|
|
774
770
|
}
|
|
775
|
-
const MqEventSourceWorkersAIModel = /*@__PURE__*/
|
|
776
|
-
(
|
|
777
|
-
Schema.
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
}).pipe(Schema.encodeKeys({ modelName: "model_name", type: "type" })),
|
|
771
|
+
const MqEventSourceWorkersAIModel = /*@__PURE__*/ Schema.suspend(() =>
|
|
772
|
+
Schema.Struct({
|
|
773
|
+
modelName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
774
|
+
type: Schema.optional(
|
|
775
|
+
Schema.Union([Schema.Literal("workersAi.model"), Schema.Null]),
|
|
776
|
+
),
|
|
777
|
+
}).pipe(Schema.encodeKeys({ modelName: "model_name", type: "type" })),
|
|
783
778
|
) as unknown as Schema.Codec<MqEventSourceWorkersAIModel>;
|
|
784
779
|
|
|
785
780
|
interface MqEventSourceWorkersBuildsWorker {
|
|
@@ -789,7 +784,7 @@ interface MqEventSourceWorkersBuildsWorker {
|
|
|
789
784
|
workerName?: string | null;
|
|
790
785
|
}
|
|
791
786
|
const MqEventSourceWorkersBuildsWorker =
|
|
792
|
-
/*@__PURE__*/
|
|
787
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
793
788
|
Schema.Struct({
|
|
794
789
|
type: Schema.optional(
|
|
795
790
|
Schema.Union([Schema.Literal("workersBuilds.worker"), Schema.Null]),
|
|
@@ -805,7 +800,7 @@ interface MqEventSourceWorkflowsWorkflow {
|
|
|
805
800
|
workflowName?: string | null;
|
|
806
801
|
}
|
|
807
802
|
const MqEventSourceWorkflowsWorkflow =
|
|
808
|
-
/*@__PURE__*/
|
|
803
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
809
804
|
Schema.Struct({
|
|
810
805
|
type: Schema.optional(
|
|
811
806
|
Schema.Union([Schema.Literal("workflows.workflow"), Schema.Null]),
|
|
@@ -841,7 +836,7 @@ interface ListSubscriptionsResponseResult {
|
|
|
841
836
|
| { type?: "workflows.workflow" | null; workflowName?: string | null };
|
|
842
837
|
}
|
|
843
838
|
const ListSubscriptionsResponseResult =
|
|
844
|
-
/*@__PURE__*/
|
|
839
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
845
840
|
Schema.Struct({
|
|
846
841
|
id: Schema.String,
|
|
847
842
|
createdAt: Schema.String,
|
|
@@ -881,7 +876,7 @@ interface ListSubscriptionsResponseResultInfo {
|
|
|
881
876
|
totalCount?: number | null;
|
|
882
877
|
}
|
|
883
878
|
const ListSubscriptionsResponseResultInfo =
|
|
884
|
-
/*@__PURE__*/
|
|
879
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
885
880
|
Schema.Struct({
|
|
886
881
|
count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
887
882
|
page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
@@ -908,18 +903,17 @@ export interface GetConsumerRequest {
|
|
|
908
903
|
accountId: string;
|
|
909
904
|
}
|
|
910
905
|
|
|
911
|
-
export const GetConsumerRequest = /*@__PURE__*/
|
|
912
|
-
(
|
|
913
|
-
Schema.
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
),
|
|
906
|
+
export const GetConsumerRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
907
|
+
Schema.Struct({
|
|
908
|
+
queueId: Schema.String.pipe(T.HttpPath("queueId")),
|
|
909
|
+
consumerId: Schema.String.pipe(T.HttpPath("consumerId")),
|
|
910
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
911
|
+
}).pipe(
|
|
912
|
+
T.Http({
|
|
913
|
+
method: "GET",
|
|
914
|
+
path: "/accounts/{account_id}/queues/{queueId}/consumers/{consumerId}",
|
|
915
|
+
}),
|
|
916
|
+
),
|
|
923
917
|
) as unknown as Schema.Codec<GetConsumerRequest>;
|
|
924
918
|
|
|
925
919
|
export type GetConsumerResponse =
|
|
@@ -952,11 +946,10 @@ export type GetConsumerResponse =
|
|
|
952
946
|
type?: "http_pull" | null;
|
|
953
947
|
};
|
|
954
948
|
|
|
955
|
-
export const GetConsumerResponse = /*@__PURE__*/
|
|
956
|
-
()
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
),
|
|
949
|
+
export const GetConsumerResponse = /*@__PURE__*/ Schema.suspend(() =>
|
|
950
|
+
Schema.Union([MqWorkerConsumerResponse, MqHTTPConsumerResponse]).pipe(
|
|
951
|
+
T.ResponsePath("result"),
|
|
952
|
+
),
|
|
960
953
|
) as unknown as Schema.Codec<GetConsumerResponse>;
|
|
961
954
|
|
|
962
955
|
export type GetConsumerError =
|
|
@@ -971,7 +964,7 @@ export const getConsumer: API.OperationMethod<
|
|
|
971
964
|
GetConsumerResponse,
|
|
972
965
|
GetConsumerError,
|
|
973
966
|
Credentials | HttpClient.HttpClient
|
|
974
|
-
> = /*@__PURE__*/
|
|
967
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
975
968
|
input: GetConsumerRequest,
|
|
976
969
|
output: GetConsumerResponse,
|
|
977
970
|
errors: [InvalidRequestBody, QueueNotFound, ConsumerNotFound, InvalidRoute],
|
|
@@ -983,17 +976,16 @@ export interface ListConsumersRequest {
|
|
|
983
976
|
accountId: string;
|
|
984
977
|
}
|
|
985
978
|
|
|
986
|
-
export const ListConsumersRequest = /*@__PURE__*/
|
|
987
|
-
(
|
|
988
|
-
Schema.
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
),
|
|
979
|
+
export const ListConsumersRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
980
|
+
Schema.Struct({
|
|
981
|
+
queueId: Schema.String.pipe(T.HttpPath("queueId")),
|
|
982
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
983
|
+
}).pipe(
|
|
984
|
+
T.Http({
|
|
985
|
+
method: "GET",
|
|
986
|
+
path: "/accounts/{account_id}/queues/{queueId}/consumers",
|
|
987
|
+
}),
|
|
988
|
+
),
|
|
997
989
|
) as unknown as Schema.Codec<ListConsumersRequest>;
|
|
998
990
|
|
|
999
991
|
export interface ListConsumersResponse {
|
|
@@ -1029,13 +1021,12 @@ export interface ListConsumersResponse {
|
|
|
1029
1021
|
)[];
|
|
1030
1022
|
}
|
|
1031
1023
|
|
|
1032
|
-
export const ListConsumersResponse = /*@__PURE__*/
|
|
1033
|
-
(
|
|
1034
|
-
Schema.
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
}),
|
|
1024
|
+
export const ListConsumersResponse = /*@__PURE__*/ Schema.suspend(() =>
|
|
1025
|
+
Schema.Struct({
|
|
1026
|
+
result: Schema.Array(
|
|
1027
|
+
Schema.Union([MqWorkerConsumerResponse, MqHTTPConsumerResponse]),
|
|
1028
|
+
),
|
|
1029
|
+
}),
|
|
1039
1030
|
) as unknown as Schema.Codec<ListConsumersResponse>;
|
|
1040
1031
|
|
|
1041
1032
|
export type ListConsumersError =
|
|
@@ -1049,7 +1040,7 @@ export const listConsumers: API.PaginatedOperationMethod<
|
|
|
1049
1040
|
ListConsumersResponse,
|
|
1050
1041
|
ListConsumersError,
|
|
1051
1042
|
Credentials | HttpClient.HttpClient
|
|
1052
|
-
> = /*@__PURE__*/
|
|
1043
|
+
> = /*@__PURE__*/ API.makePaginated(() => ({
|
|
1053
1044
|
input: ListConsumersRequest,
|
|
1054
1045
|
output: ListConsumersResponse,
|
|
1055
1046
|
errors: [InvalidRequestBody, QueueNotFound, InvalidRoute],
|
|
@@ -1080,30 +1071,29 @@ export interface CreateConsumerRequest {
|
|
|
1080
1071
|
};
|
|
1081
1072
|
}
|
|
1082
1073
|
|
|
1083
|
-
export const CreateConsumerRequest = /*@__PURE__*/
|
|
1084
|
-
(
|
|
1085
|
-
Schema.
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
),
|
|
1074
|
+
export const CreateConsumerRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
1075
|
+
Schema.Struct({
|
|
1076
|
+
queueId: Schema.String.pipe(T.HttpPath("queueId")),
|
|
1077
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1078
|
+
scriptName: Schema.optional(Schema.String),
|
|
1079
|
+
type: Schema.Union([
|
|
1080
|
+
Schema.Literals(["worker", "http_pull"]),
|
|
1081
|
+
Schema.String,
|
|
1082
|
+
]),
|
|
1083
|
+
deadLetterQueue: Schema.optional(Schema.String),
|
|
1084
|
+
settings: Schema.optional(Settings3),
|
|
1085
|
+
}).pipe(
|
|
1086
|
+
Schema.encodeKeys({
|
|
1087
|
+
scriptName: "script_name",
|
|
1088
|
+
type: "type",
|
|
1089
|
+
deadLetterQueue: "dead_letter_queue",
|
|
1090
|
+
settings: "settings",
|
|
1091
|
+
}),
|
|
1092
|
+
T.Http({
|
|
1093
|
+
method: "POST",
|
|
1094
|
+
path: "/accounts/{account_id}/queues/{queueId}/consumers",
|
|
1095
|
+
}),
|
|
1096
|
+
),
|
|
1107
1097
|
) as unknown as Schema.Codec<CreateConsumerRequest>;
|
|
1108
1098
|
|
|
1109
1099
|
export type CreateConsumerResponse =
|
|
@@ -1137,7 +1127,7 @@ export type CreateConsumerResponse =
|
|
|
1137
1127
|
};
|
|
1138
1128
|
|
|
1139
1129
|
export const CreateConsumerResponse =
|
|
1140
|
-
/*@__PURE__*/
|
|
1130
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
1141
1131
|
Schema.Union([MqWorkerConsumerResponse2, MqHTTPConsumerResponse]).pipe(
|
|
1142
1132
|
T.ResponsePath("result"),
|
|
1143
1133
|
),
|
|
@@ -1157,7 +1147,7 @@ export const createConsumer: API.OperationMethod<
|
|
|
1157
1147
|
CreateConsumerResponse,
|
|
1158
1148
|
CreateConsumerError,
|
|
1159
1149
|
Credentials | HttpClient.HttpClient
|
|
1160
|
-
> = /*@__PURE__*/
|
|
1150
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1161
1151
|
input: CreateConsumerRequest,
|
|
1162
1152
|
output: CreateConsumerResponse,
|
|
1163
1153
|
errors: [
|
|
@@ -1192,31 +1182,30 @@ export interface UpdateConsumerRequest {
|
|
|
1192
1182
|
};
|
|
1193
1183
|
}
|
|
1194
1184
|
|
|
1195
|
-
export const UpdateConsumerRequest = /*@__PURE__*/
|
|
1196
|
-
(
|
|
1197
|
-
Schema.
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
),
|
|
1185
|
+
export const UpdateConsumerRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
1186
|
+
Schema.Struct({
|
|
1187
|
+
queueId: Schema.String.pipe(T.HttpPath("queueId")),
|
|
1188
|
+
consumerId: Schema.String.pipe(T.HttpPath("consumerId")),
|
|
1189
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1190
|
+
scriptName: Schema.optional(Schema.String),
|
|
1191
|
+
type: Schema.Union([
|
|
1192
|
+
Schema.Literals(["worker", "http_pull"]),
|
|
1193
|
+
Schema.String,
|
|
1194
|
+
]),
|
|
1195
|
+
deadLetterQueue: Schema.optional(Schema.String),
|
|
1196
|
+
settings: Schema.optional(Settings3),
|
|
1197
|
+
}).pipe(
|
|
1198
|
+
Schema.encodeKeys({
|
|
1199
|
+
scriptName: "script_name",
|
|
1200
|
+
type: "type",
|
|
1201
|
+
deadLetterQueue: "dead_letter_queue",
|
|
1202
|
+
settings: "settings",
|
|
1203
|
+
}),
|
|
1204
|
+
T.Http({
|
|
1205
|
+
method: "PUT",
|
|
1206
|
+
path: "/accounts/{account_id}/queues/{queueId}/consumers/{consumerId}",
|
|
1207
|
+
}),
|
|
1208
|
+
),
|
|
1220
1209
|
) as unknown as Schema.Codec<UpdateConsumerRequest>;
|
|
1221
1210
|
|
|
1222
1211
|
export type UpdateConsumerResponse =
|
|
@@ -1250,7 +1239,7 @@ export type UpdateConsumerResponse =
|
|
|
1250
1239
|
};
|
|
1251
1240
|
|
|
1252
1241
|
export const UpdateConsumerResponse =
|
|
1253
|
-
/*@__PURE__*/
|
|
1242
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
1254
1243
|
Schema.Union([MqWorkerConsumerResponse2, MqHTTPConsumerResponse]).pipe(
|
|
1255
1244
|
T.ResponsePath("result"),
|
|
1256
1245
|
),
|
|
@@ -1270,7 +1259,7 @@ export const updateConsumer: API.OperationMethod<
|
|
|
1270
1259
|
UpdateConsumerResponse,
|
|
1271
1260
|
UpdateConsumerError,
|
|
1272
1261
|
Credentials | HttpClient.HttpClient
|
|
1273
|
-
> = /*@__PURE__*/
|
|
1262
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1274
1263
|
input: UpdateConsumerRequest,
|
|
1275
1264
|
output: UpdateConsumerResponse,
|
|
1276
1265
|
errors: [
|
|
@@ -1290,18 +1279,17 @@ export interface DeleteConsumerRequest {
|
|
|
1290
1279
|
accountId: string;
|
|
1291
1280
|
}
|
|
1292
1281
|
|
|
1293
|
-
export const DeleteConsumerRequest = /*@__PURE__*/
|
|
1294
|
-
(
|
|
1295
|
-
Schema.
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
),
|
|
1282
|
+
export const DeleteConsumerRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
1283
|
+
Schema.Struct({
|
|
1284
|
+
queueId: Schema.String.pipe(T.HttpPath("queueId")),
|
|
1285
|
+
consumerId: Schema.String.pipe(T.HttpPath("consumerId")),
|
|
1286
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1287
|
+
}).pipe(
|
|
1288
|
+
T.Http({
|
|
1289
|
+
method: "DELETE",
|
|
1290
|
+
path: "/accounts/{account_id}/queues/{queueId}/consumers/{consumerId}",
|
|
1291
|
+
}),
|
|
1292
|
+
),
|
|
1305
1293
|
) as unknown as Schema.Codec<DeleteConsumerRequest>;
|
|
1306
1294
|
|
|
1307
1295
|
export interface DeleteConsumerResponse {
|
|
@@ -1319,7 +1307,7 @@ export interface DeleteConsumerResponse {
|
|
|
1319
1307
|
}
|
|
1320
1308
|
|
|
1321
1309
|
export const DeleteConsumerResponse =
|
|
1322
|
-
/*@__PURE__*/
|
|
1310
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
1323
1311
|
Schema.Struct({
|
|
1324
1312
|
errors: Schema.optional(
|
|
1325
1313
|
Schema.Union([Schema.Array(ResponseInfo), Schema.Null]),
|
|
@@ -1345,7 +1333,7 @@ export const deleteConsumer: API.OperationMethod<
|
|
|
1345
1333
|
DeleteConsumerResponse,
|
|
1346
1334
|
DeleteConsumerError,
|
|
1347
1335
|
Credentials | HttpClient.HttpClient
|
|
1348
|
-
> = /*@__PURE__*/
|
|
1336
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1349
1337
|
input: DeleteConsumerRequest,
|
|
1350
1338
|
output: DeleteConsumerResponse,
|
|
1351
1339
|
errors: [InvalidRequestBody, QueueNotFound, ConsumerNotFound, InvalidRoute],
|
|
@@ -1369,7 +1357,7 @@ export interface BulkPushMessagesRequest {
|
|
|
1369
1357
|
}
|
|
1370
1358
|
|
|
1371
1359
|
export const BulkPushMessagesRequest =
|
|
1372
|
-
/*@__PURE__*/
|
|
1360
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
1373
1361
|
Schema.Struct({
|
|
1374
1362
|
queueId: Schema.String.pipe(T.HttpPath("queueId")),
|
|
1375
1363
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
@@ -1400,7 +1388,7 @@ export interface BulkPushMessagesResponse {
|
|
|
1400
1388
|
}
|
|
1401
1389
|
|
|
1402
1390
|
export const BulkPushMessagesResponse =
|
|
1403
|
-
/*@__PURE__*/
|
|
1391
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
1404
1392
|
Schema.Struct({
|
|
1405
1393
|
metadata: Schema.optional(Schema.Union([Metadata, Schema.Null])),
|
|
1406
1394
|
}).pipe(T.ResponsePath("result")),
|
|
@@ -1417,7 +1405,7 @@ export const bulkPushMessages: API.OperationMethod<
|
|
|
1417
1405
|
BulkPushMessagesResponse,
|
|
1418
1406
|
BulkPushMessagesError,
|
|
1419
1407
|
Credentials | HttpClient.HttpClient
|
|
1420
|
-
> = /*@__PURE__*/
|
|
1408
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1421
1409
|
input: BulkPushMessagesRequest,
|
|
1422
1410
|
output: BulkPushMessagesResponse,
|
|
1423
1411
|
errors: [InvalidMessageBody, InvalidQueueId, InvalidRoute],
|
|
@@ -1433,23 +1421,22 @@ export interface PullMessageRequest {
|
|
|
1433
1421
|
visibilityTimeoutMs?: number;
|
|
1434
1422
|
}
|
|
1435
1423
|
|
|
1436
|
-
export const PullMessageRequest = /*@__PURE__*/
|
|
1437
|
-
(
|
|
1438
|
-
Schema.
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
),
|
|
1424
|
+
export const PullMessageRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
1425
|
+
Schema.Struct({
|
|
1426
|
+
queueId: Schema.String.pipe(T.HttpPath("queueId")),
|
|
1427
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1428
|
+
batchSize: Schema.optional(Schema.Number),
|
|
1429
|
+
visibilityTimeoutMs: Schema.optional(Schema.Number),
|
|
1430
|
+
}).pipe(
|
|
1431
|
+
Schema.encodeKeys({
|
|
1432
|
+
batchSize: "batch_size",
|
|
1433
|
+
visibilityTimeoutMs: "visibility_timeout_ms",
|
|
1434
|
+
}),
|
|
1435
|
+
T.Http({
|
|
1436
|
+
method: "POST",
|
|
1437
|
+
path: "/accounts/{account_id}/queues/{queueId}/messages/pull",
|
|
1438
|
+
}),
|
|
1439
|
+
),
|
|
1453
1440
|
) as unknown as Schema.Codec<PullMessageRequest>;
|
|
1454
1441
|
|
|
1455
1442
|
export interface PullMessageResponse {
|
|
@@ -1474,29 +1461,28 @@ export interface PullMessageResponse {
|
|
|
1474
1461
|
} | null;
|
|
1475
1462
|
}
|
|
1476
1463
|
|
|
1477
|
-
export const PullMessageResponse = /*@__PURE__*/
|
|
1478
|
-
(
|
|
1479
|
-
Schema.
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
.
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
| DefaultErrors
|
|
1464
|
+
export const PullMessageResponse = /*@__PURE__*/ Schema.suspend(() =>
|
|
1465
|
+
Schema.Struct({
|
|
1466
|
+
messageBacklogCount: Schema.optional(
|
|
1467
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
1468
|
+
),
|
|
1469
|
+
messages: Schema.optional(
|
|
1470
|
+
Schema.Union([Schema.Array(Message), Schema.Null]),
|
|
1471
|
+
),
|
|
1472
|
+
metadata: Schema.optional(Schema.Union([Metadata, Schema.Null])),
|
|
1473
|
+
})
|
|
1474
|
+
.pipe(
|
|
1475
|
+
Schema.encodeKeys({
|
|
1476
|
+
messageBacklogCount: "message_backlog_count",
|
|
1477
|
+
messages: "messages",
|
|
1478
|
+
metadata: "metadata",
|
|
1479
|
+
}),
|
|
1480
|
+
)
|
|
1481
|
+
.pipe(T.ResponsePath("result")),
|
|
1482
|
+
) as unknown as Schema.Codec<PullMessageResponse>;
|
|
1483
|
+
|
|
1484
|
+
export type PullMessageError =
|
|
1485
|
+
| DefaultErrors
|
|
1500
1486
|
| InvalidRequestBody
|
|
1501
1487
|
| InvalidQueueId
|
|
1502
1488
|
| QueueNotFound
|
|
@@ -1507,7 +1493,7 @@ export const pullMessage: API.OperationMethod<
|
|
|
1507
1493
|
PullMessageResponse,
|
|
1508
1494
|
PullMessageError,
|
|
1509
1495
|
Credentials | HttpClient.HttpClient
|
|
1510
|
-
> = /*@__PURE__*/
|
|
1496
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1511
1497
|
input: PullMessageRequest,
|
|
1512
1498
|
output: PullMessageResponse,
|
|
1513
1499
|
errors: [InvalidRequestBody, InvalidQueueId, QueueNotFound, InvalidRoute],
|
|
@@ -1525,27 +1511,26 @@ export interface PushMessageRequest {
|
|
|
1525
1511
|
delaySeconds?: number;
|
|
1526
1512
|
}
|
|
1527
1513
|
|
|
1528
|
-
export const PushMessageRequest = /*@__PURE__*/
|
|
1529
|
-
(
|
|
1530
|
-
Schema.
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
Schema.Union([Schema.Literals(["text", "json"]), Schema.String]),
|
|
1536
|
-
),
|
|
1537
|
-
delaySeconds: Schema.optional(Schema.Number),
|
|
1538
|
-
}).pipe(
|
|
1539
|
-
Schema.encodeKeys({
|
|
1540
|
-
body: "body",
|
|
1541
|
-
contentType: "content_type",
|
|
1542
|
-
delaySeconds: "delay_seconds",
|
|
1543
|
-
}),
|
|
1544
|
-
T.Http({
|
|
1545
|
-
method: "POST",
|
|
1546
|
-
path: "/accounts/{account_id}/queues/{queueId}/messages",
|
|
1547
|
-
}),
|
|
1514
|
+
export const PushMessageRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
1515
|
+
Schema.Struct({
|
|
1516
|
+
queueId: Schema.String.pipe(T.HttpPath("queueId")),
|
|
1517
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1518
|
+
body: Schema.optional(Schema.String),
|
|
1519
|
+
contentType: Schema.optional(
|
|
1520
|
+
Schema.Union([Schema.Literals(["text", "json"]), Schema.String]),
|
|
1548
1521
|
),
|
|
1522
|
+
delaySeconds: Schema.optional(Schema.Number),
|
|
1523
|
+
}).pipe(
|
|
1524
|
+
Schema.encodeKeys({
|
|
1525
|
+
body: "body",
|
|
1526
|
+
contentType: "content_type",
|
|
1527
|
+
delaySeconds: "delay_seconds",
|
|
1528
|
+
}),
|
|
1529
|
+
T.Http({
|
|
1530
|
+
method: "POST",
|
|
1531
|
+
path: "/accounts/{account_id}/queues/{queueId}/messages",
|
|
1532
|
+
}),
|
|
1533
|
+
),
|
|
1549
1534
|
) as unknown as Schema.Codec<PushMessageRequest>;
|
|
1550
1535
|
|
|
1551
1536
|
export interface PushMessageResponse {
|
|
@@ -1558,11 +1543,10 @@ export interface PushMessageResponse {
|
|
|
1558
1543
|
} | null;
|
|
1559
1544
|
}
|
|
1560
1545
|
|
|
1561
|
-
export const PushMessageResponse = /*@__PURE__*/
|
|
1562
|
-
(
|
|
1563
|
-
Schema.
|
|
1564
|
-
|
|
1565
|
-
}).pipe(T.ResponsePath("result")),
|
|
1546
|
+
export const PushMessageResponse = /*@__PURE__*/ Schema.suspend(() =>
|
|
1547
|
+
Schema.Struct({
|
|
1548
|
+
metadata: Schema.optional(Schema.Union([Metadata, Schema.Null])),
|
|
1549
|
+
}).pipe(T.ResponsePath("result")),
|
|
1566
1550
|
) as unknown as Schema.Codec<PushMessageResponse>;
|
|
1567
1551
|
|
|
1568
1552
|
export type PushMessageError =
|
|
@@ -1576,7 +1560,7 @@ export const pushMessage: API.OperationMethod<
|
|
|
1576
1560
|
PushMessageResponse,
|
|
1577
1561
|
PushMessageError,
|
|
1578
1562
|
Credentials | HttpClient.HttpClient
|
|
1579
|
-
> = /*@__PURE__*/
|
|
1563
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1580
1564
|
input: PushMessageRequest,
|
|
1581
1565
|
output: PushMessageResponse,
|
|
1582
1566
|
errors: [InvalidMessageBody, InvalidQueueId, InvalidRoute],
|
|
@@ -1592,19 +1576,18 @@ export interface AckMessageRequest {
|
|
|
1592
1576
|
retries?: { delaySeconds?: number; leaseId?: string }[];
|
|
1593
1577
|
}
|
|
1594
1578
|
|
|
1595
|
-
export const AckMessageRequest = /*@__PURE__*/
|
|
1596
|
-
(
|
|
1597
|
-
Schema.
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
),
|
|
1579
|
+
export const AckMessageRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
1580
|
+
Schema.Struct({
|
|
1581
|
+
queueId: Schema.String.pipe(T.HttpPath("queueId")),
|
|
1582
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1583
|
+
acks: Schema.optional(Schema.Array(Ack)),
|
|
1584
|
+
retries: Schema.optional(Schema.Array(Retry)),
|
|
1585
|
+
}).pipe(
|
|
1586
|
+
T.Http({
|
|
1587
|
+
method: "POST",
|
|
1588
|
+
path: "/accounts/{account_id}/queues/{queueId}/messages/ack",
|
|
1589
|
+
}),
|
|
1590
|
+
),
|
|
1608
1591
|
) as unknown as Schema.Codec<AckMessageRequest>;
|
|
1609
1592
|
|
|
1610
1593
|
export interface AckMessageResponse {
|
|
@@ -1616,18 +1599,14 @@ export interface AckMessageResponse {
|
|
|
1616
1599
|
warnings?: Record<string, unknown> | null;
|
|
1617
1600
|
}
|
|
1618
1601
|
|
|
1619
|
-
export const AckMessageResponse = /*@__PURE__*/
|
|
1620
|
-
(
|
|
1621
|
-
Schema.
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
Schema.Null,
|
|
1628
|
-
]),
|
|
1629
|
-
),
|
|
1630
|
-
}).pipe(T.ResponsePath("result")),
|
|
1602
|
+
export const AckMessageResponse = /*@__PURE__*/ Schema.suspend(() =>
|
|
1603
|
+
Schema.Struct({
|
|
1604
|
+
ackCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1605
|
+
retryCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1606
|
+
warnings: Schema.optional(
|
|
1607
|
+
Schema.Union([Schema.Record(Schema.String, Schema.Unknown), Schema.Null]),
|
|
1608
|
+
),
|
|
1609
|
+
}).pipe(T.ResponsePath("result")),
|
|
1631
1610
|
) as unknown as Schema.Codec<AckMessageResponse>;
|
|
1632
1611
|
|
|
1633
1612
|
export type AckMessageError =
|
|
@@ -1642,7 +1621,7 @@ export const ackMessage: API.OperationMethod<
|
|
|
1642
1621
|
AckMessageResponse,
|
|
1643
1622
|
AckMessageError,
|
|
1644
1623
|
Credentials | HttpClient.HttpClient
|
|
1645
|
-
> = /*@__PURE__*/
|
|
1624
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1646
1625
|
input: AckMessageRequest,
|
|
1647
1626
|
output: AckMessageResponse,
|
|
1648
1627
|
errors: [InvalidRequestBody, InvalidQueueId, QueueNotFound, InvalidRoute],
|
|
@@ -1659,7 +1638,7 @@ export interface GetMetricsQueueRequest {
|
|
|
1659
1638
|
}
|
|
1660
1639
|
|
|
1661
1640
|
export const GetMetricsQueueRequest =
|
|
1662
|
-
/*@__PURE__*/
|
|
1641
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
1663
1642
|
Schema.Struct({
|
|
1664
1643
|
queueId: Schema.String.pipe(T.HttpPath("queueId")),
|
|
1665
1644
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
@@ -1681,7 +1660,7 @@ export interface GetMetricsQueueResponse {
|
|
|
1681
1660
|
}
|
|
1682
1661
|
|
|
1683
1662
|
export const GetMetricsQueueResponse =
|
|
1684
|
-
/*@__PURE__*/
|
|
1663
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
1685
1664
|
Schema.Struct({
|
|
1686
1665
|
backlogBytes: Schema.Number,
|
|
1687
1666
|
backlogCount: Schema.Number,
|
|
@@ -1704,7 +1683,7 @@ export const getMetricsQueue: API.OperationMethod<
|
|
|
1704
1683
|
GetMetricsQueueResponse,
|
|
1705
1684
|
GetMetricsQueueError,
|
|
1706
1685
|
Credentials | HttpClient.HttpClient
|
|
1707
|
-
> = /*@__PURE__*/
|
|
1686
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1708
1687
|
input: GetMetricsQueueRequest,
|
|
1709
1688
|
output: GetMetricsQueueResponse,
|
|
1710
1689
|
errors: [],
|
|
@@ -1722,21 +1701,20 @@ export interface StartPurgeRequest {
|
|
|
1722
1701
|
deleteMessagesPermanently?: boolean;
|
|
1723
1702
|
}
|
|
1724
1703
|
|
|
1725
|
-
export const StartPurgeRequest = /*@__PURE__*/
|
|
1726
|
-
(
|
|
1727
|
-
Schema.
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
),
|
|
1704
|
+
export const StartPurgeRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
1705
|
+
Schema.Struct({
|
|
1706
|
+
queueId: Schema.String.pipe(T.HttpPath("queueId")),
|
|
1707
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1708
|
+
deleteMessagesPermanently: Schema.optional(Schema.Boolean),
|
|
1709
|
+
}).pipe(
|
|
1710
|
+
Schema.encodeKeys({
|
|
1711
|
+
deleteMessagesPermanently: "delete_messages_permanently",
|
|
1712
|
+
}),
|
|
1713
|
+
T.Http({
|
|
1714
|
+
method: "POST",
|
|
1715
|
+
path: "/accounts/{account_id}/queues/{queueId}/purge",
|
|
1716
|
+
}),
|
|
1717
|
+
),
|
|
1740
1718
|
) as unknown as Schema.Codec<StartPurgeRequest>;
|
|
1741
1719
|
|
|
1742
1720
|
export interface StartPurgeResponse {
|
|
@@ -1791,49 +1769,48 @@ export interface StartPurgeResponse {
|
|
|
1791
1769
|
} | null;
|
|
1792
1770
|
}
|
|
1793
1771
|
|
|
1794
|
-
export const StartPurgeResponse = /*@__PURE__*/
|
|
1795
|
-
(
|
|
1796
|
-
Schema.
|
|
1797
|
-
|
|
1798
|
-
Schema.
|
|
1799
|
-
Schema.
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
Schema.Union([
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
.
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
.pipe(T.ResponsePath("result")),
|
|
1772
|
+
export const StartPurgeResponse = /*@__PURE__*/ Schema.suspend(() =>
|
|
1773
|
+
Schema.Struct({
|
|
1774
|
+
consumers: Schema.optional(
|
|
1775
|
+
Schema.Union([
|
|
1776
|
+
Schema.Array(
|
|
1777
|
+
Schema.Union([MqWorkerConsumerResponse2, MqHTTPConsumerResponse]),
|
|
1778
|
+
),
|
|
1779
|
+
Schema.Null,
|
|
1780
|
+
]),
|
|
1781
|
+
),
|
|
1782
|
+
consumersTotalCount: Schema.optional(
|
|
1783
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
1784
|
+
),
|
|
1785
|
+
createdOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1786
|
+
modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1787
|
+
producers: Schema.optional(
|
|
1788
|
+
Schema.Union([
|
|
1789
|
+
Schema.Array(Schema.Union([MqWorkerProducer, MqR2Producer])),
|
|
1790
|
+
Schema.Null,
|
|
1791
|
+
]),
|
|
1792
|
+
),
|
|
1793
|
+
producersTotalCount: Schema.optional(
|
|
1794
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
1795
|
+
),
|
|
1796
|
+
queueId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1797
|
+
queueName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1798
|
+
settings: Schema.optional(Schema.Union([Settings4, Schema.Null])),
|
|
1799
|
+
})
|
|
1800
|
+
.pipe(
|
|
1801
|
+
Schema.encodeKeys({
|
|
1802
|
+
consumers: "consumers",
|
|
1803
|
+
consumersTotalCount: "consumers_total_count",
|
|
1804
|
+
createdOn: "created_on",
|
|
1805
|
+
modifiedOn: "modified_on",
|
|
1806
|
+
producers: "producers",
|
|
1807
|
+
producersTotalCount: "producers_total_count",
|
|
1808
|
+
queueId: "queue_id",
|
|
1809
|
+
queueName: "queue_name",
|
|
1810
|
+
settings: "settings",
|
|
1811
|
+
}),
|
|
1812
|
+
)
|
|
1813
|
+
.pipe(T.ResponsePath("result")),
|
|
1837
1814
|
) as unknown as Schema.Codec<StartPurgeResponse>;
|
|
1838
1815
|
|
|
1839
1816
|
export type StartPurgeError = DefaultErrors | InvalidQueueId | InvalidRoute;
|
|
@@ -1843,7 +1820,7 @@ export const startPurge: API.OperationMethod<
|
|
|
1843
1820
|
StartPurgeResponse,
|
|
1844
1821
|
StartPurgeError,
|
|
1845
1822
|
Credentials | HttpClient.HttpClient
|
|
1846
|
-
> = /*@__PURE__*/
|
|
1823
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1847
1824
|
input: StartPurgeRequest,
|
|
1848
1825
|
output: StartPurgeResponse,
|
|
1849
1826
|
errors: [InvalidQueueId, InvalidRoute],
|
|
@@ -1855,17 +1832,16 @@ export interface StatusPurgeRequest {
|
|
|
1855
1832
|
accountId: string;
|
|
1856
1833
|
}
|
|
1857
1834
|
|
|
1858
|
-
export const StatusPurgeRequest = /*@__PURE__*/
|
|
1859
|
-
(
|
|
1860
|
-
Schema.
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
),
|
|
1835
|
+
export const StatusPurgeRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
1836
|
+
Schema.Struct({
|
|
1837
|
+
queueId: Schema.String.pipe(T.HttpPath("queueId")),
|
|
1838
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1839
|
+
}).pipe(
|
|
1840
|
+
T.Http({
|
|
1841
|
+
method: "GET",
|
|
1842
|
+
path: "/accounts/{account_id}/queues/{queueId}/purge",
|
|
1843
|
+
}),
|
|
1844
|
+
),
|
|
1869
1845
|
) as unknown as Schema.Codec<StatusPurgeRequest>;
|
|
1870
1846
|
|
|
1871
1847
|
export interface StatusPurgeResponse {
|
|
@@ -1875,16 +1851,15 @@ export interface StatusPurgeResponse {
|
|
|
1875
1851
|
startedAt?: string | null;
|
|
1876
1852
|
}
|
|
1877
1853
|
|
|
1878
|
-
export const StatusPurgeResponse = /*@__PURE__*/
|
|
1879
|
-
(
|
|
1880
|
-
Schema.
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
.
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
.pipe(T.ResponsePath("result")),
|
|
1854
|
+
export const StatusPurgeResponse = /*@__PURE__*/ Schema.suspend(() =>
|
|
1855
|
+
Schema.Struct({
|
|
1856
|
+
completed: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1857
|
+
startedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1858
|
+
})
|
|
1859
|
+
.pipe(
|
|
1860
|
+
Schema.encodeKeys({ completed: "completed", startedAt: "started_at" }),
|
|
1861
|
+
)
|
|
1862
|
+
.pipe(T.ResponsePath("result")),
|
|
1888
1863
|
) as unknown as Schema.Codec<StatusPurgeResponse>;
|
|
1889
1864
|
|
|
1890
1865
|
export type StatusPurgeError = DefaultErrors | InvalidQueueId | InvalidRoute;
|
|
@@ -1894,7 +1869,7 @@ export const statusPurge: API.OperationMethod<
|
|
|
1894
1869
|
StatusPurgeResponse,
|
|
1895
1870
|
StatusPurgeError,
|
|
1896
1871
|
Credentials | HttpClient.HttpClient
|
|
1897
|
-
> = /*@__PURE__*/
|
|
1872
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1898
1873
|
input: StatusPurgeRequest,
|
|
1899
1874
|
output: StatusPurgeResponse,
|
|
1900
1875
|
errors: [InvalidQueueId, InvalidRoute],
|
|
@@ -1910,7 +1885,7 @@ export interface GetQueueRequest {
|
|
|
1910
1885
|
accountId: string;
|
|
1911
1886
|
}
|
|
1912
1887
|
|
|
1913
|
-
export const GetQueueRequest = /*@__PURE__*/
|
|
1888
|
+
export const GetQueueRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
1914
1889
|
Schema.Struct({
|
|
1915
1890
|
queueId: Schema.String.pipe(T.HttpPath("queueId")),
|
|
1916
1891
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
@@ -1971,7 +1946,7 @@ export interface GetQueueResponse {
|
|
|
1971
1946
|
} | null;
|
|
1972
1947
|
}
|
|
1973
1948
|
|
|
1974
|
-
export const GetQueueResponse = /*@__PURE__*/
|
|
1949
|
+
export const GetQueueResponse = /*@__PURE__*/ Schema.suspend(() =>
|
|
1975
1950
|
Schema.Struct({
|
|
1976
1951
|
consumers: Schema.optional(
|
|
1977
1952
|
Schema.Union([
|
|
@@ -2022,7 +1997,7 @@ export const getQueue: API.OperationMethod<
|
|
|
2022
1997
|
GetQueueResponse,
|
|
2023
1998
|
GetQueueError,
|
|
2024
1999
|
Credentials | HttpClient.HttpClient
|
|
2025
|
-
> = /*@__PURE__*/
|
|
2000
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2026
2001
|
input: GetQueueRequest,
|
|
2027
2002
|
output: GetQueueResponse,
|
|
2028
2003
|
errors: [QueueNotFound, InvalidRoute],
|
|
@@ -2033,11 +2008,10 @@ export interface ListQueuesRequest {
|
|
|
2033
2008
|
accountId: string;
|
|
2034
2009
|
}
|
|
2035
2010
|
|
|
2036
|
-
export const ListQueuesRequest = /*@__PURE__*/
|
|
2037
|
-
(
|
|
2038
|
-
Schema.
|
|
2039
|
-
|
|
2040
|
-
}).pipe(T.Http({ method: "GET", path: "/accounts/{account_id}/queues" })),
|
|
2011
|
+
export const ListQueuesRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
2012
|
+
Schema.Struct({
|
|
2013
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
2014
|
+
}).pipe(T.Http({ method: "GET", path: "/accounts/{account_id}/queues" })),
|
|
2041
2015
|
) as unknown as Schema.Codec<ListQueuesRequest>;
|
|
2042
2016
|
|
|
2043
2017
|
export interface ListQueuesResponse {
|
|
@@ -2094,11 +2068,10 @@ export interface ListQueuesResponse {
|
|
|
2094
2068
|
}[];
|
|
2095
2069
|
}
|
|
2096
2070
|
|
|
2097
|
-
export const ListQueuesResponse = /*@__PURE__*/
|
|
2098
|
-
(
|
|
2099
|
-
Schema.
|
|
2100
|
-
|
|
2101
|
-
}),
|
|
2071
|
+
export const ListQueuesResponse = /*@__PURE__*/ Schema.suspend(() =>
|
|
2072
|
+
Schema.Struct({
|
|
2073
|
+
result: Schema.Array(ListQueuesResponseResult),
|
|
2074
|
+
}),
|
|
2102
2075
|
) as unknown as Schema.Codec<ListQueuesResponse>;
|
|
2103
2076
|
|
|
2104
2077
|
export type ListQueuesError = DefaultErrors | InvalidRoute;
|
|
@@ -2108,7 +2081,7 @@ export const listQueues: API.PaginatedOperationMethod<
|
|
|
2108
2081
|
ListQueuesResponse,
|
|
2109
2082
|
ListQueuesError,
|
|
2110
2083
|
Credentials | HttpClient.HttpClient
|
|
2111
|
-
> = /*@__PURE__*/
|
|
2084
|
+
> = /*@__PURE__*/ API.makePaginated(() => ({
|
|
2112
2085
|
input: ListQueuesRequest,
|
|
2113
2086
|
output: ListQueuesResponse,
|
|
2114
2087
|
errors: [InvalidRoute],
|
|
@@ -2125,15 +2098,14 @@ export interface CreateQueueRequest {
|
|
|
2125
2098
|
queueName: string;
|
|
2126
2099
|
}
|
|
2127
2100
|
|
|
2128
|
-
export const CreateQueueRequest = /*@__PURE__*/
|
|
2129
|
-
(
|
|
2130
|
-
Schema.
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
})
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
),
|
|
2101
|
+
export const CreateQueueRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
2102
|
+
Schema.Struct({
|
|
2103
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
2104
|
+
queueName: Schema.String,
|
|
2105
|
+
}).pipe(
|
|
2106
|
+
Schema.encodeKeys({ queueName: "queue_name" }),
|
|
2107
|
+
T.Http({ method: "POST", path: "/accounts/{account_id}/queues" }),
|
|
2108
|
+
),
|
|
2137
2109
|
) as unknown as Schema.Codec<CreateQueueRequest>;
|
|
2138
2110
|
|
|
2139
2111
|
export interface CreateQueueResponse {
|
|
@@ -2188,49 +2160,48 @@ export interface CreateQueueResponse {
|
|
|
2188
2160
|
} | null;
|
|
2189
2161
|
}
|
|
2190
2162
|
|
|
2191
|
-
export const CreateQueueResponse = /*@__PURE__*/
|
|
2192
|
-
(
|
|
2193
|
-
Schema.
|
|
2194
|
-
|
|
2195
|
-
Schema.
|
|
2196
|
-
Schema.
|
|
2197
|
-
|
|
2198
|
-
|
|
2199
|
-
|
|
2200
|
-
|
|
2201
|
-
|
|
2202
|
-
|
|
2203
|
-
|
|
2204
|
-
|
|
2205
|
-
|
|
2206
|
-
|
|
2207
|
-
|
|
2208
|
-
Schema.Union([
|
|
2209
|
-
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
|
|
2213
|
-
|
|
2214
|
-
|
|
2215
|
-
|
|
2216
|
-
|
|
2217
|
-
|
|
2218
|
-
|
|
2219
|
-
|
|
2220
|
-
.
|
|
2221
|
-
|
|
2222
|
-
|
|
2223
|
-
|
|
2224
|
-
|
|
2225
|
-
|
|
2226
|
-
|
|
2227
|
-
|
|
2228
|
-
|
|
2229
|
-
|
|
2230
|
-
|
|
2231
|
-
|
|
2232
|
-
|
|
2233
|
-
.pipe(T.ResponsePath("result")),
|
|
2163
|
+
export const CreateQueueResponse = /*@__PURE__*/ Schema.suspend(() =>
|
|
2164
|
+
Schema.Struct({
|
|
2165
|
+
consumers: Schema.optional(
|
|
2166
|
+
Schema.Union([
|
|
2167
|
+
Schema.Array(
|
|
2168
|
+
Schema.Union([MqWorkerConsumerResponse2, MqHTTPConsumerResponse]),
|
|
2169
|
+
),
|
|
2170
|
+
Schema.Null,
|
|
2171
|
+
]),
|
|
2172
|
+
),
|
|
2173
|
+
consumersTotalCount: Schema.optional(
|
|
2174
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
2175
|
+
),
|
|
2176
|
+
createdOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2177
|
+
modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2178
|
+
producers: Schema.optional(
|
|
2179
|
+
Schema.Union([
|
|
2180
|
+
Schema.Array(Schema.Union([MqWorkerProducer, MqR2Producer])),
|
|
2181
|
+
Schema.Null,
|
|
2182
|
+
]),
|
|
2183
|
+
),
|
|
2184
|
+
producersTotalCount: Schema.optional(
|
|
2185
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
2186
|
+
),
|
|
2187
|
+
queueId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2188
|
+
queueName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2189
|
+
settings: Schema.optional(Schema.Union([Settings4, Schema.Null])),
|
|
2190
|
+
})
|
|
2191
|
+
.pipe(
|
|
2192
|
+
Schema.encodeKeys({
|
|
2193
|
+
consumers: "consumers",
|
|
2194
|
+
consumersTotalCount: "consumers_total_count",
|
|
2195
|
+
createdOn: "created_on",
|
|
2196
|
+
modifiedOn: "modified_on",
|
|
2197
|
+
producers: "producers",
|
|
2198
|
+
producersTotalCount: "producers_total_count",
|
|
2199
|
+
queueId: "queue_id",
|
|
2200
|
+
queueName: "queue_name",
|
|
2201
|
+
settings: "settings",
|
|
2202
|
+
}),
|
|
2203
|
+
)
|
|
2204
|
+
.pipe(T.ResponsePath("result")),
|
|
2234
2205
|
) as unknown as Schema.Codec<CreateQueueResponse>;
|
|
2235
2206
|
|
|
2236
2207
|
export type CreateQueueError =
|
|
@@ -2244,7 +2215,7 @@ export const createQueue: API.OperationMethod<
|
|
|
2244
2215
|
CreateQueueResponse,
|
|
2245
2216
|
CreateQueueError,
|
|
2246
2217
|
Credentials | HttpClient.HttpClient
|
|
2247
|
-
> = /*@__PURE__*/
|
|
2218
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2248
2219
|
input: CreateQueueRequest,
|
|
2249
2220
|
output: CreateQueueResponse,
|
|
2250
2221
|
errors: [QueueAlreadyExists, InvalidQueueName, InvalidRoute],
|
|
@@ -2264,20 +2235,19 @@ export interface UpdateQueueRequest {
|
|
|
2264
2235
|
};
|
|
2265
2236
|
}
|
|
2266
2237
|
|
|
2267
|
-
export const UpdateQueueRequest = /*@__PURE__*/
|
|
2268
|
-
(
|
|
2269
|
-
Schema.
|
|
2270
|
-
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
})
|
|
2275
|
-
|
|
2276
|
-
|
|
2277
|
-
|
|
2278
|
-
|
|
2279
|
-
|
|
2280
|
-
),
|
|
2238
|
+
export const UpdateQueueRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
2239
|
+
Schema.Struct({
|
|
2240
|
+
queueId: Schema.String.pipe(T.HttpPath("queueId")),
|
|
2241
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
2242
|
+
queueName: Schema.optional(Schema.String),
|
|
2243
|
+
settings: Schema.optional(Settings4),
|
|
2244
|
+
}).pipe(
|
|
2245
|
+
Schema.encodeKeys({ queueName: "queue_name", settings: "settings" }),
|
|
2246
|
+
T.Http({
|
|
2247
|
+
method: "PUT",
|
|
2248
|
+
path: "/accounts/{account_id}/queues/{queueId}",
|
|
2249
|
+
}),
|
|
2250
|
+
),
|
|
2281
2251
|
) as unknown as Schema.Codec<UpdateQueueRequest>;
|
|
2282
2252
|
|
|
2283
2253
|
export interface UpdateQueueResponse {
|
|
@@ -2332,49 +2302,48 @@ export interface UpdateQueueResponse {
|
|
|
2332
2302
|
} | null;
|
|
2333
2303
|
}
|
|
2334
2304
|
|
|
2335
|
-
export const UpdateQueueResponse = /*@__PURE__*/
|
|
2336
|
-
(
|
|
2337
|
-
Schema.
|
|
2338
|
-
|
|
2339
|
-
Schema.
|
|
2340
|
-
Schema.
|
|
2341
|
-
|
|
2342
|
-
|
|
2343
|
-
|
|
2344
|
-
|
|
2345
|
-
|
|
2346
|
-
|
|
2347
|
-
|
|
2348
|
-
|
|
2349
|
-
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
Schema.Union([
|
|
2353
|
-
|
|
2354
|
-
|
|
2355
|
-
|
|
2356
|
-
|
|
2357
|
-
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
|
|
2362
|
-
|
|
2363
|
-
|
|
2364
|
-
.
|
|
2365
|
-
|
|
2366
|
-
|
|
2367
|
-
|
|
2368
|
-
|
|
2369
|
-
|
|
2370
|
-
|
|
2371
|
-
|
|
2372
|
-
|
|
2373
|
-
|
|
2374
|
-
|
|
2375
|
-
|
|
2376
|
-
|
|
2377
|
-
.pipe(T.ResponsePath("result")),
|
|
2305
|
+
export const UpdateQueueResponse = /*@__PURE__*/ Schema.suspend(() =>
|
|
2306
|
+
Schema.Struct({
|
|
2307
|
+
consumers: Schema.optional(
|
|
2308
|
+
Schema.Union([
|
|
2309
|
+
Schema.Array(
|
|
2310
|
+
Schema.Union([MqWorkerConsumerResponse2, MqHTTPConsumerResponse]),
|
|
2311
|
+
),
|
|
2312
|
+
Schema.Null,
|
|
2313
|
+
]),
|
|
2314
|
+
),
|
|
2315
|
+
consumersTotalCount: Schema.optional(
|
|
2316
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
2317
|
+
),
|
|
2318
|
+
createdOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2319
|
+
modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2320
|
+
producers: Schema.optional(
|
|
2321
|
+
Schema.Union([
|
|
2322
|
+
Schema.Array(Schema.Union([MqWorkerProducer, MqR2Producer])),
|
|
2323
|
+
Schema.Null,
|
|
2324
|
+
]),
|
|
2325
|
+
),
|
|
2326
|
+
producersTotalCount: Schema.optional(
|
|
2327
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
2328
|
+
),
|
|
2329
|
+
queueId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2330
|
+
queueName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2331
|
+
settings: Schema.optional(Schema.Union([Settings4, Schema.Null])),
|
|
2332
|
+
})
|
|
2333
|
+
.pipe(
|
|
2334
|
+
Schema.encodeKeys({
|
|
2335
|
+
consumers: "consumers",
|
|
2336
|
+
consumersTotalCount: "consumers_total_count",
|
|
2337
|
+
createdOn: "created_on",
|
|
2338
|
+
modifiedOn: "modified_on",
|
|
2339
|
+
producers: "producers",
|
|
2340
|
+
producersTotalCount: "producers_total_count",
|
|
2341
|
+
queueId: "queue_id",
|
|
2342
|
+
queueName: "queue_name",
|
|
2343
|
+
settings: "settings",
|
|
2344
|
+
}),
|
|
2345
|
+
)
|
|
2346
|
+
.pipe(T.ResponsePath("result")),
|
|
2378
2347
|
) as unknown as Schema.Codec<UpdateQueueResponse>;
|
|
2379
2348
|
|
|
2380
2349
|
export type UpdateQueueError =
|
|
@@ -2388,7 +2357,7 @@ export const updateQueue: API.OperationMethod<
|
|
|
2388
2357
|
UpdateQueueResponse,
|
|
2389
2358
|
UpdateQueueError,
|
|
2390
2359
|
Credentials | HttpClient.HttpClient
|
|
2391
|
-
> = /*@__PURE__*/
|
|
2360
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2392
2361
|
input: UpdateQueueRequest,
|
|
2393
2362
|
output: UpdateQueueResponse,
|
|
2394
2363
|
errors: [InvalidQueueName, QueueNotFound, InvalidRoute],
|
|
@@ -2408,20 +2377,19 @@ export interface PatchQueueRequest {
|
|
|
2408
2377
|
};
|
|
2409
2378
|
}
|
|
2410
2379
|
|
|
2411
|
-
export const PatchQueueRequest = /*@__PURE__*/
|
|
2412
|
-
(
|
|
2413
|
-
Schema.
|
|
2414
|
-
|
|
2415
|
-
|
|
2416
|
-
|
|
2417
|
-
|
|
2418
|
-
})
|
|
2419
|
-
|
|
2420
|
-
|
|
2421
|
-
|
|
2422
|
-
|
|
2423
|
-
|
|
2424
|
-
),
|
|
2380
|
+
export const PatchQueueRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
2381
|
+
Schema.Struct({
|
|
2382
|
+
queueId: Schema.String.pipe(T.HttpPath("queueId")),
|
|
2383
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
2384
|
+
queueName: Schema.optional(Schema.String),
|
|
2385
|
+
settings: Schema.optional(Settings4),
|
|
2386
|
+
}).pipe(
|
|
2387
|
+
Schema.encodeKeys({ queueName: "queue_name", settings: "settings" }),
|
|
2388
|
+
T.Http({
|
|
2389
|
+
method: "PATCH",
|
|
2390
|
+
path: "/accounts/{account_id}/queues/{queueId}",
|
|
2391
|
+
}),
|
|
2392
|
+
),
|
|
2425
2393
|
) as unknown as Schema.Codec<PatchQueueRequest>;
|
|
2426
2394
|
|
|
2427
2395
|
export interface PatchQueueResponse {
|
|
@@ -2476,49 +2444,48 @@ export interface PatchQueueResponse {
|
|
|
2476
2444
|
} | null;
|
|
2477
2445
|
}
|
|
2478
2446
|
|
|
2479
|
-
export const PatchQueueResponse = /*@__PURE__*/
|
|
2480
|
-
(
|
|
2481
|
-
Schema.
|
|
2482
|
-
|
|
2483
|
-
Schema.
|
|
2484
|
-
Schema.
|
|
2485
|
-
|
|
2486
|
-
|
|
2487
|
-
|
|
2488
|
-
|
|
2489
|
-
|
|
2490
|
-
|
|
2491
|
-
|
|
2492
|
-
|
|
2493
|
-
|
|
2494
|
-
|
|
2495
|
-
|
|
2496
|
-
Schema.Union([
|
|
2497
|
-
|
|
2498
|
-
|
|
2499
|
-
|
|
2500
|
-
|
|
2501
|
-
|
|
2502
|
-
|
|
2503
|
-
|
|
2504
|
-
|
|
2505
|
-
|
|
2506
|
-
|
|
2507
|
-
|
|
2508
|
-
.
|
|
2509
|
-
|
|
2510
|
-
|
|
2511
|
-
|
|
2512
|
-
|
|
2513
|
-
|
|
2514
|
-
|
|
2515
|
-
|
|
2516
|
-
|
|
2517
|
-
|
|
2518
|
-
|
|
2519
|
-
|
|
2520
|
-
|
|
2521
|
-
.pipe(T.ResponsePath("result")),
|
|
2447
|
+
export const PatchQueueResponse = /*@__PURE__*/ Schema.suspend(() =>
|
|
2448
|
+
Schema.Struct({
|
|
2449
|
+
consumers: Schema.optional(
|
|
2450
|
+
Schema.Union([
|
|
2451
|
+
Schema.Array(
|
|
2452
|
+
Schema.Union([MqWorkerConsumerResponse2, MqHTTPConsumerResponse]),
|
|
2453
|
+
),
|
|
2454
|
+
Schema.Null,
|
|
2455
|
+
]),
|
|
2456
|
+
),
|
|
2457
|
+
consumersTotalCount: Schema.optional(
|
|
2458
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
2459
|
+
),
|
|
2460
|
+
createdOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2461
|
+
modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2462
|
+
producers: Schema.optional(
|
|
2463
|
+
Schema.Union([
|
|
2464
|
+
Schema.Array(Schema.Union([MqWorkerProducer, MqR2Producer])),
|
|
2465
|
+
Schema.Null,
|
|
2466
|
+
]),
|
|
2467
|
+
),
|
|
2468
|
+
producersTotalCount: Schema.optional(
|
|
2469
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
2470
|
+
),
|
|
2471
|
+
queueId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2472
|
+
queueName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2473
|
+
settings: Schema.optional(Schema.Union([Settings4, Schema.Null])),
|
|
2474
|
+
})
|
|
2475
|
+
.pipe(
|
|
2476
|
+
Schema.encodeKeys({
|
|
2477
|
+
consumers: "consumers",
|
|
2478
|
+
consumersTotalCount: "consumers_total_count",
|
|
2479
|
+
createdOn: "created_on",
|
|
2480
|
+
modifiedOn: "modified_on",
|
|
2481
|
+
producers: "producers",
|
|
2482
|
+
producersTotalCount: "producers_total_count",
|
|
2483
|
+
queueId: "queue_id",
|
|
2484
|
+
queueName: "queue_name",
|
|
2485
|
+
settings: "settings",
|
|
2486
|
+
}),
|
|
2487
|
+
)
|
|
2488
|
+
.pipe(T.ResponsePath("result")),
|
|
2522
2489
|
) as unknown as Schema.Codec<PatchQueueResponse>;
|
|
2523
2490
|
|
|
2524
2491
|
export type PatchQueueError = DefaultErrors | QueueNotFound | InvalidRoute;
|
|
@@ -2528,7 +2495,7 @@ export const patchQueue: API.OperationMethod<
|
|
|
2528
2495
|
PatchQueueResponse,
|
|
2529
2496
|
PatchQueueError,
|
|
2530
2497
|
Credentials | HttpClient.HttpClient
|
|
2531
|
-
> = /*@__PURE__*/
|
|
2498
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2532
2499
|
input: PatchQueueRequest,
|
|
2533
2500
|
output: PatchQueueResponse,
|
|
2534
2501
|
errors: [QueueNotFound, InvalidRoute],
|
|
@@ -2540,17 +2507,16 @@ export interface DeleteQueueRequest {
|
|
|
2540
2507
|
accountId: string;
|
|
2541
2508
|
}
|
|
2542
2509
|
|
|
2543
|
-
export const DeleteQueueRequest = /*@__PURE__*/
|
|
2544
|
-
(
|
|
2545
|
-
Schema.
|
|
2546
|
-
|
|
2547
|
-
|
|
2548
|
-
|
|
2549
|
-
|
|
2550
|
-
|
|
2551
|
-
|
|
2552
|
-
|
|
2553
|
-
),
|
|
2510
|
+
export const DeleteQueueRequest = /*@__PURE__*/ Schema.suspend(() =>
|
|
2511
|
+
Schema.Struct({
|
|
2512
|
+
queueId: Schema.String.pipe(T.HttpPath("queueId")),
|
|
2513
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
2514
|
+
}).pipe(
|
|
2515
|
+
T.Http({
|
|
2516
|
+
method: "DELETE",
|
|
2517
|
+
path: "/accounts/{account_id}/queues/{queueId}",
|
|
2518
|
+
}),
|
|
2519
|
+
),
|
|
2554
2520
|
) as unknown as Schema.Codec<DeleteQueueRequest>;
|
|
2555
2521
|
|
|
2556
2522
|
export interface DeleteQueueResponse {
|
|
@@ -2567,19 +2533,16 @@ export interface DeleteQueueResponse {
|
|
|
2567
2533
|
success?: true | null;
|
|
2568
2534
|
}
|
|
2569
2535
|
|
|
2570
|
-
export const DeleteQueueResponse = /*@__PURE__*/
|
|
2571
|
-
(
|
|
2572
|
-
Schema.
|
|
2573
|
-
|
|
2574
|
-
|
|
2575
|
-
|
|
2576
|
-
|
|
2577
|
-
|
|
2578
|
-
|
|
2579
|
-
|
|
2580
|
-
Schema.Union([Schema.Literal(true), Schema.Null]),
|
|
2581
|
-
),
|
|
2582
|
-
}),
|
|
2536
|
+
export const DeleteQueueResponse = /*@__PURE__*/ Schema.suspend(() =>
|
|
2537
|
+
Schema.Struct({
|
|
2538
|
+
errors: Schema.optional(
|
|
2539
|
+
Schema.Union([Schema.Array(ResponseInfo), Schema.Null]),
|
|
2540
|
+
),
|
|
2541
|
+
messages: Schema.optional(
|
|
2542
|
+
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
2543
|
+
),
|
|
2544
|
+
success: Schema.optional(Schema.Union([Schema.Literal(true), Schema.Null])),
|
|
2545
|
+
}),
|
|
2583
2546
|
) as unknown as Schema.Codec<DeleteQueueResponse>;
|
|
2584
2547
|
|
|
2585
2548
|
export type DeleteQueueError =
|
|
@@ -2593,7 +2556,7 @@ export const deleteQueue: API.OperationMethod<
|
|
|
2593
2556
|
DeleteQueueResponse,
|
|
2594
2557
|
DeleteQueueError,
|
|
2595
2558
|
Credentials | HttpClient.HttpClient
|
|
2596
|
-
> = /*@__PURE__*/
|
|
2559
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2597
2560
|
input: DeleteQueueRequest,
|
|
2598
2561
|
output: DeleteQueueResponse,
|
|
2599
2562
|
errors: [QueueNotFound, QueueInUseByEventNotification, InvalidRoute],
|
|
@@ -2610,7 +2573,7 @@ export interface GetSubscriptionRequest {
|
|
|
2610
2573
|
}
|
|
2611
2574
|
|
|
2612
2575
|
export const GetSubscriptionRequest =
|
|
2613
|
-
/*@__PURE__*/
|
|
2576
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
2614
2577
|
Schema.Struct({
|
|
2615
2578
|
subscriptionId: Schema.String.pipe(T.HttpPath("subscriptionId")),
|
|
2616
2579
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
@@ -2650,7 +2613,7 @@ export interface GetSubscriptionResponse {
|
|
|
2650
2613
|
}
|
|
2651
2614
|
|
|
2652
2615
|
export const GetSubscriptionResponse =
|
|
2653
|
-
/*@__PURE__*/
|
|
2616
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
2654
2617
|
Schema.Struct({
|
|
2655
2618
|
id: Schema.String,
|
|
2656
2619
|
createdAt: Schema.String,
|
|
@@ -2696,7 +2659,7 @@ export const getSubscription: API.OperationMethod<
|
|
|
2696
2659
|
GetSubscriptionResponse,
|
|
2697
2660
|
GetSubscriptionError,
|
|
2698
2661
|
Credentials | HttpClient.HttpClient
|
|
2699
|
-
> = /*@__PURE__*/
|
|
2662
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2700
2663
|
input: GetSubscriptionRequest,
|
|
2701
2664
|
output: GetSubscriptionResponse,
|
|
2702
2665
|
errors: [UnrecognizedEventType, SubscriptionNotFound, Forbidden],
|
|
@@ -2714,7 +2677,7 @@ export interface ListSubscriptionsRequest {
|
|
|
2714
2677
|
}
|
|
2715
2678
|
|
|
2716
2679
|
export const ListSubscriptionsRequest =
|
|
2717
|
-
/*@__PURE__*/
|
|
2680
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
2718
2681
|
Schema.Struct({
|
|
2719
2682
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
2720
2683
|
page: Schema.optional(Schema.Number).pipe(T.HttpQuery("page")),
|
|
@@ -2764,7 +2727,7 @@ export interface ListSubscriptionsResponse {
|
|
|
2764
2727
|
}
|
|
2765
2728
|
|
|
2766
2729
|
export const ListSubscriptionsResponse =
|
|
2767
|
-
/*@__PURE__*/
|
|
2730
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
2768
2731
|
Schema.Struct({
|
|
2769
2732
|
result: Schema.Array(ListSubscriptionsResponseResult),
|
|
2770
2733
|
resultInfo: Schema.optional(
|
|
@@ -2780,7 +2743,7 @@ export const listSubscriptions: API.PaginatedOperationMethod<
|
|
|
2780
2743
|
ListSubscriptionsResponse,
|
|
2781
2744
|
ListSubscriptionsError,
|
|
2782
2745
|
Credentials | HttpClient.HttpClient
|
|
2783
|
-
> = /*@__PURE__*/
|
|
2746
|
+
> = /*@__PURE__*/ API.makePaginated(() => ({
|
|
2784
2747
|
input: ListSubscriptionsRequest,
|
|
2785
2748
|
output: ListSubscriptionsResponse,
|
|
2786
2749
|
errors: [Forbidden],
|
|
@@ -2817,7 +2780,7 @@ export interface CreateSubscriptionRequest {
|
|
|
2817
2780
|
}
|
|
2818
2781
|
|
|
2819
2782
|
export const CreateSubscriptionRequest =
|
|
2820
|
-
/*@__PURE__*/
|
|
2783
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
2821
2784
|
Schema.Struct({
|
|
2822
2785
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
2823
2786
|
destination: Schema.optional(Destination),
|
|
@@ -2872,7 +2835,7 @@ export interface CreateSubscriptionResponse {
|
|
|
2872
2835
|
}
|
|
2873
2836
|
|
|
2874
2837
|
export const CreateSubscriptionResponse =
|
|
2875
|
-
/*@__PURE__*/
|
|
2838
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
2876
2839
|
Schema.Struct({
|
|
2877
2840
|
id: Schema.String,
|
|
2878
2841
|
createdAt: Schema.String,
|
|
@@ -2918,7 +2881,7 @@ export const createSubscription: API.OperationMethod<
|
|
|
2918
2881
|
CreateSubscriptionResponse,
|
|
2919
2882
|
CreateSubscriptionError,
|
|
2920
2883
|
Credentials | HttpClient.HttpClient
|
|
2921
|
-
> = /*@__PURE__*/
|
|
2884
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2922
2885
|
input: CreateSubscriptionRequest,
|
|
2923
2886
|
output: CreateSubscriptionResponse,
|
|
2924
2887
|
errors: [UnrecognizedEventType, SubscriptionAlreadyExists, QueueNotFound],
|
|
@@ -2939,7 +2902,7 @@ export interface PatchSubscriptionRequest {
|
|
|
2939
2902
|
}
|
|
2940
2903
|
|
|
2941
2904
|
export const PatchSubscriptionRequest =
|
|
2942
|
-
/*@__PURE__*/
|
|
2905
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
2943
2906
|
Schema.Struct({
|
|
2944
2907
|
subscriptionId: Schema.String.pipe(T.HttpPath("subscriptionId")),
|
|
2945
2908
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
@@ -2983,7 +2946,7 @@ export interface PatchSubscriptionResponse {
|
|
|
2983
2946
|
}
|
|
2984
2947
|
|
|
2985
2948
|
export const PatchSubscriptionResponse =
|
|
2986
|
-
/*@__PURE__*/
|
|
2949
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
2987
2950
|
Schema.Struct({
|
|
2988
2951
|
id: Schema.String,
|
|
2989
2952
|
createdAt: Schema.String,
|
|
@@ -3029,7 +2992,7 @@ export const patchSubscription: API.OperationMethod<
|
|
|
3029
2992
|
PatchSubscriptionResponse,
|
|
3030
2993
|
PatchSubscriptionError,
|
|
3031
2994
|
Credentials | HttpClient.HttpClient
|
|
3032
|
-
> = /*@__PURE__*/
|
|
2995
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3033
2996
|
input: PatchSubscriptionRequest,
|
|
3034
2997
|
output: PatchSubscriptionResponse,
|
|
3035
2998
|
errors: [UnrecognizedEventType, SubscriptionNotFound, QueueNotFound],
|
|
@@ -3042,7 +3005,7 @@ export interface DeleteSubscriptionRequest {
|
|
|
3042
3005
|
}
|
|
3043
3006
|
|
|
3044
3007
|
export const DeleteSubscriptionRequest =
|
|
3045
|
-
/*@__PURE__*/
|
|
3008
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
3046
3009
|
Schema.Struct({
|
|
3047
3010
|
subscriptionId: Schema.String.pipe(T.HttpPath("subscriptionId")),
|
|
3048
3011
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
@@ -3082,7 +3045,7 @@ export interface DeleteSubscriptionResponse {
|
|
|
3082
3045
|
}
|
|
3083
3046
|
|
|
3084
3047
|
export const DeleteSubscriptionResponse =
|
|
3085
|
-
/*@__PURE__*/
|
|
3048
|
+
/*@__PURE__*/ Schema.suspend(() =>
|
|
3086
3049
|
Schema.Struct({
|
|
3087
3050
|
id: Schema.String,
|
|
3088
3051
|
createdAt: Schema.String,
|
|
@@ -3127,7 +3090,7 @@ export const deleteSubscription: API.OperationMethod<
|
|
|
3127
3090
|
DeleteSubscriptionResponse,
|
|
3128
3091
|
DeleteSubscriptionError,
|
|
3129
3092
|
Credentials | HttpClient.HttpClient
|
|
3130
|
-
> = /*@__PURE__*/
|
|
3093
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
3131
3094
|
input: DeleteSubscriptionRequest,
|
|
3132
3095
|
output: DeleteSubscriptionResponse,
|
|
3133
3096
|
errors: [UnrecognizedEventType, SubscriptionNotFound],
|