export type ClientOptions = { baseUrl: 'https://app.koyeb.com/' | (string & {}); }; export type GoogleProtobufAny = { '@type'?: string; [key: string]: { [key: string]: unknown; } | string | undefined; }; export type GoogleRpcStatus = { code?: number; message?: string; details?: Array; }; export type _Error = { status?: number; code?: string; message?: string; }; export type ErrorField = { field?: string; description?: string; }; export type ErrorWithFields = { status?: number; code?: string; message?: string; fields?: Array; }; export type KsearchApp = { id?: string; organization_id?: string; name?: string; }; export type KsearchGlobalDeployment = { id?: string; organization_id?: string; app_id?: string; service_id?: string; }; export type KsearchInstance = { id?: string; organization_id?: string; app_id?: string; service_id?: string; allocation_id?: string; }; export type KsearchOrganization = { id?: string; name?: string; }; export type KsearchRegionalDeployment = { id?: string; organization_id?: string; app_id?: string; service_id?: string; region?: string; }; export type KsearchSearchReply = { organizations?: Array; users?: Array; apps?: Array; services?: Array; global_deployments?: Array; regional_deployments?: Array; instances?: Array; }; export type KsearchService = { id?: string; organization_id?: string; app_id?: string; name?: string; }; export type KsearchUser = { id?: string; email?: string; name?: string; github_user?: string; }; export type KgitproxyBranch = { id?: string; organization_id?: string; repository_id?: string; name?: string; is_default?: boolean; is_protected?: boolean; provider?: KgitproxyRepositoryProvider; }; export type KgitproxyGitHubRepository = { github_id?: string; }; export type KgitproxyListBranchesReply = { /** * The collection of branches. */ branches?: Array; /** * The limit in the request. */ limit?: number; /** * The offset in the request. */ offset?: number; /** * The total number of items. */ count?: number; }; export type KgitproxyListRepositoriesReply = { /** * The collection of repositories. */ repositories?: Array; /** * The limit in the request. */ limit?: number; /** * The offset in the request. */ offset?: number; /** * The total number of items. */ count?: number; }; export type KgitproxyRepository = { id?: string; organization_id?: string; name?: string; url?: string; description?: string; is_private?: boolean; is_disabled?: boolean; default_branch?: string; provider?: KgitproxyRepositoryProvider; last_push_date?: string; github?: KgitproxyGitHubRepository; }; export type KgitproxyRepositoryProvider = 'INVALID_PROVIDER' | 'GITHUB'; export type KgitproxyResyncOrganizationReply = { [key: string]: unknown; }; export type CreateStageAttemptReply = { [key: string]: unknown; }; export type DeclareStageProgressReply = { [key: string]: unknown; }; export type DeclareStepProgressReply = { [key: string]: unknown; }; export type DeploymentProvisioningInfoStageStatus = 'UNKNOWN' | 'PENDING' | 'RUNNING' | 'FAILED' | 'COMPLETED' | 'ABORTED'; export type AppUsage = { app_id?: string; app_name?: string; services?: Array; databases?: Array; }; export type DatabaseUsage = { service_id?: string; service_name?: string; compute_time_seconds?: number; data_storage_megabytes_hours?: number; }; export type DatabaseUsageDetails = { organization_id?: string; app_id?: string; app_name?: string; service_id?: string; service_name?: string; compute_time_seconds?: number; data_storage_megabytes_hour?: number; started_at?: string; terminated_at?: string; }; export type GetOrganizationUsageDetailsReply = { /** * The collection of usage instances */ usage_details?: Array; /** * The collection of database deployments used during the month */ database_details?: Array; /** * The limit in the request */ limit?: number; /** * The offset in the request */ offset?: number; /** * The total number of items */ count?: number; /** * The order in the request */ order?: string; }; export type GetOrganizationUsageReply = { usage?: Usage; }; export type InstanceUsage = { duration_seconds?: number; }; export type PeriodUsage = { starting_time?: string; ending_time?: string; apps?: Array; }; export type RegionUsage = { instances?: { [key: string]: InstanceUsage; }; }; export type ServiceUsage = { service_id?: string; service_name?: string; regions?: { [key: string]: RegionUsage; }; }; export type Usage = { organization_id?: string; periods?: { [key: string]: PeriodUsage; }; }; export type UsageDetails = { organization_id?: string; instance_id?: string; app_id?: string; app_name?: string; service_id?: string; service_name?: string; regional_deployment_id?: string; region?: string; deployment_id?: string; instance_type?: string; duration_seconds?: number; started_at?: string; terminated_at?: string; }; /** * `NullValue` is a singleton enumeration to represent the null value for the * `Value` type union. * * The JSON representation for `NullValue` is JSON `null`. * * - NULL_VALUE: Null value. */ export type GoogleProtobufNullValue = 'NULL_VALUE'; export type BasicAuthPolicy = { username?: string; password?: string; }; export type SecurityPolicies = { basic_auths?: Array; api_keys?: Array; }; export type ArchiveDeploymentMetadata = { last_provisioned_deployment_id?: string; }; export type ArchiveSource = { /** * The ID of the archive to deploy */ id?: string; buildpack?: BuildpackBuilder; docker?: DockerBuilder; }; export type AutoRelease = { groups?: Array; }; /** * Configuration extracted from the latest deployment in this deployment_group */ export type AutoReleaseGroup = { name?: string; repository?: string; /** * A git ref to track (.e.g: refs/tags/ or refs/heads/ */ git_ref?: string; /** * The last hash that was resolved (used to avoid triggering releases when things haven't changed) */ latest_sha?: string; }; export type AutocompleteReply = { /** * List of available secrets */ secrets?: Array; /** * List of available user's environment variables */ user_env?: Array; /** * List of available system's environment variables */ system_env?: Array; }; export type AutocompleteRequest = { definition?: DeploymentDefinition; }; export type BuildpackBuilder = { /** * A command used to override the build command, run after all build steps */ build_command?: string; /** * A command used to override the default run command */ run_command?: string; /** * A flag to run the container in privileged mode */ privileged?: boolean; }; export type ConfigFile = { /** * the path where the file is copied */ path?: string; /** * the permissions of the file in format 0644 */ permissions?: string; /** * the content of the file */ content?: string; }; export type CreateService = { app_id?: string; definition?: DeploymentDefinition; life_cycle?: ServiceLifeCycle; /** * (Optional) The project ID to associate with the service */ project_id?: string; /** * Instance Snapshot used to boot the Instances of this deployment * With a Full Snapshot, definition must not be provided */ instance_snapshot_id?: string; /** * Service name, set at creation time only. If empty, fallback to definition.name */ name?: string; }; export type CreateServiceReply = { service?: Service; }; export type DatabaseDeploymentMetadata = { neon_postgres?: NeonPostgresDatabaseDeploymentMetadata; }; export type DatabaseSource = { neon_postgres?: NeonPostgresDatabase; }; export type DeleteServiceReply = { [key: string]: unknown; }; /** * Empty reply - success is indicated by no error */ export type DeleteServiceScalingReply = { [key: string]: unknown; }; export type Deployment = { id?: string; created_at?: string; updated_at?: string; allocated_at?: string; started_at?: string; succeeded_at?: string; terminated_at?: string; organization_id?: string; project_id?: string; app_id?: string; service_id?: string; parent_id?: string; child_id?: string; status?: DeploymentStatus; metadata?: DeploymentMetadata; definition?: DeploymentDefinition; messages?: Array; provisioning_info?: DeploymentProvisioningInfo; database_info?: DeploymentDatabaseInfo; skip_build?: boolean; role?: DeploymentRole; version?: string; deployment_group?: string; /** * Instance Snapshot used to boot the Instances of this deployment */ instance_snapshot_id?: string; }; export type DeploymentRole = 'INVALID' | 'ACTIVE' | 'UPCOMING' | 'CURRENT'; export type DeploymentStatus = 'PENDING' | 'PROVISIONING' | 'SCHEDULED' | 'CANCELING' | 'CANCELED' | 'ALLOCATING' | 'STARTING' | 'HEALTHY' | 'DEGRADED' | 'UNHEALTHY' | 'STOPPING' | 'STOPPED' | 'ERRORING' | 'ERROR' | 'STASHED' | 'SLEEPING'; export type DeploymentDatabaseInfo = { neon_postgres?: DeploymentNeonPostgresDatabaseInfo; }; export type DeploymentDefinition = { /** * Service name. Deprecated, set it directly in the Service when creating it. */ name?: string; type?: DeploymentDefinitionType; strategy?: DeploymentStrategy; routes?: Array; ports?: Array; proxy_ports?: Array; env?: Array; regions?: Array; scalings?: Array; instance_types?: Array; health_checks?: Array; volumes?: Array; config_files?: Array; skip_cache?: boolean; mesh?: DeploymentMesh; network_policy?: NetworkPolicy; docker?: DockerSource; git?: GitSource; database?: DatabaseSource; archive?: ArchiveSource; }; export type DeploymentDefinitionType = 'INVALID' | 'WEB' | 'WORKER' | 'DATABASE' | 'SANDBOX'; export type DeploymentEnv = { scopes?: Array; key?: string; value?: string; secret?: string; }; export type DeploymentHealthCheck = { /** * An optional initial period in seconds to wait for the instance to become healthy, default is 5s */ grace_period?: number; /** * An optional period in seconds between two health checks, default is 60s */ interval?: number; /** * An optional number of consecutive failures before attempting to restart the service, default is 3 */ restart_limit?: number; /** * An optional maximum time to wait in seconds before considering the check as a failure, default is 5s */ timeout?: number; tcp?: TcpHealthCheck; http?: HttpHealthCheck; }; export type DeploymentInstanceType = { scopes?: Array; type?: string; }; export type DeploymentMesh = 'DEPLOYMENT_MESH_AUTO' | 'DEPLOYMENT_MESH_ENABLED' | 'DEPLOYMENT_MESH_DISABLED'; export type DeploymentMetadata = { trigger?: TriggerDeploymentMetadata; database?: DatabaseDeploymentMetadata; git?: GitDeploymentMetadata; archive?: ArchiveDeploymentMetadata; proxy_ports?: Array; sandbox?: SandboxMetadata; }; export type DeploymentNeonPostgresDatabaseInfo = { active_time_seconds?: string; compute_time_seconds?: string; written_data_bytes?: string; data_transfer_bytes?: string; data_storage_bytes_hour?: string; server_host?: string; server_port?: number; endpoint_state?: string; endpoint_last_active?: string; default_branch_id?: string; default_branch_name?: string; default_branch_state?: string; default_branch_logical_size?: string; roles?: Array; }; export type DeploymentNeonPostgresDatabaseInfoRole = { name?: string; secret_id?: string; }; export type DeploymentPort = { port?: number; /** * One of http, http2, tcp */ protocol?: string; }; export type DeploymentProvisioningInfo = { /** * The git sha for this build (we resolve the reference at the start of the build). */ sha?: string; /** * The docker image built as a result of this build. */ image?: string; /** * Some info about the build. */ stages?: Array; }; export type DeploymentProvisioningInfoStage = { name?: string; status?: DeploymentProvisioningInfoStageStatus; messages?: Array; started_at?: string; finished_at?: string; build_attempts?: Array; }; export type DeploymentProvisioningInfoStageBuildAttempt = { id?: number; status?: DeploymentProvisioningInfoStageStatus; messages?: Array; started_at?: string; finished_at?: string; steps?: Array; image_pushed?: boolean; internal_failure?: boolean; retryable_failure?: boolean; /** * This flag is used to finalize the build, and continue the deployment in case of success, or cancel and potentially retry the build in case of failure. */ wait_completion?: boolean; }; export type DeploymentProvisioningInfoStageBuildAttemptBuildStep = { name?: string; status?: DeploymentProvisioningInfoStageStatus; messages?: Array; started_at?: string; finished_at?: string; }; export type DeploymentProxyPort = { port?: number; protocol?: ProxyPortProtocol; }; export type DeploymentProxyPortMetadata = { host?: string; public_port?: number; port?: number; protocol?: ProxyPortProtocol; }; export type DeploymentRoute = { port?: number; path?: string; security_policies?: SecurityPolicies; }; export type DeploymentScaling = { scopes?: Array; min?: number; max?: number; targets?: Array; }; export type DeploymentScalingTarget = { average_cpu?: DeploymentScalingTargetAverageCpu; average_mem?: DeploymentScalingTargetAverageMem; requests_per_second?: DeploymentScalingTargetRequestsPerSecond; concurrent_requests?: DeploymentScalingTargetConcurrentRequests; requests_response_time?: DeploymentScalingTargetRequestsResponseTime; sleep_idle_delay?: DeploymentScalingTargetSleepIdleDelay; }; export type DeploymentScalingTargetAverageCpu = { value?: number; }; export type DeploymentScalingTargetAverageMem = { value?: number; }; export type DeploymentScalingTargetConcurrentRequests = { value?: number; }; export type DeploymentScalingTargetRequestsPerSecond = { value?: number; }; export type DeploymentScalingTargetRequestsResponseTime = { value?: number; /** * The quantile to use for autoscaling. For example, set to 95 to use the 95th * percentile (p95) for autoscaling. Valid values are between 0 and 100. */ quantile?: number; }; export type DeploymentScalingTargetSleepIdleDelay = { /** * DEPRECATED: use deep_sleep_value instead. * Delay in seconds after which a service which received 0 request is put to deep sleep. */ value?: number; /** * Delay in seconds after which a service which received 0 request is put to deep sleep. */ deep_sleep_value?: number; /** * Delay in seconds after which a service which received 0 request is put to light sleep. */ light_sleep_value?: number; }; export type DeploymentStrategy = { type?: DeploymentStrategyType; }; /** * - DEPLOYMENT_STRATEGY_TYPE_INVALID: DEPRECATED: Use DEPLOYMENT_STRATEGY_TYPE_DEFAULT instead. * - DEPLOYMENT_STRATEGY_TYPE_DEFAULT: Default/unspecified strategy (resolves to platform default, currently ROLLING). * - DEPLOYMENT_STRATEGY_TYPE_CANARY: Use canary strategy. * - DEPLOYMENT_STRATEGY_TYPE_ROLLING: Use rolling strategy. * - DEPLOYMENT_STRATEGY_TYPE_BLUE_GREEN: Use blue green strategy. * - DEPLOYMENT_STRATEGY_TYPE_IMMEDIATE: Use immediate strategy. */ export type DeploymentStrategyType = 'DEPLOYMENT_STRATEGY_TYPE_INVALID' | 'DEPLOYMENT_STRATEGY_TYPE_DEFAULT' | 'DEPLOYMENT_STRATEGY_TYPE_CANARY' | 'DEPLOYMENT_STRATEGY_TYPE_ROLLING' | 'DEPLOYMENT_STRATEGY_TYPE_BLUE_GREEN' | 'DEPLOYMENT_STRATEGY_TYPE_IMMEDIATE'; export type DeploymentVolume = { /** * the id of the volume */ id?: string; /** * the path where the volume is mounted to */ path?: string; /** * optionally, explicitly choose the replica index to mount the volume to */ replica_index?: number; /** * scope of the associated */ scopes?: Array; }; export type DesiredDeployment = { groups?: Array; }; export type DesiredDeploymentGroup = { name?: string; deployment_ids?: Array; }; export type DockerBuilder = { /** * A path to the Dockerfile */ dockerfile?: string; /** * The docker ENTRYPOINT */ entrypoint?: Array; /** * The docker CMD */ command?: string; /** * The docker CMD args */ args?: Array; /** * The target for multi-stage builds */ target?: string; /** * A flag to run the container in privileged mode */ privileged?: boolean; }; export type DockerSource = { image?: string; command?: string; args?: Array; image_registry_secret?: string; entrypoint?: Array; /** * A flag to run the container in privileged mode */ privileged?: boolean; }; export type EgressPolicy = { mode?: EgressPolicyMode; /** * Allowed destinations (deny-by-default semantics under DENY_ALL). * Ignored when mode is DEFAULT. */ allow_list?: Array; }; export type EgressPolicyMode = 'EGRESS_POLICY_MODE_DEFAULT' | 'EGRESS_POLICY_MODE_DENY_ALL'; export type GetServiceReply = { service?: Service; }; export type GetServiceScalingReply = { /** * The current manual scaling configuration */ scalings?: Array; }; export type GitDeploymentMetadata = { last_provisioned_deployment_id?: string; git_env?: GitEnvDeploymentMetadata; }; export type GitEnvDeploymentMetadata = { sha?: string; commit_author?: string; commit_message?: string; }; export type GitSource = { /** * A url to a git repository (contains the provider as well) .e.g: github.com/koyeb/test. */ repository?: string; /** * A git branch that will be tracked for new commits and deployments will be created */ branch?: string; /** * A git tag that should be built */ tag?: string; /** * A git commit that should be built (useful for pinning to a commit, this will always be set when a deployment is created by a code push) */ sha?: string; /** * A command used to override the build command, run after all build steps — deprecated, use buildpack.build_command instead */ build_command?: string; /** * A command used to override the default run command - deprecated, use buildpack.run_command instead */ run_command?: string; /** * A flag to disable a new deployment when a push event is detected */ no_deploy_on_push?: boolean; /** * A subdirectory to use as the build directory */ workdir?: string; buildpack?: BuildpackBuilder; docker?: DockerBuilder; }; export type HttpHeader = { key?: string; value?: string; }; export type HttpHealthCheck = { /** * The port to use to perform the health check, must be declared in the ports section */ port?: number; /** * The path to use to perform the HTTP health check */ path?: string; /** * An optional HTTP method to use to perform the health check, default is GET */ method?: string; /** * An optional list of HTTP headers to provide when performing the request, default is empty */ headers?: Array; }; export type ListServiceEventsReply = { /** * The collection of events */ events?: Array; /** * The limit in the request */ limit?: number; /** * The offset in the request */ offset?: number; /** * The order in the request */ order?: string; /** * If there is more items after in the collection */ has_next?: boolean; }; export type ListServicesReply = { services?: Array; /** * The limit in the request */ limit?: number; /** * The offset in the request */ offset?: number; /** * The total number of items */ count?: number; /** * If there is more items after in the collection */ has_next?: boolean; }; export type ManualServiceScaling = { scopes?: Array; instances?: number; }; export type NeonPostgresDatabase = { pg_version?: number; region?: string; instance_type?: string; roles?: Array; databases?: Array; }; export type NeonPostgresDatabaseNeonDatabase = { name?: string; owner?: string; }; export type NeonPostgresDatabaseNeonRole = { name?: string; secret?: string; }; export type NeonPostgresDatabaseDeploymentMetadata = { reset_role_passwords?: Array; }; export type NetworkPolicy = { egress?: EgressPolicy; }; export type NetworkPolicyDestination = { /** * IPv4 or IPv6 CIDR (e.g. "10.0.0.0/8", "2001:db8::/32"). * Bare IPs are accepted at the API boundary and normalized to /32 * (IPv4) or /128 (IPv6) before storage. */ cidr?: string; }; export type PauseServiceReply = { [key: string]: unknown; }; export type ProxyPortProtocol = 'tcp'; export type RedeployReply = { deployment?: Deployment; }; export type RedeployRequestInfo = { deployment_group?: string; sha?: string; use_cache?: boolean; /** * If set to true, the build stage will be skipped and the image coming from the last successful build step will be used instead. * The call fails if no previous successful builds happened. */ skip_build?: boolean; }; export type ResumeServiceReply = { [key: string]: unknown; }; export type SandboxMetadata = { public_url?: string; routing_key?: string; }; export type Service = { id?: string; created_at?: string; updated_at?: string; started_at?: string; succeeded_at?: string; paused_at?: string; resumed_at?: string; terminated_at?: string; name?: string; type?: ServiceType; organization_id?: string; app_id?: string; status?: ServiceStatus; messages?: Array; version?: string; active_deployment_id?: string; latest_deployment_id?: string; last_provisioned_deployment_id?: string; state?: ServiceState; life_cycle?: ServiceLifeCycle; }; export type ServiceStatus = 'STARTING' | 'HEALTHY' | 'DEGRADED' | 'UNHEALTHY' | 'DELETING' | 'DELETED' | 'PAUSING' | 'PAUSED' | 'RESUMING'; export type ServiceType = 'INVALID_TYPE' | 'WEB' | 'WORKER' | 'DATABASE' | 'SANDBOX'; export type ServiceEvent = { id?: string; when?: string; organization_id?: string; service_id?: string; type?: string; message?: string; metadata?: { [key: string]: unknown; }; }; export type ServiceLifeCycle = { delete_after_sleep?: number; delete_after_create?: number; }; export type ServiceListItem = { id?: string; name?: string; type?: ServiceType; organization_id?: string; app_id?: string; updated_at?: string; created_at?: string; status?: ServiceStatus; messages?: Array; /** * A version updated whenever this state changes (useful for caching) */ version?: string; state?: ServiceState; active_deployment_id?: string; latest_deployment_id?: string; life_cycle?: ServiceLifeCycle; }; export type ServiceState = { desired_deployment?: DesiredDeployment; auto_release?: AutoRelease; }; export type TcpHealthCheck = { /** * The port to use to perform the health check, must be declared in the ports section */ port?: number; }; export type TriggerDeploymentMetadata = { type?: TriggerDeploymentMetadataTriggerType; actor?: TriggerDeploymentMetadataActorType; git?: TriggerGitDeploymentMetadata; }; export type TriggerDeploymentMetadataActorType = 'UNKNOWN_ACTOR' | 'USER' | 'SYSTEM'; export type TriggerDeploymentMetadataTriggerType = 'UNKNOWN_TYPE' | 'GIT' | 'RESUME' | 'DATABASE_SYNC'; export type TriggerGitDeploymentMetadata = { provider?: TriggerGitDeploymentMetadataProvider; repository?: string; branch?: string; sha?: string; message?: string; sender_username?: string; sender_avatar_url?: string; sender_profile_url?: string; }; export type TriggerGitDeploymentMetadataProvider = 'UNKNOWN' | 'GITHUB'; export type UpdateService = { definition?: DeploymentDefinition; metadata?: DeploymentMetadata; /** * If set to true, the build stage will be skipped and the image coming from the last successful build step will be used instead. * The call fails if no previous successful builds happened. */ skip_build?: boolean; /** * If set, do not trigger a deployment, only store the new settings */ save_only?: boolean; life_cycle?: ServiceLifeCycle; /** * Instance Snapshot used to boot the Instances of this deployment * With a Full Snapshot, definition must not be provided */ instance_snapshot_id?: string; }; export type UpdateServiceReply = { service?: Service; }; /** * Empty reply - success is indicated by no error */ export type UpdateServiceScalingReply = { [key: string]: unknown; }; export type App = { id?: string; name?: string; organization_id?: string; created_at?: string; updated_at?: string; started_at?: string; succeeded_at?: string; paused_at?: string; resumed_at?: string; terminated_at?: string; status?: AppStatus; messages?: Array; version?: string; domains?: Array; life_cycle?: AppLifeCycle; }; export type AppStatus = 'STARTING' | 'HEALTHY' | 'DEGRADED' | 'UNHEALTHY' | 'DELETING' | 'DELETED' | 'PAUSING' | 'PAUSED' | 'RESUMING'; export type AppEvent = { id?: string; when?: string; organization_id?: string; app_id?: string; type?: string; message?: string; metadata?: { [key: string]: unknown; }; }; export type AppLifeCycle = { delete_when_empty?: boolean; }; export type AppListItem = { id?: string; name?: string; organization_id?: string; updated_at?: string; created_at?: string; domains?: Array; status?: AppStatus; messages?: Array; }; export type CreateApp = { name?: string; life_cycle?: AppLifeCycle; /** * (Optional) The project ID to associate with the app */ project_id?: string; }; export type CreateAppReply = { app?: App; }; export type DeleteAppReply = { [key: string]: unknown; }; export type Domain = { id?: string; organization_id?: string; name?: string; created_at?: string; updated_at?: string; status?: DomainStatus; type?: DomainType; app_id?: string; deployment_group?: string; verified_at?: string; intended_cname?: string; messages?: Array; version?: string; cloudflare?: DomainLoadBalancerCloudflare; koyeb?: DomainLoadBalancerKoyeb; /** * The project ID this domain belongs to. Empty if the domain is organization-level. */ project_id?: string; }; export type DomainLoadBalancerCloudflare = { [key: string]: unknown; }; export type DomainLoadBalancerKoyeb = { /** * Between 100 and 900 */ request_timeout_seconds?: number; }; export type DomainStatus = 'PENDING' | 'ACTIVE' | 'ERROR' | 'DELETING' | 'DELETED'; /** * - AUTOASSIGNED: Domain like -.koyeb.app */ export type DomainType = 'AUTOASSIGNED' | 'CUSTOM'; export type GetAppReply = { app?: App; }; export type ListAppEventsReply = { /** * The collection of events */ events?: Array; /** * The limit in the request */ limit?: number; /** * The offset in the request */ offset?: number; /** * The order in the request */ order?: string; /** * If there is more items after in the collection */ has_next?: boolean; }; export type ListAppsReply = { apps?: Array; /** * The limit in the request */ limit?: number; /** * The offset in the request */ offset?: number; /** * The total number of items */ count?: number; /** * If there is more items after in the collection */ has_next?: boolean; }; export type PauseAppReply = { [key: string]: unknown; }; export type ResumeAppReply = { [key: string]: unknown; }; export type UpdateApp = { name?: string; life_cycle?: AppLifeCycle; }; export type UpdateAppReply = { app?: App; }; export type CancelDeploymentReply = { [key: string]: unknown; }; export type DeploymentEvent = { id?: string; when?: string; organization_id?: string; deployment_id?: string; type?: string; message?: string; metadata?: { [key: string]: unknown; }; }; export type DeploymentListItem = { id?: string; created_at?: string; updated_at?: string; allocated_at?: string; started_at?: string; succeeded_at?: string; terminated_at?: string; organization_id?: string; project_id?: string; app_id?: string; service_id?: string; parent_id?: string; child_id?: string; status?: DeploymentStatus; metadata?: DeploymentMetadata; definition?: DeploymentDefinition; messages?: Array; provisioning_info?: DeploymentProvisioningInfo; database_info?: DeploymentDatabaseInfo; /** * Instance Snapshot used to boot the Instances of this deployment */ instance_snapshot_id?: string; version?: string; deployment_group?: string; }; export type GetDeploymentReply = { deployment?: Deployment; }; export type GetDeploymentScalingReply = { /** * The replicas */ replicas?: Array; }; export type GetDeploymentScalingReplyItem = { /** * The replica region */ region?: string; replica_index?: number; /** * An array of `active` and `starting` instances. * * Status of the active instance (and if none the most recent instance) * string status = 4; * Status message of the active instance (and if none the most recent instance) * string message = 5; */ instances?: Array; }; export type Instance = { id?: string; created_at?: string; updated_at?: string; organization_id?: string; app_id?: string; service_id?: string; regional_deployment_id?: string; allocation_id?: string; type?: string; replica_index?: number; region?: string; datacenter?: string; hypervisor?: string; status?: InstanceStatus; messages?: Array; started_at?: string; succeeded_at?: string; terminated_at?: string; /** * WARNING: Please don't use the following attribute. * Koyeb doesn't guarantee backwards compatible breaking change and reserve the right to completely drop it without notice. * USE AT YOUR OWN RISK. */ xyz_deployment_id?: string; }; export type InstanceStatus = 'ALLOCATING' | 'STARTING' | 'HEALTHY' | 'UNHEALTHY' | 'STOPPING' | 'STOPPED' | 'ERROR' | 'SLEEPING'; export type ListDeploymentEventsReply = { /** * The collection of events */ events?: Array; /** * The limit in the request */ limit?: number; /** * The offset in the request */ offset?: number; /** * The order in the request */ order?: string; /** * If there is more items after in the collection */ has_next?: boolean; }; export type ListDeploymentsReply = { /** * The collection of deployments */ deployments?: Array; /** * The limit in the request */ limit?: number; /** * The offset in the request */ offset?: number; /** * The total number of items */ count?: number; /** * If there is more items after in the collection */ has_next?: boolean; }; export type Env = { key?: string; value?: string; secret?: string; }; export type GetRegionalDeploymentReply = { regional_deployment?: RegionalDeployment; }; export type ListRegionalDeploymentEventsReply = { /** * The collection of events */ events?: Array; /** * The limit in the request */ limit?: number; /** * The offset in the request */ offset?: number; /** * The order in the request */ order?: string; /** * If there is more items after in the collection */ has_next?: boolean; }; export type ListRegionalDeploymentsReply = { /** * The collection of regional deployments */ regional_deployments?: Array; /** * The limit in the request */ limit?: number; /** * The offset in the request */ offset?: number; /** * The total number of items */ count?: number; /** * If there is more items after in the collection */ has_next?: boolean; }; export type Port = { port?: number; protocol?: string; }; export type RegionalDeployment = { id?: string; created_at?: string; updated_at?: string; scheduled_at?: string; allocated_at?: string; started_at?: string; succeeded_at?: string; terminated_at?: string; organization_id?: string; app_id?: string; service_id?: string; region?: string; parent_id?: string; child_id?: string; status?: RegionalDeploymentStatus; messages?: Array; definition?: RegionalDeploymentDefinition; datacenters?: Array; metadata?: RegionalDeploymentMetadata; provisioning_info?: DeploymentProvisioningInfo; role?: RegionalDeploymentRole; /** * Instance Snapshot used to boot the Instances of this deployment */ instance_snapshot_id?: string; version?: string; /** * Legacy stuff */ deployment_group?: string; deployment_id?: string; }; export type RegionalDeploymentRole = 'INVALID' | 'ACTIVE' | 'UPCOMING' | 'CURRENT'; export type RegionalDeploymentStatus = 'PENDING' | 'PROVISIONING' | 'SCHEDULED' | 'CANCELING' | 'CANCELED' | 'ALLOCATING' | 'STARTING' | 'HEALTHY' | 'DEGRADED' | 'UNHEALTHY' | 'STOPPING' | 'STOPPED' | 'ERRORING' | 'ERROR' | 'SLEEPING'; export type RegionalDeploymentDefinition = { name?: string; type?: RegionalDeploymentDefinitionType; strategy?: DeploymentStrategy; routes?: Array; ports?: Array; env?: Array; region?: string; scaling?: Scaling; instance_type?: string; deployment_group?: string; health_checks?: Array; volumes?: Array; config_files?: Array; skip_cache?: boolean; mesh?: RegionalDeploymentMesh; network_policy?: NetworkPolicy; docker?: DockerSource; git?: GitSource; archive?: ArchiveSource; }; /** * - _: We match with DeploymentDefinition.Type, so we skip 3 which is DATABASE */ export type RegionalDeploymentDefinitionType = 'INVALID' | 'WEB' | 'WORKER' | '_' | 'SANDBOX'; export type RegionalDeploymentEvent = { id?: string; when?: string; organization_id?: string; regional_deployment_id?: string; type?: string; message?: string; metadata?: { [key: string]: unknown; }; }; export type RegionalDeploymentListItem = { id?: string; created_at?: string; updated_at?: string; region?: string; status?: RegionalDeploymentStatus; messages?: Array; definition?: RegionalDeploymentDefinition; /** * Instance Snapshot used to boot the Instances of this deployment */ instance_snapshot_id?: string; }; export type RegionalDeploymentMesh = 'REGIONAL_DEPLOYMENT_MESH_AUTO' | 'REGIONAL_DEPLOYMENT_MESH_ENABLED' | 'REGIONAL_DEPLOYMENT_MESH_DISABLED'; export type RegionalDeploymentMetadata = { [key: string]: unknown; }; export type RegionalDeploymentVolume = { /** * the id of the volume */ id?: string; /** * the path where the volume is mounted to */ path?: string; /** * the replica index to mount the volume to */ replica_index?: number; }; export type Route = { port?: number; path?: string; security_policies?: SecurityPolicies; }; export type Scaling = { min?: number; max?: number; targets?: Array; }; export type VerifyDockerImageReply = { /** * Whether the image is accessible or not */ success?: boolean; /** * (Optional) If the image is not accessible, the reason */ reason?: string; code?: VerifyDockerImageReplyErrCode; }; /** * The error code associated to each specific failure mode * * - UNKNOWN: Default value * - AUTH_ACCESS_DENIED: The registry denied access to an authenticated request * - ANON_ACCESS_DENIED: The registry denied access to an anonymous request * - AUTH_NOT_FOUND: The image has not been found after an authenticated request * - ANON_NOT_FOUND: The image has not been found after an anonymous request * - REGISTRY_ERROR: The registry returned an error * - TIMEOUT: The request to the registry timed out * - DNS: There was an error trying to resolve the name of the registry * - MALFORMED: The provided image name is malformed * - INVALID_OS: The operating system is not supported * - INVALID_ARCH: The architecture is not supported * - INVALID_SCHEME: The scheme is not https * - GENERIC: Generic catch-all error code */ export type VerifyDockerImageReplyErrCode = 'UNKNOWN' | 'AUTH_ACCESS_DENIED' | 'ANON_ACCESS_DENIED' | 'AUTH_NOT_FOUND' | 'ANON_NOT_FOUND' | 'REGISTRY_ERROR' | 'TIMEOUT' | 'DNS' | 'MALFORMED' | 'INVALID_OS' | 'INVALID_ARCH' | 'INVALID_SCHEME' | 'GENERIC'; export type CreatePersistentVolumeReply = { volume?: PersistentVolume; }; export type CreatePersistentVolumeRequest = { volume_type?: PersistentVolumeBackingStore; /** * the volume name */ name?: string; /** * the volume region */ region?: string; /** * whether the volume must be set as read only */ read_only?: boolean; /** * the size of the volume (in Gigabyte / GB) */ max_size?: number; /** * (optional) the id of the snapshot whence the volume comes from */ snapshot_id?: string; /** * (Optional) The project ID to associate with the volume */ project_id?: string; }; export type DeletePersistentVolumeReply = { volume?: PersistentVolume; }; export type GetPersistentVolumeReply = { volume?: PersistentVolume; }; export type ListPersistentVolumeEventsReply = { /** * The collection of events */ events?: Array; /** * The limit in the request */ limit?: number; /** * The offset in the request */ offset?: number; /** * The order in the request */ order?: string; /** * If there is more items after in the collection */ has_next?: boolean; }; export type ListPersistentVolumesReply = { /** * The collection of persistent volumes */ volumes?: Array; /** * The limit in the request */ limit?: number; /** * The offset in the request */ offset?: number; /** * If there is more items after in the collection */ has_next?: boolean; }; /** * The object that represent a volume to handle persistency for deployments */ export type PersistentVolume = { /** * the identifier for the volume object */ id?: string; /** * the volume name */ name?: string; /** * (optional) the id of the snapshot whence the volume comes from */ snapshot_id?: string; /** * creation timestamp */ created_at?: string; /** * last change timestamp */ updated_at?: string; /** * deletion timestamp */ deleted_at?: string; /** * the organization to which the volume belongs to */ organization_id?: string; /** * the service_id to which the volume is eventually bound to */ service_id?: string; /** * the region where the volume exists */ region?: string; /** * whether to mount the volume in read-only mode */ read_only?: boolean; /** * the maximum size of the volume (in Gigabyte / GB) */ max_size?: number; /** * the used amount of space as measured the last time (in Gigabyte / GB) */ cur_size?: number; status?: PersistentVolumeStatus; backing_store?: PersistentVolumeBackingStore; }; /** * - PERSISTENT_VOLUME_BACKING_STORE_INVALID: zero value, invalid * - PERSISTENT_VOLUME_BACKING_STORE_LOCAL_BLK: the backing store is a locally reachable block device */ export type PersistentVolumeBackingStore = 'PERSISTENT_VOLUME_BACKING_STORE_INVALID' | 'PERSISTENT_VOLUME_BACKING_STORE_LOCAL_BLK'; export type PersistentVolumeEvent = { id?: string; when?: string; organization_id?: string; persistent_volume_id?: string; type?: string; message?: string; metadata?: { [key: string]: unknown; }; }; /** * - PERSISTENT_VOLUME_STATUS_INVALID: zero value, invalid * - PERSISTENT_VOLUME_STATUS_ATTACHED: the volume is attached to an instance * - PERSISTENT_VOLUME_STATUS_DETACHED: the volume is free to use * - PERSISTENT_VOLUME_STATUS_DELETING: the volume will be deleted * - PERSISTENT_VOLUME_STATUS_DELETED: the volume was deleted * - PERSISTENT_VOLUME_STATUS_ARCHIVING: the volume is being archived (snapshot being created and migrated to remote storage) */ export type PersistentVolumeStatus = 'PERSISTENT_VOLUME_STATUS_INVALID' | 'PERSISTENT_VOLUME_STATUS_ATTACHED' | 'PERSISTENT_VOLUME_STATUS_DETACHED' | 'PERSISTENT_VOLUME_STATUS_DELETING' | 'PERSISTENT_VOLUME_STATUS_DELETED' | 'PERSISTENT_VOLUME_STATUS_ARCHIVING'; export type UpdatePersistentVolumeReply = { volume?: PersistentVolume; }; export type Archive = { /** * The archive id, that can be referenced when creating or updating a service. */ id?: string; /** * Organization owning the archive. */ organization_id?: string; /** * The URL where to upload the archive. This URL is signed and can only be * used to upload the archive until `valid_until`. */ upload_url?: string; /** * The provisioned space for the archive. */ size?: string; /** * Date of creation of the archive. */ created_at?: string; /** * This field is automatically set by Koyeb when the * archive is garbage collected. */ deleted_at?: string; }; export type CreateArchive = { /** * How much space to provision for the archive, in bytes. */ size?: string; /** * (Optional) The project ID to associate with the archive */ project_id?: string; }; export type CreateArchiveReply = { archive?: Archive; }; export type GetInstanceReply = { instance?: Instance; }; export type InstanceEvent = { id?: string; when?: string; organization_id?: string; instance_id?: string; type?: string; message?: string; metadata?: { [key: string]: unknown; }; }; export type InstanceListItem = { id?: string; created_at?: string; updated_at?: string; organization_id?: string; app_id?: string; service_id?: string; regional_deployment_id?: string; allocation_id?: string; type?: string; replica_index?: number; region?: string; datacenter?: string; status?: InstanceStatus; messages?: Array; /** * WARNING: Please don't use the following attribute. * Koyeb doesn't guarantee backwards compatible breaking change and reserve the right to completely drop it without notice. * USE AT YOUR OWN RISK. */ xyz_deployment_id?: string; }; export type ListInstanceEventsReply = { /** * The collection of events */ events?: Array; /** * The limit in the request */ limit?: number; /** * The offset in the request */ offset?: number; /** * The order in the request */ order?: string; /** * If there is more items after in the collection */ has_next?: boolean; }; export type ListInstancesReply = { /** * The collection of instances */ instances?: Array; /** * The limit in the request */ limit?: number; /** * The offset in the request */ offset?: number; /** * The total number of items */ count?: number; /** * The order in the request */ order?: string; }; export type CreateSnapshotReply = { snapshot?: Snapshot; }; export type CreateSnapshotRequest = { /** * The id of the volume to snapshot */ parent_volume_id?: string; /** * The name of the snapshot */ name?: string; /** * (Optional) The project ID to associate with the snapshot */ project_id?: string; }; export type DeleteSnapshotReply = { snapshot?: Snapshot; }; export type GetSnapshotReply = { snapshot?: Snapshot; }; export type ListSnapshotsReply = { /** * The collection of snapshots */ snapshots?: Array; /** * The limit in the request */ limit?: number; /** * The offset in the request */ offset?: number; /** * If there is more items after in the collection */ has_next?: boolean; }; /** * The object that represents a snapshot. It can either be local, on a node, or remote, in a cold storage. */ export type Snapshot = { /** * the identifier of the snapshot object */ id?: string; /** * the snapshot name */ name?: string; /** * the original volume size */ size?: number; /** * creation timestamp */ created_at?: string; /** * last change timestamp */ updated_at?: string; /** * deletion timestamp */ deleted_at?: string; /** * the organization to which the snapshot belongs to */ organization_id?: string; /** * the volume from which the snapshot has been created */ parent_volume_id?: string; /** * the region where the snapshot resides, if any */ region?: string; status?: SnapshotStatus; type?: SnapshotType; }; /** * - SNAPSHOT_STATUS_INVALID: zero value, invalid * - SNAPSHOT_STATUS_CREATING: the snapshot is being created * - SNAPSHOT_STATUS_AVAILABLE: the snapshot is complete and available * - SNAPSHOT_STATUS_MIGRATING: the snapshot is being migrated * - SNAPSHOT_STATUS_DELETING: the snapshot is being deleted * - SNAPSHOT_STATUS_DELETED: the snapshot is deleted */ export type SnapshotStatus = 'SNAPSHOT_STATUS_INVALID' | 'SNAPSHOT_STATUS_CREATING' | 'SNAPSHOT_STATUS_AVAILABLE' | 'SNAPSHOT_STATUS_MIGRATING' | 'SNAPSHOT_STATUS_DELETING' | 'SNAPSHOT_STATUS_DELETED'; /** * - SNAPSHOT_TYPE_INVALID: zero value, invalid * - SNAPSHOT_TYPE_LOCAL: the snapshot is local to the machine * - SNAPSHOT_TYPE_REMOTE: the snapshot is remote in a cold storage */ export type SnapshotType = 'SNAPSHOT_TYPE_INVALID' | 'SNAPSHOT_TYPE_LOCAL' | 'SNAPSHOT_TYPE_REMOTE'; export type UpdateSnapshotReply = { snapshot?: Snapshot; }; export type AzureContainerRegistryConfiguration = { registry_name?: string; username?: string; password?: string; }; export type CreateSecret = { name?: string; type?: SecretType; value?: string; docker_hub_registry?: DockerHubRegistryConfiguration; private_registry?: PrivateRegistryConfiguration; digital_ocean_registry?: DigitalOceanRegistryConfiguration; github_registry?: GitHubRegistryConfiguration; gitlab_registry?: GitLabRegistryConfiguration; gcp_container_registry?: GcpContainerRegistryConfiguration; azure_container_registry?: AzureContainerRegistryConfiguration; /** * (Optional) The project ID to associate with the secret */ project_id?: string; }; export type CreateSecretReply = { secret?: Secret; }; export type DatabaseRolePassword = { username?: string; password?: string; }; export type DeleteSecretReply = { [key: string]: unknown; }; export type DigitalOceanRegistryConfiguration = { username?: string; password?: string; }; export type DockerHubRegistryConfiguration = { username?: string; password?: string; }; export type GcpContainerRegistryConfiguration = { keyfile_content?: string; url?: string; }; export type GetSecretReply = { secret?: Secret; }; export type GitHubRegistryConfiguration = { username?: string; password?: string; }; export type GitLabRegistryConfiguration = { username?: string; password?: string; }; export type ListSecretsReply = { secrets?: Array; limit?: number; offset?: number; count?: number; }; export type PrivateRegistryConfiguration = { username?: string; password?: string; url?: string; }; export type RevealSecretReply = { value?: { [key: string]: unknown; }; }; export type Secret = { id?: string; name?: string; organization_id?: string; type?: SecretType; updated_at?: string; created_at?: string; /** * The project ID this secret belongs to. Empty if the secret is organization-level. */ project_id?: string; value?: string; docker_hub_registry?: DockerHubRegistryConfiguration; private_registry?: PrivateRegistryConfiguration; digital_ocean_registry?: DigitalOceanRegistryConfiguration; github_registry?: GitHubRegistryConfiguration; gitlab_registry?: GitLabRegistryConfiguration; gcp_container_registry?: GcpContainerRegistryConfiguration; azure_container_registry?: AzureContainerRegistryConfiguration; database_role_password?: DatabaseRolePassword; }; export type SecretType = 'SIMPLE' | 'REGISTRY' | 'MANAGED'; export type UpdateSecretReply = { secret?: Secret; }; export type CreateDomain = { name?: string; type?: DomainType; /** * to auto-attach to an app. Optional */ app_id?: string; cloudflare?: DomainLoadBalancerCloudflare; koyeb?: DomainLoadBalancerKoyeb; /** * (Optional) The project ID to associate with the domain */ project_id?: string; }; export type CreateDomainReply = { domain?: Domain; }; export type DeleteDomainReply = { [key: string]: unknown; }; export type GetDomainReply = { domain?: Domain; }; export type ListDomainsReply = { domains?: Array; /** * The limit in the request */ limit?: number; /** * The offset in the request */ offset?: number; /** * The total number of items */ count?: number; }; export type RefreshDomainStatusReply = { [key: string]: unknown; }; export type UpdateDomain = { /** * To attach or detach from an app for custom domain. */ app_id?: string; /** * To change subdomain for auto-assigned domain. */ subdomain?: string; }; export type UpdateDomainReply = { domain?: Domain; }; export type ReviewOrganizationCapacityReply = { has_capacity?: boolean; }; export type ReviewOrganizationCapacityRequest = { plan?: string; trialing?: boolean; }; export type ComposeReply = { app?: App; services?: Array; }; export type CreateCompose = { app?: CreateApp; services?: Array; }; export type CreateInstanceSnapshotReply = { instance_snapshot?: InstanceSnapshot; }; export type CreateInstanceSnapshotRequest = { instance_id?: string; name?: string; type?: InstanceSnapshotType; }; export type DeleteInstanceSnapshotReply = { instance_snapshot?: InstanceSnapshot; }; export type GetInstanceSnapshotReply = { instance_snapshot?: InstanceSnapshot; }; export type InstanceSnapshot = { id?: string; name?: string; created_at?: string; updated_at?: string; available_at?: string; deleted_at?: string; organization_id?: string; project_id?: string; service_id?: string; deployment_id?: string; regional_deployment_id?: string; instance_id?: string; status?: InstanceSnapshotStatus; type?: InstanceSnapshotType; version?: string; messages?: Array; }; export type InstanceSnapshotEvent = { id?: string; when?: string; organization_id?: string; instance_snapshot_id?: string; type?: string; message?: string; metadata?: { [key: string]: unknown; }; }; export type InstanceSnapshotStatus = 'INSTANCE_SNAPSHOT_STATUS_INVALID' | 'INSTANCE_SNAPSHOT_STATUS_CREATING' | 'INSTANCE_SNAPSHOT_STATUS_AVAILABLE' | 'INSTANCE_SNAPSHOT_STATUS_ERROR' | 'INSTANCE_SNAPSHOT_STATUS_DELETING' | 'INSTANCE_SNAPSHOT_STATUS_DELETED'; export type InstanceSnapshotType = 'INSTANCE_SNAPSHOT_TYPE_INVALID' | 'INSTANCE_SNAPSHOT_TYPE_FILESYSTEM' | 'INSTANCE_SNAPSHOT_TYPE_FULL'; export type ListInstanceSnapshotEventsReply = { /** * The collection of events */ events?: Array; /** * The limit in the request */ limit?: number; /** * The offset in the request */ offset?: number; /** * The order in the request */ order?: string; /** * If there is more items after in the collection */ has_next?: boolean; }; export type ListInstanceSnapshotsReply = { instance_snapshots?: Array; limit?: number; offset?: number; count?: number; has_next?: boolean; }; export type KtestTestAnonReply = { [key: string]: unknown; }; export type KtestTestAuthReply = { payload?: string; user_id?: string; organization_id?: string; workspace_id?: string; }; export type KtestTestAuthRequest = { payload?: string; }; export type LogEntry = { msg?: string; created_at?: string; labels?: { [key: string]: unknown; }; }; export type QueryLogsReply = { data?: Array; pagination?: QueryLogsReplyPagination; }; export type QueryLogsReplyPagination = { has_more?: boolean; next_start?: string; next_end?: string; }; export type GetMetricsReply = { metrics?: Array; }; export type GetMetricsReplyMetric = { labels?: { [key: string]: string; }; samples?: Array; }; export type MetricName = 'UNKNOWN' | 'CPU_TOTAL_PERCENT' | 'MEM_RSS' | 'HTTP_THROUGHPUT' | 'HTTP_RESPONSE_TIME_50P' | 'HTTP_RESPONSE_TIME_90P' | 'HTTP_RESPONSE_TIME_99P' | 'HTTP_RESPONSE_TIME_MAX' | 'PUBLIC_DATA_TRANSFER_IN' | 'PUBLIC_DATA_TRANSFER_OUT'; export type Sample = { timestamp?: string; value?: number; }; export type ExecCommandIo = { /** * Data is base64 encoded */ data?: string; /** * Indicate last data frame */ close?: boolean; }; export type ExecCommandReply = { stdout?: ExecCommandIo; stderr?: ExecCommandIo; exited?: boolean; exit_code?: number; }; export type ExecCommandRequestBody = { /** * Command to exec. Mandatory in the first frame sent */ command?: Array; tty_size?: ExecCommandRequestTerminalSize; stdin?: ExecCommandIo; /** * Disable TTY. It's enough to specify it in the first frame */ disableTty?: boolean; }; export type ExecCommandRequestIdType = 'INVALID' | 'INSTANCE_ID' | 'SERVICE_ID'; export type ExecCommandRequestTerminalSize = { height?: number; width?: number; }; export type AcceptOrganizationInvitationReply = { invitation?: OrganizationInvitation; }; export type Action = 'signin' | 'signup' | 'register'; export type Budget = { amount?: string; thresholds?: Array; }; export type CannyAuthReply = { token?: string; }; export type CannyAuthRequest = { [key: string]: unknown; }; export type ClearIdenfyVerificationResultReply = { [key: string]: unknown; }; export type ClearIdenfyVerificationResultRequest = { user_id?: string; organization_id?: string; }; export type CreateAccessTokenReply = { token?: string; }; /** * Create new account * * Create new account */ export type CreateAccountRequest = { email: string; password: string; name?: string; captcha?: string; }; export type CreateBudgetReply = { budget?: Budget; }; export type CreateOrganizationReply = { organization?: Organization; }; export type CreateOrganizationRequest = { name?: string; }; export type DeactivateOrganizationReply = { organization?: Organization; }; export type DeclineOrganizationInvitationReply = { invitation?: OrganizationInvitation; }; export type DeleteBudgetReply = { [key: string]: unknown; }; export type DeleteOrganizationReply = { organization?: Organization; }; export type DiscourseAuthReply = { sso?: string; sig?: string; }; export type DiscourseAuthRequest = { payload?: string; sig?: string; }; export type GetBudgetReply = { budget?: Budget; }; export type GetGithubInstallationReply = { installation_id?: string; installation_url?: string; name?: string; avatar_url?: string; status?: KgitproxyGithubInstallationStatus; installed_at?: string; suspended_at?: string; indexing_status?: KgitproxyIndexingStatus; indexed_repositories?: number; total_repositories?: number; }; export type GetIdenfyTokenReply = { auth_token?: string; }; /** * A list of providers which you can use for single sign-on. */ export type GetOAuthOptionsReply = { oauth_providers?: Array; }; export type GetOrganizationReply = { organization?: Organization; }; export type GetUserOrganizationInvitationReply = { invitation?: OrganizationInvitation; }; export type GetUserSettingsReply = { settings?: UserSettings; }; export type GithubInstallationReply = { /** * The github app name */ app_name?: string; /** * The github app id */ app_id?: string; /** * The url to start the installation flow */ url?: string; /** * The state required by the protocol, it is only valid 10 minutes and encodes * information about the type of flow */ state?: string; }; export type GithubInstallationRequest = { /** * A small (limited to 400 characters) string of arbitrary metadata which will * be encoded in the state */ metadata?: string; }; export type HasUnpaidInvoicesReply = { has_unpaid_invoices?: boolean; }; export type InviteUserRequest = { email?: string; name?: string; message?: string; }; export type ListUserOrganizationInvitationsReply = { /** * The collection of organization invitations */ invitations?: Array; /** * The limit in the request */ limit?: number; /** * The offset in the request */ offset?: number; /** * The total number of items */ count?: number; }; export type ListUserOrganizationsReply = { /** * The collection of organizations */ organizations?: Array; /** * The limit in the request */ limit?: number; /** * The offset in the request */ offset?: number; /** * If there is more items after in the collection */ has_next?: boolean; }; export type LoginMethodReply = { method?: LoginMethodReplyMethod; }; export type LoginMethodReplyMethod = 'KOYEB' | 'WORKOS'; export type LoginReply = { token?: Token; }; export type ManageReply = { url?: string; }; export type NextInvoiceReply = { stripe_invoice?: { [key: string]: unknown; }; lines?: Array; discounts?: Array; }; export type NextInvoiceReplyDiscount = { type?: NextInvoiceReplyDiscountType; name?: string; amount?: string; }; export type NextInvoiceReplyDiscountType = 'PERCENT_OFF' | 'AMOUNT_OFF'; export type NextInvoiceReplyLine = { amount_excluding_tax?: number; period?: NextInvoiceReplyLinePeriod; plan_nickname?: string; price?: NextInvoiceReplyLinePrice; quantity?: number; }; export type NextInvoiceReplyLinePeriod = { start?: string; end?: string; }; export type NextInvoiceReplyLinePrice = { unit_amount_decimal?: number; }; export type OAuthCallbackReply = { token?: Token; }; export type OAuthCallbackRequest = { /** * The state created at the origin of the OAuth flow */ state?: string; /** * The code returned by the OAuth provider */ code?: string; /** * setup_action is populated in the context of a GitHub app installation * request. For logins and signups, it is not set. */ setup_action?: string; /** * installation_id is populated in the context of a GitHub app installation * request. For logins and signups, it is not set. */ installation_id?: string; }; export type OAuthProvider = { /** * The name of the provider (.e.g github, google) */ id?: string; /** * The URL to call to initiate the OAuth flow */ url?: string; /** * The OAuth state required by the protocol, it is only valid 10 minutes and * encodes information about the type of flow */ state?: string; }; /** * Represent an Organization */ export type Organization = { id?: string; external_id?: string; provisioning?: boolean; address1?: string; address2?: string; city?: string; postal_code?: string; state?: string; country?: string; company?: boolean; vat_number?: string; billing_name?: string; billing_email?: string; name?: string; plan?: Plan; plan_updated_at?: string; has_payment_method?: boolean; subscription_id?: string; current_subscription_id?: string; latest_subscription_id?: string; signup_qualification?: { [key: string]: unknown; }; status?: OrganizationStatus; status_message?: OrganizationDetailedStatus; deactivation_reason?: OrganizationDeactivationReason; verified?: boolean; qualifies_for_hobby23?: boolean; reprocess_after?: string; trialing?: boolean; trial_starts_at?: string; trial_ends_at?: string; email_domain_allowlist?: Array; default_project_id?: string; }; export type OrganizationDeactivationReason = 'INVALID' | 'REQUESTED_BY_OWNER' | 'SUBSCRIPTION_TERMINATION' | 'LOCKED_BY_ADMIN' | 'VERIFICATION_FAILED' | 'TRIAL_DID_NOT_CONVERT'; export type OrganizationStatus = 'WARNING' | 'LOCKED' | 'ACTIVE' | 'DEACTIVATING' | 'DEACTIVATED' | 'DELETING' | 'DELETED'; export type OrganizationDetailedStatus = 'NEW' | 'EMAIL_NOT_VALIDATED' | 'BILLING_INFO_MISSING' | 'LOCKED' | 'PAYMENT_FAILURE' | 'VALID' | 'PENDING_VERIFICATION' | 'VERIFICATION_FAILED' | 'REVIEWING_ACCOUNT' | 'PLAN_UPGRADE_REQUIRED'; export type OrganizationInvitation = { id?: string; email?: string; role?: UserRoleRole; status?: OrganizationInvitationStatus; expires_at?: string; organization_id?: string; organization?: PublicOrganization; invitee_id?: string; invitee?: PublicUser; inviter_id?: string; inviter?: PublicUser; }; export type OrganizationInvitationStatus = 'INVALID' | 'PENDING' | 'ACCEPTED' | 'REFUSED' | 'EXPIRED'; export type Plan = 'hobby' | 'starter' | 'startup' | 'business' | 'enterprise' | 'internal' | 'hobby23' | 'no_plan' | 'pro' | 'scale' | 'partner_csp' | 'partner_csp_unit'; export type PublicOrganization = { id?: string; name?: string; plan?: Plan; status?: OrganizationStatus; external_id?: string; }; export type PublicUser = { id?: string; email?: string; name?: string; avatar_url?: string; github_id?: string; github_user?: string; }; export type ReactivateOrganizationReply = { organization?: Organization; }; export type ResendEmailValidationReply = { [key: string]: unknown; }; export type ResendEmailValidationRequest = { [key: string]: unknown; }; export type ResetPasswordReply = { [key: string]: unknown; }; export type ResetPasswordRequest = { email?: string; }; export type Token = { id?: string; user_id?: string; organization_id?: string; expires_at?: string; }; export type UnscopeOrganizationTokenRequest = { [key: string]: unknown; }; export type UpdateBudgetReply = { budget?: Budget; }; export type UpdateOrganizationDefaultProjectReply = { organization?: Organization; }; export type UpdateOrganizationNameReply = { organization?: Organization; }; export type UpdateOrganizationPlanReply = { organization?: Organization; }; export type UpdateOrganizationReply = { organization?: Organization; }; export type UpdatePasswordRequest = { id?: string; password?: string; }; export type UpdateUserRequestUserUpdateBody = { id?: string; email?: string; current_password?: string; password?: string; newsletter_subscribed?: boolean; name?: string; }; export type UpdateUserSettingsReply = { settings?: UserSettings; }; export type UpdateUserSettingsRequest = { /** * (Optional) Toggle failed deployment email notification. */ failed_deployment_email_notification?: boolean; }; export type UpsertSignupQualificationReply = { organization?: Organization; }; /** * Represent a User */ export type User = { id?: string; email?: string; avatar_url?: string; two_factor_authentication?: boolean; last_login?: string; last_login_ip?: string; updated_at?: string; created_at?: string; newsletter_subscribed?: boolean; github_id?: string; github_user?: string; flags?: Array; name?: string; email_validated?: boolean; trialed?: boolean; }; /** * - ADMIN: A user is an admin user * - TEST: A user is a test user * - RESTRICTED: Whether this account as restricted access * - ACTIVE: Whether this account is active * - BETA: Account in beta program * - MAX_ORGANIZATIONS_25: User can create this much organizations, overriding the default amount * - PARTNER_CSP: User can create sub-organizations * - IGNORE_ORGANIZATION_NAME_RESERVATION_RULE_NEON_PREFIX: User can bypass organization name reservations rules */ export type UserFlags = 'ADMIN' | 'TEST' | 'RESTRICTED' | 'ACTIVE' | 'BETA' | 'MAX_ORGANIZATIONS_25' | 'MAX_ORGANIZATIONS_100' | 'MAX_ORGANIZATIONS_1000' | 'MAX_ORGANIZATIONS_10000' | 'MAX_ORGANIZATIONS_100000' | 'MAX_ORGANIZATIONS_1000000' | 'PARTNER_CSP' | 'IGNORE_ORGANIZATION_NAME_RESERVATION_RULE_NEON_PREFIX'; export type UserReply = { user?: User; }; export type UserRoleRole = 'INVALID' | 'OWNER'; export type UserSettings = { id?: string; user_id?: string; failed_deployment_email_notification?: boolean; }; export type Activity = { id?: string; actor?: _Object; object?: _Object; verb?: string; metadata?: { [key: string]: unknown; }; created_at?: string; }; export type ActivityList = { activities?: Array; limit?: number; offset?: number; has_next?: boolean; }; export type _Object = { id?: string; name?: string; type?: string; metadata?: { [key: string]: unknown; }; deleted?: boolean; }; export type Empty = { [key: string]: unknown; }; export type KgitproxyGithubInstallationStatus = 'INVALID' | 'INSTALLED' | 'SUSPENDED' | 'DELETED'; export type KgitproxyIndexingStatus = 'INVALID_INDEXING_STATUS' | 'NOT_STARTED' | 'IN_PROGRESS' | 'COMPLETED'; export type ListOrganizationMembersReply = { /** * The collection of organization members */ members?: Array; /** * The limit in the request */ limit?: number; /** * The offset in the request */ offset?: number; /** * The total number of items */ count?: number; }; export type OrganizationMember = { id?: string; organization_id?: string; user_id?: string; external_id?: string; joined_at?: string; role?: UserRoleRole; status?: OrganizationMemberStatus; user?: PublicUser; organization?: PublicOrganization; }; export type OrganizationMemberStatus = 'INVALID' | 'ACTIVE' | 'DELETED'; export type RemoveOrganizationMemberReply = { member?: OrganizationMember; }; export type DeleteUserReply = { user?: User; }; export type CreateCredential = { /** * Credential name */ name?: string; /** * Credential description */ description?: string; type?: CredentialType; /** * Organization id for user credential */ organization_id?: string; }; export type CreateCredentialReply = { credential?: Credential; }; export type Credential = { id?: string; type?: CredentialType; name?: string; token?: string; description?: string; user_id?: string; organization_id?: string; updated_at?: string; created_at?: string; expires_at?: string; }; export type CredentialType = 'INVALID' | 'USER' | 'ORGANIZATION'; export type DeleteCredentialReply = { [key: string]: unknown; }; export type GetCredentialReply = { credential?: Credential; }; export type ListCredentialsReply = { credentials?: Array; limit?: number; offset?: number; count?: number; }; export type UpdateCredentialReply = { credential?: Credential; }; export type CreateProject = { /** * Project name */ name?: string; /** * Project description */ description?: string; }; export type CreateProjectReply = { project?: Project; }; export type DeleteProjectReply = { [key: string]: unknown; }; export type GetProjectReply = { project?: Project; }; export type ListProjectsReply = { projects?: Array; limit?: number; offset?: number; }; export type Project = { id?: string; name?: string; description?: string; organization_id?: string; updated_at?: string; created_at?: string; /** * Number of services in this project */ service_count?: string; }; export type UpdateProjectReply = { project?: Project; }; export type GetSubscriptionReply = { subscription?: Subscription; }; export type Subscription = { id?: string; created_at?: string; updated_at?: string; version?: string; organization_id?: string; stripe_subscription_id?: string; status?: SubscriptionStatus; messages?: Array; has_pending_update?: boolean; stripe_pending_invoice_id?: string; terminate_at?: string; canceled_at?: string; terminated_at?: string; current_period_start?: string; current_period_end?: string; currency?: string; amount_payable?: string; amount_paid?: string; amount_remaining?: string; payment_failure?: SubscriptionPaymentFailure; trialing?: boolean; trial_ends_at?: string; trial_max_spend?: string; current_spend?: string; }; export type SubscriptionPaymentFailure = { failed_at?: string; next_attempt?: string; attempt_count?: string; error_code?: string; error_reason?: string; error_type?: string; error_message?: string; payment_method_required?: boolean; redirect_url?: string; stripe_sdk?: SubscriptionPaymentFailureStripeSdk; }; export type SubscriptionPaymentFailureStripeSdk = { client_secret_key?: string; raw_json?: string; }; export type SubscriptionStatus = 'INVALID' | 'CREATED' | 'ACTIVE' | 'WARNING' | 'URGENT' | 'CANCELING' | 'CANCELED' | 'TERMINATING' | 'TERMINATED'; export type CheckCouponReply = { name?: string; percent_off?: number; amount_off?: string; currency?: string; }; export type RedeemCouponReply = { [key: string]: unknown; }; export type RedeemCouponRequest = { code?: string; }; export type ConfirmOrganizationActionReply = { [key: string]: unknown; }; export type LoginRequest = { /** * User email */ email?: string; /** * User password */ password?: string; /** * (Optional) Login into this organization */ organization_id?: string; }; export type LogoutReply = { [key: string]: unknown; }; export type CreateOrganizationInvitationReply = { invitation?: OrganizationInvitation; }; export type CreateOrganizationInvitationRequest = { /** * The email of the person to invite */ email?: string; }; export type DeleteOrganizationInvitationReply = { [key: string]: unknown; }; export type GetOrganizationInvitationReply = { invitation?: OrganizationInvitation; }; export type ListOrganizationInvitationsReply = { /** * The collection of organization invitations */ invitations?: Array; /** * The limit in the request */ limit?: number; /** * The offset in the request */ offset?: number; /** * The total number of items */ count?: number; }; export type ResendOrganizationInvitationReply = { invitation?: OrganizationInvitation; }; export type ConfirmPaymentAuthorizationReply = { payment_method?: PaymentMethod; }; export type CreatePaymentAuthorizationReply = { payment_method?: PaymentMethod; }; export type CreatePaymentAuthorizationRequest = { [key: string]: unknown; }; export type DeletePaymentMethodReply = { [key: string]: unknown; }; export type GetPaymentMethodReply = { payment_method?: PaymentMethod; }; export type ListPaymentMethodsReply = { /** * The collection of payment methods */ payment_methods?: Array; /** * The limit in the request */ limit?: number; /** * The offset in the request */ offset?: number; /** * The total number of items */ count?: number; }; export type PaymentMethod = { id?: string; created_at?: string; updated_at?: string; version?: string; organization_id?: string; type?: string; provider?: string; status?: PaymentMethodStatus; messages?: Array; stripe_payment_method_id?: string; authorization_verified_at?: string; authorization_canceled_at?: string; authorization_stripe_payment_intent_id?: string; authorization_stripe_payment_intent_client_secret?: string; card_brand?: string; card_country?: string; card_funding?: string; card_fingerprint?: string; card_last_digits?: string; card_expiration_month?: number; card_expiration_year?: number; }; export type PaymentMethodStatus = 'INVALID' | 'CREATED' | 'AUTHORIZED' | 'DECLINED' | 'CANCELED' | 'EXPIRED' | 'UNCHECKED'; export type GetIntercomProfileReply = { hash?: string; }; export type DomainLoadBalancerQuotas = { max_koyeb?: number; }; export type GetQuotasReply = { quotas?: Quotas; }; export type InstanceSnapshotQuotas = { filesystem?: number; full?: number; }; export type LifecycleQuotas = { /** * delete after sleep limits */ delete_after_sleep_min?: number; delete_after_sleep_max?: number; /** * delete after create limits */ delete_after_create_min?: number; delete_after_create_max?: number; }; export type PersistentVolumeQuotas = { /** * MaxTotalSize for all volumes on a region (in Gigabyte / GB). */ max_total_size?: number; /** * MaxVolumeSize for one volume (in Gigabyte / GB). */ max_volume_size?: number; /** * MaxPerInstanceSize for all volumes on an instance (in Gigabyte / GB). */ max_per_instance_size?: number; }; export type Quotas = { apps?: string; services?: string; /** * Deprecated, use custom_domains instead */ domains?: string; services_by_app?: string; service_provisioning_concurrency?: string; memory_mb?: string; instance_types?: Array; regions?: Array; max_organization_members?: string; max_instances_by_type?: { [key: string]: string; }; persistent_volumes_by_region?: { [key: string]: PersistentVolumeQuotas; }; custom_domains?: string; domains_load_balancer?: DomainLoadBalancerQuotas; /** * Time in days */ metrics_retention?: number; /** * Time in days */ logs_retention?: number; /** * The mapping between reserved_subdomain names and their value is in the code */ access_reserved_subdomains?: Array; proxy_ports?: number; scale_to_zero?: ScaleToZeroQuotas; archives?: string; archive_max_size_mb?: string; lifecycle?: LifecycleQuotas; max_projects?: string; instance_snapshots?: InstanceSnapshotQuotas; }; export type ScaleToZeroQuotas = { /** * deep sleep limits */ is_deep_sleep_enabled?: boolean; deep_sleep_idle_delay_min?: number; deep_sleep_idle_delay_max?: number; /** * light sleep limits */ is_light_sleep_enabled?: boolean; light_sleep_idle_delay_min?: number; light_sleep_idle_delay_max?: number; }; export type AppsSummary = { /** * Total number of apps */ total?: string; /** * Number of apps grouped by status */ by_status?: { [key: string]: string; }; }; export type DomainsSummary = { /** * Total number of domains */ total?: string; /** * Number of domains grouped by status */ by_status?: { [key: string]: string; }; }; export type GetOrganizationSummaryReply = { summary?: OrganizationSummary; }; export type InstancesSummary = { /** * Total number of instances */ total?: string; /** * Number of instances grouped by type */ by_type?: { [key: string]: string; }; }; export type MembersSummary = { /** * Number of members */ total?: string; /** * Number of invitations grouped by status */ invitations_by_status?: { [key: string]: string; }; }; export type NeonPostgresSummary = { /** * Total number of databases */ total?: string; /** * Number of databases grouped by instance type */ by_instance_type?: { [key: string]: string; }; }; export type OrganizationSummary = { organization_id?: string; instances?: InstancesSummary; apps?: AppsSummary; /** * Number of services grouped by type */ services?: { [key: string]: ServiceSummary; }; domains?: DomainsSummary; secrets?: SecretsSummary; neon_postgres?: NeonPostgresSummary; members?: MembersSummary; }; export type SecretsSummary = { /** * Total number of secrets */ total?: string; /** * Number of secrets grouped by type */ by_type?: { [key: string]: string; }; }; export type ServiceSummary = { /** * Total number of services */ total?: string; /** * Number of services grouped by status */ by_status?: { [key: string]: string; }; }; export type Notification = { id?: string; activity?: Activity; is_read?: boolean; is_seen?: boolean; created_at?: string; }; export type NotificationList = { notifications?: Array; limit?: number; offset?: number; count?: number; is_read?: boolean; is_seen?: boolean; unread?: number; unseen?: number; }; export type GetRegionReply = { region?: Region; }; export type ListRegionsReply = { regions?: Array; /** * The limit in the request */ limit?: number; /** * The offset in the request */ offset?: number; /** * The total number of items */ count?: number; }; export type Region = { /** * The id of the region */ id?: string; /** * The name of the region */ name?: string; /** * The coordinates of the region (lat/long) */ coordinates?: Array; /** * The status of the region */ status?: string; /** * A list of instances available in this region */ instances?: Array; /** * A list of datacenters available in this region */ datacenters?: Array; /** * Are the volumes enabled for this instance type */ volumes_enabled?: boolean; /** * The scope of the region, continent, metropolitan area, etc. */ scope?: string; }; export type RegionListItem = { /** * The id of the region */ id?: string; /** * The name of the region */ name?: string; /** * The coordinates of the region (lat/long) */ coordinates?: Array; /** * The status of the region */ status?: string; /** * A list of instances available in this region */ instances?: Array; /** * A list of datacenters available in this region */ datacenters?: Array; /** * Are the volumes enabled for this instance type */ volumes_enabled?: boolean; /** * The scope of the region, continent, metropolitan area, etc. */ scope?: string; }; export type DatacenterListItem = { /** * e.g. "par1" */ id?: string; /** * e.g. "par" */ region_id?: string; /** * e.g. "all-par1.infra.prod.koyeb.com" */ domain?: string; /** * e.g. "8.856614" ,"2.352221"? */ coordinates?: Array; /** * e.g. true */ use_gpu?: boolean; /** * e.g. "par", "fra" */ regions?: Array; }; export type ListDatacentersReply = { datacenters?: Array; }; export type AvailabilityLevel = 'UNKNOWN' | 'LOW' | 'MEDIUM' | 'HIGH'; export type CatalogUsage = { instances?: { [key: string]: InstanceAvailability; }; }; export type InstanceAvailability = { regions?: { [key: string]: RegionAvailability; }; availability?: AvailabilityLevel; }; export type ListUsageReply = { usage?: CatalogUsage; }; export type RegionAvailability = { availability?: AvailabilityLevel; }; export type CatalogGpuDetails = { /** * The number of GPUs */ count?: number; /** * The brand of GPU */ brand?: string; /** * GPU memory */ memory?: string; /** * Name of GPU */ name?: string; }; export type CatalogInstance = { /** * The name of the instance */ id?: string; /** * A short description of the instance */ description?: string; /** * The number of cpus. Deprecated. Use vcpu_shares instead. */ vcpu?: number; /** * The memory in bytes in a format like 5MB */ memory?: string; /** * The size of the disk in bytes in a format like 5MB */ disk?: string; /** * The price to pay per second */ price_per_second?: string; /** * The price to pay per hour */ price_hourly?: string; /** * The price to pay per month */ price_monthly?: string; /** * The regions where this instance type is available */ regions?: Array; /** * The status of the instance */ status?: string; /** * The plan required to use instance */ require_plan?: Array; /** * The number of vcpu shares reserved for the instance. */ vcpu_shares?: number; /** * The display name of the instance */ display_name?: string; /** * Aliases */ aliases?: Array; /** * The type of the instance (e.g. "gpu") */ type?: string; gpu?: CatalogGpuDetails; /** * Allowed service types for this instance (e.g. ["web", "worker"]) */ service_types?: Array; /** * Are the volumes enabled for this instance type */ volumes_enabled?: boolean; /** * Is light sleep enabled for this instance type */ light_sleep_enabled?: boolean; }; export type CatalogInstanceListItem = { /** * The name of the instance */ id?: string; /** * A short description of the instance */ description?: string; /** * The number of cpus. Deprecated. Use vcpu_shares instead. */ vcpu?: number; /** * The memory in bytes in a format like 5MB */ memory?: string; /** * The size of the disk in bytes in a format like 5MB */ disk?: string; /** * The price to pay per second */ price_per_second?: string; /** * The price to pay per hour */ price_hourly?: string; /** * The price to pay per month */ price_monthly?: string; /** * The regions where this instance type is available */ regions?: Array; /** * The status of the instance */ status?: string; /** * The plan required to use instance */ require_plan?: Array; /** * The number of vcpu shares reserved for the instance. */ vcpu_shares?: number; /** * The display name of the instance */ display_name?: string; /** * Aliases */ aliases?: Array; /** * The type of the instance (e.g. "gpu") */ type?: string; gpu?: CatalogGpuDetails; /** * Allowed service types for this instance (e.g. ["web", "worker"]) */ service_types?: Array; /** * Are the volumes enabled for this instance type */ volumes_enabled?: boolean; /** * Is light sleep enabled for this instance type */ light_sleep_enabled?: boolean; }; export type GetCatalogInstanceReply = { instance?: CatalogInstance; }; export type ListCatalogInstancesReply = { instances?: Array; /** * The limit in the request */ limit?: number; /** * The offset in the request */ offset?: number; /** * The total number of items */ count?: number; }; export type SearchData = { body?: never; path?: never; query?: { /** * (Optional) Search query */ query?: string; }; url: '/v1/search'; }; export type SearchErrors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type SearchError = SearchErrors[keyof SearchErrors]; export type SearchResponses = { /** * A successful response. */ 200: KsearchSearchReply; }; export type SearchResponse = SearchResponses[keyof SearchResponses]; export type ListBranchesData = { body?: never; path?: never; query?: { /** * (Optional) Filter on one repository. */ repository_id?: string; /** * (Optional) Filter on branch name using a fuzzy search. * Repository filter is required to enable this filter. */ name?: string; /** * (Optional) The number of items to return. */ limit?: string; /** * (Optional) The offset in the list of item to return. */ offset?: string; }; url: '/v1/git/branches'; }; export type ListBranchesErrors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type ListBranchesError = ListBranchesErrors[keyof ListBranchesErrors]; export type ListBranchesResponses = { /** * A successful response. */ 200: KgitproxyListBranchesReply; }; export type ListBranchesResponse = ListBranchesResponses[keyof ListBranchesResponses]; export type ListRepositoriesData = { body?: never; path?: never; query?: { /** * (Optional) Filter on repository name using a fuzzy search. */ name?: string; /** * (Optional) Define search operation for repository name. Accept either "fuzzy" or "equality", use "fuzzy" by default. */ name_search_op?: string; /** * (Optional) The number of items to return. */ limit?: string; /** * (Optional) The offset in the list of item to return. */ offset?: string; }; url: '/v1/git/repositories'; }; export type ListRepositoriesErrors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type ListRepositoriesError = ListRepositoriesErrors[keyof ListRepositoriesErrors]; export type ListRepositoriesResponses = { /** * A successful response. */ 200: KgitproxyListRepositoriesReply; }; export type ListRepositoriesResponse = ListRepositoriesResponses[keyof ListRepositoriesResponses]; export type ResyncOrganizationData = { body?: never; path: { organization_id: string; }; query?: never; url: '/v1/git/sync/organization/{organization_id}'; }; export type ResyncOrganizationErrors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type ResyncOrganizationError = ResyncOrganizationErrors[keyof ResyncOrganizationErrors]; export type ResyncOrganizationResponses = { /** * A successful response. */ 200: KgitproxyResyncOrganizationReply; }; export type ResyncOrganizationResponse = ResyncOrganizationResponses[keyof ResyncOrganizationResponses]; export type DeclareStageProgressData = { body: { secret?: string; status?: DeploymentProvisioningInfoStageStatus; finished_at?: string; messages?: Array; image_pushed?: boolean; internal_failure?: boolean; retryable_failure?: boolean; }; path: { deployment_id: string; stage: string; attempt: string; }; query?: never; url: '/v1/provisioning/{deployment_id}/status/{stage}/{attempt}'; }; export type DeclareStageProgressErrors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type DeclareStageProgressError = DeclareStageProgressErrors[keyof DeclareStageProgressErrors]; export type DeclareStageProgressResponses = { /** * A successful response. */ 200: DeclareStageProgressReply; }; export type DeclareStageProgressResponse = DeclareStageProgressResponses[keyof DeclareStageProgressResponses]; export type CreateStageAttemptData = { body: { secret?: string; status?: DeploymentProvisioningInfoStageStatus; started_at?: string; messages?: Array; steps?: Array; }; path: { deployment_id: string; stage: string; attempt: string; }; query?: never; url: '/v1/provisioning/{deployment_id}/status/{stage}/{attempt}'; }; export type CreateStageAttemptErrors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type CreateStageAttemptError = CreateStageAttemptErrors[keyof CreateStageAttemptErrors]; export type CreateStageAttemptResponses = { /** * A successful response. */ 200: CreateStageAttemptReply; }; export type CreateStageAttemptResponse = CreateStageAttemptResponses[keyof CreateStageAttemptResponses]; export type DeclareStepProgressData = { body: { secret?: string; status?: DeploymentProvisioningInfoStageStatus; started_at?: string; finished_at?: string; messages?: Array; }; path: { deployment_id: string; stage: string; attempt: string; step: string; }; query?: never; url: '/v1/provisioning/{deployment_id}/status/{stage}/{attempt}/{step}'; }; export type DeclareStepProgressErrors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type DeclareStepProgressError = DeclareStepProgressErrors[keyof DeclareStepProgressErrors]; export type DeclareStepProgressResponses = { /** * A successful response. */ 200: DeclareStepProgressReply; }; export type DeclareStepProgressResponse = DeclareStepProgressResponses[keyof DeclareStepProgressResponses]; export type GetOrganizationUsageData = { body?: never; path?: never; query?: { /** * The starting time of the period to get data from */ starting_time?: string; /** * The ending time of the period to get data from */ ending_time?: string; }; url: '/v1/usages'; }; export type GetOrganizationUsageErrors = { /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type GetOrganizationUsageError = GetOrganizationUsageErrors[keyof GetOrganizationUsageErrors]; export type GetOrganizationUsageResponses = { /** * A successful response. */ 200: GetOrganizationUsageReply; }; export type GetOrganizationUsageResponse = GetOrganizationUsageResponses[keyof GetOrganizationUsageResponses]; export type GetOrganizationUsageDetailsData = { body?: never; headers?: { /** * If defined with the value 'text/csv', a csv file is returned */ Accept?: string; }; path?: never; query?: { /** * The starting time of the period to get data from */ starting_time?: string; /** * The ending time of the period to get data from */ ending_time?: string; /** * (Optional) The number of items to return */ limit?: string; /** * (Optional) The offset in the list of item to return */ offset?: string; /** * (Optional) Sorts the list in the ascending or the descending order */ order?: string; }; url: '/v1/usages/details'; }; export type GetOrganizationUsageDetailsErrors = { /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type GetOrganizationUsageDetailsError = GetOrganizationUsageDetailsErrors[keyof GetOrganizationUsageDetailsErrors]; export type GetOrganizationUsageDetailsResponses = { /** * A successful response. */ 200: GetOrganizationUsageDetailsReply; }; export type GetOrganizationUsageDetailsResponse = GetOrganizationUsageDetailsResponses[keyof GetOrganizationUsageDetailsResponses]; export type ListServiceEventsData = { body?: never; path?: never; query?: { /** * (Optional) Filter on service id */ service_id?: string; /** * (Optional) Filter on service event types */ types?: Array; /** * (Optional) The number of items to return */ limit?: string; /** * (Optional) The offset in the list of item to return */ offset?: string; /** * (Optional) Sorts the list in the ascending or the descending order */ order?: string; }; url: '/v1/service_events'; }; export type ListServiceEventsErrors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type ListServiceEventsError = ListServiceEventsErrors[keyof ListServiceEventsErrors]; export type ListServiceEventsResponses = { /** * A successful response. */ 200: ListServiceEventsReply; }; export type ListServiceEventsResponse = ListServiceEventsResponses[keyof ListServiceEventsResponses]; export type ListServicesData = { body?: never; path?: never; query?: { /** * (Optional) The id of the app */ app_id?: string; /** * (Optional) The number of items to return */ limit?: string; /** * (Optional) The offset in the list of item to return */ offset?: string; /** * (Optional) A filter for name */ name?: string; /** * (Optional) Filter on service types */ types?: Array<'INVALID_TYPE' | 'WEB' | 'WORKER' | 'DATABASE' | 'SANDBOX'>; /** * (Optional) Filter on service statuses */ statuses?: Array<'STARTING' | 'HEALTHY' | 'DEGRADED' | 'UNHEALTHY' | 'DELETING' | 'DELETED' | 'PAUSING' | 'PAUSED' | 'RESUMING'>; /** * (Optional) Filter on regions */ regions?: Array; /** * (Optional) A filter for the project ID */ project_id?: string; }; url: '/v1/services'; }; export type ListServicesErrors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type ListServicesError = ListServicesErrors[keyof ListServicesErrors]; export type ListServicesResponses = { /** * A successful response. */ 200: ListServicesReply; }; export type ListServicesResponse = ListServicesResponses[keyof ListServicesResponses]; export type CreateServiceData = { body: CreateService; path?: never; query?: { /** * If set only run validation */ dry_run?: boolean; }; url: '/v1/services'; }; export type CreateServiceErrors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type CreateServiceError = CreateServiceErrors[keyof CreateServiceErrors]; export type CreateServiceResponses = { /** * A successful response. */ 200: CreateServiceReply; }; export type CreateServiceResponse = CreateServiceResponses[keyof CreateServiceResponses]; export type AutocompleteData = { body: AutocompleteRequest; path?: never; query?: never; url: '/v1/services-autocomplete'; }; export type AutocompleteErrors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type AutocompleteError = AutocompleteErrors[keyof AutocompleteErrors]; export type AutocompleteResponses = { /** * A successful response. */ 200: AutocompleteReply; }; export type AutocompleteResponse = AutocompleteResponses[keyof AutocompleteResponses]; export type DeleteServiceData = { body?: never; path: { /** * The id of the entity to delete */ id: string; }; query?: never; url: '/v1/services/{id}'; }; export type DeleteServiceErrors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type DeleteServiceError = DeleteServiceErrors[keyof DeleteServiceErrors]; export type DeleteServiceResponses = { /** * A successful response. */ 200: DeleteServiceReply; }; export type DeleteServiceResponse = DeleteServiceResponses[keyof DeleteServiceResponses]; export type GetServiceData = { body?: never; path: { /** * The id of the Service */ id: string; }; query?: never; url: '/v1/services/{id}'; }; export type GetServiceErrors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type GetServiceError = GetServiceErrors[keyof GetServiceErrors]; export type GetServiceResponses = { /** * A successful response. */ 200: GetServiceReply; }; export type GetServiceResponse = GetServiceResponses[keyof GetServiceResponses]; export type UpdateService2Data = { body: UpdateService; path: { /** * The id of the entity to update */ id: string; }; query?: { update_mask?: string; /** * If set, run validation and check that the service exists */ dry_run?: boolean; }; url: '/v1/services/{id}'; }; export type UpdateService2Errors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type UpdateService2Error = UpdateService2Errors[keyof UpdateService2Errors]; export type UpdateService2Responses = { /** * A successful response. */ 200: UpdateServiceReply; }; export type UpdateService2Response = UpdateService2Responses[keyof UpdateService2Responses]; export type UpdateServiceData = { body: UpdateService; path: { /** * The id of the entity to update */ id: string; }; query?: { update_mask?: string; /** * If set, run validation and check that the service exists */ dry_run?: boolean; }; url: '/v1/services/{id}'; }; export type UpdateServiceErrors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type UpdateServiceError = UpdateServiceErrors[keyof UpdateServiceErrors]; export type UpdateServiceResponses = { /** * A successful response. */ 200: UpdateServiceReply; }; export type UpdateServiceResponse = UpdateServiceResponses[keyof UpdateServiceResponses]; export type PauseServiceData = { body?: never; path: { /** * The id of the service to pause. */ id: string; }; query?: never; url: '/v1/services/{id}/pause'; }; export type PauseServiceErrors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type PauseServiceError = PauseServiceErrors[keyof PauseServiceErrors]; export type PauseServiceResponses = { /** * A successful response. */ 200: PauseServiceReply; }; export type PauseServiceResponse = PauseServiceResponses[keyof PauseServiceResponses]; export type ReDeployData = { body: RedeployRequestInfo; path: { id: string; }; query?: never; url: '/v1/services/{id}/redeploy'; }; export type ReDeployErrors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type ReDeployError = ReDeployErrors[keyof ReDeployErrors]; export type ReDeployResponses = { /** * A successful response. */ 200: RedeployReply; }; export type ReDeployResponse = ReDeployResponses[keyof ReDeployResponses]; export type ResumeServiceData = { body?: never; path: { /** * The id of the service to pause. */ id: string; }; query?: { /** * If set to true, the build stage will be skipped and the image coming from the last successful build step will be used instead. * The call fails if no previous successful builds happened. */ skip_build?: boolean; use_cache?: boolean; }; url: '/v1/services/{id}/resume'; }; export type ResumeServiceErrors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type ResumeServiceError = ResumeServiceErrors[keyof ResumeServiceErrors]; export type ResumeServiceResponses = { /** * A successful response. */ 200: ResumeServiceReply; }; export type ResumeServiceResponse = ResumeServiceResponses[keyof ResumeServiceResponses]; export type DeleteServiceScalingData = { body?: never; path: { /** * The id of the service */ id: string; }; query?: never; url: '/v1/services/{id}/scale'; }; export type DeleteServiceScalingErrors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type DeleteServiceScalingError = DeleteServiceScalingErrors[keyof DeleteServiceScalingErrors]; export type DeleteServiceScalingResponses = { /** * A successful response. */ 200: DeleteServiceScalingReply; }; export type DeleteServiceScalingResponse = DeleteServiceScalingResponses[keyof DeleteServiceScalingResponses]; export type GetServiceScalingData = { body?: never; path: { /** * The id of the service */ id: string; }; query?: never; url: '/v1/services/{id}/scale'; }; export type GetServiceScalingErrors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type GetServiceScalingError = GetServiceScalingErrors[keyof GetServiceScalingErrors]; export type GetServiceScalingResponses = { /** * A successful response. */ 200: GetServiceScalingReply; }; export type GetServiceScalingResponse = GetServiceScalingResponses[keyof GetServiceScalingResponses]; export type UpdateServiceScalingData = { body: { /** * The new scaling configuration */ scalings?: Array; }; path: { /** * The id of the service to scale */ id: string; }; query?: never; url: '/v1/services/{id}/scale'; }; export type UpdateServiceScalingErrors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type UpdateServiceScalingError = UpdateServiceScalingErrors[keyof UpdateServiceScalingErrors]; export type UpdateServiceScalingResponses = { /** * A successful response. */ 200: UpdateServiceScalingReply; }; export type UpdateServiceScalingResponse = UpdateServiceScalingResponses[keyof UpdateServiceScalingResponses]; export type ListAppEventsData = { body?: never; path?: never; query?: { /** * (Optional) Filter on app id */ app_id?: string; /** * (Optional) Filter on app event types */ types?: Array; /** * (Optional) The number of items to return */ limit?: string; /** * (Optional) The offset in the list of item to return */ offset?: string; /** * (Optional) Sorts the list in the ascending or the descending order */ order?: string; }; url: '/v1/app_events'; }; export type ListAppEventsErrors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type ListAppEventsError = ListAppEventsErrors[keyof ListAppEventsErrors]; export type ListAppEventsResponses = { /** * A successful response. */ 200: ListAppEventsReply; }; export type ListAppEventsResponse = ListAppEventsResponses[keyof ListAppEventsResponses]; export type ListAppsData = { body?: never; path?: never; query?: { /** * (Optional) The number of items to return */ limit?: string; /** * (Optional) The offset in the list of item to return */ offset?: string; /** * (Optional) A filter for name */ name?: string; /** * (Optional) A filter for the project ID */ project_id?: string; }; url: '/v1/apps'; }; export type ListAppsErrors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type ListAppsError = ListAppsErrors[keyof ListAppsErrors]; export type ListAppsResponses = { /** * A successful response. */ 200: ListAppsReply; }; export type ListAppsResponse = ListAppsResponses[keyof ListAppsResponses]; export type CreateAppData = { body: CreateApp; path?: never; query?: never; url: '/v1/apps'; }; export type CreateAppErrors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type CreateAppError = CreateAppErrors[keyof CreateAppErrors]; export type CreateAppResponses = { /** * A successful response. */ 200: CreateAppReply; }; export type CreateAppResponse = CreateAppResponses[keyof CreateAppResponses]; export type DeleteAppData = { body?: never; path: { /** * The id of the App to delete */ id: string; }; query?: never; url: '/v1/apps/{id}'; }; export type DeleteAppErrors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type DeleteAppError = DeleteAppErrors[keyof DeleteAppErrors]; export type DeleteAppResponses = { /** * A successful response. */ 200: DeleteAppReply; }; export type DeleteAppResponse = DeleteAppResponses[keyof DeleteAppResponses]; export type GetAppData = { body?: never; path: { /** * The id of the App */ id: string; }; query?: never; url: '/v1/apps/{id}'; }; export type GetAppErrors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type GetAppError = GetAppErrors[keyof GetAppErrors]; export type GetAppResponses = { /** * A successful response. */ 200: GetAppReply; }; export type GetAppResponse = GetAppResponses[keyof GetAppResponses]; export type UpdateApp2Data = { body: UpdateApp; path: { /** * The id of the app to update. */ id: string; }; query?: { update_mask?: string; }; url: '/v1/apps/{id}'; }; export type UpdateApp2Errors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type UpdateApp2Error = UpdateApp2Errors[keyof UpdateApp2Errors]; export type UpdateApp2Responses = { /** * A successful response. */ 200: UpdateAppReply; }; export type UpdateApp2Response = UpdateApp2Responses[keyof UpdateApp2Responses]; export type UpdateAppData = { body: UpdateApp; path: { /** * The id of the app to update. */ id: string; }; query?: { update_mask?: string; }; url: '/v1/apps/{id}'; }; export type UpdateAppErrors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type UpdateAppError = UpdateAppErrors[keyof UpdateAppErrors]; export type UpdateAppResponses = { /** * A successful response. */ 200: UpdateAppReply; }; export type UpdateAppResponse = UpdateAppResponses[keyof UpdateAppResponses]; export type PauseAppData = { body?: never; path: { /** * The id of the app to pause. */ id: string; }; query?: never; url: '/v1/apps/{id}/pause'; }; export type PauseAppErrors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type PauseAppError = PauseAppErrors[keyof PauseAppErrors]; export type PauseAppResponses = { /** * A successful response. */ 200: PauseAppReply; }; export type PauseAppResponse = PauseAppResponses[keyof PauseAppResponses]; export type ResumeAppData = { body?: never; path: { /** * The id of the app to resume. */ id: string; }; query?: never; url: '/v1/apps/{id}/resume'; }; export type ResumeAppErrors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type ResumeAppError = ResumeAppErrors[keyof ResumeAppErrors]; export type ResumeAppResponses = { /** * A successful response. */ 200: ResumeAppReply; }; export type ResumeAppResponse = ResumeAppResponses[keyof ResumeAppResponses]; export type GetDeploymentScalingData = { body?: never; path: { id: string; }; query?: { /** * (Optional) Filter on region */ region?: string; /** * (Optional) Filter on replica_index */ replica_index?: number; }; url: '/v1/deployment/{id}/scaling'; }; export type GetDeploymentScalingErrors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type GetDeploymentScalingError = GetDeploymentScalingErrors[keyof GetDeploymentScalingErrors]; export type GetDeploymentScalingResponses = { /** * A successful response. */ 200: GetDeploymentScalingReply; }; export type GetDeploymentScalingResponse = GetDeploymentScalingResponses[keyof GetDeploymentScalingResponses]; export type ListDeploymentEventsData = { body?: never; path?: never; query?: { /** * (Optional) Filter on deployment id */ deployment_id?: string; /** * (Optional) Filter on deployment event types */ types?: Array; /** * (Optional) The number of items to return */ limit?: string; /** * (Optional) The offset in the list of item to return */ offset?: string; /** * (Optional) Sorts the list in the ascending or the descending order */ order?: string; }; url: '/v1/deployment_events'; }; export type ListDeploymentEventsErrors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type ListDeploymentEventsError = ListDeploymentEventsErrors[keyof ListDeploymentEventsErrors]; export type ListDeploymentEventsResponses = { /** * A successful response. */ 200: ListDeploymentEventsReply; }; export type ListDeploymentEventsResponse = ListDeploymentEventsResponses[keyof ListDeploymentEventsResponses]; export type ListDeploymentsData = { body?: never; path?: never; query?: { /** * (Optional) Filter on application id */ app_id?: string; /** * (Optional) Filter on service id */ service_id?: string; /** * (Optional) The number of items to return */ limit?: string; /** * (Optional) The offset in the list of item to return */ offset?: string; /** * (Optional) Filter on statuses */ statuses?: Array<'PENDING' | 'PROVISIONING' | 'SCHEDULED' | 'CANCELING' | 'CANCELED' | 'ALLOCATING' | 'STARTING' | 'HEALTHY' | 'DEGRADED' | 'UNHEALTHY' | 'STOPPING' | 'STOPPED' | 'ERRORING' | 'ERROR' | 'STASHED' | 'SLEEPING'>; }; url: '/v1/deployments'; }; export type ListDeploymentsErrors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type ListDeploymentsError = ListDeploymentsErrors[keyof ListDeploymentsErrors]; export type ListDeploymentsResponses = { /** * A successful response. */ 200: ListDeploymentsReply; }; export type ListDeploymentsResponse = ListDeploymentsResponses[keyof ListDeploymentsResponses]; export type GetDeploymentData = { body?: never; path: { /** * The id of the deployment */ id: string; }; query?: never; url: '/v1/deployments/{id}'; }; export type GetDeploymentErrors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type GetDeploymentError = GetDeploymentErrors[keyof GetDeploymentErrors]; export type GetDeploymentResponses = { /** * A successful response. */ 200: GetDeploymentReply; }; export type GetDeploymentResponse = GetDeploymentResponses[keyof GetDeploymentResponses]; export type CancelDeploymentData = { body?: never; path: { /** * The id of the deployment to cancel. */ id: string; }; query?: never; url: '/v1/deployments/{id}/cancel'; }; export type CancelDeploymentErrors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type CancelDeploymentError = CancelDeploymentErrors[keyof CancelDeploymentErrors]; export type CancelDeploymentResponses = { /** * A successful response. */ 200: CancelDeploymentReply; }; export type CancelDeploymentResponse = CancelDeploymentResponses[keyof CancelDeploymentResponses]; export type ListRegionalDeploymentEventsData = { body?: never; path?: never; query?: { /** * (Optional) Filter on regional deployment id */ regional_deployment_id?: string; /** * (Optional) Filter on regional deployment event types */ types?: Array; /** * (Optional) The number of items to return */ limit?: string; /** * (Optional) The offset in the list of item to return */ offset?: string; /** * (Optional) Sorts the list in the ascending or the descending order */ order?: string; }; url: '/v1/regional_deployment_events'; }; export type ListRegionalDeploymentEventsErrors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type ListRegionalDeploymentEventsError = ListRegionalDeploymentEventsErrors[keyof ListRegionalDeploymentEventsErrors]; export type ListRegionalDeploymentEventsResponses = { /** * A successful response. */ 200: ListRegionalDeploymentEventsReply; }; export type ListRegionalDeploymentEventsResponse = ListRegionalDeploymentEventsResponses[keyof ListRegionalDeploymentEventsResponses]; export type ListRegionalDeploymentsData = { body?: never; path?: never; query?: { /** * (Optional) Filter on deployment id */ deployment_id?: string; /** * (Optional) The number of items to return */ limit?: string; /** * (Optional) The offset in the list of item to return */ offset?: string; }; url: '/v1/regional_deployments'; }; export type ListRegionalDeploymentsErrors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type ListRegionalDeploymentsError = ListRegionalDeploymentsErrors[keyof ListRegionalDeploymentsErrors]; export type ListRegionalDeploymentsResponses = { /** * A successful response. */ 200: ListRegionalDeploymentsReply; }; export type ListRegionalDeploymentsResponse = ListRegionalDeploymentsResponses[keyof ListRegionalDeploymentsResponses]; export type GetRegionalDeploymentData = { body?: never; path: { /** * The id of the regional deployment */ id: string; }; query?: never; url: '/v1/regional_deployments/{id}'; }; export type GetRegionalDeploymentErrors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type GetRegionalDeploymentError = GetRegionalDeploymentErrors[keyof GetRegionalDeploymentErrors]; export type GetRegionalDeploymentResponses = { /** * A successful response. */ 200: GetRegionalDeploymentReply; }; export type GetRegionalDeploymentResponse = GetRegionalDeploymentResponses[keyof GetRegionalDeploymentResponses]; export type VerifyDockerImageData = { body?: never; path?: never; query?: { /** * The full image uri to be verified */ image?: string; /** * (Optional) the id of the secret to use to authenticate to the registry */ secret_id?: string; }; url: '/v1/docker-helper/verify'; }; export type VerifyDockerImageErrors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type VerifyDockerImageError = VerifyDockerImageErrors[keyof VerifyDockerImageErrors]; export type VerifyDockerImageResponses = { /** * A successful response. */ 200: VerifyDockerImageReply; }; export type VerifyDockerImageResponse = VerifyDockerImageResponses[keyof VerifyDockerImageResponses]; export type ListPersistentVolumeEventsData = { body?: never; path?: never; query?: { /** * (Optional) Filter on persistent volume id */ persistent_volume_id?: string; /** * (Optional) Filter on persistent volume event types */ types?: Array; /** * (Optional) The number of items to return */ limit?: string; /** * (Optional) The offset in the list of item to return */ offset?: string; /** * (Optional) Sorts the list in the ascending or the descending order */ order?: string; }; url: '/v1/volume_events'; }; export type ListPersistentVolumeEventsErrors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type ListPersistentVolumeEventsError = ListPersistentVolumeEventsErrors[keyof ListPersistentVolumeEventsErrors]; export type ListPersistentVolumeEventsResponses = { /** * A successful response. */ 200: ListPersistentVolumeEventsReply; }; export type ListPersistentVolumeEventsResponse = ListPersistentVolumeEventsResponses[keyof ListPersistentVolumeEventsResponses]; export type ListPersistentVolumesData = { body?: never; path?: never; query?: { /** * (Optional) The number of items to return */ limit?: string; /** * (Optional) The offset in the list of item to return */ offset?: string; /** * (Optional) A filter for the service id */ service_id?: string; /** * (Optional) A filter for the region */ region?: string; /** * (Optional) A filter for the name */ name?: string; /** * (Optional) A filter for the project ID */ project_id?: string; }; url: '/v1/volumes'; }; export type ListPersistentVolumesErrors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type ListPersistentVolumesError = ListPersistentVolumesErrors[keyof ListPersistentVolumesErrors]; export type ListPersistentVolumesResponses = { /** * A successful response. */ 200: ListPersistentVolumesReply; }; export type ListPersistentVolumesResponse = ListPersistentVolumesResponses[keyof ListPersistentVolumesResponses]; export type CreatePersistentVolumeData = { body: CreatePersistentVolumeRequest; path?: never; query?: never; url: '/v1/volumes'; }; export type CreatePersistentVolumeErrors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type CreatePersistentVolumeError = CreatePersistentVolumeErrors[keyof CreatePersistentVolumeErrors]; export type CreatePersistentVolumeResponses = { /** * A successful response. */ 200: CreatePersistentVolumeReply; }; export type CreatePersistentVolumeResponse = CreatePersistentVolumeResponses[keyof CreatePersistentVolumeResponses]; export type DeletePersistentVolumeData = { body?: never; path: { id: string; }; query?: never; url: '/v1/volumes/{id}'; }; export type DeletePersistentVolumeErrors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type DeletePersistentVolumeError = DeletePersistentVolumeErrors[keyof DeletePersistentVolumeErrors]; export type DeletePersistentVolumeResponses = { /** * A successful response. */ 200: DeletePersistentVolumeReply; }; export type DeletePersistentVolumeResponse = DeletePersistentVolumeResponses[keyof DeletePersistentVolumeResponses]; export type GetPersistentVolumeData = { body?: never; path: { id: string; }; query?: never; url: '/v1/volumes/{id}'; }; export type GetPersistentVolumeErrors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type GetPersistentVolumeError = GetPersistentVolumeErrors[keyof GetPersistentVolumeErrors]; export type GetPersistentVolumeResponses = { /** * A successful response. */ 200: GetPersistentVolumeReply; }; export type GetPersistentVolumeResponse = GetPersistentVolumeResponses[keyof GetPersistentVolumeResponses]; export type UpdatePersistentVolumeData = { body: { /** * (Optional) change the name of the volume */ name?: string; /** * (Optional) increase the volume size (in Gigabyte / GB) */ max_size?: number; }; path: { id: string; }; query?: never; url: '/v1/volumes/{id}'; }; export type UpdatePersistentVolumeErrors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type UpdatePersistentVolumeError = UpdatePersistentVolumeErrors[keyof UpdatePersistentVolumeErrors]; export type UpdatePersistentVolumeResponses = { /** * A successful response. */ 200: UpdatePersistentVolumeReply; }; export type UpdatePersistentVolumeResponse = UpdatePersistentVolumeResponses[keyof UpdatePersistentVolumeResponses]; export type CreateArchiveData = { body: CreateArchive; path?: never; query?: never; url: '/v1/archives'; }; export type CreateArchiveErrors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type CreateArchiveError = CreateArchiveErrors[keyof CreateArchiveErrors]; export type CreateArchiveResponses = { /** * A successful response. */ 200: CreateArchiveReply; }; export type CreateArchiveResponse = CreateArchiveResponses[keyof CreateArchiveResponses]; export type ListInstanceEventsData = { body?: never; path?: never; query?: { /** * (Optional) Filter on list of instance id */ instance_ids?: Array; /** * (Optional) Filter on instance event types */ types?: Array; /** * (Optional) The number of items to return */ limit?: string; /** * (Optional) The offset in the list of item to return */ offset?: string; /** * (Optional) Sorts the list in the ascending or the descending order */ order?: string; }; url: '/v1/instance_events'; }; export type ListInstanceEventsErrors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type ListInstanceEventsError = ListInstanceEventsErrors[keyof ListInstanceEventsErrors]; export type ListInstanceEventsResponses = { /** * A successful response. */ 200: ListInstanceEventsReply; }; export type ListInstanceEventsResponse = ListInstanceEventsResponses[keyof ListInstanceEventsResponses]; export type ListInstancesData = { body?: never; path?: never; query?: { /** * (Optional) Filter on application id */ app_id?: string; /** * (Optional) Filter on service id */ service_id?: string; /** * (Optional) Filter on deployment id */ deployment_id?: string; /** * (Optional) Filter on regional deployment id */ regional_deployment_id?: string; /** * (Optional) Filter on allocation id */ allocation_id?: string; /** * (Optional) Filter on replica index */ replica_index?: string; /** * (Optional) Filter on instance statuses */ statuses?: Array<'ALLOCATING' | 'STARTING' | 'HEALTHY' | 'UNHEALTHY' | 'STOPPING' | 'STOPPED' | 'ERROR' | 'SLEEPING'>; /** * (Optional) The number of items to return */ limit?: string; /** * (Optional) The offset in the list of item to return */ offset?: string; /** * (Optional) Sorts the list in the ascending or the descending order */ order?: string; /** * (Optional) The starting time of the period of running instance */ starting_time?: string; /** * (Optional) The ending time of the period of running instance */ ending_time?: string; }; url: '/v1/instances'; }; export type ListInstancesErrors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type ListInstancesError = ListInstancesErrors[keyof ListInstancesErrors]; export type ListInstancesResponses = { /** * A successful response. */ 200: ListInstancesReply; }; export type ListInstancesResponse = ListInstancesResponses[keyof ListInstancesResponses]; export type GetInstanceData = { body?: never; path: { /** * The id of the instance */ id: string; }; query?: never; url: '/v1/instances/{id}'; }; export type GetInstanceErrors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type GetInstanceError = GetInstanceErrors[keyof GetInstanceErrors]; export type GetInstanceResponses = { /** * A successful response. */ 200: GetInstanceReply; }; export type GetInstanceResponse = GetInstanceResponses[keyof GetInstanceResponses]; export type ListSnapshotsData = { body?: never; path?: never; query?: { /** * (Optional) The number of items to return */ limit?: string; /** * (Optional) The offset in the list of item to return */ offset?: string; /** * (Optional) Filter by organization_id */ organization_id?: string; /** * (Optional) Filter by status * * - SNAPSHOT_STATUS_INVALID: zero value, invalid * - SNAPSHOT_STATUS_CREATING: the snapshot is being created * - SNAPSHOT_STATUS_AVAILABLE: the snapshot is complete and available * - SNAPSHOT_STATUS_MIGRATING: the snapshot is being migrated * - SNAPSHOT_STATUS_DELETING: the snapshot is being deleted * - SNAPSHOT_STATUS_DELETED: the snapshot is deleted */ statuses?: Array<'SNAPSHOT_STATUS_INVALID' | 'SNAPSHOT_STATUS_CREATING' | 'SNAPSHOT_STATUS_AVAILABLE' | 'SNAPSHOT_STATUS_MIGRATING' | 'SNAPSHOT_STATUS_DELETING' | 'SNAPSHOT_STATUS_DELETED'>; /** * (Optional) A filter for the region */ region?: string; }; url: '/v1/snapshots'; }; export type ListSnapshotsErrors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type ListSnapshotsError = ListSnapshotsErrors[keyof ListSnapshotsErrors]; export type ListSnapshotsResponses = { /** * A successful response. */ 200: ListSnapshotsReply; }; export type ListSnapshotsResponse = ListSnapshotsResponses[keyof ListSnapshotsResponses]; export type CreateSnapshotData = { body: CreateSnapshotRequest; path?: never; query?: never; url: '/v1/snapshots'; }; export type CreateSnapshotErrors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type CreateSnapshotError = CreateSnapshotErrors[keyof CreateSnapshotErrors]; export type CreateSnapshotResponses = { /** * A successful response. */ 200: CreateSnapshotReply; }; export type CreateSnapshotResponse = CreateSnapshotResponses[keyof CreateSnapshotResponses]; export type DeleteSnapshotData = { body?: never; path: { id: string; }; query?: never; url: '/v1/snapshots/{id}'; }; export type DeleteSnapshotErrors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type DeleteSnapshotError = DeleteSnapshotErrors[keyof DeleteSnapshotErrors]; export type DeleteSnapshotResponses = { /** * A successful response. */ 200: DeleteSnapshotReply; }; export type DeleteSnapshotResponse = DeleteSnapshotResponses[keyof DeleteSnapshotResponses]; export type GetSnapshotData = { body?: never; path: { id: string; }; query?: never; url: '/v1/snapshots/{id}'; }; export type GetSnapshotErrors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type GetSnapshotError = GetSnapshotErrors[keyof GetSnapshotErrors]; export type GetSnapshotResponses = { /** * A successful response. */ 200: GetSnapshotReply; }; export type GetSnapshotResponse = GetSnapshotResponses[keyof GetSnapshotResponses]; export type UpdateSnapshotData = { body: { /** * Change the name of the snapshot */ name?: string; }; path: { /** * The id of the snapshot */ id: string; }; query?: never; url: '/v1/snapshots/{id}'; }; export type UpdateSnapshotErrors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type UpdateSnapshotError = UpdateSnapshotErrors[keyof UpdateSnapshotErrors]; export type UpdateSnapshotResponses = { /** * A successful response. */ 200: UpdateSnapshotReply; }; export type UpdateSnapshotResponse = UpdateSnapshotResponses[keyof UpdateSnapshotResponses]; export type ListSecretsData = { body?: never; path?: never; query?: { name?: string; limit?: string; offset?: string; /** * Filter by secret types */ types?: Array<'SIMPLE' | 'REGISTRY' | 'MANAGED'>; /** * (Optional) A filter for the project ID */ project_id?: string; }; url: '/v1/secrets'; }; export type ListSecretsErrors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type ListSecretsError = ListSecretsErrors[keyof ListSecretsErrors]; export type ListSecretsResponses = { /** * A successful response. */ 200: ListSecretsReply; }; export type ListSecretsResponse = ListSecretsResponses[keyof ListSecretsResponses]; export type CreateSecretData = { body: CreateSecret; path?: never; query?: never; url: '/v1/secrets'; }; export type CreateSecretErrors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type CreateSecretError = CreateSecretErrors[keyof CreateSecretErrors]; export type CreateSecretResponses = { /** * A successful response. */ 200: CreateSecretReply; }; export type CreateSecretResponse = CreateSecretResponses[keyof CreateSecretResponses]; export type DeleteSecretData = { body?: never; path: { id: string; }; query?: never; url: '/v1/secrets/{id}'; }; export type DeleteSecretErrors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type DeleteSecretError = DeleteSecretErrors[keyof DeleteSecretErrors]; export type DeleteSecretResponses = { /** * A successful response. */ 200: DeleteSecretReply; }; export type DeleteSecretResponse = DeleteSecretResponses[keyof DeleteSecretResponses]; export type GetSecretData = { body?: never; path: { id: string; }; query?: never; url: '/v1/secrets/{id}'; }; export type GetSecretErrors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type GetSecretError = GetSecretErrors[keyof GetSecretErrors]; export type GetSecretResponses = { /** * A successful response. */ 200: GetSecretReply; }; export type GetSecretResponse = GetSecretResponses[keyof GetSecretResponses]; export type UpdateSecret2Data = { body: Secret; path: { id: string; }; query?: { update_mask?: string; }; url: '/v1/secrets/{id}'; }; export type UpdateSecret2Errors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type UpdateSecret2Error = UpdateSecret2Errors[keyof UpdateSecret2Errors]; export type UpdateSecret2Responses = { /** * A successful response. */ 200: UpdateSecretReply; }; export type UpdateSecret2Response = UpdateSecret2Responses[keyof UpdateSecret2Responses]; export type UpdateSecretData = { body: Secret; path: { id: string; }; query?: { update_mask?: string; }; url: '/v1/secrets/{id}'; }; export type UpdateSecretErrors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type UpdateSecretError = UpdateSecretErrors[keyof UpdateSecretErrors]; export type UpdateSecretResponses = { /** * A successful response. */ 200: UpdateSecretReply; }; export type UpdateSecretResponse = UpdateSecretResponses[keyof UpdateSecretResponses]; export type RevealSecretData = { body: { [key: string]: unknown; }; path: { id: string; }; query?: never; url: '/v1/secrets/{id}/reveal'; }; export type RevealSecretErrors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type RevealSecretError = RevealSecretErrors[keyof RevealSecretErrors]; export type RevealSecretResponses = { /** * A successful response. */ 200: RevealSecretReply; }; export type RevealSecretResponse = RevealSecretResponses[keyof RevealSecretResponses]; export type ListDomainsData = { body?: never; path?: never; query?: { /** * (Optional) The number of items to return */ limit?: string; /** * (Optional) The offset in the list of item to return */ offset?: string; /** * (Optional) A filter for types * * - AUTOASSIGNED: Domain like -.koyeb.app */ types?: Array<'AUTOASSIGNED' | 'CUSTOM'>; /** * (Optional) A filter for statuses */ statuses?: Array<'PENDING' | 'ACTIVE' | 'ERROR' | 'DELETING' | 'DELETED'>; /** * (Optional) A filter for apps */ app_ids?: Array; /** * (Optional) A filter for name */ name?: string; /** * (Optional) A filter for the project ID */ project_id?: string; }; url: '/v1/domains'; }; export type ListDomainsErrors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type ListDomainsError = ListDomainsErrors[keyof ListDomainsErrors]; export type ListDomainsResponses = { /** * A successful response. */ 200: ListDomainsReply; }; export type ListDomainsResponse = ListDomainsResponses[keyof ListDomainsResponses]; export type CreateDomainData = { body: CreateDomain; path?: never; query?: never; url: '/v1/domains'; }; export type CreateDomainErrors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type CreateDomainError = CreateDomainErrors[keyof CreateDomainErrors]; export type CreateDomainResponses = { /** * A successful response. */ 200: CreateDomainReply; }; export type CreateDomainResponse = CreateDomainResponses[keyof CreateDomainResponses]; export type DeleteDomainData = { body?: never; path: { id: string; }; query?: never; url: '/v1/domains/{id}'; }; export type DeleteDomainErrors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type DeleteDomainError = DeleteDomainErrors[keyof DeleteDomainErrors]; export type DeleteDomainResponses = { /** * A successful response. */ 200: DeleteDomainReply; }; export type DeleteDomainResponse = DeleteDomainResponses[keyof DeleteDomainResponses]; export type GetDomainData = { body?: never; path: { id: string; }; query?: never; url: '/v1/domains/{id}'; }; export type GetDomainErrors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type GetDomainError = GetDomainErrors[keyof GetDomainErrors]; export type GetDomainResponses = { /** * A successful response. */ 200: GetDomainReply; }; export type GetDomainResponse = GetDomainResponses[keyof GetDomainResponses]; export type UpdateDomainData = { body: UpdateDomain; path: { id: string; }; query?: { update_mask?: string; /** * If set, run validation and check that the domain is available. */ dry_run?: boolean; }; url: '/v1/domains/{id}'; }; export type UpdateDomainErrors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type UpdateDomainError = UpdateDomainErrors[keyof UpdateDomainErrors]; export type UpdateDomainResponses = { /** * A successful response. */ 200: UpdateDomainReply; }; export type UpdateDomainResponse = UpdateDomainResponses[keyof UpdateDomainResponses]; export type RefreshDomainStatusData = { body?: never; path: { id: string; }; query?: never; url: '/v1/domains/{id}/refresh'; }; export type RefreshDomainStatusErrors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type RefreshDomainStatusError = RefreshDomainStatusErrors[keyof RefreshDomainStatusErrors]; export type RefreshDomainStatusResponses = { /** * A successful response. */ 200: RefreshDomainStatusReply; }; export type RefreshDomainStatusResponse = RefreshDomainStatusResponses[keyof RefreshDomainStatusResponses]; export type ReviewOrganizationCapacityData = { body: ReviewOrganizationCapacityRequest; path?: never; query?: never; url: '/v1/quotas/capacity'; }; export type ReviewOrganizationCapacityErrors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type ReviewOrganizationCapacityError = ReviewOrganizationCapacityErrors[keyof ReviewOrganizationCapacityErrors]; export type ReviewOrganizationCapacityResponses = { /** * A successful response. */ 200: ReviewOrganizationCapacityReply; }; export type ReviewOrganizationCapacityResponse = ReviewOrganizationCapacityResponses[keyof ReviewOrganizationCapacityResponses]; export type ComposeData = { body: CreateCompose; path?: never; query?: never; url: '/v1/compose'; }; export type ComposeErrors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type ComposeError = ComposeErrors[keyof ComposeErrors]; export type ComposeResponses = { /** * A successful response. */ 200: ComposeReply; }; export type ComposeResponse = ComposeResponses[keyof ComposeResponses]; export type ListInstanceSnapshotEventsData = { body?: never; path?: never; query?: { /** * (Optional) Filter on instance snapshot id */ instance_snapshot_id?: string; /** * (Optional) Filter on instance snapshot event types */ types?: Array; /** * (Optional) The number of items to return */ limit?: string; /** * (Optional) The offset in the list of item to return */ offset?: string; /** * (Optional) Sorts the list in the ascending or the descending order */ order?: string; }; url: '/v1/instance_snapshot_events'; }; export type ListInstanceSnapshotEventsErrors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type ListInstanceSnapshotEventsError = ListInstanceSnapshotEventsErrors[keyof ListInstanceSnapshotEventsErrors]; export type ListInstanceSnapshotEventsResponses = { /** * A successful response. */ 200: ListInstanceSnapshotEventsReply; }; export type ListInstanceSnapshotEventsResponse = ListInstanceSnapshotEventsResponses[keyof ListInstanceSnapshotEventsResponses]; export type ListInstanceSnapshotsData = { body?: never; path?: never; query?: { limit?: string; offset?: string; name?: string; statuses?: Array<'INSTANCE_SNAPSHOT_STATUS_INVALID' | 'INSTANCE_SNAPSHOT_STATUS_CREATING' | 'INSTANCE_SNAPSHOT_STATUS_AVAILABLE' | 'INSTANCE_SNAPSHOT_STATUS_ERROR' | 'INSTANCE_SNAPSHOT_STATUS_DELETING' | 'INSTANCE_SNAPSHOT_STATUS_DELETED'>; type?: 'INSTANCE_SNAPSHOT_TYPE_INVALID' | 'INSTANCE_SNAPSHOT_TYPE_FILESYSTEM' | 'INSTANCE_SNAPSHOT_TYPE_FULL'; }; url: '/v1/instance_snapshots'; }; export type ListInstanceSnapshotsErrors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type ListInstanceSnapshotsError = ListInstanceSnapshotsErrors[keyof ListInstanceSnapshotsErrors]; export type ListInstanceSnapshotsResponses = { /** * A successful response. */ 200: ListInstanceSnapshotsReply; }; export type ListInstanceSnapshotsResponse = ListInstanceSnapshotsResponses[keyof ListInstanceSnapshotsResponses]; export type CreateInstanceSnapshotData = { body: CreateInstanceSnapshotRequest; path?: never; query?: never; url: '/v1/instance_snapshots'; }; export type CreateInstanceSnapshotErrors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type CreateInstanceSnapshotError = CreateInstanceSnapshotErrors[keyof CreateInstanceSnapshotErrors]; export type CreateInstanceSnapshotResponses = { /** * A successful response. */ 200: CreateInstanceSnapshotReply; }; export type CreateInstanceSnapshotResponse = CreateInstanceSnapshotResponses[keyof CreateInstanceSnapshotResponses]; export type DeleteInstanceSnapshotData = { body?: never; path: { id: string; }; query?: never; url: '/v1/instance_snapshots/{id}'; }; export type DeleteInstanceSnapshotErrors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type DeleteInstanceSnapshotError = DeleteInstanceSnapshotErrors[keyof DeleteInstanceSnapshotErrors]; export type DeleteInstanceSnapshotResponses = { /** * A successful response. */ 200: DeleteInstanceSnapshotReply; }; export type DeleteInstanceSnapshotResponse = DeleteInstanceSnapshotResponses[keyof DeleteInstanceSnapshotResponses]; export type GetInstanceSnapshotData = { body?: never; path: { id: string; }; query?: never; url: '/v1/instance_snapshots/{id}'; }; export type GetInstanceSnapshotErrors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type GetInstanceSnapshotError = GetInstanceSnapshotErrors[keyof GetInstanceSnapshotErrors]; export type GetInstanceSnapshotResponses = { /** * A successful response. */ 200: GetInstanceSnapshotReply; }; export type GetInstanceSnapshotResponse = GetInstanceSnapshotResponses[keyof GetInstanceSnapshotResponses]; export type TestAnonData = { body?: never; path?: never; query?: never; url: '/v1/test/anon'; }; export type TestAnonErrors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type TestAnonError = TestAnonErrors[keyof TestAnonErrors]; export type TestAnonResponses = { /** * A successful response. */ 200: KtestTestAnonReply; }; export type TestAnonResponse = TestAnonResponses[keyof TestAnonResponses]; export type TestAuthData = { body: KtestTestAuthRequest; path?: never; query?: never; url: '/v1/test/auth'; }; export type TestAuthErrors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type TestAuthError = TestAuthErrors[keyof TestAuthErrors]; export type TestAuthResponses = { /** * A successful response. */ 200: KtestTestAuthReply; }; export type TestAuthResponse = TestAuthResponses[keyof TestAuthResponses]; export type QueryLogsData = { body?: never; path?: never; query?: { /** * Type of logs to retrieve, either "build" or "runtime". Defaults to "runtime". */ type?: string; /** * (Optional) Filter on the provided app_id. At least one of app_id, service_id, deployment_id, regional_deployment_id or instance_ids must be set. */ app_id?: string; /** * (Optional) Filter on the provided service_id. At least one of app_id, service_id, deployment_id, regional_deployment_id or instance_ids must be set. */ service_id?: string; /** * (Optional) Filter on the provided deployment_id. At least one of app_id, service_id, deployment_id, regional_deployment_id or instance_ids must be set. */ deployment_id?: string; /** * (Optional) Filter on the provided regional_deployment_id. At least one of app_id, service_id, deployment_id, regional_deployment_id or instance_ids must be set. */ regional_deployment_id?: string; /** * Deprecated, prefer using instance_ids instead. */ instance_id?: string; /** * (Optional) Filter on the provided instance_ids. At least one of app_id, service_id, deployment_id, regional_deployment_id or instance_ids must be set. */ instance_ids?: Array; /** * Deprecated, prefer using streams instead. */ stream?: string; /** * (Optional) Filter on stream: either "stdout", "stderr" or "koyeb" (for system logs). */ streams?: Array; /** * (Optional) Must always be before `end`. Defaults to 15 minutes ago. */ start?: string; /** * (Optional) Must always be after `start`. Defaults to now. */ end?: string; /** * (Optional) `asc` or `desc`. Defaults to `desc`. */ order?: string; /** * (Optional) Defaults to 100. Maximum of 1000. */ limit?: string; /** * (Optional) Apply a regex to filter logs. Can't be used with `text`. */ regex?: string; /** * (Optional) Looks for this string in logs. Can't be used with `regex`. */ text?: string; /** * (Optional) Filter on the provided regions (e.g. ["fra", "was"]). */ regions?: Array; }; url: '/v1/streams/logs/query'; }; export type QueryLogsErrors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type QueryLogsError = QueryLogsErrors[keyof QueryLogsErrors]; export type QueryLogsResponses = { /** * A successful response. */ 200: QueryLogsReply; }; export type QueryLogsResponse = QueryLogsResponses[keyof QueryLogsResponses]; export type TailLogsData = { body?: never; path?: never; query?: { /** * Type of logs to retrieve, either "build" or "runtime". Defaults to "runtime". */ type?: string; /** * (Optional) Filter on the provided app_id. At least one of app_id, service_id, deployment_id, regional_deployment_id or instance_ids must be set. */ app_id?: string; /** * (Optional) Filter on the provided service_id. At least one of app_id, service_id, deployment_id, regional_deployment_id or instance_ids must be set. */ service_id?: string; /** * (Optional) Filter on the provided deployment_id. At least one of app_id, service_id, deployment_id, regional_deployment_id or instance_ids must be set. */ deployment_id?: string; /** * (Optional) Filter on the provided regional_deployment_id. At least one of app_id, service_id, deployment_id, regional_deployment_id or instance_ids must be set. */ regional_deployment_id?: string; /** * Deprecated, prefer using instance_ids instead. */ instance_id?: string; /** * (Optional) Filter on the provided instance_ids. At least one of app_id, service_id, deployment_id, regional_deployment_id or instance_ids must be set. */ instance_ids?: Array; /** * Deprecated, prefer using streams instead. */ stream?: string; /** * (Optional) Filter on stream: either "stdout", "stderr" or "koyeb" (for system logs). */ streams?: Array; /** * (Optional) Defaults to 24 hours ago. */ start?: string; /** * (Optional) Defaults to 1000. Maximum of 1000. */ limit?: string; /** * (Optional) Apply a regex to filter logs. Can't be used with `text`. */ regex?: string; /** * (Optional) Looks for this string in logs. Can't be used with `regex`. */ text?: string; /** * (Optional) Filter on the provided regions (e.g. ["fra", "was"]). */ regions?: Array; }; url: '/v1/streams/logs/tail'; }; export type TailLogsErrors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type TailLogsError = TailLogsErrors[keyof TailLogsErrors]; export type TailLogsResponses = { /** * Stream result of LogEntry * * A successful response.(streaming responses) */ 200: { result?: LogEntry; error?: GoogleRpcStatus; }; }; export type TailLogsResponse = TailLogsResponses[keyof TailLogsResponses]; export type GetMetricsData = { body?: never; path?: never; query?: { /** * ID of the service to query instances metrics for. Ignored if instance_id is set. */ service_id?: string; /** * ID of the instance to query metrics for. */ instance_id?: string; /** * Metric to query. */ name?: 'UNKNOWN' | 'CPU_TOTAL_PERCENT' | 'MEM_RSS' | 'HTTP_THROUGHPUT' | 'HTTP_RESPONSE_TIME_50P' | 'HTTP_RESPONSE_TIME_90P' | 'HTTP_RESPONSE_TIME_99P' | 'HTTP_RESPONSE_TIME_MAX' | 'PUBLIC_DATA_TRANSFER_IN' | 'PUBLIC_DATA_TRANSFER_OUT'; /** * (Optional) Defaults to an hour prior to end. */ start?: string; /** * (Optional) Defaults to now. */ end?: string; /** * (Optional) Must be a valid duration in hours (h) or minutes (m). Defaulst to 5m. */ step?: string; }; url: '/v1/streams/metrics'; }; export type GetMetricsErrors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type GetMetricsError = GetMetricsErrors[keyof GetMetricsErrors]; export type GetMetricsResponses = { /** * A successful response. */ 200: GetMetricsReply; }; export type GetMetricsResponse = GetMetricsResponses[keyof GetMetricsResponses]; export type ExecCommandData = { body?: never; path?: never; query?: { /** * ID of the resource to exec on. */ id?: string; /** * Command to exec. Mandatory in the first frame sent */ 'body.command'?: Array; 'body.tty_size.height'?: number; 'body.tty_size.width'?: number; /** * Data is base64 encoded */ 'body.stdin.data'?: string; /** * Indicate last data frame */ 'body.stdin.close'?: boolean; /** * Disable TTY. It's enough to specify it in the first frame */ 'body.disableTty'?: boolean; /** * When specified, it is used to determine if the kind of resource the id refers to. If missing, defaults to the instance id. */ id_type?: 'INVALID' | 'INSTANCE_ID' | 'SERVICE_ID'; }; url: '/v1/streams/instances/exec'; }; export type ExecCommandErrors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type ExecCommandError = ExecCommandErrors[keyof ExecCommandErrors]; export type ExecCommandResponses = { /** * Stream result of ExecCommandReply * * A successful response.(streaming responses) */ 200: { result?: ExecCommandReply; error?: GoogleRpcStatus; }; }; export type ExecCommandResponse = ExecCommandResponses[keyof ExecCommandResponses]; export type GetAccountActivitiesData = { body?: never; path?: never; query?: { limit?: string; offset?: string; }; url: '/v1/account/activities'; }; export type GetAccountActivitiesErrors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type GetAccountActivitiesError = GetAccountActivitiesErrors[keyof GetAccountActivitiesErrors]; export type GetAccountActivitiesResponses = { /** * A successful response. */ 200: ActivityList; }; export type GetAccountActivitiesResponse = GetAccountActivitiesResponses[keyof GetAccountActivitiesResponses]; export type GetIdenfyTokenData = { body?: never; path?: never; query?: never; url: '/v1/account/idenfy'; }; export type GetIdenfyTokenErrors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type GetIdenfyTokenError = GetIdenfyTokenErrors[keyof GetIdenfyTokenErrors]; export type GetIdenfyTokenResponses = { /** * A successful response. */ 200: GetIdenfyTokenReply; }; export type GetIdenfyTokenResponse = GetIdenfyTokenResponses[keyof GetIdenfyTokenResponses]; export type ClearIdenfyVerificationResultData = { body: ClearIdenfyVerificationResultRequest; path?: never; query?: never; url: '/v1/account/idenfy'; }; export type ClearIdenfyVerificationResultErrors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type ClearIdenfyVerificationResultError = ClearIdenfyVerificationResultErrors[keyof ClearIdenfyVerificationResultErrors]; export type ClearIdenfyVerificationResultResponses = { /** * A successful response. */ 200: ClearIdenfyVerificationResultReply; }; export type ClearIdenfyVerificationResultResponse = ClearIdenfyVerificationResultResponses[keyof ClearIdenfyVerificationResultResponses]; export type CreateInviteData = { body: InviteUserRequest; path?: never; query?: never; url: '/v1/account/invite'; }; export type CreateInviteErrors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type CreateInviteError = CreateInviteErrors[keyof CreateInviteErrors]; export type CreateInviteResponses = { /** * A successful response. */ 200: Empty; }; export type CreateInviteResponse = CreateInviteResponses[keyof CreateInviteResponses]; export type LoginMethodData = { body?: never; path?: never; query?: { email?: string; }; url: '/v1/account/login_method'; }; export type LoginMethodErrors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type LoginMethodError = LoginMethodErrors[keyof LoginMethodErrors]; export type LoginMethodResponses = { /** * A successful response. */ 200: LoginMethodReply; }; export type LoginMethodResponse = LoginMethodResponses[keyof LoginMethodResponses]; export type GetOAuthOptionsData = { body?: never; path?: never; query?: { /** * Which authentication flow is being initiated */ action?: 'signin' | 'signup' | 'register'; /** * A small (limited to 400 characters) string of arbitrary metadata which will * be encoded in the state */ metadata?: string; }; url: '/v1/account/oauth'; }; export type GetOAuthOptionsErrors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type GetOAuthOptionsError = GetOAuthOptionsErrors[keyof GetOAuthOptionsErrors]; export type GetOAuthOptionsResponses = { /** * A successful response. */ 200: GetOAuthOptionsReply; }; export type GetOAuthOptionsResponse = GetOAuthOptionsResponses[keyof GetOAuthOptionsResponses]; export type OAuthCallbackData = { body: OAuthCallbackRequest; headers?: { /** * Seon Fingerprint */ 'seon-fp'?: string; }; path?: never; query?: never; url: '/v1/account/oauth'; }; export type OAuthCallbackErrors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type OAuthCallbackError = OAuthCallbackErrors[keyof OAuthCallbackErrors]; export type OAuthCallbackResponses = { /** * A successful response. */ 200: OAuthCallbackReply; }; export type OAuthCallbackResponse = OAuthCallbackResponses[keyof OAuthCallbackResponses]; export type GetCurrentOrganizationData = { body?: never; path?: never; query?: never; url: '/v1/account/organization'; }; export type GetCurrentOrganizationErrors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type GetCurrentOrganizationError = GetCurrentOrganizationErrors[keyof GetCurrentOrganizationErrors]; export type GetCurrentOrganizationResponses = { /** * A successful response. */ 200: GetOrganizationReply; }; export type GetCurrentOrganizationResponse = GetCurrentOrganizationResponses[keyof GetCurrentOrganizationResponses]; export type ListUserOrganizationInvitationsData = { body?: never; path?: never; query?: { /** * (Optional) The number of items to return */ limit?: string; /** * (Optional) The offset in the list of item to return */ offset?: string; /** * (Optional) Filter on organization invitation statuses */ statuses?: Array<'INVALID' | 'PENDING' | 'ACCEPTED' | 'REFUSED' | 'EXPIRED'>; }; url: '/v1/account/organization_invitations'; }; export type ListUserOrganizationInvitationsErrors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type ListUserOrganizationInvitationsError = ListUserOrganizationInvitationsErrors[keyof ListUserOrganizationInvitationsErrors]; export type ListUserOrganizationInvitationsResponses = { /** * A successful response. */ 200: ListUserOrganizationInvitationsReply; }; export type ListUserOrganizationInvitationsResponse = ListUserOrganizationInvitationsResponses[keyof ListUserOrganizationInvitationsResponses]; export type GetUserOrganizationInvitationData = { body?: never; path: { /** * The id of the organization invitation to get */ id: string; }; query?: never; url: '/v1/account/organization_invitations/{id}'; }; export type GetUserOrganizationInvitationErrors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type GetUserOrganizationInvitationError = GetUserOrganizationInvitationErrors[keyof GetUserOrganizationInvitationErrors]; export type GetUserOrganizationInvitationResponses = { /** * A successful response. */ 200: GetUserOrganizationInvitationReply; }; export type GetUserOrganizationInvitationResponse = GetUserOrganizationInvitationResponses[keyof GetUserOrganizationInvitationResponses]; export type AcceptOrganizationInvitationData = { body: { [key: string]: unknown; }; path: { /** * The id of the organization invitation to accept */ id: string; }; query?: never; url: '/v1/account/organization_invitations/{id}/accept'; }; export type AcceptOrganizationInvitationErrors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type AcceptOrganizationInvitationError = AcceptOrganizationInvitationErrors[keyof AcceptOrganizationInvitationErrors]; export type AcceptOrganizationInvitationResponses = { /** * A successful response. */ 200: AcceptOrganizationInvitationReply; }; export type AcceptOrganizationInvitationResponse = AcceptOrganizationInvitationResponses[keyof AcceptOrganizationInvitationResponses]; export type DeclineOrganizationInvitationData = { body: { [key: string]: unknown; }; path: { /** * The id of the organization invitation to decline */ id: string; }; query?: never; url: '/v1/account/organization_invitations/{id}/decline'; }; export type DeclineOrganizationInvitationErrors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type DeclineOrganizationInvitationError = DeclineOrganizationInvitationErrors[keyof DeclineOrganizationInvitationErrors]; export type DeclineOrganizationInvitationResponses = { /** * A successful response. */ 200: DeclineOrganizationInvitationReply; }; export type DeclineOrganizationInvitationResponse = DeclineOrganizationInvitationResponses[keyof DeclineOrganizationInvitationResponses]; export type ListUserOrganizationsData = { body?: never; path?: never; query?: { /** * (Optional) Define pagination limit */ limit?: string; /** * (Optional) Define pagination offset */ offset?: string; /** * (Optional) Sorts the list in the ascending or the descending order */ order?: string; /** * (Optional) Fuzzy case-insensitive search based on organization name or * organization id */ search?: string; /** * (Optional) Only return organizations which status match one in the list */ statuses?: Array<'WARNING' | 'LOCKED' | 'ACTIVE' | 'DEACTIVATING' | 'DEACTIVATED' | 'DELETING' | 'DELETED'>; }; url: '/v1/account/organizations'; }; export type ListUserOrganizationsErrors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type ListUserOrganizationsError = ListUserOrganizationsErrors[keyof ListUserOrganizationsErrors]; export type ListUserOrganizationsResponses = { /** * A successful response. */ 200: ListUserOrganizationsReply; }; export type ListUserOrganizationsResponse = ListUserOrganizationsResponses[keyof ListUserOrganizationsResponses]; export type GetCurrentUserData = { body?: never; headers?: { /** * Seon Fingerprint */ 'seon-fp'?: string; }; path?: never; query?: never; url: '/v1/account/profile'; }; export type GetCurrentUserErrors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type GetCurrentUserError = GetCurrentUserErrors[keyof GetCurrentUserErrors]; export type GetCurrentUserResponses = { /** * A successful response. */ 200: UserReply; }; export type GetCurrentUserResponse = GetCurrentUserResponses[keyof GetCurrentUserResponses]; export type UpdateUser2Data = { body: UpdateUserRequestUserUpdateBody; path?: never; query?: { update_mask?: string; }; url: '/v1/account/profile'; }; export type UpdateUser2Errors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type UpdateUser2Error = UpdateUser2Errors[keyof UpdateUser2Errors]; export type UpdateUser2Responses = { /** * A successful response. */ 200: UserReply; }; export type UpdateUser2Response = UpdateUser2Responses[keyof UpdateUser2Responses]; export type UpdateUserData = { body: UpdateUserRequestUserUpdateBody; path?: never; query?: { update_mask?: string; }; url: '/v1/account/profile'; }; export type UpdateUserErrors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type UpdateUserError = UpdateUserErrors[keyof UpdateUserErrors]; export type UpdateUserResponses = { /** * A successful response. */ 200: UserReply; }; export type UpdateUserResponse = UpdateUserResponses[keyof UpdateUserResponses]; export type ResendEmailValidationData = { body: ResendEmailValidationRequest; path?: never; query?: never; url: '/v1/account/resend_validation'; }; export type ResendEmailValidationErrors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type ResendEmailValidationError = ResendEmailValidationErrors[keyof ResendEmailValidationErrors]; export type ResendEmailValidationResponses = { /** * A successful response. */ 200: ResendEmailValidationReply; }; export type ResendEmailValidationResponse = ResendEmailValidationResponses[keyof ResendEmailValidationResponses]; export type ResetPasswordData = { body: ResetPasswordRequest; path?: never; query?: never; url: '/v1/account/reset_password'; }; export type ResetPasswordErrors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type ResetPasswordError = ResetPasswordErrors[keyof ResetPasswordErrors]; export type ResetPasswordResponses = { /** * A successful response. */ 200: ResetPasswordReply; }; export type ResetPasswordResponse = ResetPasswordResponses[keyof ResetPasswordResponses]; export type GetUserSettingsData = { body?: never; path?: never; query?: never; url: '/v1/account/settings'; }; export type GetUserSettingsErrors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type GetUserSettingsError = GetUserSettingsErrors[keyof GetUserSettingsErrors]; export type GetUserSettingsResponses = { /** * A successful response. */ 200: GetUserSettingsReply; }; export type GetUserSettingsResponse = GetUserSettingsResponses[keyof GetUserSettingsResponses]; export type UpdateUserSettingsData = { body: UpdateUserSettingsRequest; path?: never; query?: never; url: '/v1/account/settings'; }; export type UpdateUserSettingsErrors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type UpdateUserSettingsError = UpdateUserSettingsErrors[keyof UpdateUserSettingsErrors]; export type UpdateUserSettingsResponses = { /** * A successful response. */ 200: UpdateUserSettingsReply; }; export type UpdateUserSettingsResponse = UpdateUserSettingsResponses[keyof UpdateUserSettingsResponses]; export type SignupData = { /** * Create new account */ body: CreateAccountRequest; headers?: { /** * Seon Fingerprint */ 'seon-fp'?: string; }; path?: never; query?: never; url: '/v1/account/signup'; }; export type SignupErrors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type SignupError = SignupErrors[keyof SignupErrors]; export type SignupResponses = { /** * A successful response. */ 200: LoginReply; }; export type SignupResponse = SignupResponses[keyof SignupResponses]; export type UpdatePasswordData = { body: UpdatePasswordRequest; headers?: { /** * Seon Fingerprint */ 'seon-fp'?: string; }; path?: never; query?: never; url: '/v1/account/update_password'; }; export type UpdatePasswordErrors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type UpdatePasswordError = UpdatePasswordErrors[keyof UpdatePasswordErrors]; export type UpdatePasswordResponses = { /** * A successful response. */ 200: LoginReply; }; export type UpdatePasswordResponse = UpdatePasswordResponses[keyof UpdatePasswordResponses]; export type ValidateData = { body?: never; headers?: { /** * Seon Fingerprint */ 'seon-fp'?: string; }; path: { id: string; }; query?: never; url: '/v1/account/validate/{id}'; }; export type ValidateErrors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type ValidateError = ValidateErrors[keyof ValidateErrors]; export type ValidateResponses = { /** * A successful response. */ 200: LoginReply; }; export type ValidateResponse = ValidateResponses[keyof ValidateResponses]; export type HasUnpaidInvoicesData = { body?: never; path?: never; query?: never; url: '/v1/billing/has_unpaid_invoices'; }; export type HasUnpaidInvoicesErrors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type HasUnpaidInvoicesError = HasUnpaidInvoicesErrors[keyof HasUnpaidInvoicesErrors]; export type HasUnpaidInvoicesResponses = { /** * A successful response. */ 200: HasUnpaidInvoicesReply; }; export type HasUnpaidInvoicesResponse = HasUnpaidInvoicesResponses[keyof HasUnpaidInvoicesResponses]; export type ManageData = { body?: never; path?: never; query?: never; url: '/v1/billing/manage'; }; export type ManageErrors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type ManageError = ManageErrors[keyof ManageErrors]; export type ManageResponses = { /** * A successful response. */ 200: ManageReply; }; export type ManageResponse = ManageResponses[keyof ManageResponses]; export type NextInvoiceData = { body?: never; path?: never; query?: never; url: '/v1/billing/next_invoice'; }; export type NextInvoiceErrors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type NextInvoiceError = NextInvoiceErrors[keyof NextInvoiceErrors]; export type NextInvoiceResponses = { /** * A successful response. */ 200: NextInvoiceReply; }; export type NextInvoiceResponse = NextInvoiceResponses[keyof NextInvoiceResponses]; export type GetGithubInstallationData = { body?: never; path?: never; query?: never; url: '/v1/github/installation'; }; export type GetGithubInstallationErrors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type GetGithubInstallationError = GetGithubInstallationErrors[keyof GetGithubInstallationErrors]; export type GetGithubInstallationResponses = { /** * A successful response. */ 200: GetGithubInstallationReply; }; export type GetGithubInstallationResponse = GetGithubInstallationResponses[keyof GetGithubInstallationResponses]; export type GithubInstallationData = { body: GithubInstallationRequest; path?: never; query?: never; url: '/v1/github/installation'; }; export type GithubInstallationErrors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type GithubInstallationError = GithubInstallationErrors[keyof GithubInstallationErrors]; export type GithubInstallationResponses = { /** * A successful response. */ 200: GithubInstallationReply; }; export type GithubInstallationResponse = GithubInstallationResponses[keyof GithubInstallationResponses]; export type CreateOrganizationData = { body: CreateOrganizationRequest; path?: never; query?: never; url: '/v1/organizations'; }; export type CreateOrganizationErrors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type CreateOrganizationError = CreateOrganizationErrors[keyof CreateOrganizationErrors]; export type CreateOrganizationResponses = { /** * A successful response. */ 200: CreateOrganizationReply; }; export type CreateOrganizationResponse = CreateOrganizationResponses[keyof CreateOrganizationResponses]; export type DeleteOrganizationData = { body?: never; path: { id: string; }; query?: never; url: '/v1/organizations/{id}'; }; export type DeleteOrganizationErrors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type DeleteOrganizationError = DeleteOrganizationErrors[keyof DeleteOrganizationErrors]; export type DeleteOrganizationResponses = { /** * A successful response. */ 200: DeleteOrganizationReply; }; export type DeleteOrganizationResponse = DeleteOrganizationResponses[keyof DeleteOrganizationResponses]; export type GetOrganizationData = { body?: never; path: { id: string; }; query?: never; url: '/v1/organizations/{id}'; }; export type GetOrganizationErrors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type GetOrganizationError = GetOrganizationErrors[keyof GetOrganizationErrors]; export type GetOrganizationResponses = { /** * A successful response. */ 200: GetOrganizationReply; }; export type GetOrganizationResponse = GetOrganizationResponses[keyof GetOrganizationResponses]; export type UpdateOrganization2Data = { body: Organization; path: { id: string; }; query?: { update_mask?: string; }; url: '/v1/organizations/{id}'; }; export type UpdateOrganization2Errors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type UpdateOrganization2Error = UpdateOrganization2Errors[keyof UpdateOrganization2Errors]; export type UpdateOrganization2Responses = { /** * A successful response. */ 200: UpdateOrganizationReply; }; export type UpdateOrganization2Response = UpdateOrganization2Responses[keyof UpdateOrganization2Responses]; export type UpdateOrganizationData = { body: Organization; path: { id: string; }; query?: { update_mask?: string; }; url: '/v1/organizations/{id}'; }; export type UpdateOrganizationErrors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type UpdateOrganizationError = UpdateOrganizationErrors[keyof UpdateOrganizationErrors]; export type UpdateOrganizationResponses = { /** * A successful response. */ 200: UpdateOrganizationReply; }; export type UpdateOrganizationResponse = UpdateOrganizationResponses[keyof UpdateOrganizationResponses]; export type CreateAccessTokenData = { body: { /** * Validity of the credential */ validity?: string; }; path: { /** * Organization id for ephemeral credential */ id: string; }; query?: never; url: '/v1/organizations/{id}/access_token'; }; export type CreateAccessTokenErrors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type CreateAccessTokenError = CreateAccessTokenErrors[keyof CreateAccessTokenErrors]; export type CreateAccessTokenResponses = { /** * A successful response. */ 200: CreateAccessTokenReply; }; export type CreateAccessTokenResponse = CreateAccessTokenResponses[keyof CreateAccessTokenResponses]; export type DeactivateOrganizationData = { body: { /** * if set to true, skip_confirmation will directly start the deactivation * process, without sending a confirmation email beforehand. */ skip_confirmation?: boolean; }; path: { id: string; }; query?: never; url: '/v1/organizations/{id}/deactivate'; }; export type DeactivateOrganizationErrors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type DeactivateOrganizationError = DeactivateOrganizationErrors[keyof DeactivateOrganizationErrors]; export type DeactivateOrganizationResponses = { /** * A successful response. */ 200: DeactivateOrganizationReply; }; export type DeactivateOrganizationResponse = DeactivateOrganizationResponses[keyof DeactivateOrganizationResponses]; export type UpdateOrganizationDefaultProjectData = { body: { default_project_id?: string; }; path: { id: string; }; query?: never; url: '/v1/organizations/{id}/default_project'; }; export type UpdateOrganizationDefaultProjectErrors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type UpdateOrganizationDefaultProjectError = UpdateOrganizationDefaultProjectErrors[keyof UpdateOrganizationDefaultProjectErrors]; export type UpdateOrganizationDefaultProjectResponses = { /** * A successful response. */ 200: UpdateOrganizationDefaultProjectReply; }; export type UpdateOrganizationDefaultProjectResponse = UpdateOrganizationDefaultProjectResponses[keyof UpdateOrganizationDefaultProjectResponses]; export type UpdateOrganizationNameData = { body: { name?: string; }; path: { id: string; }; query?: never; url: '/v1/organizations/{id}/name'; }; export type UpdateOrganizationNameErrors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type UpdateOrganizationNameError = UpdateOrganizationNameErrors[keyof UpdateOrganizationNameErrors]; export type UpdateOrganizationNameResponses = { /** * A successful response. */ 200: UpdateOrganizationNameReply; }; export type UpdateOrganizationNameResponse = UpdateOrganizationNameResponses[keyof UpdateOrganizationNameResponses]; export type UpdateOrganizationPlanData = { body: { plan?: Plan; coupon_code?: string; }; path: { id: string; }; query?: never; url: '/v1/organizations/{id}/plan'; }; export type UpdateOrganizationPlanErrors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type UpdateOrganizationPlanError = UpdateOrganizationPlanErrors[keyof UpdateOrganizationPlanErrors]; export type UpdateOrganizationPlanResponses = { /** * A successful response. */ 200: UpdateOrganizationPlanReply; }; export type UpdateOrganizationPlanResponse = UpdateOrganizationPlanResponses[keyof UpdateOrganizationPlanResponses]; export type ReactivateOrganizationData = { body: { [key: string]: unknown; }; path: { id: string; }; query?: never; url: '/v1/organizations/{id}/reactivate'; }; export type ReactivateOrganizationErrors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type ReactivateOrganizationError = ReactivateOrganizationErrors[keyof ReactivateOrganizationErrors]; export type ReactivateOrganizationResponses = { /** * A successful response. */ 200: ReactivateOrganizationReply; }; export type ReactivateOrganizationResponse = ReactivateOrganizationResponses[keyof ReactivateOrganizationResponses]; export type UpsertSignupQualificationData = { body: { signup_qualification?: { [key: string]: unknown; }; }; path: { id: string; }; query?: never; url: '/v1/organizations/{id}/signup_qualification'; }; export type UpsertSignupQualificationErrors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type UpsertSignupQualificationError = UpsertSignupQualificationErrors[keyof UpsertSignupQualificationErrors]; export type UpsertSignupQualificationResponses = { /** * A successful response. */ 200: UpsertSignupQualificationReply; }; export type UpsertSignupQualificationResponse = UpsertSignupQualificationResponses[keyof UpsertSignupQualificationResponses]; export type SwitchOrganizationData = { body: { [key: string]: unknown; }; headers?: { /** * Seon Fingerprint */ 'seon-fp'?: string; }; path: { id: string; }; query?: never; url: '/v1/organizations/{id}/switch'; }; export type SwitchOrganizationErrors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type SwitchOrganizationError = SwitchOrganizationErrors[keyof SwitchOrganizationErrors]; export type SwitchOrganizationResponses = { /** * A successful response. */ 200: LoginReply; }; export type SwitchOrganizationResponse = SwitchOrganizationResponses[keyof SwitchOrganizationResponses]; export type DeleteBudgetData = { body?: never; path: { organization_id: string; }; query?: never; url: '/v1/organizations/{organization_id}/budget'; }; export type DeleteBudgetErrors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type DeleteBudgetError = DeleteBudgetErrors[keyof DeleteBudgetErrors]; export type DeleteBudgetResponses = { /** * A successful response. */ 200: DeleteBudgetReply; }; export type DeleteBudgetResponse = DeleteBudgetResponses[keyof DeleteBudgetResponses]; export type GetBudgetData = { body?: never; path: { organization_id: string; }; query?: never; url: '/v1/organizations/{organization_id}/budget'; }; export type GetBudgetErrors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type GetBudgetError = GetBudgetErrors[keyof GetBudgetErrors]; export type GetBudgetResponses = { /** * A successful response. */ 200: GetBudgetReply; }; export type GetBudgetResponse = GetBudgetResponses[keyof GetBudgetResponses]; export type CreateBudgetData = { body: { /** * In cents. */ amount?: string; }; path: { organization_id: string; }; query?: never; url: '/v1/organizations/{organization_id}/budget'; }; export type CreateBudgetErrors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type CreateBudgetError = CreateBudgetErrors[keyof CreateBudgetErrors]; export type CreateBudgetResponses = { /** * A successful response. */ 200: CreateBudgetReply; }; export type CreateBudgetResponse = CreateBudgetResponses[keyof CreateBudgetResponses]; export type UpdateBudgetData = { body: { /** * In cents. */ amount?: string; }; path: { organization_id: string; }; query?: never; url: '/v1/organizations/{organization_id}/budget'; }; export type UpdateBudgetErrors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type UpdateBudgetError = UpdateBudgetErrors[keyof UpdateBudgetErrors]; export type UpdateBudgetResponses = { /** * A successful response. */ 200: UpdateBudgetReply; }; export type UpdateBudgetResponse = UpdateBudgetResponses[keyof UpdateBudgetResponses]; export type CannyAuthData = { body: CannyAuthRequest; path?: never; query?: never; url: '/v1/sso/canny'; }; export type CannyAuthErrors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type CannyAuthError = CannyAuthErrors[keyof CannyAuthErrors]; export type CannyAuthResponses = { /** * A successful response. */ 200: CannyAuthReply; }; export type CannyAuthResponse = CannyAuthResponses[keyof CannyAuthResponses]; export type DiscourseAuthData = { body: DiscourseAuthRequest; path?: never; query?: never; url: '/v1/sso/discourse'; }; export type DiscourseAuthErrors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type DiscourseAuthError = DiscourseAuthErrors[keyof DiscourseAuthErrors]; export type DiscourseAuthResponses = { /** * A successful response. */ 200: DiscourseAuthReply; }; export type DiscourseAuthResponse = DiscourseAuthResponses[keyof DiscourseAuthResponses]; export type UnscopeOrganizationTokenData = { body: UnscopeOrganizationTokenRequest; headers?: { /** * Seon Fingerprint */ 'seon-fp'?: string; }; path?: never; query?: never; url: '/v1/unscope_organization_token'; }; export type UnscopeOrganizationTokenErrors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type UnscopeOrganizationTokenError = UnscopeOrganizationTokenErrors[keyof UnscopeOrganizationTokenErrors]; export type UnscopeOrganizationTokenResponses = { /** * A successful response. */ 200: LoginReply; }; export type UnscopeOrganizationTokenResponse = UnscopeOrganizationTokenResponses[keyof UnscopeOrganizationTokenResponses]; export type UpdateUserV22Data = { body: UpdateUserRequestUserUpdateBody; path?: never; query?: { update_mask?: string; }; url: '/v2/account/profile'; }; export type UpdateUserV22Errors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type UpdateUserV22Error = UpdateUserV22Errors[keyof UpdateUserV22Errors]; export type UpdateUserV22Responses = { /** * A successful response. */ 200: UserReply; }; export type UpdateUserV22Response = UpdateUserV22Responses[keyof UpdateUserV22Responses]; export type UpdateUserV2Data = { body: UpdateUserRequestUserUpdateBody; path?: never; query?: { update_mask?: string; }; url: '/v2/account/profile'; }; export type UpdateUserV2Errors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type UpdateUserV2Error = UpdateUserV2Errors[keyof UpdateUserV2Errors]; export type UpdateUserV2Responses = { /** * A successful response. */ 200: UserReply; }; export type UpdateUserV2Response = UpdateUserV2Responses[keyof UpdateUserV2Responses]; export type ListOrganizationMembersData = { body?: never; path?: never; query?: { /** * (Optional) The number of items to return */ limit?: string; /** * (Optional) The offset in the list of item to return */ offset?: string; /** * (Optional) Filter for an organization */ organization_id?: string; /** * (Optional) Filter for an user */ user_id?: string; /** * (Optional) Filter for organization statuses */ organization_statuses?: Array<'WARNING' | 'LOCKED' | 'ACTIVE' | 'DEACTIVATING' | 'DEACTIVATED' | 'DELETING' | 'DELETED'>; }; url: '/v1/organization_members'; }; export type ListOrganizationMembersErrors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type ListOrganizationMembersError = ListOrganizationMembersErrors[keyof ListOrganizationMembersErrors]; export type ListOrganizationMembersResponses = { /** * A successful response. */ 200: ListOrganizationMembersReply; }; export type ListOrganizationMembersResponse = ListOrganizationMembersResponses[keyof ListOrganizationMembersResponses]; export type RemoveOrganizationMemberData = { body?: never; path: { id: string; }; query?: never; url: '/v1/organization_members/{id}'; }; export type RemoveOrganizationMemberErrors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type RemoveOrganizationMemberError = RemoveOrganizationMemberErrors[keyof RemoveOrganizationMemberErrors]; export type RemoveOrganizationMemberResponses = { /** * A successful response. */ 200: RemoveOrganizationMemberReply; }; export type RemoveOrganizationMemberResponse = RemoveOrganizationMemberResponses[keyof RemoveOrganizationMemberResponses]; export type DeleteUserData = { body?: never; path: { /** * The id of the user */ id: string; }; query?: never; url: '/v1/users/{id}'; }; export type DeleteUserErrors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type DeleteUserError = DeleteUserErrors[keyof DeleteUserErrors]; export type DeleteUserResponses = { /** * A successful response. */ 200: DeleteUserReply; }; export type DeleteUserResponse = DeleteUserResponses[keyof DeleteUserResponses]; export type DeleteUserV2Data = { body?: never; path: { /** * The id of the user */ id: string; }; query?: never; url: '/v2/users/{id}'; }; export type DeleteUserV2Errors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type DeleteUserV2Error = DeleteUserV2Errors[keyof DeleteUserV2Errors]; export type DeleteUserV2Responses = { /** * A successful response. */ 200: DeleteUserReply; }; export type DeleteUserV2Response = DeleteUserV2Responses[keyof DeleteUserV2Responses]; export type ListCredentialsData = { body?: never; path?: never; query?: { /** * (Optional) A filter for type */ type?: 'INVALID' | 'USER' | 'ORGANIZATION'; /** * (Optional) A filter for name */ name?: string; /** * (Optional) Filter for an organization */ organization_id?: string; /** * (Optional) Filter for an user */ user_id?: string; /** * (Optional) The number of items to return */ limit?: string; /** * (Optional) The offset in the list of item to return */ offset?: string; }; url: '/v1/credentials'; }; export type ListCredentialsErrors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type ListCredentialsError = ListCredentialsErrors[keyof ListCredentialsErrors]; export type ListCredentialsResponses = { /** * A successful response. */ 200: ListCredentialsReply; }; export type ListCredentialsResponse = ListCredentialsResponses[keyof ListCredentialsResponses]; export type CreateCredentialData = { body: CreateCredential; path?: never; query?: never; url: '/v1/credentials'; }; export type CreateCredentialErrors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type CreateCredentialError = CreateCredentialErrors[keyof CreateCredentialErrors]; export type CreateCredentialResponses = { /** * A successful response. */ 200: CreateCredentialReply; }; export type CreateCredentialResponse = CreateCredentialResponses[keyof CreateCredentialResponses]; export type DeleteCredentialData = { body?: never; path: { id: string; }; query?: never; url: '/v1/credentials/{id}'; }; export type DeleteCredentialErrors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type DeleteCredentialError = DeleteCredentialErrors[keyof DeleteCredentialErrors]; export type DeleteCredentialResponses = { /** * A successful response. */ 200: DeleteCredentialReply; }; export type DeleteCredentialResponse = DeleteCredentialResponses[keyof DeleteCredentialResponses]; export type GetCredentialData = { body?: never; path: { id: string; }; query?: never; url: '/v1/credentials/{id}'; }; export type GetCredentialErrors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type GetCredentialError = GetCredentialErrors[keyof GetCredentialErrors]; export type GetCredentialResponses = { /** * A successful response. */ 200: GetCredentialReply; }; export type GetCredentialResponse = GetCredentialResponses[keyof GetCredentialResponses]; export type UpdateCredential2Data = { body: Credential; path: { id: string; }; query?: { update_mask?: string; }; url: '/v1/credentials/{id}'; }; export type UpdateCredential2Errors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type UpdateCredential2Error = UpdateCredential2Errors[keyof UpdateCredential2Errors]; export type UpdateCredential2Responses = { /** * A successful response. */ 200: UpdateCredentialReply; }; export type UpdateCredential2Response = UpdateCredential2Responses[keyof UpdateCredential2Responses]; export type UpdateCredentialData = { body: Credential; path: { id: string; }; query?: { update_mask?: string; }; url: '/v1/credentials/{id}'; }; export type UpdateCredentialErrors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type UpdateCredentialError = UpdateCredentialErrors[keyof UpdateCredentialErrors]; export type UpdateCredentialResponses = { /** * A successful response. */ 200: UpdateCredentialReply; }; export type UpdateCredentialResponse = UpdateCredentialResponses[keyof UpdateCredentialResponses]; export type ListProjectsData = { body?: never; path?: never; query?: { /** * (Optional) The number of items to return */ limit?: string; /** * (Optional) The offset in the list of item to return */ offset?: string; /** * (Optional) Filter by project name */ name?: string; }; url: '/v1/projects'; }; export type ListProjectsErrors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type ListProjectsError = ListProjectsErrors[keyof ListProjectsErrors]; export type ListProjectsResponses = { /** * A successful response. */ 200: ListProjectsReply; }; export type ListProjectsResponse = ListProjectsResponses[keyof ListProjectsResponses]; export type CreateProjectData = { body: CreateProject; path?: never; query?: never; url: '/v1/projects'; }; export type CreateProjectErrors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type CreateProjectError = CreateProjectErrors[keyof CreateProjectErrors]; export type CreateProjectResponses = { /** * A successful response. */ 200: CreateProjectReply; }; export type CreateProjectResponse = CreateProjectResponses[keyof CreateProjectResponses]; export type DeleteProjectData = { body?: never; path: { id: string; }; query?: never; url: '/v1/projects/{id}'; }; export type DeleteProjectErrors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type DeleteProjectError = DeleteProjectErrors[keyof DeleteProjectErrors]; export type DeleteProjectResponses = { /** * A successful response. */ 200: DeleteProjectReply; }; export type DeleteProjectResponse = DeleteProjectResponses[keyof DeleteProjectResponses]; export type GetProjectData = { body?: never; path: { id: string; }; query?: never; url: '/v1/projects/{id}'; }; export type GetProjectErrors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type GetProjectError = GetProjectErrors[keyof GetProjectErrors]; export type GetProjectResponses = { /** * A successful response. */ 200: GetProjectReply; }; export type GetProjectResponse = GetProjectResponses[keyof GetProjectResponses]; export type UpdateProject2Data = { body: Project; path: { id: string; }; query?: { update_mask?: string; }; url: '/v1/projects/{id}'; }; export type UpdateProject2Errors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type UpdateProject2Error = UpdateProject2Errors[keyof UpdateProject2Errors]; export type UpdateProject2Responses = { /** * A successful response. */ 200: UpdateProjectReply; }; export type UpdateProject2Response = UpdateProject2Responses[keyof UpdateProject2Responses]; export type UpdateProjectData = { body: Project; path: { id: string; }; query?: { update_mask?: string; }; url: '/v1/projects/{id}'; }; export type UpdateProjectErrors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type UpdateProjectError = UpdateProjectErrors[keyof UpdateProjectErrors]; export type UpdateProjectResponses = { /** * A successful response. */ 200: UpdateProjectReply; }; export type UpdateProjectResponse = UpdateProjectResponses[keyof UpdateProjectResponses]; export type GetSubscriptionData = { body?: never; path: { /** * The id of the instance */ id: string; }; query?: never; url: '/v1/subscriptions/{id}'; }; export type GetSubscriptionErrors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type GetSubscriptionError = GetSubscriptionErrors[keyof GetSubscriptionErrors]; export type GetSubscriptionResponses = { /** * A successful response. */ 200: GetSubscriptionReply; }; export type GetSubscriptionResponse = GetSubscriptionResponses[keyof GetSubscriptionResponses]; export type RedeemCouponData = { body: RedeemCouponRequest; path?: never; query?: never; url: '/v1/coupons'; }; export type RedeemCouponErrors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type RedeemCouponError = RedeemCouponErrors[keyof RedeemCouponErrors]; export type RedeemCouponResponses = { /** * A successful response. */ 200: RedeemCouponReply; }; export type RedeemCouponResponse = RedeemCouponResponses[keyof RedeemCouponResponses]; export type CheckCouponData = { body?: never; path: { code: string; }; query?: never; url: '/v1/coupons/{code}'; }; export type CheckCouponErrors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type CheckCouponError = CheckCouponErrors[keyof CheckCouponErrors]; export type CheckCouponResponses = { /** * A successful response. */ 200: CheckCouponReply; }; export type CheckCouponResponse = CheckCouponResponses[keyof CheckCouponResponses]; export type ConfirmOrganizationActionData = { body?: never; path: { id: string; }; query?: never; url: '/v1/organization_confirmations/{id}'; }; export type ConfirmOrganizationActionErrors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type ConfirmOrganizationActionError = ConfirmOrganizationActionErrors[keyof ConfirmOrganizationActionErrors]; export type ConfirmOrganizationActionResponses = { /** * A successful response. */ 200: ConfirmOrganizationActionReply; }; export type ConfirmOrganizationActionResponse = ConfirmOrganizationActionResponses[keyof ConfirmOrganizationActionResponses]; export type LoginData = { body: LoginRequest; headers?: { /** * Seon Fingerprint */ 'seon-fp'?: string; }; path?: never; query?: never; url: '/v1/account/login'; }; export type LoginErrors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type LoginError = LoginErrors[keyof LoginErrors]; export type LoginResponses = { /** * A successful response. */ 200: LoginReply; }; export type LoginResponse = LoginResponses[keyof LoginResponses]; export type LogoutData = { body?: never; path?: never; query?: never; url: '/v1/account/logout'; }; export type LogoutErrors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type LogoutError = LogoutErrors[keyof LogoutErrors]; export type LogoutResponses = { /** * A successful response. */ 200: LogoutReply; }; export type LogoutResponse = LogoutResponses[keyof LogoutResponses]; export type RefreshTokenData = { body?: never; path?: never; query?: never; url: '/v1/account/refresh'; }; export type RefreshTokenErrors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type RefreshTokenError = RefreshTokenErrors[keyof RefreshTokenErrors]; export type RefreshTokenResponses = { /** * A successful response. */ 200: LoginReply; }; export type RefreshTokenResponse = RefreshTokenResponses[keyof RefreshTokenResponses]; export type NewSessionData = { body?: never; path?: never; query?: never; url: '/v1/account/session'; }; export type NewSessionErrors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type NewSessionError = NewSessionErrors[keyof NewSessionErrors]; export type NewSessionResponses = { /** * A successful response. */ 200: LoginReply; }; export type NewSessionResponse = NewSessionResponses[keyof NewSessionResponses]; export type ListOrganizationInvitationsData = { body?: never; path?: never; query?: { /** * (Optional) The number of items to return */ limit?: string; /** * (Optional) The offset in the list of item to return */ offset?: string; /** * (Optional) Filter on organization invitation statuses */ statuses?: Array<'INVALID' | 'PENDING' | 'ACCEPTED' | 'REFUSED' | 'EXPIRED'>; /** * (Optional) Filter on invitee ID. Will match both invitations sent to * that user_id and invitations sent to the email of that user_id. * The only valid value is the requester's user_id */ user_id?: string; }; url: '/v1/organization_invitations'; }; export type ListOrganizationInvitationsErrors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type ListOrganizationInvitationsError = ListOrganizationInvitationsErrors[keyof ListOrganizationInvitationsErrors]; export type ListOrganizationInvitationsResponses = { /** * A successful response. */ 200: ListOrganizationInvitationsReply; }; export type ListOrganizationInvitationsResponse = ListOrganizationInvitationsResponses[keyof ListOrganizationInvitationsResponses]; export type CreateOrganizationInvitationData = { body: CreateOrganizationInvitationRequest; path?: never; query?: never; url: '/v1/organization_invitations'; }; export type CreateOrganizationInvitationErrors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type CreateOrganizationInvitationError = CreateOrganizationInvitationErrors[keyof CreateOrganizationInvitationErrors]; export type CreateOrganizationInvitationResponses = { /** * A successful response. */ 200: CreateOrganizationInvitationReply; }; export type CreateOrganizationInvitationResponse = CreateOrganizationInvitationResponses[keyof CreateOrganizationInvitationResponses]; export type DeleteOrganizationInvitationData = { body?: never; path: { /** * The id of the organization invitation to delete */ id: string; }; query?: never; url: '/v1/organization_invitations/{id}'; }; export type DeleteOrganizationInvitationErrors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type DeleteOrganizationInvitationError = DeleteOrganizationInvitationErrors[keyof DeleteOrganizationInvitationErrors]; export type DeleteOrganizationInvitationResponses = { /** * A successful response. */ 200: DeleteOrganizationInvitationReply; }; export type DeleteOrganizationInvitationResponse = DeleteOrganizationInvitationResponses[keyof DeleteOrganizationInvitationResponses]; export type GetOrganizationInvitationData = { body?: never; path: { /** * The id of the invitation to get */ id: string; }; query?: never; url: '/v1/organization_invitations/{id}'; }; export type GetOrganizationInvitationErrors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type GetOrganizationInvitationError = GetOrganizationInvitationErrors[keyof GetOrganizationInvitationErrors]; export type GetOrganizationInvitationResponses = { /** * A successful response. */ 200: GetOrganizationInvitationReply; }; export type GetOrganizationInvitationResponse = GetOrganizationInvitationResponses[keyof GetOrganizationInvitationResponses]; export type ResendOrganizationInvitationData = { body: { [key: string]: unknown; }; path: { /** * The id of the organization invitation to resend */ id: string; }; query?: never; url: '/v1/organization_invitations/{id}/resend'; }; export type ResendOrganizationInvitationErrors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type ResendOrganizationInvitationError = ResendOrganizationInvitationErrors[keyof ResendOrganizationInvitationErrors]; export type ResendOrganizationInvitationResponses = { /** * A successful response. */ 200: ResendOrganizationInvitationReply; }; export type ResendOrganizationInvitationResponse = ResendOrganizationInvitationResponses[keyof ResendOrganizationInvitationResponses]; export type ListPaymentMethodsData = { body?: never; path?: never; query?: { /** * (Optional) The number of items to return */ limit?: string; /** * (Optional) The offset in the list of item to return */ offset?: string; /** * (Optional) Filter on payment method statuses */ statuses?: Array<'INVALID' | 'CREATED' | 'AUTHORIZED' | 'DECLINED' | 'CANCELED' | 'EXPIRED' | 'UNCHECKED'>; }; url: '/v1/payment_methods'; }; export type ListPaymentMethodsErrors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type ListPaymentMethodsError = ListPaymentMethodsErrors[keyof ListPaymentMethodsErrors]; export type ListPaymentMethodsResponses = { /** * A successful response. */ 200: ListPaymentMethodsReply; }; export type ListPaymentMethodsResponse = ListPaymentMethodsResponses[keyof ListPaymentMethodsResponses]; export type CreatePaymentAuthorizationData = { body: CreatePaymentAuthorizationRequest; path?: never; query?: never; url: '/v1/payment_methods'; }; export type CreatePaymentAuthorizationErrors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type CreatePaymentAuthorizationError = CreatePaymentAuthorizationErrors[keyof CreatePaymentAuthorizationErrors]; export type CreatePaymentAuthorizationResponses = { /** * A successful response. */ 200: CreatePaymentAuthorizationReply; }; export type CreatePaymentAuthorizationResponse = CreatePaymentAuthorizationResponses[keyof CreatePaymentAuthorizationResponses]; export type DeletePaymentMethodData = { body?: never; path: { id: string; }; query?: never; url: '/v1/payment_methods/{id}'; }; export type DeletePaymentMethodErrors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type DeletePaymentMethodError = DeletePaymentMethodErrors[keyof DeletePaymentMethodErrors]; export type DeletePaymentMethodResponses = { /** * A successful response. */ 200: DeletePaymentMethodReply; }; export type DeletePaymentMethodResponse = DeletePaymentMethodResponses[keyof DeletePaymentMethodResponses]; export type GetPaymentMethodData = { body?: never; path: { id: string; }; query?: never; url: '/v1/payment_methods/{id}'; }; export type GetPaymentMethodErrors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type GetPaymentMethodError = GetPaymentMethodErrors[keyof GetPaymentMethodErrors]; export type GetPaymentMethodResponses = { /** * A successful response. */ 200: GetPaymentMethodReply; }; export type GetPaymentMethodResponse = GetPaymentMethodResponses[keyof GetPaymentMethodResponses]; export type ConfirmPaymentAuthorizationData = { body: { [key: string]: unknown; }; path: { id: string; }; query?: never; url: '/v1/payment_methods/{id}/confirm'; }; export type ConfirmPaymentAuthorizationErrors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type ConfirmPaymentAuthorizationError = ConfirmPaymentAuthorizationErrors[keyof ConfirmPaymentAuthorizationErrors]; export type ConfirmPaymentAuthorizationResponses = { /** * A successful response. */ 200: ConfirmPaymentAuthorizationReply; }; export type ConfirmPaymentAuthorizationResponse = ConfirmPaymentAuthorizationResponses[keyof ConfirmPaymentAuthorizationResponses]; export type GetIntercomProfileData = { body?: never; path?: never; query?: never; url: '/v1/intercom/profile'; }; export type GetIntercomProfileErrors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type GetIntercomProfileError = GetIntercomProfileErrors[keyof GetIntercomProfileErrors]; export type GetIntercomProfileResponses = { /** * A successful response. */ 200: GetIntercomProfileReply; }; export type GetIntercomProfileResponse = GetIntercomProfileResponses[keyof GetIntercomProfileResponses]; export type GetQuotasData = { body?: never; path: { organization_id: string; }; query?: never; url: '/v1/organizations/{organization_id}/quotas'; }; export type GetQuotasErrors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type GetQuotasError = GetQuotasErrors[keyof GetQuotasErrors]; export type GetQuotasResponses = { /** * A successful response. */ 200: GetQuotasReply; }; export type GetQuotasResponse = GetQuotasResponses[keyof GetQuotasResponses]; export type GetOrganizationSummaryData = { body?: never; path: { /** * Organization ID */ organization_id: string; }; query?: never; url: '/v1/organizations/{organization_id}/summary'; }; export type GetOrganizationSummaryErrors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type GetOrganizationSummaryError = GetOrganizationSummaryErrors[keyof GetOrganizationSummaryErrors]; export type GetOrganizationSummaryResponses = { /** * A successful response. */ 200: GetOrganizationSummaryReply; }; export type GetOrganizationSummaryResponse = GetOrganizationSummaryResponses[keyof GetOrganizationSummaryResponses]; export type ListActivitiesData = { body?: never; path?: never; query?: { limit?: string; offset?: string; /** * (Optional) Filter on object type */ types?: Array; }; url: '/v1/activities'; }; export type ListActivitiesErrors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type ListActivitiesError = ListActivitiesErrors[keyof ListActivitiesErrors]; export type ListActivitiesResponses = { /** * A successful response. */ 200: ActivityList; }; export type ListActivitiesResponse = ListActivitiesResponses[keyof ListActivitiesResponses]; export type ListNotificationsData = { body?: never; path?: never; query?: { limit?: string; offset?: string; mark_read?: string; mark_seen?: string; unread?: string; unseen?: string; }; url: '/v1/notifications'; }; export type ListNotificationsErrors = { /** * Validation error */ 400: ErrorWithFields; /** * Returned when the token is not valid. */ 401: _Error; /** * Returned when the user does not have permission to access the resource. */ 403: _Error; /** * Returned when the resource does not exist. */ 404: _Error; /** * Returned in case of server error. */ 500: _Error; /** * Service is unavailable. */ 503: _Error; /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type ListNotificationsError = ListNotificationsErrors[keyof ListNotificationsErrors]; export type ListNotificationsResponses = { /** * A successful response. */ 200: NotificationList; }; export type ListNotificationsResponse = ListNotificationsResponses[keyof ListNotificationsResponses]; export type ListRegionsData = { body?: never; path?: never; query?: { /** * (Optional) The number of items to return */ limit?: string; /** * (Optional) The offset in the list of item to return */ offset?: string; /** * (Optional) A filter for regions */ id?: string; }; url: '/v1/catalog/regions'; }; export type ListRegionsErrors = { /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type ListRegionsError = ListRegionsErrors[keyof ListRegionsErrors]; export type ListRegionsResponses = { /** * A successful response. */ 200: ListRegionsReply; }; export type ListRegionsResponse = ListRegionsResponses[keyof ListRegionsResponses]; export type GetRegionData = { body?: never; path: { /** * The name of the region */ id: string; }; query?: never; url: '/v1/catalog/regions/{id}'; }; export type GetRegionErrors = { /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type GetRegionError = GetRegionErrors[keyof GetRegionErrors]; export type GetRegionResponses = { /** * A successful response. */ 200: GetRegionReply; }; export type GetRegionResponse = GetRegionResponses[keyof GetRegionResponses]; export type ListDatacentersData = { body?: never; path?: never; query?: never; url: '/v1/catalog/datacenters'; }; export type ListDatacentersErrors = { /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type ListDatacentersError = ListDatacentersErrors[keyof ListDatacentersErrors]; export type ListDatacentersResponses = { /** * A successful response. */ 200: ListDatacentersReply; }; export type ListDatacentersResponse = ListDatacentersResponses[keyof ListDatacentersResponses]; export type ListUsageData = { body?: never; path?: never; query?: { region?: string; }; url: '/v1/catalog/usage'; }; export type ListUsageErrors = { /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type ListUsageError = ListUsageErrors[keyof ListUsageErrors]; export type ListUsageResponses = { /** * A successful response. */ 200: ListUsageReply; }; export type ListUsageResponse = ListUsageResponses[keyof ListUsageResponses]; export type ListCatalogInstancesData = { body?: never; path?: never; query?: { /** * (Optional) The number of items to return */ limit?: string; /** * (Optional) The offset in the list of item to return */ offset?: string; /** * (Optional) A filter for instances */ id?: string; }; url: '/v1/catalog/instances'; }; export type ListCatalogInstancesErrors = { /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type ListCatalogInstancesError = ListCatalogInstancesErrors[keyof ListCatalogInstancesErrors]; export type ListCatalogInstancesResponses = { /** * A successful response. */ 200: ListCatalogInstancesReply; }; export type ListCatalogInstancesResponse = ListCatalogInstancesResponses[keyof ListCatalogInstancesResponses]; export type GetCatalogInstanceData = { body?: never; path: { /** * The name of the instance */ id: string; }; query?: never; url: '/v1/catalog/instances/{id}'; }; export type GetCatalogInstanceErrors = { /** * An unexpected error response. */ default: GoogleRpcStatus; }; export type GetCatalogInstanceError = GetCatalogInstanceErrors[keyof GetCatalogInstanceErrors]; export type GetCatalogInstanceResponses = { /** * A successful response. */ 200: GetCatalogInstanceReply; }; export type GetCatalogInstanceResponse = GetCatalogInstanceResponses[keyof GetCatalogInstanceResponses];