@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/lib/services/accounts.js
CHANGED
|
@@ -83,28 +83,28 @@ export class ValidationError extends T.applyErrorMatchers(Schema.TaggedErrorClas
|
|
|
83
83
|
message: Schema.String,
|
|
84
84
|
}), [{ code: 1001 }]) {
|
|
85
85
|
}
|
|
86
|
-
const ManagedBy = /*@__PURE__*/
|
|
86
|
+
const ManagedBy = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
87
87
|
parentOrgId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
88
88
|
parentOrgName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
89
89
|
}).pipe(Schema.encodeKeys({
|
|
90
90
|
parentOrgId: "parent_org_id",
|
|
91
91
|
parentOrgName: "parent_org_name",
|
|
92
92
|
})));
|
|
93
|
-
const Settings = /*@__PURE__*/
|
|
93
|
+
const Settings = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
94
94
|
abuseContactEmail: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
95
95
|
enforceTwofactor: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
96
96
|
}).pipe(Schema.encodeKeys({
|
|
97
97
|
abuseContactEmail: "abuse_contact_email",
|
|
98
98
|
enforceTwofactor: "enforce_twofactor",
|
|
99
99
|
})));
|
|
100
|
-
const Settings2 = /*@__PURE__*/
|
|
100
|
+
const Settings2 = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
101
101
|
abuseContactEmail: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
102
102
|
enforceTwofactor: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
103
103
|
}).pipe(Schema.encodeKeys({
|
|
104
104
|
abuseContactEmail: "abuse_contact_email",
|
|
105
105
|
enforceTwofactor: "enforce_twofactor",
|
|
106
106
|
})));
|
|
107
|
-
const ListAccountsResponseResult = /*@__PURE__*/
|
|
107
|
+
const ListAccountsResponseResult = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
108
108
|
id: Schema.String,
|
|
109
109
|
name: Schema.String,
|
|
110
110
|
type: Schema.Union([
|
|
@@ -123,7 +123,7 @@ const ListAccountsResponseResult = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(()
|
|
|
123
123
|
settings: "settings",
|
|
124
124
|
})));
|
|
125
125
|
const ListAccountsResponseResultInfo =
|
|
126
|
-
/*@__PURE__*/
|
|
126
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
127
127
|
count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
128
128
|
page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
129
129
|
perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
@@ -134,20 +134,20 @@ const ListAccountsResponseResultInfo =
|
|
|
134
134
|
perPage: "per_page",
|
|
135
135
|
totalCount: "total_count",
|
|
136
136
|
})));
|
|
137
|
-
const Unit = /*@__PURE__*/
|
|
137
|
+
const Unit = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
138
138
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
139
139
|
}));
|
|
140
|
-
const Account = /*@__PURE__*/
|
|
140
|
+
const Account = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
141
141
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
142
142
|
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
143
143
|
}));
|
|
144
|
-
const Action = /*@__PURE__*/
|
|
144
|
+
const Action = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
145
145
|
description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
146
146
|
result: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
147
147
|
time: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
148
148
|
type: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
149
149
|
}));
|
|
150
|
-
const Actor = /*@__PURE__*/
|
|
150
|
+
const Actor = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
151
151
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
152
152
|
context: Schema.optional(Schema.Union([
|
|
153
153
|
Schema.Union([
|
|
@@ -182,7 +182,7 @@ const Actor = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
|
182
182
|
tokenName: "token_name",
|
|
183
183
|
type: "type",
|
|
184
184
|
})));
|
|
185
|
-
const Raw = /*@__PURE__*/
|
|
185
|
+
const Raw = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
186
186
|
cfRayId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
187
187
|
method: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
188
188
|
statusCode: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
@@ -195,7 +195,7 @@ const Raw = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
|
195
195
|
uri: "uri",
|
|
196
196
|
userAgent: "user_agent",
|
|
197
197
|
})));
|
|
198
|
-
const Resource = /*@__PURE__*/
|
|
198
|
+
const Resource = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
199
199
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
200
200
|
product: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
201
201
|
request: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
|
|
@@ -203,7 +203,7 @@ const Resource = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct(
|
|
|
203
203
|
scope: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
|
|
204
204
|
type: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
205
205
|
}));
|
|
206
|
-
const ListLogAuditsResponseResult = /*@__PURE__*/
|
|
206
|
+
const ListLogAuditsResponseResult = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
207
207
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
208
208
|
account: Schema.optional(Schema.Union([Account, Schema.Null])),
|
|
209
209
|
action: Schema.optional(Schema.Union([Action, Schema.Null])),
|
|
@@ -213,17 +213,17 @@ const ListLogAuditsResponseResult = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend((
|
|
|
213
213
|
zone: Schema.optional(Schema.Union([Account, Schema.Null])),
|
|
214
214
|
}));
|
|
215
215
|
const ListLogAuditsResponseResultInfoCursors =
|
|
216
|
-
/*@__PURE__*/
|
|
216
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
217
217
|
after: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
218
218
|
}));
|
|
219
219
|
const ListLogAuditsResponseResultInfo =
|
|
220
|
-
/*@__PURE__*/
|
|
220
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
221
221
|
cursors: Schema.optional(Schema.Union([ListLogAuditsResponseResultInfoCursors, Schema.Null])),
|
|
222
222
|
}));
|
|
223
|
-
const PolicyPermissionGroup = /*@__PURE__*/
|
|
223
|
+
const PolicyPermissionGroup = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
224
224
|
id: Schema.String,
|
|
225
225
|
}));
|
|
226
|
-
const Policy = /*@__PURE__*/
|
|
226
|
+
const Policy = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
227
227
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
228
228
|
access: Schema.optional(Schema.Union([
|
|
229
229
|
Schema.Union([Schema.Literals(["allow", "deny"]), Schema.String]),
|
|
@@ -237,11 +237,11 @@ const Policy = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
|
237
237
|
permissionGroups: "permission_groups",
|
|
238
238
|
resourceGroups: "resource_groups",
|
|
239
239
|
})));
|
|
240
|
-
const PermissionGrant = /*@__PURE__*/
|
|
240
|
+
const PermissionGrant = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
241
241
|
read: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
242
242
|
write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
243
243
|
}));
|
|
244
|
-
const Permissions = /*@__PURE__*/
|
|
244
|
+
const Permissions = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
245
245
|
analytics: Schema.optional(Schema.Union([PermissionGrant, Schema.Null])),
|
|
246
246
|
billing: Schema.optional(Schema.Union([PermissionGrant, Schema.Null])),
|
|
247
247
|
cachePurge: Schema.optional(Schema.Union([PermissionGrant, Schema.Null])),
|
|
@@ -268,13 +268,13 @@ const Permissions = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Stru
|
|
|
268
268
|
zoneSettings: "zone_settings",
|
|
269
269
|
zones: "zones",
|
|
270
270
|
})));
|
|
271
|
-
const Role = /*@__PURE__*/
|
|
271
|
+
const Role = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
272
272
|
id: Schema.String,
|
|
273
273
|
description: Schema.String,
|
|
274
274
|
name: Schema.String,
|
|
275
275
|
permissions: Permissions,
|
|
276
276
|
}));
|
|
277
|
-
const User = /*@__PURE__*/
|
|
277
|
+
const User = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
278
278
|
email: Schema.String,
|
|
279
279
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
280
280
|
firstName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -287,7 +287,7 @@ const User = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
|
287
287
|
lastName: "last_name",
|
|
288
288
|
twoFactorAuthenticationEnabled: "two_factor_authentication_enabled",
|
|
289
289
|
})));
|
|
290
|
-
const Member = /*@__PURE__*/
|
|
290
|
+
const Member = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
291
291
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
292
292
|
email: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
293
293
|
policies: Schema.optional(Schema.Union([Schema.Array(Policy), Schema.Null])),
|
|
@@ -298,7 +298,7 @@ const Member = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
|
298
298
|
])),
|
|
299
299
|
user: Schema.optional(Schema.Union([User, Schema.Null])),
|
|
300
300
|
}));
|
|
301
|
-
const Policy2 = /*@__PURE__*/
|
|
301
|
+
const Policy2 = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
302
302
|
access: Schema.Union([Schema.Literals(["allow", "deny"]), Schema.String]),
|
|
303
303
|
permissionGroups: Schema.Array(PolicyPermissionGroup),
|
|
304
304
|
resourceGroups: Schema.Array(PolicyPermissionGroup),
|
|
@@ -307,7 +307,7 @@ const Policy2 = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
|
307
307
|
permissionGroups: "permission_groups",
|
|
308
308
|
resourceGroups: "resource_groups",
|
|
309
309
|
})));
|
|
310
|
-
const RatePlan = /*@__PURE__*/
|
|
310
|
+
const RatePlan = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
311
311
|
id: Schema.optional(Schema.Union([
|
|
312
312
|
Schema.Union([
|
|
313
313
|
Schema.Literals([
|
|
@@ -341,7 +341,7 @@ const RatePlan = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct(
|
|
|
341
341
|
scope: "scope",
|
|
342
342
|
sets: "sets",
|
|
343
343
|
})));
|
|
344
|
-
const Subscription = /*@__PURE__*/
|
|
344
|
+
const Subscription = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
345
345
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
346
346
|
currency: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
347
347
|
currentPeriodEnd: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -380,23 +380,23 @@ const Subscription = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Str
|
|
|
380
380
|
ratePlan: "rate_plan",
|
|
381
381
|
state: "state",
|
|
382
382
|
})));
|
|
383
|
-
const ConditionRequestIP = /*@__PURE__*/
|
|
383
|
+
const ConditionRequestIP = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
384
384
|
in: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
385
385
|
notIn: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
386
386
|
}).pipe(Schema.encodeKeys({ in: "in", notIn: "not_in" })));
|
|
387
|
-
const Condition = /*@__PURE__*/
|
|
387
|
+
const Condition = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
388
388
|
requestIp: Schema.optional(Schema.Union([ConditionRequestIP, Schema.Null])),
|
|
389
389
|
}).pipe(Schema.encodeKeys({ requestIp: "request_ip" })));
|
|
390
|
-
const Meta = /*@__PURE__*/
|
|
390
|
+
const Meta = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
391
391
|
key: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
392
392
|
value: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
393
393
|
}));
|
|
394
|
-
const PermissionGroup = /*@__PURE__*/
|
|
394
|
+
const PermissionGroup = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
395
395
|
id: Schema.String,
|
|
396
396
|
meta: Schema.optional(Schema.Union([Meta, Schema.Null])),
|
|
397
397
|
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
398
398
|
}));
|
|
399
|
-
const TokenPolicy = /*@__PURE__*/
|
|
399
|
+
const TokenPolicy = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
400
400
|
id: Schema.String,
|
|
401
401
|
effect: Schema.Union([Schema.Literals(["allow", "deny"]), Schema.String]),
|
|
402
402
|
permissionGroups: Schema.Array(PermissionGroup),
|
|
@@ -407,7 +407,7 @@ const TokenPolicy = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Stru
|
|
|
407
407
|
permissionGroups: "permission_groups",
|
|
408
408
|
resources: "resources",
|
|
409
409
|
})));
|
|
410
|
-
const Token = /*@__PURE__*/
|
|
410
|
+
const Token = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
411
411
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
412
412
|
condition: Schema.optional(Schema.Union([Condition, Schema.Null])),
|
|
413
413
|
expiresOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -436,11 +436,11 @@ const Token = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
|
436
436
|
policies: "policies",
|
|
437
437
|
status: "status",
|
|
438
438
|
})));
|
|
439
|
-
const PermissionGroup2 = /*@__PURE__*/
|
|
439
|
+
const PermissionGroup2 = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
440
440
|
id: Schema.String,
|
|
441
441
|
meta: Schema.optional(Schema.Union([Meta, Schema.Null])),
|
|
442
442
|
}));
|
|
443
|
-
const TokenPolicyParam = /*@__PURE__*/
|
|
443
|
+
const TokenPolicyParam = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
444
444
|
effect: Schema.Union([Schema.Literals(["allow", "deny"]), Schema.String]),
|
|
445
445
|
permissionGroups: Schema.Array(PermissionGroup2),
|
|
446
446
|
resources: Schema.Record(Schema.String, Schema.Unknown),
|
|
@@ -450,7 +450,7 @@ const TokenPolicyParam = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema
|
|
|
450
450
|
resources: "resources",
|
|
451
451
|
})));
|
|
452
452
|
const PermissionGroupGetResponseItem =
|
|
453
|
-
/*@__PURE__*/
|
|
453
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
454
454
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
455
455
|
category: Schema.optional(Schema.Union([
|
|
456
456
|
Schema.Union([
|
|
@@ -487,10 +487,10 @@ const PermissionGroupGetResponseItem =
|
|
|
487
487
|
Schema.Null,
|
|
488
488
|
])),
|
|
489
489
|
}));
|
|
490
|
-
export const GetAccountRequest = /*@__PURE__*/
|
|
490
|
+
export const GetAccountRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
491
491
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
492
492
|
}).pipe(T.Http({ method: "GET", path: "/accounts/{account_id}" })));
|
|
493
|
-
export const GetAccountResponse = /*@__PURE__*/
|
|
493
|
+
export const GetAccountResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
494
494
|
id: Schema.String,
|
|
495
495
|
name: Schema.String,
|
|
496
496
|
type: Schema.Union([
|
|
@@ -510,22 +510,22 @@ export const GetAccountResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(()
|
|
|
510
510
|
settings: "settings",
|
|
511
511
|
}))
|
|
512
512
|
.pipe(T.ResponsePath("result")));
|
|
513
|
-
export const getAccount = /*@__PURE__*/
|
|
513
|
+
export const getAccount = /*@__PURE__*/ API.make(() => ({
|
|
514
514
|
input: GetAccountRequest,
|
|
515
515
|
output: GetAccountResponse,
|
|
516
516
|
errors: [InvalidRoute],
|
|
517
517
|
}));
|
|
518
|
-
export const ListAccountsRequest = /*@__PURE__*/
|
|
518
|
+
export const ListAccountsRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
519
519
|
page: Schema.optional(Schema.Number).pipe(T.HttpQuery("page")),
|
|
520
520
|
perPage: Schema.optional(Schema.Number).pipe(T.HttpQuery("per_page")),
|
|
521
521
|
direction: Schema.optional(Schema.Union([Schema.Literals(["asc", "desc"]), Schema.String])).pipe(T.HttpQuery("direction")),
|
|
522
522
|
name: Schema.optional(Schema.String).pipe(T.HttpQuery("name")),
|
|
523
523
|
}).pipe(T.Http({ method: "GET", path: "/accounts" })));
|
|
524
|
-
export const ListAccountsResponse = /*@__PURE__*/
|
|
524
|
+
export const ListAccountsResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
525
525
|
result: Schema.Array(ListAccountsResponseResult),
|
|
526
526
|
resultInfo: Schema.optional(Schema.Union([ListAccountsResponseResultInfo, Schema.Null])),
|
|
527
527
|
}).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" })));
|
|
528
|
-
export const listAccounts = /*@__PURE__*/
|
|
528
|
+
export const listAccounts = /*@__PURE__*/ API.makePaginated(() => ({
|
|
529
529
|
input: ListAccountsRequest,
|
|
530
530
|
output: ListAccountsResponse,
|
|
531
531
|
errors: [],
|
|
@@ -537,7 +537,7 @@ export const listAccounts = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() =>
|
|
|
537
537
|
pageSize: "perPage",
|
|
538
538
|
},
|
|
539
539
|
}));
|
|
540
|
-
export const CreateAccountRequest = /*@__PURE__*/
|
|
540
|
+
export const CreateAccountRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
541
541
|
name: Schema.String,
|
|
542
542
|
type: Schema.optional(Schema.Union([
|
|
543
543
|
Schema.Literals(["standard", "enterprise"]),
|
|
@@ -545,7 +545,7 @@ export const CreateAccountRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend((
|
|
|
545
545
|
])),
|
|
546
546
|
unit: Schema.optional(Unit),
|
|
547
547
|
}).pipe(T.Http({ method: "POST", path: "/accounts" })));
|
|
548
|
-
export const CreateAccountResponse = /*@__PURE__*/
|
|
548
|
+
export const CreateAccountResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
549
549
|
id: Schema.String,
|
|
550
550
|
name: Schema.String,
|
|
551
551
|
type: Schema.Union([
|
|
@@ -565,12 +565,12 @@ export const CreateAccountResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(
|
|
|
565
565
|
settings: "settings",
|
|
566
566
|
}))
|
|
567
567
|
.pipe(T.ResponsePath("result")));
|
|
568
|
-
export const createAccount = /*@__PURE__*/
|
|
568
|
+
export const createAccount = /*@__PURE__*/ API.make(() => ({
|
|
569
569
|
input: CreateAccountRequest,
|
|
570
570
|
output: CreateAccountResponse,
|
|
571
571
|
errors: [AccountCreationForbidden, MissingName],
|
|
572
572
|
}));
|
|
573
|
-
export const UpdateAccountRequest = /*@__PURE__*/
|
|
573
|
+
export const UpdateAccountRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
574
574
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
575
575
|
id: Schema.String,
|
|
576
576
|
name: Schema.String,
|
|
@@ -587,7 +587,7 @@ export const UpdateAccountRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend((
|
|
|
587
587
|
managedBy: "managed_by",
|
|
588
588
|
settings: "settings",
|
|
589
589
|
}), T.Http({ method: "PUT", path: "/accounts/{account_id}" })));
|
|
590
|
-
export const UpdateAccountResponse = /*@__PURE__*/
|
|
590
|
+
export const UpdateAccountResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
591
591
|
id: Schema.String,
|
|
592
592
|
name: Schema.String,
|
|
593
593
|
type: Schema.Union([
|
|
@@ -607,7 +607,7 @@ export const UpdateAccountResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(
|
|
|
607
607
|
settings: "settings",
|
|
608
608
|
}))
|
|
609
609
|
.pipe(T.ResponsePath("result")));
|
|
610
|
-
export const updateAccount = /*@__PURE__*/
|
|
610
|
+
export const updateAccount = /*@__PURE__*/ API.make(() => ({
|
|
611
611
|
input: UpdateAccountRequest,
|
|
612
612
|
output: UpdateAccountResponse,
|
|
613
613
|
errors: [
|
|
@@ -618,18 +618,18 @@ export const updateAccount = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
|
618
618
|
MethodNotAllowed,
|
|
619
619
|
],
|
|
620
620
|
}));
|
|
621
|
-
export const DeleteAccountRequest = /*@__PURE__*/
|
|
621
|
+
export const DeleteAccountRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
622
622
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
623
623
|
}).pipe(T.Http({ method: "DELETE", path: "/accounts/{account_id}" })));
|
|
624
|
-
export const DeleteAccountResponse = /*@__PURE__*/
|
|
624
|
+
export const DeleteAccountResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
625
625
|
id: Schema.String,
|
|
626
626
|
}).pipe(T.ResponsePath("result")));
|
|
627
|
-
export const deleteAccount = /*@__PURE__*/
|
|
627
|
+
export const deleteAccount = /*@__PURE__*/ API.make(() => ({
|
|
628
628
|
input: DeleteAccountRequest,
|
|
629
629
|
output: DeleteAccountResponse,
|
|
630
630
|
errors: [InvalidRoute, MethodNotAllowed],
|
|
631
631
|
}));
|
|
632
|
-
export const ListLogAuditsRequest = /*@__PURE__*/
|
|
632
|
+
export const ListLogAuditsRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
633
633
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
634
634
|
cursor: Schema.optional(Schema.String).pipe(T.HttpQuery("cursor")),
|
|
635
635
|
before: Schema.String.pipe(T.HttpQuery("before")),
|
|
@@ -729,11 +729,11 @@ export const ListLogAuditsRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend((
|
|
|
729
729
|
not: Schema.optional(Schema.Array(Schema.String)),
|
|
730
730
|
})).pipe(T.HttpQuery("zone_name")),
|
|
731
731
|
}).pipe(T.Http({ method: "GET", path: "/accounts/{account_id}/logs/audit" })));
|
|
732
|
-
export const ListLogAuditsResponse = /*@__PURE__*/
|
|
732
|
+
export const ListLogAuditsResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
733
733
|
result: Schema.Array(ListLogAuditsResponseResult),
|
|
734
734
|
resultInfo: Schema.optional(Schema.Union([ListLogAuditsResponseResultInfo, Schema.Null])),
|
|
735
735
|
}).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" })));
|
|
736
|
-
export const listLogAudits = /*@__PURE__*/
|
|
736
|
+
export const listLogAudits = /*@__PURE__*/ API.makePaginated(() => ({
|
|
737
737
|
input: ListLogAuditsRequest,
|
|
738
738
|
output: ListLogAuditsResponse,
|
|
739
739
|
errors: [],
|
|
@@ -744,33 +744,30 @@ export const listLogAudits = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() =>
|
|
|
744
744
|
items: "result",
|
|
745
745
|
},
|
|
746
746
|
}));
|
|
747
|
-
export const GetMemberRequest = /*@__PURE__*/
|
|
747
|
+
export const GetMemberRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
748
748
|
memberId: Schema.String.pipe(T.HttpPath("memberId")),
|
|
749
749
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
750
750
|
}).pipe(T.Http({
|
|
751
751
|
method: "GET",
|
|
752
752
|
path: "/accounts/{account_id}/members/{memberId}",
|
|
753
753
|
})));
|
|
754
|
-
export const GetMemberResponse = /*@__PURE__*/
|
|
754
|
+
export const GetMemberResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
755
755
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
756
756
|
email: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
757
757
|
policies: Schema.optional(Schema.Union([Schema.Array(Policy), Schema.Null])),
|
|
758
758
|
roles: Schema.optional(Schema.Union([Schema.Array(Role), Schema.Null])),
|
|
759
759
|
status: Schema.optional(Schema.Union([
|
|
760
|
-
Schema.Union([
|
|
761
|
-
Schema.Literals(["accepted", "pending"]),
|
|
762
|
-
Schema.String,
|
|
763
|
-
]),
|
|
760
|
+
Schema.Union([Schema.Literals(["accepted", "pending"]), Schema.String]),
|
|
764
761
|
Schema.Null,
|
|
765
762
|
])),
|
|
766
763
|
user: Schema.optional(Schema.Union([User, Schema.Null])),
|
|
767
764
|
}).pipe(T.ResponsePath("result")));
|
|
768
|
-
export const getMember = /*@__PURE__*/
|
|
765
|
+
export const getMember = /*@__PURE__*/ API.make(() => ({
|
|
769
766
|
input: GetMemberRequest,
|
|
770
767
|
output: GetMemberResponse,
|
|
771
768
|
errors: [MemberNotFound, InvalidRoute],
|
|
772
769
|
}));
|
|
773
|
-
export const ListMembersRequest = /*@__PURE__*/
|
|
770
|
+
export const ListMembersRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
774
771
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
775
772
|
page: Schema.optional(Schema.Number).pipe(T.HttpQuery("page")),
|
|
776
773
|
perPage: Schema.optional(Schema.Number).pipe(T.HttpQuery("per_page")),
|
|
@@ -789,11 +786,11 @@ export const ListMembersRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(()
|
|
|
789
786
|
Schema.String,
|
|
790
787
|
])).pipe(T.HttpQuery("status")),
|
|
791
788
|
}).pipe(T.Http({ method: "GET", path: "/accounts/{account_id}/members" })));
|
|
792
|
-
export const ListMembersResponse = /*@__PURE__*/
|
|
789
|
+
export const ListMembersResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
793
790
|
result: Schema.Union([Schema.Array(Member), Schema.Null]),
|
|
794
791
|
resultInfo: Schema.optional(Schema.Union([ListAccountsResponseResultInfo, Schema.Null])),
|
|
795
792
|
}).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" })));
|
|
796
|
-
export const listMembers = /*@__PURE__*/
|
|
793
|
+
export const listMembers = /*@__PURE__*/ API.makePaginated(() => ({
|
|
797
794
|
input: ListMembersRequest,
|
|
798
795
|
output: ListMembersResponse,
|
|
799
796
|
errors: [],
|
|
@@ -805,33 +802,30 @@ export const listMembers = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => (
|
|
|
805
802
|
pageSize: "perPage",
|
|
806
803
|
},
|
|
807
804
|
}));
|
|
808
|
-
export const CreateMemberRequest = /*@__PURE__*/
|
|
805
|
+
export const CreateMemberRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
809
806
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
810
807
|
email: Schema.String,
|
|
811
808
|
roles: Schema.optional(Schema.Array(Schema.String)),
|
|
812
809
|
status: Schema.optional(Schema.Union([Schema.Literals(["accepted", "pending"]), Schema.String])),
|
|
813
810
|
policies: Schema.optional(Schema.Array(Policy2)),
|
|
814
811
|
}).pipe(T.Http({ method: "POST", path: "/accounts/{account_id}/members" })));
|
|
815
|
-
export const CreateMemberResponse = /*@__PURE__*/
|
|
812
|
+
export const CreateMemberResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
816
813
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
817
814
|
email: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
818
815
|
policies: Schema.optional(Schema.Union([Schema.Array(Policy), Schema.Null])),
|
|
819
816
|
roles: Schema.optional(Schema.Union([Schema.Array(Role), Schema.Null])),
|
|
820
817
|
status: Schema.optional(Schema.Union([
|
|
821
|
-
Schema.Union([
|
|
822
|
-
Schema.Literals(["accepted", "pending"]),
|
|
823
|
-
Schema.String,
|
|
824
|
-
]),
|
|
818
|
+
Schema.Union([Schema.Literals(["accepted", "pending"]), Schema.String]),
|
|
825
819
|
Schema.Null,
|
|
826
820
|
])),
|
|
827
821
|
user: Schema.optional(Schema.Union([User, Schema.Null])),
|
|
828
822
|
}).pipe(T.ResponsePath("result")));
|
|
829
|
-
export const createMember = /*@__PURE__*/
|
|
823
|
+
export const createMember = /*@__PURE__*/ API.make(() => ({
|
|
830
824
|
input: CreateMemberRequest,
|
|
831
825
|
output: CreateMemberResponse,
|
|
832
826
|
errors: [InvalidRoute, ValidationError, AccountMemberAlreadyExists],
|
|
833
827
|
}));
|
|
834
|
-
export const UpdateMemberRequest = /*@__PURE__*/
|
|
828
|
+
export const UpdateMemberRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
835
829
|
memberId: Schema.String.pipe(T.HttpPath("memberId")),
|
|
836
830
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
837
831
|
roles: Schema.optional(Schema.Array(PolicyPermissionGroup)),
|
|
@@ -840,65 +834,62 @@ export const UpdateMemberRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(()
|
|
|
840
834
|
method: "PUT",
|
|
841
835
|
path: "/accounts/{account_id}/members/{memberId}",
|
|
842
836
|
})));
|
|
843
|
-
export const UpdateMemberResponse = /*@__PURE__*/
|
|
837
|
+
export const UpdateMemberResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
844
838
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
845
839
|
email: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
846
840
|
policies: Schema.optional(Schema.Union([Schema.Array(Policy), Schema.Null])),
|
|
847
841
|
roles: Schema.optional(Schema.Union([Schema.Array(Role), Schema.Null])),
|
|
848
842
|
status: Schema.optional(Schema.Union([
|
|
849
|
-
Schema.Union([
|
|
850
|
-
Schema.Literals(["accepted", "pending"]),
|
|
851
|
-
Schema.String,
|
|
852
|
-
]),
|
|
843
|
+
Schema.Union([Schema.Literals(["accepted", "pending"]), Schema.String]),
|
|
853
844
|
Schema.Null,
|
|
854
845
|
])),
|
|
855
846
|
user: Schema.optional(Schema.Union([User, Schema.Null])),
|
|
856
847
|
}).pipe(T.ResponsePath("result")));
|
|
857
|
-
export const updateMember = /*@__PURE__*/
|
|
848
|
+
export const updateMember = /*@__PURE__*/ API.make(() => ({
|
|
858
849
|
input: UpdateMemberRequest,
|
|
859
850
|
output: UpdateMemberResponse,
|
|
860
851
|
errors: [MemberNotFound, InvalidRoute, BadRequest, MethodNotAllowed],
|
|
861
852
|
}));
|
|
862
|
-
export const DeleteMemberRequest = /*@__PURE__*/
|
|
853
|
+
export const DeleteMemberRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
863
854
|
memberId: Schema.String.pipe(T.HttpPath("memberId")),
|
|
864
855
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
865
856
|
}).pipe(T.Http({
|
|
866
857
|
method: "DELETE",
|
|
867
858
|
path: "/accounts/{account_id}/members/{memberId}",
|
|
868
859
|
})));
|
|
869
|
-
export const DeleteMemberResponse = /*@__PURE__*/
|
|
860
|
+
export const DeleteMemberResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
870
861
|
id: Schema.String,
|
|
871
862
|
}).pipe(T.ResponsePath("result")));
|
|
872
|
-
export const deleteMember = /*@__PURE__*/
|
|
863
|
+
export const deleteMember = /*@__PURE__*/ API.make(() => ({
|
|
873
864
|
input: DeleteMemberRequest,
|
|
874
865
|
output: DeleteMemberResponse,
|
|
875
866
|
errors: [MemberNotFound, InvalidRoute],
|
|
876
867
|
}));
|
|
877
|
-
export const GetRoleRequest = /*@__PURE__*/
|
|
868
|
+
export const GetRoleRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
878
869
|
roleId: Schema.String.pipe(T.HttpPath("roleId")),
|
|
879
870
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
880
871
|
}).pipe(T.Http({ method: "GET", path: "/accounts/{account_id}/roles/{roleId}" })));
|
|
881
|
-
export const GetRoleResponse = /*@__PURE__*/
|
|
872
|
+
export const GetRoleResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
882
873
|
id: Schema.String,
|
|
883
874
|
description: Schema.String,
|
|
884
875
|
name: Schema.String,
|
|
885
876
|
permissions: Permissions,
|
|
886
877
|
}).pipe(T.ResponsePath("result")));
|
|
887
|
-
export const getRole = /*@__PURE__*/
|
|
878
|
+
export const getRole = /*@__PURE__*/ API.make(() => ({
|
|
888
879
|
input: GetRoleRequest,
|
|
889
880
|
output: GetRoleResponse,
|
|
890
881
|
errors: [InvalidRoute],
|
|
891
882
|
}));
|
|
892
|
-
export const ListRolesRequest = /*@__PURE__*/
|
|
883
|
+
export const ListRolesRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
893
884
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
894
885
|
page: Schema.optional(Schema.Number).pipe(T.HttpQuery("page")),
|
|
895
886
|
perPage: Schema.optional(Schema.Number).pipe(T.HttpQuery("per_page")),
|
|
896
887
|
}).pipe(T.Http({ method: "GET", path: "/accounts/{account_id}/roles" })));
|
|
897
|
-
export const ListRolesResponse = /*@__PURE__*/
|
|
888
|
+
export const ListRolesResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
898
889
|
result: Schema.Union([Schema.Array(Role), Schema.Null]),
|
|
899
890
|
resultInfo: Schema.optional(Schema.Union([ListAccountsResponseResultInfo, Schema.Null])),
|
|
900
891
|
}).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" })));
|
|
901
|
-
export const listRoles = /*@__PURE__*/
|
|
892
|
+
export const listRoles = /*@__PURE__*/ API.makePaginated(() => ({
|
|
902
893
|
input: ListRolesRequest,
|
|
903
894
|
output: ListRolesResponse,
|
|
904
895
|
errors: [],
|
|
@@ -911,14 +902,14 @@ export const listRoles = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
|
|
|
911
902
|
},
|
|
912
903
|
}));
|
|
913
904
|
export const GetSubscriptionRequest =
|
|
914
|
-
/*@__PURE__*/
|
|
905
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
915
906
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
916
907
|
}).pipe(T.Http({ method: "GET", path: "/accounts/{account_id}/subscriptions" })));
|
|
917
908
|
export const GetSubscriptionResponse =
|
|
918
|
-
/*@__PURE__*/
|
|
909
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
919
910
|
result: Schema.Array(Subscription),
|
|
920
911
|
}));
|
|
921
|
-
export const getSubscription = /*@__PURE__*/
|
|
912
|
+
export const getSubscription = /*@__PURE__*/ API.makePaginated(() => ({
|
|
922
913
|
input: GetSubscriptionRequest,
|
|
923
914
|
output: GetSubscriptionResponse,
|
|
924
915
|
errors: [],
|
|
@@ -928,7 +919,7 @@ export const getSubscription = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(()
|
|
|
928
919
|
},
|
|
929
920
|
}));
|
|
930
921
|
export const CreateSubscriptionRequest =
|
|
931
|
-
/*@__PURE__*/
|
|
922
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
932
923
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
933
924
|
frequency: Schema.optional(Schema.Union([
|
|
934
925
|
Schema.Literals(["weekly", "monthly", "quarterly", "yearly"]),
|
|
@@ -937,7 +928,7 @@ export const CreateSubscriptionRequest =
|
|
|
937
928
|
ratePlan: Schema.optional(RatePlan),
|
|
938
929
|
}).pipe(Schema.encodeKeys({ frequency: "frequency", ratePlan: "rate_plan" }), T.Http({ method: "POST", path: "/accounts/{account_id}/subscriptions" })));
|
|
939
930
|
export const CreateSubscriptionResponse =
|
|
940
|
-
/*@__PURE__*/
|
|
931
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
941
932
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
942
933
|
currency: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
943
934
|
currentPeriodEnd: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -978,13 +969,13 @@ export const CreateSubscriptionResponse =
|
|
|
978
969
|
state: "state",
|
|
979
970
|
}))
|
|
980
971
|
.pipe(T.ResponsePath("result")));
|
|
981
|
-
export const createSubscription = /*@__PURE__*/
|
|
972
|
+
export const createSubscription = /*@__PURE__*/ API.make(() => ({
|
|
982
973
|
input: CreateSubscriptionRequest,
|
|
983
974
|
output: CreateSubscriptionResponse,
|
|
984
975
|
errors: [JsonDecodeFailure, InvalidRoute],
|
|
985
976
|
}));
|
|
986
977
|
export const UpdateSubscriptionRequest =
|
|
987
|
-
/*@__PURE__*/
|
|
978
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
988
979
|
subscriptionIdentifier: Schema.String.pipe(T.HttpPath("subscriptionIdentifier")),
|
|
989
980
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
990
981
|
frequency: Schema.optional(Schema.Union([
|
|
@@ -997,7 +988,7 @@ export const UpdateSubscriptionRequest =
|
|
|
997
988
|
path: "/accounts/{account_id}/subscriptions/{subscriptionIdentifier}",
|
|
998
989
|
})));
|
|
999
990
|
export const UpdateSubscriptionResponse =
|
|
1000
|
-
/*@__PURE__*/
|
|
991
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
1001
992
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1002
993
|
currency: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1003
994
|
currentPeriodEnd: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -1038,13 +1029,13 @@ export const UpdateSubscriptionResponse =
|
|
|
1038
1029
|
state: "state",
|
|
1039
1030
|
}))
|
|
1040
1031
|
.pipe(T.ResponsePath("result")));
|
|
1041
|
-
export const updateSubscription = /*@__PURE__*/
|
|
1032
|
+
export const updateSubscription = /*@__PURE__*/ API.make(() => ({
|
|
1042
1033
|
input: UpdateSubscriptionRequest,
|
|
1043
1034
|
output: UpdateSubscriptionResponse,
|
|
1044
1035
|
errors: [JsonDecodeFailure, InvalidRoute, EndpointNotFound],
|
|
1045
1036
|
}));
|
|
1046
1037
|
export const DeleteSubscriptionRequest =
|
|
1047
|
-
/*@__PURE__*/
|
|
1038
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
1048
1039
|
subscriptionIdentifier: Schema.String.pipe(T.HttpPath("subscriptionIdentifier")),
|
|
1049
1040
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1050
1041
|
}).pipe(T.Http({
|
|
@@ -1052,21 +1043,21 @@ export const DeleteSubscriptionRequest =
|
|
|
1052
1043
|
path: "/accounts/{account_id}/subscriptions/{subscriptionIdentifier}",
|
|
1053
1044
|
})));
|
|
1054
1045
|
export const DeleteSubscriptionResponse =
|
|
1055
|
-
/*@__PURE__*/
|
|
1046
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
1056
1047
|
subscriptionId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1057
1048
|
})
|
|
1058
1049
|
.pipe(Schema.encodeKeys({ subscriptionId: "subscription_id" }))
|
|
1059
1050
|
.pipe(T.ResponsePath("result")));
|
|
1060
|
-
export const deleteSubscription = /*@__PURE__*/
|
|
1051
|
+
export const deleteSubscription = /*@__PURE__*/ API.make(() => ({
|
|
1061
1052
|
input: DeleteSubscriptionRequest,
|
|
1062
1053
|
output: DeleteSubscriptionResponse,
|
|
1063
1054
|
errors: [InvalidRoute, EndpointNotFound],
|
|
1064
1055
|
}));
|
|
1065
|
-
export const GetTokenRequest = /*@__PURE__*/
|
|
1056
|
+
export const GetTokenRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
1066
1057
|
tokenId: Schema.String.pipe(T.HttpPath("tokenId")),
|
|
1067
1058
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1068
1059
|
}).pipe(T.Http({ method: "GET", path: "/accounts/{account_id}/tokens/{tokenId}" })));
|
|
1069
|
-
export const GetTokenResponse = /*@__PURE__*/
|
|
1060
|
+
export const GetTokenResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
1070
1061
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1071
1062
|
condition: Schema.optional(Schema.Union([Condition, Schema.Null])),
|
|
1072
1063
|
expiresOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -1097,22 +1088,22 @@ export const GetTokenResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
|
|
|
1097
1088
|
status: "status",
|
|
1098
1089
|
}))
|
|
1099
1090
|
.pipe(T.ResponsePath("result")));
|
|
1100
|
-
export const getToken = /*@__PURE__*/
|
|
1091
|
+
export const getToken = /*@__PURE__*/ API.make(() => ({
|
|
1101
1092
|
input: GetTokenRequest,
|
|
1102
1093
|
output: GetTokenResponse,
|
|
1103
1094
|
errors: [InvalidRoute, TokenNotFound],
|
|
1104
1095
|
}));
|
|
1105
|
-
export const ListTokensRequest = /*@__PURE__*/
|
|
1096
|
+
export const ListTokensRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
1106
1097
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1107
1098
|
page: Schema.optional(Schema.Number).pipe(T.HttpQuery("page")),
|
|
1108
1099
|
perPage: Schema.optional(Schema.Number).pipe(T.HttpQuery("per_page")),
|
|
1109
1100
|
direction: Schema.optional(Schema.Union([Schema.Literals(["asc", "desc"]), Schema.String])).pipe(T.HttpQuery("direction")),
|
|
1110
1101
|
}).pipe(T.Http({ method: "GET", path: "/accounts/{account_id}/tokens" })));
|
|
1111
|
-
export const ListTokensResponse = /*@__PURE__*/
|
|
1102
|
+
export const ListTokensResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
1112
1103
|
result: Schema.Array(Token),
|
|
1113
1104
|
resultInfo: Schema.optional(Schema.Union([ListAccountsResponseResultInfo, Schema.Null])),
|
|
1114
1105
|
}).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" })));
|
|
1115
|
-
export const listTokens = /*@__PURE__*/
|
|
1106
|
+
export const listTokens = /*@__PURE__*/ API.makePaginated(() => ({
|
|
1116
1107
|
input: ListTokensRequest,
|
|
1117
1108
|
output: ListTokensResponse,
|
|
1118
1109
|
errors: [],
|
|
@@ -1124,7 +1115,7 @@ export const listTokens = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
|
|
|
1124
1115
|
pageSize: "perPage",
|
|
1125
1116
|
},
|
|
1126
1117
|
}));
|
|
1127
|
-
export const CreateTokenRequest = /*@__PURE__*/
|
|
1118
|
+
export const CreateTokenRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
1128
1119
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1129
1120
|
name: Schema.String,
|
|
1130
1121
|
policies: Schema.Array(TokenPolicyParam),
|
|
@@ -1138,7 +1129,7 @@ export const CreateTokenRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(()
|
|
|
1138
1129
|
expiresOn: "expires_on",
|
|
1139
1130
|
notBefore: "not_before",
|
|
1140
1131
|
}), T.Http({ method: "POST", path: "/accounts/{account_id}/tokens" })));
|
|
1141
|
-
export const CreateTokenResponse = /*@__PURE__*/
|
|
1132
|
+
export const CreateTokenResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
1142
1133
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1143
1134
|
condition: Schema.optional(Schema.Union([Condition, Schema.Null])),
|
|
1144
1135
|
expiresOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -1171,12 +1162,12 @@ export const CreateTokenResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(()
|
|
|
1171
1162
|
value: "value",
|
|
1172
1163
|
}))
|
|
1173
1164
|
.pipe(T.ResponsePath("result")));
|
|
1174
|
-
export const createToken = /*@__PURE__*/
|
|
1165
|
+
export const createToken = /*@__PURE__*/ API.make(() => ({
|
|
1175
1166
|
input: CreateTokenRequest,
|
|
1176
1167
|
output: CreateTokenResponse,
|
|
1177
1168
|
errors: [InvalidRoute, InvalidTokenName, PermissionGroupNotFound],
|
|
1178
1169
|
}));
|
|
1179
|
-
export const UpdateTokenRequest = /*@__PURE__*/
|
|
1170
|
+
export const UpdateTokenRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
1180
1171
|
tokenId: Schema.String.pipe(T.HttpPath("tokenId")),
|
|
1181
1172
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1182
1173
|
name: Schema.String,
|
|
@@ -1199,7 +1190,7 @@ export const UpdateTokenRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(()
|
|
|
1199
1190
|
method: "PUT",
|
|
1200
1191
|
path: "/accounts/{account_id}/tokens/{tokenId}",
|
|
1201
1192
|
})));
|
|
1202
|
-
export const UpdateTokenResponse = /*@__PURE__*/
|
|
1193
|
+
export const UpdateTokenResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
1203
1194
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1204
1195
|
condition: Schema.optional(Schema.Union([Condition, Schema.Null])),
|
|
1205
1196
|
expiresOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -1230,7 +1221,7 @@ export const UpdateTokenResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(()
|
|
|
1230
1221
|
status: "status",
|
|
1231
1222
|
}))
|
|
1232
1223
|
.pipe(T.ResponsePath("result")));
|
|
1233
|
-
export const updateToken = /*@__PURE__*/
|
|
1224
|
+
export const updateToken = /*@__PURE__*/ API.make(() => ({
|
|
1234
1225
|
input: UpdateTokenRequest,
|
|
1235
1226
|
output: UpdateTokenResponse,
|
|
1236
1227
|
errors: [
|
|
@@ -1240,17 +1231,17 @@ export const updateToken = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
|
1240
1231
|
PermissionGroupNotFound,
|
|
1241
1232
|
],
|
|
1242
1233
|
}));
|
|
1243
|
-
export const DeleteTokenRequest = /*@__PURE__*/
|
|
1234
|
+
export const DeleteTokenRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
1244
1235
|
tokenId: Schema.String.pipe(T.HttpPath("tokenId")),
|
|
1245
1236
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1246
1237
|
}).pipe(T.Http({
|
|
1247
1238
|
method: "DELETE",
|
|
1248
1239
|
path: "/accounts/{account_id}/tokens/{tokenId}",
|
|
1249
1240
|
})));
|
|
1250
|
-
export const DeleteTokenResponse = /*@__PURE__*/
|
|
1241
|
+
export const DeleteTokenResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
1251
1242
|
id: Schema.String,
|
|
1252
1243
|
}).pipe(T.ResponsePath("result")));
|
|
1253
|
-
export const deleteToken = /*@__PURE__*/
|
|
1244
|
+
export const deleteToken = /*@__PURE__*/ API.make(() => ({
|
|
1254
1245
|
input: DeleteTokenRequest,
|
|
1255
1246
|
output: DeleteTokenResponse,
|
|
1256
1247
|
errors: [
|
|
@@ -1260,10 +1251,10 @@ export const deleteToken = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
|
1260
1251
|
TokenManagedByCloudflare,
|
|
1261
1252
|
],
|
|
1262
1253
|
}));
|
|
1263
|
-
export const VerifyTokenRequest = /*@__PURE__*/
|
|
1254
|
+
export const VerifyTokenRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
1264
1255
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1265
1256
|
}).pipe(T.Http({ method: "GET", path: "/accounts/{account_id}/tokens/verify" })));
|
|
1266
|
-
export const VerifyTokenResponse = /*@__PURE__*/
|
|
1257
|
+
export const VerifyTokenResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
1267
1258
|
id: Schema.String,
|
|
1268
1259
|
status: Schema.Union([
|
|
1269
1260
|
Schema.Literals(["active", "disabled", "expired"]),
|
|
@@ -1279,13 +1270,13 @@ export const VerifyTokenResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(()
|
|
|
1279
1270
|
notBefore: "not_before",
|
|
1280
1271
|
}))
|
|
1281
1272
|
.pipe(T.ResponsePath("result")));
|
|
1282
|
-
export const verifyToken = /*@__PURE__*/
|
|
1273
|
+
export const verifyToken = /*@__PURE__*/ API.make(() => ({
|
|
1283
1274
|
input: VerifyTokenRequest,
|
|
1284
1275
|
output: VerifyTokenResponse,
|
|
1285
1276
|
errors: [MissingAuthenticationToken, InvalidRoute],
|
|
1286
1277
|
}));
|
|
1287
1278
|
export const GetTokenPermissionGroupRequest =
|
|
1288
|
-
/*@__PURE__*/
|
|
1279
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
1289
1280
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1290
1281
|
name: Schema.optional(Schema.String).pipe(T.HttpQuery("name")),
|
|
1291
1282
|
scope: Schema.optional(Schema.String).pipe(T.HttpQuery("scope")),
|
|
@@ -1294,14 +1285,14 @@ export const GetTokenPermissionGroupRequest =
|
|
|
1294
1285
|
path: "/accounts/{account_id}/tokens/permission_groups",
|
|
1295
1286
|
})));
|
|
1296
1287
|
export const GetTokenPermissionGroupResponse =
|
|
1297
|
-
/*@__PURE__*/
|
|
1298
|
-
export const getTokenPermissionGroup = /*@__PURE__*/
|
|
1288
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Array(PermissionGroupGetResponseItem).pipe(T.ResponsePath("result")));
|
|
1289
|
+
export const getTokenPermissionGroup = /*@__PURE__*/ API.make(() => ({
|
|
1299
1290
|
input: GetTokenPermissionGroupRequest,
|
|
1300
1291
|
output: GetTokenPermissionGroupResponse,
|
|
1301
1292
|
errors: [InvalidRoute],
|
|
1302
1293
|
}));
|
|
1303
1294
|
export const ListTokenPermissionGroupsRequest =
|
|
1304
|
-
/*@__PURE__*/
|
|
1295
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
1305
1296
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1306
1297
|
name: Schema.optional(Schema.String).pipe(T.HttpQuery("name")),
|
|
1307
1298
|
scope: Schema.optional(Schema.String).pipe(T.HttpQuery("scope")),
|
|
@@ -1310,10 +1301,10 @@ export const ListTokenPermissionGroupsRequest =
|
|
|
1310
1301
|
path: "/accounts/{account_id}/tokens/permission_groups",
|
|
1311
1302
|
})));
|
|
1312
1303
|
export const ListTokenPermissionGroupsResponse =
|
|
1313
|
-
/*@__PURE__*/
|
|
1304
|
+
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
1314
1305
|
result: Schema.Array(PermissionGroupGetResponseItem),
|
|
1315
1306
|
}));
|
|
1316
|
-
export const listTokenPermissionGroups = /*@__PURE__*/
|
|
1307
|
+
export const listTokenPermissionGroups = /*@__PURE__*/ API.makePaginated(() => ({
|
|
1317
1308
|
input: ListTokenPermissionGroupsRequest,
|
|
1318
1309
|
output: ListTokenPermissionGroupsResponse,
|
|
1319
1310
|
errors: [],
|
|
@@ -1322,7 +1313,7 @@ export const listTokenPermissionGroups = /*@__PURE__*/ /*#__PURE__*/ API.makePag
|
|
|
1322
1313
|
items: "result",
|
|
1323
1314
|
},
|
|
1324
1315
|
}));
|
|
1325
|
-
export const PutTokenValueRequest = /*@__PURE__*/
|
|
1316
|
+
export const PutTokenValueRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
1326
1317
|
tokenId: Schema.String.pipe(T.HttpPath("tokenId")),
|
|
1327
1318
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1328
1319
|
body: Schema.Unknown.pipe(T.HttpBody()),
|
|
@@ -1330,8 +1321,8 @@ export const PutTokenValueRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend((
|
|
|
1330
1321
|
method: "PUT",
|
|
1331
1322
|
path: "/accounts/{account_id}/tokens/{tokenId}/value",
|
|
1332
1323
|
})));
|
|
1333
|
-
export const PutTokenValueResponse = /*@__PURE__*/
|
|
1334
|
-
export const putTokenValue = /*@__PURE__*/
|
|
1324
|
+
export const PutTokenValueResponse = /*@__PURE__*/ Schema.suspend(() => Schema.String.pipe(T.ResponsePath("result")));
|
|
1325
|
+
export const putTokenValue = /*@__PURE__*/ API.make(() => ({
|
|
1335
1326
|
input: PutTokenValueRequest,
|
|
1336
1327
|
output: PutTokenValueResponse,
|
|
1337
1328
|
errors: [InvalidRoute, TokenNotFound],
|