@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/lib/services/pages.js
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
* Generated from Cloudflare TypeScript SDK.
|
|
5
5
|
* DO NOT EDIT - regenerate with: bun scripts/generate.ts --service pages
|
|
6
6
|
*/
|
|
7
|
+
import * as stream from "effect/Stream";
|
|
7
8
|
import * as Schema from "effect/Schema";
|
|
8
9
|
import * as API from "../client/api.js";
|
|
9
10
|
import * as T from "../traits.js";
|
|
@@ -18,7 +19,7 @@ export const PurgeBuildCacheProjectRequest =
|
|
|
18
19
|
path: "/accounts/{account_id}/pages/projects/{projectName}/purge_build_cache",
|
|
19
20
|
}));
|
|
20
21
|
export const PurgeBuildCacheProjectResponse =
|
|
21
|
-
/*@__PURE__*/ /*#__PURE__*/ Schema.Unknown;
|
|
22
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Unknown.pipe(T.ResponsePath("result"));
|
|
22
23
|
export const purgeBuildCacheProject = API.make(() => ({
|
|
23
24
|
input: PurgeBuildCacheProjectRequest,
|
|
24
25
|
output: PurgeBuildCacheProjectResponse,
|
|
@@ -423,7 +424,8 @@ export const GetProjectResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
423
424
|
Schema.Null,
|
|
424
425
|
])),
|
|
425
426
|
subdomain: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
426
|
-
})
|
|
427
|
+
})
|
|
428
|
+
.pipe(Schema.encodeKeys({
|
|
427
429
|
id: "id",
|
|
428
430
|
canonicalDeployment: "canonical_deployment",
|
|
429
431
|
createdOn: "created_on",
|
|
@@ -440,7 +442,8 @@ export const GetProjectResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
440
442
|
domains: "domains",
|
|
441
443
|
source: "source",
|
|
442
444
|
subdomain: "subdomain",
|
|
443
|
-
}))
|
|
445
|
+
}))
|
|
446
|
+
.pipe(T.ResponsePath("result"));
|
|
444
447
|
export const getProject = API.make(() => ({
|
|
445
448
|
input: GetProjectRequest,
|
|
446
449
|
output: GetProjectResponse,
|
|
@@ -449,420 +452,440 @@ export const getProject = API.make(() => ({
|
|
|
449
452
|
export const ListProjectsRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
450
453
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
451
454
|
}).pipe(T.Http({ method: "GET", path: "/accounts/{account_id}/pages/projects" }));
|
|
452
|
-
export const ListProjectsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
Schema.
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
webAnalyticsTag: "web_analytics_tag",
|
|
467
|
-
webAnalyticsToken: "web_analytics_token",
|
|
468
|
-
buildCaching: "build_caching",
|
|
469
|
-
buildCommand: "build_command",
|
|
470
|
-
destinationDir: "destination_dir",
|
|
471
|
-
rootDir: "root_dir",
|
|
472
|
-
})),
|
|
473
|
-
createdOn: Schema.String,
|
|
474
|
-
deploymentTrigger: Schema.Struct({
|
|
475
|
-
metadata: Schema.Struct({
|
|
476
|
-
branch: Schema.String,
|
|
477
|
-
commitDirty: Schema.Boolean,
|
|
478
|
-
commitHash: Schema.String,
|
|
479
|
-
commitMessage: Schema.String,
|
|
480
|
-
}).pipe(Schema.encodeKeys({
|
|
481
|
-
branch: "branch",
|
|
482
|
-
commitDirty: "commit_dirty",
|
|
483
|
-
commitHash: "commit_hash",
|
|
484
|
-
commitMessage: "commit_message",
|
|
485
|
-
})),
|
|
486
|
-
type: Schema.Literals(["github:push", "ad_hoc", "deploy_hook"]),
|
|
487
|
-
}),
|
|
488
|
-
envVars: Schema.Union([Schema.Struct({}), Schema.Null]),
|
|
489
|
-
environment: Schema.Literals(["preview", "production"]),
|
|
490
|
-
isSkipped: Schema.Boolean,
|
|
491
|
-
latestStage: Schema.Unknown,
|
|
492
|
-
modifiedOn: Schema.String,
|
|
493
|
-
projectId: Schema.String,
|
|
494
|
-
projectName: Schema.String,
|
|
495
|
-
shortId: Schema.String,
|
|
496
|
-
source: Schema.Struct({
|
|
497
|
-
config: Schema.Struct({
|
|
498
|
-
deploymentsEnabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
499
|
-
owner: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
500
|
-
ownerId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
501
|
-
pathExcludes: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
502
|
-
pathIncludes: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
503
|
-
prCommentsEnabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
504
|
-
previewBranchExcludes: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
505
|
-
previewBranchIncludes: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
506
|
-
previewDeploymentSetting: Schema.optional(Schema.Union([
|
|
507
|
-
Schema.Literals(["all", "none", "custom"]),
|
|
508
|
-
Schema.Null,
|
|
509
|
-
])),
|
|
510
|
-
productionBranch: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
511
|
-
productionDeploymentsEnabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
512
|
-
repoId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
513
|
-
repoName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
455
|
+
export const ListProjectsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
456
|
+
result: Schema.Array(Schema.Struct({
|
|
457
|
+
id: Schema.String,
|
|
458
|
+
canonicalDeployment: Schema.Union([
|
|
459
|
+
Schema.Struct({
|
|
460
|
+
id: Schema.String,
|
|
461
|
+
aliases: Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
462
|
+
buildConfig: Schema.Struct({
|
|
463
|
+
webAnalyticsTag: Schema.Union([Schema.String, Schema.Null]),
|
|
464
|
+
webAnalyticsToken: Schema.Union([Schema.String, Schema.Null]),
|
|
465
|
+
buildCaching: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
466
|
+
buildCommand: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
467
|
+
destinationDir: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
468
|
+
rootDir: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
514
469
|
}).pipe(Schema.encodeKeys({
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
previewBranchExcludes: "preview_branch_excludes",
|
|
522
|
-
previewBranchIncludes: "preview_branch_includes",
|
|
523
|
-
previewDeploymentSetting: "preview_deployment_setting",
|
|
524
|
-
productionBranch: "production_branch",
|
|
525
|
-
productionDeploymentsEnabled: "production_deployments_enabled",
|
|
526
|
-
repoId: "repo_id",
|
|
527
|
-
repoName: "repo_name",
|
|
470
|
+
webAnalyticsTag: "web_analytics_tag",
|
|
471
|
+
webAnalyticsToken: "web_analytics_token",
|
|
472
|
+
buildCaching: "build_caching",
|
|
473
|
+
buildCommand: "build_command",
|
|
474
|
+
destinationDir: "destination_dir",
|
|
475
|
+
rootDir: "root_dir",
|
|
528
476
|
})),
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
latestStage: "latest_stage",
|
|
544
|
-
modifiedOn: "modified_on",
|
|
545
|
-
projectId: "project_id",
|
|
546
|
-
projectName: "project_name",
|
|
547
|
-
shortId: "short_id",
|
|
548
|
-
source: "source",
|
|
549
|
-
stages: "stages",
|
|
550
|
-
url: "url",
|
|
551
|
-
usesFunctions: "uses_functions",
|
|
552
|
-
})),
|
|
553
|
-
Schema.Null,
|
|
554
|
-
]),
|
|
555
|
-
createdOn: Schema.String,
|
|
556
|
-
deploymentConfigs: Schema.Struct({
|
|
557
|
-
preview: Schema.Struct({
|
|
558
|
-
aiBindings: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
|
|
559
|
-
alwaysUseLatestCompatibilityDate: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
560
|
-
analyticsEngineDatasets: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
|
|
561
|
-
browsers: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
|
|
562
|
-
buildImageMajorVersion: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
563
|
-
compatibilityDate: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
564
|
-
compatibilityFlags: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
565
|
-
d1Databases: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
|
|
566
|
-
durableObjectNamespaces: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
|
|
567
|
-
envVars: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
|
|
568
|
-
failOpen: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
569
|
-
hyperdriveBindings: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
|
|
570
|
-
kvNamespaces: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
|
|
571
|
-
limits: Schema.optional(Schema.Union([
|
|
572
|
-
Schema.Struct({
|
|
573
|
-
cpuMs: Schema.Number,
|
|
574
|
-
}).pipe(Schema.encodeKeys({ cpuMs: "cpu_ms" })),
|
|
575
|
-
Schema.Null,
|
|
576
|
-
])),
|
|
577
|
-
mtlsCertificates: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
|
|
578
|
-
placement: Schema.optional(Schema.Union([
|
|
579
|
-
Schema.Struct({
|
|
580
|
-
mode: Schema.String,
|
|
477
|
+
createdOn: Schema.String,
|
|
478
|
+
deploymentTrigger: Schema.Struct({
|
|
479
|
+
metadata: Schema.Struct({
|
|
480
|
+
branch: Schema.String,
|
|
481
|
+
commitDirty: Schema.Boolean,
|
|
482
|
+
commitHash: Schema.String,
|
|
483
|
+
commitMessage: Schema.String,
|
|
484
|
+
}).pipe(Schema.encodeKeys({
|
|
485
|
+
branch: "branch",
|
|
486
|
+
commitDirty: "commit_dirty",
|
|
487
|
+
commitHash: "commit_hash",
|
|
488
|
+
commitMessage: "commit_message",
|
|
489
|
+
})),
|
|
490
|
+
type: Schema.Literals(["github:push", "ad_hoc", "deploy_hook"]),
|
|
581
491
|
}),
|
|
582
|
-
Schema.Null,
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
Schema.
|
|
589
|
-
Schema.
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
compatibilityFlags: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
625
|
-
d1Databases: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
|
|
626
|
-
durableObjectNamespaces: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
|
|
627
|
-
envVars: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
|
|
628
|
-
failOpen: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
629
|
-
hyperdriveBindings: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
|
|
630
|
-
kvNamespaces: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
|
|
631
|
-
limits: Schema.optional(Schema.Union([
|
|
632
|
-
Schema.Struct({
|
|
633
|
-
cpuMs: Schema.Number,
|
|
634
|
-
}).pipe(Schema.encodeKeys({ cpuMs: "cpu_ms" })),
|
|
635
|
-
Schema.Null,
|
|
636
|
-
])),
|
|
637
|
-
mtlsCertificates: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
|
|
638
|
-
placement: Schema.optional(Schema.Union([
|
|
639
|
-
Schema.Struct({
|
|
640
|
-
mode: Schema.String,
|
|
492
|
+
envVars: Schema.Union([Schema.Struct({}), Schema.Null]),
|
|
493
|
+
environment: Schema.Literals(["preview", "production"]),
|
|
494
|
+
isSkipped: Schema.Boolean,
|
|
495
|
+
latestStage: Schema.Unknown,
|
|
496
|
+
modifiedOn: Schema.String,
|
|
497
|
+
projectId: Schema.String,
|
|
498
|
+
projectName: Schema.String,
|
|
499
|
+
shortId: Schema.String,
|
|
500
|
+
source: Schema.Struct({
|
|
501
|
+
config: Schema.Struct({
|
|
502
|
+
deploymentsEnabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
503
|
+
owner: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
504
|
+
ownerId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
505
|
+
pathExcludes: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
506
|
+
pathIncludes: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
507
|
+
prCommentsEnabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
508
|
+
previewBranchExcludes: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
509
|
+
previewBranchIncludes: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
510
|
+
previewDeploymentSetting: Schema.optional(Schema.Union([
|
|
511
|
+
Schema.Literals(["all", "none", "custom"]),
|
|
512
|
+
Schema.Null,
|
|
513
|
+
])),
|
|
514
|
+
productionBranch: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
515
|
+
productionDeploymentsEnabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
516
|
+
repoId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
517
|
+
repoName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
518
|
+
}).pipe(Schema.encodeKeys({
|
|
519
|
+
deploymentsEnabled: "deployments_enabled",
|
|
520
|
+
owner: "owner",
|
|
521
|
+
ownerId: "owner_id",
|
|
522
|
+
pathExcludes: "path_excludes",
|
|
523
|
+
pathIncludes: "path_includes",
|
|
524
|
+
prCommentsEnabled: "pr_comments_enabled",
|
|
525
|
+
previewBranchExcludes: "preview_branch_excludes",
|
|
526
|
+
previewBranchIncludes: "preview_branch_includes",
|
|
527
|
+
previewDeploymentSetting: "preview_deployment_setting",
|
|
528
|
+
productionBranch: "production_branch",
|
|
529
|
+
productionDeploymentsEnabled: "production_deployments_enabled",
|
|
530
|
+
repoId: "repo_id",
|
|
531
|
+
repoName: "repo_name",
|
|
532
|
+
})),
|
|
533
|
+
type: Schema.Literals(["github", "gitlab"]),
|
|
641
534
|
}),
|
|
642
|
-
Schema.
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
r2Buckets: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
|
|
646
|
-
services: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
|
|
647
|
-
usageModel: Schema.optional(Schema.Union([
|
|
648
|
-
Schema.Literals(["standard", "bundled", "unbound"]),
|
|
649
|
-
Schema.Null,
|
|
650
|
-
])),
|
|
651
|
-
vectorizeBindings: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
|
|
652
|
-
wranglerConfigHash: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
653
|
-
}).pipe(Schema.encodeKeys({
|
|
654
|
-
aiBindings: "ai_bindings",
|
|
655
|
-
alwaysUseLatestCompatibilityDate: "always_use_latest_compatibility_date",
|
|
656
|
-
analyticsEngineDatasets: "analytics_engine_datasets",
|
|
657
|
-
browsers: "browsers",
|
|
658
|
-
buildImageMajorVersion: "build_image_major_version",
|
|
659
|
-
compatibilityDate: "compatibility_date",
|
|
660
|
-
compatibilityFlags: "compatibility_flags",
|
|
661
|
-
d1Databases: "d1_databases",
|
|
662
|
-
durableObjectNamespaces: "durable_object_namespaces",
|
|
663
|
-
envVars: "env_vars",
|
|
664
|
-
failOpen: "fail_open",
|
|
665
|
-
hyperdriveBindings: "hyperdrive_bindings",
|
|
666
|
-
kvNamespaces: "kv_namespaces",
|
|
667
|
-
limits: "limits",
|
|
668
|
-
mtlsCertificates: "mtls_certificates",
|
|
669
|
-
placement: "placement",
|
|
670
|
-
queueProducers: "queue_producers",
|
|
671
|
-
r2Buckets: "r2_buckets",
|
|
672
|
-
services: "services",
|
|
673
|
-
usageModel: "usage_model",
|
|
674
|
-
vectorizeBindings: "vectorize_bindings",
|
|
675
|
-
wranglerConfigHash: "wrangler_config_hash",
|
|
676
|
-
})),
|
|
677
|
-
}),
|
|
678
|
-
framework: Schema.String,
|
|
679
|
-
frameworkVersion: Schema.String,
|
|
680
|
-
latestDeployment: Schema.Union([
|
|
681
|
-
Schema.Struct({
|
|
682
|
-
id: Schema.String,
|
|
683
|
-
aliases: Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
684
|
-
buildConfig: Schema.Struct({
|
|
685
|
-
webAnalyticsTag: Schema.Union([Schema.String, Schema.Null]),
|
|
686
|
-
webAnalyticsToken: Schema.Union([Schema.String, Schema.Null]),
|
|
687
|
-
buildCaching: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
688
|
-
buildCommand: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
689
|
-
destinationDir: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
690
|
-
rootDir: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
535
|
+
stages: Schema.Array(Schema.Unknown),
|
|
536
|
+
url: Schema.String,
|
|
537
|
+
usesFunctions: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
691
538
|
}).pipe(Schema.encodeKeys({
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
539
|
+
id: "id",
|
|
540
|
+
aliases: "aliases",
|
|
541
|
+
buildConfig: "build_config",
|
|
542
|
+
createdOn: "created_on",
|
|
543
|
+
deploymentTrigger: "deployment_trigger",
|
|
544
|
+
envVars: "env_vars",
|
|
545
|
+
environment: "environment",
|
|
546
|
+
isSkipped: "is_skipped",
|
|
547
|
+
latestStage: "latest_stage",
|
|
548
|
+
modifiedOn: "modified_on",
|
|
549
|
+
projectId: "project_id",
|
|
550
|
+
projectName: "project_name",
|
|
551
|
+
shortId: "short_id",
|
|
552
|
+
source: "source",
|
|
553
|
+
stages: "stages",
|
|
554
|
+
url: "url",
|
|
555
|
+
usesFunctions: "uses_functions",
|
|
698
556
|
})),
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
})),
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
shortId: Schema.String,
|
|
722
|
-
source: Schema.Struct({
|
|
723
|
-
config: Schema.Struct({
|
|
724
|
-
deploymentsEnabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
725
|
-
owner: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
726
|
-
ownerId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
727
|
-
pathExcludes: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
728
|
-
pathIncludes: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
729
|
-
prCommentsEnabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
730
|
-
previewBranchExcludes: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
731
|
-
previewBranchIncludes: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
732
|
-
previewDeploymentSetting: Schema.optional(Schema.Union([
|
|
733
|
-
Schema.Literals(["all", "none", "custom"]),
|
|
734
|
-
Schema.Null,
|
|
735
|
-
])),
|
|
736
|
-
productionBranch: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
737
|
-
productionDeploymentsEnabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
738
|
-
repoId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
739
|
-
repoName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
740
|
-
}).pipe(Schema.encodeKeys({
|
|
741
|
-
deploymentsEnabled: "deployments_enabled",
|
|
742
|
-
owner: "owner",
|
|
743
|
-
ownerId: "owner_id",
|
|
744
|
-
pathExcludes: "path_excludes",
|
|
745
|
-
pathIncludes: "path_includes",
|
|
746
|
-
prCommentsEnabled: "pr_comments_enabled",
|
|
747
|
-
previewBranchExcludes: "preview_branch_excludes",
|
|
748
|
-
previewBranchIncludes: "preview_branch_includes",
|
|
749
|
-
previewDeploymentSetting: "preview_deployment_setting",
|
|
750
|
-
productionBranch: "production_branch",
|
|
751
|
-
productionDeploymentsEnabled: "production_deployments_enabled",
|
|
752
|
-
repoId: "repo_id",
|
|
753
|
-
repoName: "repo_name",
|
|
754
|
-
})),
|
|
755
|
-
type: Schema.Literals(["github", "gitlab"]),
|
|
756
|
-
}),
|
|
757
|
-
stages: Schema.Array(Schema.Unknown),
|
|
758
|
-
url: Schema.String,
|
|
759
|
-
usesFunctions: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
760
|
-
}).pipe(Schema.encodeKeys({
|
|
761
|
-
id: "id",
|
|
762
|
-
aliases: "aliases",
|
|
763
|
-
buildConfig: "build_config",
|
|
764
|
-
createdOn: "created_on",
|
|
765
|
-
deploymentTrigger: "deployment_trigger",
|
|
766
|
-
envVars: "env_vars",
|
|
767
|
-
environment: "environment",
|
|
768
|
-
isSkipped: "is_skipped",
|
|
769
|
-
latestStage: "latest_stage",
|
|
770
|
-
modifiedOn: "modified_on",
|
|
771
|
-
projectId: "project_id",
|
|
772
|
-
projectName: "project_name",
|
|
773
|
-
shortId: "short_id",
|
|
774
|
-
source: "source",
|
|
775
|
-
stages: "stages",
|
|
776
|
-
url: "url",
|
|
777
|
-
usesFunctions: "uses_functions",
|
|
778
|
-
})),
|
|
779
|
-
Schema.Null,
|
|
780
|
-
]),
|
|
781
|
-
name: Schema.String,
|
|
782
|
-
previewScriptName: Schema.String,
|
|
783
|
-
productionBranch: Schema.String,
|
|
784
|
-
productionScriptName: Schema.String,
|
|
785
|
-
usesFunctions: Schema.Union([Schema.Boolean, Schema.Null]),
|
|
786
|
-
buildConfig: Schema.optional(Schema.Union([
|
|
787
|
-
Schema.Struct({
|
|
788
|
-
webAnalyticsTag: Schema.Union([Schema.String, Schema.Null]),
|
|
789
|
-
webAnalyticsToken: Schema.Union([Schema.String, Schema.Null]),
|
|
790
|
-
buildCaching: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
791
|
-
buildCommand: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
792
|
-
destinationDir: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
793
|
-
rootDir: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
794
|
-
}).pipe(Schema.encodeKeys({
|
|
795
|
-
webAnalyticsTag: "web_analytics_tag",
|
|
796
|
-
webAnalyticsToken: "web_analytics_token",
|
|
797
|
-
buildCaching: "build_caching",
|
|
798
|
-
buildCommand: "build_command",
|
|
799
|
-
destinationDir: "destination_dir",
|
|
800
|
-
rootDir: "root_dir",
|
|
801
|
-
})),
|
|
802
|
-
Schema.Null,
|
|
803
|
-
])),
|
|
804
|
-
domains: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
805
|
-
source: Schema.optional(Schema.Union([
|
|
806
|
-
Schema.Struct({
|
|
807
|
-
config: Schema.Struct({
|
|
808
|
-
deploymentsEnabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
809
|
-
owner: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
810
|
-
ownerId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
811
|
-
pathExcludes: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
812
|
-
pathIncludes: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
813
|
-
prCommentsEnabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
814
|
-
previewBranchExcludes: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
815
|
-
previewBranchIncludes: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
816
|
-
previewDeploymentSetting: Schema.optional(Schema.Union([
|
|
817
|
-
Schema.Literals(["all", "none", "custom"]),
|
|
557
|
+
Schema.Null,
|
|
558
|
+
]),
|
|
559
|
+
createdOn: Schema.String,
|
|
560
|
+
deploymentConfigs: Schema.Struct({
|
|
561
|
+
preview: Schema.Struct({
|
|
562
|
+
aiBindings: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
|
|
563
|
+
alwaysUseLatestCompatibilityDate: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
564
|
+
analyticsEngineDatasets: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
|
|
565
|
+
browsers: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
|
|
566
|
+
buildImageMajorVersion: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
567
|
+
compatibilityDate: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
568
|
+
compatibilityFlags: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
569
|
+
d1Databases: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
|
|
570
|
+
durableObjectNamespaces: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
|
|
571
|
+
envVars: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
|
|
572
|
+
failOpen: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
573
|
+
hyperdriveBindings: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
|
|
574
|
+
kvNamespaces: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
|
|
575
|
+
limits: Schema.optional(Schema.Union([
|
|
576
|
+
Schema.Struct({
|
|
577
|
+
cpuMs: Schema.Number,
|
|
578
|
+
}).pipe(Schema.encodeKeys({ cpuMs: "cpu_ms" })),
|
|
818
579
|
Schema.Null,
|
|
819
580
|
])),
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
581
|
+
mtlsCertificates: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
|
|
582
|
+
placement: Schema.optional(Schema.Union([
|
|
583
|
+
Schema.Struct({
|
|
584
|
+
mode: Schema.String,
|
|
585
|
+
}),
|
|
586
|
+
Schema.Null,
|
|
587
|
+
])),
|
|
588
|
+
queueProducers: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
|
|
589
|
+
r2Buckets: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
|
|
590
|
+
services: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
|
|
591
|
+
usageModel: Schema.optional(Schema.Union([
|
|
592
|
+
Schema.Literals(["standard", "bundled", "unbound"]),
|
|
593
|
+
Schema.Null,
|
|
594
|
+
])),
|
|
595
|
+
vectorizeBindings: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
|
|
596
|
+
wranglerConfigHash: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
824
597
|
}).pipe(Schema.encodeKeys({
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
598
|
+
aiBindings: "ai_bindings",
|
|
599
|
+
alwaysUseLatestCompatibilityDate: "always_use_latest_compatibility_date",
|
|
600
|
+
analyticsEngineDatasets: "analytics_engine_datasets",
|
|
601
|
+
browsers: "browsers",
|
|
602
|
+
buildImageMajorVersion: "build_image_major_version",
|
|
603
|
+
compatibilityDate: "compatibility_date",
|
|
604
|
+
compatibilityFlags: "compatibility_flags",
|
|
605
|
+
d1Databases: "d1_databases",
|
|
606
|
+
durableObjectNamespaces: "durable_object_namespaces",
|
|
607
|
+
envVars: "env_vars",
|
|
608
|
+
failOpen: "fail_open",
|
|
609
|
+
hyperdriveBindings: "hyperdrive_bindings",
|
|
610
|
+
kvNamespaces: "kv_namespaces",
|
|
611
|
+
limits: "limits",
|
|
612
|
+
mtlsCertificates: "mtls_certificates",
|
|
613
|
+
placement: "placement",
|
|
614
|
+
queueProducers: "queue_producers",
|
|
615
|
+
r2Buckets: "r2_buckets",
|
|
616
|
+
services: "services",
|
|
617
|
+
usageModel: "usage_model",
|
|
618
|
+
vectorizeBindings: "vectorize_bindings",
|
|
619
|
+
wranglerConfigHash: "wrangler_config_hash",
|
|
620
|
+
})),
|
|
621
|
+
production: Schema.Struct({
|
|
622
|
+
aiBindings: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
|
|
623
|
+
alwaysUseLatestCompatibilityDate: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
624
|
+
analyticsEngineDatasets: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
|
|
625
|
+
browsers: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
|
|
626
|
+
buildImageMajorVersion: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
627
|
+
compatibilityDate: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
628
|
+
compatibilityFlags: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
629
|
+
d1Databases: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
|
|
630
|
+
durableObjectNamespaces: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
|
|
631
|
+
envVars: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
|
|
632
|
+
failOpen: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
633
|
+
hyperdriveBindings: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
|
|
634
|
+
kvNamespaces: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
|
|
635
|
+
limits: Schema.optional(Schema.Union([
|
|
636
|
+
Schema.Struct({
|
|
637
|
+
cpuMs: Schema.Number,
|
|
638
|
+
}).pipe(Schema.encodeKeys({ cpuMs: "cpu_ms" })),
|
|
639
|
+
Schema.Null,
|
|
640
|
+
])),
|
|
641
|
+
mtlsCertificates: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
|
|
642
|
+
placement: Schema.optional(Schema.Union([
|
|
643
|
+
Schema.Struct({
|
|
644
|
+
mode: Schema.String,
|
|
645
|
+
}),
|
|
646
|
+
Schema.Null,
|
|
647
|
+
])),
|
|
648
|
+
queueProducers: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
|
|
649
|
+
r2Buckets: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
|
|
650
|
+
services: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
|
|
651
|
+
usageModel: Schema.optional(Schema.Union([
|
|
652
|
+
Schema.Literals(["standard", "bundled", "unbound"]),
|
|
653
|
+
Schema.Null,
|
|
654
|
+
])),
|
|
655
|
+
vectorizeBindings: Schema.optional(Schema.Union([Schema.Struct({}), Schema.Null])),
|
|
656
|
+
wranglerConfigHash: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
657
|
+
}).pipe(Schema.encodeKeys({
|
|
658
|
+
aiBindings: "ai_bindings",
|
|
659
|
+
alwaysUseLatestCompatibilityDate: "always_use_latest_compatibility_date",
|
|
660
|
+
analyticsEngineDatasets: "analytics_engine_datasets",
|
|
661
|
+
browsers: "browsers",
|
|
662
|
+
buildImageMajorVersion: "build_image_major_version",
|
|
663
|
+
compatibilityDate: "compatibility_date",
|
|
664
|
+
compatibilityFlags: "compatibility_flags",
|
|
665
|
+
d1Databases: "d1_databases",
|
|
666
|
+
durableObjectNamespaces: "durable_object_namespaces",
|
|
667
|
+
envVars: "env_vars",
|
|
668
|
+
failOpen: "fail_open",
|
|
669
|
+
hyperdriveBindings: "hyperdrive_bindings",
|
|
670
|
+
kvNamespaces: "kv_namespaces",
|
|
671
|
+
limits: "limits",
|
|
672
|
+
mtlsCertificates: "mtls_certificates",
|
|
673
|
+
placement: "placement",
|
|
674
|
+
queueProducers: "queue_producers",
|
|
675
|
+
r2Buckets: "r2_buckets",
|
|
676
|
+
services: "services",
|
|
677
|
+
usageModel: "usage_model",
|
|
678
|
+
vectorizeBindings: "vectorize_bindings",
|
|
679
|
+
wranglerConfigHash: "wrangler_config_hash",
|
|
838
680
|
})),
|
|
839
|
-
type: Schema.Literals(["github", "gitlab"]),
|
|
840
681
|
}),
|
|
841
|
-
Schema.
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
}))
|
|
862
|
-
|
|
682
|
+
framework: Schema.String,
|
|
683
|
+
frameworkVersion: Schema.String,
|
|
684
|
+
latestDeployment: Schema.Union([
|
|
685
|
+
Schema.Struct({
|
|
686
|
+
id: Schema.String,
|
|
687
|
+
aliases: Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
688
|
+
buildConfig: Schema.Struct({
|
|
689
|
+
webAnalyticsTag: Schema.Union([Schema.String, Schema.Null]),
|
|
690
|
+
webAnalyticsToken: Schema.Union([Schema.String, Schema.Null]),
|
|
691
|
+
buildCaching: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
692
|
+
buildCommand: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
693
|
+
destinationDir: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
694
|
+
rootDir: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
695
|
+
}).pipe(Schema.encodeKeys({
|
|
696
|
+
webAnalyticsTag: "web_analytics_tag",
|
|
697
|
+
webAnalyticsToken: "web_analytics_token",
|
|
698
|
+
buildCaching: "build_caching",
|
|
699
|
+
buildCommand: "build_command",
|
|
700
|
+
destinationDir: "destination_dir",
|
|
701
|
+
rootDir: "root_dir",
|
|
702
|
+
})),
|
|
703
|
+
createdOn: Schema.String,
|
|
704
|
+
deploymentTrigger: Schema.Struct({
|
|
705
|
+
metadata: Schema.Struct({
|
|
706
|
+
branch: Schema.String,
|
|
707
|
+
commitDirty: Schema.Boolean,
|
|
708
|
+
commitHash: Schema.String,
|
|
709
|
+
commitMessage: Schema.String,
|
|
710
|
+
}).pipe(Schema.encodeKeys({
|
|
711
|
+
branch: "branch",
|
|
712
|
+
commitDirty: "commit_dirty",
|
|
713
|
+
commitHash: "commit_hash",
|
|
714
|
+
commitMessage: "commit_message",
|
|
715
|
+
})),
|
|
716
|
+
type: Schema.Literals(["github:push", "ad_hoc", "deploy_hook"]),
|
|
717
|
+
}),
|
|
718
|
+
envVars: Schema.Union([Schema.Struct({}), Schema.Null]),
|
|
719
|
+
environment: Schema.Literals(["preview", "production"]),
|
|
720
|
+
isSkipped: Schema.Boolean,
|
|
721
|
+
latestStage: Schema.Unknown,
|
|
722
|
+
modifiedOn: Schema.String,
|
|
723
|
+
projectId: Schema.String,
|
|
724
|
+
projectName: Schema.String,
|
|
725
|
+
shortId: Schema.String,
|
|
726
|
+
source: Schema.Struct({
|
|
727
|
+
config: Schema.Struct({
|
|
728
|
+
deploymentsEnabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
729
|
+
owner: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
730
|
+
ownerId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
731
|
+
pathExcludes: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
732
|
+
pathIncludes: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
733
|
+
prCommentsEnabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
734
|
+
previewBranchExcludes: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
735
|
+
previewBranchIncludes: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
736
|
+
previewDeploymentSetting: Schema.optional(Schema.Union([
|
|
737
|
+
Schema.Literals(["all", "none", "custom"]),
|
|
738
|
+
Schema.Null,
|
|
739
|
+
])),
|
|
740
|
+
productionBranch: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
741
|
+
productionDeploymentsEnabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
742
|
+
repoId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
743
|
+
repoName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
744
|
+
}).pipe(Schema.encodeKeys({
|
|
745
|
+
deploymentsEnabled: "deployments_enabled",
|
|
746
|
+
owner: "owner",
|
|
747
|
+
ownerId: "owner_id",
|
|
748
|
+
pathExcludes: "path_excludes",
|
|
749
|
+
pathIncludes: "path_includes",
|
|
750
|
+
prCommentsEnabled: "pr_comments_enabled",
|
|
751
|
+
previewBranchExcludes: "preview_branch_excludes",
|
|
752
|
+
previewBranchIncludes: "preview_branch_includes",
|
|
753
|
+
previewDeploymentSetting: "preview_deployment_setting",
|
|
754
|
+
productionBranch: "production_branch",
|
|
755
|
+
productionDeploymentsEnabled: "production_deployments_enabled",
|
|
756
|
+
repoId: "repo_id",
|
|
757
|
+
repoName: "repo_name",
|
|
758
|
+
})),
|
|
759
|
+
type: Schema.Literals(["github", "gitlab"]),
|
|
760
|
+
}),
|
|
761
|
+
stages: Schema.Array(Schema.Unknown),
|
|
762
|
+
url: Schema.String,
|
|
763
|
+
usesFunctions: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
764
|
+
}).pipe(Schema.encodeKeys({
|
|
765
|
+
id: "id",
|
|
766
|
+
aliases: "aliases",
|
|
767
|
+
buildConfig: "build_config",
|
|
768
|
+
createdOn: "created_on",
|
|
769
|
+
deploymentTrigger: "deployment_trigger",
|
|
770
|
+
envVars: "env_vars",
|
|
771
|
+
environment: "environment",
|
|
772
|
+
isSkipped: "is_skipped",
|
|
773
|
+
latestStage: "latest_stage",
|
|
774
|
+
modifiedOn: "modified_on",
|
|
775
|
+
projectId: "project_id",
|
|
776
|
+
projectName: "project_name",
|
|
777
|
+
shortId: "short_id",
|
|
778
|
+
source: "source",
|
|
779
|
+
stages: "stages",
|
|
780
|
+
url: "url",
|
|
781
|
+
usesFunctions: "uses_functions",
|
|
782
|
+
})),
|
|
783
|
+
Schema.Null,
|
|
784
|
+
]),
|
|
785
|
+
name: Schema.String,
|
|
786
|
+
previewScriptName: Schema.String,
|
|
787
|
+
productionBranch: Schema.String,
|
|
788
|
+
productionScriptName: Schema.String,
|
|
789
|
+
usesFunctions: Schema.Union([Schema.Boolean, Schema.Null]),
|
|
790
|
+
buildConfig: Schema.optional(Schema.Union([
|
|
791
|
+
Schema.Struct({
|
|
792
|
+
webAnalyticsTag: Schema.Union([Schema.String, Schema.Null]),
|
|
793
|
+
webAnalyticsToken: Schema.Union([Schema.String, Schema.Null]),
|
|
794
|
+
buildCaching: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
795
|
+
buildCommand: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
796
|
+
destinationDir: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
797
|
+
rootDir: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
798
|
+
}).pipe(Schema.encodeKeys({
|
|
799
|
+
webAnalyticsTag: "web_analytics_tag",
|
|
800
|
+
webAnalyticsToken: "web_analytics_token",
|
|
801
|
+
buildCaching: "build_caching",
|
|
802
|
+
buildCommand: "build_command",
|
|
803
|
+
destinationDir: "destination_dir",
|
|
804
|
+
rootDir: "root_dir",
|
|
805
|
+
})),
|
|
806
|
+
Schema.Null,
|
|
807
|
+
])),
|
|
808
|
+
domains: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
809
|
+
source: Schema.optional(Schema.Union([
|
|
810
|
+
Schema.Struct({
|
|
811
|
+
config: Schema.Struct({
|
|
812
|
+
deploymentsEnabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
813
|
+
owner: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
814
|
+
ownerId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
815
|
+
pathExcludes: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
816
|
+
pathIncludes: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
817
|
+
prCommentsEnabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
818
|
+
previewBranchExcludes: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
819
|
+
previewBranchIncludes: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
820
|
+
previewDeploymentSetting: Schema.optional(Schema.Union([
|
|
821
|
+
Schema.Literals(["all", "none", "custom"]),
|
|
822
|
+
Schema.Null,
|
|
823
|
+
])),
|
|
824
|
+
productionBranch: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
825
|
+
productionDeploymentsEnabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
826
|
+
repoId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
827
|
+
repoName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
828
|
+
}).pipe(Schema.encodeKeys({
|
|
829
|
+
deploymentsEnabled: "deployments_enabled",
|
|
830
|
+
owner: "owner",
|
|
831
|
+
ownerId: "owner_id",
|
|
832
|
+
pathExcludes: "path_excludes",
|
|
833
|
+
pathIncludes: "path_includes",
|
|
834
|
+
prCommentsEnabled: "pr_comments_enabled",
|
|
835
|
+
previewBranchExcludes: "preview_branch_excludes",
|
|
836
|
+
previewBranchIncludes: "preview_branch_includes",
|
|
837
|
+
previewDeploymentSetting: "preview_deployment_setting",
|
|
838
|
+
productionBranch: "production_branch",
|
|
839
|
+
productionDeploymentsEnabled: "production_deployments_enabled",
|
|
840
|
+
repoId: "repo_id",
|
|
841
|
+
repoName: "repo_name",
|
|
842
|
+
})),
|
|
843
|
+
type: Schema.Literals(["github", "gitlab"]),
|
|
844
|
+
}),
|
|
845
|
+
Schema.Null,
|
|
846
|
+
])),
|
|
847
|
+
subdomain: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
848
|
+
}).pipe(Schema.encodeKeys({
|
|
849
|
+
id: "id",
|
|
850
|
+
canonicalDeployment: "canonical_deployment",
|
|
851
|
+
createdOn: "created_on",
|
|
852
|
+
deploymentConfigs: "deployment_configs",
|
|
853
|
+
framework: "framework",
|
|
854
|
+
frameworkVersion: "framework_version",
|
|
855
|
+
latestDeployment: "latest_deployment",
|
|
856
|
+
name: "name",
|
|
857
|
+
previewScriptName: "preview_script_name",
|
|
858
|
+
productionBranch: "production_branch",
|
|
859
|
+
productionScriptName: "production_script_name",
|
|
860
|
+
usesFunctions: "uses_functions",
|
|
861
|
+
buildConfig: "build_config",
|
|
862
|
+
domains: "domains",
|
|
863
|
+
source: "source",
|
|
864
|
+
subdomain: "subdomain",
|
|
865
|
+
}))),
|
|
866
|
+
resultInfo: Schema.Struct({
|
|
867
|
+
count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
868
|
+
page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
869
|
+
perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
870
|
+
totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
871
|
+
}).pipe(Schema.encodeKeys({
|
|
872
|
+
count: "count",
|
|
873
|
+
page: "page",
|
|
874
|
+
perPage: "per_page",
|
|
875
|
+
totalCount: "total_count",
|
|
876
|
+
})),
|
|
877
|
+
}).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" }));
|
|
878
|
+
export const listProjects = API.makePaginated(() => ({
|
|
863
879
|
input: ListProjectsRequest,
|
|
864
880
|
output: ListProjectsResponse,
|
|
865
881
|
errors: [],
|
|
882
|
+
pagination: {
|
|
883
|
+
mode: "page",
|
|
884
|
+
inputToken: "page",
|
|
885
|
+
outputToken: "resultInfo.page",
|
|
886
|
+
items: "result",
|
|
887
|
+
pageSize: "perPage",
|
|
888
|
+
},
|
|
866
889
|
}));
|
|
867
890
|
export const CreateProjectRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
868
891
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
@@ -1418,7 +1441,8 @@ export const CreateProjectResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
1418
1441
|
Schema.Null,
|
|
1419
1442
|
])),
|
|
1420
1443
|
subdomain: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1421
|
-
})
|
|
1444
|
+
})
|
|
1445
|
+
.pipe(Schema.encodeKeys({
|
|
1422
1446
|
id: "id",
|
|
1423
1447
|
canonicalDeployment: "canonical_deployment",
|
|
1424
1448
|
createdOn: "created_on",
|
|
@@ -1435,7 +1459,8 @@ export const CreateProjectResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
1435
1459
|
domains: "domains",
|
|
1436
1460
|
source: "source",
|
|
1437
1461
|
subdomain: "subdomain",
|
|
1438
|
-
}))
|
|
1462
|
+
}))
|
|
1463
|
+
.pipe(T.ResponsePath("result"));
|
|
1439
1464
|
export const createProject = API.make(() => ({
|
|
1440
1465
|
input: CreateProjectRequest,
|
|
1441
1466
|
output: CreateProjectResponse,
|
|
@@ -1999,7 +2024,8 @@ export const PatchProjectResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
1999
2024
|
Schema.Null,
|
|
2000
2025
|
])),
|
|
2001
2026
|
subdomain: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2002
|
-
})
|
|
2027
|
+
})
|
|
2028
|
+
.pipe(Schema.encodeKeys({
|
|
2003
2029
|
id: "id",
|
|
2004
2030
|
canonicalDeployment: "canonical_deployment",
|
|
2005
2031
|
createdOn: "created_on",
|
|
@@ -2016,7 +2042,8 @@ export const PatchProjectResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
2016
2042
|
domains: "domains",
|
|
2017
2043
|
source: "source",
|
|
2018
2044
|
subdomain: "subdomain",
|
|
2019
|
-
}))
|
|
2045
|
+
}))
|
|
2046
|
+
.pipe(T.ResponsePath("result"));
|
|
2020
2047
|
export const patchProject = API.make(() => ({
|
|
2021
2048
|
input: PatchProjectRequest,
|
|
2022
2049
|
output: PatchProjectResponse,
|
|
@@ -2030,7 +2057,7 @@ export const DeleteProjectRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
2030
2057
|
path: "/accounts/{account_id}/pages/projects/{projectName}",
|
|
2031
2058
|
}));
|
|
2032
2059
|
export const DeleteProjectResponse =
|
|
2033
|
-
/*@__PURE__*/ /*#__PURE__*/ Schema.Unknown;
|
|
2060
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Unknown.pipe(T.ResponsePath("result"));
|
|
2034
2061
|
export const deleteProject = API.make(() => ({
|
|
2035
2062
|
input: DeleteProjectRequest,
|
|
2036
2063
|
output: DeleteProjectResponse,
|
|
@@ -2122,7 +2149,8 @@ export const GetProjectDeploymentResponse =
|
|
|
2122
2149
|
stages: Schema.Array(Schema.Unknown),
|
|
2123
2150
|
url: Schema.String,
|
|
2124
2151
|
usesFunctions: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
2125
|
-
})
|
|
2152
|
+
})
|
|
2153
|
+
.pipe(Schema.encodeKeys({
|
|
2126
2154
|
id: "id",
|
|
2127
2155
|
aliases: "aliases",
|
|
2128
2156
|
buildConfig: "build_config",
|
|
@@ -2140,7 +2168,8 @@ export const GetProjectDeploymentResponse =
|
|
|
2140
2168
|
stages: "stages",
|
|
2141
2169
|
url: "url",
|
|
2142
2170
|
usesFunctions: "uses_functions",
|
|
2143
|
-
}))
|
|
2171
|
+
}))
|
|
2172
|
+
.pipe(T.ResponsePath("result"));
|
|
2144
2173
|
export const getProjectDeployment = API.make(() => ({
|
|
2145
2174
|
input: GetProjectDeploymentRequest,
|
|
2146
2175
|
output: GetProjectDeploymentResponse,
|
|
@@ -2156,105 +2185,129 @@ export const ListProjectDeploymentsRequest =
|
|
|
2156
2185
|
path: "/accounts/{account_id}/pages/projects/{projectName}/deployments",
|
|
2157
2186
|
}));
|
|
2158
2187
|
export const ListProjectDeploymentsResponse =
|
|
2159
|
-
/*@__PURE__*/ /*#__PURE__*/ Schema.
|
|
2160
|
-
|
|
2161
|
-
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
|
|
2168
|
-
|
|
2169
|
-
|
|
2170
|
-
webAnalyticsTag: "web_analytics_tag",
|
|
2171
|
-
webAnalyticsToken: "web_analytics_token",
|
|
2172
|
-
buildCaching: "build_caching",
|
|
2173
|
-
buildCommand: "build_command",
|
|
2174
|
-
destinationDir: "destination_dir",
|
|
2175
|
-
rootDir: "root_dir",
|
|
2176
|
-
})),
|
|
2177
|
-
createdOn: Schema.String,
|
|
2178
|
-
deploymentTrigger: Schema.Struct({
|
|
2179
|
-
metadata: Schema.Struct({
|
|
2180
|
-
branch: Schema.String,
|
|
2181
|
-
commitDirty: Schema.Boolean,
|
|
2182
|
-
commitHash: Schema.String,
|
|
2183
|
-
commitMessage: Schema.String,
|
|
2184
|
-
}).pipe(Schema.encodeKeys({
|
|
2185
|
-
branch: "branch",
|
|
2186
|
-
commitDirty: "commit_dirty",
|
|
2187
|
-
commitHash: "commit_hash",
|
|
2188
|
-
commitMessage: "commit_message",
|
|
2189
|
-
})),
|
|
2190
|
-
type: Schema.Literals(["github:push", "ad_hoc", "deploy_hook"]),
|
|
2191
|
-
}),
|
|
2192
|
-
envVars: Schema.Union([Schema.Struct({}), Schema.Null]),
|
|
2193
|
-
environment: Schema.Literals(["preview", "production"]),
|
|
2194
|
-
isSkipped: Schema.Boolean,
|
|
2195
|
-
latestStage: Schema.Unknown,
|
|
2196
|
-
modifiedOn: Schema.String,
|
|
2197
|
-
projectId: Schema.String,
|
|
2198
|
-
projectName: Schema.String,
|
|
2199
|
-
shortId: Schema.String,
|
|
2200
|
-
source: Schema.Struct({
|
|
2201
|
-
config: Schema.Struct({
|
|
2202
|
-
deploymentsEnabled: Schema.Boolean,
|
|
2203
|
-
owner: Schema.String,
|
|
2204
|
-
ownerId: Schema.String,
|
|
2205
|
-
pathExcludes: Schema.Array(Schema.String),
|
|
2206
|
-
pathIncludes: Schema.Array(Schema.String),
|
|
2207
|
-
prCommentsEnabled: Schema.Boolean,
|
|
2208
|
-
previewBranchExcludes: Schema.Array(Schema.String),
|
|
2209
|
-
previewBranchIncludes: Schema.Array(Schema.String),
|
|
2210
|
-
previewDeploymentSetting: Schema.Literals(["all", "none", "custom"]),
|
|
2211
|
-
productionBranch: Schema.String,
|
|
2212
|
-
productionDeploymentsEnabled: Schema.Boolean,
|
|
2213
|
-
repoId: Schema.String,
|
|
2214
|
-
repoName: Schema.String,
|
|
2188
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
2189
|
+
result: Schema.Array(Schema.Struct({
|
|
2190
|
+
id: Schema.String,
|
|
2191
|
+
aliases: Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
2192
|
+
buildConfig: Schema.Struct({
|
|
2193
|
+
webAnalyticsTag: Schema.Union([Schema.String, Schema.Null]),
|
|
2194
|
+
webAnalyticsToken: Schema.Union([Schema.String, Schema.Null]),
|
|
2195
|
+
buildCaching: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
2196
|
+
buildCommand: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2197
|
+
destinationDir: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2198
|
+
rootDir: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2215
2199
|
}).pipe(Schema.encodeKeys({
|
|
2216
|
-
|
|
2217
|
-
|
|
2218
|
-
|
|
2219
|
-
|
|
2220
|
-
|
|
2221
|
-
|
|
2222
|
-
previewBranchExcludes: "preview_branch_excludes",
|
|
2223
|
-
previewBranchIncludes: "preview_branch_includes",
|
|
2224
|
-
previewDeploymentSetting: "preview_deployment_setting",
|
|
2225
|
-
productionBranch: "production_branch",
|
|
2226
|
-
productionDeploymentsEnabled: "production_deployments_enabled",
|
|
2227
|
-
repoId: "repo_id",
|
|
2228
|
-
repoName: "repo_name",
|
|
2200
|
+
webAnalyticsTag: "web_analytics_tag",
|
|
2201
|
+
webAnalyticsToken: "web_analytics_token",
|
|
2202
|
+
buildCaching: "build_caching",
|
|
2203
|
+
buildCommand: "build_command",
|
|
2204
|
+
destinationDir: "destination_dir",
|
|
2205
|
+
rootDir: "root_dir",
|
|
2229
2206
|
})),
|
|
2230
|
-
|
|
2231
|
-
|
|
2232
|
-
|
|
2233
|
-
|
|
2234
|
-
|
|
2235
|
-
|
|
2236
|
-
|
|
2237
|
-
|
|
2238
|
-
|
|
2239
|
-
|
|
2240
|
-
|
|
2241
|
-
|
|
2242
|
-
|
|
2243
|
-
|
|
2244
|
-
|
|
2245
|
-
|
|
2246
|
-
|
|
2247
|
-
|
|
2248
|
-
|
|
2249
|
-
|
|
2250
|
-
|
|
2251
|
-
|
|
2252
|
-
|
|
2253
|
-
|
|
2254
|
-
|
|
2207
|
+
createdOn: Schema.String,
|
|
2208
|
+
deploymentTrigger: Schema.Struct({
|
|
2209
|
+
metadata: Schema.Struct({
|
|
2210
|
+
branch: Schema.String,
|
|
2211
|
+
commitDirty: Schema.Boolean,
|
|
2212
|
+
commitHash: Schema.String,
|
|
2213
|
+
commitMessage: Schema.String,
|
|
2214
|
+
}).pipe(Schema.encodeKeys({
|
|
2215
|
+
branch: "branch",
|
|
2216
|
+
commitDirty: "commit_dirty",
|
|
2217
|
+
commitHash: "commit_hash",
|
|
2218
|
+
commitMessage: "commit_message",
|
|
2219
|
+
})),
|
|
2220
|
+
type: Schema.Literals(["github:push", "ad_hoc", "deploy_hook"]),
|
|
2221
|
+
}),
|
|
2222
|
+
envVars: Schema.Union([Schema.Struct({}), Schema.Null]),
|
|
2223
|
+
environment: Schema.Literals(["preview", "production"]),
|
|
2224
|
+
isSkipped: Schema.Boolean,
|
|
2225
|
+
latestStage: Schema.Unknown,
|
|
2226
|
+
modifiedOn: Schema.String,
|
|
2227
|
+
projectId: Schema.String,
|
|
2228
|
+
projectName: Schema.String,
|
|
2229
|
+
shortId: Schema.String,
|
|
2230
|
+
source: Schema.Struct({
|
|
2231
|
+
config: Schema.Struct({
|
|
2232
|
+
deploymentsEnabled: Schema.Boolean,
|
|
2233
|
+
owner: Schema.String,
|
|
2234
|
+
ownerId: Schema.String,
|
|
2235
|
+
pathExcludes: Schema.Array(Schema.String),
|
|
2236
|
+
pathIncludes: Schema.Array(Schema.String),
|
|
2237
|
+
prCommentsEnabled: Schema.Boolean,
|
|
2238
|
+
previewBranchExcludes: Schema.Array(Schema.String),
|
|
2239
|
+
previewBranchIncludes: Schema.Array(Schema.String),
|
|
2240
|
+
previewDeploymentSetting: Schema.Literals([
|
|
2241
|
+
"all",
|
|
2242
|
+
"none",
|
|
2243
|
+
"custom",
|
|
2244
|
+
]),
|
|
2245
|
+
productionBranch: Schema.String,
|
|
2246
|
+
productionDeploymentsEnabled: Schema.Boolean,
|
|
2247
|
+
repoId: Schema.String,
|
|
2248
|
+
repoName: Schema.String,
|
|
2249
|
+
}).pipe(Schema.encodeKeys({
|
|
2250
|
+
deploymentsEnabled: "deployments_enabled",
|
|
2251
|
+
owner: "owner",
|
|
2252
|
+
ownerId: "owner_id",
|
|
2253
|
+
pathExcludes: "path_excludes",
|
|
2254
|
+
pathIncludes: "path_includes",
|
|
2255
|
+
prCommentsEnabled: "pr_comments_enabled",
|
|
2256
|
+
previewBranchExcludes: "preview_branch_excludes",
|
|
2257
|
+
previewBranchIncludes: "preview_branch_includes",
|
|
2258
|
+
previewDeploymentSetting: "preview_deployment_setting",
|
|
2259
|
+
productionBranch: "production_branch",
|
|
2260
|
+
productionDeploymentsEnabled: "production_deployments_enabled",
|
|
2261
|
+
repoId: "repo_id",
|
|
2262
|
+
repoName: "repo_name",
|
|
2263
|
+
})),
|
|
2264
|
+
type: Schema.Literals(["github", "gitlab"]),
|
|
2265
|
+
}),
|
|
2266
|
+
stages: Schema.Array(Schema.Unknown),
|
|
2267
|
+
url: Schema.String,
|
|
2268
|
+
usesFunctions: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
2269
|
+
}).pipe(Schema.encodeKeys({
|
|
2270
|
+
id: "id",
|
|
2271
|
+
aliases: "aliases",
|
|
2272
|
+
buildConfig: "build_config",
|
|
2273
|
+
createdOn: "created_on",
|
|
2274
|
+
deploymentTrigger: "deployment_trigger",
|
|
2275
|
+
envVars: "env_vars",
|
|
2276
|
+
environment: "environment",
|
|
2277
|
+
isSkipped: "is_skipped",
|
|
2278
|
+
latestStage: "latest_stage",
|
|
2279
|
+
modifiedOn: "modified_on",
|
|
2280
|
+
projectId: "project_id",
|
|
2281
|
+
projectName: "project_name",
|
|
2282
|
+
shortId: "short_id",
|
|
2283
|
+
source: "source",
|
|
2284
|
+
stages: "stages",
|
|
2285
|
+
url: "url",
|
|
2286
|
+
usesFunctions: "uses_functions",
|
|
2287
|
+
}))),
|
|
2288
|
+
resultInfo: Schema.Struct({
|
|
2289
|
+
count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
2290
|
+
page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
2291
|
+
perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
2292
|
+
totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
2293
|
+
}).pipe(Schema.encodeKeys({
|
|
2294
|
+
count: "count",
|
|
2295
|
+
page: "page",
|
|
2296
|
+
perPage: "per_page",
|
|
2297
|
+
totalCount: "total_count",
|
|
2298
|
+
})),
|
|
2299
|
+
}).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" }));
|
|
2300
|
+
export const listProjectDeployments = API.makePaginated(() => ({
|
|
2255
2301
|
input: ListProjectDeploymentsRequest,
|
|
2256
2302
|
output: ListProjectDeploymentsResponse,
|
|
2257
2303
|
errors: [],
|
|
2304
|
+
pagination: {
|
|
2305
|
+
mode: "page",
|
|
2306
|
+
inputToken: "page",
|
|
2307
|
+
outputToken: "resultInfo.page",
|
|
2308
|
+
items: "result",
|
|
2309
|
+
pageSize: "perPage",
|
|
2310
|
+
},
|
|
2258
2311
|
}));
|
|
2259
2312
|
export const CreateProjectDeploymentRequest =
|
|
2260
2313
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
@@ -2369,7 +2422,8 @@ export const CreateProjectDeploymentResponse =
|
|
|
2369
2422
|
stages: Schema.Array(Schema.Unknown),
|
|
2370
2423
|
url: Schema.String,
|
|
2371
2424
|
usesFunctions: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
2372
|
-
})
|
|
2425
|
+
})
|
|
2426
|
+
.pipe(Schema.encodeKeys({
|
|
2373
2427
|
id: "id",
|
|
2374
2428
|
aliases: "aliases",
|
|
2375
2429
|
buildConfig: "build_config",
|
|
@@ -2387,7 +2441,8 @@ export const CreateProjectDeploymentResponse =
|
|
|
2387
2441
|
stages: "stages",
|
|
2388
2442
|
url: "url",
|
|
2389
2443
|
usesFunctions: "uses_functions",
|
|
2390
|
-
}))
|
|
2444
|
+
}))
|
|
2445
|
+
.pipe(T.ResponsePath("result"));
|
|
2391
2446
|
export const createProjectDeployment = API.make(() => ({
|
|
2392
2447
|
input: CreateProjectDeploymentRequest,
|
|
2393
2448
|
output: CreateProjectDeploymentResponse,
|
|
@@ -2403,7 +2458,7 @@ export const DeleteProjectDeploymentRequest =
|
|
|
2403
2458
|
path: "/accounts/{account_id}/pages/projects/{projectName}/deployments/{deploymentId}",
|
|
2404
2459
|
}));
|
|
2405
2460
|
export const DeleteProjectDeploymentResponse =
|
|
2406
|
-
/*@__PURE__*/ /*#__PURE__*/ Schema.Unknown;
|
|
2461
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Unknown.pipe(T.ResponsePath("result"));
|
|
2407
2462
|
export const deleteProjectDeployment = API.make(() => ({
|
|
2408
2463
|
input: DeleteProjectDeploymentRequest,
|
|
2409
2464
|
output: DeleteProjectDeploymentResponse,
|
|
@@ -2495,7 +2550,8 @@ export const RetryProjectDeploymentResponse =
|
|
|
2495
2550
|
stages: Schema.Array(Schema.Unknown),
|
|
2496
2551
|
url: Schema.String,
|
|
2497
2552
|
usesFunctions: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
2498
|
-
})
|
|
2553
|
+
})
|
|
2554
|
+
.pipe(Schema.encodeKeys({
|
|
2499
2555
|
id: "id",
|
|
2500
2556
|
aliases: "aliases",
|
|
2501
2557
|
buildConfig: "build_config",
|
|
@@ -2513,7 +2569,8 @@ export const RetryProjectDeploymentResponse =
|
|
|
2513
2569
|
stages: "stages",
|
|
2514
2570
|
url: "url",
|
|
2515
2571
|
usesFunctions: "uses_functions",
|
|
2516
|
-
}))
|
|
2572
|
+
}))
|
|
2573
|
+
.pipe(T.ResponsePath("result"));
|
|
2517
2574
|
export const retryProjectDeployment = API.make(() => ({
|
|
2518
2575
|
input: RetryProjectDeploymentRequest,
|
|
2519
2576
|
output: RetryProjectDeploymentResponse,
|
|
@@ -2605,7 +2662,8 @@ export const RollbackProjectDeploymentResponse =
|
|
|
2605
2662
|
stages: Schema.Array(Schema.Unknown),
|
|
2606
2663
|
url: Schema.String,
|
|
2607
2664
|
usesFunctions: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
2608
|
-
})
|
|
2665
|
+
})
|
|
2666
|
+
.pipe(Schema.encodeKeys({
|
|
2609
2667
|
id: "id",
|
|
2610
2668
|
aliases: "aliases",
|
|
2611
2669
|
buildConfig: "build_config",
|
|
@@ -2623,7 +2681,8 @@ export const RollbackProjectDeploymentResponse =
|
|
|
2623
2681
|
stages: "stages",
|
|
2624
2682
|
url: "url",
|
|
2625
2683
|
usesFunctions: "uses_functions",
|
|
2626
|
-
}))
|
|
2684
|
+
}))
|
|
2685
|
+
.pipe(T.ResponsePath("result"));
|
|
2627
2686
|
export const rollbackProjectDeployment = API.make(() => ({
|
|
2628
2687
|
input: RollbackProjectDeploymentRequest,
|
|
2629
2688
|
output: RollbackProjectDeploymentResponse,
|
|
@@ -2646,11 +2705,13 @@ export const GetProjectDeploymentHistoryLogResponse =
|
|
|
2646
2705
|
})),
|
|
2647
2706
|
includesContainerLogs: Schema.Boolean,
|
|
2648
2707
|
total: Schema.Number,
|
|
2649
|
-
})
|
|
2708
|
+
})
|
|
2709
|
+
.pipe(Schema.encodeKeys({
|
|
2650
2710
|
data: "data",
|
|
2651
2711
|
includesContainerLogs: "includes_container_logs",
|
|
2652
2712
|
total: "total",
|
|
2653
|
-
}))
|
|
2713
|
+
}))
|
|
2714
|
+
.pipe(T.ResponsePath("result"));
|
|
2654
2715
|
export const getProjectDeploymentHistoryLog = API.make(() => ({
|
|
2655
2716
|
input: GetProjectDeploymentHistoryLogRequest,
|
|
2656
2717
|
output: GetProjectDeploymentHistoryLogResponse,
|
|
@@ -2710,7 +2771,8 @@ export const GetProjectDomainResponse =
|
|
|
2710
2771
|
errorMessage: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2711
2772
|
}).pipe(Schema.encodeKeys({ status: "status", errorMessage: "error_message" })),
|
|
2712
2773
|
zoneTag: Schema.String,
|
|
2713
|
-
})
|
|
2774
|
+
})
|
|
2775
|
+
.pipe(Schema.encodeKeys({
|
|
2714
2776
|
id: "id",
|
|
2715
2777
|
certificateAuthority: "certificate_authority",
|
|
2716
2778
|
createdOn: "created_on",
|
|
@@ -2720,7 +2782,8 @@ export const GetProjectDomainResponse =
|
|
|
2720
2782
|
validationData: "validation_data",
|
|
2721
2783
|
verificationData: "verification_data",
|
|
2722
2784
|
zoneTag: "zone_tag",
|
|
2723
|
-
}))
|
|
2785
|
+
}))
|
|
2786
|
+
.pipe(T.ResponsePath("result"));
|
|
2724
2787
|
export const getProjectDomain = API.make(() => ({
|
|
2725
2788
|
input: GetProjectDomainRequest,
|
|
2726
2789
|
output: GetProjectDomainResponse,
|
|
@@ -2735,65 +2798,74 @@ export const ListProjectDomainsRequest =
|
|
|
2735
2798
|
path: "/accounts/{account_id}/pages/projects/{projectName}/domains",
|
|
2736
2799
|
}));
|
|
2737
2800
|
export const ListProjectDomainsResponse =
|
|
2738
|
-
/*@__PURE__*/ /*#__PURE__*/ Schema.
|
|
2739
|
-
|
|
2740
|
-
|
|
2741
|
-
|
|
2742
|
-
|
|
2743
|
-
|
|
2744
|
-
|
|
2745
|
-
"initializing",
|
|
2746
|
-
"pending",
|
|
2747
|
-
"active",
|
|
2748
|
-
"deactivated",
|
|
2749
|
-
"blocked",
|
|
2750
|
-
"error",
|
|
2751
|
-
]),
|
|
2752
|
-
validationData: Schema.Struct({
|
|
2753
|
-
method: Schema.Literals(["http", "txt"]),
|
|
2801
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
2802
|
+
result: Schema.Array(Schema.Struct({
|
|
2803
|
+
id: Schema.String,
|
|
2804
|
+
certificateAuthority: Schema.Literals(["google", "lets_encrypt"]),
|
|
2805
|
+
createdOn: Schema.String,
|
|
2806
|
+
domainId: Schema.String,
|
|
2807
|
+
name: Schema.String,
|
|
2754
2808
|
status: Schema.Literals([
|
|
2755
2809
|
"initializing",
|
|
2756
2810
|
"pending",
|
|
2757
2811
|
"active",
|
|
2758
2812
|
"deactivated",
|
|
2813
|
+
"blocked",
|
|
2759
2814
|
"error",
|
|
2760
2815
|
]),
|
|
2761
|
-
|
|
2762
|
-
|
|
2763
|
-
|
|
2816
|
+
validationData: Schema.Struct({
|
|
2817
|
+
method: Schema.Literals(["http", "txt"]),
|
|
2818
|
+
status: Schema.Literals([
|
|
2819
|
+
"initializing",
|
|
2820
|
+
"pending",
|
|
2821
|
+
"active",
|
|
2822
|
+
"deactivated",
|
|
2823
|
+
"error",
|
|
2824
|
+
]),
|
|
2825
|
+
errorMessage: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2826
|
+
txtName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2827
|
+
txtValue: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2828
|
+
}).pipe(Schema.encodeKeys({
|
|
2829
|
+
method: "method",
|
|
2830
|
+
status: "status",
|
|
2831
|
+
errorMessage: "error_message",
|
|
2832
|
+
txtName: "txt_name",
|
|
2833
|
+
txtValue: "txt_value",
|
|
2834
|
+
})),
|
|
2835
|
+
verificationData: Schema.Struct({
|
|
2836
|
+
status: Schema.Literals([
|
|
2837
|
+
"pending",
|
|
2838
|
+
"active",
|
|
2839
|
+
"deactivated",
|
|
2840
|
+
"blocked",
|
|
2841
|
+
"error",
|
|
2842
|
+
]),
|
|
2843
|
+
errorMessage: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2844
|
+
}).pipe(Schema.encodeKeys({
|
|
2845
|
+
status: "status",
|
|
2846
|
+
errorMessage: "error_message",
|
|
2847
|
+
})),
|
|
2848
|
+
zoneTag: Schema.String,
|
|
2764
2849
|
}).pipe(Schema.encodeKeys({
|
|
2765
|
-
|
|
2850
|
+
id: "id",
|
|
2851
|
+
certificateAuthority: "certificate_authority",
|
|
2852
|
+
createdOn: "created_on",
|
|
2853
|
+
domainId: "domain_id",
|
|
2854
|
+
name: "name",
|
|
2766
2855
|
status: "status",
|
|
2767
|
-
|
|
2768
|
-
|
|
2769
|
-
|
|
2770
|
-
})),
|
|
2771
|
-
|
|
2772
|
-
|
|
2773
|
-
"pending",
|
|
2774
|
-
"active",
|
|
2775
|
-
"deactivated",
|
|
2776
|
-
"blocked",
|
|
2777
|
-
"error",
|
|
2778
|
-
]),
|
|
2779
|
-
errorMessage: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2780
|
-
}).pipe(Schema.encodeKeys({ status: "status", errorMessage: "error_message" })),
|
|
2781
|
-
zoneTag: Schema.String,
|
|
2782
|
-
}).pipe(Schema.encodeKeys({
|
|
2783
|
-
id: "id",
|
|
2784
|
-
certificateAuthority: "certificate_authority",
|
|
2785
|
-
createdOn: "created_on",
|
|
2786
|
-
domainId: "domain_id",
|
|
2787
|
-
name: "name",
|
|
2788
|
-
status: "status",
|
|
2789
|
-
validationData: "validation_data",
|
|
2790
|
-
verificationData: "verification_data",
|
|
2791
|
-
zoneTag: "zone_tag",
|
|
2792
|
-
})));
|
|
2793
|
-
export const listProjectDomains = API.make(() => ({
|
|
2856
|
+
validationData: "validation_data",
|
|
2857
|
+
verificationData: "verification_data",
|
|
2858
|
+
zoneTag: "zone_tag",
|
|
2859
|
+
}))),
|
|
2860
|
+
});
|
|
2861
|
+
export const listProjectDomains = API.makePaginated(() => ({
|
|
2794
2862
|
input: ListProjectDomainsRequest,
|
|
2795
2863
|
output: ListProjectDomainsResponse,
|
|
2796
2864
|
errors: [],
|
|
2865
|
+
pagination: {
|
|
2866
|
+
mode: "single",
|
|
2867
|
+
items: "result",
|
|
2868
|
+
},
|
|
2797
2869
|
}));
|
|
2798
2870
|
export const CreateProjectDomainRequest =
|
|
2799
2871
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
@@ -2849,7 +2921,8 @@ export const CreateProjectDomainResponse =
|
|
|
2849
2921
|
errorMessage: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2850
2922
|
}).pipe(Schema.encodeKeys({ status: "status", errorMessage: "error_message" })),
|
|
2851
2923
|
zoneTag: Schema.String,
|
|
2852
|
-
})
|
|
2924
|
+
})
|
|
2925
|
+
.pipe(Schema.encodeKeys({
|
|
2853
2926
|
id: "id",
|
|
2854
2927
|
certificateAuthority: "certificate_authority",
|
|
2855
2928
|
createdOn: "created_on",
|
|
@@ -2859,7 +2932,8 @@ export const CreateProjectDomainResponse =
|
|
|
2859
2932
|
validationData: "validation_data",
|
|
2860
2933
|
verificationData: "verification_data",
|
|
2861
2934
|
zoneTag: "zone_tag",
|
|
2862
|
-
}))
|
|
2935
|
+
}))
|
|
2936
|
+
.pipe(T.ResponsePath("result"));
|
|
2863
2937
|
export const createProjectDomain = API.make(() => ({
|
|
2864
2938
|
input: CreateProjectDomainRequest,
|
|
2865
2939
|
output: CreateProjectDomainResponse,
|
|
@@ -2919,7 +2993,8 @@ export const PatchProjectDomainResponse =
|
|
|
2919
2993
|
errorMessage: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2920
2994
|
}).pipe(Schema.encodeKeys({ status: "status", errorMessage: "error_message" })),
|
|
2921
2995
|
zoneTag: Schema.String,
|
|
2922
|
-
})
|
|
2996
|
+
})
|
|
2997
|
+
.pipe(Schema.encodeKeys({
|
|
2923
2998
|
id: "id",
|
|
2924
2999
|
certificateAuthority: "certificate_authority",
|
|
2925
3000
|
createdOn: "created_on",
|
|
@@ -2929,7 +3004,8 @@ export const PatchProjectDomainResponse =
|
|
|
2929
3004
|
validationData: "validation_data",
|
|
2930
3005
|
verificationData: "verification_data",
|
|
2931
3006
|
zoneTag: "zone_tag",
|
|
2932
|
-
}))
|
|
3007
|
+
}))
|
|
3008
|
+
.pipe(T.ResponsePath("result"));
|
|
2933
3009
|
export const patchProjectDomain = API.make(() => ({
|
|
2934
3010
|
input: PatchProjectDomainRequest,
|
|
2935
3011
|
output: PatchProjectDomainResponse,
|
|
@@ -2945,7 +3021,7 @@ export const DeleteProjectDomainRequest =
|
|
|
2945
3021
|
path: "/accounts/{account_id}/pages/projects/{projectName}/domains/{domainName}",
|
|
2946
3022
|
}));
|
|
2947
3023
|
export const DeleteProjectDomainResponse =
|
|
2948
|
-
/*@__PURE__*/ /*#__PURE__*/ Schema.Unknown;
|
|
3024
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Unknown.pipe(T.ResponsePath("result"));
|
|
2949
3025
|
export const deleteProjectDomain = API.make(() => ({
|
|
2950
3026
|
input: DeleteProjectDomainRequest,
|
|
2951
3027
|
output: DeleteProjectDomainResponse,
|