cloudflare
Version:
The official TypeScript library for the Cloudflare API
1,640 lines • 53 kB
TypeScript
import * as Core from 'cloudflare/core';
import { APIResource } from 'cloudflare/resource';
import * as ProjectsAPI from 'cloudflare/resources/pages/projects/projects';
import * as DomainsAPI from 'cloudflare/resources/pages/projects/domains';
import * as DeploymentsAPI from 'cloudflare/resources/pages/projects/deployments/deployments';
import { SinglePage } from 'cloudflare/pagination';
export declare class Projects extends APIResource {
deployments: DeploymentsAPI.Deployments;
domains: DomainsAPI.Domains;
/**
* Create a new project.
*/
create(params: ProjectCreateParams, options?: Core.RequestOptions): Core.APIPromise<ProjectCreateResponse>;
/**
* Fetch a list of all user projects.
*/
list(params: ProjectListParams, options?: Core.RequestOptions): Core.PagePromise<DeploymentsSinglePage, Deployment>;
/**
* Delete a project by name.
*/
delete(projectName: string, params: ProjectDeleteParams, options?: Core.RequestOptions): Core.APIPromise<unknown>;
/**
* Set new attributes for an existing project. Modify environment variables. To
* delete an environment variable, set the key to null.
*/
edit(projectName: string, params: ProjectEditParams, options?: Core.RequestOptions): Core.APIPromise<ProjectEditResponse>;
/**
* Fetch a project by name.
*/
get(projectName: string, params: ProjectGetParams, options?: Core.RequestOptions): Core.APIPromise<Project>;
/**
* Purge all cached build artifacts for a Pages project
*/
purgeBuildCache(projectName: string, params: ProjectPurgeBuildCacheParams, options?: Core.RequestOptions): Core.APIPromise<unknown>;
}
export declare class DeploymentsSinglePage extends SinglePage<Deployment> {
}
export interface Deployment {
/**
* Id of the deployment.
*/
id?: string;
/**
* A list of alias URLs pointing to this deployment.
*/
aliases?: Array<unknown> | null;
build_config?: unknown;
/**
* When the deployment was created.
*/
created_on?: string;
/**
* Info about what caused the deployment.
*/
deployment_trigger?: Deployment.DeploymentTrigger;
/**
* A dict of env variables to build this deploy.
*/
env_vars?: unknown;
/**
* Type of deploy.
*/
environment?: string;
/**
* If the deployment has been skipped.
*/
is_skipped?: boolean;
latest_stage?: unknown;
/**
* When the deployment was last modified.
*/
modified_on?: string;
/**
* Id of the project.
*/
project_id?: string;
/**
* Name of the project.
*/
project_name?: string;
/**
* Short Id (8 character) of the deployment.
*/
short_id?: string;
source?: unknown;
/**
* List of past stages.
*/
stages?: Array<Stage>;
/**
* The live URL to view this deployment.
*/
url?: string;
}
export declare namespace Deployment {
/**
* Info about what caused the deployment.
*/
interface DeploymentTrigger {
/**
* Additional info about the trigger.
*/
metadata?: DeploymentTrigger.Metadata;
/**
* What caused the deployment.
*/
type?: string;
}
namespace DeploymentTrigger {
/**
* Additional info about the trigger.
*/
interface Metadata {
/**
* Where the trigger happened.
*/
branch?: string;
/**
* Hash of the deployment trigger commit.
*/
commit_hash?: string;
/**
* Message of the deployment trigger commit.
*/
commit_message?: string;
}
}
}
export interface Project {
/**
* Id of the project.
*/
id?: string;
/**
* Configs for the project build process.
*/
build_config?: Project.BuildConfig;
canonical_deployment?: Deployment;
/**
* When the project was created.
*/
created_on?: string;
/**
* Configs for deployments in a project.
*/
deployment_configs?: Project.DeploymentConfigs;
/**
* A list of associated custom domains for the project.
*/
domains?: Array<unknown>;
latest_deployment?: Deployment;
/**
* Name of the project.
*/
name?: string;
/**
* Production branch of the project. Used to identify production deployments.
*/
production_branch?: string;
source?: unknown;
/**
* The Cloudflare subdomain associated with the project.
*/
subdomain?: string;
}
export declare namespace Project {
/**
* Configs for the project build process.
*/
interface BuildConfig {
/**
* Enable build caching for the project.
*/
build_caching?: boolean | null;
/**
* Command used to build project.
*/
build_command?: string | null;
/**
* Output directory of the build.
*/
destination_dir?: string | null;
/**
* Directory to run the command.
*/
root_dir?: string | null;
/**
* The classifying tag for analytics.
*/
web_analytics_tag?: string | null;
/**
* The auth token for analytics.
*/
web_analytics_token?: string | null;
}
/**
* Configs for deployments in a project.
*/
interface DeploymentConfigs {
/**
* Configs for preview deploys.
*/
preview?: DeploymentConfigs.Preview;
/**
* Configs for production deploys.
*/
production?: DeploymentConfigs.Production;
}
namespace DeploymentConfigs {
/**
* Configs for preview deploys.
*/
interface Preview {
/**
* Constellation bindings used for Pages Functions.
*/
ai_bindings?: Preview.AIBindings | null;
/**
* Analytics Engine bindings used for Pages Functions.
*/
analytics_engine_datasets?: Preview.AnalyticsEngineDatasets | null;
/**
* Browser bindings used for Pages Functions.
*/
browsers?: Preview.Browsers | null;
/**
* Compatibility date used for Pages Functions.
*/
compatibility_date?: string;
/**
* Compatibility flags used for Pages Functions.
*/
compatibility_flags?: Array<unknown>;
/**
* D1 databases used for Pages Functions.
*/
d1_databases?: Preview.D1Databases | null;
/**
* Durabble Object namespaces used for Pages Functions.
*/
durable_object_namespaces?: Preview.DurableObjectNamespaces | null;
/**
* Environment variables for build configs.
*/
env_vars?: Preview.EnvVars | null;
/**
* Hyperdrive bindings used for Pages Functions.
*/
hyperdrive_bindings?: Preview.HyperdriveBindings | null;
/**
* KV namespaces used for Pages Functions.
*/
kv_namespaces?: Preview.KVNamespaces;
/**
* mTLS bindings used for Pages Functions.
*/
mtls_certificates?: Preview.MTLSCertificates | null;
/**
* Placement setting used for Pages Functions.
*/
placement?: Preview.Placement | null;
/**
* Queue Producer bindings used for Pages Functions.
*/
queue_producers?: Preview.QueueProducers | null;
/**
* R2 buckets used for Pages Functions.
*/
r2_buckets?: Preview.R2Buckets | null;
/**
* Services used for Pages Functions.
*/
services?: Preview.Services | null;
/**
* Vectorize bindings used for Pages Functions.
*/
vectorize_bindings?: Preview.VectorizeBindings | null;
}
namespace Preview {
/**
* Constellation bindings used for Pages Functions.
*/
interface AIBindings {
/**
* AI binding.
*/
AI_BINDING?: AIBindings.AIBinding;
}
namespace AIBindings {
/**
* AI binding.
*/
interface AIBinding {
project_id?: unknown;
}
}
/**
* Analytics Engine bindings used for Pages Functions.
*/
interface AnalyticsEngineDatasets {
/**
* Analytics Engine binding.
*/
ANALYTICS_ENGINE_BINDING?: AnalyticsEngineDatasets.AnalyticsEngineBinding;
}
namespace AnalyticsEngineDatasets {
/**
* Analytics Engine binding.
*/
interface AnalyticsEngineBinding {
/**
* Name of the dataset.
*/
dataset?: string;
}
}
/**
* Browser bindings used for Pages Functions.
*/
interface Browsers {
/**
* Browser binding.
*/
BROWSER?: unknown;
}
/**
* D1 databases used for Pages Functions.
*/
interface D1Databases {
/**
* D1 binding.
*/
D1_BINDING?: D1Databases.D1Binding;
}
namespace D1Databases {
/**
* D1 binding.
*/
interface D1Binding {
/**
* UUID of the D1 database.
*/
id?: string;
}
}
/**
* Durabble Object namespaces used for Pages Functions.
*/
interface DurableObjectNamespaces {
/**
* Durabble Object binding.
*/
DO_BINDING?: DurableObjectNamespaces.DoBinding;
}
namespace DurableObjectNamespaces {
/**
* Durabble Object binding.
*/
interface DoBinding {
/**
* ID of the Durabble Object namespace.
*/
namespace_id?: string;
}
}
/**
* Environment variables for build configs.
*/
interface EnvVars {
/**
* Environment variable.
*/
ENVIRONMENT_VARIABLE?: EnvVars.EnvironmentVariable;
}
namespace EnvVars {
/**
* Environment variable.
*/
interface EnvironmentVariable {
/**
* The type of environment variable (plain text or secret)
*/
type?: 'plain_text' | 'secret_text';
/**
* Environment variable value.
*/
value?: string;
}
}
/**
* Hyperdrive bindings used for Pages Functions.
*/
interface HyperdriveBindings {
/**
* Hyperdrive binding.
*/
HYPERDRIVE?: HyperdriveBindings.Hyperdrive;
}
namespace HyperdriveBindings {
/**
* Hyperdrive binding.
*/
interface Hyperdrive {
id?: string;
}
}
/**
* KV namespaces used for Pages Functions.
*/
interface KVNamespaces {
/**
* KV binding.
*/
KV_BINDING?: KVNamespaces.KVBinding;
}
namespace KVNamespaces {
/**
* KV binding.
*/
interface KVBinding {
/**
* ID of the KV namespace.
*/
namespace_id?: string;
}
}
/**
* mTLS bindings used for Pages Functions.
*/
interface MTLSCertificates {
/**
* mTLS binding.
*/
MTLS?: MTLSCertificates.MTLS;
}
namespace MTLSCertificates {
/**
* mTLS binding.
*/
interface MTLS {
certificate_id?: string;
}
}
/**
* Placement setting used for Pages Functions.
*/
interface Placement {
/**
* Placement mode.
*/
mode?: string;
}
/**
* Queue Producer bindings used for Pages Functions.
*/
interface QueueProducers {
/**
* Queue Producer binding.
*/
QUEUE_PRODUCER_BINDING?: QueueProducers.QueueProducerBinding;
}
namespace QueueProducers {
/**
* Queue Producer binding.
*/
interface QueueProducerBinding {
/**
* Name of the Queue.
*/
name?: string;
}
}
/**
* R2 buckets used for Pages Functions.
*/
interface R2Buckets {
/**
* R2 binding.
*/
R2_BINDING?: R2Buckets.R2Binding;
}
namespace R2Buckets {
/**
* R2 binding.
*/
interface R2Binding {
/**
* Name of the R2 bucket.
*/
name?: string;
}
}
/**
* Services used for Pages Functions.
*/
interface Services {
/**
* Service binding.
*/
SERVICE_BINDING?: Services.ServiceBinding;
}
namespace Services {
/**
* Service binding.
*/
interface ServiceBinding {
/**
* The entrypoint to bind to.
*/
entrypoint?: string | null;
/**
* The Service environment.
*/
environment?: string;
/**
* The Service name.
*/
service?: string;
}
}
/**
* Vectorize bindings used for Pages Functions.
*/
interface VectorizeBindings {
/**
* Vectorize binding.
*/
VECTORIZE?: VectorizeBindings.Vectorize;
}
namespace VectorizeBindings {
/**
* Vectorize binding.
*/
interface Vectorize {
index_name?: string;
}
}
}
/**
* Configs for production deploys.
*/
interface Production {
/**
* Constellation bindings used for Pages Functions.
*/
ai_bindings?: Production.AIBindings | null;
/**
* Analytics Engine bindings used for Pages Functions.
*/
analytics_engine_datasets?: Production.AnalyticsEngineDatasets | null;
/**
* Browser bindings used for Pages Functions.
*/
browsers?: Production.Browsers | null;
/**
* Compatibility date used for Pages Functions.
*/
compatibility_date?: string;
/**
* Compatibility flags used for Pages Functions.
*/
compatibility_flags?: Array<unknown>;
/**
* D1 databases used for Pages Functions.
*/
d1_databases?: Production.D1Databases | null;
/**
* Durabble Object namespaces used for Pages Functions.
*/
durable_object_namespaces?: Production.DurableObjectNamespaces | null;
/**
* Environment variables for build configs.
*/
env_vars?: Production.EnvVars | null;
/**
* Hyperdrive bindings used for Pages Functions.
*/
hyperdrive_bindings?: Production.HyperdriveBindings | null;
/**
* KV namespaces used for Pages Functions.
*/
kv_namespaces?: Production.KVNamespaces;
/**
* mTLS bindings used for Pages Functions.
*/
mtls_certificates?: Production.MTLSCertificates | null;
/**
* Placement setting used for Pages Functions.
*/
placement?: Production.Placement | null;
/**
* Queue Producer bindings used for Pages Functions.
*/
queue_producers?: Production.QueueProducers | null;
/**
* R2 buckets used for Pages Functions.
*/
r2_buckets?: Production.R2Buckets | null;
/**
* Services used for Pages Functions.
*/
services?: Production.Services | null;
/**
* Vectorize bindings used for Pages Functions.
*/
vectorize_bindings?: Production.VectorizeBindings | null;
}
namespace Production {
/**
* Constellation bindings used for Pages Functions.
*/
interface AIBindings {
/**
* AI binding.
*/
AI_BINDING?: AIBindings.AIBinding;
}
namespace AIBindings {
/**
* AI binding.
*/
interface AIBinding {
project_id?: unknown;
}
}
/**
* Analytics Engine bindings used for Pages Functions.
*/
interface AnalyticsEngineDatasets {
/**
* Analytics Engine binding.
*/
ANALYTICS_ENGINE_BINDING?: AnalyticsEngineDatasets.AnalyticsEngineBinding;
}
namespace AnalyticsEngineDatasets {
/**
* Analytics Engine binding.
*/
interface AnalyticsEngineBinding {
/**
* Name of the dataset.
*/
dataset?: string;
}
}
/**
* Browser bindings used for Pages Functions.
*/
interface Browsers {
/**
* Browser binding.
*/
BROWSER?: unknown;
}
/**
* D1 databases used for Pages Functions.
*/
interface D1Databases {
/**
* D1 binding.
*/
D1_BINDING?: D1Databases.D1Binding;
}
namespace D1Databases {
/**
* D1 binding.
*/
interface D1Binding {
/**
* UUID of the D1 database.
*/
id?: string;
}
}
/**
* Durabble Object namespaces used for Pages Functions.
*/
interface DurableObjectNamespaces {
/**
* Durabble Object binding.
*/
DO_BINDING?: DurableObjectNamespaces.DoBinding;
}
namespace DurableObjectNamespaces {
/**
* Durabble Object binding.
*/
interface DoBinding {
/**
* ID of the Durabble Object namespace.
*/
namespace_id?: string;
}
}
/**
* Environment variables for build configs.
*/
interface EnvVars {
/**
* Environment variable.
*/
ENVIRONMENT_VARIABLE?: EnvVars.EnvironmentVariable;
}
namespace EnvVars {
/**
* Environment variable.
*/
interface EnvironmentVariable {
/**
* The type of environment variable (plain text or secret)
*/
type?: 'plain_text' | 'secret_text';
/**
* Environment variable value.
*/
value?: string;
}
}
/**
* Hyperdrive bindings used for Pages Functions.
*/
interface HyperdriveBindings {
/**
* Hyperdrive binding.
*/
HYPERDRIVE?: HyperdriveBindings.Hyperdrive;
}
namespace HyperdriveBindings {
/**
* Hyperdrive binding.
*/
interface Hyperdrive {
id?: string;
}
}
/**
* KV namespaces used for Pages Functions.
*/
interface KVNamespaces {
/**
* KV binding.
*/
KV_BINDING?: KVNamespaces.KVBinding;
}
namespace KVNamespaces {
/**
* KV binding.
*/
interface KVBinding {
/**
* ID of the KV namespace.
*/
namespace_id?: string;
}
}
/**
* mTLS bindings used for Pages Functions.
*/
interface MTLSCertificates {
/**
* mTLS binding.
*/
MTLS?: MTLSCertificates.MTLS;
}
namespace MTLSCertificates {
/**
* mTLS binding.
*/
interface MTLS {
certificate_id?: string;
}
}
/**
* Placement setting used for Pages Functions.
*/
interface Placement {
/**
* Placement mode.
*/
mode?: string;
}
/**
* Queue Producer bindings used for Pages Functions.
*/
interface QueueProducers {
/**
* Queue Producer binding.
*/
QUEUE_PRODUCER_BINDING?: QueueProducers.QueueProducerBinding;
}
namespace QueueProducers {
/**
* Queue Producer binding.
*/
interface QueueProducerBinding {
/**
* Name of the Queue.
*/
name?: string;
}
}
/**
* R2 buckets used for Pages Functions.
*/
interface R2Buckets {
/**
* R2 binding.
*/
R2_BINDING?: R2Buckets.R2Binding;
}
namespace R2Buckets {
/**
* R2 binding.
*/
interface R2Binding {
/**
* Name of the R2 bucket.
*/
name?: string;
}
}
/**
* Services used for Pages Functions.
*/
interface Services {
/**
* Service binding.
*/
SERVICE_BINDING?: Services.ServiceBinding;
}
namespace Services {
/**
* Service binding.
*/
interface ServiceBinding {
/**
* The entrypoint to bind to.
*/
entrypoint?: string | null;
/**
* The Service environment.
*/
environment?: string;
/**
* The Service name.
*/
service?: string;
}
}
/**
* Vectorize bindings used for Pages Functions.
*/
interface VectorizeBindings {
/**
* Vectorize binding.
*/
VECTORIZE?: VectorizeBindings.Vectorize;
}
namespace VectorizeBindings {
/**
* Vectorize binding.
*/
interface Vectorize {
index_name?: string;
}
}
}
}
}
/**
* The status of the deployment.
*/
export interface Stage {
/**
* When the stage ended.
*/
ended_on?: string | null;
/**
* The current build stage.
*/
name?: string;
/**
* When the stage started.
*/
started_on?: string | null;
/**
* State of the current stage.
*/
status?: string;
}
export type ProjectCreateResponse = unknown | Array<unknown> | string;
export type ProjectDeleteResponse = unknown;
export type ProjectEditResponse = unknown | Array<unknown> | string;
export type ProjectPurgeBuildCacheResponse = unknown;
export interface ProjectCreateParams {
/**
* Path param: Identifier
*/
account_id: string;
/**
* Body param: Configs for the project build process.
*/
build_config?: ProjectCreateParams.BuildConfig;
/**
* Body param:
*/
canonical_deployment?: Deployment;
/**
* Body param: Configs for deployments in a project.
*/
deployment_configs?: ProjectCreateParams.DeploymentConfigs;
/**
* Body param:
*/
latest_deployment?: Deployment;
/**
* Body param: Name of the project.
*/
name?: string;
/**
* Body param: Production branch of the project. Used to identify production
* deployments.
*/
production_branch?: string;
}
export declare namespace ProjectCreateParams {
/**
* Configs for the project build process.
*/
interface BuildConfig {
/**
* Enable build caching for the project.
*/
build_caching?: boolean | null;
/**
* Command used to build project.
*/
build_command?: string | null;
/**
* Output directory of the build.
*/
destination_dir?: string | null;
/**
* Directory to run the command.
*/
root_dir?: string | null;
/**
* The classifying tag for analytics.
*/
web_analytics_tag?: string | null;
/**
* The auth token for analytics.
*/
web_analytics_token?: string | null;
}
/**
* Configs for deployments in a project.
*/
interface DeploymentConfigs {
/**
* Configs for preview deploys.
*/
preview?: DeploymentConfigs.Preview;
/**
* Configs for production deploys.
*/
production?: DeploymentConfigs.Production;
}
namespace DeploymentConfigs {
/**
* Configs for preview deploys.
*/
interface Preview {
/**
* Constellation bindings used for Pages Functions.
*/
ai_bindings?: Preview.AIBindings | null;
/**
* Analytics Engine bindings used for Pages Functions.
*/
analytics_engine_datasets?: Preview.AnalyticsEngineDatasets | null;
/**
* Browser bindings used for Pages Functions.
*/
browsers?: Preview.Browsers | null;
/**
* Compatibility date used for Pages Functions.
*/
compatibility_date?: string;
/**
* Compatibility flags used for Pages Functions.
*/
compatibility_flags?: Array<unknown>;
/**
* D1 databases used for Pages Functions.
*/
d1_databases?: Preview.D1Databases | null;
/**
* Durabble Object namespaces used for Pages Functions.
*/
durable_object_namespaces?: Preview.DurableObjectNamespaces | null;
/**
* Environment variables for build configs.
*/
env_vars?: Preview.EnvVars | null;
/**
* Hyperdrive bindings used for Pages Functions.
*/
hyperdrive_bindings?: Preview.HyperdriveBindings | null;
/**
* KV namespaces used for Pages Functions.
*/
kv_namespaces?: Preview.KVNamespaces;
/**
* mTLS bindings used for Pages Functions.
*/
mtls_certificates?: Preview.MTLSCertificates | null;
/**
* Placement setting used for Pages Functions.
*/
placement?: Preview.Placement | null;
/**
* Queue Producer bindings used for Pages Functions.
*/
queue_producers?: Preview.QueueProducers | null;
/**
* R2 buckets used for Pages Functions.
*/
r2_buckets?: Preview.R2Buckets | null;
/**
* Services used for Pages Functions.
*/
services?: Preview.Services | null;
/**
* Vectorize bindings used for Pages Functions.
*/
vectorize_bindings?: Preview.VectorizeBindings | null;
}
namespace Preview {
/**
* Constellation bindings used for Pages Functions.
*/
interface AIBindings {
/**
* AI binding.
*/
AI_BINDING?: AIBindings.AIBinding;
}
namespace AIBindings {
/**
* AI binding.
*/
interface AIBinding {
project_id?: unknown;
}
}
/**
* Analytics Engine bindings used for Pages Functions.
*/
interface AnalyticsEngineDatasets {
/**
* Analytics Engine binding.
*/
ANALYTICS_ENGINE_BINDING?: AnalyticsEngineDatasets.AnalyticsEngineBinding;
}
namespace AnalyticsEngineDatasets {
/**
* Analytics Engine binding.
*/
interface AnalyticsEngineBinding {
/**
* Name of the dataset.
*/
dataset?: string;
}
}
/**
* Browser bindings used for Pages Functions.
*/
interface Browsers {
/**
* Browser binding.
*/
BROWSER?: unknown;
}
/**
* D1 databases used for Pages Functions.
*/
interface D1Databases {
/**
* D1 binding.
*/
D1_BINDING?: D1Databases.D1Binding;
}
namespace D1Databases {
/**
* D1 binding.
*/
interface D1Binding {
/**
* UUID of the D1 database.
*/
id?: string;
}
}
/**
* Durabble Object namespaces used for Pages Functions.
*/
interface DurableObjectNamespaces {
/**
* Durabble Object binding.
*/
DO_BINDING?: DurableObjectNamespaces.DoBinding;
}
namespace DurableObjectNamespaces {
/**
* Durabble Object binding.
*/
interface DoBinding {
/**
* ID of the Durabble Object namespace.
*/
namespace_id?: string;
}
}
/**
* Environment variables for build configs.
*/
interface EnvVars {
/**
* Environment variable.
*/
ENVIRONMENT_VARIABLE?: EnvVars.EnvironmentVariable;
}
namespace EnvVars {
/**
* Environment variable.
*/
interface EnvironmentVariable {
/**
* The type of environment variable (plain text or secret)
*/
type?: 'plain_text' | 'secret_text';
/**
* Environment variable value.
*/
value?: string;
}
}
/**
* Hyperdrive bindings used for Pages Functions.
*/
interface HyperdriveBindings {
/**
* Hyperdrive binding.
*/
HYPERDRIVE?: HyperdriveBindings.Hyperdrive;
}
namespace HyperdriveBindings {
/**
* Hyperdrive binding.
*/
interface Hyperdrive {
id?: string;
}
}
/**
* KV namespaces used for Pages Functions.
*/
interface KVNamespaces {
/**
* KV binding.
*/
KV_BINDING?: KVNamespaces.KVBinding;
}
namespace KVNamespaces {
/**
* KV binding.
*/
interface KVBinding {
/**
* ID of the KV namespace.
*/
namespace_id?: string;
}
}
/**
* mTLS bindings used for Pages Functions.
*/
interface MTLSCertificates {
/**
* mTLS binding.
*/
MTLS?: MTLSCertificates.MTLS;
}
namespace MTLSCertificates {
/**
* mTLS binding.
*/
interface MTLS {
certificate_id?: string;
}
}
/**
* Placement setting used for Pages Functions.
*/
interface Placement {
/**
* Placement mode.
*/
mode?: string;
}
/**
* Queue Producer bindings used for Pages Functions.
*/
interface QueueProducers {
/**
* Queue Producer binding.
*/
QUEUE_PRODUCER_BINDING?: QueueProducers.QueueProducerBinding;
}
namespace QueueProducers {
/**
* Queue Producer binding.
*/
interface QueueProducerBinding {
/**
* Name of the Queue.
*/
name?: string;
}
}
/**
* R2 buckets used for Pages Functions.
*/
interface R2Buckets {
/**
* R2 binding.
*/
R2_BINDING?: R2Buckets.R2Binding;
}
namespace R2Buckets {
/**
* R2 binding.
*/
interface R2Binding {
/**
* Name of the R2 bucket.
*/
name?: string;
}
}
/**
* Services used for Pages Functions.
*/
interface Services {
/**
* Service binding.
*/
SERVICE_BINDING?: Services.ServiceBinding;
}
namespace Services {
/**
* Service binding.
*/
interface ServiceBinding {
/**
* The entrypoint to bind to.
*/
entrypoint?: string | null;
/**
* The Service environment.
*/
environment?: string;
/**
* The Service name.
*/
service?: string;
}
}
/**
* Vectorize bindings used for Pages Functions.
*/
interface VectorizeBindings {
/**
* Vectorize binding.
*/
VECTORIZE?: VectorizeBindings.Vectorize;
}
namespace VectorizeBindings {
/**
* Vectorize binding.
*/
interface Vectorize {
index_name?: string;
}
}
}
/**
* Configs for production deploys.
*/
interface Production {
/**
* Constellation bindings used for Pages Functions.
*/
ai_bindings?: Production.AIBindings | null;
/**
* Analytics Engine bindings used for Pages Functions.
*/
analytics_engine_datasets?: Production.AnalyticsEngineDatasets | null;
/**
* Browser bindings used for Pages Functions.
*/
browsers?: Production.Browsers | null;
/**
* Compatibility date used for Pages Functions.
*/
compatibility_date?: string;
/**
* Compatibility flags used for Pages Functions.
*/
compatibility_flags?: Array<unknown>;
/**
* D1 databases used for Pages Functions.
*/
d1_databases?: Production.D1Databases | null;
/**
* Durabble Object namespaces used for Pages Functions.
*/
durable_object_namespaces?: Production.DurableObjectNamespaces | null;
/**
* Environment variables for build configs.
*/
env_vars?: Production.EnvVars | null;
/**
* Hyperdrive bindings used for Pages Functions.
*/
hyperdrive_bindings?: Production.HyperdriveBindings | null;
/**
* KV namespaces used for Pages Functions.
*/
kv_namespaces?: Production.KVNamespaces;
/**
* mTLS bindings used for Pages Functions.
*/
mtls_certificates?: Production.MTLSCertificates | null;
/**
* Placement setting used for Pages Functions.
*/
placement?: Production.Placement | null;
/**
* Queue Producer bindings used for Pages Functions.
*/
queue_producers?: Production.QueueProducers | null;
/**
* R2 buckets used for Pages Functions.
*/
r2_buckets?: Production.R2Buckets | null;
/**
* Services used for Pages Functions.
*/
services?: Production.Services | null;
/**
* Vectorize bindings used for Pages Functions.
*/
vectorize_bindings?: Production.VectorizeBindings | null;
}
namespace Production {
/**
* Constellation bindings used for Pages Functions.
*/
interface AIBindings {
/**
* AI binding.
*/
AI_BINDING?: AIBindings.AIBinding;
}
namespace AIBindings {
/**
* AI binding.
*/
interface AIBinding {
project_id?: unknown;
}
}
/**
* Analytics Engine bindings used for Pages Functions.
*/
interface AnalyticsEngineDatasets {
/**
* Analytics Engine binding.
*/
ANALYTICS_ENGINE_BINDING?: AnalyticsEngineDatasets.AnalyticsEngineBinding;
}
namespace AnalyticsEngineDatasets {
/**
* Analytics Engine binding.
*/
interface AnalyticsEngineBinding {
/**
* Name of the dataset.
*/
dataset?: string;
}
}
/**
* Browser bindings used for Pages Functions.
*/
interface Browsers {
/**
* Browser binding.
*/
BROWSER?: unknown;
}
/**
* D1 databases used for Pages Functions.
*/
interface D1Databases {
/**
* D1 binding.
*/
D1_BINDING?: D1Databases.D1Binding;
}
namespace D1Databases {
/**
* D1 binding.
*/
interface D1Binding {
/**
* UUID of the D1 database.
*/
id?: string;
}
}
/**
* Durabble Object namespaces used for Pages Functions.
*/
interface DurableObjectNamespaces {
/**
* Durabble Object binding.
*/
DO_BINDING?: DurableObjectNamespaces.DoBinding;
}
namespace DurableObjectNamespaces {
/**
* Durabble Object binding.
*/
interface DoBinding {
/**
* ID of the Durabble Object namespace.
*/
namespace_id?: string;
}
}
/**
* Environment variables for build configs.
*/
interface EnvVars {
/**
* Environment variable.
*/
ENVIRONMENT_VARIABLE?: EnvVars.EnvironmentVariable;
}
namespace EnvVars {
/**
* Environment variable.
*/
interface EnvironmentVariable {
/**
* The type of environment variable (plain text or secret)
*/
type?: 'plain_text' | 'secret_text';
/**
* Environment variable value.
*/
value?: string;
}
}
/**
* Hyperdrive bindings used for Pages Functions.
*/
interface HyperdriveBindings {
/**
* Hyperdrive binding.
*/
HYPERDRIVE?: HyperdriveBindings.Hyperdrive;
}
namespace HyperdriveBindings {
/**
* Hyperdrive binding.
*/
interface Hyperdrive {
id?: string;
}
}
/**
* KV namespaces used for Pages Functions.
*/
interface KVNamespaces {
/**
* KV binding.
*/
KV_BINDING?: KVNamespaces.KVBinding;
}
namespace KVNamespaces {
/**
* KV binding.
*/
interface KVBinding {
/**
* ID of the KV namespace.
*/
namespace_id?: string;
}
}
/**
* mTLS bindings used for Pages Functions.
*/
interface MTLSCertificates {
/**
* mTLS binding.
*/
MTLS?: MTLSCertificates.MTLS;
}
namespace MTLSCertificates {
/**
* mTLS binding.
*/
interface MTLS {
certificate_id?: string;
}
}
/**
* Placement setting used for Pages Functions.
*/
interface Placement {
/**
* Placement mode.
*/
mode?: string;
}
/**
* Queue Producer bindings used for Pages Functions.
*/
interface QueueProducers {
/**
* Queue Producer binding.
*/
QUEUE_PRODUCER_BINDING?: QueueProducers.QueueProducerBinding;
}
namespace QueueProducers {
/**
* Queue Producer binding.
*/
interface QueueProducerBinding {
/**
* Name of the Queue.
*/
name?: string;
}
}
/**
* R2 buckets used for Pages Functions.
*/
interface R2Buckets {
/**
* R2 binding.
*/
R2_BINDING?: R2Buckets.R2Binding;
}
namespace R2Buckets {
/**
* R2 binding.
*/
interface R2Binding {
/**
* Name of the R2 bucket.
*/
name?: string;
}
}
/**
* Services used for Pages Functions.
*/
interface Services {
/**
* Service binding.
*/
SERVICE_BINDING?: Services.ServiceBinding;
}
namespace Services {
/**
* Service binding.
*/
interface ServiceBinding {
/**
* The entrypoint to bind to.
*/
entrypoint?: string | null;
/**
* The Service environment.
*/
environment?: string;
/**
* The Service name.
*/
service?: string;
}
}
/**
* Vectorize bindings used for Pages Functions.
*/
interface VectorizeBindings {
/**
* Vectorize binding.
*/
VECTORIZE?: VectorizeBindings.Vectorize;
}
namespace VectorizeBindings {
/**
* Vectorize binding.
*/
interface Vectorize {
index_name?: string;
}
}
}
}
}
export interface ProjectListParams {
/**
* Identifier
*/
account_id: string;
}
export interface ProjectDeleteParams {
/**
* Path param: Identifier
*/
account_id: st