@distilled.cloud/cloudflare 0.2.6 → 0.4.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/README.md +12 -2
- package/lib/auth.d.ts +3 -2
- package/lib/auth.d.ts.map +1 -1
- package/lib/auth.js +4 -3
- package/lib/auth.js.map +1 -1
- package/lib/client/api.d.ts +7 -9
- package/lib/client/api.d.ts.map +1 -1
- package/lib/client/api.js +60 -13
- package/lib/client/api.js.map +1 -1
- package/lib/credentials.d.ts +58 -4
- package/lib/credentials.d.ts.map +1 -1
- package/lib/credentials.js +126 -7
- package/lib/credentials.js.map +1 -1
- package/lib/errors.d.ts +12 -1
- package/lib/errors.d.ts.map +1 -1
- package/lib/sensitive.d.ts +5 -0
- package/lib/sensitive.d.ts.map +1 -0
- package/lib/sensitive.js +5 -0
- package/lib/sensitive.js.map +1 -0
- package/lib/services/abuse-reports.d.ts +116 -44
- package/lib/services/abuse-reports.d.ts.map +1 -1
- package/lib/services/abuse-reports.js +171 -110
- package/lib/services/abuse-reports.js.map +1 -1
- package/lib/services/accounts.d.ts +146 -62
- package/lib/services/accounts.d.ts.map +1 -1
- package/lib/services/accounts.js +208 -153
- package/lib/services/accounts.js.map +1 -1
- package/lib/services/acm.d.ts.map +1 -1
- package/lib/services/acm.js +8 -4
- package/lib/services/acm.js.map +1 -1
- package/lib/services/addressing.d.ts +200 -87
- package/lib/services/addressing.d.ts.map +1 -1
- package/lib/services/addressing.js +288 -201
- package/lib/services/addressing.js.map +1 -1
- package/lib/services/ai-gateway.d.ts +302 -121
- package/lib/services/ai-gateway.d.ts.map +1 -1
- package/lib/services/ai-gateway.js +407 -283
- package/lib/services/ai-gateway.js.map +1 -1
- package/lib/services/ai.d.ts +83 -29
- package/lib/services/ai.d.ts.map +1 -1
- package/lib/services/ai.js +95 -42
- package/lib/services/ai.js.map +1 -1
- package/lib/services/aisearch.d.ts +266 -112
- package/lib/services/aisearch.d.ts.map +1 -1
- package/lib/services/aisearch.js +510 -393
- package/lib/services/aisearch.js.map +1 -1
- package/lib/services/alerting.d.ts +249 -112
- package/lib/services/alerting.d.ts.map +1 -1
- package/lib/services/alerting.js +382 -325
- package/lib/services/alerting.js.map +1 -1
- package/lib/services/api-gateway.d.ts +458 -200
- package/lib/services/api-gateway.d.ts.map +1 -1
- package/lib/services/api-gateway.js +725 -618
- package/lib/services/api-gateway.js.map +1 -1
- package/lib/services/argo.d.ts.map +1 -1
- package/lib/services/argo.js +16 -8
- package/lib/services/argo.js.map +1 -1
- package/lib/services/billing.d.ts.map +1 -1
- package/lib/services/billing.js +4 -2
- package/lib/services/billing.js.map +1 -1
- package/lib/services/bot-management.d.ts.map +1 -1
- package/lib/services/bot-management.js +2 -2
- 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 +10 -6
- package/lib/services/botnet-feed.js.map +1 -1
- package/lib/services/brand-protection.d.ts +8 -2
- package/lib/services/brand-protection.d.ts.map +1 -1
- package/lib/services/brand-protection.js +9 -2
- 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 +15 -14
- package/lib/services/browser-rendering.js.map +1 -1
- package/lib/services/cache.d.ts.map +1 -1
- package/lib/services/cache.js +49 -25
- package/lib/services/cache.js.map +1 -1
- package/lib/services/calls.d.ts +35 -14
- package/lib/services/calls.d.ts.map +1 -1
- package/lib/services/calls.js +35 -22
- package/lib/services/calls.js.map +1 -1
- package/lib/services/certificate-authorities.d.ts.map +1 -1
- package/lib/services/certificate-authorities.js +2 -2
- package/lib/services/certificate-authorities.js.map +1 -1
- package/lib/services/client-certificates.d.ts +57 -23
- package/lib/services/client-certificates.d.ts.map +1 -1
- package/lib/services/client-certificates.js +91 -62
- package/lib/services/client-certificates.js.map +1 -1
- package/lib/services/cloud-connector.d.ts +51 -22
- package/lib/services/cloud-connector.d.ts.map +1 -1
- package/lib/services/cloud-connector.js +57 -44
- package/lib/services/cloud-connector.js.map +1 -1
- package/lib/services/cloudforce-one.d.ts +119 -50
- package/lib/services/cloudforce-one.d.ts.map +1 -1
- package/lib/services/cloudforce-one.js +181 -124
- package/lib/services/cloudforce-one.js.map +1 -1
- package/lib/services/connectivity.d.ts +74 -31
- package/lib/services/connectivity.d.ts.map +1 -1
- package/lib/services/connectivity.js +84 -57
- package/lib/services/connectivity.js.map +1 -1
- package/lib/services/content-scanning.d.ts +40 -15
- package/lib/services/content-scanning.d.ts.map +1 -1
- package/lib/services/content-scanning.js +40 -21
- package/lib/services/content-scanning.js.map +1 -1
- package/lib/services/custom-certificates.d.ts +48 -19
- package/lib/services/custom-certificates.d.ts.map +1 -1
- package/lib/services/custom-certificates.js +80 -53
- package/lib/services/custom-certificates.js.map +1 -1
- package/lib/services/custom-hostnames.d.ts +116 -51
- package/lib/services/custom-hostnames.d.ts.map +1 -1
- package/lib/services/custom-hostnames.js +210 -170
- package/lib/services/custom-hostnames.js.map +1 -1
- package/lib/services/custom-nameservers.d.ts +32 -12
- package/lib/services/custom-nameservers.d.ts.map +1 -1
- package/lib/services/custom-nameservers.js +36 -21
- package/lib/services/custom-nameservers.js.map +1 -1
- package/lib/services/custom-pages.d.ts +26 -11
- package/lib/services/custom-pages.d.ts.map +1 -1
- package/lib/services/custom-pages.js +39 -24
- package/lib/services/custom-pages.js.map +1 -1
- package/lib/services/d1.d.ts +114 -48
- package/lib/services/d1.d.ts.map +1 -1
- package/lib/services/d1.js +150 -111
- package/lib/services/d1.js.map +1 -1
- package/lib/services/dcv-delegation.d.ts.map +1 -1
- package/lib/services/dcv-delegation.js +1 -1
- package/lib/services/dcv-delegation.js.map +1 -1
- package/lib/services/diagnostics.d.ts +59 -26
- package/lib/services/diagnostics.d.ts.map +1 -1
- package/lib/services/diagnostics.js +97 -82
- package/lib/services/diagnostics.js.map +1 -1
- package/lib/services/dns-firewall.d.ts +48 -19
- package/lib/services/dns-firewall.d.ts.map +1 -1
- package/lib/services/dns-firewall.js +75 -48
- package/lib/services/dns-firewall.js.map +1 -1
- package/lib/services/dns.d.ts +206 -87
- package/lib/services/dns.d.ts.map +1 -1
- package/lib/services/dns.js +335 -219
- package/lib/services/dns.js.map +1 -1
- package/lib/services/durable-objects.d.ts +44 -13
- package/lib/services/durable-objects.d.ts.map +1 -1
- package/lib/services/durable-objects.js +56 -19
- package/lib/services/durable-objects.js.map +1 -1
- package/lib/services/email-routing.d.ts +90 -34
- package/lib/services/email-routing.d.ts.map +1 -1
- package/lib/services/email-routing.js +133 -80
- package/lib/services/email-routing.js.map +1 -1
- package/lib/services/email-security.d.ts +439 -181
- package/lib/services/email-security.d.ts.map +1 -1
- package/lib/services/email-security.js +753 -557
- package/lib/services/email-security.js.map +1 -1
- package/lib/services/filters.d.ts +64 -24
- package/lib/services/filters.d.ts.map +1 -1
- package/lib/services/filters.js +61 -28
- package/lib/services/filters.js.map +1 -1
- package/lib/services/firewall.d.ts +455 -183
- package/lib/services/firewall.d.ts.map +1 -1
- package/lib/services/firewall.js +777 -574
- package/lib/services/firewall.js.map +1 -1
- package/lib/services/healthchecks.d.ts +76 -33
- package/lib/services/healthchecks.d.ts.map +1 -1
- package/lib/services/healthchecks.js +129 -100
- package/lib/services/healthchecks.js.map +1 -1
- package/lib/services/hostnames.d.ts +20 -8
- package/lib/services/hostnames.d.ts.map +1 -1
- package/lib/services/hostnames.js +32 -21
- package/lib/services/hostnames.js.map +1 -1
- package/lib/services/hyperdrive.d.ts.map +1 -1
- package/lib/services/hyperdrive.js +10 -9
- package/lib/services/hyperdrive.js.map +1 -1
- package/lib/services/iam.d.ts +162 -59
- package/lib/services/iam.d.ts.map +1 -1
- package/lib/services/iam.js +219 -119
- package/lib/services/iam.js.map +1 -1
- package/lib/services/images.d.ts +36 -12
- package/lib/services/images.d.ts.map +1 -1
- package/lib/services/images.js +59 -32
- package/lib/services/images.js.map +1 -1
- package/lib/services/intel.d.ts +159 -62
- package/lib/services/intel.d.ts.map +1 -1
- package/lib/services/intel.js +238 -151
- package/lib/services/intel.js.map +1 -1
- package/lib/services/ips.d.ts.map +1 -1
- package/lib/services/ips.js +1 -1
- package/lib/services/ips.js.map +1 -1
- package/lib/services/keyless-certificates.d.ts +36 -16
- package/lib/services/keyless-certificates.d.ts.map +1 -1
- package/lib/services/keyless-certificates.js +50 -37
- package/lib/services/keyless-certificates.js.map +1 -1
- package/lib/services/kv.d.ts +42 -12
- package/lib/services/kv.d.ts.map +1 -1
- package/lib/services/kv.js +87 -36
- package/lib/services/kv.js.map +1 -1
- package/lib/services/leaked-credential-checks.d.ts +16 -6
- package/lib/services/leaked-credential-checks.d.ts.map +1 -1
- package/lib/services/leaked-credential-checks.js +20 -12
- package/lib/services/leaked-credential-checks.js.map +1 -1
- package/lib/services/load-balancers.d.ts +373 -167
- package/lib/services/load-balancers.d.ts.map +1 -1
- package/lib/services/load-balancers.js +603 -490
- package/lib/services/load-balancers.js.map +1 -1
- package/lib/services/logpush.d.ts.map +1 -1
- package/lib/services/logpush.js +23 -15
- package/lib/services/logpush.js.map +1 -1
- package/lib/services/logs.d.ts.map +1 -1
- package/lib/services/logs.js +11 -7
- package/lib/services/logs.js.map +1 -1
- package/lib/services/magic-cloud-networking.d.ts +542 -249
- package/lib/services/magic-cloud-networking.d.ts.map +1 -1
- package/lib/services/magic-cloud-networking.js +890 -804
- 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 +44 -22
- package/lib/services/magic-network-monitoring.js.map +1 -1
- package/lib/services/magic-transit.d.ts +432 -196
- package/lib/services/magic-transit.d.ts.map +1 -1
- package/lib/services/magic-transit.js +730 -566
- package/lib/services/magic-transit.js.map +1 -1
- package/lib/services/managed-transforms.d.ts.map +1 -1
- package/lib/services/managed-transforms.js +8 -4
- package/lib/services/managed-transforms.js.map +1 -1
- package/lib/services/memberships.d.ts +54 -22
- package/lib/services/memberships.d.ts.map +1 -1
- package/lib/services/memberships.js +79 -53
- package/lib/services/memberships.js.map +1 -1
- package/lib/services/mtls-certificates.d.ts +41 -17
- package/lib/services/mtls-certificates.d.ts.map +1 -1
- package/lib/services/mtls-certificates.js +52 -33
- package/lib/services/mtls-certificates.js.map +1 -1
- package/lib/services/organizations.d.ts +56 -25
- package/lib/services/organizations.d.ts.map +1 -1
- package/lib/services/organizations.js +74 -59
- package/lib/services/organizations.js.map +1 -1
- package/lib/services/origin-ca-certificates.d.ts +30 -10
- package/lib/services/origin-ca-certificates.d.ts.map +1 -1
- package/lib/services/origin-ca-certificates.js +62 -35
- package/lib/services/origin-ca-certificates.js.map +1 -1
- package/lib/services/origin-post-quantum-encryption.d.ts.map +1 -1
- package/lib/services/origin-post-quantum-encryption.js +8 -4
- package/lib/services/origin-post-quantum-encryption.js.map +1 -1
- package/lib/services/origin-tls-client-auth.d.ts +60 -25
- package/lib/services/origin-tls-client-auth.d.ts.map +1 -1
- package/lib/services/origin-tls-client-auth.js +94 -60
- package/lib/services/origin-tls-client-auth.js.map +1 -1
- package/lib/services/page-rules.d.ts.map +1 -1
- package/lib/services/page-rules.js +18 -10
- package/lib/services/page-rules.js.map +1 -1
- package/lib/services/page-shield.d.ts +145 -66
- package/lib/services/page-shield.d.ts.map +1 -1
- package/lib/services/page-shield.js +166 -130
- package/lib/services/page-shield.js.map +1 -1
- package/lib/services/pages.d.ts +520 -225
- package/lib/services/pages.d.ts.map +1 -1
- package/lib/services/pages.js +643 -567
- package/lib/services/pages.js.map +1 -1
- package/lib/services/pipelines.d.ts +461 -206
- package/lib/services/pipelines.d.ts.map +1 -1
- package/lib/services/pipelines.js +859 -780
- package/lib/services/pipelines.js.map +1 -1
- package/lib/services/queues.d.ts +177 -80
- package/lib/services/queues.d.ts.map +1 -1
- package/lib/services/queues.js +233 -177
- 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 +30 -16
- package/lib/services/r2-data-catalog.js.map +1 -1
- package/lib/services/r2.d.ts +85 -39
- package/lib/services/r2.d.ts.map +1 -1
- package/lib/services/r2.js +146 -126
- package/lib/services/r2.js.map +1 -1
- package/lib/services/radar.d.ts +152 -63
- package/lib/services/radar.d.ts.map +1 -1
- package/lib/services/radar.js +421 -360
- package/lib/services/radar.js.map +1 -1
- package/lib/services/rate-limits.d.ts +76 -31
- package/lib/services/rate-limits.d.ts.map +1 -1
- package/lib/services/rate-limits.js +106 -82
- 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 +34 -33
- package/lib/services/realtime-kit.js.map +1 -1
- package/lib/services/registrar.d.ts +75 -35
- package/lib/services/registrar.d.ts.map +1 -1
- package/lib/services/registrar.js +116 -103
- package/lib/services/registrar.js.map +1 -1
- package/lib/services/request-tracers.d.ts.map +1 -1
- package/lib/services/request-tracers.js +5 -2
- package/lib/services/request-tracers.js.map +1 -1
- package/lib/services/resource-sharing.d.ts +132 -50
- package/lib/services/resource-sharing.d.ts.map +1 -1
- package/lib/services/resource-sharing.js +232 -149
- package/lib/services/resource-sharing.js.map +1 -1
- package/lib/services/rules.d.ts +86 -37
- package/lib/services/rules.d.ts.map +1 -1
- package/lib/services/rules.js +122 -87
- package/lib/services/rules.js.map +1 -1
- package/lib/services/rulesets.d.ts +75 -30
- package/lib/services/rulesets.d.ts.map +1 -1
- package/lib/services/rulesets.js +274 -222
- package/lib/services/rulesets.js.map +1 -1
- package/lib/services/rum.d.ts +40 -15
- package/lib/services/rum.d.ts.map +1 -1
- package/lib/services/rum.js +78 -45
- package/lib/services/rum.js.map +1 -1
- package/lib/services/schema-validation.d.ts +47 -14
- package/lib/services/schema-validation.d.ts.map +1 -1
- package/lib/services/schema-validation.js +102 -43
- package/lib/services/schema-validation.js.map +1 -1
- package/lib/services/secrets-store.d.ts +116 -44
- package/lib/services/secrets-store.d.ts.map +1 -1
- package/lib/services/secrets-store.js +145 -78
- package/lib/services/secrets-store.js.map +1 -1
- package/lib/services/security-center.d.ts +56 -22
- package/lib/services/security-center.d.ts.map +1 -1
- package/lib/services/security-center.js +90 -64
- 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 +1 -1
- package/lib/services/security-txt.js.map +1 -1
- package/lib/services/snippets.d.ts +85 -33
- package/lib/services/snippets.d.ts.map +1 -1
- package/lib/services/snippets.js +106 -63
- package/lib/services/snippets.js.map +1 -1
- package/lib/services/spectrum.d.ts +58 -24
- package/lib/services/spectrum.d.ts.map +1 -1
- package/lib/services/spectrum.js +90 -65
- package/lib/services/spectrum.js.map +1 -1
- package/lib/services/speed.d.ts +47 -17
- package/lib/services/speed.d.ts.map +1 -1
- package/lib/services/speed.js +51 -24
- package/lib/services/speed.js.map +1 -1
- package/lib/services/ssl.d.ts +77 -35
- package/lib/services/ssl.d.ts.map +1 -1
- package/lib/services/ssl.js +146 -123
- package/lib/services/ssl.js.map +1 -1
- package/lib/services/stream.d.ts +173 -77
- package/lib/services/stream.d.ts.map +1 -1
- package/lib/services/stream.js +167 -131
- package/lib/services/stream.js.map +1 -1
- package/lib/services/token-validation.d.ts +203 -88
- package/lib/services/token-validation.d.ts.map +1 -1
- package/lib/services/token-validation.js +238 -172
- package/lib/services/token-validation.js.map +1 -1
- package/lib/services/turnstile.d.ts +38 -14
- package/lib/services/turnstile.d.ts.map +1 -1
- package/lib/services/turnstile.js +72 -41
- package/lib/services/turnstile.js.map +1 -1
- package/lib/services/url-normalization.d.ts.map +1 -1
- package/lib/services/url-normalization.js +2 -2
- package/lib/services/url-normalization.js.map +1 -1
- package/lib/services/user.d.ts +106 -40
- package/lib/services/user.d.ts.map +1 -1
- package/lib/services/user.js +156 -89
- package/lib/services/user.js.map +1 -1
- package/lib/services/vectorize.d.ts +26 -11
- package/lib/services/vectorize.d.ts.map +1 -1
- package/lib/services/vectorize.js +46 -35
- package/lib/services/vectorize.js.map +1 -1
- package/lib/services/waiting-rooms.d.ts +244 -104
- package/lib/services/waiting-rooms.d.ts.map +1 -1
- package/lib/services/waiting-rooms.js +398 -296
- package/lib/services/waiting-rooms.js.map +1 -1
- package/lib/services/web3.d.ts +26 -11
- package/lib/services/web3.d.ts.map +1 -1
- package/lib/services/web3.js +62 -43
- package/lib/services/web3.js.map +1 -1
- package/lib/services/workers-for-platforms.d.ts +323 -153
- package/lib/services/workers-for-platforms.d.ts.map +1 -1
- package/lib/services/workers-for-platforms.js +331 -288
- package/lib/services/workers-for-platforms.js.map +1 -1
- package/lib/services/workers.d.ts +601 -272
- package/lib/services/workers.d.ts.map +1 -1
- package/lib/services/workers.js +771 -633
- package/lib/services/workers.js.map +1 -1
- package/lib/services/workflows.d.ts +130 -47
- package/lib/services/workflows.d.ts.map +1 -1
- package/lib/services/workflows.js +190 -107
- package/lib/services/workflows.js.map +1 -1
- package/lib/services/zaraz.d.ts +20 -8
- package/lib/services/zaraz.d.ts.map +1 -1
- package/lib/services/zaraz.js +20 -13
- package/lib/services/zaraz.js.map +1 -1
- package/lib/services/zero-trust.d.ts +5436 -2650
- package/lib/services/zero-trust.d.ts.map +1 -1
- package/lib/services/zero-trust.js +9008 -7934
- package/lib/services/zero-trust.js.map +1 -1
- package/lib/services/zones.d.ts +188 -84
- package/lib/services/zones.d.ts.map +1 -1
- package/lib/services/zones.js +257 -196
- package/lib/services/zones.js.map +1 -1
- package/package.json +3 -2
- package/src/auth.ts +4 -3
- package/src/client/api.ts +105 -13
- package/src/credentials.ts +253 -12
- package/src/errors.ts +17 -1
- package/src/sensitive.ts +4 -0
- package/src/services/abuse-reports.ts +416 -208
- package/src/services/accounts.ts +511 -306
- package/src/services/acm.ts +22 -14
- package/src/services/addressing.ts +865 -550
- package/src/services/ai-gateway.ts +1148 -710
- package/src/services/ai.ts +265 -91
- package/src/services/aisearch.ts +1460 -995
- package/src/services/alerting.ts +1027 -671
- package/src/services/api-gateway.ts +1628 -1129
- package/src/services/argo.ts +48 -32
- package/src/services/billing.ts +47 -43
- package/src/services/bot-management.ts +6 -2
- package/src/services/botnet-feed.ts +28 -16
- package/src/services/brand-protection.ts +28 -6
- package/src/services/browser-rendering.ts +23 -10
- package/src/services/cache.ts +147 -97
- package/src/services/calls.ts +107 -42
- package/src/services/certificate-authorities.ts +6 -2
- package/src/services/client-certificates.ts +270 -173
- package/src/services/cloud-connector.ts +149 -82
- package/src/services/cloudforce-one.ts +515 -287
- package/src/services/connectivity.ts +184 -107
- package/src/services/content-scanning.ts +115 -42
- package/src/services/custom-certificates.ts +200 -121
- package/src/services/custom-hostnames.ts +583 -395
- package/src/services/custom-nameservers.ts +98 -45
- package/src/services/custom-pages.ts +109 -62
- package/src/services/d1.ts +409 -235
- package/src/services/dcv-delegation.ts +3 -1
- package/src/services/diagnostics.ts +267 -193
- package/src/services/dns-firewall.ts +197 -116
- package/src/services/dns.ts +916 -536
- package/src/services/durable-objects.ts +126 -37
- package/src/services/email-routing.ts +375 -181
- package/src/services/email-security.ts +1881 -1112
- package/src/services/filters.ts +176 -58
- package/src/services/firewall.ts +1843 -1011
- package/src/services/healthchecks.ts +374 -258
- package/src/services/hostnames.ts +83 -47
- package/src/services/hyperdrive.ts +12 -9
- package/src/services/iam.ts +560 -259
- package/src/services/images.ts +148 -54
- package/src/services/intel.ts +677 -373
- package/src/services/ips.ts +1 -1
- package/src/services/keyless-certificates.ts +139 -92
- package/src/services/kv.ts +204 -86
- package/src/services/leaked-credential-checks.ts +58 -19
- package/src/services/load-balancers.ts +1755 -1200
- package/src/services/logpush.ts +100 -72
- package/src/services/logs.ts +29 -15
- package/src/services/magic-cloud-networking.ts +2453 -1726
- package/src/services/magic-network-monitoring.ts +163 -119
- package/src/services/magic-transit.ts +2153 -1530
- package/src/services/managed-transforms.ts +20 -12
- package/src/services/memberships.ts +196 -113
- package/src/services/mtls-certificates.ts +158 -88
- package/src/services/organizations.ts +185 -121
- package/src/services/origin-ca-certificates.ts +130 -64
- package/src/services/origin-post-quantum-encryption.ts +24 -16
- package/src/services/origin-tls-client-auth.ts +282 -158
- package/src/services/page-rules.ts +64 -44
- package/src/services/page-shield.ts +492 -316
- package/src/services/pages.ts +1612 -1154
- package/src/services/pipelines.ts +1735 -1280
- package/src/services/queues.ts +617 -419
- package/src/services/r2-data-catalog.ts +82 -50
- package/src/services/r2.ts +420 -239
- package/src/services/radar.ts +1107 -423
- package/src/services/rate-limits.ts +254 -152
- package/src/services/realtime-kit.ts +34 -33
- package/src/services/registrar.ts +262 -167
- package/src/services/request-tracers.ts +7 -4
- package/src/services/resource-sharing.ts +628 -378
- package/src/services/rules.ts +292 -176
- package/src/services/rulesets.ts +643 -426
- package/src/services/rum.ts +204 -111
- package/src/services/schema-validation.ts +240 -104
- package/src/services/secrets-store.ts +356 -166
- package/src/services/security-center.ts +196 -98
- package/src/services/security-txt.ts +2 -0
- package/src/services/snippets.ts +259 -117
- package/src/services/spectrum.ts +215 -128
- package/src/services/speed.ts +144 -46
- package/src/services/ssl.ts +420 -293
- package/src/services/stream.ts +496 -244
- package/src/services/token-validation.ts +583 -343
- package/src/services/turnstile.ts +206 -124
- package/src/services/url-normalization.ts +6 -2
- package/src/services/user.ts +480 -277
- package/src/services/vectorize.ts +123 -64
- package/src/services/waiting-rooms.ts +1156 -747
- package/src/services/web3.ts +178 -113
- package/src/services/workers-for-platforms.ts +814 -539
- package/src/services/workers.ts +1888 -1227
- package/src/services/workflows.ts +453 -205
- package/src/services/zaraz.ts +61 -25
- package/src/services/zero-trust.ts +17859 -12103
- package/src/services/zones.ts +690 -459
package/src/services/user.ts
CHANGED
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
* DO NOT EDIT - regenerate with: bun scripts/generate.ts --service user
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
+
import * as stream from "effect/Stream";
|
|
8
9
|
import * as Schema from "effect/Schema";
|
|
9
10
|
import type * as HttpClient from "effect/unstable/http/HttpClient";
|
|
10
11
|
import * as API from "../client/api.ts";
|
|
@@ -53,55 +54,109 @@ export const ListBillingHistoriesRequest =
|
|
|
53
54
|
T.Http({ method: "GET", path: "/user/billing/history" }),
|
|
54
55
|
) as unknown as Schema.Schema<ListBillingHistoriesRequest>;
|
|
55
56
|
|
|
56
|
-
export
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
}
|
|
57
|
+
export interface ListBillingHistoriesResponse {
|
|
58
|
+
result: {
|
|
59
|
+
id: string;
|
|
60
|
+
action: string;
|
|
61
|
+
amount: number;
|
|
62
|
+
currency: string;
|
|
63
|
+
description: string;
|
|
64
|
+
occurredAt: string;
|
|
65
|
+
type: string;
|
|
66
|
+
zone: { name?: string | null };
|
|
67
|
+
}[];
|
|
68
|
+
resultInfo: {
|
|
69
|
+
count?: number | null;
|
|
70
|
+
page?: number | null;
|
|
71
|
+
perPage?: number | null;
|
|
72
|
+
totalCount?: number | null;
|
|
73
|
+
};
|
|
74
|
+
}
|
|
66
75
|
|
|
67
76
|
export const ListBillingHistoriesResponse =
|
|
68
|
-
/*@__PURE__*/ /*#__PURE__*/ Schema.
|
|
69
|
-
Schema.
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
77
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
78
|
+
result: Schema.Array(
|
|
79
|
+
Schema.Struct({
|
|
80
|
+
id: Schema.String,
|
|
81
|
+
action: Schema.String,
|
|
82
|
+
amount: Schema.Number,
|
|
83
|
+
currency: Schema.String,
|
|
84
|
+
description: Schema.String,
|
|
85
|
+
occurredAt: Schema.String,
|
|
86
|
+
type: Schema.String,
|
|
87
|
+
zone: Schema.Struct({
|
|
88
|
+
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
89
|
+
}),
|
|
90
|
+
}).pipe(
|
|
91
|
+
Schema.encodeKeys({
|
|
92
|
+
id: "id",
|
|
93
|
+
action: "action",
|
|
94
|
+
amount: "amount",
|
|
95
|
+
currency: "currency",
|
|
96
|
+
description: "description",
|
|
97
|
+
occurredAt: "occurred_at",
|
|
98
|
+
type: "type",
|
|
99
|
+
zone: "zone",
|
|
100
|
+
}),
|
|
101
|
+
),
|
|
102
|
+
),
|
|
103
|
+
resultInfo: Schema.Struct({
|
|
104
|
+
count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
105
|
+
page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
106
|
+
perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
107
|
+
totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
80
108
|
}).pipe(
|
|
81
109
|
Schema.encodeKeys({
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
description: "description",
|
|
87
|
-
occurredAt: "occurred_at",
|
|
88
|
-
type: "type",
|
|
89
|
-
zone: "zone",
|
|
110
|
+
count: "count",
|
|
111
|
+
page: "page",
|
|
112
|
+
perPage: "per_page",
|
|
113
|
+
totalCount: "total_count",
|
|
90
114
|
}),
|
|
91
115
|
),
|
|
116
|
+
}).pipe(
|
|
117
|
+
Schema.encodeKeys({ result: "result", resultInfo: "result_info" }),
|
|
92
118
|
) as unknown as Schema.Schema<ListBillingHistoriesResponse>;
|
|
93
119
|
|
|
94
120
|
export type ListBillingHistoriesError = DefaultErrors;
|
|
95
121
|
|
|
96
|
-
export const listBillingHistories: API.
|
|
122
|
+
export const listBillingHistories: API.PaginatedOperationMethod<
|
|
97
123
|
ListBillingHistoriesRequest,
|
|
98
124
|
ListBillingHistoriesResponse,
|
|
99
125
|
ListBillingHistoriesError,
|
|
100
126
|
Credentials | HttpClient.HttpClient
|
|
101
|
-
>
|
|
127
|
+
> & {
|
|
128
|
+
pages: (
|
|
129
|
+
input: ListBillingHistoriesRequest,
|
|
130
|
+
) => stream.Stream<
|
|
131
|
+
ListBillingHistoriesResponse,
|
|
132
|
+
ListBillingHistoriesError,
|
|
133
|
+
Credentials | HttpClient.HttpClient
|
|
134
|
+
>;
|
|
135
|
+
items: (input: ListBillingHistoriesRequest) => stream.Stream<
|
|
136
|
+
{
|
|
137
|
+
id: string;
|
|
138
|
+
action: string;
|
|
139
|
+
amount: number;
|
|
140
|
+
currency: string;
|
|
141
|
+
description: string;
|
|
142
|
+
occurredAt: string;
|
|
143
|
+
type: string;
|
|
144
|
+
zone: { name?: string | null };
|
|
145
|
+
},
|
|
146
|
+
ListBillingHistoriesError,
|
|
147
|
+
Credentials | HttpClient.HttpClient
|
|
148
|
+
>;
|
|
149
|
+
} = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
|
|
102
150
|
input: ListBillingHistoriesRequest,
|
|
103
151
|
output: ListBillingHistoriesResponse,
|
|
104
152
|
errors: [],
|
|
153
|
+
pagination: {
|
|
154
|
+
mode: "page",
|
|
155
|
+
inputToken: "page",
|
|
156
|
+
outputToken: "resultInfo.page",
|
|
157
|
+
items: "result",
|
|
158
|
+
pageSize: "perPage",
|
|
159
|
+
} as const,
|
|
105
160
|
}));
|
|
106
161
|
|
|
107
162
|
// =============================================================================
|
|
@@ -211,49 +266,53 @@ export const GetBillingProfileResponse =
|
|
|
211
266
|
validationCode: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
212
267
|
vat: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
213
268
|
zipcode: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
214
|
-
})
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
269
|
+
})
|
|
270
|
+
.pipe(
|
|
271
|
+
Schema.encodeKeys({
|
|
272
|
+
id: "id",
|
|
273
|
+
accountType: "account_type",
|
|
274
|
+
address: "address",
|
|
275
|
+
address2: "address2",
|
|
276
|
+
balance: "balance",
|
|
277
|
+
cardExpiryMonth: "card_expiry_month",
|
|
278
|
+
cardExpiryYear: "card_expiry_year",
|
|
279
|
+
cardNumber: "card_number",
|
|
280
|
+
city: "city",
|
|
281
|
+
company: "company",
|
|
282
|
+
country: "country",
|
|
283
|
+
createdOn: "created_on",
|
|
284
|
+
deviceData: "device_data",
|
|
285
|
+
editedOn: "edited_on",
|
|
286
|
+
enterpriseBillingEmail: "enterprise_billing_email",
|
|
287
|
+
enterprisePrimaryEmail: "enterprise_primary_email",
|
|
288
|
+
firstName: "first_name",
|
|
289
|
+
isPartner: "is_partner",
|
|
290
|
+
lastName: "last_name",
|
|
291
|
+
nextBillDate: "next_bill_date",
|
|
292
|
+
paymentAddress: "payment_address",
|
|
293
|
+
paymentAddress2: "payment_address2",
|
|
294
|
+
paymentCity: "payment_city",
|
|
295
|
+
paymentCountry: "payment_country",
|
|
296
|
+
paymentEmail: "payment_email",
|
|
297
|
+
paymentFirstName: "payment_first_name",
|
|
298
|
+
paymentGateway: "payment_gateway",
|
|
299
|
+
paymentLastName: "payment_last_name",
|
|
300
|
+
paymentNonce: "payment_nonce",
|
|
301
|
+
paymentState: "payment_state",
|
|
302
|
+
paymentZipcode: "payment_zipcode",
|
|
303
|
+
primaryEmail: "primary_email",
|
|
304
|
+
state: "state",
|
|
305
|
+
taxIdType: "tax_id_type",
|
|
306
|
+
telephone: "telephone",
|
|
307
|
+
useLegacy: "use_legacy",
|
|
308
|
+
validationCode: "validation_code",
|
|
309
|
+
vat: "vat",
|
|
310
|
+
zipcode: "zipcode",
|
|
311
|
+
}),
|
|
312
|
+
)
|
|
313
|
+
.pipe(
|
|
314
|
+
T.ResponsePath("result"),
|
|
315
|
+
) as unknown as Schema.Schema<GetBillingProfileResponse>;
|
|
257
316
|
|
|
258
317
|
export type GetBillingProfileError = DefaultErrors;
|
|
259
318
|
|
|
@@ -329,21 +388,25 @@ export const GetInviteResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
329
388
|
Schema.Null,
|
|
330
389
|
]),
|
|
331
390
|
),
|
|
332
|
-
})
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
)
|
|
391
|
+
})
|
|
392
|
+
.pipe(
|
|
393
|
+
Schema.encodeKeys({
|
|
394
|
+
invitedMemberId: "invited_member_id",
|
|
395
|
+
organizationId: "organization_id",
|
|
396
|
+
id: "id",
|
|
397
|
+
expiresOn: "expires_on",
|
|
398
|
+
invitedBy: "invited_by",
|
|
399
|
+
invitedMemberEmail: "invited_member_email",
|
|
400
|
+
invitedOn: "invited_on",
|
|
401
|
+
organizationIsEnforcingTwofactor: "organization_is_enforcing_twofactor",
|
|
402
|
+
organizationName: "organization_name",
|
|
403
|
+
roles: "roles",
|
|
404
|
+
status: "status",
|
|
405
|
+
}),
|
|
406
|
+
)
|
|
407
|
+
.pipe(
|
|
408
|
+
T.ResponsePath("result"),
|
|
409
|
+
) as unknown as Schema.Schema<GetInviteResponse>;
|
|
347
410
|
|
|
348
411
|
export type GetInviteError = DefaultErrors;
|
|
349
412
|
|
|
@@ -366,74 +429,107 @@ export const ListInvitesRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
|
|
|
366
429
|
T.Http({ method: "GET", path: "/user/invites" }),
|
|
367
430
|
) as unknown as Schema.Schema<ListInvitesRequest>;
|
|
368
431
|
|
|
369
|
-
export
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
432
|
+
export interface ListInvitesResponse {
|
|
433
|
+
result: {
|
|
434
|
+
invitedMemberId: string | null;
|
|
435
|
+
organizationId: string;
|
|
436
|
+
id?: string | null;
|
|
437
|
+
expiresOn?: string | null;
|
|
438
|
+
invitedBy?: string | null;
|
|
439
|
+
invitedMemberEmail?: string | null;
|
|
440
|
+
invitedOn?: string | null;
|
|
441
|
+
organizationIsEnforcingTwofactor?: boolean | null;
|
|
442
|
+
organizationName?: string | null;
|
|
443
|
+
roles?: string[] | null;
|
|
444
|
+
status?: "pending" | "accepted" | "rejected" | "expired" | null;
|
|
445
|
+
}[];
|
|
446
|
+
}
|
|
382
447
|
|
|
383
|
-
export const ListInvitesResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.
|
|
384
|
-
Schema.
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
Schema.
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
Schema.
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
Schema.
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
Schema.
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
Schema.
|
|
405
|
-
Schema.
|
|
406
|
-
|
|
407
|
-
|
|
448
|
+
export const ListInvitesResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
449
|
+
result: Schema.Array(
|
|
450
|
+
Schema.Struct({
|
|
451
|
+
invitedMemberId: Schema.Union([Schema.String, Schema.Null]),
|
|
452
|
+
organizationId: Schema.String,
|
|
453
|
+
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
454
|
+
expiresOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
455
|
+
invitedBy: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
456
|
+
invitedMemberEmail: Schema.optional(
|
|
457
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
458
|
+
),
|
|
459
|
+
invitedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
460
|
+
organizationIsEnforcingTwofactor: Schema.optional(
|
|
461
|
+
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
462
|
+
),
|
|
463
|
+
organizationName: Schema.optional(
|
|
464
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
465
|
+
),
|
|
466
|
+
roles: Schema.optional(
|
|
467
|
+
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
468
|
+
),
|
|
469
|
+
status: Schema.optional(
|
|
470
|
+
Schema.Union([
|
|
471
|
+
Schema.Literals(["pending", "accepted", "rejected", "expired"]),
|
|
472
|
+
Schema.Null,
|
|
473
|
+
]),
|
|
474
|
+
),
|
|
475
|
+
}).pipe(
|
|
476
|
+
Schema.encodeKeys({
|
|
477
|
+
invitedMemberId: "invited_member_id",
|
|
478
|
+
organizationId: "organization_id",
|
|
479
|
+
id: "id",
|
|
480
|
+
expiresOn: "expires_on",
|
|
481
|
+
invitedBy: "invited_by",
|
|
482
|
+
invitedMemberEmail: "invited_member_email",
|
|
483
|
+
invitedOn: "invited_on",
|
|
484
|
+
organizationIsEnforcingTwofactor: "organization_is_enforcing_twofactor",
|
|
485
|
+
organizationName: "organization_name",
|
|
486
|
+
roles: "roles",
|
|
487
|
+
status: "status",
|
|
488
|
+
}),
|
|
408
489
|
),
|
|
409
|
-
}).pipe(
|
|
410
|
-
Schema.encodeKeys({
|
|
411
|
-
invitedMemberId: "invited_member_id",
|
|
412
|
-
organizationId: "organization_id",
|
|
413
|
-
id: "id",
|
|
414
|
-
expiresOn: "expires_on",
|
|
415
|
-
invitedBy: "invited_by",
|
|
416
|
-
invitedMemberEmail: "invited_member_email",
|
|
417
|
-
invitedOn: "invited_on",
|
|
418
|
-
organizationIsEnforcingTwofactor: "organization_is_enforcing_twofactor",
|
|
419
|
-
organizationName: "organization_name",
|
|
420
|
-
roles: "roles",
|
|
421
|
-
status: "status",
|
|
422
|
-
}),
|
|
423
490
|
),
|
|
424
|
-
) as unknown as Schema.Schema<ListInvitesResponse>;
|
|
491
|
+
}) as unknown as Schema.Schema<ListInvitesResponse>;
|
|
425
492
|
|
|
426
493
|
export type ListInvitesError = DefaultErrors;
|
|
427
494
|
|
|
428
|
-
export const listInvites: API.
|
|
495
|
+
export const listInvites: API.PaginatedOperationMethod<
|
|
429
496
|
ListInvitesRequest,
|
|
430
497
|
ListInvitesResponse,
|
|
431
498
|
ListInvitesError,
|
|
432
499
|
Credentials | HttpClient.HttpClient
|
|
433
|
-
>
|
|
500
|
+
> & {
|
|
501
|
+
pages: (
|
|
502
|
+
input: ListInvitesRequest,
|
|
503
|
+
) => stream.Stream<
|
|
504
|
+
ListInvitesResponse,
|
|
505
|
+
ListInvitesError,
|
|
506
|
+
Credentials | HttpClient.HttpClient
|
|
507
|
+
>;
|
|
508
|
+
items: (input: ListInvitesRequest) => stream.Stream<
|
|
509
|
+
{
|
|
510
|
+
invitedMemberId: string | null;
|
|
511
|
+
organizationId: string;
|
|
512
|
+
id?: string | null;
|
|
513
|
+
expiresOn?: string | null;
|
|
514
|
+
invitedBy?: string | null;
|
|
515
|
+
invitedMemberEmail?: string | null;
|
|
516
|
+
invitedOn?: string | null;
|
|
517
|
+
organizationIsEnforcingTwofactor?: boolean | null;
|
|
518
|
+
organizationName?: string | null;
|
|
519
|
+
roles?: string[] | null;
|
|
520
|
+
status?: "pending" | "accepted" | "rejected" | "expired" | null;
|
|
521
|
+
},
|
|
522
|
+
ListInvitesError,
|
|
523
|
+
Credentials | HttpClient.HttpClient
|
|
524
|
+
>;
|
|
525
|
+
} = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
|
|
434
526
|
input: ListInvitesRequest,
|
|
435
527
|
output: ListInvitesResponse,
|
|
436
528
|
errors: [],
|
|
529
|
+
pagination: {
|
|
530
|
+
mode: "single",
|
|
531
|
+
items: "result",
|
|
532
|
+
} as const,
|
|
437
533
|
}));
|
|
438
534
|
|
|
439
535
|
export interface PatchInviteRequest {
|
|
@@ -496,21 +592,25 @@ export const PatchInviteResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
496
592
|
Schema.Null,
|
|
497
593
|
]),
|
|
498
594
|
),
|
|
499
|
-
})
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
)
|
|
595
|
+
})
|
|
596
|
+
.pipe(
|
|
597
|
+
Schema.encodeKeys({
|
|
598
|
+
invitedMemberId: "invited_member_id",
|
|
599
|
+
organizationId: "organization_id",
|
|
600
|
+
id: "id",
|
|
601
|
+
expiresOn: "expires_on",
|
|
602
|
+
invitedBy: "invited_by",
|
|
603
|
+
invitedMemberEmail: "invited_member_email",
|
|
604
|
+
invitedOn: "invited_on",
|
|
605
|
+
organizationIsEnforcingTwofactor: "organization_is_enforcing_twofactor",
|
|
606
|
+
organizationName: "organization_name",
|
|
607
|
+
roles: "roles",
|
|
608
|
+
status: "status",
|
|
609
|
+
}),
|
|
610
|
+
)
|
|
611
|
+
.pipe(
|
|
612
|
+
T.ResponsePath("result"),
|
|
613
|
+
) as unknown as Schema.Schema<PatchInviteResponse>;
|
|
514
614
|
|
|
515
615
|
export type PatchInviteError = DefaultErrors;
|
|
516
616
|
|
|
@@ -544,7 +644,9 @@ export const GetOrganizationRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
|
|
|
544
644
|
export type GetOrganizationResponse = unknown;
|
|
545
645
|
|
|
546
646
|
export const GetOrganizationResponse =
|
|
547
|
-
/*@__PURE__*/ /*#__PURE__*/ Schema.Unknown
|
|
647
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Unknown.pipe(
|
|
648
|
+
T.ResponsePath("result"),
|
|
649
|
+
) as unknown as Schema.Schema<GetOrganizationResponse>;
|
|
548
650
|
|
|
549
651
|
export type GetOrganizationError = DefaultErrors;
|
|
550
652
|
|
|
@@ -566,42 +668,93 @@ export const ListOrganizationsRequest =
|
|
|
566
668
|
T.Http({ method: "GET", path: "/user/organizations" }),
|
|
567
669
|
) as unknown as Schema.Schema<ListOrganizationsRequest>;
|
|
568
670
|
|
|
569
|
-
export
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
671
|
+
export interface ListOrganizationsResponse {
|
|
672
|
+
result: {
|
|
673
|
+
id?: string | null;
|
|
674
|
+
name?: string | null;
|
|
675
|
+
permissions?: string[] | null;
|
|
676
|
+
roles?: string[] | null;
|
|
677
|
+
status?: "member" | "invited" | null;
|
|
678
|
+
}[];
|
|
679
|
+
resultInfo: {
|
|
680
|
+
count?: number | null;
|
|
681
|
+
page?: number | null;
|
|
682
|
+
perPage?: number | null;
|
|
683
|
+
totalCount?: number | null;
|
|
684
|
+
};
|
|
685
|
+
}
|
|
576
686
|
|
|
577
687
|
export const ListOrganizationsResponse =
|
|
578
|
-
/*@__PURE__*/ /*#__PURE__*/ Schema.
|
|
579
|
-
Schema.
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
Schema.
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
Schema.
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
Schema.
|
|
590
|
-
|
|
591
|
-
|
|
688
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
689
|
+
result: Schema.Array(
|
|
690
|
+
Schema.Struct({
|
|
691
|
+
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
692
|
+
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
693
|
+
permissions: Schema.optional(
|
|
694
|
+
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
695
|
+
),
|
|
696
|
+
roles: Schema.optional(
|
|
697
|
+
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
698
|
+
),
|
|
699
|
+
status: Schema.optional(
|
|
700
|
+
Schema.Union([Schema.Literals(["member", "invited"]), Schema.Null]),
|
|
701
|
+
),
|
|
702
|
+
}),
|
|
703
|
+
),
|
|
704
|
+
resultInfo: Schema.Struct({
|
|
705
|
+
count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
706
|
+
page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
707
|
+
perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
708
|
+
totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
709
|
+
}).pipe(
|
|
710
|
+
Schema.encodeKeys({
|
|
711
|
+
count: "count",
|
|
712
|
+
page: "page",
|
|
713
|
+
perPage: "per_page",
|
|
714
|
+
totalCount: "total_count",
|
|
715
|
+
}),
|
|
716
|
+
),
|
|
717
|
+
}).pipe(
|
|
718
|
+
Schema.encodeKeys({ result: "result", resultInfo: "result_info" }),
|
|
592
719
|
) as unknown as Schema.Schema<ListOrganizationsResponse>;
|
|
593
720
|
|
|
594
721
|
export type ListOrganizationsError = DefaultErrors;
|
|
595
722
|
|
|
596
|
-
export const listOrganizations: API.
|
|
723
|
+
export const listOrganizations: API.PaginatedOperationMethod<
|
|
597
724
|
ListOrganizationsRequest,
|
|
598
725
|
ListOrganizationsResponse,
|
|
599
726
|
ListOrganizationsError,
|
|
600
727
|
Credentials | HttpClient.HttpClient
|
|
601
|
-
>
|
|
728
|
+
> & {
|
|
729
|
+
pages: (
|
|
730
|
+
input: ListOrganizationsRequest,
|
|
731
|
+
) => stream.Stream<
|
|
732
|
+
ListOrganizationsResponse,
|
|
733
|
+
ListOrganizationsError,
|
|
734
|
+
Credentials | HttpClient.HttpClient
|
|
735
|
+
>;
|
|
736
|
+
items: (input: ListOrganizationsRequest) => stream.Stream<
|
|
737
|
+
{
|
|
738
|
+
id?: string | null;
|
|
739
|
+
name?: string | null;
|
|
740
|
+
permissions?: string[] | null;
|
|
741
|
+
roles?: string[] | null;
|
|
742
|
+
status?: "member" | "invited" | null;
|
|
743
|
+
},
|
|
744
|
+
ListOrganizationsError,
|
|
745
|
+
Credentials | HttpClient.HttpClient
|
|
746
|
+
>;
|
|
747
|
+
} = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
|
|
602
748
|
input: ListOrganizationsRequest,
|
|
603
749
|
output: ListOrganizationsResponse,
|
|
604
750
|
errors: [],
|
|
751
|
+
pagination: {
|
|
752
|
+
mode: "page",
|
|
753
|
+
inputToken: "page",
|
|
754
|
+
outputToken: "resultInfo.page",
|
|
755
|
+
items: "result",
|
|
756
|
+
pageSize: "perPage",
|
|
757
|
+
} as const,
|
|
605
758
|
}));
|
|
606
759
|
|
|
607
760
|
export interface DeleteOrganizationRequest {
|
|
@@ -693,6 +846,8 @@ export type PutSubscriptionResponse = string | null;
|
|
|
693
846
|
|
|
694
847
|
export const PutSubscriptionResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Union(
|
|
695
848
|
[Schema.String, Schema.Null],
|
|
849
|
+
).pipe(
|
|
850
|
+
T.ResponsePath("result"),
|
|
696
851
|
) as unknown as Schema.Schema<PutSubscriptionResponse>;
|
|
697
852
|
|
|
698
853
|
export type PutSubscriptionError = DefaultErrors;
|
|
@@ -904,21 +1059,25 @@ export const CreateTokenResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
904
1059
|
]),
|
|
905
1060
|
),
|
|
906
1061
|
value: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
907
|
-
})
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
)
|
|
1062
|
+
})
|
|
1063
|
+
.pipe(
|
|
1064
|
+
Schema.encodeKeys({
|
|
1065
|
+
id: "id",
|
|
1066
|
+
condition: "condition",
|
|
1067
|
+
expiresOn: "expires_on",
|
|
1068
|
+
issuedOn: "issued_on",
|
|
1069
|
+
lastUsedOn: "last_used_on",
|
|
1070
|
+
modifiedOn: "modified_on",
|
|
1071
|
+
name: "name",
|
|
1072
|
+
notBefore: "not_before",
|
|
1073
|
+
policies: "policies",
|
|
1074
|
+
status: "status",
|
|
1075
|
+
value: "value",
|
|
1076
|
+
}),
|
|
1077
|
+
)
|
|
1078
|
+
.pipe(
|
|
1079
|
+
T.ResponsePath("result"),
|
|
1080
|
+
) as unknown as Schema.Schema<CreateTokenResponse>;
|
|
922
1081
|
|
|
923
1082
|
export type CreateTokenError = DefaultErrors;
|
|
924
1083
|
|
|
@@ -1012,7 +1171,9 @@ export interface DeleteTokenResponse {
|
|
|
1012
1171
|
|
|
1013
1172
|
export const DeleteTokenResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1014
1173
|
id: Schema.String,
|
|
1015
|
-
})
|
|
1174
|
+
}).pipe(
|
|
1175
|
+
T.ResponsePath("result"),
|
|
1176
|
+
) as unknown as Schema.Schema<DeleteTokenResponse>;
|
|
1016
1177
|
|
|
1017
1178
|
export type DeleteTokenError = DefaultErrors;
|
|
1018
1179
|
|
|
@@ -1051,14 +1212,18 @@ export const VerifyTokenResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
1051
1212
|
status: Schema.Literals(["active", "disabled", "expired"]),
|
|
1052
1213
|
expiresOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1053
1214
|
notBefore: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1054
|
-
})
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
)
|
|
1215
|
+
})
|
|
1216
|
+
.pipe(
|
|
1217
|
+
Schema.encodeKeys({
|
|
1218
|
+
id: "id",
|
|
1219
|
+
status: "status",
|
|
1220
|
+
expiresOn: "expires_on",
|
|
1221
|
+
notBefore: "not_before",
|
|
1222
|
+
}),
|
|
1223
|
+
)
|
|
1224
|
+
.pipe(
|
|
1225
|
+
T.ResponsePath("result"),
|
|
1226
|
+
) as unknown as Schema.Schema<VerifyTokenResponse>;
|
|
1062
1227
|
|
|
1063
1228
|
export type VerifyTokenError = DefaultErrors;
|
|
1064
1229
|
|
|
@@ -1084,51 +1249,83 @@ export const ListTokenPermissionGroupsRequest =
|
|
|
1084
1249
|
T.Http({ method: "GET", path: "/user/tokens/permission_groups" }),
|
|
1085
1250
|
) as unknown as Schema.Schema<ListTokenPermissionGroupsRequest>;
|
|
1086
1251
|
|
|
1087
|
-
export
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1252
|
+
export interface ListTokenPermissionGroupsResponse {
|
|
1253
|
+
result: {
|
|
1254
|
+
id?: string | null;
|
|
1255
|
+
name?: string | null;
|
|
1256
|
+
scopes?:
|
|
1257
|
+
| (
|
|
1258
|
+
| "com.cloudflare.api.account"
|
|
1259
|
+
| "com.cloudflare.api.account.zone"
|
|
1260
|
+
| "com.cloudflare.api.user"
|
|
1261
|
+
| "com.cloudflare.edge.r2.bucket"
|
|
1262
|
+
)[]
|
|
1263
|
+
| null;
|
|
1264
|
+
}[];
|
|
1265
|
+
}
|
|
1099
1266
|
|
|
1100
1267
|
export const ListTokenPermissionGroupsResponse =
|
|
1101
|
-
/*@__PURE__*/ /*#__PURE__*/ Schema.
|
|
1102
|
-
Schema.
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
Schema.
|
|
1107
|
-
Schema.
|
|
1108
|
-
Schema.
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1268
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1269
|
+
result: Schema.Array(
|
|
1270
|
+
Schema.Struct({
|
|
1271
|
+
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1272
|
+
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1273
|
+
scopes: Schema.optional(
|
|
1274
|
+
Schema.Union([
|
|
1275
|
+
Schema.Array(
|
|
1276
|
+
Schema.Literals([
|
|
1277
|
+
"com.cloudflare.api.account",
|
|
1278
|
+
"com.cloudflare.api.account.zone",
|
|
1279
|
+
"com.cloudflare.api.user",
|
|
1280
|
+
"com.cloudflare.edge.r2.bucket",
|
|
1281
|
+
]),
|
|
1282
|
+
),
|
|
1283
|
+
Schema.Null,
|
|
1284
|
+
]),
|
|
1285
|
+
),
|
|
1286
|
+
}),
|
|
1287
|
+
),
|
|
1288
|
+
}) as unknown as Schema.Schema<ListTokenPermissionGroupsResponse>;
|
|
1120
1289
|
|
|
1121
1290
|
export type ListTokenPermissionGroupsError = DefaultErrors;
|
|
1122
1291
|
|
|
1123
|
-
export const listTokenPermissionGroups: API.
|
|
1292
|
+
export const listTokenPermissionGroups: API.PaginatedOperationMethod<
|
|
1124
1293
|
ListTokenPermissionGroupsRequest,
|
|
1125
1294
|
ListTokenPermissionGroupsResponse,
|
|
1126
1295
|
ListTokenPermissionGroupsError,
|
|
1127
1296
|
Credentials | HttpClient.HttpClient
|
|
1128
|
-
>
|
|
1297
|
+
> & {
|
|
1298
|
+
pages: (
|
|
1299
|
+
input: ListTokenPermissionGroupsRequest,
|
|
1300
|
+
) => stream.Stream<
|
|
1301
|
+
ListTokenPermissionGroupsResponse,
|
|
1302
|
+
ListTokenPermissionGroupsError,
|
|
1303
|
+
Credentials | HttpClient.HttpClient
|
|
1304
|
+
>;
|
|
1305
|
+
items: (input: ListTokenPermissionGroupsRequest) => stream.Stream<
|
|
1306
|
+
{
|
|
1307
|
+
id?: string | null;
|
|
1308
|
+
name?: string | null;
|
|
1309
|
+
scopes?:
|
|
1310
|
+
| (
|
|
1311
|
+
| "com.cloudflare.api.account"
|
|
1312
|
+
| "com.cloudflare.api.account.zone"
|
|
1313
|
+
| "com.cloudflare.api.user"
|
|
1314
|
+
| "com.cloudflare.edge.r2.bucket"
|
|
1315
|
+
)[]
|
|
1316
|
+
| null;
|
|
1317
|
+
},
|
|
1318
|
+
ListTokenPermissionGroupsError,
|
|
1319
|
+
Credentials | HttpClient.HttpClient
|
|
1320
|
+
>;
|
|
1321
|
+
} = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
|
|
1129
1322
|
input: ListTokenPermissionGroupsRequest,
|
|
1130
1323
|
output: ListTokenPermissionGroupsResponse,
|
|
1131
1324
|
errors: [],
|
|
1325
|
+
pagination: {
|
|
1326
|
+
mode: "single",
|
|
1327
|
+
items: "result",
|
|
1328
|
+
} as const,
|
|
1132
1329
|
}));
|
|
1133
1330
|
|
|
1134
1331
|
// =============================================================================
|
|
@@ -1232,24 +1429,26 @@ export const GetUserResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
1232
1429
|
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
1233
1430
|
),
|
|
1234
1431
|
zipcode: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1235
|
-
})
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
)
|
|
1432
|
+
})
|
|
1433
|
+
.pipe(
|
|
1434
|
+
Schema.encodeKeys({
|
|
1435
|
+
id: "id",
|
|
1436
|
+
betas: "betas",
|
|
1437
|
+
country: "country",
|
|
1438
|
+
firstName: "first_name",
|
|
1439
|
+
hasBusinessZones: "has_business_zones",
|
|
1440
|
+
hasEnterpriseZones: "has_enterprise_zones",
|
|
1441
|
+
hasProZones: "has_pro_zones",
|
|
1442
|
+
lastName: "last_name",
|
|
1443
|
+
organizations: "organizations",
|
|
1444
|
+
suspended: "suspended",
|
|
1445
|
+
telephone: "telephone",
|
|
1446
|
+
twoFactorAuthenticationEnabled: "two_factor_authentication_enabled",
|
|
1447
|
+
twoFactorAuthenticationLocked: "two_factor_authentication_locked",
|
|
1448
|
+
zipcode: "zipcode",
|
|
1449
|
+
}),
|
|
1450
|
+
)
|
|
1451
|
+
.pipe(T.ResponsePath("result")) as unknown as Schema.Schema<GetUserResponse>;
|
|
1253
1452
|
|
|
1254
1453
|
export type GetUserError = DefaultErrors;
|
|
1255
1454
|
|
|
@@ -1351,24 +1550,28 @@ export const PatchUserResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
1351
1550
|
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
1352
1551
|
),
|
|
1353
1552
|
zipcode: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1354
|
-
})
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
)
|
|
1553
|
+
})
|
|
1554
|
+
.pipe(
|
|
1555
|
+
Schema.encodeKeys({
|
|
1556
|
+
id: "id",
|
|
1557
|
+
betas: "betas",
|
|
1558
|
+
country: "country",
|
|
1559
|
+
firstName: "first_name",
|
|
1560
|
+
hasBusinessZones: "has_business_zones",
|
|
1561
|
+
hasEnterpriseZones: "has_enterprise_zones",
|
|
1562
|
+
hasProZones: "has_pro_zones",
|
|
1563
|
+
lastName: "last_name",
|
|
1564
|
+
organizations: "organizations",
|
|
1565
|
+
suspended: "suspended",
|
|
1566
|
+
telephone: "telephone",
|
|
1567
|
+
twoFactorAuthenticationEnabled: "two_factor_authentication_enabled",
|
|
1568
|
+
twoFactorAuthenticationLocked: "two_factor_authentication_locked",
|
|
1569
|
+
zipcode: "zipcode",
|
|
1570
|
+
}),
|
|
1571
|
+
)
|
|
1572
|
+
.pipe(
|
|
1573
|
+
T.ResponsePath("result"),
|
|
1574
|
+
) as unknown as Schema.Schema<PatchUserResponse>;
|
|
1372
1575
|
|
|
1373
1576
|
export type PatchUserError = DefaultErrors;
|
|
1374
1577
|
|