From db51ced688eba670bd1592f1a92ecbe2894f9dba Mon Sep 17 00:00:00 2001 From: Kevin Wang Date: Fri, 30 Jun 2023 13:12:02 -0400 Subject: [PATCH 1/9] fix: create app instead of project on `pspace init` --- api/apps.ts | 7 + api/openapi.ts | 8055 +++++++++++++++++++++++++++++++----------- commands/init/mod.ts | 28 +- 3 files changed, 5939 insertions(+), 2151 deletions(-) create mode 100644 api/apps.ts diff --git a/api/apps.ts b/api/apps.ts new file mode 100644 index 0000000..87a7224 --- /dev/null +++ b/api/apps.ts @@ -0,0 +1,7 @@ +import { client } from "./client.ts"; + +export const apps = { + create: client("/apps").post, + delete: client("/apps/{id}").delete, + get: client("/apps/{id}").get, +}; diff --git a/api/openapi.ts b/api/openapi.ts index 80fe81e..58e5910 100644 --- a/api/openapi.ts +++ b/api/openapi.ts @@ -9,304 +9,309 @@ export interface paths { * Create an app * @description Create an app. */ - post: operations["mutation.apps.create"]; + post: operations["apps-create"]; }; "/apps/{id}": { + /** + * Get an app + * @description Fetches an app. + */ + get: operations["apps-get"]; /** * Delete an app * @description Deletes an app. This will delete all resources associated with the app. */ - delete: operations["mutation.apps.delete"]; + delete: operations["apps-delete"]; }; "/apps/{id}/disable": { /** * Disable an app * @description Disables an app that is currently enabled. This will stop the app's deployments and make it unavailable to users. */ - patch: operations["mutation.apps.disable"]; + patch: operations["apps-disable"]; }; "/apps/{id}/enable": { /** * Enable an app * @description Enables an app that has been previously disabled. This will start the app and make it available to users. */ - patch: operations["mutation.apps.enable"]; + patch: operations["apps-enable"]; }; "/apps/{id}/name": { /** * Update an app's name * @description Change the name of an app */ - patch: operations["mutation.apps.updateName"]; + patch: operations["apps-updateName"]; }; "/auth/session": { /** * Get the current session * @description Get the current session. If a user is not logged in, this will be null. Otherwise, it will contain the current team and user. */ - get: operations["query.auth.session"]; + get: operations["auth-session"]; }; "/autoscaling-groups": { /** * List autoscaling groups * @description List autoscaling groups and filter by machine type. */ - get: operations["query.autoscalingGroups.list"]; + get: operations["autoscalingGroups-list"]; /** * Create an autoscaling group * @description Create an autoscaling group. */ - post: operations["mutation.autoscalingGroups.create"]; + post: operations["autoscalingGroups-create"]; }; "/autoscaling-groups/{id}": { /** * Get an autoscaling group * @description Fetches a single autoscaling group by id. */ - get: operations["query.autoscalingGroups.get"]; + get: operations["autoscalingGroups-get"]; /** * Update an autoscaling group * @description Update an autoscaling group. */ - put: operations["mutation.autoscalingGroups.update"]; + put: operations["autoscalingGroups-update"]; /** * Delete an autoscaling group * @description Delete an autoscaling group. */ - delete: operations["mutation.autoscalingGroups.delete"]; + delete: operations["autoscalingGroups-delete"]; }; "/billing/account-standing": { /** * Get account standing * @description Check whether the current team account is in good standing. If not, send back a message explaining why. */ - get: operations["query.billingAccountStanding.get"]; + get: operations["billingAccountStanding-get"]; }; "/container-registries": { /** * List container registries * @description Lists container registries for the current team. */ - get: operations["query.containerRegistries.list"]; + get: operations["containerRegistries-list"]; /** * Create a container registry * @description Creates a container registry for the current team. */ - post: operations["mutation.containerRegistries.create"]; + post: operations["containerRegistries-create"]; }; "/container-registries/{id}": { /** * List container registries * @description Lists container registries for the current team. */ - get: operations["query.containerRegistries.get"]; + get: operations["containerRegistries-get"]; /** * Update a container registry * @description Updates a container registry for the current team. */ - put: operations["mutation.containerRegistries.update"]; + put: operations["containerRegistries-update"]; /** * Delete a container registry * @description Deletes a container registry for the current team. */ - delete: operations["mutation.containerRegistries.delete"]; + delete: operations["containerRegistries-delete"]; }; "/container-registries/{id}/test-connection": { /** * Test a container registry connection * @description Validate that a container registry can be connected to using the provided credentials. */ - get: operations["mutation.containerRegistries.testConnection"]; + get: operations["containerRegistries-testConnection"]; }; "/deployments": { /** * List deployments * @description Fetches a list of deployments for a logged in user. */ - get: operations["query.deployments.list"]; + get: operations["deployments-list"]; /** * Upsert a deployment * @description Submit a new deployment configuration. If a deployment does not exist, one is created. Otherwise, a deployment is updated with new configuration. */ - post: operations["mutation.deployments.upsert"]; + post: operations["deployments-upsert"]; }; "/deployments/{id}": { /** * Get a deployment * @description Fetches a single deployment by deployment ID. */ - get: operations["query.deployments.get"]; + get: operations["deployments-get"]; /** * Delete a deployment * @description Deletes a deployment by deployment ID. */ - delete: operations["mutation.deployments.delete"]; + delete: operations["deployments-delete"]; }; "/deployments/{id}/history": { /** * List app history * @description Lists history for a given app. */ - get: operations["query.deploymentHistory.list"]; + get: operations["deploymentHistory-list"]; }; "/deployments/{id}/logs": { /** * List app logs * @description Lists logs for a given app. */ - get: operations["query.deploymentLogs.list"]; + get: operations["deploymentLogs-list"]; }; "/deployments/{id}/metrics": { /** * List app metrics * @description Lists metrics for a given app. */ - get: operations["query.deploymentMetrics.get"]; + get: operations["deploymentMetrics-get"]; }; "/deployments/{id}/runs": { /** * List deployment runs * @description Lists the active deployment runs for a deployment. */ - get: operations["query.deploymentRuns.get"]; + get: operations["deploymentRuns-get"]; }; "/health": { /** * Health check * @description Check if the API is healthy. */ - get: operations["query.health"]; + get: operations["health"]; }; "/machine-events": { /** * List machine events * @description Fetches a list of machine events. */ - get: operations["query.machineEvents.list"]; + get: operations["machineEvents-list"]; }; "/machine-events/{id}": { /** * Get a machine event * @description Fetches a single machine event by ID. */ - get: operations["query.machineEvents.get"]; + get: operations["machineEvents-get"]; }; "/machines": { /** * List machines * @description Fetches a list of machines. */ - get: operations["query.machines.list"]; + get: operations["machines-list"]; /** * Create a machine * @description Creates a new machine. */ - post: operations["mutation.machines.create"]; + post: operations["machines-create"]; }; "/machines/{id}": { /** * Get a machine * @description Fetches a single machine by ID. */ - get: operations["query.machines.get"]; + get: operations["machines-get"]; /** * Update a machine * @description Updates a machine. */ - put: operations["mutation.machines.update"]; + put: operations["machines-update"]; /** * Delete a machine * @description Deletes a single machine by ID. */ - delete: operations["mutation.machines.delete"]; + delete: operations["machines-delete"]; }; "/machines/{id}/accessors": { /** * List accessors * @description Lists the team members that can explicitly access a machine. */ - get: operations["query.machines.listAccessors"]; + get: operations["machines-listAccessors"]; /** * Add an accessor * @description Adds an accessor to a machine. */ - post: operations["mutation.machines.addAccessor"]; + post: operations["machines-addAccessor"]; }; "/machines/{id}/accessors/{userId}": { /** * Get an accessor * @description Get an accessor for a machine. */ - get: operations["query.machines.getAccessor"]; + get: operations["machines-getAccessor"]; /** * Delete an accessor * @description Deletes an accessor from a machine. */ - delete: operations["mutation.machines.removeAccessor"]; + delete: operations["machines-removeAccessor"]; }; "/machines/{id}/desktop": { /** * Get desktop settings * @description Gets the machine settings that are used to configure desktop streaming. */ - get: operations["query.machines.getDesktop"]; + get: operations["machines-getDesktop"]; }; "/machines/{id}/restart": { /** * Restart a machine * @description Restarts a machine. */ - patch: operations["mutation.machines.restart"]; + patch: operations["machines-restart"]; }; "/machines/{id}/start": { /** * Start a machine * @description Starts a machine. */ - patch: operations["mutation.machines.start"]; + patch: operations["machines-start"]; }; "/machines/{id}/stop": { /** * Stop a machine * @description Stops a machine. */ - patch: operations["mutation.machines.stop"]; + patch: operations["machines-stop"]; }; "/notebooks": { /** * List notebooks * @description Lists the notebooks you have access to in the current team */ - get: operations["query.notebooks.list"]; + get: operations["notebooks-list"]; }; "/private-networks": { /** * List private networks * @description Fetches a list of private networks. */ - get: operations["query.privateNetworks.list"]; + get: operations["privateNetworks-list"]; /** * Create a private network * @description Creates a new private network. */ - post: operations["mutation.privateNetworks.create"]; + post: operations["privateNetworks-create"]; }; "/private-networks/{id}": { /** * Get a private network * @description Fetches a single private network by ID. */ - get: operations["query.privateNetworks.get"]; + get: operations["privateNetworks-get"]; /** * Update a private network * @description Updates a single private network by ID. */ - put: operations["mutation.privateNetworks.update"]; + put: operations["privateNetworks-update"]; /** * Delete a private network * @description Deletes a single private network by ID. */ - delete: operations["mutation.privateNetworks.delete"]; + delete: operations["privateNetworks-delete"]; }; "/projects": { /** @@ -314,324 +319,371 @@ export interface paths { * @description * List projects. This endpoint supports pagination and sorting. */ - get: operations["query.projects.list"]; + get: operations["projects-list"]; /** * Create a project * @description Create a project */ - post: operations["mutation.projects.create"]; + post: operations["projects-create"]; }; "/projects/{id}": { /** * Get a project by its ID * @description Get a project by its ID. */ - get: operations["query.projects.get"]; + get: operations["projects-get"]; /** * Update a project * @description Update a project */ - put: operations["mutation.projects.update"]; + put: operations["projects-update"]; /** * Delete a project * @description Delete a project */ - delete: operations["mutation.projects.delete"]; + delete: operations["projects-delete"]; }; "/projects/{id}/activity": { /** * List a project's activity * @description Fetches a list of activity items for a given project. */ - get: operations["query.projectActivity.list"]; + get: operations["projectActivity-list"]; + }; + "/projects/{id}/apps": { + /** + * List a project's apps + * @description Fetches a list of apps for a project. + */ + get: operations["projectApps-list"]; }; "/projects/{id}/collaborators": { /** * List a project's collaborators * @description Fetches a list of collaborators for a project. */ - get: operations["query.projectCollaborators.list"]; + get: operations["projectCollaborators-list"]; /** * Create a project collaborator * @description Adds a new collaborator to a project. */ - post: operations["mutation.projectCollaborators.create"]; + post: operations["projectCollaborators-create"]; }; "/projects/{id}/collaborators/{userId}": { /** * Delete a project collaborator * @description Removes a collaborator from a project. */ - delete: operations["mutation.projectCollaborators.delete"]; + delete: operations["projectCollaborators-delete"]; }; "/projects/{id}/deployments": { /** * List a project's deployments * @description Fetches a list of deployments for a project. */ - get: operations["query.projectsDeployments.list"]; + get: operations["projectDeployments-list"]; + }; + "/projects/{id}/models": { + /** + * List a project's models + * @description Fetches a list of models for a project. + */ + get: operations["projectModels-list"]; + }; + "/projects/{id}/models/{modelId}": { + /** + * Add a model to a project + * @description Adds a model to a project. + */ + post: operations["projectModels-add"]; + /** + * Remove a model from project + * @description Remove a model from project. + */ + delete: operations["projectModels-remove"]; + }; + "/projects/{id}/notebook/{notebookId}": { + /** + * Remove a notebook from a project + * @description Remove a notebook from a project. + */ + delete: operations["projectNotebooks-remove"]; + }; + "/projects/{id}/notebooks": { + /** + * List a project's notebooks + * @description Fetches a list of notebooks for a project. + */ + get: operations["projectNotebooks-list"]; + }; + "/projects/{id}/notebooks/{notebookId}": { + /** + * Add a notebook to a project + * @description Adds a notebook to a project. + */ + post: operations["projectNotebooks-add"]; }; "/projects/{id}/secrets": { /** * List a project's secrets * @description Fetches a list of secrets for a project. */ - get: operations["query.projectSecrets.list"]; + get: operations["projectSecrets-list"]; /** * Create a project secret * @description Creates a new secret for a project. */ - post: operations["mutation.projectSecrets.create"]; + post: operations["projectSecrets-create"]; }; "/projects/{id}/secrets/{name}": { /** * Get a project secret * @description Fetches a secret for a project. */ - get: operations["query.projectSecrets.getProjectSecret"]; + get: operations["projectSecrets-getProjectSecret"]; /** * Delete a project secret * @description Deletes a secret for a project. */ - delete: operations["mutation.projectSecrets.delete"]; + delete: operations["projectSecrets-delete"]; /** * Update a project secret * @description Update the value of a secret for a project. */ - patch: operations["mutation.projectSecrets.update"]; + patch: operations["projectSecrets-update"]; }; "/public-ips": { /** * List public IPs * @description Fetches a list of public IPs. */ - get: operations["query.publicIps.list"]; + get: operations["publicIps-list"]; /** * Claim a public IP * @description Claims a public IP. */ - post: operations["mutation.publicIps.claim"]; + post: operations["publicIps-claim"]; }; "/public-ips/{ip}": { /** * Assign a public IP * @description Assigns a public IP to a machine. */ - put: operations["mutation.publicIps.assign"]; + put: operations["publicIps-assign"]; /** * Release a public IP * @description Releases a public IP. */ - delete: operations["mutation.publicIps.release"]; + delete: operations["publicIps-release"]; }; "/shared-drives": { /** * List shared drives * @description Fetches a list of shared drives. */ - get: operations["query.sharedDrives.list"]; + get: operations["sharedDrives-list"]; /** * Create a shared drive * @description Creates a new shared drive for use in a private network. */ - post: operations["mutation.sharedDrives.create"]; + post: operations["sharedDrives-create"]; }; "/shared-drives/{id}": { /** * Get a shared drive * @description Fetches a single shared drive by ID. */ - get: operations["query.sharedDrives.get"]; + get: operations["sharedDrives-get"]; /** * Update a shared drive * @description Updates a single shared drive by ID. */ - put: operations["mutation.sharedDrives.update"]; + put: operations["sharedDrives-update"]; /** * Delete a shared drive * @description Deletes a single shared drive by ID. */ - delete: operations["mutation.sharedDrives.delete"]; + delete: operations["sharedDrives-delete"]; }; "/snapshots": { /** * List snapshots * @description List snapshots and filter by machine. */ - get: operations["query.snapshots.list"]; + get: operations["snapshots-list"]; /** * Create snapshot * @description Create a snapshot for a machine. */ - post: operations["mutation.snapshots.create"]; + post: operations["snapshots-create"]; }; "/snapshots/{id}": { /** * Get a snapshot * @description Fetches a single snapshot by ID. */ - get: operations["query.snapshots.get"]; + get: operations["snapshots-get"]; /** * Update a snapshot * @description Updates a single snapshot by ID. */ - put: operations["mutation.snapshots.update"]; + put: operations["snapshots-update"]; /** * Delete snapshot * @description Delete a snapshot for a machine. */ - delete: operations["mutation.snapshots.delete"]; + delete: operations["snapshots-delete"]; }; "/snapshots/{id}/restore": { /** * Restore snapshot * @description Restore a snapshot for a machine. */ - post: operations["mutation.snapshots.restore"]; + post: operations["snapshots-restore"]; }; "/startup-scripts": { /** * List startup scripts * @description Fetches a list of startup scripts. */ - get: operations["query.startupScripts.list"]; + get: operations["startupScripts-list"]; /** * Create startup script * @description Create a startup script. */ - post: operations["mutation.startupScripts.create"]; + post: operations["startupScripts-create"]; }; "/startup-scripts/{id}": { /** * Get a startup script * @description Fetches a single startup script by ID. */ - get: operations["query.startupScripts.get"]; + get: operations["startupScripts-get"]; /** * Update startup script * @description Update a startup script. */ - put: operations["mutation.startupScripts.update"]; + put: operations["startupScripts-update"]; /** * Delete startup script * @description Delete a startup script. */ - delete: operations["mutation.startupScripts.delete"]; + delete: operations["startupScripts-delete"]; }; "/startup-scripts/{id}/assign": { /** * Assign startup script to machine * @description Assign a startup script to a machine. */ - post: operations["mutation.startupScripts.assign"]; + post: operations["startupScripts-assign"]; }; "/startup-scripts/{id}/unassign": { /** * Unassign startup script from machine * @description Unassign a startup script from a machine. */ - post: operations["mutation.startupScripts.unassign"]; + post: operations["startupScripts-unassign"]; }; "/storage": { /** * List storage providers * @description List storage providers */ - get: operations["query.storageProviders.list"]; + get: operations["storageProviders-list"]; /** * Create a storage provider * @description Create a storage provider */ - post: operations["mutation.storageProviders.create"]; + post: operations["storageProviders-create"]; }; "/storage/{id}": { /** * Get a storage provider * @description Get a storage provider */ - get: operations["query.storageProviders.get"]; + get: operations["storageProviders-get"]; /** * Update a storage provider * @description Update a storage provider */ - put: operations["mutation.storageProviders.update"]; + put: operations["storageProviders-update"]; /** * Delete a storage provider * @description Delete a storage provider */ - delete: operations["mutation.storageProviders.delete"]; + delete: operations["storageProviders-delete"]; }; "/storage/utilization": { /** * Get storage utilization * @description Get a breakdown of how storage is being used by your team */ - get: operations["query.storageUtilization.getPublic"]; + get: operations["storageUtilization-getPublic"]; }; "/teams/{id}/secrets": { /** * List a team's secrets * @description Fetches a list of secrets for a team. */ - get: operations["query.teamSecrets.list"]; + get: operations["teamSecrets-list"]; /** * Create a team secret * @description Creates a new secret for a team. */ - post: operations["mutation.teamSecrets.create"]; + post: operations["teamSecrets-create"]; }; "/teams/{id}/secrets/{name}": { /** * Get a team secret * @description Fetches a secret for a team. */ - get: operations["query.teamSecrets.get"]; + get: operations["teamSecrets-get"]; /** * Delete a team secret * @description Deletes a secret for a team. */ - delete: operations["mutation.teamSecrets.delete"]; + delete: operations["teamSecrets-delete"]; /** * Update a team secret * @description Update the value of a secret for a team. */ - patch: operations["mutation.teamSecrets.update"]; + patch: operations["teamSecrets-update"]; }; "/templates": { /** * List templates * @description Fetches a list of templates. */ - get: operations["query.templates.list"]; + get: operations["templates-list"]; /** * Create template * @description Create a template for a machine. */ - post: operations["mutation.templates.create"]; + post: operations["templates-create"]; }; "/templates/{id}": { /** * Get a template * @description Fetches a single template by ID. */ - get: operations["query.templates.get"]; + get: operations["templates-get"]; /** * Update a template * @description Updates a single template by ID. */ - put: operations["mutation.templates.update"]; + put: operations["templates-update"]; /** * Delete template * @description Delete a template. */ - delete: operations["mutation.templates.delete"]; + delete: operations["templates-delete"]; }; "/workflows/{id}/runs/{runId}/logs": { /** * List workflow run logs * @description Lists logs for a given workflow run. */ - get: operations["query.workflowRunLogs.list"]; + get: operations["workflowRunLogs-list"]; }; } @@ -666,188 +718,348 @@ export interface operations { * Create an app * @description Create an app. */ - "mutation.apps.create": { + "apps-create": { readonly requestBody: { readonly content: { readonly "application/json": { /** @description The new deployment configuration. */ readonly config: - | ({ - readonly apiVersion: "v0alpha0" | "latest"; - readonly command?: readonly (string)[]; - readonly containerRegistry?: string; - /** @default true */ - readonly enabled?: boolean; - readonly env?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly healthChecks?: { - readonly liveness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; + | ( + | ({ + /** @enum {string} */ + readonly apiVersion: "v0alpha0"; + readonly command?: readonly (string)[]; + readonly containerRegistry?: string; + /** @default true */ + readonly enabled?: boolean; + readonly env?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly healthChecks?: { + readonly liveness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - readonly readiness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; + readonly readiness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - readonly startup?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; + readonly startup?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; }; - }; - readonly image: string; - readonly models?: readonly ({ - readonly id: string; - readonly path?: string; - })[]; - readonly name: string; - /** @default 80 */ - readonly port?: number; - readonly region?: string; - readonly repositories?: { - readonly dataset: string; - readonly mountPath?: string; - readonly repositories: readonly ({ - readonly name: string; - readonly password?: string; - readonly ref?: string; - readonly url: string; - readonly username?: string; + readonly image: string; + readonly models?: readonly ({ + readonly id: string; + readonly path?: string; })[]; - }; - readonly resources: { - readonly autoscaling?: { - readonly enabled?: boolean; - readonly maxReplicas: number; - readonly metrics: readonly ( - | { - /** @enum {string} */ - readonly metric: "requestDuration"; - /** @enum {string} */ - readonly summary: "average"; - readonly value: number; - } - | ({ - /** @enum {string} */ - readonly metric: "cpu" | "memory"; - /** @enum {string} */ - readonly summary: "average"; - readonly value: number; - }) - )[]; - }; - readonly instanceType: string; - /** @default 1 */ - readonly replicas?: number; - }; - }) - | ({ - /** @enum {string} */ - readonly apiVersion: "v0alpha1"; - readonly command?: readonly (string)[]; - readonly containerRegistry?: string; - /** @default true */ - readonly enabled?: boolean; - readonly env?: readonly ({ readonly name: string; - readonly value: string; - })[]; - readonly healthchecks?: { - readonly liveness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ + /** @default 80 */ + readonly port?: number; + readonly region?: string; + readonly repositories?: { + readonly dataset: string; + readonly mountPath?: string; + readonly repositories: readonly ({ readonly name: string; - readonly value: string; + readonly password?: string; + readonly ref?: string; + readonly url: string; + readonly username?: string; })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; }; - readonly readiness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; + readonly resources: { + readonly autoscaling?: { + readonly enabled?: boolean; + readonly maxReplicas: number; + readonly metrics: readonly ( + | { + /** @enum {string} */ + readonly metric: "requestDuration"; + /** @enum {string} */ + readonly summary: "average"; + readonly value: number; + } + | ({ + /** @enum {string} */ + readonly metric: "cpu" | "memory"; + /** @enum {string} */ + readonly summary: "average"; + readonly value: number; + }) + )[]; + }; + readonly instanceType: string; + /** @default 1 */ + readonly replicas?: number; }; - readonly startup?: { + }) + | ({ + /** @enum {string} */ + readonly apiVersion: "v0alpha1"; + readonly command?: readonly (string)[]; + readonly containerRegistry?: string; + /** @default true */ + readonly enabled?: boolean; + readonly env?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly healthchecks?: { + readonly liveness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly readiness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly startup?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + }; + readonly healthChecks?: { + readonly liveness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly readiness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly startup?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + }; + readonly image: string; + readonly integrations?: readonly ({ + readonly id: string; + readonly name: string; + /** @default /opt/models */ + readonly path?: string; + /** @enum {string} */ + readonly type: "model"; + } | { + readonly accessKeyId: string; + readonly endpoint?: string; + readonly name: string; + readonly path?: string; + readonly region?: string; + readonly secretAccessKey: string; + /** @enum {string} */ + readonly type: "s3"; + readonly url: string; + } | { + readonly name: string; + /** @enum {string} */ + readonly type: "volume"; + } | { + readonly name: string; + readonly path?: string; + /** @enum {string} */ + readonly type: "git-lfs"; + /** Format: uri */ + readonly url: string; + })[]; + readonly name: string; + readonly region?: string; + readonly resources: { + readonly autoscaling?: { + readonly enabled?: boolean; + readonly maxReplicas: number; + readonly metrics: readonly ( + | { + /** @enum {string} */ + readonly metric: "requestDuration"; + /** @enum {string} */ + readonly summary: "average"; + readonly value: number; + } + | ({ + /** @enum {string} */ + readonly metric: "cpu" | "memory"; + /** @enum {string} */ + readonly summary: "average"; + readonly value: number; + }) + )[]; + }; + readonly machineType: string; + readonly ports: readonly (number)[]; + /** @default 1 */ + readonly replicas?: number; + }; + }) + ) + | ({ + readonly apiVersion: "v1" | "latest"; + readonly command?: readonly (string)[]; + readonly containerRegistry?: string; + /** @default true */ + readonly enabled?: boolean; + readonly env?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly healthchecks?: { + readonly liveness?: { readonly failureThreshold?: number; readonly headers?: readonly ({ readonly name: string; @@ -857,7 +1069,7 @@ export interface operations { readonly initialDelaySeconds?: number; readonly path: string; readonly periodSeconds?: number; - readonly port: number; + readonly port?: number; readonly timeoutSeconds?: number; } | { readonly exec: { @@ -868,9 +1080,7 @@ export interface operations { readonly periodSeconds?: number; readonly timeoutSeconds?: number; }; - }; - readonly healthChecks?: { - readonly liveness?: { + readonly readiness?: { readonly failureThreshold?: number; readonly headers?: readonly ({ readonly name: string; @@ -880,7 +1090,7 @@ export interface operations { readonly initialDelaySeconds?: number; readonly path: string; readonly periodSeconds?: number; - readonly port: number; + readonly port?: number; readonly timeoutSeconds?: number; } | { readonly exec: { @@ -891,7 +1101,7 @@ export interface operations { readonly periodSeconds?: number; readonly timeoutSeconds?: number; }; - readonly readiness?: { + readonly startup?: { readonly failureThreshold?: number; readonly headers?: readonly ({ readonly name: string; @@ -901,7 +1111,7 @@ export interface operations { readonly initialDelaySeconds?: number; readonly path: string; readonly periodSeconds?: number; - readonly port: number; + readonly port?: number; readonly timeoutSeconds?: number; } | { readonly exec: { @@ -912,7 +1122,9 @@ export interface operations { readonly periodSeconds?: number; readonly timeoutSeconds?: number; }; - readonly startup?: { + }; + readonly healthChecks?: { + readonly liveness?: { readonly failureThreshold?: number; readonly headers?: readonly ({ readonly name: string; @@ -922,7 +1134,49 @@ export interface operations { readonly initialDelaySeconds?: number; readonly path: string; readonly periodSeconds?: number; - readonly port: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly readiness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly startup?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; readonly timeoutSeconds?: number; } | { readonly exec: { @@ -934,29 +1188,38 @@ export interface operations { readonly timeoutSeconds?: number; }; }; - readonly image: string; - readonly integrations?: readonly ({ - readonly name: string; - /** @enum {string} */ - readonly type: "volume"; - })[]; - readonly models?: readonly ({ - readonly id: string; - readonly path?: string; - })[]; - readonly name: string; - readonly region?: string; - readonly repositories?: { - readonly dataset: string; - readonly mountPath?: string; - readonly repositories: readonly ({ - readonly name: string; - readonly password?: string; - readonly ref?: string; - readonly url: string; - readonly username?: string; - })[]; - }; + readonly image: string; + readonly integrations?: readonly ({ + readonly id: string; + readonly name: string; + /** @default /opt/models */ + readonly path?: string; + /** @enum {string} */ + readonly type: "model"; + } | { + readonly accessKeyId: string; + readonly endpoint?: string; + readonly name: string; + readonly path?: string; + readonly region?: string; + readonly secretAccessKey: string; + /** @enum {string} */ + readonly type: "s3"; + readonly url: string; + } | { + readonly name: string; + /** @enum {string} */ + readonly type: "volume"; + } | { + readonly name: string; + readonly path?: string; + /** @enum {string} */ + readonly type: "git-lfs"; + /** Format: uri */ + readonly url: string; + })[]; + readonly name: string; + readonly region?: string; readonly resources: { readonly autoscaling?: { readonly enabled?: boolean; @@ -987,59 +1250,6 @@ export interface operations { }; }; }; - responses: { - /** @description Successful response */ - 200: { - content: { - readonly "application/json": { - /** @description The ID of the app */ - readonly id: string; - }; - }; - }; - default: components["responses"]["error"]; - }; - }; - /** - * Delete an app - * @description Deletes an app. This will delete all resources associated with the app. - */ - "mutation.apps.delete": { - parameters: { - readonly path: { - /** @description The ID of the app to delete */ - id: string; - }; - }; - responses: { - /** @description Successful response */ - 200: { - content: { - readonly "application/json": { - /** @description The ID of the app that was deleted */ - readonly id: string; - }; - }; - }; - default: components["responses"]["error"]; - }; - }; - /** - * Disable an app - * @description Disables an app that is currently enabled. This will stop the app's deployments and make it unavailable to users. - */ - "mutation.apps.disable": { - parameters: { - readonly path: { - /** @description The ID of the app to disable */ - id: string; - }; - }; - readonly requestBody: { - readonly content: { - readonly "application/json": Record; - }; - }; responses: { /** @description Successful response */ 200: { @@ -1047,8 +1257,332 @@ export interface operations { readonly "application/json": { /** @description The new deployment configuration. */ readonly config: + | ( + | ({ + /** @enum {string} */ + readonly apiVersion: "v0alpha0"; + readonly command?: readonly (string)[]; + readonly containerRegistry?: string; + /** @default true */ + readonly enabled?: boolean; + readonly env?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly healthChecks?: { + readonly liveness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly readiness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly startup?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + }; + readonly image: string; + readonly models?: readonly ({ + readonly id: string; + readonly path?: string; + })[]; + readonly name: string; + /** @default 80 */ + readonly port?: number; + readonly region?: string; + readonly repositories?: { + readonly dataset: string; + readonly mountPath?: string; + readonly repositories: readonly ({ + readonly name: string; + readonly password?: string; + readonly ref?: string; + readonly url: string; + readonly username?: string; + })[]; + }; + readonly resources: { + readonly autoscaling?: { + readonly enabled?: boolean; + readonly maxReplicas: number; + readonly metrics: readonly ( + | { + /** @enum {string} */ + readonly metric: "requestDuration"; + /** @enum {string} */ + readonly summary: "average"; + readonly value: number; + } + | ({ + /** @enum {string} */ + readonly metric: "cpu" | "memory"; + /** @enum {string} */ + readonly summary: "average"; + readonly value: number; + }) + )[]; + }; + readonly instanceType: string; + /** @default 1 */ + readonly replicas?: number; + }; + }) + | ({ + /** @enum {string} */ + readonly apiVersion: "v0alpha1"; + readonly command?: readonly (string)[]; + readonly containerRegistry?: string; + /** @default true */ + readonly enabled?: boolean; + readonly env?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly healthchecks?: { + readonly liveness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly readiness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly startup?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + }; + readonly healthChecks?: { + readonly liveness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly readiness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly startup?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + }; + readonly image: string; + readonly integrations?: readonly ({ + readonly id: string; + readonly name: string; + /** @default /opt/models */ + readonly path?: string; + /** @enum {string} */ + readonly type: "model"; + } | { + readonly accessKeyId: string; + readonly endpoint?: string; + readonly name: string; + readonly path?: string; + readonly region?: string; + readonly secretAccessKey: string; + /** @enum {string} */ + readonly type: "s3"; + readonly url: string; + } | { + readonly name: string; + /** @enum {string} */ + readonly type: "volume"; + } | { + readonly name: string; + readonly path?: string; + /** @enum {string} */ + readonly type: "git-lfs"; + /** Format: uri */ + readonly url: string; + })[]; + readonly name: string; + readonly region?: string; + readonly resources: { + readonly autoscaling?: { + readonly enabled?: boolean; + readonly maxReplicas: number; + readonly metrics: readonly ( + | { + /** @enum {string} */ + readonly metric: "requestDuration"; + /** @enum {string} */ + readonly summary: "average"; + readonly value: number; + } + | ({ + /** @enum {string} */ + readonly metric: "cpu" | "memory"; + /** @enum {string} */ + readonly summary: "average"; + readonly value: number; + }) + )[]; + }; + readonly machineType: string; + readonly ports: readonly (number)[]; + /** @default 1 */ + readonly replicas?: number; + }; + }) + ) | ({ - readonly apiVersion: "v0alpha0" | "latest"; + readonly apiVersion: "v1" | "latest"; readonly command?: readonly (string)[]; readonly containerRegistry?: string; /** @default true */ @@ -1057,7 +1591,7 @@ export interface operations { readonly name: string; readonly value: string; })[]; - readonly healthChecks?: { + readonly healthchecks?: { readonly liveness?: { readonly failureThreshold?: number; readonly headers?: readonly ({ @@ -1122,128 +1656,6 @@ export interface operations { readonly timeoutSeconds?: number; }; }; - readonly image: string; - readonly models?: readonly ({ - readonly id: string; - readonly path?: string; - })[]; - readonly name: string; - /** @default 80 */ - readonly port?: number; - readonly region?: string; - readonly repositories?: { - readonly dataset: string; - readonly mountPath?: string; - readonly repositories: readonly ({ - readonly name: string; - readonly password?: string; - readonly ref?: string; - readonly url: string; - readonly username?: string; - })[]; - }; - readonly resources: { - readonly autoscaling?: { - readonly enabled?: boolean; - readonly maxReplicas: number; - readonly metrics: readonly ( - | { - /** @enum {string} */ - readonly metric: "requestDuration"; - /** @enum {string} */ - readonly summary: "average"; - readonly value: number; - } - | ({ - /** @enum {string} */ - readonly metric: "cpu" | "memory"; - /** @enum {string} */ - readonly summary: "average"; - readonly value: number; - }) - )[]; - }; - readonly instanceType: string; - /** @default 1 */ - readonly replicas?: number; - }; - }) - | ({ - /** @enum {string} */ - readonly apiVersion: "v0alpha1"; - readonly command?: readonly (string)[]; - readonly containerRegistry?: string; - /** @default true */ - readonly enabled?: boolean; - readonly env?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly healthchecks?: { - readonly liveness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - readonly readiness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - readonly startup?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - }; readonly healthChecks?: { readonly liveness?: { readonly failureThreshold?: number; @@ -1255,7 +1667,7 @@ export interface operations { readonly initialDelaySeconds?: number; readonly path: string; readonly periodSeconds?: number; - readonly port: number; + readonly port?: number; readonly timeoutSeconds?: number; } | { readonly exec: { @@ -1276,7 +1688,7 @@ export interface operations { readonly initialDelaySeconds?: number; readonly path: string; readonly periodSeconds?: number; - readonly port: number; + readonly port?: number; readonly timeoutSeconds?: number; } | { readonly exec: { @@ -1297,7 +1709,7 @@ export interface operations { readonly initialDelaySeconds?: number; readonly path: string; readonly periodSeconds?: number; - readonly port: number; + readonly port?: number; readonly timeoutSeconds?: number; } | { readonly exec: { @@ -1311,27 +1723,36 @@ export interface operations { }; readonly image: string; readonly integrations?: readonly ({ + readonly id: string; + readonly name: string; + /** @default /opt/models */ + readonly path?: string; + /** @enum {string} */ + readonly type: "model"; + } | { + readonly accessKeyId: string; + readonly endpoint?: string; + readonly name: string; + readonly path?: string; + readonly region?: string; + readonly secretAccessKey: string; + /** @enum {string} */ + readonly type: "s3"; + readonly url: string; + } | { readonly name: string; /** @enum {string} */ readonly type: "volume"; - })[]; - readonly models?: readonly ({ - readonly id: string; + } | { + readonly name: string; readonly path?: string; + /** @enum {string} */ + readonly type: "git-lfs"; + /** Format: uri */ + readonly url: string; })[]; readonly name: string; readonly region?: string; - readonly repositories?: { - readonly dataset: string; - readonly mountPath?: string; - readonly repositories: readonly ({ - readonly name: string; - readonly password?: string; - readonly ref?: string; - readonly url: string; - readonly username?: string; - })[]; - }; readonly resources: { readonly autoscaling?: { readonly enabled?: boolean; @@ -1368,21 +1789,16 @@ export interface operations { }; }; /** - * Enable an app - * @description Enables an app that has been previously disabled. This will start the app and make it available to users. + * Get an app + * @description Fetches an app. */ - "mutation.apps.enable": { + "apps-get": { parameters: { readonly path: { - /** @description The ID of the app to enable */ + /** @description The ID of the app to fetch */ id: string; }; }; - readonly requestBody: { - readonly content: { - readonly "application/json": Record; - }; - }; responses: { /** @description Successful response */ 200: { @@ -1390,8 +1806,332 @@ export interface operations { readonly "application/json": { /** @description The new deployment configuration. */ readonly config: + | ( + | ({ + /** @enum {string} */ + readonly apiVersion: "v0alpha0"; + readonly command?: readonly (string)[]; + readonly containerRegistry?: string; + /** @default true */ + readonly enabled?: boolean; + readonly env?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly healthChecks?: { + readonly liveness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly readiness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly startup?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + }; + readonly image: string; + readonly models?: readonly ({ + readonly id: string; + readonly path?: string; + })[]; + readonly name: string; + /** @default 80 */ + readonly port?: number; + readonly region?: string; + readonly repositories?: { + readonly dataset: string; + readonly mountPath?: string; + readonly repositories: readonly ({ + readonly name: string; + readonly password?: string; + readonly ref?: string; + readonly url: string; + readonly username?: string; + })[]; + }; + readonly resources: { + readonly autoscaling?: { + readonly enabled?: boolean; + readonly maxReplicas: number; + readonly metrics: readonly ( + | { + /** @enum {string} */ + readonly metric: "requestDuration"; + /** @enum {string} */ + readonly summary: "average"; + readonly value: number; + } + | ({ + /** @enum {string} */ + readonly metric: "cpu" | "memory"; + /** @enum {string} */ + readonly summary: "average"; + readonly value: number; + }) + )[]; + }; + readonly instanceType: string; + /** @default 1 */ + readonly replicas?: number; + }; + }) + | ({ + /** @enum {string} */ + readonly apiVersion: "v0alpha1"; + readonly command?: readonly (string)[]; + readonly containerRegistry?: string; + /** @default true */ + readonly enabled?: boolean; + readonly env?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly healthchecks?: { + readonly liveness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly readiness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly startup?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + }; + readonly healthChecks?: { + readonly liveness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly readiness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly startup?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + }; + readonly image: string; + readonly integrations?: readonly ({ + readonly id: string; + readonly name: string; + /** @default /opt/models */ + readonly path?: string; + /** @enum {string} */ + readonly type: "model"; + } | { + readonly accessKeyId: string; + readonly endpoint?: string; + readonly name: string; + readonly path?: string; + readonly region?: string; + readonly secretAccessKey: string; + /** @enum {string} */ + readonly type: "s3"; + readonly url: string; + } | { + readonly name: string; + /** @enum {string} */ + readonly type: "volume"; + } | { + readonly name: string; + readonly path?: string; + /** @enum {string} */ + readonly type: "git-lfs"; + /** Format: uri */ + readonly url: string; + })[]; + readonly name: string; + readonly region?: string; + readonly resources: { + readonly autoscaling?: { + readonly enabled?: boolean; + readonly maxReplicas: number; + readonly metrics: readonly ( + | { + /** @enum {string} */ + readonly metric: "requestDuration"; + /** @enum {string} */ + readonly summary: "average"; + readonly value: number; + } + | ({ + /** @enum {string} */ + readonly metric: "cpu" | "memory"; + /** @enum {string} */ + readonly summary: "average"; + readonly value: number; + }) + )[]; + }; + readonly machineType: string; + readonly ports: readonly (number)[]; + /** @default 1 */ + readonly replicas?: number; + }; + }) + ) | ({ - readonly apiVersion: "v0alpha0" | "latest"; + readonly apiVersion: "v1" | "latest"; readonly command?: readonly (string)[]; readonly containerRegistry?: string; /** @default true */ @@ -1400,7 +2140,7 @@ export interface operations { readonly name: string; readonly value: string; })[]; - readonly healthChecks?: { + readonly healthchecks?: { readonly liveness?: { readonly failureThreshold?: number; readonly headers?: readonly ({ @@ -1465,128 +2205,6 @@ export interface operations { readonly timeoutSeconds?: number; }; }; - readonly image: string; - readonly models?: readonly ({ - readonly id: string; - readonly path?: string; - })[]; - readonly name: string; - /** @default 80 */ - readonly port?: number; - readonly region?: string; - readonly repositories?: { - readonly dataset: string; - readonly mountPath?: string; - readonly repositories: readonly ({ - readonly name: string; - readonly password?: string; - readonly ref?: string; - readonly url: string; - readonly username?: string; - })[]; - }; - readonly resources: { - readonly autoscaling?: { - readonly enabled?: boolean; - readonly maxReplicas: number; - readonly metrics: readonly ( - | { - /** @enum {string} */ - readonly metric: "requestDuration"; - /** @enum {string} */ - readonly summary: "average"; - readonly value: number; - } - | ({ - /** @enum {string} */ - readonly metric: "cpu" | "memory"; - /** @enum {string} */ - readonly summary: "average"; - readonly value: number; - }) - )[]; - }; - readonly instanceType: string; - /** @default 1 */ - readonly replicas?: number; - }; - }) - | ({ - /** @enum {string} */ - readonly apiVersion: "v0alpha1"; - readonly command?: readonly (string)[]; - readonly containerRegistry?: string; - /** @default true */ - readonly enabled?: boolean; - readonly env?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly healthchecks?: { - readonly liveness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - readonly readiness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - readonly startup?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - }; readonly healthChecks?: { readonly liveness?: { readonly failureThreshold?: number; @@ -1598,7 +2216,7 @@ export interface operations { readonly initialDelaySeconds?: number; readonly path: string; readonly periodSeconds?: number; - readonly port: number; + readonly port?: number; readonly timeoutSeconds?: number; } | { readonly exec: { @@ -1619,7 +2237,7 @@ export interface operations { readonly initialDelaySeconds?: number; readonly path: string; readonly periodSeconds?: number; - readonly port: number; + readonly port?: number; readonly timeoutSeconds?: number; } | { readonly exec: { @@ -1640,7 +2258,7 @@ export interface operations { readonly initialDelaySeconds?: number; readonly path: string; readonly periodSeconds?: number; - readonly port: number; + readonly port?: number; readonly timeoutSeconds?: number; } | { readonly exec: { @@ -1654,27 +2272,36 @@ export interface operations { }; readonly image: string; readonly integrations?: readonly ({ + readonly id: string; + readonly name: string; + /** @default /opt/models */ + readonly path?: string; + /** @enum {string} */ + readonly type: "model"; + } | { + readonly accessKeyId: string; + readonly endpoint?: string; + readonly name: string; + readonly path?: string; + readonly region?: string; + readonly secretAccessKey: string; + /** @enum {string} */ + readonly type: "s3"; + readonly url: string; + } | { readonly name: string; /** @enum {string} */ readonly type: "volume"; - })[]; - readonly models?: readonly ({ - readonly id: string; + } | { + readonly name: string; readonly path?: string; + /** @enum {string} */ + readonly type: "git-lfs"; + /** Format: uri */ + readonly url: string; })[]; readonly name: string; readonly region?: string; - readonly repositories?: { - readonly dataset: string; - readonly mountPath?: string; - readonly repositories: readonly ({ - readonly name: string; - readonly password?: string; - readonly ref?: string; - readonly url: string; - readonly username?: string; - })[]; - }; readonly resources: { readonly autoscaling?: { readonly enabled?: boolean; @@ -1711,33 +2338,23 @@ export interface operations { }; }; /** - * Update an app's name - * @description Change the name of an app + * Delete an app + * @description Deletes an app. This will delete all resources associated with the app. */ - "mutation.apps.updateName": { + "apps-delete": { parameters: { readonly path: { - /** @description The ID of the app to update */ + /** @description The ID of the app to delete */ id: string; }; }; - readonly requestBody: { - readonly content: { - readonly "application/json": { - /** @description The new name of the app */ - readonly name: string; - }; - }; - }; responses: { /** @description Successful response */ 200: { content: { readonly "application/json": { - /** @description The ID of the app */ + /** @description The ID of the app that was deleted */ readonly id: string; - /** @description The name of the app */ - readonly name: string; }; }; }; @@ -1745,275 +2362,548 @@ export interface operations { }; }; /** - * Get the current session - * @description Get the current session. If a user is not logged in, this will be null. Otherwise, it will contain the current team and user. + * Disable an app + * @description Disables an app that is currently enabled. This will stop the app's deployments and make it unavailable to users. */ - "query.auth.session": { + "apps-disable": { + parameters: { + readonly path: { + /** @description The ID of the app to disable */ + id: string; + }; + }; responses: { /** @description Successful response */ 200: { content: { - readonly "application/json": - | ({ - readonly team: { - /** @description An internal, numeric ID for the team */ - readonly analyticsId: number; - /** @description A unique ID for the team */ - readonly id: string; - /** @description Whether the team is private or not */ - readonly isPrivate: boolean; - /** @description The maximum number of machines */ - readonly maxMachines: number; - /** @description The namespace for the team */ - readonly namespace: string; - }; - readonly user: { - /** @description An internal, numeric ID for the user */ - readonly analyticsId: number; - /** - * Format: date-time - * @description The date the account was confirmed - */ - readonly dtConfirmed: Date; - /** - * Format: date-time - * @description The date the user was created - */ - readonly dtCreated: Date; - /** @description The user's email address */ - readonly email: string; - /** @description The user's first name */ - readonly firstName: string | null; - /** @description A unique ID for the user */ - readonly id: string; - /** @description Whether the user has a password set */ - readonly isPasswordAuthEnabled: boolean; - /** @description Whether the user's phone number has been verified */ - readonly isPhoneVerified: boolean; - /** @description Whether the user has a QR code based MFA confirmed */ - readonly isQrCodeBasedMfaConfirmed: boolean; - /** @description Whether the user has a QR code based MFA enabled */ - readonly isQrCodeBasedMfaEnabled: boolean; - /** @description The user's last name */ - readonly lastName: string | null; - /** @description Metadata about the user */ - readonly metadata: { - /** - * @description Core survey question-answer pairs - * @default null - */ - readonly coreSurvey?: - | ({ - [key: string]: string | undefined; - }) - | null; - /** - * @description Gradient survey question-answer pairs - * @default null - */ - readonly gradientSurvey?: - | ({ - [key: string]: string | undefined; - }) - | null; - /** - * @description Whether the user has accepted the Graphcore terms of service - * @default false - */ - readonly graphcoreTermsAccepted?: boolean; - /** - * @description Tags for the user - * @default null - */ - readonly tags?: string | null; - }; - /** @description The teams this user is a member of */ - readonly teamMemberships: readonly ({ - /** @description Whether the user is an admin of the team */ - readonly isAdmin: boolean; - /** @description Whether the user is the owner of the team */ - readonly isOwner: boolean; - /** @description The team the user is a member of */ - readonly team: { - /** - * Format: date-time - * @description The date the team was created - */ - readonly dtCreated: Date; - /** @description The ID of the team */ - readonly id: string; - /** @description Whether the team is the user's team */ - readonly isUserTeam: boolean; - /** @description The name of the team */ - readonly name: string; - /** @description The namespace of the team */ - readonly namespace: string; - /** - * @description The URL of the team's profile image. - * @default null - */ - readonly publicProfileImageUrl?: string | null; + readonly "application/json": { + /** @description The new deployment configuration. */ + readonly config: + | ( + | ({ + /** @enum {string} */ + readonly apiVersion: "v0alpha0"; + readonly command?: readonly (string)[]; + readonly containerRegistry?: string; + /** @default true */ + readonly enabled?: boolean; + readonly env?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly healthChecks?: { + readonly liveness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly readiness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly startup?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + }; + readonly image: string; + readonly models?: readonly ({ + readonly id: string; + readonly path?: string; + })[]; + readonly name: string; + /** @default 80 */ + readonly port?: number; + readonly region?: string; + readonly repositories?: { + readonly dataset: string; + readonly mountPath?: string; + readonly repositories: readonly ({ + readonly name: string; + readonly password?: string; + readonly ref?: string; + readonly url: string; + readonly username?: string; + })[]; + }; + readonly resources: { + readonly autoscaling?: { + readonly enabled?: boolean; + readonly maxReplicas: number; + readonly metrics: readonly ( + | { + /** @enum {string} */ + readonly metric: "requestDuration"; + /** @enum {string} */ + readonly summary: "average"; + readonly value: number; + } + | ({ + /** @enum {string} */ + readonly metric: "cpu" | "memory"; + /** @enum {string} */ + readonly summary: "average"; + readonly value: number; + }) + )[]; + }; + readonly instanceType: string; + /** @default 1 */ + readonly replicas?: number; + }; + }) + | ({ + /** @enum {string} */ + readonly apiVersion: "v0alpha1"; + readonly command?: readonly (string)[]; + readonly containerRegistry?: string; + /** @default true */ + readonly enabled?: boolean; + readonly env?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly healthchecks?: { + readonly liveness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly readiness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly startup?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + }; + readonly healthChecks?: { + readonly liveness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly readiness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly startup?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + }; + readonly image: string; + readonly integrations?: readonly ({ + readonly id: string; + readonly name: string; + /** @default /opt/models */ + readonly path?: string; + /** @enum {string} */ + readonly type: "model"; + } | { + readonly accessKeyId: string; + readonly endpoint?: string; + readonly name: string; + readonly path?: string; + readonly region?: string; + readonly secretAccessKey: string; + /** @enum {string} */ + readonly type: "s3"; + readonly url: string; + } | { + readonly name: string; + /** @enum {string} */ + readonly type: "volume"; + } | { + readonly name: string; + readonly path?: string; + /** @enum {string} */ + readonly type: "git-lfs"; + /** Format: uri */ + readonly url: string; + })[]; + readonly name: string; + readonly region?: string; + readonly resources: { + readonly autoscaling?: { + readonly enabled?: boolean; + readonly maxReplicas: number; + readonly metrics: readonly ( + | { + /** @enum {string} */ + readonly metric: "requestDuration"; + /** @enum {string} */ + readonly summary: "average"; + readonly value: number; + } + | ({ + /** @enum {string} */ + readonly metric: "cpu" | "memory"; + /** @enum {string} */ + readonly summary: "average"; + readonly value: number; + }) + )[]; + }; + readonly machineType: string; + readonly ports: readonly (number)[]; + /** @default 1 */ + readonly replicas?: number; }; + }) + ) + | ({ + readonly apiVersion: "v1" | "latest"; + readonly command?: readonly (string)[]; + readonly containerRegistry?: string; + /** @default true */ + readonly enabled?: boolean; + readonly env?: readonly ({ + readonly name: string; + readonly value: string; })[]; - }; - }) - | null; - }; - }; - default: components["responses"]["error"]; - }; - }; - /** - * List autoscaling groups - * @description List autoscaling groups and filter by machine type. - */ - "query.autoscalingGroups.list": { - parameters: { - readonly query: { - /** @description Fetch the next page of results after this cursor. */ - after?: string; - /** @description The number of items to fetch after this page. */ - limit?: number; - /** @description Order results by one of these fields. */ - orderBy?: "dtCreated" | "name"; - /** @description The order to sort the results by. */ - order?: "asc" | "desc"; - /** @description Cluster the autoscaling group is for. */ - clusterId?: string; - /** @description Machine type used for machiens in the autoscaling group. */ - machineType?: string; - }; - }; - responses: { - /** @description Successful response */ - 200: { - content: { - readonly "application/json": { - /** @description Whether there are more pages of results available. */ - readonly hasMore: boolean; - /** @description The items on this page. */ - readonly items: readonly ({ - /** @description The ID of the cluster the autoscaling group is for. */ - readonly clusterId: string; - /** @description The current number of machines in the autoscaling group. */ - readonly current: number; - /** - * Format: date-time - * @description The date the autoscaling group was created. - */ - readonly dtCreated: Date; - /** - * Format: date-time - * @description The date the autoscaling group was deleted. - */ - readonly dtDeleted: Date; - /** - * Format: date-time - * @description The date the autoscaling group was last modified. - */ - readonly dtModified: Date; - /** @description The ID of the autoscaling group. */ - readonly id: string; - /** @description The ID of the user who last edited the autoscaling group. */ - readonly lastEditedByUserId: string | null; - /** @description The machine type used by machines in the autoscaling group. */ - readonly machineType: string; - /** @description The maximum number of machines in the autoscaling group. */ - readonly max: number; - /** @description The minimum number of machines in the autoscaling group. */ - readonly min: number; - /** @description The name of the autoscaling group. */ - readonly name: string; - /** @description The ID of the network used by machines in the autoscaling group. */ - readonly networkId: string; - /** @description The timeout for provisioning machines in the autoscaling group, in minutes. */ - readonly provisioningTimeout: number | null; - /** @description The ID of the startup script used by machines in the autoscaling group. */ - readonly startupScriptId: string | null; - /** @description The ID of the template used by machines in the autoscaling group. */ - readonly templateId: string; - })[]; - /** @description The cursor required to fetch the next page of results. i.e. `?after=nextPage`. This is `null` when there is no next page. */ - readonly nextPage?: string; - }; - }; - }; - default: components["responses"]["error"]; - }; - }; - /** - * Create an autoscaling group - * @description Create an autoscaling group. - */ - "mutation.autoscalingGroups.create": { - readonly requestBody: { - readonly content: { - readonly "application/json": { - /** @description The cluster the autoscaling group is for. */ - readonly clusterId: string; - /** @description The machine type used for machines in the autoscaling group. */ - readonly machineType: string; - /** @description The maximum number of machines in the autoscaling group. */ - readonly max: number; - /** @description The minimum number of machines in the autoscaling group. */ - readonly min: number; - /** @description The name of the autoscaling group. */ - readonly name: string; - /** @description The network the autoscaling group is in. */ - readonly networkId: string; - /** @description The timeout for provisioning machines in the autoscaling group. */ - readonly provisioningTimeout?: number; - /** @description The startup script used for machines in the autoscaling group. */ - readonly startupScriptId?: string; - /** @description The template used for machines in the autoscaling group. */ - readonly templateId: string; - }; - }; - }; - responses: { - /** @description Successful response */ - 200: { - content: { - readonly "application/json": { - /** @description The ID of the cluster the autoscaling group is for. */ - readonly clusterId: string; - /** @description The current number of machines in the autoscaling group. */ - readonly current: number; - /** - * Format: date-time - * @description The date the autoscaling group was created. - */ - readonly dtCreated: Date; - /** - * Format: date-time - * @description The date the autoscaling group was deleted. - */ - readonly dtDeleted: Date; - /** - * Format: date-time - * @description The date the autoscaling group was last modified. - */ - readonly dtModified: Date; - /** @description The ID of the autoscaling group. */ + readonly healthchecks?: { + readonly liveness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly readiness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly startup?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + }; + readonly healthChecks?: { + readonly liveness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly readiness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly startup?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + }; + readonly image: string; + readonly integrations?: readonly ({ + readonly id: string; + readonly name: string; + /** @default /opt/models */ + readonly path?: string; + /** @enum {string} */ + readonly type: "model"; + } | { + readonly accessKeyId: string; + readonly endpoint?: string; + readonly name: string; + readonly path?: string; + readonly region?: string; + readonly secretAccessKey: string; + /** @enum {string} */ + readonly type: "s3"; + readonly url: string; + } | { + readonly name: string; + /** @enum {string} */ + readonly type: "volume"; + } | { + readonly name: string; + readonly path?: string; + /** @enum {string} */ + readonly type: "git-lfs"; + /** Format: uri */ + readonly url: string; + })[]; + readonly name: string; + readonly region?: string; + readonly resources: { + readonly autoscaling?: { + readonly enabled?: boolean; + readonly maxReplicas: number; + readonly metrics: readonly ( + | { + /** @enum {string} */ + readonly metric: "requestDuration"; + /** @enum {string} */ + readonly summary: "average"; + readonly value: number; + } + | ({ + /** @enum {string} */ + readonly metric: "cpu" | "memory"; + /** @enum {string} */ + readonly summary: "average"; + readonly value: number; + }) + )[]; + }; + readonly machineType: string; + readonly ports: readonly (number)[]; + /** @default 1 */ + readonly replicas?: number; + }; + }); + /** @description The ID of the app */ readonly id: string; - /** @description The ID of the user who last edited the autoscaling group. */ - readonly lastEditedByUserId: string | null; - /** @description The machine type used by machines in the autoscaling group. */ - readonly machineType: string; - /** @description The maximum number of machines in the autoscaling group. */ - readonly max: number; - /** @description The minimum number of machines in the autoscaling group. */ - readonly min: number; - /** @description The name of the autoscaling group. */ - readonly name: string; - /** @description The ID of the network used by machines in the autoscaling group. */ - readonly networkId: string; - /** @description The timeout for provisioning machines in the autoscaling group, in minutes. */ - readonly provisioningTimeout: number | null; - /** @description The ID of the startup script used by machines in the autoscaling group. */ - readonly startupScriptId: string | null; - /** @description The ID of the template used by machines in the autoscaling group. */ - readonly templateId: string; }; }; }; @@ -2021,13 +2911,13 @@ export interface operations { }; }; /** - * Get an autoscaling group - * @description Fetches a single autoscaling group by id. + * Enable an app + * @description Enables an app that has been previously disabled. This will start the app and make it available to users. */ - "query.autoscalingGroups.get": { + "apps-enable": { parameters: { readonly path: { - /** @description The ID of the autoscaling group to fetch. */ + /** @description The ID of the app to enable */ id: string; }; }; @@ -2036,56 +2926,929 @@ export interface operations { 200: { content: { readonly "application/json": { - /** @description The ID of the cluster the autoscaling group is for. */ - readonly clusterId: string; - /** @description The current number of machines in the autoscaling group. */ - readonly current: number; - /** - * Format: date-time - * @description The date the autoscaling group was created. - */ - readonly dtCreated: Date; - /** - * Format: date-time - * @description The date the autoscaling group was deleted. - */ - readonly dtDeleted: Date; - /** - * Format: date-time - * @description The date the autoscaling group was last modified. - */ - readonly dtModified: Date; - /** @description The ID of the autoscaling group. */ - readonly id: string; - /** @description The ID of the user who last edited the autoscaling group. */ - readonly lastEditedByUserId: string | null; - /** @description The machine type used by machines in the autoscaling group. */ - readonly machineType: string; - /** @description The maximum number of machines in the autoscaling group. */ - readonly max: number; - /** @description The minimum number of machines in the autoscaling group. */ - readonly min: number; - /** @description The name of the autoscaling group. */ - readonly name: string; - /** @description The ID of the network used by machines in the autoscaling group. */ - readonly networkId: string; - /** @description The timeout for provisioning machines in the autoscaling group, in minutes. */ - readonly provisioningTimeout: number | null; - /** @description The ID of the startup script used by machines in the autoscaling group. */ - readonly startupScriptId: string | null; - /** @description The ID of the template used by machines in the autoscaling group. */ - readonly templateId: string; - }; - }; - }; - default: components["responses"]["error"]; - }; + /** @description The new deployment configuration. */ + readonly config: + | ( + | ({ + /** @enum {string} */ + readonly apiVersion: "v0alpha0"; + readonly command?: readonly (string)[]; + readonly containerRegistry?: string; + /** @default true */ + readonly enabled?: boolean; + readonly env?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly healthChecks?: { + readonly liveness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly readiness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly startup?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + }; + readonly image: string; + readonly models?: readonly ({ + readonly id: string; + readonly path?: string; + })[]; + readonly name: string; + /** @default 80 */ + readonly port?: number; + readonly region?: string; + readonly repositories?: { + readonly dataset: string; + readonly mountPath?: string; + readonly repositories: readonly ({ + readonly name: string; + readonly password?: string; + readonly ref?: string; + readonly url: string; + readonly username?: string; + })[]; + }; + readonly resources: { + readonly autoscaling?: { + readonly enabled?: boolean; + readonly maxReplicas: number; + readonly metrics: readonly ( + | { + /** @enum {string} */ + readonly metric: "requestDuration"; + /** @enum {string} */ + readonly summary: "average"; + readonly value: number; + } + | ({ + /** @enum {string} */ + readonly metric: "cpu" | "memory"; + /** @enum {string} */ + readonly summary: "average"; + readonly value: number; + }) + )[]; + }; + readonly instanceType: string; + /** @default 1 */ + readonly replicas?: number; + }; + }) + | ({ + /** @enum {string} */ + readonly apiVersion: "v0alpha1"; + readonly command?: readonly (string)[]; + readonly containerRegistry?: string; + /** @default true */ + readonly enabled?: boolean; + readonly env?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly healthchecks?: { + readonly liveness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly readiness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly startup?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + }; + readonly healthChecks?: { + readonly liveness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly readiness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly startup?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + }; + readonly image: string; + readonly integrations?: readonly ({ + readonly id: string; + readonly name: string; + /** @default /opt/models */ + readonly path?: string; + /** @enum {string} */ + readonly type: "model"; + } | { + readonly accessKeyId: string; + readonly endpoint?: string; + readonly name: string; + readonly path?: string; + readonly region?: string; + readonly secretAccessKey: string; + /** @enum {string} */ + readonly type: "s3"; + readonly url: string; + } | { + readonly name: string; + /** @enum {string} */ + readonly type: "volume"; + } | { + readonly name: string; + readonly path?: string; + /** @enum {string} */ + readonly type: "git-lfs"; + /** Format: uri */ + readonly url: string; + })[]; + readonly name: string; + readonly region?: string; + readonly resources: { + readonly autoscaling?: { + readonly enabled?: boolean; + readonly maxReplicas: number; + readonly metrics: readonly ( + | { + /** @enum {string} */ + readonly metric: "requestDuration"; + /** @enum {string} */ + readonly summary: "average"; + readonly value: number; + } + | ({ + /** @enum {string} */ + readonly metric: "cpu" | "memory"; + /** @enum {string} */ + readonly summary: "average"; + readonly value: number; + }) + )[]; + }; + readonly machineType: string; + readonly ports: readonly (number)[]; + /** @default 1 */ + readonly replicas?: number; + }; + }) + ) + | ({ + readonly apiVersion: "v1" | "latest"; + readonly command?: readonly (string)[]; + readonly containerRegistry?: string; + /** @default true */ + readonly enabled?: boolean; + readonly env?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly healthchecks?: { + readonly liveness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly readiness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly startup?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + }; + readonly healthChecks?: { + readonly liveness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly readiness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly startup?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + }; + readonly image: string; + readonly integrations?: readonly ({ + readonly id: string; + readonly name: string; + /** @default /opt/models */ + readonly path?: string; + /** @enum {string} */ + readonly type: "model"; + } | { + readonly accessKeyId: string; + readonly endpoint?: string; + readonly name: string; + readonly path?: string; + readonly region?: string; + readonly secretAccessKey: string; + /** @enum {string} */ + readonly type: "s3"; + readonly url: string; + } | { + readonly name: string; + /** @enum {string} */ + readonly type: "volume"; + } | { + readonly name: string; + readonly path?: string; + /** @enum {string} */ + readonly type: "git-lfs"; + /** Format: uri */ + readonly url: string; + })[]; + readonly name: string; + readonly region?: string; + readonly resources: { + readonly autoscaling?: { + readonly enabled?: boolean; + readonly maxReplicas: number; + readonly metrics: readonly ( + | { + /** @enum {string} */ + readonly metric: "requestDuration"; + /** @enum {string} */ + readonly summary: "average"; + readonly value: number; + } + | ({ + /** @enum {string} */ + readonly metric: "cpu" | "memory"; + /** @enum {string} */ + readonly summary: "average"; + readonly value: number; + }) + )[]; + }; + readonly machineType: string; + readonly ports: readonly (number)[]; + /** @default 1 */ + readonly replicas?: number; + }; + }); + /** @description The ID of the app */ + readonly id: string; + }; + }; + }; + default: components["responses"]["error"]; + }; + }; + /** + * Update an app's name + * @description Change the name of an app + */ + "apps-updateName": { + parameters: { + readonly path: { + /** @description The ID of the app to update */ + id: string; + }; + }; + readonly requestBody: { + readonly content: { + readonly "application/json": { + /** @description The new name of the app */ + readonly name: string; + }; + }; + }; + responses: { + /** @description Successful response */ + 200: { + content: { + readonly "application/json": { + /** @description The ID of the app */ + readonly id: string; + /** @description The name of the app */ + readonly name: string; + }; + }; + }; + default: components["responses"]["error"]; + }; + }; + /** + * Get the current session + * @description Get the current session. If a user is not logged in, this will be null. Otherwise, it will contain the current team and user. + */ + "auth-session": { + responses: { + /** @description Successful response */ + 200: { + content: { + readonly "application/json": + | ({ + readonly team: { + /** @description An internal, numeric ID for the team */ + readonly analyticsId: number; + /** @description A unique ID for the team */ + readonly id: string; + /** @description Whether the team is private or not */ + readonly isPrivate: boolean; + /** @description The maximum number of machines */ + readonly maxMachines: number; + /** @description The namespace for the team */ + readonly namespace: string; + }; + readonly user: { + /** @description An internal, numeric ID for the user */ + readonly analyticsId: number; + /** + * Format: date-time + * @description The date the account was confirmed + */ + readonly dtConfirmed: Date; + /** + * Format: date-time + * @description The date the user was created + */ + readonly dtCreated: Date; + /** @description The user's email address */ + readonly email: string; + /** @description The user's first name */ + readonly firstName: string | null; + /** @description A unique ID for the user */ + readonly id: string; + /** @description Whether the user has a password set */ + readonly isPasswordAuthEnabled: boolean; + /** @description Whether the user's phone number has been verified */ + readonly isPhoneVerified: boolean; + /** @description Whether the user has a QR code based MFA confirmed */ + readonly isQrCodeBasedMfaConfirmed: boolean; + /** @description Whether the user has a QR code based MFA enabled */ + readonly isQrCodeBasedMfaEnabled: boolean; + /** @description The user's last name */ + readonly lastName: string | null; + /** @description Metadata about the user */ + readonly metadata: { + /** + * @description Core survey question-answer pairs + * @default null + */ + readonly coreSurvey?: + | ({ + [key: string]: string | undefined; + }) + | null; + /** + * @description Gradient survey question-answer pairs + * @default null + */ + readonly gradientSurvey?: + | ({ + [key: string]: string | undefined; + }) + | null; + /** + * @description Whether the user has accepted the Graphcore terms of service + * @default false + */ + readonly graphcoreTermsAccepted?: boolean; + /** + * @description Tags for the user + * @default null + */ + readonly tags?: string | null; + }; + /** + * @description The user's preferences + * @default null + */ + readonly preferences?: + | ({ + readonly defaultProduct?: string | null; + readonly defaultTeamId?: string | null; + readonly disableHotkeys?: boolean | null; + readonly fontSize?: number | null; + /** @enum {string|null} */ + readonly theme?: "light" | "dark" | null; + }) + | null; + /** @description The teams this user is a member of */ + readonly teamMemberships: readonly ({ + /** @description Whether the user is an admin of the team */ + readonly isAdmin: boolean; + /** @description Whether the user is the owner of the team */ + readonly isOwner: boolean; + /** @description The team the user is a member of */ + readonly team: { + /** + * Format: date-time + * @description The date the team was created + */ + readonly dtCreated: Date; + /** @description The ID of the team */ + readonly id: string; + /** @description Whether the team is the user's team */ + readonly isUserTeam: boolean; + /** @description The name of the team */ + readonly name: string; + /** @description The namespace of the team */ + readonly namespace: string; + /** + * @description The URL of the team's profile image. + * @default null + */ + readonly publicProfileImageUrl?: string | null; + }; + })[]; + }; + }) + | null; + }; + }; + default: components["responses"]["error"]; + }; + }; + /** + * List autoscaling groups + * @description List autoscaling groups and filter by machine type. + */ + "autoscalingGroups-list": { + parameters: { + readonly query: { + /** @description Fetch the next page of results after this cursor. */ + after?: string; + /** @description The number of items to fetch after this page. */ + limit?: number; + /** @description Order results by one of these fields. */ + orderBy?: "dtCreated" | "name"; + /** @description The order to sort the results by. */ + order?: "asc" | "desc"; + /** @description Cluster the autoscaling group is for. */ + clusterId?: string; + /** @description Machine type used for machiens in the autoscaling group. */ + machineType?: string; + }; + }; + responses: { + /** @description Successful response */ + 200: { + content: { + readonly "application/json": { + /** @description Whether there are more pages of results available. */ + readonly hasMore: boolean; + /** @description The items on this page. */ + readonly items: readonly ({ + /** @description The ID of the cluster the autoscaling group is for. */ + readonly clusterId: string; + /** @description The current number of machines in the autoscaling group. */ + readonly current: number; + /** + * Format: date-time + * @description The date the autoscaling group was created. + */ + readonly dtCreated: Date; + /** + * Format: date-time + * @description The date the autoscaling group was deleted. + */ + readonly dtDeleted: Date; + /** + * Format: date-time + * @description The date the autoscaling group was last modified. + */ + readonly dtModified: Date; + /** @description The ID of the autoscaling group. */ + readonly id: string; + /** @description The ID of the user who last edited the autoscaling group. */ + readonly lastEditedByUserId: string | null; + /** @description The machine type used by machines in the autoscaling group. */ + readonly machineType: string; + /** @description The maximum number of machines in the autoscaling group. */ + readonly max: number; + /** @description The minimum number of machines in the autoscaling group. */ + readonly min: number; + /** @description The name of the autoscaling group. */ + readonly name: string; + /** @description The ID of the network used by machines in the autoscaling group. */ + readonly networkId: string; + /** @description The timeout for provisioning machines in the autoscaling group, in minutes. */ + readonly provisioningTimeout: number | null; + /** @description The ID of the startup script used by machines in the autoscaling group. */ + readonly startupScriptId: string | null; + /** @description The ID of the template used by machines in the autoscaling group. */ + readonly templateId: string; + })[]; + /** @description The cursor required to fetch the next page of results. i.e. `?after=nextPage`. This is `null` when there is no next page. */ + readonly nextPage?: string; + }; + }; + }; + default: components["responses"]["error"]; + }; + }; + /** + * Create an autoscaling group + * @description Create an autoscaling group. + */ + "autoscalingGroups-create": { + readonly requestBody: { + readonly content: { + readonly "application/json": { + /** @description The cluster the autoscaling group is for. */ + readonly clusterId: string; + /** @description The machine type used for machines in the autoscaling group. */ + readonly machineType: string; + /** @description The maximum number of machines in the autoscaling group. */ + readonly max: number; + /** @description The minimum number of machines in the autoscaling group. */ + readonly min: number; + /** @description The name of the autoscaling group. */ + readonly name: string; + /** @description The network the autoscaling group is in. */ + readonly networkId: string; + /** @description The timeout for provisioning machines in the autoscaling group. */ + readonly provisioningTimeout?: number; + /** @description The startup script used for machines in the autoscaling group. */ + readonly startupScriptId?: string; + /** @description The template used for machines in the autoscaling group. */ + readonly templateId: string; + }; + }; + }; + responses: { + /** @description Successful response */ + 200: { + content: { + readonly "application/json": { + /** @description The ID of the cluster the autoscaling group is for. */ + readonly clusterId: string; + /** @description The current number of machines in the autoscaling group. */ + readonly current: number; + /** + * Format: date-time + * @description The date the autoscaling group was created. + */ + readonly dtCreated: Date; + /** + * Format: date-time + * @description The date the autoscaling group was deleted. + */ + readonly dtDeleted: Date; + /** + * Format: date-time + * @description The date the autoscaling group was last modified. + */ + readonly dtModified: Date; + /** @description The ID of the autoscaling group. */ + readonly id: string; + /** @description The ID of the user who last edited the autoscaling group. */ + readonly lastEditedByUserId: string | null; + /** @description The machine type used by machines in the autoscaling group. */ + readonly machineType: string; + /** @description The maximum number of machines in the autoscaling group. */ + readonly max: number; + /** @description The minimum number of machines in the autoscaling group. */ + readonly min: number; + /** @description The name of the autoscaling group. */ + readonly name: string; + /** @description The ID of the network used by machines in the autoscaling group. */ + readonly networkId: string; + /** @description The timeout for provisioning machines in the autoscaling group, in minutes. */ + readonly provisioningTimeout: number | null; + /** @description The ID of the startup script used by machines in the autoscaling group. */ + readonly startupScriptId: string | null; + /** @description The ID of the template used by machines in the autoscaling group. */ + readonly templateId: string; + }; + }; + }; + default: components["responses"]["error"]; + }; + }; + /** + * Get an autoscaling group + * @description Fetches a single autoscaling group by id. + */ + "autoscalingGroups-get": { + parameters: { + readonly path: { + /** @description The ID of the autoscaling group to fetch. */ + id: string; + }; + }; + responses: { + /** @description Successful response */ + 200: { + content: { + readonly "application/json": { + /** @description The ID of the cluster the autoscaling group is for. */ + readonly clusterId: string; + /** @description The current number of machines in the autoscaling group. */ + readonly current: number; + /** + * Format: date-time + * @description The date the autoscaling group was created. + */ + readonly dtCreated: Date; + /** + * Format: date-time + * @description The date the autoscaling group was deleted. + */ + readonly dtDeleted: Date; + /** + * Format: date-time + * @description The date the autoscaling group was last modified. + */ + readonly dtModified: Date; + /** @description The ID of the autoscaling group. */ + readonly id: string; + /** @description The ID of the user who last edited the autoscaling group. */ + readonly lastEditedByUserId: string | null; + /** @description The machine type used by machines in the autoscaling group. */ + readonly machineType: string; + /** @description The maximum number of machines in the autoscaling group. */ + readonly max: number; + /** @description The minimum number of machines in the autoscaling group. */ + readonly min: number; + /** @description The name of the autoscaling group. */ + readonly name: string; + /** @description The ID of the network used by machines in the autoscaling group. */ + readonly networkId: string; + /** @description The timeout for provisioning machines in the autoscaling group, in minutes. */ + readonly provisioningTimeout: number | null; + /** @description The ID of the startup script used by machines in the autoscaling group. */ + readonly startupScriptId: string | null; + /** @description The ID of the template used by machines in the autoscaling group. */ + readonly templateId: string; + }; + }; + }; + default: components["responses"]["error"]; + }; }; /** * Update an autoscaling group * @description Update an autoscaling group. */ - "mutation.autoscalingGroups.update": { + "autoscalingGroups-update": { parameters: { readonly path: { /** @description The id of the autoscaling group. */ @@ -2172,7 +3935,7 @@ export interface operations { * Delete an autoscaling group * @description Delete an autoscaling group. */ - "mutation.autoscalingGroups.delete": { + "autoscalingGroups-delete": { parameters: { readonly path: { /** @description The id of the autoscaling group. */ @@ -2196,7 +3959,7 @@ export interface operations { * Get account standing * @description Check whether the current team account is in good standing. If not, send back a message explaining why. */ - "query.billingAccountStanding.get": { + "billingAccountStanding-get": { responses: { /** @description Successful response */ 200: { @@ -2216,7 +3979,7 @@ export interface operations { * List container registries * @description Lists container registries for the current team. */ - "query.containerRegistries.list": { + "containerRegistries-list": { parameters: { readonly query: { /** @description Fetch the next page of results after this cursor. */ @@ -2271,7 +4034,7 @@ export interface operations { * Create a container registry * @description Creates a container registry for the current team. */ - "mutation.containerRegistries.create": { + "containerRegistries-create": { readonly requestBody: { readonly content: { readonly "application/json": { @@ -2326,7 +4089,7 @@ export interface operations { * List container registries * @description Lists container registries for the current team. */ - "query.containerRegistries.get": { + "containerRegistries-get": { parameters: { readonly path: { /** @description The id of the container registry */ @@ -2368,7 +4131,7 @@ export interface operations { * Update a container registry * @description Updates a container registry for the current team. */ - "mutation.containerRegistries.update": { + "containerRegistries-update": { parameters: { readonly path: { /** @description The id of the container registry */ @@ -2429,7 +4192,7 @@ export interface operations { * Delete a container registry * @description Deletes a container registry for the current team. */ - "mutation.containerRegistries.delete": { + "containerRegistries-delete": { parameters: { readonly path: { /** @description The id of the container registry */ @@ -2471,7 +4234,7 @@ export interface operations { * Test a container registry connection * @description Validate that a container registry can be connected to using the provided credentials. */ - "mutation.containerRegistries.testConnection": { + "containerRegistries-testConnection": { parameters: { readonly path: { /** @description The id of the container registry */ @@ -2497,7 +4260,7 @@ export interface operations { * List deployments * @description Fetches a list of deployments for a logged in user. */ - "query.deployments.list": { + "deployments-list": { parameters: { readonly query: { /** @description Fetch the next page of results after this cursor. */ @@ -2537,130 +4300,332 @@ export interface operations { /** @description The data for the deployment spec */ readonly data?: | ( - | ({ - readonly apiVersion: "v0alpha0" | "latest"; - readonly command?: readonly (string)[]; - readonly containerRegistry?: string; - /** @default true */ - readonly enabled?: boolean; - readonly env?: readonly ({ + | ( + | ({ + /** @enum {string} */ + readonly apiVersion: "v0alpha0"; + readonly command?: readonly (string)[]; + readonly containerRegistry?: string; + /** @default true */ + readonly enabled?: boolean; + readonly env?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly healthChecks?: { + readonly liveness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly readiness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly startup?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + }; + readonly image: string; + readonly models?: readonly ({ + readonly id: string; + readonly path?: string; + })[]; readonly name: string; - readonly value: string; - })[]; - readonly healthChecks?: { - readonly liveness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ + /** @default 80 */ + readonly port?: number; + readonly region?: string; + readonly repositories?: { + readonly dataset: string; + readonly mountPath?: string; + readonly repositories: readonly ({ readonly name: string; - readonly value: string; + readonly password?: string; + readonly ref?: string; + readonly url: string; + readonly username?: string; })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; + }; + readonly resources: { + readonly autoscaling?: { + readonly enabled?: boolean; + readonly maxReplicas: number; + readonly metrics: readonly ( + | { + /** @enum {string} */ + readonly metric: "requestDuration"; + /** @enum {string} */ + readonly summary: "average"; + readonly value: number; + } + | ({ + /** @enum {string} */ + readonly metric: "cpu" | "memory"; + /** @enum {string} */ + readonly summary: "average"; + readonly value: number; + }) + )[]; }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; + readonly instanceType: string; + /** @default 1 */ + readonly replicas?: number; }; - readonly readiness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; + }) + | ({ + /** @enum {string} */ + readonly apiVersion: "v0alpha1"; + readonly command?: readonly (string)[]; + readonly containerRegistry?: string; + /** @default true */ + readonly enabled?: boolean; + readonly env?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly healthchecks?: { + readonly liveness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly readiness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly startup?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; }; - readonly startup?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; + readonly healthChecks?: { + readonly liveness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly readiness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly startup?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; }; - }; - readonly image: string; - readonly models?: readonly ({ - readonly id: string; - readonly path?: string; - })[]; - readonly name: string; - /** @default 80 */ - readonly port?: number; - readonly region?: string; - readonly repositories?: { - readonly dataset: string; - readonly mountPath?: string; - readonly repositories: readonly ({ + readonly image: string; + readonly integrations?: readonly ({ + readonly id: string; readonly name: string; - readonly password?: string; - readonly ref?: string; + /** @default /opt/models */ + readonly path?: string; + /** @enum {string} */ + readonly type: "model"; + } | { + readonly accessKeyId: string; + readonly endpoint?: string; + readonly name: string; + readonly path?: string; + readonly region?: string; + readonly secretAccessKey: string; + /** @enum {string} */ + readonly type: "s3"; + readonly url: string; + } | { + readonly name: string; + /** @enum {string} */ + readonly type: "volume"; + } | { + readonly name: string; + readonly path?: string; + /** @enum {string} */ + readonly type: "git-lfs"; + /** Format: uri */ readonly url: string; - readonly username?: string; })[]; - }; - readonly resources: { - readonly autoscaling?: { - readonly enabled?: boolean; - readonly maxReplicas: number; - readonly metrics: readonly ( - | { - /** @enum {string} */ - readonly metric: "requestDuration"; - /** @enum {string} */ - readonly summary: "average"; - readonly value: number; - } - | ({ - /** @enum {string} */ - readonly metric: "cpu" | "memory"; - /** @enum {string} */ - readonly summary: "average"; - readonly value: number; - }) - )[]; + readonly name: string; + readonly region?: string; + readonly resources: { + readonly autoscaling?: { + readonly enabled?: boolean; + readonly maxReplicas: number; + readonly metrics: readonly ( + | { + /** @enum {string} */ + readonly metric: "requestDuration"; + /** @enum {string} */ + readonly summary: "average"; + readonly value: number; + } + | ({ + /** @enum {string} */ + readonly metric: "cpu" | "memory"; + /** @enum {string} */ + readonly summary: "average"; + readonly value: number; + }) + )[]; + }; + readonly machineType: string; + readonly ports: readonly (number)[]; + /** @default 1 */ + readonly replicas?: number; }; - readonly instanceType: string; - /** @default 1 */ - readonly replicas?: number; - }; - }) + }) + ) | ({ - /** @enum {string} */ - readonly apiVersion: "v0alpha1"; + readonly apiVersion: "v1" | "latest"; readonly command?: readonly (string)[]; readonly containerRegistry?: string; /** @default true */ @@ -2680,7 +4645,7 @@ export interface operations { readonly initialDelaySeconds?: number; readonly path: string; readonly periodSeconds?: number; - readonly port: number; + readonly port?: number; readonly timeoutSeconds?: number; } | { readonly exec: { @@ -2701,7 +4666,7 @@ export interface operations { readonly initialDelaySeconds?: number; readonly path: string; readonly periodSeconds?: number; - readonly port: number; + readonly port?: number; readonly timeoutSeconds?: number; } | { readonly exec: { @@ -2722,7 +4687,7 @@ export interface operations { readonly initialDelaySeconds?: number; readonly path: string; readonly periodSeconds?: number; - readonly port: number; + readonly port?: number; readonly timeoutSeconds?: number; } | { readonly exec: { @@ -2745,7 +4710,7 @@ export interface operations { readonly initialDelaySeconds?: number; readonly path: string; readonly periodSeconds?: number; - readonly port: number; + readonly port?: number; readonly timeoutSeconds?: number; } | { readonly exec: { @@ -2766,7 +4731,7 @@ export interface operations { readonly initialDelaySeconds?: number; readonly path: string; readonly periodSeconds?: number; - readonly port: number; + readonly port?: number; readonly timeoutSeconds?: number; } | { readonly exec: { @@ -2787,7 +4752,7 @@ export interface operations { readonly initialDelaySeconds?: number; readonly path: string; readonly periodSeconds?: number; - readonly port: number; + readonly port?: number; readonly timeoutSeconds?: number; } | { readonly exec: { @@ -2801,27 +4766,36 @@ export interface operations { }; readonly image: string; readonly integrations?: readonly ({ + readonly id: string; + readonly name: string; + /** @default /opt/models */ + readonly path?: string; + /** @enum {string} */ + readonly type: "model"; + } | { + readonly accessKeyId: string; + readonly endpoint?: string; + readonly name: string; + readonly path?: string; + readonly region?: string; + readonly secretAccessKey: string; + /** @enum {string} */ + readonly type: "s3"; + readonly url: string; + } | { readonly name: string; /** @enum {string} */ readonly type: "volume"; - })[]; - readonly models?: readonly ({ - readonly id: string; + } | { + readonly name: string; readonly path?: string; + /** @enum {string} */ + readonly type: "git-lfs"; + /** Format: uri */ + readonly url: string; })[]; readonly name: string; readonly region?: string; - readonly repositories?: { - readonly dataset: string; - readonly mountPath?: string; - readonly repositories: readonly ({ - readonly name: string; - readonly password?: string; - readonly ref?: string; - readonly url: string; - readonly username?: string; - })[]; - }; readonly resources: { readonly autoscaling?: { readonly enabled?: boolean; @@ -2916,136 +4890,338 @@ export interface operations { * Upsert a deployment * @description Submit a new deployment configuration. If a deployment does not exist, one is created. Otherwise, a deployment is updated with new configuration. */ - "mutation.deployments.upsert": { + "deployments-upsert": { readonly requestBody: { readonly content: { readonly "application/json": { /** @description The deployment configuration */ readonly config: - | ({ - readonly apiVersion: "v0alpha0" | "latest"; - readonly command?: readonly (string)[]; - readonly containerRegistry?: string; - /** @default true */ - readonly enabled?: boolean; - readonly env?: readonly ({ + | ( + | ({ + /** @enum {string} */ + readonly apiVersion: "v0alpha0"; + readonly command?: readonly (string)[]; + readonly containerRegistry?: string; + /** @default true */ + readonly enabled?: boolean; + readonly env?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly healthChecks?: { + readonly liveness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly readiness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly startup?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + }; + readonly image: string; + readonly models?: readonly ({ + readonly id: string; + readonly path?: string; + })[]; readonly name: string; - readonly value: string; - })[]; - readonly healthChecks?: { - readonly liveness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ + /** @default 80 */ + readonly port?: number; + readonly region?: string; + readonly repositories?: { + readonly dataset: string; + readonly mountPath?: string; + readonly repositories: readonly ({ readonly name: string; - readonly value: string; + readonly password?: string; + readonly ref?: string; + readonly url: string; + readonly username?: string; })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; + }; + readonly resources: { + readonly autoscaling?: { + readonly enabled?: boolean; + readonly maxReplicas: number; + readonly metrics: readonly ( + | { + /** @enum {string} */ + readonly metric: "requestDuration"; + /** @enum {string} */ + readonly summary: "average"; + readonly value: number; + } + | ({ + /** @enum {string} */ + readonly metric: "cpu" | "memory"; + /** @enum {string} */ + readonly summary: "average"; + readonly value: number; + }) + )[]; }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; + readonly instanceType: string; + /** @default 1 */ + readonly replicas?: number; }; - readonly readiness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; + }) + | ({ + /** @enum {string} */ + readonly apiVersion: "v0alpha1"; + readonly command?: readonly (string)[]; + readonly containerRegistry?: string; + /** @default true */ + readonly enabled?: boolean; + readonly env?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly healthchecks?: { + readonly liveness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly readiness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly startup?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; }; - readonly startup?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; + readonly healthChecks?: { + readonly liveness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly readiness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly startup?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; }; - }; - readonly image: string; - readonly models?: readonly ({ - readonly id: string; - readonly path?: string; - })[]; - readonly name: string; - /** @default 80 */ - readonly port?: number; - readonly region?: string; - readonly repositories?: { - readonly dataset: string; - readonly mountPath?: string; - readonly repositories: readonly ({ + readonly image: string; + readonly integrations?: readonly ({ + readonly id: string; + readonly name: string; + /** @default /opt/models */ + readonly path?: string; + /** @enum {string} */ + readonly type: "model"; + } | { + readonly accessKeyId: string; + readonly endpoint?: string; + readonly name: string; + readonly path?: string; + readonly region?: string; + readonly secretAccessKey: string; + /** @enum {string} */ + readonly type: "s3"; + readonly url: string; + } | { + readonly name: string; + /** @enum {string} */ + readonly type: "volume"; + } | { readonly name: string; - readonly password?: string; - readonly ref?: string; + readonly path?: string; + /** @enum {string} */ + readonly type: "git-lfs"; + /** Format: uri */ readonly url: string; - readonly username?: string; })[]; - }; - readonly resources: { - readonly autoscaling?: { - readonly enabled?: boolean; - readonly maxReplicas: number; - readonly metrics: readonly ( - | { - /** @enum {string} */ - readonly metric: "requestDuration"; - /** @enum {string} */ - readonly summary: "average"; - readonly value: number; - } - | ({ - /** @enum {string} */ - readonly metric: "cpu" | "memory"; - /** @enum {string} */ - readonly summary: "average"; - readonly value: number; - }) - )[]; + readonly name: string; + readonly region?: string; + readonly resources: { + readonly autoscaling?: { + readonly enabled?: boolean; + readonly maxReplicas: number; + readonly metrics: readonly ( + | { + /** @enum {string} */ + readonly metric: "requestDuration"; + /** @enum {string} */ + readonly summary: "average"; + readonly value: number; + } + | ({ + /** @enum {string} */ + readonly metric: "cpu" | "memory"; + /** @enum {string} */ + readonly summary: "average"; + readonly value: number; + }) + )[]; + }; + readonly machineType: string; + readonly ports: readonly (number)[]; + /** @default 1 */ + readonly replicas?: number; }; - readonly instanceType: string; - /** @default 1 */ - readonly replicas?: number; - }; - }) + }) + ) | ({ - /** @enum {string} */ - readonly apiVersion: "v0alpha1"; + readonly apiVersion: "v1" | "latest"; readonly command?: readonly (string)[]; readonly containerRegistry?: string; /** @default true */ @@ -3065,7 +5241,7 @@ export interface operations { readonly initialDelaySeconds?: number; readonly path: string; readonly periodSeconds?: number; - readonly port: number; + readonly port?: number; readonly timeoutSeconds?: number; } | { readonly exec: { @@ -3086,7 +5262,7 @@ export interface operations { readonly initialDelaySeconds?: number; readonly path: string; readonly periodSeconds?: number; - readonly port: number; + readonly port?: number; readonly timeoutSeconds?: number; } | { readonly exec: { @@ -3107,7 +5283,7 @@ export interface operations { readonly initialDelaySeconds?: number; readonly path: string; readonly periodSeconds?: number; - readonly port: number; + readonly port?: number; readonly timeoutSeconds?: number; } | { readonly exec: { @@ -3130,7 +5306,7 @@ export interface operations { readonly initialDelaySeconds?: number; readonly path: string; readonly periodSeconds?: number; - readonly port: number; + readonly port?: number; readonly timeoutSeconds?: number; } | { readonly exec: { @@ -3151,7 +5327,7 @@ export interface operations { readonly initialDelaySeconds?: number; readonly path: string; readonly periodSeconds?: number; - readonly port: number; + readonly port?: number; readonly timeoutSeconds?: number; } | { readonly exec: { @@ -3172,7 +5348,7 @@ export interface operations { readonly initialDelaySeconds?: number; readonly path: string; readonly periodSeconds?: number; - readonly port: number; + readonly port?: number; readonly timeoutSeconds?: number; } | { readonly exec: { @@ -3186,27 +5362,36 @@ export interface operations { }; readonly image: string; readonly integrations?: readonly ({ + readonly id: string; + readonly name: string; + /** @default /opt/models */ + readonly path?: string; + /** @enum {string} */ + readonly type: "model"; + } | { + readonly accessKeyId: string; + readonly endpoint?: string; + readonly name: string; + readonly path?: string; + readonly region?: string; + readonly secretAccessKey: string; + /** @enum {string} */ + readonly type: "s3"; + readonly url: string; + } | { readonly name: string; /** @enum {string} */ readonly type: "volume"; - })[]; - readonly models?: readonly ({ - readonly id: string; + } | { + readonly name: string; readonly path?: string; + /** @enum {string} */ + readonly type: "git-lfs"; + /** Format: uri */ + readonly url: string; })[]; readonly name: string; readonly region?: string; - readonly repositories?: { - readonly dataset: string; - readonly mountPath?: string; - readonly repositories: readonly ({ - readonly name: string; - readonly password?: string; - readonly ref?: string; - readonly url: string; - readonly username?: string; - })[]; - }; readonly resources: { readonly autoscaling?: { readonly enabled?: boolean; @@ -3220,37 +5405,678 @@ export interface operations { readonly value: number; } | ({ - /** @enum {string} */ - readonly metric: "cpu" | "memory"; - /** @enum {string} */ - readonly summary: "average"; - readonly value: number; + /** @enum {string} */ + readonly metric: "cpu" | "memory"; + /** @enum {string} */ + readonly summary: "average"; + readonly value: number; + }) + )[]; + }; + readonly machineType: string; + readonly ports: readonly (number)[]; + /** @default 1 */ + readonly replicas?: number; + }; + }); + /** + * @description The ID of the deployment to update. + * @default null + */ + readonly deploymentId?: string | null; + /** @description The project ID to deploy resources under. */ + readonly projectId: string; + }; + }; + }; + responses: { + /** @description Successful response */ + 200: { + content: { + readonly "application/json": { + /** @description The ID of the deployment */ + readonly deploymentId: string; + }; + }; + }; + default: components["responses"]["error"]; + }; + }; + /** + * Get a deployment + * @description Fetches a single deployment by deployment ID. + */ + "deployments-get": { + parameters: { + readonly path: { + /** @description The ID of the deployment to fetch */ + id: string; + }; + }; + responses: { + /** @description Successful response */ + 200: { + content: { + readonly "application/json": { + /** + * Format: date-time + * @description The date the deployment was created + */ + readonly dtCreated: Date; + /** @description The unique endpoint for the deployment */ + readonly endpoint: string; + /** @description The ID of the deployment */ + readonly id: string; + /** + * @description The latest deployment configuration. If invalid, null is returned. + * @default null + */ + readonly latestSpec?: + | ({ + /** @description The data for the deployment spec */ + readonly data?: + | ( + | ( + | ({ + /** @enum {string} */ + readonly apiVersion: "v0alpha0"; + readonly command?: readonly (string)[]; + readonly containerRegistry?: string; + /** @default true */ + readonly enabled?: boolean; + readonly env?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly healthChecks?: { + readonly liveness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly readiness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly startup?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + }; + readonly image: string; + readonly models?: readonly ({ + readonly id: string; + readonly path?: string; + })[]; + readonly name: string; + /** @default 80 */ + readonly port?: number; + readonly region?: string; + readonly repositories?: { + readonly dataset: string; + readonly mountPath?: string; + readonly repositories: readonly ({ + readonly name: string; + readonly password?: string; + readonly ref?: string; + readonly url: string; + readonly username?: string; + })[]; + }; + readonly resources: { + readonly autoscaling?: { + readonly enabled?: boolean; + readonly maxReplicas: number; + readonly metrics: readonly ( + | { + /** @enum {string} */ + readonly metric: "requestDuration"; + /** @enum {string} */ + readonly summary: "average"; + readonly value: number; + } + | ({ + /** @enum {string} */ + readonly metric: "cpu" | "memory"; + /** @enum {string} */ + readonly summary: "average"; + readonly value: number; + }) + )[]; + }; + readonly instanceType: string; + /** @default 1 */ + readonly replicas?: number; + }; + }) + | ({ + /** @enum {string} */ + readonly apiVersion: "v0alpha1"; + readonly command?: readonly (string)[]; + readonly containerRegistry?: string; + /** @default true */ + readonly enabled?: boolean; + readonly env?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly healthchecks?: { + readonly liveness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly readiness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly startup?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + }; + readonly healthChecks?: { + readonly liveness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly readiness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly startup?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + }; + readonly image: string; + readonly integrations?: readonly ({ + readonly id: string; + readonly name: string; + /** @default /opt/models */ + readonly path?: string; + /** @enum {string} */ + readonly type: "model"; + } | { + readonly accessKeyId: string; + readonly endpoint?: string; + readonly name: string; + readonly path?: string; + readonly region?: string; + readonly secretAccessKey: string; + /** @enum {string} */ + readonly type: "s3"; + readonly url: string; + } | { + readonly name: string; + /** @enum {string} */ + readonly type: "volume"; + } | { + readonly name: string; + readonly path?: string; + /** @enum {string} */ + readonly type: "git-lfs"; + /** Format: uri */ + readonly url: string; + })[]; + readonly name: string; + readonly region?: string; + readonly resources: { + readonly autoscaling?: { + readonly enabled?: boolean; + readonly maxReplicas: number; + readonly metrics: readonly ( + | { + /** @enum {string} */ + readonly metric: "requestDuration"; + /** @enum {string} */ + readonly summary: "average"; + readonly value: number; + } + | ({ + /** @enum {string} */ + readonly metric: "cpu" | "memory"; + /** @enum {string} */ + readonly summary: "average"; + readonly value: number; + }) + )[]; + }; + readonly machineType: string; + readonly ports: readonly (number)[]; + /** @default 1 */ + readonly replicas?: number; + }; + }) + ) + | ({ + readonly apiVersion: "v1" | "latest"; + readonly command?: readonly (string)[]; + readonly containerRegistry?: string; + /** @default true */ + readonly enabled?: boolean; + readonly env?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly healthchecks?: { + readonly liveness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly readiness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly startup?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + }; + readonly healthChecks?: { + readonly liveness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly readiness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly startup?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + }; + readonly image: string; + readonly integrations?: readonly ({ + readonly id: string; + readonly name: string; + /** @default /opt/models */ + readonly path?: string; + /** @enum {string} */ + readonly type: "model"; + } | { + readonly accessKeyId: string; + readonly endpoint?: string; + readonly name: string; + readonly path?: string; + readonly region?: string; + readonly secretAccessKey: string; + /** @enum {string} */ + readonly type: "s3"; + readonly url: string; + } | { + readonly name: string; + /** @enum {string} */ + readonly type: "volume"; + } | { + readonly name: string; + readonly path?: string; + /** @enum {string} */ + readonly type: "git-lfs"; + /** Format: uri */ + readonly url: string; + })[]; + readonly name: string; + readonly region?: string; + readonly resources: { + readonly autoscaling?: { + readonly enabled?: boolean; + readonly maxReplicas: number; + readonly metrics: readonly ( + | { + /** @enum {string} */ + readonly metric: "requestDuration"; + /** @enum {string} */ + readonly summary: "average"; + readonly value: number; + } + | ({ + /** @enum {string} */ + readonly metric: "cpu" | "memory"; + /** @enum {string} */ + readonly summary: "average"; + readonly value: number; + }) + )[]; + }; + readonly machineType: string; + readonly ports: readonly (number)[]; + /** @default 1 */ + readonly replicas?: number; + }; }) - )[]; - }; - readonly machineType: string; - readonly ports: readonly (number)[]; - /** @default 1 */ - readonly replicas?: number; - }; - }); - /** - * @description The ID of the deployment to update. - * @default null - */ - readonly deploymentId?: string | null; - /** @description The project ID to deploy resources under. */ - readonly projectId: string; + ) + | null; + /** @description The ID of the deployment the spec belongs to */ + readonly deploymentId: string; + /** + * Format: date-time + * @description The date the deployment was marked "healthy" + * @default null + */ + readonly dtHealthy?: Date; + /** + * @description The fatal configuration error. Only present if the cluster was unable to apply the entire deployment configuration. This is not the same as an instance error. + * @default null + */ + readonly error?: string | null; + /** + * Format: date-time + * @description The date the deployment configuration was applied to the cluster + * @default null + */ + readonly externalApplied?: Date; + /** @description The ID of the deployment spec */ + readonly id: string; + /** + * @description Metadata about the source of the configuration + * @default null + */ + readonly metadata?: + | ({ + readonly gitHeaders?: { + readonly "x-git-actor": string; + readonly "x-git-host": "github" | "gitlab"; + readonly "x-git-owner": string; + readonly "x-git-ref": string; + readonly "x-git-repo": string; + readonly "x-git-sha": string; + }; + }) + | null; + /** @description The ID of the user the deployment belongs to */ + readonly userId: string; + }) + | null; + /** + * @description The last version hash for the deployment + * @default null + */ + readonly latestSpecHash?: string | null; + /** @description The name of the deployment */ + readonly name: string; + /** @description The ID of the project the deployment belongs to */ + readonly projectId: string; + /** @description The ID of the team the deployment belongs to */ + readonly teamId: string; + }; }; }; + default: components["responses"]["error"]; + }; + }; + /** + * Delete a deployment + * @description Deletes a deployment by deployment ID. + */ + "deployments-delete": { + parameters: { + readonly path: { + /** @description The ID of the deployment to delete */ + id: string; + }; }; responses: { /** @description Successful response */ 200: { content: { readonly "application/json": { - /** @description The ID of the deployment */ - readonly deploymentId: string; + /** @description The ID of the deleted deployment */ + readonly id: string; }; }; }; @@ -3258,13 +6084,23 @@ export interface operations { }; }; /** - * Get a deployment - * @description Fetches a single deployment by deployment ID. + * List app history + * @description Lists history for a given app. */ - "query.deployments.get": { + "deploymentHistory-list": { parameters: { + readonly query: { + /** @description Fetch the next page of results after this cursor. */ + after?: string; + /** @description The number of items to fetch after this page. */ + limit?: number; + /** @description Order results by one of these fields. */ + orderBy?: "dtCreated"; + /** @description The order to sort the results by. */ + order?: "asc" | "desc"; + }; readonly path: { - /** @description The ID of the deployment to fetch */ + /** @description The ID of the app */ id: string; }; }; @@ -3273,26 +6109,17 @@ export interface operations { 200: { content: { readonly "application/json": { - /** - * Format: date-time - * @description The date the deployment was created - */ - readonly dtCreated: Date; - /** @description The unique endpoint for the deployment */ - readonly endpoint: string; - /** @description The ID of the deployment */ - readonly id: string; - /** - * @description The latest deployment configuration. If invalid, null is returned. - * @default null - */ - readonly latestSpec?: - | ({ - /** @description The data for the deployment spec */ - readonly data?: + /** @description Whether there are more pages of results available. */ + readonly hasMore: boolean; + /** @description The items on this page. */ + readonly items: readonly ({ + /** @description The data for the deployment spec */ + readonly data?: + | ( | ( | ({ - readonly apiVersion: "v0alpha0" | "latest"; + /** @enum {string} */ + readonly apiVersion: "v0alpha0"; readonly command?: readonly (string)[]; readonly containerRegistry?: string; /** @default true */ @@ -3434,7 +6261,7 @@ export interface operations { readonly initialDelaySeconds?: number; readonly path: string; readonly periodSeconds?: number; - readonly port: number; + readonly port?: number; readonly timeoutSeconds?: number; } | { readonly exec: { @@ -3455,7 +6282,7 @@ export interface operations { readonly initialDelaySeconds?: number; readonly path: string; readonly periodSeconds?: number; - readonly port: number; + readonly port?: number; readonly timeoutSeconds?: number; } | { readonly exec: { @@ -3476,7 +6303,7 @@ export interface operations { readonly initialDelaySeconds?: number; readonly path: string; readonly periodSeconds?: number; - readonly port: number; + readonly port?: number; readonly timeoutSeconds?: number; } | { readonly exec: { @@ -3499,7 +6326,7 @@ export interface operations { readonly initialDelaySeconds?: number; readonly path: string; readonly periodSeconds?: number; - readonly port: number; + readonly port?: number; readonly timeoutSeconds?: number; } | { readonly exec: { @@ -3516,334 +6343,105 @@ export interface operations { readonly name: string; readonly value: string; })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - readonly startup?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - }; - readonly image: string; - readonly integrations?: readonly ({ - readonly name: string; - /** @enum {string} */ - readonly type: "volume"; - })[]; - readonly models?: readonly ({ - readonly id: string; - readonly path?: string; - })[]; - readonly name: string; - readonly region?: string; - readonly repositories?: { - readonly dataset: string; - readonly mountPath?: string; - readonly repositories: readonly ({ - readonly name: string; - readonly password?: string; - readonly ref?: string; - readonly url: string; - readonly username?: string; - })[]; - }; - readonly resources: { - readonly autoscaling?: { - readonly enabled?: boolean; - readonly maxReplicas: number; - readonly metrics: readonly ( - | { - /** @enum {string} */ - readonly metric: "requestDuration"; - /** @enum {string} */ - readonly summary: "average"; - readonly value: number; - } - | ({ - /** @enum {string} */ - readonly metric: "cpu" | "memory"; - /** @enum {string} */ - readonly summary: "average"; - readonly value: number; - }) - )[]; - }; - readonly machineType: string; - readonly ports: readonly (number)[]; - /** @default 1 */ - readonly replicas?: number; - }; - }) - ) - | null; - /** @description The ID of the deployment the spec belongs to */ - readonly deploymentId: string; - /** - * Format: date-time - * @description The date the deployment was marked "healthy" - * @default null - */ - readonly dtHealthy?: Date; - /** - * @description The fatal configuration error. Only present if the cluster was unable to apply the entire deployment configuration. This is not the same as an instance error. - * @default null - */ - readonly error?: string | null; - /** - * Format: date-time - * @description The date the deployment configuration was applied to the cluster - * @default null - */ - readonly externalApplied?: Date; - /** @description The ID of the deployment spec */ - readonly id: string; - /** - * @description Metadata about the source of the configuration - * @default null - */ - readonly metadata?: - | ({ - readonly gitHeaders?: { - readonly "x-git-actor": string; - readonly "x-git-host": "github" | "gitlab"; - readonly "x-git-owner": string; - readonly "x-git-ref": string; - readonly "x-git-repo": string; - readonly "x-git-sha": string; - }; - }) - | null; - /** @description The ID of the user the deployment belongs to */ - readonly userId: string; - }) - | null; - /** - * @description The last version hash for the deployment - * @default null - */ - readonly latestSpecHash?: string | null; - /** @description The name of the deployment */ - readonly name: string; - /** @description The ID of the project the deployment belongs to */ - readonly projectId: string; - /** @description The ID of the team the deployment belongs to */ - readonly teamId: string; - }; - }; - }; - default: components["responses"]["error"]; - }; - }; - /** - * Delete a deployment - * @description Deletes a deployment by deployment ID. - */ - "mutation.deployments.delete": { - parameters: { - readonly path: { - /** @description The ID of the deployment to delete */ - id: string; - }; - }; - responses: { - /** @description Successful response */ - 200: { - content: { - readonly "application/json": { - /** @description The ID of the deleted deployment */ - readonly id: string; - }; - }; - }; - default: components["responses"]["error"]; - }; - }; - /** - * List app history - * @description Lists history for a given app. - */ - "query.deploymentHistory.list": { - parameters: { - readonly query: { - /** @description Fetch the next page of results after this cursor. */ - after?: string; - /** @description The number of items to fetch after this page. */ - limit?: number; - /** @description Order results by one of these fields. */ - orderBy?: "dtCreated"; - /** @description The order to sort the results by. */ - order?: "asc" | "desc"; - }; - readonly path: { - /** @description The ID of the app */ - id: string; - }; - }; - responses: { - /** @description Successful response */ - 200: { - content: { - readonly "application/json": { - /** @description Whether there are more pages of results available. */ - readonly hasMore: boolean; - /** @description The items on this page. */ - readonly items: readonly ({ - /** @description The data for the deployment spec */ - readonly data?: - | ( - | ({ - readonly apiVersion: "v0alpha0" | "latest"; - readonly command?: readonly (string)[]; - readonly containerRegistry?: string; - /** @default true */ - readonly enabled?: boolean; - readonly env?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly healthChecks?: { - readonly liveness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - readonly readiness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; + readonly startup?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; }; - readonly startup?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; + readonly image: string; + readonly integrations?: readonly ({ + readonly id: string; + readonly name: string; + /** @default /opt/models */ + readonly path?: string; + /** @enum {string} */ + readonly type: "model"; + } | { + readonly accessKeyId: string; + readonly endpoint?: string; + readonly name: string; + readonly path?: string; + readonly region?: string; + readonly secretAccessKey: string; + /** @enum {string} */ + readonly type: "s3"; + readonly url: string; + } | { + readonly name: string; + /** @enum {string} */ + readonly type: "volume"; } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - }; - readonly image: string; - readonly models?: readonly ({ - readonly id: string; - readonly path?: string; - })[]; - readonly name: string; - /** @default 80 */ - readonly port?: number; - readonly region?: string; - readonly repositories?: { - readonly dataset: string; - readonly mountPath?: string; - readonly repositories: readonly ({ readonly name: string; - readonly password?: string; - readonly ref?: string; + readonly path?: string; + /** @enum {string} */ + readonly type: "git-lfs"; + /** Format: uri */ readonly url: string; - readonly username?: string; })[]; - }; - readonly resources: { - readonly autoscaling?: { - readonly enabled?: boolean; - readonly maxReplicas: number; - readonly metrics: readonly ( - | { - /** @enum {string} */ - readonly metric: "requestDuration"; - /** @enum {string} */ - readonly summary: "average"; - readonly value: number; - } - | ({ - /** @enum {string} */ - readonly metric: "cpu" | "memory"; - /** @enum {string} */ - readonly summary: "average"; - readonly value: number; - }) - )[]; + readonly name: string; + readonly region?: string; + readonly resources: { + readonly autoscaling?: { + readonly enabled?: boolean; + readonly maxReplicas: number; + readonly metrics: readonly ( + | { + /** @enum {string} */ + readonly metric: "requestDuration"; + /** @enum {string} */ + readonly summary: "average"; + readonly value: number; + } + | ({ + /** @enum {string} */ + readonly metric: "cpu" | "memory"; + /** @enum {string} */ + readonly summary: "average"; + readonly value: number; + }) + )[]; + }; + readonly machineType: string; + readonly ports: readonly (number)[]; + /** @default 1 */ + readonly replicas?: number; }; - readonly instanceType: string; - /** @default 1 */ - readonly replicas?: number; - }; - }) + }) + ) | ({ - /** @enum {string} */ - readonly apiVersion: "v0alpha1"; + readonly apiVersion: "v1" | "latest"; readonly command?: readonly (string)[]; readonly containerRegistry?: string; /** @default true */ @@ -3863,7 +6461,7 @@ export interface operations { readonly initialDelaySeconds?: number; readonly path: string; readonly periodSeconds?: number; - readonly port: number; + readonly port?: number; readonly timeoutSeconds?: number; } | { readonly exec: { @@ -3884,7 +6482,7 @@ export interface operations { readonly initialDelaySeconds?: number; readonly path: string; readonly periodSeconds?: number; - readonly port: number; + readonly port?: number; readonly timeoutSeconds?: number; } | { readonly exec: { @@ -3905,7 +6503,7 @@ export interface operations { readonly initialDelaySeconds?: number; readonly path: string; readonly periodSeconds?: number; - readonly port: number; + readonly port?: number; readonly timeoutSeconds?: number; } | { readonly exec: { @@ -3928,7 +6526,7 @@ export interface operations { readonly initialDelaySeconds?: number; readonly path: string; readonly periodSeconds?: number; - readonly port: number; + readonly port?: number; readonly timeoutSeconds?: number; } | { readonly exec: { @@ -3949,7 +6547,7 @@ export interface operations { readonly initialDelaySeconds?: number; readonly path: string; readonly periodSeconds?: number; - readonly port: number; + readonly port?: number; readonly timeoutSeconds?: number; } | { readonly exec: { @@ -3970,7 +6568,7 @@ export interface operations { readonly initialDelaySeconds?: number; readonly path: string; readonly periodSeconds?: number; - readonly port: number; + readonly port?: number; readonly timeoutSeconds?: number; } | { readonly exec: { @@ -3984,27 +6582,36 @@ export interface operations { }; readonly image: string; readonly integrations?: readonly ({ + readonly id: string; + readonly name: string; + /** @default /opt/models */ + readonly path?: string; + /** @enum {string} */ + readonly type: "model"; + } | { + readonly accessKeyId: string; + readonly endpoint?: string; + readonly name: string; + readonly path?: string; + readonly region?: string; + readonly secretAccessKey: string; + /** @enum {string} */ + readonly type: "s3"; + readonly url: string; + } | { readonly name: string; /** @enum {string} */ readonly type: "volume"; - })[]; - readonly models?: readonly ({ - readonly id: string; + } | { + readonly name: string; readonly path?: string; + /** @enum {string} */ + readonly type: "git-lfs"; + /** Format: uri */ + readonly url: string; })[]; readonly name: string; readonly region?: string; - readonly repositories?: { - readonly dataset: string; - readonly mountPath?: string; - readonly repositories: readonly ({ - readonly name: string; - readonly password?: string; - readonly ref?: string; - readonly url: string; - readonly username?: string; - })[]; - }; readonly resources: { readonly autoscaling?: { readonly enabled?: boolean; @@ -4104,8 +6711,21 @@ export interface operations { * @default null */ readonly message?: string | null; - /** @description The phase of the workflow run */ - readonly phase: string; + /** + * @description The phase of the workflow run + * @enum {string} + */ + readonly phase: + | "Initializing" + | "Submitting" + | "Pending" + | "Running" + | "Succeeded" + | "Skipped" + | "Failed" + | "Error" + | "Omitted" + | "Canceled"; readonly workflow: { /** * Format: date-time @@ -4141,7 +6761,7 @@ export interface operations { * List app logs * @description Lists logs for a given app. */ - "query.deploymentLogs.list": { + "deploymentLogs-list": { parameters: { readonly query: { /** @description Fetch the next page of results after this cursor. */ @@ -4205,7 +6825,7 @@ export interface operations { * List app metrics * @description Lists metrics for a given app. */ - "query.deploymentMetrics.get": { + "deploymentMetrics-get": { parameters: { readonly query: { /** @description The metric to fetch. */ @@ -4262,7 +6882,7 @@ export interface operations { * List deployment runs * @description Lists the active deployment runs for a deployment. */ - "query.deploymentRuns.get": { + "deploymentRuns-get": { parameters: { readonly query: { /** @description The latest n number of deployment runs to return */ @@ -4344,7 +6964,7 @@ export interface operations { * Health check * @description Check if the API is healthy. */ - "query.health": { + health: { responses: { /** @description Successful response */ 200: { @@ -4359,7 +6979,7 @@ export interface operations { * List machine events * @description Fetches a list of machine events. */ - "query.machineEvents.list": { + "machineEvents-list": { parameters: { readonly query: { /** @description Fetch the next page of results after this cursor. */ @@ -4448,7 +7068,7 @@ export interface operations { * Get a machine event * @description Fetches a single machine event by ID. */ - "query.machineEvents.get": { + "machineEvents-get": { parameters: { readonly path: { /** @description The ID of the machine event to fetch. */ @@ -4523,7 +7143,7 @@ export interface operations { * List machines * @description Fetches a list of machines. */ - "query.machines.list": { + "machines-list": { parameters: { readonly query: { /** @description Fetch the next page of results after this cursor. */ @@ -4551,12 +7171,14 @@ export interface operations { readonly items: readonly ({ /** @description The accelerators of the machine. */ readonly accelerators?: - | readonly ({ + | (readonly ({ /** @description The number of accelerators of this type. */ readonly count: number; + /** @description The amount of memory the accelerator has, if applicable. */ + readonly memory: number | null; /** @description The name of the accelerator. */ readonly name: string; - })[] + })[]) | null; /** @description The agent type of the machine. */ readonly agentType: string; @@ -4600,31 +7222,7 @@ export interface operations { /** @description The ID of the machine. */ readonly id: string; /** @description The type of the machine. */ - readonly machineType: { - /** @description The number of CPUs. */ - readonly cpus: number; - /** @description The name of the GPU. */ - readonly gpu: string | null; - /** @description The label of the machine type. */ - readonly label: string; - /** @description Metadata for the machine type. */ - readonly metadata: - | ({ - [key: string]: unknown | undefined; - }) - | null; - /** @description The name of the NVLink GPU. */ - readonly nvlinkGpu: string | null; - /** @description The number of NVLink GPUs. */ - readonly nvlinkGpuCount: number | null; - /** - * Format: int64 - * @description The amount of RAM in bytes. - */ - readonly ram: number; - /** @description Whether the machine type supports NVLink. */ - readonly supportsNvlink: boolean; - }; + readonly machineType: string; /** @description The name of the machine. */ readonly name: string; /** @description The ID of the network the machine is on. */ @@ -4698,7 +7296,7 @@ export interface operations { * Create a machine * @description Creates a new machine. */ - "mutation.machines.create": { + "machines-create": { readonly requestBody: { readonly content: { readonly "application/json": { @@ -4769,12 +7367,14 @@ export interface operations { readonly data: { /** @description The accelerators of the machine. */ readonly accelerators?: - | readonly ({ + | (readonly ({ /** @description The number of accelerators of this type. */ readonly count: number; + /** @description The amount of memory the accelerator has, if applicable. */ + readonly memory: number | null; /** @description The name of the accelerator. */ readonly name: string; - })[] + })[]) | null; /** @description The agent type of the machine. */ readonly agentType: string; @@ -4818,31 +7418,7 @@ export interface operations { /** @description The ID of the machine. */ readonly id: string; /** @description The type of the machine. */ - readonly machineType: { - /** @description The number of CPUs. */ - readonly cpus: number; - /** @description The name of the GPU. */ - readonly gpu: string | null; - /** @description The label of the machine type. */ - readonly label: string; - /** @description Metadata for the machine type. */ - readonly metadata: - | ({ - [key: string]: unknown | undefined; - }) - | null; - /** @description The name of the NVLink GPU. */ - readonly nvlinkGpu: string | null; - /** @description The number of NVLink GPUs. */ - readonly nvlinkGpuCount: number | null; - /** - * Format: int64 - * @description The amount of RAM in bytes. - */ - readonly ram: number; - /** @description Whether the machine type supports NVLink. */ - readonly supportsNvlink: boolean; - }; + readonly machineType: string; /** @description The name of the machine. */ readonly name: string; /** @description The ID of the network the machine is on. */ @@ -4970,7 +7546,7 @@ export interface operations { * Get a machine * @description Fetches a single machine by ID. */ - "query.machines.get": { + "machines-get": { parameters: { readonly path: { /** @description The ID of the machine to fetch. */ @@ -4984,12 +7560,14 @@ export interface operations { readonly "application/json": { /** @description The accelerators of the machine. */ readonly accelerators?: - | readonly ({ + | (readonly ({ /** @description The number of accelerators of this type. */ readonly count: number; + /** @description The amount of memory the accelerator has, if applicable. */ + readonly memory: number | null; /** @description The name of the accelerator. */ readonly name: string; - })[] + })[]) | null; /** @description The agent type of the machine. */ readonly agentType: string; @@ -5033,31 +7611,7 @@ export interface operations { /** @description The ID of the machine. */ readonly id: string; /** @description The type of the machine. */ - readonly machineType: { - /** @description The number of CPUs. */ - readonly cpus: number; - /** @description The name of the GPU. */ - readonly gpu: string | null; - /** @description The label of the machine type. */ - readonly label: string; - /** @description Metadata for the machine type. */ - readonly metadata: - | ({ - [key: string]: unknown | undefined; - }) - | null; - /** @description The name of the NVLink GPU. */ - readonly nvlinkGpu: string | null; - /** @description The number of NVLink GPUs. */ - readonly nvlinkGpuCount: number | null; - /** - * Format: int64 - * @description The amount of RAM in bytes. - */ - readonly ram: number; - /** @description Whether the machine type supports NVLink. */ - readonly supportsNvlink: boolean; - }; + readonly machineType: string; /** @description The name of the machine. */ readonly name: string; /** @description The ID of the network the machine is on. */ @@ -5128,7 +7682,7 @@ export interface operations { * Update a machine * @description Updates a machine. */ - "mutation.machines.update": { + "machines-update": { parameters: { readonly path: { /** @description The ID of the machine to update. */ @@ -5191,12 +7745,14 @@ export interface operations { readonly data: { /** @description The accelerators of the machine. */ readonly accelerators?: - | readonly ({ + | (readonly ({ /** @description The number of accelerators of this type. */ readonly count: number; + /** @description The amount of memory the accelerator has, if applicable. */ + readonly memory: number | null; /** @description The name of the accelerator. */ readonly name: string; - })[] + })[]) | null; /** @description The agent type of the machine. */ readonly agentType: string; @@ -5240,31 +7796,7 @@ export interface operations { /** @description The ID of the machine. */ readonly id: string; /** @description The type of the machine. */ - readonly machineType: { - /** @description The number of CPUs. */ - readonly cpus: number; - /** @description The name of the GPU. */ - readonly gpu: string | null; - /** @description The label of the machine type. */ - readonly label: string; - /** @description Metadata for the machine type. */ - readonly metadata: - | ({ - [key: string]: unknown | undefined; - }) - | null; - /** @description The name of the NVLink GPU. */ - readonly nvlinkGpu: string | null; - /** @description The number of NVLink GPUs. */ - readonly nvlinkGpuCount: number | null; - /** - * Format: int64 - * @description The amount of RAM in bytes. - */ - readonly ram: number; - /** @description Whether the machine type supports NVLink. */ - readonly supportsNvlink: boolean; - }; + readonly machineType: string; /** @description The name of the machine. */ readonly name: string; /** @description The ID of the network the machine is on. */ @@ -5392,7 +7924,7 @@ export interface operations { * Delete a machine * @description Deletes a single machine by ID. */ - "mutation.machines.delete": { + "machines-delete": { parameters: { readonly path: { /** @description The ID of the machine to delete. */ @@ -5408,12 +7940,14 @@ export interface operations { readonly data: { /** @description The accelerators of the machine. */ readonly accelerators?: - | readonly ({ + | (readonly ({ /** @description The number of accelerators of this type. */ readonly count: number; + /** @description The amount of memory the accelerator has, if applicable. */ + readonly memory: number | null; /** @description The name of the accelerator. */ readonly name: string; - })[] + })[]) | null; /** @description The agent type of the machine. */ readonly agentType: string; @@ -5457,31 +7991,7 @@ export interface operations { /** @description The ID of the machine. */ readonly id: string; /** @description The type of the machine. */ - readonly machineType: { - /** @description The number of CPUs. */ - readonly cpus: number; - /** @description The name of the GPU. */ - readonly gpu: string | null; - /** @description The label of the machine type. */ - readonly label: string; - /** @description Metadata for the machine type. */ - readonly metadata: - | ({ - [key: string]: unknown | undefined; - }) - | null; - /** @description The name of the NVLink GPU. */ - readonly nvlinkGpu: string | null; - /** @description The number of NVLink GPUs. */ - readonly nvlinkGpuCount: number | null; - /** - * Format: int64 - * @description The amount of RAM in bytes. - */ - readonly ram: number; - /** @description Whether the machine type supports NVLink. */ - readonly supportsNvlink: boolean; - }; + readonly machineType: string; /** @description The name of the machine. */ readonly name: string; /** @description The ID of the network the machine is on. */ @@ -5609,7 +8119,7 @@ export interface operations { * List accessors * @description Lists the team members that can explicitly access a machine. */ - "query.machines.listAccessors": { + "machines-listAccessors": { parameters: { readonly query: { /** @description Fetch the next page of results after this cursor. */ @@ -5679,7 +8189,7 @@ export interface operations { * Add an accessor * @description Adds an accessor to a machine. */ - "mutation.machines.addAccessor": { + "machines-addAccessor": { parameters: { readonly path: { /** @description The ID of the machine to add an accessor to. */ @@ -5740,7 +8250,7 @@ export interface operations { * Get an accessor * @description Get an accessor for a machine. */ - "query.machines.getAccessor": { + "machines-getAccessor": { parameters: { readonly path: { /** @description The ID of the machine to get an accessor for. */ @@ -5795,7 +8305,7 @@ export interface operations { * Delete an accessor * @description Deletes an accessor from a machine. */ - "mutation.machines.removeAccessor": { + "machines-removeAccessor": { parameters: { readonly path: { /** @description The ID of the machine to add an accessor to. */ @@ -5850,7 +8360,7 @@ export interface operations { * Get desktop settings * @description Gets the machine settings that are used to configure desktop streaming. */ - "query.machines.getDesktop": { + "machines-getDesktop": { parameters: { readonly path: { /** @description The ID of the machine. */ @@ -5890,18 +8400,13 @@ export interface operations { * Restart a machine * @description Restarts a machine. */ - "mutation.machines.restart": { + "machines-restart": { parameters: { readonly path: { /** @description The ID of the machine to restart. */ id: string; }; }; - readonly requestBody: { - readonly content: { - readonly "application/json": Record; - }; - }; responses: { /** @description Successful response */ 200: { @@ -5911,12 +8416,14 @@ export interface operations { readonly data: { /** @description The accelerators of the machine. */ readonly accelerators?: - | readonly ({ + | (readonly ({ /** @description The number of accelerators of this type. */ readonly count: number; + /** @description The amount of memory the accelerator has, if applicable. */ + readonly memory: number | null; /** @description The name of the accelerator. */ readonly name: string; - })[] + })[]) | null; /** @description The agent type of the machine. */ readonly agentType: string; @@ -5960,31 +8467,7 @@ export interface operations { /** @description The ID of the machine. */ readonly id: string; /** @description The type of the machine. */ - readonly machineType: { - /** @description The number of CPUs. */ - readonly cpus: number; - /** @description The name of the GPU. */ - readonly gpu: string | null; - /** @description The label of the machine type. */ - readonly label: string; - /** @description Metadata for the machine type. */ - readonly metadata: - | ({ - [key: string]: unknown | undefined; - }) - | null; - /** @description The name of the NVLink GPU. */ - readonly nvlinkGpu: string | null; - /** @description The number of NVLink GPUs. */ - readonly nvlinkGpuCount: number | null; - /** - * Format: int64 - * @description The amount of RAM in bytes. - */ - readonly ram: number; - /** @description Whether the machine type supports NVLink. */ - readonly supportsNvlink: boolean; - }; + readonly machineType: string; /** @description The name of the machine. */ readonly name: string; /** @description The ID of the network the machine is on. */ @@ -6112,18 +8595,13 @@ export interface operations { * Start a machine * @description Starts a machine. */ - "mutation.machines.start": { + "machines-start": { parameters: { readonly path: { /** @description The ID of the machine to start. */ id: string; }; }; - readonly requestBody: { - readonly content: { - readonly "application/json": Record; - }; - }; responses: { /** @description Successful response */ 200: { @@ -6133,12 +8611,14 @@ export interface operations { readonly data: { /** @description The accelerators of the machine. */ readonly accelerators?: - | readonly ({ + | (readonly ({ /** @description The number of accelerators of this type. */ readonly count: number; + /** @description The amount of memory the accelerator has, if applicable. */ + readonly memory: number | null; /** @description The name of the accelerator. */ readonly name: string; - })[] + })[]) | null; /** @description The agent type of the machine. */ readonly agentType: string; @@ -6179,34 +8659,10 @@ export interface operations { * @description The date the machine was last modified. */ readonly dtModified: Date; - /** @description The ID of the machine. */ - readonly id: string; - /** @description The type of the machine. */ - readonly machineType: { - /** @description The number of CPUs. */ - readonly cpus: number; - /** @description The name of the GPU. */ - readonly gpu: string | null; - /** @description The label of the machine type. */ - readonly label: string; - /** @description Metadata for the machine type. */ - readonly metadata: - | ({ - [key: string]: unknown | undefined; - }) - | null; - /** @description The name of the NVLink GPU. */ - readonly nvlinkGpu: string | null; - /** @description The number of NVLink GPUs. */ - readonly nvlinkGpuCount: number | null; - /** - * Format: int64 - * @description The amount of RAM in bytes. - */ - readonly ram: number; - /** @description Whether the machine type supports NVLink. */ - readonly supportsNvlink: boolean; - }; + /** @description The ID of the machine. */ + readonly id: string; + /** @description The type of the machine. */ + readonly machineType: string; /** @description The name of the machine. */ readonly name: string; /** @description The ID of the network the machine is on. */ @@ -6334,18 +8790,13 @@ export interface operations { * Stop a machine * @description Stops a machine. */ - "mutation.machines.stop": { + "machines-stop": { parameters: { readonly path: { /** @description The ID of the machine to stop. */ id: string; }; }; - readonly requestBody: { - readonly content: { - readonly "application/json": Record; - }; - }; responses: { /** @description Successful response */ 200: { @@ -6355,12 +8806,14 @@ export interface operations { readonly data: { /** @description The accelerators of the machine. */ readonly accelerators?: - | readonly ({ + | (readonly ({ /** @description The number of accelerators of this type. */ readonly count: number; + /** @description The amount of memory the accelerator has, if applicable. */ + readonly memory: number | null; /** @description The name of the accelerator. */ readonly name: string; - })[] + })[]) | null; /** @description The agent type of the machine. */ readonly agentType: string; @@ -6404,31 +8857,7 @@ export interface operations { /** @description The ID of the machine. */ readonly id: string; /** @description The type of the machine. */ - readonly machineType: { - /** @description The number of CPUs. */ - readonly cpus: number; - /** @description The name of the GPU. */ - readonly gpu: string | null; - /** @description The label of the machine type. */ - readonly label: string; - /** @description Metadata for the machine type. */ - readonly metadata: - | ({ - [key: string]: unknown | undefined; - }) - | null; - /** @description The name of the NVLink GPU. */ - readonly nvlinkGpu: string | null; - /** @description The number of NVLink GPUs. */ - readonly nvlinkGpuCount: number | null; - /** - * Format: int64 - * @description The amount of RAM in bytes. - */ - readonly ram: number; - /** @description Whether the machine type supports NVLink. */ - readonly supportsNvlink: boolean; - }; + readonly machineType: string; /** @description The name of the machine. */ readonly name: string; /** @description The ID of the network the machine is on. */ @@ -6556,7 +8985,7 @@ export interface operations { * List notebooks * @description Lists the notebooks you have access to in the current team */ - "query.notebooks.list": { + "notebooks-list": { parameters: { readonly query: { /** @description Fetch the next page of results after this cursor. */ @@ -6668,7 +9097,7 @@ export interface operations { * List private networks * @description Fetches a list of private networks. */ - "query.privateNetworks.list": { + "privateNetworks-list": { parameters: { readonly query: { /** @description Fetch the next page of results after this cursor. */ @@ -6722,7 +9151,7 @@ export interface operations { * Create a private network * @description Creates a new private network. */ - "mutation.privateNetworks.create": { + "privateNetworks-create": { readonly requestBody: { readonly content: { readonly "application/json": { @@ -6770,7 +9199,7 @@ export interface operations { * Get a private network * @description Fetches a single private network by ID. */ - "query.privateNetworks.get": { + "privateNetworks-get": { parameters: { readonly path: { /** @description The ID of the private network to fetch. */ @@ -6781,25 +9210,27 @@ export interface operations { /** @description Successful response */ 200: { content: { - readonly "application/json": { - /** - * Format: date-time - * @description The date the private network was created. - */ - readonly dtCreated: Date; - /** @description The date the private network was deleted. */ - readonly dtDeleted?: (Record | Date) | null; - /** @description The ID of the private network. */ - readonly id: string; - /** @description The name of the private network. */ - readonly name: string; - /** @description The subnet mask of the private network. */ - readonly netmask: string; - /** @description The network prefix of the private network. */ - readonly network: string; - /** @description The region the private network is in. */ - readonly region: string; - }; + readonly "application/json": + | ({ + /** + * Format: date-time + * @description The date the private network was created. + */ + readonly dtCreated: Date; + /** @description The date the private network was deleted. */ + readonly dtDeleted?: (Record | Date) | null; + /** @description The ID of the private network. */ + readonly id: string; + /** @description The name of the private network. */ + readonly name: string; + /** @description The subnet mask of the private network. */ + readonly netmask: string; + /** @description The network prefix of the private network. */ + readonly network: string; + /** @description The region the private network is in. */ + readonly region: string; + }) + | null; }; }; default: components["responses"]["error"]; @@ -6809,7 +9240,7 @@ export interface operations { * Update a private network * @description Updates a single private network by ID. */ - "mutation.privateNetworks.update": { + "privateNetworks-update": { parameters: { readonly path: { /** @description The ID of the private network to update. */ @@ -6856,7 +9287,7 @@ export interface operations { * Delete a private network * @description Deletes a single private network by ID. */ - "mutation.privateNetworks.delete": { + "privateNetworks-delete": { parameters: { readonly path: { /** @description The ID of the private network to delete. */ @@ -6881,7 +9312,7 @@ export interface operations { * @description * List projects. This endpoint supports pagination and sorting. */ - "query.projects.list": { + "projects-list": { parameters: { readonly query: { /** @description Fetch the next page of results after this cursor. */ @@ -6946,7 +9377,7 @@ export interface operations { * Create a project * @description Create a project */ - "mutation.projects.create": { + "projects-create": { readonly requestBody: { readonly content: { readonly "application/json": { @@ -7000,7 +9431,7 @@ export interface operations { * Get a project by its ID * @description Get a project by its ID. */ - "query.projects.get": { + "projects-get": { parameters: { readonly path: { /** @description The ID of the project to get */ @@ -7052,7 +9483,7 @@ export interface operations { * Update a project * @description Update a project */ - "mutation.projects.update": { + "projects-update": { parameters: { readonly path: { /** @description The ID of the project to update */ @@ -7112,7 +9543,7 @@ export interface operations { * Delete a project * @description Delete a project */ - "mutation.projects.delete": { + "projects-delete": { parameters: { readonly path: { /** @description The ID of the project to delete */ @@ -7164,7 +9595,7 @@ export interface operations { * List a project's activity * @description Fetches a list of activity items for a given project. */ - "query.projectActivity.list": { + "projectActivity-list": { parameters: { readonly query: { /** @description Fetch the next page of results after this cursor. */ @@ -7211,50 +9642,686 @@ export interface operations { readonly actor?: | ({ /** - * @description The avatar URL of the actor + * @description The avatar URL of the actor + * @default null + */ + readonly avatarUrl?: string | null; + /** + * @description The email of the actor + * @default null + */ + readonly email?: string | null; + /** + * @description The full name of the actor (e.g. "John Doe") + * @default null + */ + readonly fullName?: string | null; + }) + | null; + /** + * @description The data associated with the activity item + * @default null + */ + readonly data?: { + readonly from: number; + readonly to: number; + } | null; + /** + * @description The deployment associated with the activity item + * @default null + */ + readonly deployment?: { + /** @description The ID of the deployment */ + readonly id: string; + /** @description The name of the deployment */ + readonly name: string; + } | null; + /** + * Format: date-time + * @description The date the activity item was created + */ + readonly dtCreated: Date; + /** + * Format: uuid + * @description ID of the activity item + */ + readonly id: string; + })[]; + /** @description The cursor required to fetch the next page of results. i.e. `?after=nextPage`. This is `null` when there is no next page. */ + readonly nextPage?: string; + }; + }; + }; + default: components["responses"]["error"]; + }; + }; + /** + * List a project's apps + * @description Fetches a list of apps for a project. + */ + "projectApps-list": { + parameters: { + readonly query: { + /** @description Fetch the next page of results after this cursor. */ + after?: string; + /** @description The number of items to fetch after this page. */ + limit?: number; + /** @description Order results by one of these fields. */ + orderBy?: "dtCreated"; + /** @description The order to sort the results by. */ + order?: "asc" | "desc"; + /** @description The name of the app to filter by */ + name?: string; + }; + readonly path: { + /** @description The ID of the project to fetch apps for */ + id: string; + }; + }; + responses: { + /** @description Successful response */ + 200: { + content: { + readonly "application/json": { + /** @description Whether there are more pages of results available. */ + readonly hasMore: boolean; + /** @description The items on this page. */ + readonly items: readonly ({ + /** + * Format: date-time + * @description The date the deployment was created + */ + readonly dtCreated: Date; + /** @description The unique endpoint for the deployment */ + readonly endpoint: string; + /** @description The ID of the deployment */ + readonly id: string; + /** + * @description The latest deployment configuration. If invalid, null is returned. + * @default null + */ + readonly latestSpec?: + | ({ + /** @description The data for the deployment spec */ + readonly data?: + | ( + | ( + | ({ + /** @enum {string} */ + readonly apiVersion: "v0alpha0"; + readonly command?: readonly (string)[]; + readonly containerRegistry?: string; + /** @default true */ + readonly enabled?: boolean; + readonly env?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly healthChecks?: { + readonly liveness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly readiness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly startup?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + }; + readonly image: string; + readonly models?: readonly ({ + readonly id: string; + readonly path?: string; + })[]; + readonly name: string; + /** @default 80 */ + readonly port?: number; + readonly region?: string; + readonly repositories?: { + readonly dataset: string; + readonly mountPath?: string; + readonly repositories: readonly ({ + readonly name: string; + readonly password?: string; + readonly ref?: string; + readonly url: string; + readonly username?: string; + })[]; + }; + readonly resources: { + readonly autoscaling?: { + readonly enabled?: boolean; + readonly maxReplicas: number; + readonly metrics: readonly ( + | { + /** @enum {string} */ + readonly metric: "requestDuration"; + /** @enum {string} */ + readonly summary: "average"; + readonly value: number; + } + | ({ + /** @enum {string} */ + readonly metric: "cpu" | "memory"; + /** @enum {string} */ + readonly summary: "average"; + readonly value: number; + }) + )[]; + }; + readonly instanceType: string; + /** @default 1 */ + readonly replicas?: number; + }; + }) + | ({ + /** @enum {string} */ + readonly apiVersion: "v0alpha1"; + readonly command?: readonly (string)[]; + readonly containerRegistry?: string; + /** @default true */ + readonly enabled?: boolean; + readonly env?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly healthchecks?: { + readonly liveness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly readiness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly startup?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + }; + readonly healthChecks?: { + readonly liveness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly readiness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly startup?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + }; + readonly image: string; + readonly integrations?: readonly ({ + readonly id: string; + readonly name: string; + /** @default /opt/models */ + readonly path?: string; + /** @enum {string} */ + readonly type: "model"; + } | { + readonly accessKeyId: string; + readonly endpoint?: string; + readonly name: string; + readonly path?: string; + readonly region?: string; + readonly secretAccessKey: string; + /** @enum {string} */ + readonly type: "s3"; + readonly url: string; + } | { + readonly name: string; + /** @enum {string} */ + readonly type: "volume"; + } | { + readonly name: string; + readonly path?: string; + /** @enum {string} */ + readonly type: "git-lfs"; + /** Format: uri */ + readonly url: string; + })[]; + readonly name: string; + readonly region?: string; + readonly resources: { + readonly autoscaling?: { + readonly enabled?: boolean; + readonly maxReplicas: number; + readonly metrics: readonly ( + | { + /** @enum {string} */ + readonly metric: "requestDuration"; + /** @enum {string} */ + readonly summary: "average"; + readonly value: number; + } + | ({ + /** @enum {string} */ + readonly metric: "cpu" | "memory"; + /** @enum {string} */ + readonly summary: "average"; + readonly value: number; + }) + )[]; + }; + readonly machineType: string; + readonly ports: readonly (number)[]; + /** @default 1 */ + readonly replicas?: number; + }; + }) + ) + | ({ + readonly apiVersion: "v1" | "latest"; + readonly command?: readonly (string)[]; + readonly containerRegistry?: string; + /** @default true */ + readonly enabled?: boolean; + readonly env?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly healthchecks?: { + readonly liveness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly readiness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly startup?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + }; + readonly healthChecks?: { + readonly liveness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly readiness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly startup?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + }; + readonly image: string; + readonly integrations?: readonly ({ + readonly id: string; + readonly name: string; + /** @default /opt/models */ + readonly path?: string; + /** @enum {string} */ + readonly type: "model"; + } | { + readonly accessKeyId: string; + readonly endpoint?: string; + readonly name: string; + readonly path?: string; + readonly region?: string; + readonly secretAccessKey: string; + /** @enum {string} */ + readonly type: "s3"; + readonly url: string; + } | { + readonly name: string; + /** @enum {string} */ + readonly type: "volume"; + } | { + readonly name: string; + readonly path?: string; + /** @enum {string} */ + readonly type: "git-lfs"; + /** Format: uri */ + readonly url: string; + })[]; + readonly name: string; + readonly region?: string; + readonly resources: { + readonly autoscaling?: { + readonly enabled?: boolean; + readonly maxReplicas: number; + readonly metrics: readonly ( + | { + /** @enum {string} */ + readonly metric: "requestDuration"; + /** @enum {string} */ + readonly summary: "average"; + readonly value: number; + } + | ({ + /** @enum {string} */ + readonly metric: "cpu" | "memory"; + /** @enum {string} */ + readonly summary: "average"; + readonly value: number; + }) + )[]; + }; + readonly machineType: string; + readonly ports: readonly (number)[]; + /** @default 1 */ + readonly replicas?: number; + }; + }) + ) + | null; + /** @description The ID of the deployment the spec belongs to */ + readonly deploymentId: string; + /** + * Format: date-time + * @description The date the deployment was marked "healthy" * @default null */ - readonly avatarUrl?: string | null; + readonly dtHealthy?: Date; /** - * @description The email of the actor + * @description The fatal configuration error. Only present if the cluster was unable to apply the entire deployment configuration. This is not the same as an instance error. * @default null */ - readonly email?: string | null; + readonly error?: string | null; /** - * @description The full name of the actor (e.g. "John Doe") + * Format: date-time + * @description The date the deployment configuration was applied to the cluster * @default null */ - readonly fullName?: string | null; + readonly externalApplied?: Date; + /** @description The ID of the deployment spec */ + readonly id: string; + /** + * @description Metadata about the source of the configuration + * @default null + */ + readonly metadata?: + | ({ + readonly gitHeaders?: { + readonly "x-git-actor": string; + readonly "x-git-host": "github" | "gitlab"; + readonly "x-git-owner": string; + readonly "x-git-ref": string; + readonly "x-git-repo": string; + readonly "x-git-sha": string; + }; + }) + | null; + /** @description The ID of the user the deployment belongs to */ + readonly userId: string; }) | null; /** - * @description The data associated with the activity item - * @default null - */ - readonly data?: { - readonly from: number; - readonly to: number; - } | null; - /** - * @description The deployment associated with the activity item + * @description The last version hash for the deployment * @default null */ - readonly deployment?: { - /** @description The ID of the deployment */ - readonly id: string; - /** @description The name of the deployment */ - readonly name: string; - } | null; - /** - * Format: date-time - * @description The date the activity item was created - */ - readonly dtCreated: Date; - /** - * Format: uuid - * @description ID of the activity item - */ - readonly id: string; + readonly latestSpecHash?: string | null; + /** @description The name of the deployment */ + readonly name: string; + /** @description The ID of the project the deployment belongs to */ + readonly projectId: string; + /** @description The ID of the team the deployment belongs to */ + readonly teamId: string; })[]; /** @description The cursor required to fetch the next page of results. i.e. `?after=nextPage`. This is `null` when there is no next page. */ readonly nextPage?: string; @@ -7268,7 +10335,7 @@ export interface operations { * List a project's collaborators * @description Fetches a list of collaborators for a project. */ - "query.projectCollaborators.list": { + "projectCollaborators-list": { parameters: { readonly query: { /** @description Fetch the next page of results after this cursor. */ @@ -7343,7 +10410,7 @@ export interface operations { * Create a project collaborator * @description Adds a new collaborator to a project. */ - "mutation.projectCollaborators.create": { + "projectCollaborators-create": { parameters: { readonly path: { /** @description The ID of the project. */ @@ -7409,7 +10476,7 @@ export interface operations { * Delete a project collaborator * @description Removes a collaborator from a project. */ - "mutation.projectCollaborators.delete": { + "projectCollaborators-delete": { parameters: { readonly path: { /** @description The ID of the project. */ @@ -7435,7 +10502,7 @@ export interface operations { * List a project's deployments * @description Fetches a list of deployments for a project. */ - "query.projectsDeployments.list": { + "projectDeployments-list": { parameters: { readonly query: { /** @description Fetch the next page of results after this cursor. */ @@ -7446,7 +10513,7 @@ export interface operations { orderBy?: "dtCreated"; /** @description The order to sort the results by. */ order?: "asc" | "desc"; - /** @description The name of the deployment to filter by */ + /** @description The name of the app to filter by */ name?: string; }; readonly path: { @@ -7481,130 +10548,332 @@ export interface operations { /** @description The data for the deployment spec */ readonly data?: | ( - | ({ - readonly apiVersion: "v0alpha0" | "latest"; - readonly command?: readonly (string)[]; - readonly containerRegistry?: string; - /** @default true */ - readonly enabled?: boolean; - readonly env?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly healthChecks?: { - readonly liveness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - readonly readiness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; + | ( + | ({ + /** @enum {string} */ + readonly apiVersion: "v0alpha0"; + readonly command?: readonly (string)[]; + readonly containerRegistry?: string; + /** @default true */ + readonly enabled?: boolean; + readonly env?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly healthChecks?: { + readonly liveness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly readiness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly startup?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; }; - readonly startup?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ + readonly image: string; + readonly models?: readonly ({ + readonly id: string; + readonly path?: string; + })[]; + readonly name: string; + /** @default 80 */ + readonly port?: number; + readonly region?: string; + readonly repositories?: { + readonly dataset: string; + readonly mountPath?: string; + readonly repositories: readonly ({ readonly name: string; - readonly value: string; + readonly password?: string; + readonly ref?: string; + readonly url: string; + readonly username?: string; })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; + }; + readonly resources: { + readonly autoscaling?: { + readonly enabled?: boolean; + readonly maxReplicas: number; + readonly metrics: readonly ( + | { + /** @enum {string} */ + readonly metric: "requestDuration"; + /** @enum {string} */ + readonly summary: "average"; + readonly value: number; + } + | ({ + /** @enum {string} */ + readonly metric: "cpu" | "memory"; + /** @enum {string} */ + readonly summary: "average"; + readonly value: number; + }) + )[]; }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; + readonly instanceType: string; + /** @default 1 */ + readonly replicas?: number; }; - }; - readonly image: string; - readonly models?: readonly ({ - readonly id: string; - readonly path?: string; - })[]; - readonly name: string; - /** @default 80 */ - readonly port?: number; - readonly region?: string; - readonly repositories?: { - readonly dataset: string; - readonly mountPath?: string; - readonly repositories: readonly ({ + }) + | ({ + /** @enum {string} */ + readonly apiVersion: "v0alpha1"; + readonly command?: readonly (string)[]; + readonly containerRegistry?: string; + /** @default true */ + readonly enabled?: boolean; + readonly env?: readonly ({ readonly name: string; - readonly password?: string; - readonly ref?: string; + readonly value: string; + })[]; + readonly healthchecks?: { + readonly liveness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly readiness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly startup?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + }; + readonly healthChecks?: { + readonly liveness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly readiness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly startup?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + }; + readonly image: string; + readonly integrations?: readonly ({ + readonly id: string; + readonly name: string; + /** @default /opt/models */ + readonly path?: string; + /** @enum {string} */ + readonly type: "model"; + } | { + readonly accessKeyId: string; + readonly endpoint?: string; + readonly name: string; + readonly path?: string; + readonly region?: string; + readonly secretAccessKey: string; + /** @enum {string} */ + readonly type: "s3"; + readonly url: string; + } | { + readonly name: string; + /** @enum {string} */ + readonly type: "volume"; + } | { + readonly name: string; + readonly path?: string; + /** @enum {string} */ + readonly type: "git-lfs"; + /** Format: uri */ readonly url: string; - readonly username?: string; })[]; - }; - readonly resources: { - readonly autoscaling?: { - readonly enabled?: boolean; - readonly maxReplicas: number; - readonly metrics: readonly ( - | { - /** @enum {string} */ - readonly metric: "requestDuration"; - /** @enum {string} */ - readonly summary: "average"; - readonly value: number; - } - | ({ - /** @enum {string} */ - readonly metric: "cpu" | "memory"; - /** @enum {string} */ - readonly summary: "average"; - readonly value: number; - }) - )[]; + readonly name: string; + readonly region?: string; + readonly resources: { + readonly autoscaling?: { + readonly enabled?: boolean; + readonly maxReplicas: number; + readonly metrics: readonly ( + | { + /** @enum {string} */ + readonly metric: "requestDuration"; + /** @enum {string} */ + readonly summary: "average"; + readonly value: number; + } + | ({ + /** @enum {string} */ + readonly metric: "cpu" | "memory"; + /** @enum {string} */ + readonly summary: "average"; + readonly value: number; + }) + )[]; + }; + readonly machineType: string; + readonly ports: readonly (number)[]; + /** @default 1 */ + readonly replicas?: number; }; - readonly instanceType: string; - /** @default 1 */ - readonly replicas?: number; - }; - }) + }) + ) | ({ - /** @enum {string} */ - readonly apiVersion: "v0alpha1"; + readonly apiVersion: "v1" | "latest"; readonly command?: readonly (string)[]; readonly containerRegistry?: string; /** @default true */ @@ -7624,7 +10893,7 @@ export interface operations { readonly initialDelaySeconds?: number; readonly path: string; readonly periodSeconds?: number; - readonly port: number; + readonly port?: number; readonly timeoutSeconds?: number; } | { readonly exec: { @@ -7645,7 +10914,7 @@ export interface operations { readonly initialDelaySeconds?: number; readonly path: string; readonly periodSeconds?: number; - readonly port: number; + readonly port?: number; readonly timeoutSeconds?: number; } | { readonly exec: { @@ -7666,7 +10935,7 @@ export interface operations { readonly initialDelaySeconds?: number; readonly path: string; readonly periodSeconds?: number; - readonly port: number; + readonly port?: number; readonly timeoutSeconds?: number; } | { readonly exec: { @@ -7689,7 +10958,7 @@ export interface operations { readonly initialDelaySeconds?: number; readonly path: string; readonly periodSeconds?: number; - readonly port: number; + readonly port?: number; readonly timeoutSeconds?: number; } | { readonly exec: { @@ -7710,7 +10979,7 @@ export interface operations { readonly initialDelaySeconds?: number; readonly path: string; readonly periodSeconds?: number; - readonly port: number; + readonly port?: number; readonly timeoutSeconds?: number; } | { readonly exec: { @@ -7731,7 +11000,7 @@ export interface operations { readonly initialDelaySeconds?: number; readonly path: string; readonly periodSeconds?: number; - readonly port: number; + readonly port?: number; readonly timeoutSeconds?: number; } | { readonly exec: { @@ -7745,27 +11014,36 @@ export interface operations { }; readonly image: string; readonly integrations?: readonly ({ + readonly id: string; + readonly name: string; + /** @default /opt/models */ + readonly path?: string; + /** @enum {string} */ + readonly type: "model"; + } | { + readonly accessKeyId: string; + readonly endpoint?: string; + readonly name: string; + readonly path?: string; + readonly region?: string; + readonly secretAccessKey: string; + /** @enum {string} */ + readonly type: "s3"; + readonly url: string; + } | { readonly name: string; /** @enum {string} */ readonly type: "volume"; - })[]; - readonly models?: readonly ({ - readonly id: string; + } | { + readonly name: string; readonly path?: string; + /** @enum {string} */ + readonly type: "git-lfs"; + /** Format: uri */ + readonly url: string; })[]; readonly name: string; readonly region?: string; - readonly repositories?: { - readonly dataset: string; - readonly mountPath?: string; - readonly repositories: readonly ({ - readonly name: string; - readonly password?: string; - readonly ref?: string; - readonly url: string; - readonly username?: string; - })[]; - }; readonly resources: { readonly autoscaling?: { readonly enabled?: boolean; @@ -7837,16 +11115,381 @@ export interface operations { }) | null; /** - * @description The last version hash for the deployment + * @description The last version hash for the deployment + * @default null + */ + readonly latestSpecHash?: string | null; + /** @description The name of the deployment */ + readonly name: string; + /** @description The ID of the project the deployment belongs to */ + readonly projectId: string; + /** @description The ID of the team the deployment belongs to */ + readonly teamId: string; + })[]; + /** @description The cursor required to fetch the next page of results. i.e. `?after=nextPage`. This is `null` when there is no next page. */ + readonly nextPage?: string; + }; + }; + }; + default: components["responses"]["error"]; + }; + }; + /** + * List a project's models + * @description Fetches a list of models for a project. + */ + "projectModels-list": { + parameters: { + readonly query: { + /** @description Fetch the next page of results after this cursor. */ + after?: string; + /** @description The number of items to fetch after this page. */ + limit?: number; + /** @description Order results by one of these fields. */ + orderBy?: "dtCreated"; + /** @description The order to sort the results by. */ + order?: "asc" | "desc"; + /** @description The name of the model to filter by */ + name?: string; + }; + readonly path: { + /** @description The ID of the project to fetch models for */ + id: string; + }; + }; + responses: { + /** @description Successful response */ + 200: { + content: { + readonly "application/json": { + /** @description Whether there are more pages of results available. */ + readonly hasMore: boolean; + /** @description The items on this page. */ + readonly items: readonly ({ + /** @description The description of the dataset */ + readonly description: string | null; + /** + * Format: date-time + * @description The date the dataset was created + */ + readonly dtCreated: Date; + /** + * Format: date-time + * @description The date the dataset was last modified + */ + readonly dtModified: Date; + /** @description The ID of the dataset */ + readonly id: string; + /** @description Whether the dataset is public */ + readonly isPublic: boolean; + /** @description The name of the dataset */ + readonly name: string; + /** @description The ID of the project */ + readonly projectId: string | null; + /** @description The ID of the storage provider */ + readonly storageProviderId: string | null; + /** @description The ID of the team that owns the dataset */ + readonly teamId: string; + })[]; + /** @description The cursor required to fetch the next page of results. i.e. `?after=nextPage`. This is `null` when there is no next page. */ + readonly nextPage?: string; + }; + }; + }; + default: components["responses"]["error"]; + }; + }; + /** + * Add a model to a project + * @description Adds a model to a project. + */ + "projectModels-add": { + parameters: { + readonly path: { + /** @description The ID of the project to add the model to */ + id: string; + /** @description The ID of the model to add to the project */ + modelId: string; + }; + }; + responses: { + /** @description Successful response */ + 200: { + content: { + readonly "application/json": { + /** @description The description of the dataset */ + readonly description: string | null; + /** + * Format: date-time + * @description The date the dataset was created + */ + readonly dtCreated: Date; + /** + * Format: date-time + * @description The date the dataset was last modified + */ + readonly dtModified: Date; + /** @description The ID of the dataset */ + readonly id: string; + /** @description Whether the dataset is public */ + readonly isPublic: boolean; + /** @description The name of the dataset */ + readonly name: string; + /** @description The ID of the project */ + readonly projectId: string | null; + /** @description The ID of the storage provider */ + readonly storageProviderId: string | null; + /** @description The ID of the team that owns the dataset */ + readonly teamId: string; + }; + }; + }; + default: components["responses"]["error"]; + }; + }; + /** + * Remove a model from project + * @description Remove a model from project. + */ + "projectModels-remove": { + parameters: { + readonly path: { + /** @description The ID of the project to remove the model from */ + id: string; + /** @description The ID of the model to remove from the project */ + modelId: string; + }; + }; + responses: { + /** @description Successful response */ + 200: { + content: { + readonly "application/json": { + /** @description The description of the dataset */ + readonly description: string | null; + /** + * Format: date-time + * @description The date the dataset was created + */ + readonly dtCreated: Date; + /** + * Format: date-time + * @description The date the dataset was last modified + */ + readonly dtModified: Date; + /** @description The ID of the dataset */ + readonly id: string; + /** @description Whether the dataset is public */ + readonly isPublic: boolean; + /** @description The name of the dataset */ + readonly name: string; + /** @description The ID of the project */ + readonly projectId: string | null; + /** @description The ID of the storage provider */ + readonly storageProviderId: string | null; + /** @description The ID of the team that owns the dataset */ + readonly teamId: string; + }; + }; + }; + default: components["responses"]["error"]; + }; + }; + /** + * Remove a notebook from a project + * @description Remove a notebook from a project. + */ + "projectNotebooks-remove": { + parameters: { + readonly path: { + /** @description The ID of the project to remove the notebook from */ + id: string; + /** @description The ID of the notebook to remove from the project */ + notebookId: string; + }; + }; + responses: { + /** @description Successful response */ + 200: { + content: { + readonly "application/json": { + /** + * Format: date-time + * @description The date the notebook was created + */ + readonly dtCreated: Date; + /** + * Format: date-time + * @description The date the notebook was last modified + */ + readonly dtModified: Date; + /** + * Format: date-time + * @description The date the notebook was last started + */ + readonly dtStarted: Date; + /** @description The ID of the notebook */ + readonly id: string; + /** @description The type of the machine the notebook is running on */ + readonly machineType: string | null; + /** @description The name of the notebook */ + readonly name: string; + /** @description The notebook repo ID */ + readonly notebookRepoId: string | null; + /** @description The project ID */ + readonly projectId: string; + /** @description The last user to start the notebook */ + readonly startedByUser: { + /** + * Format: email + * @description The email address of the user + */ + readonly email: string; + /** + * @description The first name of the user * @default null */ - readonly latestSpecHash?: string | null; - /** @description The name of the deployment */ + readonly firstName?: string | null; + /** @description The ID of the user */ + readonly id: string; + /** + * @description The last name of the user + * @default null + */ + readonly lastName?: string | null; + /** + * @description The URL of the team's profile image. + * @default null + */ + readonly publicProfileImageUrl?: string | null; + }; + /** + * @description The state of the notebook. + * @enum {string} + */ + readonly state: + | "Cancel" + | "Cancelled" + | "Error" + | "Failed" + | "Pending" + | "Preempted" + | "Provisioned" + | "Running" + | "Stopped"; + }; + }; + }; + default: components["responses"]["error"]; + }; + }; + /** + * List a project's notebooks + * @description Fetches a list of notebooks for a project. + */ + "projectNotebooks-list": { + parameters: { + readonly query: { + /** @description Fetch the next page of results after this cursor. */ + after?: string; + /** @description The number of items to fetch after this page. */ + limit?: number; + /** @description Order results by one of these fields. */ + orderBy?: "dtCreated" | "name"; + /** @description The order to sort the results by. */ + order?: "asc" | "desc"; + /** @description The notebook name to filter by */ + name?: string; + /** @description The state of the notebook. */ + state?: + | "Cancel" + | "Cancelled" + | "Error" + | "Failed" + | "Pending" + | "Preempted" + | "Provisioned" + | "Running" + | "Stopped"; + }; + readonly path: { + /** @description The ID of the project to fetch notebooks for */ + id: string; + }; + }; + responses: { + /** @description Successful response */ + 200: { + content: { + readonly "application/json": { + /** @description Whether there are more pages of results available. */ + readonly hasMore: boolean; + /** @description The items on this page. */ + readonly items: readonly ({ + /** + * Format: date-time + * @description The date the notebook was created + */ + readonly dtCreated: Date; + /** + * Format: date-time + * @description The date the notebook was last modified + */ + readonly dtModified: Date; + /** + * Format: date-time + * @description The date the notebook was last started + */ + readonly dtStarted: Date; + /** @description The ID of the notebook */ + readonly id: string; + /** @description The type of the machine the notebook is running on */ + readonly machineType: string | null; + /** @description The name of the notebook */ readonly name: string; - /** @description The ID of the project the deployment belongs to */ + /** @description The notebook repo ID */ + readonly notebookRepoId: string | null; + /** @description The project ID */ readonly projectId: string; - /** @description The ID of the team the deployment belongs to */ - readonly teamId: string; + /** @description The last user to start the notebook */ + readonly startedByUser: { + /** + * Format: email + * @description The email address of the user + */ + readonly email: string; + /** + * @description The first name of the user + * @default null + */ + readonly firstName?: string | null; + /** @description The ID of the user */ + readonly id: string; + /** + * @description The last name of the user + * @default null + */ + readonly lastName?: string | null; + /** + * @description The URL of the team's profile image. + * @default null + */ + readonly publicProfileImageUrl?: string | null; + }; + /** + * @description The state of the notebook. + * @enum {string} + */ + readonly state: + | "Cancel" + | "Cancelled" + | "Error" + | "Failed" + | "Pending" + | "Preempted" + | "Provisioned" + | "Running" + | "Stopped"; })[]; /** @description The cursor required to fetch the next page of results. i.e. `?after=nextPage`. This is `null` when there is no next page. */ readonly nextPage?: string; @@ -7856,11 +11499,99 @@ export interface operations { default: components["responses"]["error"]; }; }; + /** + * Add a notebook to a project + * @description Adds a notebook to a project. + */ + "projectNotebooks-add": { + parameters: { + readonly path: { + /** @description The ID of the project to add the notebook to */ + id: string; + /** @description The ID of the notebook to add to the project */ + notebookId: string; + }; + }; + responses: { + /** @description Successful response */ + 200: { + content: { + readonly "application/json": { + /** + * Format: date-time + * @description The date the notebook was created + */ + readonly dtCreated: Date; + /** + * Format: date-time + * @description The date the notebook was last modified + */ + readonly dtModified: Date; + /** + * Format: date-time + * @description The date the notebook was last started + */ + readonly dtStarted: Date; + /** @description The ID of the notebook */ + readonly id: string; + /** @description The type of the machine the notebook is running on */ + readonly machineType: string | null; + /** @description The name of the notebook */ + readonly name: string; + /** @description The notebook repo ID */ + readonly notebookRepoId: string | null; + /** @description The project ID */ + readonly projectId: string; + /** @description The last user to start the notebook */ + readonly startedByUser: { + /** + * Format: email + * @description The email address of the user + */ + readonly email: string; + /** + * @description The first name of the user + * @default null + */ + readonly firstName?: string | null; + /** @description The ID of the user */ + readonly id: string; + /** + * @description The last name of the user + * @default null + */ + readonly lastName?: string | null; + /** + * @description The URL of the team's profile image. + * @default null + */ + readonly publicProfileImageUrl?: string | null; + }; + /** + * @description The state of the notebook. + * @enum {string} + */ + readonly state: + | "Cancel" + | "Cancelled" + | "Error" + | "Failed" + | "Pending" + | "Preempted" + | "Provisioned" + | "Running" + | "Stopped"; + }; + }; + }; + default: components["responses"]["error"]; + }; + }; /** * List a project's secrets * @description Fetches a list of secrets for a project. */ - "query.projectSecrets.list": { + "projectSecrets-list": { parameters: { readonly query: { /** @description Fetch the next page of results after this cursor. */ @@ -7911,7 +11642,7 @@ export interface operations { * Create a project secret * @description Creates a new secret for a project. */ - "mutation.projectSecrets.create": { + "projectSecrets-create": { parameters: { readonly path: { /** @description The ID of the project where the secret is stored. */ @@ -7955,7 +11686,7 @@ export interface operations { * Get a project secret * @description Fetches a secret for a project. */ - "query.projectSecrets.getProjectSecret": { + "projectSecrets-getProjectSecret": { parameters: { readonly path: { /** @description The ID of the project where the secret is stored. */ @@ -7991,7 +11722,7 @@ export interface operations { * Delete a project secret * @description Deletes a secret for a project. */ - "mutation.projectSecrets.delete": { + "projectSecrets-delete": { parameters: { readonly path: { /** @description The ID of the project where the secret is stored. */ @@ -8017,7 +11748,7 @@ export interface operations { * Update a project secret * @description Update the value of a secret for a project. */ - "mutation.projectSecrets.update": { + "projectSecrets-update": { parameters: { readonly path: { /** @description The ID of the project where the secret is stored. */ @@ -8061,7 +11792,7 @@ export interface operations { * List public IPs * @description Fetches a list of public IPs. */ - "query.publicIps.list": { + "publicIps-list": { parameters: { readonly query: { /** @description Fetch the next page of results after this cursor. */ @@ -8108,7 +11839,7 @@ export interface operations { * Claim a public IP * @description Claims a public IP. */ - "mutation.publicIps.claim": { + "publicIps-claim": { readonly requestBody: { readonly content: { readonly "application/json": { @@ -8143,7 +11874,7 @@ export interface operations { * Assign a public IP * @description Assigns a public IP to a machine. */ - "mutation.publicIps.assign": { + "publicIps-assign": { parameters: { readonly path: { /** @description The IP address of the public IP. */ @@ -8184,7 +11915,7 @@ export interface operations { * Release a public IP * @description Releases a public IP. */ - "mutation.publicIps.release": { + "publicIps-release": { parameters: { readonly path: { /** @description The IP address of the public IP. */ @@ -8207,7 +11938,7 @@ export interface operations { * List shared drives * @description Fetches a list of shared drives. */ - "query.sharedDrives.list": { + "sharedDrives-list": { parameters: { readonly query: { /** @description Fetch the next page of results after this cursor. */ @@ -8270,7 +12001,7 @@ export interface operations { * Create a shared drive * @description Creates a new shared drive for use in a private network. */ - "mutation.sharedDrives.create": { + "sharedDrives-create": { readonly requestBody: { readonly content: { readonly "application/json": { @@ -8326,7 +12057,7 @@ export interface operations { * Get a shared drive * @description Fetches a single shared drive by ID. */ - "query.sharedDrives.get": { + "sharedDrives-get": { parameters: { readonly path: { /** @description The ID of the shared drive to fetch. */ @@ -8374,7 +12105,7 @@ export interface operations { * Update a shared drive * @description Updates a single shared drive by ID. */ - "mutation.sharedDrives.update": { + "sharedDrives-update": { parameters: { readonly path: { /** @description The ID of the shared drive to fetch. */ @@ -8430,7 +12161,7 @@ export interface operations { * Delete a shared drive * @description Deletes a single shared drive by ID. */ - "mutation.sharedDrives.delete": { + "sharedDrives-delete": { parameters: { readonly path: { /** @description The ID of the shared drive to delete. */ @@ -8454,7 +12185,7 @@ export interface operations { * List snapshots * @description List snapshots and filter by machine. */ - "query.snapshots.list": { + "snapshots-list": { parameters: { readonly query: { /** @description Fetch the next page of results after this cursor. */ @@ -8498,7 +12229,7 @@ export interface operations { * Create snapshot * @description Create a snapshot for a machine. */ - "mutation.snapshots.create": { + "snapshots-create": { readonly requestBody: { readonly content: { readonly "application/json": { @@ -8591,7 +12322,7 @@ export interface operations { * Get a snapshot * @description Fetches a single snapshot by ID. */ - "query.snapshots.get": { + "snapshots-get": { parameters: { readonly path: { /** @description The ID of the snapshot. */ @@ -8621,7 +12352,7 @@ export interface operations { * Update a snapshot * @description Updates a single snapshot by ID. */ - "mutation.snapshots.update": { + "snapshots-update": { parameters: { readonly path: { /** @description The ID of the snapshot. */ @@ -8659,7 +12390,7 @@ export interface operations { * Delete snapshot * @description Delete a snapshot for a machine. */ - "mutation.snapshots.delete": { + "snapshots-delete": { parameters: { readonly path: { /** @description The ID of the snapshot. */ @@ -8748,7 +12479,7 @@ export interface operations { * Restore snapshot * @description Restore a snapshot for a machine. */ - "mutation.snapshots.restore": { + "snapshots-restore": { parameters: { readonly path: { /** @description The ID of the snapshot. */ @@ -8845,7 +12576,7 @@ export interface operations { * List startup scripts * @description Fetches a list of startup scripts. */ - "query.startupScripts.list": { + "startupScripts-list": { parameters: { readonly query: { /** @description Fetch the next page of results after this cursor. */ @@ -8903,7 +12634,7 @@ export interface operations { * Create startup script * @description Create a startup script. */ - "mutation.startupScripts.create": { + "startupScripts-create": { readonly requestBody: { readonly content: { readonly "application/json": { @@ -8956,7 +12687,7 @@ export interface operations { * Get a startup script * @description Fetches a single startup script by ID. */ - "query.startupScripts.get": { + "startupScripts-get": { parameters: { readonly path: { /** @description The ID of the startup script to fetch. */ @@ -9000,7 +12731,7 @@ export interface operations { * Update startup script * @description Update a startup script. */ - "mutation.startupScripts.update": { + "startupScripts-update": { parameters: { readonly path: { /** @description The id of the startup script. */ @@ -9058,7 +12789,7 @@ export interface operations { * Delete startup script * @description Delete a startup script. */ - "mutation.startupScripts.delete": { + "startupScripts-delete": { parameters: { readonly path: { /** @description The id of the startup script. */ @@ -9102,7 +12833,7 @@ export interface operations { * Assign startup script to machine * @description Assign a startup script to a machine. */ - "mutation.startupScripts.assign": { + "startupScripts-assign": { parameters: { readonly path: { /** @description The id of the startup script. */ @@ -9154,7 +12885,7 @@ export interface operations { * Unassign startup script from machine * @description Unassign a startup script from a machine. */ - "mutation.startupScripts.unassign": { + "startupScripts-unassign": { parameters: { readonly path: { /** @description The id of the startup script. */ @@ -9206,7 +12937,7 @@ export interface operations { * List storage providers * @description List storage providers */ - "query.storageProviders.list": { + "storageProviders-list": { parameters: { readonly query: { /** @description Fetch the next page of results after this cursor. */ @@ -9230,14 +12961,21 @@ export interface operations { readonly items: readonly ({ /** @description The ID of the storage provider */ readonly id: string; + /** @description Whether the storage provider is managed by Paperspace */ + readonly isManaged: boolean; + /** @description Whether the storage provider is the team's default provider */ + readonly isTeamDefault: boolean | null; /** @description The name of the storage provider */ readonly name: string; /** @description The storage provider configuration */ readonly s3Config: { readonly accessKey: string; readonly bucket: string; - /** Format: uri */ - readonly endpoint: string | null; + /** + * Format: uri + * @default null + */ + readonly endpoint?: string | null; readonly region?: string | null; /** @default false */ readonly retainData?: boolean | null; @@ -9257,7 +12995,7 @@ export interface operations { * Create a storage provider * @description Create a storage provider */ - "mutation.storageProviders.create": { + "storageProviders-create": { readonly requestBody: { readonly content: { readonly "application/json": { @@ -9269,8 +13007,11 @@ export interface operations { readonly s3Config: { readonly accessKey: string; readonly bucket: string; - /** Format: uri */ - readonly endpoint: string | null; + /** + * Format: uri + * @default null + */ + readonly endpoint?: string | null; readonly region?: string | null; /** @default false */ readonly retainData?: boolean | null; @@ -9292,14 +13033,21 @@ export interface operations { readonly "application/json": { /** @description The ID of the storage provider */ readonly id: string; + /** @description Whether the storage provider is managed by Paperspace */ + readonly isManaged: boolean; + /** @description Whether the storage provider is the team's default provider */ + readonly isTeamDefault: boolean | null; /** @description The name of the storage provider */ readonly name: string; /** @description The storage provider configuration */ readonly s3Config: { readonly accessKey: string; readonly bucket: string; - /** Format: uri */ - readonly endpoint: string | null; + /** + * Format: uri + * @default null + */ + readonly endpoint?: string | null; readonly region?: string | null; /** @default false */ readonly retainData?: boolean | null; @@ -9316,7 +13064,7 @@ export interface operations { * Get a storage provider * @description Get a storage provider */ - "query.storageProviders.get": { + "storageProviders-get": { parameters: { readonly path: { /** @description The ID of the storage provider */ @@ -9330,14 +13078,21 @@ export interface operations { readonly "application/json": { /** @description The ID of the storage provider */ readonly id: string; + /** @description Whether the storage provider is managed by Paperspace */ + readonly isManaged: boolean; + /** @description Whether the storage provider is the team's default provider */ + readonly isTeamDefault: boolean | null; /** @description The name of the storage provider */ readonly name: string; /** @description The storage provider configuration */ readonly s3Config: { readonly accessKey: string; readonly bucket: string; - /** Format: uri */ - readonly endpoint: string | null; + /** + * Format: uri + * @default null + */ + readonly endpoint?: string | null; readonly region?: string | null; /** @default false */ readonly retainData?: boolean | null; @@ -9354,7 +13109,7 @@ export interface operations { * Update a storage provider * @description Update a storage provider */ - "mutation.storageProviders.update": { + "storageProviders-update": { parameters: { readonly path: { /** @description The ID of the storage provider */ @@ -9366,12 +13121,17 @@ export interface operations { readonly "application/json": { /** @description Is team default */ readonly isTeamDefault: boolean; + /** @description The name of the storage provider */ + readonly name: string; /** @description The storage provider configuration */ readonly s3Config: { readonly accessKey: string; readonly bucket: string; - /** Format: uri */ - readonly endpoint: string | null; + /** + * Format: uri + * @default null + */ + readonly endpoint?: string | null; readonly region?: string | null; /** @default false */ readonly retainData?: boolean | null; @@ -9388,14 +13148,21 @@ export interface operations { readonly "application/json": { /** @description The ID of the storage provider */ readonly id: string; + /** @description Whether the storage provider is managed by Paperspace */ + readonly isManaged: boolean; + /** @description Whether the storage provider is the team's default provider */ + readonly isTeamDefault: boolean | null; /** @description The name of the storage provider */ readonly name: string; /** @description The storage provider configuration */ readonly s3Config: { readonly accessKey: string; readonly bucket: string; - /** Format: uri */ - readonly endpoint: string | null; + /** + * Format: uri + * @default null + */ + readonly endpoint?: string | null; readonly region?: string | null; /** @default false */ readonly retainData?: boolean | null; @@ -9412,7 +13179,7 @@ export interface operations { * Delete a storage provider * @description Delete a storage provider */ - "mutation.storageProviders.delete": { + "storageProviders-delete": { parameters: { readonly path: { /** @description The ID of the storage provider */ @@ -9436,7 +13203,7 @@ export interface operations { * Get storage utilization * @description Get a breakdown of how storage is being used by your team */ - "query.storageUtilization.getPublic": { + "storageUtilization-getPublic": { responses: { /** @description Successful response */ 200: { @@ -9466,7 +13233,7 @@ export interface operations { * List a team's secrets * @description Fetches a list of secrets for a team. */ - "query.teamSecrets.list": { + "teamSecrets-list": { parameters: { readonly query: { /** @description Fetch the next page of results after this cursor. */ @@ -9517,7 +13284,7 @@ export interface operations { * Create a team secret * @description Creates a new secret for a team. */ - "mutation.teamSecrets.create": { + "teamSecrets-create": { parameters: { readonly path: { /** @description The ID of the team where the secret is stored. */ @@ -9561,7 +13328,7 @@ export interface operations { * Get a team secret * @description Fetches a secret for a team. */ - "query.teamSecrets.get": { + "teamSecrets-get": { parameters: { readonly path: { /** @description The ID of the team where the secret is stored. */ @@ -9597,7 +13364,7 @@ export interface operations { * Delete a team secret * @description Deletes a secret for a team. */ - "mutation.teamSecrets.delete": { + "teamSecrets-delete": { parameters: { readonly path: { /** @description The ID of the team where the secret is stored. */ @@ -9623,7 +13390,7 @@ export interface operations { * Update a team secret * @description Update the value of a secret for a team. */ - "mutation.teamSecrets.update": { + "teamSecrets-update": { parameters: { readonly path: { /** @description The ID of the team where the secret is stored. */ @@ -9667,7 +13434,7 @@ export interface operations { * List templates * @description Fetches a list of templates. */ - "query.templates.list": { + "templates-list": { parameters: { readonly query: { /** @description Fetch the next page of results after this cursor. */ @@ -9737,7 +13504,7 @@ export interface operations { * Create template * @description Create a template for a machine. */ - "mutation.templates.create": { + "templates-create": { readonly requestBody: { readonly content: { readonly "application/json": { @@ -9855,7 +13622,7 @@ export interface operations { * Get a template * @description Fetches a single template by ID. */ - "query.templates.get": { + "templates-get": { parameters: { readonly path: { /** @description The ID of the template to fetch. */ @@ -9910,7 +13677,7 @@ export interface operations { * Update a template * @description Updates a single template by ID. */ - "mutation.templates.update": { + "templates-update": { parameters: { readonly path: { /** @description The ID of the template to update. */ @@ -9973,7 +13740,7 @@ export interface operations { * Delete template * @description Delete a template. */ - "mutation.templates.delete": { + "templates-delete": { parameters: { readonly path: { /** @description The ID of the template to delete. */ @@ -10028,7 +13795,7 @@ export interface operations { * List workflow run logs * @description Lists logs for a given workflow run. */ - "query.workflowRunLogs.list": { + "workflowRunLogs-list": { parameters: { readonly path: { /** @description The ID of the workflow */ diff --git a/commands/init/mod.ts b/commands/init/mod.ts index 733037c..f9da160 100644 --- a/commands/init/mod.ts +++ b/commands/init/mod.ts @@ -10,6 +10,7 @@ import { asserts } from "../../lib/asserts.ts"; import { config } from "../../config.ts"; import { paths } from "../../api/openapi.ts"; import { logger } from "../../logger.ts"; +import { apps } from "../../api/apps.ts"; /** * This variable is automatically generated by `zcli add`. Do not remove this @@ -95,24 +96,37 @@ export const init = command("init", { ); const existingLinks = await config.get("projects"); - let app: paths["/projects/{id}"]["get"]["responses"]["200"]["content"][ + let app: paths["/apps/{id}"]["get"]["responses"]["200"]["content"][ "application/json" ]; const link = existingLinks[dest]; if (!link) { logger.info(`Project doesn't exist. Creating a new one.`); - const res = await loading(projects.create({ name: appName }), { - text: "Creating app", - enabled: !flags.json, - }); + const res = await loading( + apps.create({ + config: { + apiVersion: "latest", + image: "some demo image", + name: appName, + resources: { + machineType: "K80", + ports: [], + }, + }, + }), + { + text: "Creating app", + enabled: !flags.json, + }, + ); asserts(res.ok, res); app = res.data; } else { logger.info( `Project already exists, skipping creation. (link: ${link.id})`, ); - const res = await projects.get({ id: link.id }); + const res = await apps.get({ id: link.id }); asserts(res.ok, res); app = res.data; } @@ -127,7 +141,7 @@ export const init = command("init", { }); if (!flags.json) { - yield `✨ Created app "${app.name}"`; + yield `✨ Created app "${app.config.name}"`; yield ""; yield fmt.colors.bold("Console URL"); yield new URL( From eabd6ec04c07b3b49dcc77301c17734eebbce308 Mon Sep 17 00:00:00 2001 From: Kevin Wang Date: Wed, 5 Jul 2023 11:29:29 -0400 Subject: [PATCH 2/9] use app config helper --- commands/init/mod.ts | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/commands/init/mod.ts b/commands/init/mod.ts index f9da160..477392e 100644 --- a/commands/init/mod.ts +++ b/commands/init/mod.ts @@ -11,6 +11,7 @@ import { config } from "../../config.ts"; import { paths } from "../../api/openapi.ts"; import { logger } from "../../logger.ts"; import { apps } from "../../api/apps.ts"; +import { find } from "../../lib/app-config.ts"; /** * This variable is automatically generated by `zcli add`. Do not remove this @@ -102,19 +103,13 @@ export const init = command("init", { const link = existingLinks[dest]; if (!link) { + const config = await find({}); + asserts(config, "No app config found"); + logger.info(`Project doesn't exist. Creating a new one.`); + const res = await loading( - apps.create({ - config: { - apiVersion: "latest", - image: "some demo image", - name: appName, - resources: { - machineType: "K80", - ports: [], - }, - }, - }), + apps.create({ config }), { text: "Creating app", enabled: !flags.json, From 66011c280e5026b1ca13b2fbe73a9fe6fab04a75 Mon Sep 17 00:00:00 2001 From: Kevin Wang Date: Wed, 5 Jul 2023 11:30:10 -0400 Subject: [PATCH 3/9] rm --- commands/init/mod.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/commands/init/mod.ts b/commands/init/mod.ts index d96e5e7..86f0bde 100644 --- a/commands/init/mod.ts +++ b/commands/init/mod.ts @@ -104,7 +104,6 @@ export const init = command("init", { if (!link) { const config = await find({}); - asserts(config, "No app config found"); logger.info(`Project doesn't exist. Creating a new one.`); From 3c6dd6b8697d1a98e3f8508b92dc2177edb693f0 Mon Sep 17 00:00:00 2001 From: Kevin Wang Date: Wed, 5 Jul 2023 12:47:07 -0400 Subject: [PATCH 4/9] revert --- api/openapi.ts | 7819 +++++++++++++----------------------------------- 1 file changed, 2026 insertions(+), 5793 deletions(-) diff --git a/api/openapi.ts b/api/openapi.ts index 58e5910..80fe81e 100644 --- a/api/openapi.ts +++ b/api/openapi.ts @@ -9,309 +9,304 @@ export interface paths { * Create an app * @description Create an app. */ - post: operations["apps-create"]; + post: operations["mutation.apps.create"]; }; "/apps/{id}": { - /** - * Get an app - * @description Fetches an app. - */ - get: operations["apps-get"]; /** * Delete an app * @description Deletes an app. This will delete all resources associated with the app. */ - delete: operations["apps-delete"]; + delete: operations["mutation.apps.delete"]; }; "/apps/{id}/disable": { /** * Disable an app * @description Disables an app that is currently enabled. This will stop the app's deployments and make it unavailable to users. */ - patch: operations["apps-disable"]; + patch: operations["mutation.apps.disable"]; }; "/apps/{id}/enable": { /** * Enable an app * @description Enables an app that has been previously disabled. This will start the app and make it available to users. */ - patch: operations["apps-enable"]; + patch: operations["mutation.apps.enable"]; }; "/apps/{id}/name": { /** * Update an app's name * @description Change the name of an app */ - patch: operations["apps-updateName"]; + patch: operations["mutation.apps.updateName"]; }; "/auth/session": { /** * Get the current session * @description Get the current session. If a user is not logged in, this will be null. Otherwise, it will contain the current team and user. */ - get: operations["auth-session"]; + get: operations["query.auth.session"]; }; "/autoscaling-groups": { /** * List autoscaling groups * @description List autoscaling groups and filter by machine type. */ - get: operations["autoscalingGroups-list"]; + get: operations["query.autoscalingGroups.list"]; /** * Create an autoscaling group * @description Create an autoscaling group. */ - post: operations["autoscalingGroups-create"]; + post: operations["mutation.autoscalingGroups.create"]; }; "/autoscaling-groups/{id}": { /** * Get an autoscaling group * @description Fetches a single autoscaling group by id. */ - get: operations["autoscalingGroups-get"]; + get: operations["query.autoscalingGroups.get"]; /** * Update an autoscaling group * @description Update an autoscaling group. */ - put: operations["autoscalingGroups-update"]; + put: operations["mutation.autoscalingGroups.update"]; /** * Delete an autoscaling group * @description Delete an autoscaling group. */ - delete: operations["autoscalingGroups-delete"]; + delete: operations["mutation.autoscalingGroups.delete"]; }; "/billing/account-standing": { /** * Get account standing * @description Check whether the current team account is in good standing. If not, send back a message explaining why. */ - get: operations["billingAccountStanding-get"]; + get: operations["query.billingAccountStanding.get"]; }; "/container-registries": { /** * List container registries * @description Lists container registries for the current team. */ - get: operations["containerRegistries-list"]; + get: operations["query.containerRegistries.list"]; /** * Create a container registry * @description Creates a container registry for the current team. */ - post: operations["containerRegistries-create"]; + post: operations["mutation.containerRegistries.create"]; }; "/container-registries/{id}": { /** * List container registries * @description Lists container registries for the current team. */ - get: operations["containerRegistries-get"]; + get: operations["query.containerRegistries.get"]; /** * Update a container registry * @description Updates a container registry for the current team. */ - put: operations["containerRegistries-update"]; + put: operations["mutation.containerRegistries.update"]; /** * Delete a container registry * @description Deletes a container registry for the current team. */ - delete: operations["containerRegistries-delete"]; + delete: operations["mutation.containerRegistries.delete"]; }; "/container-registries/{id}/test-connection": { /** * Test a container registry connection * @description Validate that a container registry can be connected to using the provided credentials. */ - get: operations["containerRegistries-testConnection"]; + get: operations["mutation.containerRegistries.testConnection"]; }; "/deployments": { /** * List deployments * @description Fetches a list of deployments for a logged in user. */ - get: operations["deployments-list"]; + get: operations["query.deployments.list"]; /** * Upsert a deployment * @description Submit a new deployment configuration. If a deployment does not exist, one is created. Otherwise, a deployment is updated with new configuration. */ - post: operations["deployments-upsert"]; + post: operations["mutation.deployments.upsert"]; }; "/deployments/{id}": { /** * Get a deployment * @description Fetches a single deployment by deployment ID. */ - get: operations["deployments-get"]; + get: operations["query.deployments.get"]; /** * Delete a deployment * @description Deletes a deployment by deployment ID. */ - delete: operations["deployments-delete"]; + delete: operations["mutation.deployments.delete"]; }; "/deployments/{id}/history": { /** * List app history * @description Lists history for a given app. */ - get: operations["deploymentHistory-list"]; + get: operations["query.deploymentHistory.list"]; }; "/deployments/{id}/logs": { /** * List app logs * @description Lists logs for a given app. */ - get: operations["deploymentLogs-list"]; + get: operations["query.deploymentLogs.list"]; }; "/deployments/{id}/metrics": { /** * List app metrics * @description Lists metrics for a given app. */ - get: operations["deploymentMetrics-get"]; + get: operations["query.deploymentMetrics.get"]; }; "/deployments/{id}/runs": { /** * List deployment runs * @description Lists the active deployment runs for a deployment. */ - get: operations["deploymentRuns-get"]; + get: operations["query.deploymentRuns.get"]; }; "/health": { /** * Health check * @description Check if the API is healthy. */ - get: operations["health"]; + get: operations["query.health"]; }; "/machine-events": { /** * List machine events * @description Fetches a list of machine events. */ - get: operations["machineEvents-list"]; + get: operations["query.machineEvents.list"]; }; "/machine-events/{id}": { /** * Get a machine event * @description Fetches a single machine event by ID. */ - get: operations["machineEvents-get"]; + get: operations["query.machineEvents.get"]; }; "/machines": { /** * List machines * @description Fetches a list of machines. */ - get: operations["machines-list"]; + get: operations["query.machines.list"]; /** * Create a machine * @description Creates a new machine. */ - post: operations["machines-create"]; + post: operations["mutation.machines.create"]; }; "/machines/{id}": { /** * Get a machine * @description Fetches a single machine by ID. */ - get: operations["machines-get"]; + get: operations["query.machines.get"]; /** * Update a machine * @description Updates a machine. */ - put: operations["machines-update"]; + put: operations["mutation.machines.update"]; /** * Delete a machine * @description Deletes a single machine by ID. */ - delete: operations["machines-delete"]; + delete: operations["mutation.machines.delete"]; }; "/machines/{id}/accessors": { /** * List accessors * @description Lists the team members that can explicitly access a machine. */ - get: operations["machines-listAccessors"]; + get: operations["query.machines.listAccessors"]; /** * Add an accessor * @description Adds an accessor to a machine. */ - post: operations["machines-addAccessor"]; + post: operations["mutation.machines.addAccessor"]; }; "/machines/{id}/accessors/{userId}": { /** * Get an accessor * @description Get an accessor for a machine. */ - get: operations["machines-getAccessor"]; + get: operations["query.machines.getAccessor"]; /** * Delete an accessor * @description Deletes an accessor from a machine. */ - delete: operations["machines-removeAccessor"]; + delete: operations["mutation.machines.removeAccessor"]; }; "/machines/{id}/desktop": { /** * Get desktop settings * @description Gets the machine settings that are used to configure desktop streaming. */ - get: operations["machines-getDesktop"]; + get: operations["query.machines.getDesktop"]; }; "/machines/{id}/restart": { /** * Restart a machine * @description Restarts a machine. */ - patch: operations["machines-restart"]; + patch: operations["mutation.machines.restart"]; }; "/machines/{id}/start": { /** * Start a machine * @description Starts a machine. */ - patch: operations["machines-start"]; + patch: operations["mutation.machines.start"]; }; "/machines/{id}/stop": { /** * Stop a machine * @description Stops a machine. */ - patch: operations["machines-stop"]; + patch: operations["mutation.machines.stop"]; }; "/notebooks": { /** * List notebooks * @description Lists the notebooks you have access to in the current team */ - get: operations["notebooks-list"]; + get: operations["query.notebooks.list"]; }; "/private-networks": { /** * List private networks * @description Fetches a list of private networks. */ - get: operations["privateNetworks-list"]; + get: operations["query.privateNetworks.list"]; /** * Create a private network * @description Creates a new private network. */ - post: operations["privateNetworks-create"]; + post: operations["mutation.privateNetworks.create"]; }; "/private-networks/{id}": { /** * Get a private network * @description Fetches a single private network by ID. */ - get: operations["privateNetworks-get"]; + get: operations["query.privateNetworks.get"]; /** * Update a private network * @description Updates a single private network by ID. */ - put: operations["privateNetworks-update"]; + put: operations["mutation.privateNetworks.update"]; /** * Delete a private network * @description Deletes a single private network by ID. */ - delete: operations["privateNetworks-delete"]; + delete: operations["mutation.privateNetworks.delete"]; }; "/projects": { /** @@ -319,371 +314,324 @@ export interface paths { * @description * List projects. This endpoint supports pagination and sorting. */ - get: operations["projects-list"]; + get: operations["query.projects.list"]; /** * Create a project * @description Create a project */ - post: operations["projects-create"]; + post: operations["mutation.projects.create"]; }; "/projects/{id}": { /** * Get a project by its ID * @description Get a project by its ID. */ - get: operations["projects-get"]; + get: operations["query.projects.get"]; /** * Update a project * @description Update a project */ - put: operations["projects-update"]; + put: operations["mutation.projects.update"]; /** * Delete a project * @description Delete a project */ - delete: operations["projects-delete"]; + delete: operations["mutation.projects.delete"]; }; "/projects/{id}/activity": { /** * List a project's activity * @description Fetches a list of activity items for a given project. */ - get: operations["projectActivity-list"]; - }; - "/projects/{id}/apps": { - /** - * List a project's apps - * @description Fetches a list of apps for a project. - */ - get: operations["projectApps-list"]; + get: operations["query.projectActivity.list"]; }; "/projects/{id}/collaborators": { /** * List a project's collaborators * @description Fetches a list of collaborators for a project. */ - get: operations["projectCollaborators-list"]; + get: operations["query.projectCollaborators.list"]; /** * Create a project collaborator * @description Adds a new collaborator to a project. */ - post: operations["projectCollaborators-create"]; + post: operations["mutation.projectCollaborators.create"]; }; "/projects/{id}/collaborators/{userId}": { /** * Delete a project collaborator * @description Removes a collaborator from a project. */ - delete: operations["projectCollaborators-delete"]; + delete: operations["mutation.projectCollaborators.delete"]; }; "/projects/{id}/deployments": { /** * List a project's deployments * @description Fetches a list of deployments for a project. */ - get: operations["projectDeployments-list"]; - }; - "/projects/{id}/models": { - /** - * List a project's models - * @description Fetches a list of models for a project. - */ - get: operations["projectModels-list"]; - }; - "/projects/{id}/models/{modelId}": { - /** - * Add a model to a project - * @description Adds a model to a project. - */ - post: operations["projectModels-add"]; - /** - * Remove a model from project - * @description Remove a model from project. - */ - delete: operations["projectModels-remove"]; - }; - "/projects/{id}/notebook/{notebookId}": { - /** - * Remove a notebook from a project - * @description Remove a notebook from a project. - */ - delete: operations["projectNotebooks-remove"]; - }; - "/projects/{id}/notebooks": { - /** - * List a project's notebooks - * @description Fetches a list of notebooks for a project. - */ - get: operations["projectNotebooks-list"]; - }; - "/projects/{id}/notebooks/{notebookId}": { - /** - * Add a notebook to a project - * @description Adds a notebook to a project. - */ - post: operations["projectNotebooks-add"]; + get: operations["query.projectsDeployments.list"]; }; "/projects/{id}/secrets": { /** * List a project's secrets * @description Fetches a list of secrets for a project. */ - get: operations["projectSecrets-list"]; + get: operations["query.projectSecrets.list"]; /** * Create a project secret * @description Creates a new secret for a project. */ - post: operations["projectSecrets-create"]; + post: operations["mutation.projectSecrets.create"]; }; "/projects/{id}/secrets/{name}": { /** * Get a project secret * @description Fetches a secret for a project. */ - get: operations["projectSecrets-getProjectSecret"]; + get: operations["query.projectSecrets.getProjectSecret"]; /** * Delete a project secret * @description Deletes a secret for a project. */ - delete: operations["projectSecrets-delete"]; + delete: operations["mutation.projectSecrets.delete"]; /** * Update a project secret * @description Update the value of a secret for a project. */ - patch: operations["projectSecrets-update"]; + patch: operations["mutation.projectSecrets.update"]; }; "/public-ips": { /** * List public IPs * @description Fetches a list of public IPs. */ - get: operations["publicIps-list"]; + get: operations["query.publicIps.list"]; /** * Claim a public IP * @description Claims a public IP. */ - post: operations["publicIps-claim"]; + post: operations["mutation.publicIps.claim"]; }; "/public-ips/{ip}": { /** * Assign a public IP * @description Assigns a public IP to a machine. */ - put: operations["publicIps-assign"]; + put: operations["mutation.publicIps.assign"]; /** * Release a public IP * @description Releases a public IP. */ - delete: operations["publicIps-release"]; + delete: operations["mutation.publicIps.release"]; }; "/shared-drives": { /** * List shared drives * @description Fetches a list of shared drives. */ - get: operations["sharedDrives-list"]; + get: operations["query.sharedDrives.list"]; /** * Create a shared drive * @description Creates a new shared drive for use in a private network. */ - post: operations["sharedDrives-create"]; + post: operations["mutation.sharedDrives.create"]; }; "/shared-drives/{id}": { /** * Get a shared drive * @description Fetches a single shared drive by ID. */ - get: operations["sharedDrives-get"]; + get: operations["query.sharedDrives.get"]; /** * Update a shared drive * @description Updates a single shared drive by ID. */ - put: operations["sharedDrives-update"]; + put: operations["mutation.sharedDrives.update"]; /** * Delete a shared drive * @description Deletes a single shared drive by ID. */ - delete: operations["sharedDrives-delete"]; + delete: operations["mutation.sharedDrives.delete"]; }; "/snapshots": { /** * List snapshots * @description List snapshots and filter by machine. */ - get: operations["snapshots-list"]; + get: operations["query.snapshots.list"]; /** * Create snapshot * @description Create a snapshot for a machine. */ - post: operations["snapshots-create"]; + post: operations["mutation.snapshots.create"]; }; "/snapshots/{id}": { /** * Get a snapshot * @description Fetches a single snapshot by ID. */ - get: operations["snapshots-get"]; + get: operations["query.snapshots.get"]; /** * Update a snapshot * @description Updates a single snapshot by ID. */ - put: operations["snapshots-update"]; + put: operations["mutation.snapshots.update"]; /** * Delete snapshot * @description Delete a snapshot for a machine. */ - delete: operations["snapshots-delete"]; + delete: operations["mutation.snapshots.delete"]; }; "/snapshots/{id}/restore": { /** * Restore snapshot * @description Restore a snapshot for a machine. */ - post: operations["snapshots-restore"]; + post: operations["mutation.snapshots.restore"]; }; "/startup-scripts": { /** * List startup scripts * @description Fetches a list of startup scripts. */ - get: operations["startupScripts-list"]; + get: operations["query.startupScripts.list"]; /** * Create startup script * @description Create a startup script. */ - post: operations["startupScripts-create"]; + post: operations["mutation.startupScripts.create"]; }; "/startup-scripts/{id}": { /** * Get a startup script * @description Fetches a single startup script by ID. */ - get: operations["startupScripts-get"]; + get: operations["query.startupScripts.get"]; /** * Update startup script * @description Update a startup script. */ - put: operations["startupScripts-update"]; + put: operations["mutation.startupScripts.update"]; /** * Delete startup script * @description Delete a startup script. */ - delete: operations["startupScripts-delete"]; + delete: operations["mutation.startupScripts.delete"]; }; "/startup-scripts/{id}/assign": { /** * Assign startup script to machine * @description Assign a startup script to a machine. */ - post: operations["startupScripts-assign"]; + post: operations["mutation.startupScripts.assign"]; }; "/startup-scripts/{id}/unassign": { /** * Unassign startup script from machine * @description Unassign a startup script from a machine. */ - post: operations["startupScripts-unassign"]; + post: operations["mutation.startupScripts.unassign"]; }; "/storage": { /** * List storage providers * @description List storage providers */ - get: operations["storageProviders-list"]; + get: operations["query.storageProviders.list"]; /** * Create a storage provider * @description Create a storage provider */ - post: operations["storageProviders-create"]; + post: operations["mutation.storageProviders.create"]; }; "/storage/{id}": { /** * Get a storage provider * @description Get a storage provider */ - get: operations["storageProviders-get"]; + get: operations["query.storageProviders.get"]; /** * Update a storage provider * @description Update a storage provider */ - put: operations["storageProviders-update"]; + put: operations["mutation.storageProviders.update"]; /** * Delete a storage provider * @description Delete a storage provider */ - delete: operations["storageProviders-delete"]; + delete: operations["mutation.storageProviders.delete"]; }; "/storage/utilization": { /** * Get storage utilization * @description Get a breakdown of how storage is being used by your team */ - get: operations["storageUtilization-getPublic"]; + get: operations["query.storageUtilization.getPublic"]; }; "/teams/{id}/secrets": { /** * List a team's secrets * @description Fetches a list of secrets for a team. */ - get: operations["teamSecrets-list"]; + get: operations["query.teamSecrets.list"]; /** * Create a team secret * @description Creates a new secret for a team. */ - post: operations["teamSecrets-create"]; + post: operations["mutation.teamSecrets.create"]; }; "/teams/{id}/secrets/{name}": { /** * Get a team secret * @description Fetches a secret for a team. */ - get: operations["teamSecrets-get"]; + get: operations["query.teamSecrets.get"]; /** * Delete a team secret * @description Deletes a secret for a team. */ - delete: operations["teamSecrets-delete"]; + delete: operations["mutation.teamSecrets.delete"]; /** * Update a team secret * @description Update the value of a secret for a team. */ - patch: operations["teamSecrets-update"]; + patch: operations["mutation.teamSecrets.update"]; }; "/templates": { /** * List templates * @description Fetches a list of templates. */ - get: operations["templates-list"]; + get: operations["query.templates.list"]; /** * Create template * @description Create a template for a machine. */ - post: operations["templates-create"]; + post: operations["mutation.templates.create"]; }; "/templates/{id}": { /** * Get a template * @description Fetches a single template by ID. */ - get: operations["templates-get"]; + get: operations["query.templates.get"]; /** * Update a template * @description Updates a single template by ID. */ - put: operations["templates-update"]; + put: operations["mutation.templates.update"]; /** * Delete template * @description Delete a template. */ - delete: operations["templates-delete"]; + delete: operations["mutation.templates.delete"]; }; "/workflows/{id}/runs/{runId}/logs": { /** * List workflow run logs * @description Lists logs for a given workflow run. */ - get: operations["workflowRunLogs-list"]; + get: operations["query.workflowRunLogs.list"]; }; } @@ -718,338 +666,136 @@ export interface operations { * Create an app * @description Create an app. */ - "apps-create": { + "mutation.apps.create": { readonly requestBody: { readonly content: { readonly "application/json": { /** @description The new deployment configuration. */ readonly config: - | ( - | ({ - /** @enum {string} */ - readonly apiVersion: "v0alpha0"; - readonly command?: readonly (string)[]; - readonly containerRegistry?: string; - /** @default true */ - readonly enabled?: boolean; - readonly env?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly healthChecks?: { - readonly liveness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - readonly readiness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - readonly startup?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; + | ({ + readonly apiVersion: "v0alpha0" | "latest"; + readonly command?: readonly (string)[]; + readonly containerRegistry?: string; + /** @default true */ + readonly enabled?: boolean; + readonly env?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly healthChecks?: { + readonly liveness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; }; - readonly image: string; - readonly models?: readonly ({ - readonly id: string; - readonly path?: string; - })[]; - readonly name: string; - /** @default 80 */ - readonly port?: number; - readonly region?: string; - readonly repositories?: { - readonly dataset: string; - readonly mountPath?: string; - readonly repositories: readonly ({ + readonly readiness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ readonly name: string; - readonly password?: string; - readonly ref?: string; - readonly url: string; - readonly username?: string; + readonly value: string; })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; }; - readonly resources: { - readonly autoscaling?: { - readonly enabled?: boolean; - readonly maxReplicas: number; - readonly metrics: readonly ( - | { - /** @enum {string} */ - readonly metric: "requestDuration"; - /** @enum {string} */ - readonly summary: "average"; - readonly value: number; - } - | ({ - /** @enum {string} */ - readonly metric: "cpu" | "memory"; - /** @enum {string} */ - readonly summary: "average"; - readonly value: number; - }) - )[]; + readonly startup?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; }; - readonly instanceType: string; - /** @default 1 */ - readonly replicas?: number; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; }; - }) - | ({ - /** @enum {string} */ - readonly apiVersion: "v0alpha1"; - readonly command?: readonly (string)[]; - readonly containerRegistry?: string; - /** @default true */ - readonly enabled?: boolean; - readonly env?: readonly ({ + }; + readonly image: string; + readonly models?: readonly ({ + readonly id: string; + readonly path?: string; + })[]; + readonly name: string; + /** @default 80 */ + readonly port?: number; + readonly region?: string; + readonly repositories?: { + readonly dataset: string; + readonly mountPath?: string; + readonly repositories: readonly ({ readonly name: string; - readonly value: string; + readonly password?: string; + readonly ref?: string; + readonly url: string; + readonly username?: string; })[]; - readonly healthchecks?: { - readonly liveness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - readonly readiness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - readonly startup?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - }; - readonly healthChecks?: { - readonly liveness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - readonly readiness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - readonly startup?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - }; - readonly image: string; - readonly integrations?: readonly ({ - readonly id: string; - readonly name: string; - /** @default /opt/models */ - readonly path?: string; - /** @enum {string} */ - readonly type: "model"; - } | { - readonly accessKeyId: string; - readonly endpoint?: string; - readonly name: string; - readonly path?: string; - readonly region?: string; - readonly secretAccessKey: string; - /** @enum {string} */ - readonly type: "s3"; - readonly url: string; - } | { - readonly name: string; - /** @enum {string} */ - readonly type: "volume"; - } | { - readonly name: string; - readonly path?: string; - /** @enum {string} */ - readonly type: "git-lfs"; - /** Format: uri */ - readonly url: string; - })[]; - readonly name: string; - readonly region?: string; - readonly resources: { - readonly autoscaling?: { - readonly enabled?: boolean; - readonly maxReplicas: number; - readonly metrics: readonly ( - | { - /** @enum {string} */ - readonly metric: "requestDuration"; - /** @enum {string} */ - readonly summary: "average"; - readonly value: number; - } - | ({ - /** @enum {string} */ - readonly metric: "cpu" | "memory"; - /** @enum {string} */ - readonly summary: "average"; - readonly value: number; - }) - )[]; - }; - readonly machineType: string; - readonly ports: readonly (number)[]; - /** @default 1 */ - readonly replicas?: number; + }; + readonly resources: { + readonly autoscaling?: { + readonly enabled?: boolean; + readonly maxReplicas: number; + readonly metrics: readonly ( + | { + /** @enum {string} */ + readonly metric: "requestDuration"; + /** @enum {string} */ + readonly summary: "average"; + readonly value: number; + } + | ({ + /** @enum {string} */ + readonly metric: "cpu" | "memory"; + /** @enum {string} */ + readonly summary: "average"; + readonly value: number; + }) + )[]; }; - }) - ) + readonly instanceType: string; + /** @default 1 */ + readonly replicas?: number; + }; + }) | ({ - readonly apiVersion: "v1" | "latest"; + /** @enum {string} */ + readonly apiVersion: "v0alpha1"; readonly command?: readonly (string)[]; readonly containerRegistry?: string; /** @default true */ @@ -1069,7 +815,7 @@ export interface operations { readonly initialDelaySeconds?: number; readonly path: string; readonly periodSeconds?: number; - readonly port?: number; + readonly port: number; readonly timeoutSeconds?: number; } | { readonly exec: { @@ -1090,7 +836,7 @@ export interface operations { readonly initialDelaySeconds?: number; readonly path: string; readonly periodSeconds?: number; - readonly port?: number; + readonly port: number; readonly timeoutSeconds?: number; } | { readonly exec: { @@ -1111,7 +857,7 @@ export interface operations { readonly initialDelaySeconds?: number; readonly path: string; readonly periodSeconds?: number; - readonly port?: number; + readonly port: number; readonly timeoutSeconds?: number; } | { readonly exec: { @@ -1134,7 +880,7 @@ export interface operations { readonly initialDelaySeconds?: number; readonly path: string; readonly periodSeconds?: number; - readonly port?: number; + readonly port: number; readonly timeoutSeconds?: number; } | { readonly exec: { @@ -1155,7 +901,7 @@ export interface operations { readonly initialDelaySeconds?: number; readonly path: string; readonly periodSeconds?: number; - readonly port?: number; + readonly port: number; readonly timeoutSeconds?: number; } | { readonly exec: { @@ -1176,7 +922,7 @@ export interface operations { readonly initialDelaySeconds?: number; readonly path: string; readonly periodSeconds?: number; - readonly port?: number; + readonly port: number; readonly timeoutSeconds?: number; } | { readonly exec: { @@ -1190,36 +936,27 @@ export interface operations { }; readonly image: string; readonly integrations?: readonly ({ - readonly id: string; - readonly name: string; - /** @default /opt/models */ - readonly path?: string; - /** @enum {string} */ - readonly type: "model"; - } | { - readonly accessKeyId: string; - readonly endpoint?: string; - readonly name: string; - readonly path?: string; - readonly region?: string; - readonly secretAccessKey: string; - /** @enum {string} */ - readonly type: "s3"; - readonly url: string; - } | { readonly name: string; /** @enum {string} */ readonly type: "volume"; - } | { - readonly name: string; + })[]; + readonly models?: readonly ({ + readonly id: string; readonly path?: string; - /** @enum {string} */ - readonly type: "git-lfs"; - /** Format: uri */ - readonly url: string; })[]; readonly name: string; readonly region?: string; + readonly repositories?: { + readonly dataset: string; + readonly mountPath?: string; + readonly repositories: readonly ({ + readonly name: string; + readonly password?: string; + readonly ref?: string; + readonly url: string; + readonly username?: string; + })[]; + }; readonly resources: { readonly autoscaling?: { readonly enabled?: boolean; @@ -1250,6 +987,59 @@ export interface operations { }; }; }; + responses: { + /** @description Successful response */ + 200: { + content: { + readonly "application/json": { + /** @description The ID of the app */ + readonly id: string; + }; + }; + }; + default: components["responses"]["error"]; + }; + }; + /** + * Delete an app + * @description Deletes an app. This will delete all resources associated with the app. + */ + "mutation.apps.delete": { + parameters: { + readonly path: { + /** @description The ID of the app to delete */ + id: string; + }; + }; + responses: { + /** @description Successful response */ + 200: { + content: { + readonly "application/json": { + /** @description The ID of the app that was deleted */ + readonly id: string; + }; + }; + }; + default: components["responses"]["error"]; + }; + }; + /** + * Disable an app + * @description Disables an app that is currently enabled. This will stop the app's deployments and make it unavailable to users. + */ + "mutation.apps.disable": { + parameters: { + readonly path: { + /** @description The ID of the app to disable */ + id: string; + }; + }; + readonly requestBody: { + readonly content: { + readonly "application/json": Record; + }; + }; responses: { /** @description Successful response */ 200: { @@ -1257,332 +1047,130 @@ export interface operations { readonly "application/json": { /** @description The new deployment configuration. */ readonly config: - | ( - | ({ - /** @enum {string} */ - readonly apiVersion: "v0alpha0"; - readonly command?: readonly (string)[]; - readonly containerRegistry?: string; - /** @default true */ - readonly enabled?: boolean; - readonly env?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly healthChecks?: { - readonly liveness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - readonly readiness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - readonly startup?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - }; - readonly image: string; - readonly models?: readonly ({ - readonly id: string; - readonly path?: string; - })[]; + | ({ + readonly apiVersion: "v0alpha0" | "latest"; + readonly command?: readonly (string)[]; + readonly containerRegistry?: string; + /** @default true */ + readonly enabled?: boolean; + readonly env?: readonly ({ readonly name: string; - /** @default 80 */ - readonly port?: number; - readonly region?: string; - readonly repositories?: { - readonly dataset: string; - readonly mountPath?: string; - readonly repositories: readonly ({ + readonly value: string; + })[]; + readonly healthChecks?: { + readonly liveness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ readonly name: string; - readonly password?: string; - readonly ref?: string; - readonly url: string; - readonly username?: string; + readonly value: string; })[]; - }; - readonly resources: { - readonly autoscaling?: { - readonly enabled?: boolean; - readonly maxReplicas: number; - readonly metrics: readonly ( - | { - /** @enum {string} */ - readonly metric: "requestDuration"; - /** @enum {string} */ - readonly summary: "average"; - readonly value: number; - } - | ({ - /** @enum {string} */ - readonly metric: "cpu" | "memory"; - /** @enum {string} */ - readonly summary: "average"; - readonly value: number; - }) - )[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; }; - readonly instanceType: string; - /** @default 1 */ - readonly replicas?: number; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; }; - }) - | ({ - /** @enum {string} */ - readonly apiVersion: "v0alpha1"; - readonly command?: readonly (string)[]; - readonly containerRegistry?: string; - /** @default true */ - readonly enabled?: boolean; - readonly env?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly healthchecks?: { - readonly liveness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - readonly readiness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - readonly startup?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; + readonly readiness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; }; - readonly healthChecks?: { - readonly liveness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - readonly readiness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - readonly startup?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; + readonly startup?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; }; - readonly image: string; - readonly integrations?: readonly ({ - readonly id: string; - readonly name: string; - /** @default /opt/models */ - readonly path?: string; - /** @enum {string} */ - readonly type: "model"; - } | { - readonly accessKeyId: string; - readonly endpoint?: string; - readonly name: string; - readonly path?: string; - readonly region?: string; - readonly secretAccessKey: string; - /** @enum {string} */ - readonly type: "s3"; - readonly url: string; - } | { - readonly name: string; - /** @enum {string} */ - readonly type: "volume"; - } | { + }; + readonly image: string; + readonly models?: readonly ({ + readonly id: string; + readonly path?: string; + })[]; + readonly name: string; + /** @default 80 */ + readonly port?: number; + readonly region?: string; + readonly repositories?: { + readonly dataset: string; + readonly mountPath?: string; + readonly repositories: readonly ({ readonly name: string; - readonly path?: string; - /** @enum {string} */ - readonly type: "git-lfs"; - /** Format: uri */ + readonly password?: string; + readonly ref?: string; readonly url: string; + readonly username?: string; })[]; - readonly name: string; - readonly region?: string; - readonly resources: { - readonly autoscaling?: { - readonly enabled?: boolean; - readonly maxReplicas: number; - readonly metrics: readonly ( - | { - /** @enum {string} */ - readonly metric: "requestDuration"; - /** @enum {string} */ - readonly summary: "average"; - readonly value: number; - } - | ({ - /** @enum {string} */ - readonly metric: "cpu" | "memory"; - /** @enum {string} */ - readonly summary: "average"; - readonly value: number; - }) - )[]; - }; - readonly machineType: string; - readonly ports: readonly (number)[]; - /** @default 1 */ - readonly replicas?: number; + }; + readonly resources: { + readonly autoscaling?: { + readonly enabled?: boolean; + readonly maxReplicas: number; + readonly metrics: readonly ( + | { + /** @enum {string} */ + readonly metric: "requestDuration"; + /** @enum {string} */ + readonly summary: "average"; + readonly value: number; + } + | ({ + /** @enum {string} */ + readonly metric: "cpu" | "memory"; + /** @enum {string} */ + readonly summary: "average"; + readonly value: number; + }) + )[]; }; - }) - ) + readonly instanceType: string; + /** @default 1 */ + readonly replicas?: number; + }; + }) | ({ - readonly apiVersion: "v1" | "latest"; + /** @enum {string} */ + readonly apiVersion: "v0alpha1"; readonly command?: readonly (string)[]; readonly containerRegistry?: string; /** @default true */ @@ -1602,7 +1190,7 @@ export interface operations { readonly initialDelaySeconds?: number; readonly path: string; readonly periodSeconds?: number; - readonly port?: number; + readonly port: number; readonly timeoutSeconds?: number; } | { readonly exec: { @@ -1623,7 +1211,7 @@ export interface operations { readonly initialDelaySeconds?: number; readonly path: string; readonly periodSeconds?: number; - readonly port?: number; + readonly port: number; readonly timeoutSeconds?: number; } | { readonly exec: { @@ -1644,7 +1232,7 @@ export interface operations { readonly initialDelaySeconds?: number; readonly path: string; readonly periodSeconds?: number; - readonly port?: number; + readonly port: number; readonly timeoutSeconds?: number; } | { readonly exec: { @@ -1667,7 +1255,7 @@ export interface operations { readonly initialDelaySeconds?: number; readonly path: string; readonly periodSeconds?: number; - readonly port?: number; + readonly port: number; readonly timeoutSeconds?: number; } | { readonly exec: { @@ -1688,7 +1276,7 @@ export interface operations { readonly initialDelaySeconds?: number; readonly path: string; readonly periodSeconds?: number; - readonly port?: number; + readonly port: number; readonly timeoutSeconds?: number; } | { readonly exec: { @@ -1709,7 +1297,7 @@ export interface operations { readonly initialDelaySeconds?: number; readonly path: string; readonly periodSeconds?: number; - readonly port?: number; + readonly port: number; readonly timeoutSeconds?: number; } | { readonly exec: { @@ -1723,36 +1311,27 @@ export interface operations { }; readonly image: string; readonly integrations?: readonly ({ - readonly id: string; - readonly name: string; - /** @default /opt/models */ - readonly path?: string; - /** @enum {string} */ - readonly type: "model"; - } | { - readonly accessKeyId: string; - readonly endpoint?: string; - readonly name: string; - readonly path?: string; - readonly region?: string; - readonly secretAccessKey: string; - /** @enum {string} */ - readonly type: "s3"; - readonly url: string; - } | { readonly name: string; /** @enum {string} */ readonly type: "volume"; - } | { - readonly name: string; + })[]; + readonly models?: readonly ({ + readonly id: string; readonly path?: string; - /** @enum {string} */ - readonly type: "git-lfs"; - /** Format: uri */ - readonly url: string; })[]; readonly name: string; readonly region?: string; + readonly repositories?: { + readonly dataset: string; + readonly mountPath?: string; + readonly repositories: readonly ({ + readonly name: string; + readonly password?: string; + readonly ref?: string; + readonly url: string; + readonly username?: string; + })[]; + }; readonly resources: { readonly autoscaling?: { readonly enabled?: boolean; @@ -1789,16 +1368,21 @@ export interface operations { }; }; /** - * Get an app - * @description Fetches an app. + * Enable an app + * @description Enables an app that has been previously disabled. This will start the app and make it available to users. */ - "apps-get": { + "mutation.apps.enable": { parameters: { readonly path: { - /** @description The ID of the app to fetch */ + /** @description The ID of the app to enable */ id: string; }; }; + readonly requestBody: { + readonly content: { + readonly "application/json": Record; + }; + }; responses: { /** @description Successful response */ 200: { @@ -1806,332 +1390,130 @@ export interface operations { readonly "application/json": { /** @description The new deployment configuration. */ readonly config: - | ( - | ({ - /** @enum {string} */ - readonly apiVersion: "v0alpha0"; - readonly command?: readonly (string)[]; - readonly containerRegistry?: string; - /** @default true */ - readonly enabled?: boolean; - readonly env?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly healthChecks?: { - readonly liveness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - readonly readiness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - readonly startup?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - }; - readonly image: string; - readonly models?: readonly ({ - readonly id: string; - readonly path?: string; - })[]; + | ({ + readonly apiVersion: "v0alpha0" | "latest"; + readonly command?: readonly (string)[]; + readonly containerRegistry?: string; + /** @default true */ + readonly enabled?: boolean; + readonly env?: readonly ({ readonly name: string; - /** @default 80 */ - readonly port?: number; - readonly region?: string; - readonly repositories?: { - readonly dataset: string; - readonly mountPath?: string; - readonly repositories: readonly ({ + readonly value: string; + })[]; + readonly healthChecks?: { + readonly liveness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ readonly name: string; - readonly password?: string; - readonly ref?: string; - readonly url: string; - readonly username?: string; + readonly value: string; })[]; - }; - readonly resources: { - readonly autoscaling?: { - readonly enabled?: boolean; - readonly maxReplicas: number; - readonly metrics: readonly ( - | { - /** @enum {string} */ - readonly metric: "requestDuration"; - /** @enum {string} */ - readonly summary: "average"; - readonly value: number; - } - | ({ - /** @enum {string} */ - readonly metric: "cpu" | "memory"; - /** @enum {string} */ - readonly summary: "average"; - readonly value: number; - }) - )[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; }; - readonly instanceType: string; - /** @default 1 */ - readonly replicas?: number; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; }; - }) - | ({ - /** @enum {string} */ - readonly apiVersion: "v0alpha1"; - readonly command?: readonly (string)[]; - readonly containerRegistry?: string; - /** @default true */ - readonly enabled?: boolean; - readonly env?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly healthchecks?: { - readonly liveness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - readonly readiness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - readonly startup?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; + readonly readiness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; }; - readonly healthChecks?: { - readonly liveness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - readonly readiness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - readonly startup?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; + readonly startup?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; }; - readonly image: string; - readonly integrations?: readonly ({ - readonly id: string; - readonly name: string; - /** @default /opt/models */ - readonly path?: string; - /** @enum {string} */ - readonly type: "model"; - } | { - readonly accessKeyId: string; - readonly endpoint?: string; - readonly name: string; - readonly path?: string; - readonly region?: string; - readonly secretAccessKey: string; - /** @enum {string} */ - readonly type: "s3"; - readonly url: string; - } | { - readonly name: string; - /** @enum {string} */ - readonly type: "volume"; - } | { + }; + readonly image: string; + readonly models?: readonly ({ + readonly id: string; + readonly path?: string; + })[]; + readonly name: string; + /** @default 80 */ + readonly port?: number; + readonly region?: string; + readonly repositories?: { + readonly dataset: string; + readonly mountPath?: string; + readonly repositories: readonly ({ readonly name: string; - readonly path?: string; - /** @enum {string} */ - readonly type: "git-lfs"; - /** Format: uri */ + readonly password?: string; + readonly ref?: string; readonly url: string; + readonly username?: string; })[]; - readonly name: string; - readonly region?: string; - readonly resources: { - readonly autoscaling?: { - readonly enabled?: boolean; - readonly maxReplicas: number; - readonly metrics: readonly ( - | { - /** @enum {string} */ - readonly metric: "requestDuration"; - /** @enum {string} */ - readonly summary: "average"; - readonly value: number; - } - | ({ - /** @enum {string} */ - readonly metric: "cpu" | "memory"; - /** @enum {string} */ - readonly summary: "average"; - readonly value: number; - }) - )[]; - }; - readonly machineType: string; - readonly ports: readonly (number)[]; - /** @default 1 */ - readonly replicas?: number; + }; + readonly resources: { + readonly autoscaling?: { + readonly enabled?: boolean; + readonly maxReplicas: number; + readonly metrics: readonly ( + | { + /** @enum {string} */ + readonly metric: "requestDuration"; + /** @enum {string} */ + readonly summary: "average"; + readonly value: number; + } + | ({ + /** @enum {string} */ + readonly metric: "cpu" | "memory"; + /** @enum {string} */ + readonly summary: "average"; + readonly value: number; + }) + )[]; }; - }) - ) + readonly instanceType: string; + /** @default 1 */ + readonly replicas?: number; + }; + }) | ({ - readonly apiVersion: "v1" | "latest"; + /** @enum {string} */ + readonly apiVersion: "v0alpha1"; readonly command?: readonly (string)[]; readonly containerRegistry?: string; /** @default true */ @@ -2151,7 +1533,7 @@ export interface operations { readonly initialDelaySeconds?: number; readonly path: string; readonly periodSeconds?: number; - readonly port?: number; + readonly port: number; readonly timeoutSeconds?: number; } | { readonly exec: { @@ -2172,7 +1554,7 @@ export interface operations { readonly initialDelaySeconds?: number; readonly path: string; readonly periodSeconds?: number; - readonly port?: number; + readonly port: number; readonly timeoutSeconds?: number; } | { readonly exec: { @@ -2193,7 +1575,7 @@ export interface operations { readonly initialDelaySeconds?: number; readonly path: string; readonly periodSeconds?: number; - readonly port?: number; + readonly port: number; readonly timeoutSeconds?: number; } | { readonly exec: { @@ -2216,7 +1598,7 @@ export interface operations { readonly initialDelaySeconds?: number; readonly path: string; readonly periodSeconds?: number; - readonly port?: number; + readonly port: number; readonly timeoutSeconds?: number; } | { readonly exec: { @@ -2237,7 +1619,7 @@ export interface operations { readonly initialDelaySeconds?: number; readonly path: string; readonly periodSeconds?: number; - readonly port?: number; + readonly port: number; readonly timeoutSeconds?: number; } | { readonly exec: { @@ -2258,7 +1640,7 @@ export interface operations { readonly initialDelaySeconds?: number; readonly path: string; readonly periodSeconds?: number; - readonly port?: number; + readonly port: number; readonly timeoutSeconds?: number; } | { readonly exec: { @@ -2272,36 +1654,27 @@ export interface operations { }; readonly image: string; readonly integrations?: readonly ({ - readonly id: string; - readonly name: string; - /** @default /opt/models */ - readonly path?: string; - /** @enum {string} */ - readonly type: "model"; - } | { - readonly accessKeyId: string; - readonly endpoint?: string; - readonly name: string; - readonly path?: string; - readonly region?: string; - readonly secretAccessKey: string; - /** @enum {string} */ - readonly type: "s3"; - readonly url: string; - } | { readonly name: string; /** @enum {string} */ readonly type: "volume"; - } | { - readonly name: string; + })[]; + readonly models?: readonly ({ + readonly id: string; readonly path?: string; - /** @enum {string} */ - readonly type: "git-lfs"; - /** Format: uri */ - readonly url: string; })[]; readonly name: string; readonly region?: string; + readonly repositories?: { + readonly dataset: string; + readonly mountPath?: string; + readonly repositories: readonly ({ + readonly name: string; + readonly password?: string; + readonly ref?: string; + readonly url: string; + readonly username?: string; + })[]; + }; readonly resources: { readonly autoscaling?: { readonly enabled?: boolean; @@ -2338,23 +1711,33 @@ export interface operations { }; }; /** - * Delete an app - * @description Deletes an app. This will delete all resources associated with the app. + * Update an app's name + * @description Change the name of an app */ - "apps-delete": { + "mutation.apps.updateName": { parameters: { readonly path: { - /** @description The ID of the app to delete */ + /** @description The ID of the app to update */ id: string; }; }; + readonly requestBody: { + readonly content: { + readonly "application/json": { + /** @description The new name of the app */ + readonly name: string; + }; + }; + }; responses: { /** @description Successful response */ 200: { content: { readonly "application/json": { - /** @description The ID of the app that was deleted */ + /** @description The ID of the app */ readonly id: string; + /** @description The name of the app */ + readonly name: string; }; }; }; @@ -2362,563 +1745,143 @@ export interface operations { }; }; /** - * Disable an app - * @description Disables an app that is currently enabled. This will stop the app's deployments and make it unavailable to users. + * Get the current session + * @description Get the current session. If a user is not logged in, this will be null. Otherwise, it will contain the current team and user. */ - "apps-disable": { - parameters: { - readonly path: { - /** @description The ID of the app to disable */ - id: string; - }; - }; + "query.auth.session": { responses: { /** @description Successful response */ 200: { content: { - readonly "application/json": { - /** @description The new deployment configuration. */ - readonly config: - | ( - | ({ - /** @enum {string} */ - readonly apiVersion: "v0alpha0"; - readonly command?: readonly (string)[]; - readonly containerRegistry?: string; - /** @default true */ - readonly enabled?: boolean; - readonly env?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly healthChecks?: { - readonly liveness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - readonly readiness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - readonly startup?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - }; - readonly image: string; - readonly models?: readonly ({ - readonly id: string; - readonly path?: string; - })[]; - readonly name: string; - /** @default 80 */ - readonly port?: number; - readonly region?: string; - readonly repositories?: { - readonly dataset: string; - readonly mountPath?: string; - readonly repositories: readonly ({ - readonly name: string; - readonly password?: string; - readonly ref?: string; - readonly url: string; - readonly username?: string; - })[]; - }; - readonly resources: { - readonly autoscaling?: { - readonly enabled?: boolean; - readonly maxReplicas: number; - readonly metrics: readonly ( - | { - /** @enum {string} */ - readonly metric: "requestDuration"; - /** @enum {string} */ - readonly summary: "average"; - readonly value: number; - } - | ({ - /** @enum {string} */ - readonly metric: "cpu" | "memory"; - /** @enum {string} */ - readonly summary: "average"; - readonly value: number; - }) - )[]; - }; - readonly instanceType: string; - /** @default 1 */ - readonly replicas?: number; - }; - }) - | ({ - /** @enum {string} */ - readonly apiVersion: "v0alpha1"; - readonly command?: readonly (string)[]; - readonly containerRegistry?: string; - /** @default true */ - readonly enabled?: boolean; - readonly env?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly healthchecks?: { - readonly liveness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - readonly readiness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - readonly startup?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - }; - readonly healthChecks?: { - readonly liveness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - readonly readiness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - readonly startup?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - }; - readonly image: string; - readonly integrations?: readonly ({ + readonly "application/json": + | ({ + readonly team: { + /** @description An internal, numeric ID for the team */ + readonly analyticsId: number; + /** @description A unique ID for the team */ + readonly id: string; + /** @description Whether the team is private or not */ + readonly isPrivate: boolean; + /** @description The maximum number of machines */ + readonly maxMachines: number; + /** @description The namespace for the team */ + readonly namespace: string; + }; + readonly user: { + /** @description An internal, numeric ID for the user */ + readonly analyticsId: number; + /** + * Format: date-time + * @description The date the account was confirmed + */ + readonly dtConfirmed: Date; + /** + * Format: date-time + * @description The date the user was created + */ + readonly dtCreated: Date; + /** @description The user's email address */ + readonly email: string; + /** @description The user's first name */ + readonly firstName: string | null; + /** @description A unique ID for the user */ + readonly id: string; + /** @description Whether the user has a password set */ + readonly isPasswordAuthEnabled: boolean; + /** @description Whether the user's phone number has been verified */ + readonly isPhoneVerified: boolean; + /** @description Whether the user has a QR code based MFA confirmed */ + readonly isQrCodeBasedMfaConfirmed: boolean; + /** @description Whether the user has a QR code based MFA enabled */ + readonly isQrCodeBasedMfaEnabled: boolean; + /** @description The user's last name */ + readonly lastName: string | null; + /** @description Metadata about the user */ + readonly metadata: { + /** + * @description Core survey question-answer pairs + * @default null + */ + readonly coreSurvey?: + | ({ + [key: string]: string | undefined; + }) + | null; + /** + * @description Gradient survey question-answer pairs + * @default null + */ + readonly gradientSurvey?: + | ({ + [key: string]: string | undefined; + }) + | null; + /** + * @description Whether the user has accepted the Graphcore terms of service + * @default false + */ + readonly graphcoreTermsAccepted?: boolean; + /** + * @description Tags for the user + * @default null + */ + readonly tags?: string | null; + }; + /** @description The teams this user is a member of */ + readonly teamMemberships: readonly ({ + /** @description Whether the user is an admin of the team */ + readonly isAdmin: boolean; + /** @description Whether the user is the owner of the team */ + readonly isOwner: boolean; + /** @description The team the user is a member of */ + readonly team: { + /** + * Format: date-time + * @description The date the team was created + */ + readonly dtCreated: Date; + /** @description The ID of the team */ readonly id: string; + /** @description Whether the team is the user's team */ + readonly isUserTeam: boolean; + /** @description The name of the team */ readonly name: string; - /** @default /opt/models */ - readonly path?: string; - /** @enum {string} */ - readonly type: "model"; - } | { - readonly accessKeyId: string; - readonly endpoint?: string; - readonly name: string; - readonly path?: string; - readonly region?: string; - readonly secretAccessKey: string; - /** @enum {string} */ - readonly type: "s3"; - readonly url: string; - } | { - readonly name: string; - /** @enum {string} */ - readonly type: "volume"; - } | { - readonly name: string; - readonly path?: string; - /** @enum {string} */ - readonly type: "git-lfs"; - /** Format: uri */ - readonly url: string; - })[]; - readonly name: string; - readonly region?: string; - readonly resources: { - readonly autoscaling?: { - readonly enabled?: boolean; - readonly maxReplicas: number; - readonly metrics: readonly ( - | { - /** @enum {string} */ - readonly metric: "requestDuration"; - /** @enum {string} */ - readonly summary: "average"; - readonly value: number; - } - | ({ - /** @enum {string} */ - readonly metric: "cpu" | "memory"; - /** @enum {string} */ - readonly summary: "average"; - readonly value: number; - }) - )[]; - }; - readonly machineType: string; - readonly ports: readonly (number)[]; - /** @default 1 */ - readonly replicas?: number; + /** @description The namespace of the team */ + readonly namespace: string; + /** + * @description The URL of the team's profile image. + * @default null + */ + readonly publicProfileImageUrl?: string | null; }; - }) - ) - | ({ - readonly apiVersion: "v1" | "latest"; - readonly command?: readonly (string)[]; - readonly containerRegistry?: string; - /** @default true */ - readonly enabled?: boolean; - readonly env?: readonly ({ - readonly name: string; - readonly value: string; })[]; - readonly healthchecks?: { - readonly liveness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - readonly readiness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - readonly startup?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - }; - readonly healthChecks?: { - readonly liveness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - readonly readiness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - readonly startup?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - }; - readonly image: string; - readonly integrations?: readonly ({ - readonly id: string; - readonly name: string; - /** @default /opt/models */ - readonly path?: string; - /** @enum {string} */ - readonly type: "model"; - } | { - readonly accessKeyId: string; - readonly endpoint?: string; - readonly name: string; - readonly path?: string; - readonly region?: string; - readonly secretAccessKey: string; - /** @enum {string} */ - readonly type: "s3"; - readonly url: string; - } | { - readonly name: string; - /** @enum {string} */ - readonly type: "volume"; - } | { - readonly name: string; - readonly path?: string; - /** @enum {string} */ - readonly type: "git-lfs"; - /** Format: uri */ - readonly url: string; - })[]; - readonly name: string; - readonly region?: string; - readonly resources: { - readonly autoscaling?: { - readonly enabled?: boolean; - readonly maxReplicas: number; - readonly metrics: readonly ( - | { - /** @enum {string} */ - readonly metric: "requestDuration"; - /** @enum {string} */ - readonly summary: "average"; - readonly value: number; - } - | ({ - /** @enum {string} */ - readonly metric: "cpu" | "memory"; - /** @enum {string} */ - readonly summary: "average"; - readonly value: number; - }) - )[]; - }; - readonly machineType: string; - readonly ports: readonly (number)[]; - /** @default 1 */ - readonly replicas?: number; - }; - }); - /** @description The ID of the app */ - readonly id: string; - }; + }; + }) + | null; }; }; default: components["responses"]["error"]; }; }; /** - * Enable an app - * @description Enables an app that has been previously disabled. This will start the app and make it available to users. + * List autoscaling groups + * @description List autoscaling groups and filter by machine type. */ - "apps-enable": { + "query.autoscalingGroups.list": { parameters: { - readonly path: { - /** @description The ID of the app to enable */ - id: string; + readonly query: { + /** @description Fetch the next page of results after this cursor. */ + after?: string; + /** @description The number of items to fetch after this page. */ + limit?: number; + /** @description Order results by one of these fields. */ + orderBy?: "dtCreated" | "name"; + /** @description The order to sort the results by. */ + order?: "asc" | "desc"; + /** @description Cluster the autoscaling group is for. */ + clusterId?: string; + /** @description Machine type used for machiens in the autoscaling group. */ + machineType?: string; }; }; responses: { @@ -2926,533 +1889,52 @@ export interface operations { 200: { content: { readonly "application/json": { - /** @description The new deployment configuration. */ - readonly config: - | ( - | ({ - /** @enum {string} */ - readonly apiVersion: "v0alpha0"; - readonly command?: readonly (string)[]; - readonly containerRegistry?: string; - /** @default true */ - readonly enabled?: boolean; - readonly env?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly healthChecks?: { - readonly liveness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - readonly readiness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - readonly startup?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - }; - readonly image: string; - readonly models?: readonly ({ - readonly id: string; - readonly path?: string; - })[]; - readonly name: string; - /** @default 80 */ - readonly port?: number; - readonly region?: string; - readonly repositories?: { - readonly dataset: string; - readonly mountPath?: string; - readonly repositories: readonly ({ - readonly name: string; - readonly password?: string; - readonly ref?: string; - readonly url: string; - readonly username?: string; - })[]; - }; - readonly resources: { - readonly autoscaling?: { - readonly enabled?: boolean; - readonly maxReplicas: number; - readonly metrics: readonly ( - | { - /** @enum {string} */ - readonly metric: "requestDuration"; - /** @enum {string} */ - readonly summary: "average"; - readonly value: number; - } - | ({ - /** @enum {string} */ - readonly metric: "cpu" | "memory"; - /** @enum {string} */ - readonly summary: "average"; - readonly value: number; - }) - )[]; - }; - readonly instanceType: string; - /** @default 1 */ - readonly replicas?: number; - }; - }) - | ({ - /** @enum {string} */ - readonly apiVersion: "v0alpha1"; - readonly command?: readonly (string)[]; - readonly containerRegistry?: string; - /** @default true */ - readonly enabled?: boolean; - readonly env?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly healthchecks?: { - readonly liveness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - readonly readiness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - readonly startup?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - }; - readonly healthChecks?: { - readonly liveness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - readonly readiness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - readonly startup?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - }; - readonly image: string; - readonly integrations?: readonly ({ - readonly id: string; - readonly name: string; - /** @default /opt/models */ - readonly path?: string; - /** @enum {string} */ - readonly type: "model"; - } | { - readonly accessKeyId: string; - readonly endpoint?: string; - readonly name: string; - readonly path?: string; - readonly region?: string; - readonly secretAccessKey: string; - /** @enum {string} */ - readonly type: "s3"; - readonly url: string; - } | { - readonly name: string; - /** @enum {string} */ - readonly type: "volume"; - } | { - readonly name: string; - readonly path?: string; - /** @enum {string} */ - readonly type: "git-lfs"; - /** Format: uri */ - readonly url: string; - })[]; - readonly name: string; - readonly region?: string; - readonly resources: { - readonly autoscaling?: { - readonly enabled?: boolean; - readonly maxReplicas: number; - readonly metrics: readonly ( - | { - /** @enum {string} */ - readonly metric: "requestDuration"; - /** @enum {string} */ - readonly summary: "average"; - readonly value: number; - } - | ({ - /** @enum {string} */ - readonly metric: "cpu" | "memory"; - /** @enum {string} */ - readonly summary: "average"; - readonly value: number; - }) - )[]; - }; - readonly machineType: string; - readonly ports: readonly (number)[]; - /** @default 1 */ - readonly replicas?: number; - }; - }) - ) - | ({ - readonly apiVersion: "v1" | "latest"; - readonly command?: readonly (string)[]; - readonly containerRegistry?: string; - /** @default true */ - readonly enabled?: boolean; - readonly env?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly healthchecks?: { - readonly liveness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - readonly readiness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - readonly startup?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - }; - readonly healthChecks?: { - readonly liveness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - readonly readiness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - readonly startup?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - }; - readonly image: string; - readonly integrations?: readonly ({ - readonly id: string; - readonly name: string; - /** @default /opt/models */ - readonly path?: string; - /** @enum {string} */ - readonly type: "model"; - } | { - readonly accessKeyId: string; - readonly endpoint?: string; - readonly name: string; - readonly path?: string; - readonly region?: string; - readonly secretAccessKey: string; - /** @enum {string} */ - readonly type: "s3"; - readonly url: string; - } | { - readonly name: string; - /** @enum {string} */ - readonly type: "volume"; - } | { - readonly name: string; - readonly path?: string; - /** @enum {string} */ - readonly type: "git-lfs"; - /** Format: uri */ - readonly url: string; - })[]; - readonly name: string; - readonly region?: string; - readonly resources: { - readonly autoscaling?: { - readonly enabled?: boolean; - readonly maxReplicas: number; - readonly metrics: readonly ( - | { - /** @enum {string} */ - readonly metric: "requestDuration"; - /** @enum {string} */ - readonly summary: "average"; - readonly value: number; - } - | ({ - /** @enum {string} */ - readonly metric: "cpu" | "memory"; - /** @enum {string} */ - readonly summary: "average"; - readonly value: number; - }) - )[]; - }; - readonly machineType: string; - readonly ports: readonly (number)[]; - /** @default 1 */ - readonly replicas?: number; - }; - }); - /** @description The ID of the app */ - readonly id: string; + /** @description Whether there are more pages of results available. */ + readonly hasMore: boolean; + /** @description The items on this page. */ + readonly items: readonly ({ + /** @description The ID of the cluster the autoscaling group is for. */ + readonly clusterId: string; + /** @description The current number of machines in the autoscaling group. */ + readonly current: number; + /** + * Format: date-time + * @description The date the autoscaling group was created. + */ + readonly dtCreated: Date; + /** + * Format: date-time + * @description The date the autoscaling group was deleted. + */ + readonly dtDeleted: Date; + /** + * Format: date-time + * @description The date the autoscaling group was last modified. + */ + readonly dtModified: Date; + /** @description The ID of the autoscaling group. */ + readonly id: string; + /** @description The ID of the user who last edited the autoscaling group. */ + readonly lastEditedByUserId: string | null; + /** @description The machine type used by machines in the autoscaling group. */ + readonly machineType: string; + /** @description The maximum number of machines in the autoscaling group. */ + readonly max: number; + /** @description The minimum number of machines in the autoscaling group. */ + readonly min: number; + /** @description The name of the autoscaling group. */ + readonly name: string; + /** @description The ID of the network used by machines in the autoscaling group. */ + readonly networkId: string; + /** @description The timeout for provisioning machines in the autoscaling group, in minutes. */ + readonly provisioningTimeout: number | null; + /** @description The ID of the startup script used by machines in the autoscaling group. */ + readonly startupScriptId: string | null; + /** @description The ID of the template used by machines in the autoscaling group. */ + readonly templateId: string; + })[]; + /** @description The cursor required to fetch the next page of results. i.e. `?after=nextPage`. This is `null` when there is no next page. */ + readonly nextPage?: string; }; }; }; @@ -3460,255 +1942,10 @@ export interface operations { }; }; /** - * Update an app's name - * @description Change the name of an app + * Create an autoscaling group + * @description Create an autoscaling group. */ - "apps-updateName": { - parameters: { - readonly path: { - /** @description The ID of the app to update */ - id: string; - }; - }; - readonly requestBody: { - readonly content: { - readonly "application/json": { - /** @description The new name of the app */ - readonly name: string; - }; - }; - }; - responses: { - /** @description Successful response */ - 200: { - content: { - readonly "application/json": { - /** @description The ID of the app */ - readonly id: string; - /** @description The name of the app */ - readonly name: string; - }; - }; - }; - default: components["responses"]["error"]; - }; - }; - /** - * Get the current session - * @description Get the current session. If a user is not logged in, this will be null. Otherwise, it will contain the current team and user. - */ - "auth-session": { - responses: { - /** @description Successful response */ - 200: { - content: { - readonly "application/json": - | ({ - readonly team: { - /** @description An internal, numeric ID for the team */ - readonly analyticsId: number; - /** @description A unique ID for the team */ - readonly id: string; - /** @description Whether the team is private or not */ - readonly isPrivate: boolean; - /** @description The maximum number of machines */ - readonly maxMachines: number; - /** @description The namespace for the team */ - readonly namespace: string; - }; - readonly user: { - /** @description An internal, numeric ID for the user */ - readonly analyticsId: number; - /** - * Format: date-time - * @description The date the account was confirmed - */ - readonly dtConfirmed: Date; - /** - * Format: date-time - * @description The date the user was created - */ - readonly dtCreated: Date; - /** @description The user's email address */ - readonly email: string; - /** @description The user's first name */ - readonly firstName: string | null; - /** @description A unique ID for the user */ - readonly id: string; - /** @description Whether the user has a password set */ - readonly isPasswordAuthEnabled: boolean; - /** @description Whether the user's phone number has been verified */ - readonly isPhoneVerified: boolean; - /** @description Whether the user has a QR code based MFA confirmed */ - readonly isQrCodeBasedMfaConfirmed: boolean; - /** @description Whether the user has a QR code based MFA enabled */ - readonly isQrCodeBasedMfaEnabled: boolean; - /** @description The user's last name */ - readonly lastName: string | null; - /** @description Metadata about the user */ - readonly metadata: { - /** - * @description Core survey question-answer pairs - * @default null - */ - readonly coreSurvey?: - | ({ - [key: string]: string | undefined; - }) - | null; - /** - * @description Gradient survey question-answer pairs - * @default null - */ - readonly gradientSurvey?: - | ({ - [key: string]: string | undefined; - }) - | null; - /** - * @description Whether the user has accepted the Graphcore terms of service - * @default false - */ - readonly graphcoreTermsAccepted?: boolean; - /** - * @description Tags for the user - * @default null - */ - readonly tags?: string | null; - }; - /** - * @description The user's preferences - * @default null - */ - readonly preferences?: - | ({ - readonly defaultProduct?: string | null; - readonly defaultTeamId?: string | null; - readonly disableHotkeys?: boolean | null; - readonly fontSize?: number | null; - /** @enum {string|null} */ - readonly theme?: "light" | "dark" | null; - }) - | null; - /** @description The teams this user is a member of */ - readonly teamMemberships: readonly ({ - /** @description Whether the user is an admin of the team */ - readonly isAdmin: boolean; - /** @description Whether the user is the owner of the team */ - readonly isOwner: boolean; - /** @description The team the user is a member of */ - readonly team: { - /** - * Format: date-time - * @description The date the team was created - */ - readonly dtCreated: Date; - /** @description The ID of the team */ - readonly id: string; - /** @description Whether the team is the user's team */ - readonly isUserTeam: boolean; - /** @description The name of the team */ - readonly name: string; - /** @description The namespace of the team */ - readonly namespace: string; - /** - * @description The URL of the team's profile image. - * @default null - */ - readonly publicProfileImageUrl?: string | null; - }; - })[]; - }; - }) - | null; - }; - }; - default: components["responses"]["error"]; - }; - }; - /** - * List autoscaling groups - * @description List autoscaling groups and filter by machine type. - */ - "autoscalingGroups-list": { - parameters: { - readonly query: { - /** @description Fetch the next page of results after this cursor. */ - after?: string; - /** @description The number of items to fetch after this page. */ - limit?: number; - /** @description Order results by one of these fields. */ - orderBy?: "dtCreated" | "name"; - /** @description The order to sort the results by. */ - order?: "asc" | "desc"; - /** @description Cluster the autoscaling group is for. */ - clusterId?: string; - /** @description Machine type used for machiens in the autoscaling group. */ - machineType?: string; - }; - }; - responses: { - /** @description Successful response */ - 200: { - content: { - readonly "application/json": { - /** @description Whether there are more pages of results available. */ - readonly hasMore: boolean; - /** @description The items on this page. */ - readonly items: readonly ({ - /** @description The ID of the cluster the autoscaling group is for. */ - readonly clusterId: string; - /** @description The current number of machines in the autoscaling group. */ - readonly current: number; - /** - * Format: date-time - * @description The date the autoscaling group was created. - */ - readonly dtCreated: Date; - /** - * Format: date-time - * @description The date the autoscaling group was deleted. - */ - readonly dtDeleted: Date; - /** - * Format: date-time - * @description The date the autoscaling group was last modified. - */ - readonly dtModified: Date; - /** @description The ID of the autoscaling group. */ - readonly id: string; - /** @description The ID of the user who last edited the autoscaling group. */ - readonly lastEditedByUserId: string | null; - /** @description The machine type used by machines in the autoscaling group. */ - readonly machineType: string; - /** @description The maximum number of machines in the autoscaling group. */ - readonly max: number; - /** @description The minimum number of machines in the autoscaling group. */ - readonly min: number; - /** @description The name of the autoscaling group. */ - readonly name: string; - /** @description The ID of the network used by machines in the autoscaling group. */ - readonly networkId: string; - /** @description The timeout for provisioning machines in the autoscaling group, in minutes. */ - readonly provisioningTimeout: number | null; - /** @description The ID of the startup script used by machines in the autoscaling group. */ - readonly startupScriptId: string | null; - /** @description The ID of the template used by machines in the autoscaling group. */ - readonly templateId: string; - })[]; - /** @description The cursor required to fetch the next page of results. i.e. `?after=nextPage`. This is `null` when there is no next page. */ - readonly nextPage?: string; - }; - }; - }; - default: components["responses"]["error"]; - }; - }; - /** - * Create an autoscaling group - * @description Create an autoscaling group. - */ - "autoscalingGroups-create": { + "mutation.autoscalingGroups.create": { readonly requestBody: { readonly content: { readonly "application/json": { @@ -3787,7 +2024,7 @@ export interface operations { * Get an autoscaling group * @description Fetches a single autoscaling group by id. */ - "autoscalingGroups-get": { + "query.autoscalingGroups.get": { parameters: { readonly path: { /** @description The ID of the autoscaling group to fetch. */ @@ -3848,7 +2085,7 @@ export interface operations { * Update an autoscaling group * @description Update an autoscaling group. */ - "autoscalingGroups-update": { + "mutation.autoscalingGroups.update": { parameters: { readonly path: { /** @description The id of the autoscaling group. */ @@ -3935,7 +2172,7 @@ export interface operations { * Delete an autoscaling group * @description Delete an autoscaling group. */ - "autoscalingGroups-delete": { + "mutation.autoscalingGroups.delete": { parameters: { readonly path: { /** @description The id of the autoscaling group. */ @@ -3959,7 +2196,7 @@ export interface operations { * Get account standing * @description Check whether the current team account is in good standing. If not, send back a message explaining why. */ - "billingAccountStanding-get": { + "query.billingAccountStanding.get": { responses: { /** @description Successful response */ 200: { @@ -3979,7 +2216,7 @@ export interface operations { * List container registries * @description Lists container registries for the current team. */ - "containerRegistries-list": { + "query.containerRegistries.list": { parameters: { readonly query: { /** @description Fetch the next page of results after this cursor. */ @@ -4034,7 +2271,7 @@ export interface operations { * Create a container registry * @description Creates a container registry for the current team. */ - "containerRegistries-create": { + "mutation.containerRegistries.create": { readonly requestBody: { readonly content: { readonly "application/json": { @@ -4089,7 +2326,7 @@ export interface operations { * List container registries * @description Lists container registries for the current team. */ - "containerRegistries-get": { + "query.containerRegistries.get": { parameters: { readonly path: { /** @description The id of the container registry */ @@ -4131,7 +2368,7 @@ export interface operations { * Update a container registry * @description Updates a container registry for the current team. */ - "containerRegistries-update": { + "mutation.containerRegistries.update": { parameters: { readonly path: { /** @description The id of the container registry */ @@ -4192,7 +2429,7 @@ export interface operations { * Delete a container registry * @description Deletes a container registry for the current team. */ - "containerRegistries-delete": { + "mutation.containerRegistries.delete": { parameters: { readonly path: { /** @description The id of the container registry */ @@ -4234,7 +2471,7 @@ export interface operations { * Test a container registry connection * @description Validate that a container registry can be connected to using the provided credentials. */ - "containerRegistries-testConnection": { + "mutation.containerRegistries.testConnection": { parameters: { readonly path: { /** @description The id of the container registry */ @@ -4260,7 +2497,7 @@ export interface operations { * List deployments * @description Fetches a list of deployments for a logged in user. */ - "deployments-list": { + "query.deployments.list": { parameters: { readonly query: { /** @description Fetch the next page of results after this cursor. */ @@ -4300,332 +2537,130 @@ export interface operations { /** @description The data for the deployment spec */ readonly data?: | ( - | ( - | ({ - /** @enum {string} */ - readonly apiVersion: "v0alpha0"; - readonly command?: readonly (string)[]; - readonly containerRegistry?: string; - /** @default true */ - readonly enabled?: boolean; - readonly env?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly healthChecks?: { - readonly liveness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - readonly readiness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - readonly startup?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - }; - readonly image: string; - readonly models?: readonly ({ - readonly id: string; - readonly path?: string; - })[]; + | ({ + readonly apiVersion: "v0alpha0" | "latest"; + readonly command?: readonly (string)[]; + readonly containerRegistry?: string; + /** @default true */ + readonly enabled?: boolean; + readonly env?: readonly ({ readonly name: string; - /** @default 80 */ - readonly port?: number; - readonly region?: string; - readonly repositories?: { - readonly dataset: string; - readonly mountPath?: string; - readonly repositories: readonly ({ + readonly value: string; + })[]; + readonly healthChecks?: { + readonly liveness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ readonly name: string; - readonly password?: string; - readonly ref?: string; - readonly url: string; - readonly username?: string; + readonly value: string; })[]; - }; - readonly resources: { - readonly autoscaling?: { - readonly enabled?: boolean; - readonly maxReplicas: number; - readonly metrics: readonly ( - | { - /** @enum {string} */ - readonly metric: "requestDuration"; - /** @enum {string} */ - readonly summary: "average"; - readonly value: number; - } - | ({ - /** @enum {string} */ - readonly metric: "cpu" | "memory"; - /** @enum {string} */ - readonly summary: "average"; - readonly value: number; - }) - )[]; - }; - readonly instanceType: string; - /** @default 1 */ - readonly replicas?: number; - }; - }) - | ({ - /** @enum {string} */ - readonly apiVersion: "v0alpha1"; - readonly command?: readonly (string)[]; - readonly containerRegistry?: string; - /** @default true */ - readonly enabled?: boolean; - readonly env?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly healthchecks?: { - readonly liveness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - readonly readiness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - readonly startup?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; }; - readonly healthChecks?: { - readonly liveness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - readonly readiness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - readonly startup?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; + readonly readiness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; }; - readonly image: string; - readonly integrations?: readonly ({ - readonly id: string; - readonly name: string; - /** @default /opt/models */ - readonly path?: string; - /** @enum {string} */ - readonly type: "model"; - } | { - readonly accessKeyId: string; - readonly endpoint?: string; - readonly name: string; - readonly path?: string; - readonly region?: string; - readonly secretAccessKey: string; - /** @enum {string} */ - readonly type: "s3"; - readonly url: string; - } | { - readonly name: string; - /** @enum {string} */ - readonly type: "volume"; + readonly startup?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + }; + readonly image: string; + readonly models?: readonly ({ + readonly id: string; + readonly path?: string; + })[]; + readonly name: string; + /** @default 80 */ + readonly port?: number; + readonly region?: string; + readonly repositories?: { + readonly dataset: string; + readonly mountPath?: string; + readonly repositories: readonly ({ readonly name: string; - readonly path?: string; - /** @enum {string} */ - readonly type: "git-lfs"; - /** Format: uri */ + readonly password?: string; + readonly ref?: string; readonly url: string; + readonly username?: string; })[]; - readonly name: string; - readonly region?: string; - readonly resources: { - readonly autoscaling?: { - readonly enabled?: boolean; - readonly maxReplicas: number; - readonly metrics: readonly ( - | { - /** @enum {string} */ - readonly metric: "requestDuration"; - /** @enum {string} */ - readonly summary: "average"; - readonly value: number; - } - | ({ - /** @enum {string} */ - readonly metric: "cpu" | "memory"; - /** @enum {string} */ - readonly summary: "average"; - readonly value: number; - }) - )[]; - }; - readonly machineType: string; - readonly ports: readonly (number)[]; - /** @default 1 */ - readonly replicas?: number; + }; + readonly resources: { + readonly autoscaling?: { + readonly enabled?: boolean; + readonly maxReplicas: number; + readonly metrics: readonly ( + | { + /** @enum {string} */ + readonly metric: "requestDuration"; + /** @enum {string} */ + readonly summary: "average"; + readonly value: number; + } + | ({ + /** @enum {string} */ + readonly metric: "cpu" | "memory"; + /** @enum {string} */ + readonly summary: "average"; + readonly value: number; + }) + )[]; }; - }) - ) + readonly instanceType: string; + /** @default 1 */ + readonly replicas?: number; + }; + }) | ({ - readonly apiVersion: "v1" | "latest"; + /** @enum {string} */ + readonly apiVersion: "v0alpha1"; readonly command?: readonly (string)[]; readonly containerRegistry?: string; /** @default true */ @@ -4645,7 +2680,7 @@ export interface operations { readonly initialDelaySeconds?: number; readonly path: string; readonly periodSeconds?: number; - readonly port?: number; + readonly port: number; readonly timeoutSeconds?: number; } | { readonly exec: { @@ -4666,7 +2701,7 @@ export interface operations { readonly initialDelaySeconds?: number; readonly path: string; readonly periodSeconds?: number; - readonly port?: number; + readonly port: number; readonly timeoutSeconds?: number; } | { readonly exec: { @@ -4687,7 +2722,7 @@ export interface operations { readonly initialDelaySeconds?: number; readonly path: string; readonly periodSeconds?: number; - readonly port?: number; + readonly port: number; readonly timeoutSeconds?: number; } | { readonly exec: { @@ -4710,7 +2745,7 @@ export interface operations { readonly initialDelaySeconds?: number; readonly path: string; readonly periodSeconds?: number; - readonly port?: number; + readonly port: number; readonly timeoutSeconds?: number; } | { readonly exec: { @@ -4731,7 +2766,7 @@ export interface operations { readonly initialDelaySeconds?: number; readonly path: string; readonly periodSeconds?: number; - readonly port?: number; + readonly port: number; readonly timeoutSeconds?: number; } | { readonly exec: { @@ -4752,7 +2787,7 @@ export interface operations { readonly initialDelaySeconds?: number; readonly path: string; readonly periodSeconds?: number; - readonly port?: number; + readonly port: number; readonly timeoutSeconds?: number; } | { readonly exec: { @@ -4766,36 +2801,27 @@ export interface operations { }; readonly image: string; readonly integrations?: readonly ({ - readonly id: string; - readonly name: string; - /** @default /opt/models */ - readonly path?: string; - /** @enum {string} */ - readonly type: "model"; - } | { - readonly accessKeyId: string; - readonly endpoint?: string; - readonly name: string; - readonly path?: string; - readonly region?: string; - readonly secretAccessKey: string; - /** @enum {string} */ - readonly type: "s3"; - readonly url: string; - } | { readonly name: string; /** @enum {string} */ readonly type: "volume"; - } | { - readonly name: string; + })[]; + readonly models?: readonly ({ + readonly id: string; readonly path?: string; - /** @enum {string} */ - readonly type: "git-lfs"; - /** Format: uri */ - readonly url: string; })[]; readonly name: string; readonly region?: string; + readonly repositories?: { + readonly dataset: string; + readonly mountPath?: string; + readonly repositories: readonly ({ + readonly name: string; + readonly password?: string; + readonly ref?: string; + readonly url: string; + readonly username?: string; + })[]; + }; readonly resources: { readonly autoscaling?: { readonly enabled?: boolean; @@ -4890,352 +2916,28 @@ export interface operations { * Upsert a deployment * @description Submit a new deployment configuration. If a deployment does not exist, one is created. Otherwise, a deployment is updated with new configuration. */ - "deployments-upsert": { + "mutation.deployments.upsert": { readonly requestBody: { readonly content: { readonly "application/json": { /** @description The deployment configuration */ readonly config: - | ( - | ({ - /** @enum {string} */ - readonly apiVersion: "v0alpha0"; - readonly command?: readonly (string)[]; - readonly containerRegistry?: string; - /** @default true */ - readonly enabled?: boolean; - readonly env?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly healthChecks?: { - readonly liveness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - readonly readiness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - readonly startup?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - }; - readonly image: string; - readonly models?: readonly ({ - readonly id: string; - readonly path?: string; - })[]; + | ({ + readonly apiVersion: "v0alpha0" | "latest"; + readonly command?: readonly (string)[]; + readonly containerRegistry?: string; + /** @default true */ + readonly enabled?: boolean; + readonly env?: readonly ({ readonly name: string; - /** @default 80 */ - readonly port?: number; - readonly region?: string; - readonly repositories?: { - readonly dataset: string; - readonly mountPath?: string; - readonly repositories: readonly ({ + readonly value: string; + })[]; + readonly healthChecks?: { + readonly liveness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ readonly name: string; - readonly password?: string; - readonly ref?: string; - readonly url: string; - readonly username?: string; - })[]; - }; - readonly resources: { - readonly autoscaling?: { - readonly enabled?: boolean; - readonly maxReplicas: number; - readonly metrics: readonly ( - | { - /** @enum {string} */ - readonly metric: "requestDuration"; - /** @enum {string} */ - readonly summary: "average"; - readonly value: number; - } - | ({ - /** @enum {string} */ - readonly metric: "cpu" | "memory"; - /** @enum {string} */ - readonly summary: "average"; - readonly value: number; - }) - )[]; - }; - readonly instanceType: string; - /** @default 1 */ - readonly replicas?: number; - }; - }) - | ({ - /** @enum {string} */ - readonly apiVersion: "v0alpha1"; - readonly command?: readonly (string)[]; - readonly containerRegistry?: string; - /** @default true */ - readonly enabled?: boolean; - readonly env?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly healthchecks?: { - readonly liveness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - readonly readiness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - readonly startup?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - }; - readonly healthChecks?: { - readonly liveness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - readonly readiness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - readonly startup?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - }; - readonly image: string; - readonly integrations?: readonly ({ - readonly id: string; - readonly name: string; - /** @default /opt/models */ - readonly path?: string; - /** @enum {string} */ - readonly type: "model"; - } | { - readonly accessKeyId: string; - readonly endpoint?: string; - readonly name: string; - readonly path?: string; - readonly region?: string; - readonly secretAccessKey: string; - /** @enum {string} */ - readonly type: "s3"; - readonly url: string; - } | { - readonly name: string; - /** @enum {string} */ - readonly type: "volume"; - } | { - readonly name: string; - readonly path?: string; - /** @enum {string} */ - readonly type: "git-lfs"; - /** Format: uri */ - readonly url: string; - })[]; - readonly name: string; - readonly region?: string; - readonly resources: { - readonly autoscaling?: { - readonly enabled?: boolean; - readonly maxReplicas: number; - readonly metrics: readonly ( - | { - /** @enum {string} */ - readonly metric: "requestDuration"; - /** @enum {string} */ - readonly summary: "average"; - readonly value: number; - } - | ({ - /** @enum {string} */ - readonly metric: "cpu" | "memory"; - /** @enum {string} */ - readonly summary: "average"; - readonly value: number; - }) - )[]; - }; - readonly machineType: string; - readonly ports: readonly (number)[]; - /** @default 1 */ - readonly replicas?: number; - }; - }) - ) - | ({ - readonly apiVersion: "v1" | "latest"; - readonly command?: readonly (string)[]; - readonly containerRegistry?: string; - /** @default true */ - readonly enabled?: boolean; - readonly env?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly healthchecks?: { - readonly liveness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; + readonly value: string; })[]; readonly host?: string; readonly initialDelaySeconds?: number; @@ -5295,28 +2997,85 @@ export interface operations { readonly timeoutSeconds?: number; }; }; - readonly healthChecks?: { - readonly liveness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; + readonly image: string; + readonly models?: readonly ({ + readonly id: string; + readonly path?: string; + })[]; + readonly name: string; + /** @default 80 */ + readonly port?: number; + readonly region?: string; + readonly repositories?: { + readonly dataset: string; + readonly mountPath?: string; + readonly repositories: readonly ({ + readonly name: string; + readonly password?: string; + readonly ref?: string; + readonly url: string; + readonly username?: string; + })[]; + }; + readonly resources: { + readonly autoscaling?: { + readonly enabled?: boolean; + readonly maxReplicas: number; + readonly metrics: readonly ( + | { + /** @enum {string} */ + readonly metric: "requestDuration"; + /** @enum {string} */ + readonly summary: "average"; + readonly value: number; + } + | ({ + /** @enum {string} */ + readonly metric: "cpu" | "memory"; + /** @enum {string} */ + readonly summary: "average"; + readonly value: number; + }) + )[]; + }; + readonly instanceType: string; + /** @default 1 */ + readonly replicas?: number; + }; + }) + | ({ + /** @enum {string} */ + readonly apiVersion: "v0alpha1"; + readonly command?: readonly (string)[]; + readonly containerRegistry?: string; + /** @default true */ + readonly enabled?: boolean; + readonly env?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly healthchecks?: { + readonly liveness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; readonly readiness?: { readonly failureThreshold?: number; readonly headers?: readonly ({ @@ -5327,7 +3086,7 @@ export interface operations { readonly initialDelaySeconds?: number; readonly path: string; readonly periodSeconds?: number; - readonly port?: number; + readonly port: number; readonly timeoutSeconds?: number; } | { readonly exec: { @@ -5348,7 +3107,72 @@ export interface operations { readonly initialDelaySeconds?: number; readonly path: string; readonly periodSeconds?: number; - readonly port?: number; + readonly port: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + }; + readonly healthChecks?: { + readonly liveness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly readiness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly startup?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port: number; readonly timeoutSeconds?: number; } | { readonly exec: { @@ -5362,36 +3186,27 @@ export interface operations { }; readonly image: string; readonly integrations?: readonly ({ - readonly id: string; - readonly name: string; - /** @default /opt/models */ - readonly path?: string; - /** @enum {string} */ - readonly type: "model"; - } | { - readonly accessKeyId: string; - readonly endpoint?: string; - readonly name: string; - readonly path?: string; - readonly region?: string; - readonly secretAccessKey: string; - /** @enum {string} */ - readonly type: "s3"; - readonly url: string; - } | { readonly name: string; /** @enum {string} */ readonly type: "volume"; - } | { - readonly name: string; + })[]; + readonly models?: readonly ({ + readonly id: string; readonly path?: string; - /** @enum {string} */ - readonly type: "git-lfs"; - /** Format: uri */ - readonly url: string; })[]; readonly name: string; readonly region?: string; + readonly repositories?: { + readonly dataset: string; + readonly mountPath?: string; + readonly repositories: readonly ({ + readonly name: string; + readonly password?: string; + readonly ref?: string; + readonly url: string; + readonly username?: string; + })[]; + }; readonly resources: { readonly autoscaling?: { readonly enabled?: boolean; @@ -5446,7 +3261,7 @@ export interface operations { * Get a deployment * @description Fetches a single deployment by deployment ID. */ - "deployments-get": { + "query.deployments.get": { parameters: { readonly path: { /** @description The ID of the deployment to fetch */ @@ -5476,346 +3291,22 @@ export interface operations { /** @description The data for the deployment spec */ readonly data?: | ( - | ( - | ({ - /** @enum {string} */ - readonly apiVersion: "v0alpha0"; - readonly command?: readonly (string)[]; - readonly containerRegistry?: string; - /** @default true */ - readonly enabled?: boolean; - readonly env?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly healthChecks?: { - readonly liveness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - readonly readiness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - readonly startup?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - }; - readonly image: string; - readonly models?: readonly ({ - readonly id: string; - readonly path?: string; - })[]; + | ({ + readonly apiVersion: "v0alpha0" | "latest"; + readonly command?: readonly (string)[]; + readonly containerRegistry?: string; + /** @default true */ + readonly enabled?: boolean; + readonly env?: readonly ({ readonly name: string; - /** @default 80 */ - readonly port?: number; - readonly region?: string; - readonly repositories?: { - readonly dataset: string; - readonly mountPath?: string; - readonly repositories: readonly ({ + readonly value: string; + })[]; + readonly healthChecks?: { + readonly liveness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ readonly name: string; - readonly password?: string; - readonly ref?: string; - readonly url: string; - readonly username?: string; - })[]; - }; - readonly resources: { - readonly autoscaling?: { - readonly enabled?: boolean; - readonly maxReplicas: number; - readonly metrics: readonly ( - | { - /** @enum {string} */ - readonly metric: "requestDuration"; - /** @enum {string} */ - readonly summary: "average"; - readonly value: number; - } - | ({ - /** @enum {string} */ - readonly metric: "cpu" | "memory"; - /** @enum {string} */ - readonly summary: "average"; - readonly value: number; - }) - )[]; - }; - readonly instanceType: string; - /** @default 1 */ - readonly replicas?: number; - }; - }) - | ({ - /** @enum {string} */ - readonly apiVersion: "v0alpha1"; - readonly command?: readonly (string)[]; - readonly containerRegistry?: string; - /** @default true */ - readonly enabled?: boolean; - readonly env?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly healthchecks?: { - readonly liveness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - readonly readiness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - readonly startup?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - }; - readonly healthChecks?: { - readonly liveness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - readonly readiness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - readonly startup?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - }; - readonly image: string; - readonly integrations?: readonly ({ - readonly id: string; - readonly name: string; - /** @default /opt/models */ - readonly path?: string; - /** @enum {string} */ - readonly type: "model"; - } | { - readonly accessKeyId: string; - readonly endpoint?: string; - readonly name: string; - readonly path?: string; - readonly region?: string; - readonly secretAccessKey: string; - /** @enum {string} */ - readonly type: "s3"; - readonly url: string; - } | { - readonly name: string; - /** @enum {string} */ - readonly type: "volume"; - } | { - readonly name: string; - readonly path?: string; - /** @enum {string} */ - readonly type: "git-lfs"; - /** Format: uri */ - readonly url: string; - })[]; - readonly name: string; - readonly region?: string; - readonly resources: { - readonly autoscaling?: { - readonly enabled?: boolean; - readonly maxReplicas: number; - readonly metrics: readonly ( - | { - /** @enum {string} */ - readonly metric: "requestDuration"; - /** @enum {string} */ - readonly summary: "average"; - readonly value: number; - } - | ({ - /** @enum {string} */ - readonly metric: "cpu" | "memory"; - /** @enum {string} */ - readonly summary: "average"; - readonly value: number; - }) - )[]; - }; - readonly machineType: string; - readonly ports: readonly (number)[]; - /** @default 1 */ - readonly replicas?: number; - }; - }) - ) - | ({ - readonly apiVersion: "v1" | "latest"; - readonly command?: readonly (string)[]; - readonly containerRegistry?: string; - /** @default true */ - readonly enabled?: boolean; - readonly env?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly healthchecks?: { - readonly liveness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; + readonly value: string; })[]; readonly host?: string; readonly initialDelaySeconds?: number; @@ -5875,31 +3366,67 @@ export interface operations { readonly timeoutSeconds?: number; }; }; - readonly healthChecks?: { - readonly liveness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - readonly readiness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ + readonly image: string; + readonly models?: readonly ({ + readonly id: string; + readonly path?: string; + })[]; + readonly name: string; + /** @default 80 */ + readonly port?: number; + readonly region?: string; + readonly repositories?: { + readonly dataset: string; + readonly mountPath?: string; + readonly repositories: readonly ({ + readonly name: string; + readonly password?: string; + readonly ref?: string; + readonly url: string; + readonly username?: string; + })[]; + }; + readonly resources: { + readonly autoscaling?: { + readonly enabled?: boolean; + readonly maxReplicas: number; + readonly metrics: readonly ( + | { + /** @enum {string} */ + readonly metric: "requestDuration"; + /** @enum {string} */ + readonly summary: "average"; + readonly value: number; + } + | ({ + /** @enum {string} */ + readonly metric: "cpu" | "memory"; + /** @enum {string} */ + readonly summary: "average"; + readonly value: number; + }) + )[]; + }; + readonly instanceType: string; + /** @default 1 */ + readonly replicas?: number; + }; + }) + | ({ + /** @enum {string} */ + readonly apiVersion: "v0alpha1"; + readonly command?: readonly (string)[]; + readonly containerRegistry?: string; + /** @default true */ + readonly enabled?: boolean; + readonly env?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly healthchecks?: { + readonly liveness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ readonly name: string; readonly value: string; })[]; @@ -5907,7 +3434,28 @@ export interface operations { readonly initialDelaySeconds?: number; readonly path: string; readonly periodSeconds?: number; - readonly port?: number; + readonly port: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly readiness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port: number; readonly timeoutSeconds?: number; } | { readonly exec: { @@ -5928,7 +3476,72 @@ export interface operations { readonly initialDelaySeconds?: number; readonly path: string; readonly periodSeconds?: number; - readonly port?: number; + readonly port: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + }; + readonly healthChecks?: { + readonly liveness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly readiness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly startup?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port: number; readonly timeoutSeconds?: number; } | { readonly exec: { @@ -5942,36 +3555,27 @@ export interface operations { }; readonly image: string; readonly integrations?: readonly ({ - readonly id: string; - readonly name: string; - /** @default /opt/models */ - readonly path?: string; - /** @enum {string} */ - readonly type: "model"; - } | { - readonly accessKeyId: string; - readonly endpoint?: string; - readonly name: string; - readonly path?: string; - readonly region?: string; - readonly secretAccessKey: string; - /** @enum {string} */ - readonly type: "s3"; - readonly url: string; - } | { readonly name: string; /** @enum {string} */ readonly type: "volume"; - } | { - readonly name: string; + })[]; + readonly models?: readonly ({ + readonly id: string; readonly path?: string; - /** @enum {string} */ - readonly type: "git-lfs"; - /** Format: uri */ - readonly url: string; })[]; readonly name: string; readonly region?: string; + readonly repositories?: { + readonly dataset: string; + readonly mountPath?: string; + readonly repositories: readonly ({ + readonly name: string; + readonly password?: string; + readonly ref?: string; + readonly url: string; + readonly username?: string; + })[]; + }; readonly resources: { readonly autoscaling?: { readonly enabled?: boolean; @@ -6063,7 +3667,7 @@ export interface operations { * Delete a deployment * @description Deletes a deployment by deployment ID. */ - "deployments-delete": { + "mutation.deployments.delete": { parameters: { readonly path: { /** @description The ID of the deployment to delete */ @@ -6087,7 +3691,7 @@ export interface operations { * List app history * @description Lists history for a given app. */ - "deploymentHistory-list": { + "query.deploymentHistory.list": { parameters: { readonly query: { /** @description Fetch the next page of results after this cursor. */ @@ -6116,382 +3720,180 @@ export interface operations { /** @description The data for the deployment spec */ readonly data?: | ( - | ( - | ({ - /** @enum {string} */ - readonly apiVersion: "v0alpha0"; - readonly command?: readonly (string)[]; - readonly containerRegistry?: string; - /** @default true */ - readonly enabled?: boolean; - readonly env?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly healthChecks?: { - readonly liveness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - readonly readiness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - readonly startup?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; + | ({ + readonly apiVersion: "v0alpha0" | "latest"; + readonly command?: readonly (string)[]; + readonly containerRegistry?: string; + /** @default true */ + readonly enabled?: boolean; + readonly env?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly healthChecks?: { + readonly liveness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; }; - readonly image: string; - readonly models?: readonly ({ - readonly id: string; - readonly path?: string; - })[]; - readonly name: string; - /** @default 80 */ - readonly port?: number; - readonly region?: string; - readonly repositories?: { - readonly dataset: string; - readonly mountPath?: string; - readonly repositories: readonly ({ + readonly readiness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ readonly name: string; - readonly password?: string; - readonly ref?: string; - readonly url: string; - readonly username?: string; + readonly value: string; })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; }; - readonly resources: { - readonly autoscaling?: { - readonly enabled?: boolean; - readonly maxReplicas: number; - readonly metrics: readonly ( - | { - /** @enum {string} */ - readonly metric: "requestDuration"; - /** @enum {string} */ - readonly summary: "average"; - readonly value: number; - } - | ({ - /** @enum {string} */ - readonly metric: "cpu" | "memory"; - /** @enum {string} */ - readonly summary: "average"; - readonly value: number; - }) - )[]; + readonly startup?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; }; - readonly instanceType: string; - /** @default 1 */ - readonly replicas?: number; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; }; - }) - | ({ - /** @enum {string} */ - readonly apiVersion: "v0alpha1"; - readonly command?: readonly (string)[]; - readonly containerRegistry?: string; - /** @default true */ - readonly enabled?: boolean; - readonly env?: readonly ({ + }; + readonly image: string; + readonly models?: readonly ({ + readonly id: string; + readonly path?: string; + })[]; + readonly name: string; + /** @default 80 */ + readonly port?: number; + readonly region?: string; + readonly repositories?: { + readonly dataset: string; + readonly mountPath?: string; + readonly repositories: readonly ({ readonly name: string; - readonly value: string; + readonly password?: string; + readonly ref?: string; + readonly url: string; + readonly username?: string; })[]; - readonly healthchecks?: { - readonly liveness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - readonly readiness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; + }; + readonly resources: { + readonly autoscaling?: { + readonly enabled?: boolean; + readonly maxReplicas: number; + readonly metrics: readonly ( + | { + /** @enum {string} */ + readonly metric: "requestDuration"; + /** @enum {string} */ + readonly summary: "average"; + readonly value: number; + } + | ({ + /** @enum {string} */ + readonly metric: "cpu" | "memory"; + /** @enum {string} */ + readonly summary: "average"; + readonly value: number; + }) + )[]; + }; + readonly instanceType: string; + /** @default 1 */ + readonly replicas?: number; + }; + }) + | ({ + /** @enum {string} */ + readonly apiVersion: "v0alpha1"; + readonly command?: readonly (string)[]; + readonly containerRegistry?: string; + /** @default true */ + readonly enabled?: boolean; + readonly env?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly healthchecks?: { + readonly liveness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; }; - readonly startup?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly readiness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; }; - }; - readonly healthChecks?: { - readonly liveness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - readonly readiness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - readonly startup?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - }; - readonly image: string; - readonly integrations?: readonly ({ - readonly id: string; - readonly name: string; - /** @default /opt/models */ - readonly path?: string; - /** @enum {string} */ - readonly type: "model"; - } | { - readonly accessKeyId: string; - readonly endpoint?: string; - readonly name: string; - readonly path?: string; - readonly region?: string; - readonly secretAccessKey: string; - /** @enum {string} */ - readonly type: "s3"; - readonly url: string; - } | { - readonly name: string; - /** @enum {string} */ - readonly type: "volume"; - } | { - readonly name: string; - readonly path?: string; - /** @enum {string} */ - readonly type: "git-lfs"; - /** Format: uri */ - readonly url: string; - })[]; - readonly name: string; - readonly region?: string; - readonly resources: { - readonly autoscaling?: { - readonly enabled?: boolean; - readonly maxReplicas: number; - readonly metrics: readonly ( - | { - /** @enum {string} */ - readonly metric: "requestDuration"; - /** @enum {string} */ - readonly summary: "average"; - readonly value: number; - } - | ({ - /** @enum {string} */ - readonly metric: "cpu" | "memory"; - /** @enum {string} */ - readonly summary: "average"; - readonly value: number; - }) - )[]; - }; - readonly machineType: string; - readonly ports: readonly (number)[]; - /** @default 1 */ - readonly replicas?: number; - }; - }) - ) - | ({ - readonly apiVersion: "v1" | "latest"; - readonly command?: readonly (string)[]; - readonly containerRegistry?: string; - /** @default true */ - readonly enabled?: boolean; - readonly env?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly healthchecks?: { - readonly liveness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - readonly readiness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; }; readonly startup?: { readonly failureThreshold?: number; @@ -6503,7 +3905,7 @@ export interface operations { readonly initialDelaySeconds?: number; readonly path: string; readonly periodSeconds?: number; - readonly port?: number; + readonly port: number; readonly timeoutSeconds?: number; } | { readonly exec: { @@ -6526,7 +3928,7 @@ export interface operations { readonly initialDelaySeconds?: number; readonly path: string; readonly periodSeconds?: number; - readonly port?: number; + readonly port: number; readonly timeoutSeconds?: number; } | { readonly exec: { @@ -6547,7 +3949,7 @@ export interface operations { readonly initialDelaySeconds?: number; readonly path: string; readonly periodSeconds?: number; - readonly port?: number; + readonly port: number; readonly timeoutSeconds?: number; } | { readonly exec: { @@ -6568,7 +3970,7 @@ export interface operations { readonly initialDelaySeconds?: number; readonly path: string; readonly periodSeconds?: number; - readonly port?: number; + readonly port: number; readonly timeoutSeconds?: number; } | { readonly exec: { @@ -6582,36 +3984,27 @@ export interface operations { }; readonly image: string; readonly integrations?: readonly ({ - readonly id: string; - readonly name: string; - /** @default /opt/models */ - readonly path?: string; - /** @enum {string} */ - readonly type: "model"; - } | { - readonly accessKeyId: string; - readonly endpoint?: string; - readonly name: string; - readonly path?: string; - readonly region?: string; - readonly secretAccessKey: string; - /** @enum {string} */ - readonly type: "s3"; - readonly url: string; - } | { readonly name: string; /** @enum {string} */ readonly type: "volume"; - } | { - readonly name: string; + })[]; + readonly models?: readonly ({ + readonly id: string; readonly path?: string; - /** @enum {string} */ - readonly type: "git-lfs"; - /** Format: uri */ - readonly url: string; })[]; readonly name: string; readonly region?: string; + readonly repositories?: { + readonly dataset: string; + readonly mountPath?: string; + readonly repositories: readonly ({ + readonly name: string; + readonly password?: string; + readonly ref?: string; + readonly url: string; + readonly username?: string; + })[]; + }; readonly resources: { readonly autoscaling?: { readonly enabled?: boolean; @@ -6711,21 +4104,8 @@ export interface operations { * @default null */ readonly message?: string | null; - /** - * @description The phase of the workflow run - * @enum {string} - */ - readonly phase: - | "Initializing" - | "Submitting" - | "Pending" - | "Running" - | "Succeeded" - | "Skipped" - | "Failed" - | "Error" - | "Omitted" - | "Canceled"; + /** @description The phase of the workflow run */ + readonly phase: string; readonly workflow: { /** * Format: date-time @@ -6761,7 +4141,7 @@ export interface operations { * List app logs * @description Lists logs for a given app. */ - "deploymentLogs-list": { + "query.deploymentLogs.list": { parameters: { readonly query: { /** @description Fetch the next page of results after this cursor. */ @@ -6825,7 +4205,7 @@ export interface operations { * List app metrics * @description Lists metrics for a given app. */ - "deploymentMetrics-get": { + "query.deploymentMetrics.get": { parameters: { readonly query: { /** @description The metric to fetch. */ @@ -6882,7 +4262,7 @@ export interface operations { * List deployment runs * @description Lists the active deployment runs for a deployment. */ - "deploymentRuns-get": { + "query.deploymentRuns.get": { parameters: { readonly query: { /** @description The latest n number of deployment runs to return */ @@ -6964,7 +4344,7 @@ export interface operations { * Health check * @description Check if the API is healthy. */ - health: { + "query.health": { responses: { /** @description Successful response */ 200: { @@ -6979,7 +4359,7 @@ export interface operations { * List machine events * @description Fetches a list of machine events. */ - "machineEvents-list": { + "query.machineEvents.list": { parameters: { readonly query: { /** @description Fetch the next page of results after this cursor. */ @@ -7068,7 +4448,7 @@ export interface operations { * Get a machine event * @description Fetches a single machine event by ID. */ - "machineEvents-get": { + "query.machineEvents.get": { parameters: { readonly path: { /** @description The ID of the machine event to fetch. */ @@ -7143,7 +4523,7 @@ export interface operations { * List machines * @description Fetches a list of machines. */ - "machines-list": { + "query.machines.list": { parameters: { readonly query: { /** @description Fetch the next page of results after this cursor. */ @@ -7171,14 +4551,12 @@ export interface operations { readonly items: readonly ({ /** @description The accelerators of the machine. */ readonly accelerators?: - | (readonly ({ + | readonly ({ /** @description The number of accelerators of this type. */ readonly count: number; - /** @description The amount of memory the accelerator has, if applicable. */ - readonly memory: number | null; /** @description The name of the accelerator. */ readonly name: string; - })[]) + })[] | null; /** @description The agent type of the machine. */ readonly agentType: string; @@ -7222,7 +4600,31 @@ export interface operations { /** @description The ID of the machine. */ readonly id: string; /** @description The type of the machine. */ - readonly machineType: string; + readonly machineType: { + /** @description The number of CPUs. */ + readonly cpus: number; + /** @description The name of the GPU. */ + readonly gpu: string | null; + /** @description The label of the machine type. */ + readonly label: string; + /** @description Metadata for the machine type. */ + readonly metadata: + | ({ + [key: string]: unknown | undefined; + }) + | null; + /** @description The name of the NVLink GPU. */ + readonly nvlinkGpu: string | null; + /** @description The number of NVLink GPUs. */ + readonly nvlinkGpuCount: number | null; + /** + * Format: int64 + * @description The amount of RAM in bytes. + */ + readonly ram: number; + /** @description Whether the machine type supports NVLink. */ + readonly supportsNvlink: boolean; + }; /** @description The name of the machine. */ readonly name: string; /** @description The ID of the network the machine is on. */ @@ -7296,7 +4698,7 @@ export interface operations { * Create a machine * @description Creates a new machine. */ - "machines-create": { + "mutation.machines.create": { readonly requestBody: { readonly content: { readonly "application/json": { @@ -7367,14 +4769,12 @@ export interface operations { readonly data: { /** @description The accelerators of the machine. */ readonly accelerators?: - | (readonly ({ + | readonly ({ /** @description The number of accelerators of this type. */ readonly count: number; - /** @description The amount of memory the accelerator has, if applicable. */ - readonly memory: number | null; /** @description The name of the accelerator. */ readonly name: string; - })[]) + })[] | null; /** @description The agent type of the machine. */ readonly agentType: string; @@ -7418,7 +4818,31 @@ export interface operations { /** @description The ID of the machine. */ readonly id: string; /** @description The type of the machine. */ - readonly machineType: string; + readonly machineType: { + /** @description The number of CPUs. */ + readonly cpus: number; + /** @description The name of the GPU. */ + readonly gpu: string | null; + /** @description The label of the machine type. */ + readonly label: string; + /** @description Metadata for the machine type. */ + readonly metadata: + | ({ + [key: string]: unknown | undefined; + }) + | null; + /** @description The name of the NVLink GPU. */ + readonly nvlinkGpu: string | null; + /** @description The number of NVLink GPUs. */ + readonly nvlinkGpuCount: number | null; + /** + * Format: int64 + * @description The amount of RAM in bytes. + */ + readonly ram: number; + /** @description Whether the machine type supports NVLink. */ + readonly supportsNvlink: boolean; + }; /** @description The name of the machine. */ readonly name: string; /** @description The ID of the network the machine is on. */ @@ -7546,7 +4970,7 @@ export interface operations { * Get a machine * @description Fetches a single machine by ID. */ - "machines-get": { + "query.machines.get": { parameters: { readonly path: { /** @description The ID of the machine to fetch. */ @@ -7560,14 +4984,12 @@ export interface operations { readonly "application/json": { /** @description The accelerators of the machine. */ readonly accelerators?: - | (readonly ({ + | readonly ({ /** @description The number of accelerators of this type. */ readonly count: number; - /** @description The amount of memory the accelerator has, if applicable. */ - readonly memory: number | null; /** @description The name of the accelerator. */ readonly name: string; - })[]) + })[] | null; /** @description The agent type of the machine. */ readonly agentType: string; @@ -7611,7 +5033,31 @@ export interface operations { /** @description The ID of the machine. */ readonly id: string; /** @description The type of the machine. */ - readonly machineType: string; + readonly machineType: { + /** @description The number of CPUs. */ + readonly cpus: number; + /** @description The name of the GPU. */ + readonly gpu: string | null; + /** @description The label of the machine type. */ + readonly label: string; + /** @description Metadata for the machine type. */ + readonly metadata: + | ({ + [key: string]: unknown | undefined; + }) + | null; + /** @description The name of the NVLink GPU. */ + readonly nvlinkGpu: string | null; + /** @description The number of NVLink GPUs. */ + readonly nvlinkGpuCount: number | null; + /** + * Format: int64 + * @description The amount of RAM in bytes. + */ + readonly ram: number; + /** @description Whether the machine type supports NVLink. */ + readonly supportsNvlink: boolean; + }; /** @description The name of the machine. */ readonly name: string; /** @description The ID of the network the machine is on. */ @@ -7682,7 +5128,7 @@ export interface operations { * Update a machine * @description Updates a machine. */ - "machines-update": { + "mutation.machines.update": { parameters: { readonly path: { /** @description The ID of the machine to update. */ @@ -7745,14 +5191,12 @@ export interface operations { readonly data: { /** @description The accelerators of the machine. */ readonly accelerators?: - | (readonly ({ + | readonly ({ /** @description The number of accelerators of this type. */ readonly count: number; - /** @description The amount of memory the accelerator has, if applicable. */ - readonly memory: number | null; /** @description The name of the accelerator. */ readonly name: string; - })[]) + })[] | null; /** @description The agent type of the machine. */ readonly agentType: string; @@ -7796,7 +5240,31 @@ export interface operations { /** @description The ID of the machine. */ readonly id: string; /** @description The type of the machine. */ - readonly machineType: string; + readonly machineType: { + /** @description The number of CPUs. */ + readonly cpus: number; + /** @description The name of the GPU. */ + readonly gpu: string | null; + /** @description The label of the machine type. */ + readonly label: string; + /** @description Metadata for the machine type. */ + readonly metadata: + | ({ + [key: string]: unknown | undefined; + }) + | null; + /** @description The name of the NVLink GPU. */ + readonly nvlinkGpu: string | null; + /** @description The number of NVLink GPUs. */ + readonly nvlinkGpuCount: number | null; + /** + * Format: int64 + * @description The amount of RAM in bytes. + */ + readonly ram: number; + /** @description Whether the machine type supports NVLink. */ + readonly supportsNvlink: boolean; + }; /** @description The name of the machine. */ readonly name: string; /** @description The ID of the network the machine is on. */ @@ -7924,7 +5392,7 @@ export interface operations { * Delete a machine * @description Deletes a single machine by ID. */ - "machines-delete": { + "mutation.machines.delete": { parameters: { readonly path: { /** @description The ID of the machine to delete. */ @@ -7940,14 +5408,12 @@ export interface operations { readonly data: { /** @description The accelerators of the machine. */ readonly accelerators?: - | (readonly ({ + | readonly ({ /** @description The number of accelerators of this type. */ readonly count: number; - /** @description The amount of memory the accelerator has, if applicable. */ - readonly memory: number | null; /** @description The name of the accelerator. */ readonly name: string; - })[]) + })[] | null; /** @description The agent type of the machine. */ readonly agentType: string; @@ -7991,7 +5457,31 @@ export interface operations { /** @description The ID of the machine. */ readonly id: string; /** @description The type of the machine. */ - readonly machineType: string; + readonly machineType: { + /** @description The number of CPUs. */ + readonly cpus: number; + /** @description The name of the GPU. */ + readonly gpu: string | null; + /** @description The label of the machine type. */ + readonly label: string; + /** @description Metadata for the machine type. */ + readonly metadata: + | ({ + [key: string]: unknown | undefined; + }) + | null; + /** @description The name of the NVLink GPU. */ + readonly nvlinkGpu: string | null; + /** @description The number of NVLink GPUs. */ + readonly nvlinkGpuCount: number | null; + /** + * Format: int64 + * @description The amount of RAM in bytes. + */ + readonly ram: number; + /** @description Whether the machine type supports NVLink. */ + readonly supportsNvlink: boolean; + }; /** @description The name of the machine. */ readonly name: string; /** @description The ID of the network the machine is on. */ @@ -8119,7 +5609,7 @@ export interface operations { * List accessors * @description Lists the team members that can explicitly access a machine. */ - "machines-listAccessors": { + "query.machines.listAccessors": { parameters: { readonly query: { /** @description Fetch the next page of results after this cursor. */ @@ -8189,7 +5679,7 @@ export interface operations { * Add an accessor * @description Adds an accessor to a machine. */ - "machines-addAccessor": { + "mutation.machines.addAccessor": { parameters: { readonly path: { /** @description The ID of the machine to add an accessor to. */ @@ -8250,7 +5740,7 @@ export interface operations { * Get an accessor * @description Get an accessor for a machine. */ - "machines-getAccessor": { + "query.machines.getAccessor": { parameters: { readonly path: { /** @description The ID of the machine to get an accessor for. */ @@ -8305,7 +5795,7 @@ export interface operations { * Delete an accessor * @description Deletes an accessor from a machine. */ - "machines-removeAccessor": { + "mutation.machines.removeAccessor": { parameters: { readonly path: { /** @description The ID of the machine to add an accessor to. */ @@ -8360,7 +5850,7 @@ export interface operations { * Get desktop settings * @description Gets the machine settings that are used to configure desktop streaming. */ - "machines-getDesktop": { + "query.machines.getDesktop": { parameters: { readonly path: { /** @description The ID of the machine. */ @@ -8400,13 +5890,18 @@ export interface operations { * Restart a machine * @description Restarts a machine. */ - "machines-restart": { + "mutation.machines.restart": { parameters: { readonly path: { /** @description The ID of the machine to restart. */ id: string; }; }; + readonly requestBody: { + readonly content: { + readonly "application/json": Record; + }; + }; responses: { /** @description Successful response */ 200: { @@ -8416,14 +5911,12 @@ export interface operations { readonly data: { /** @description The accelerators of the machine. */ readonly accelerators?: - | (readonly ({ + | readonly ({ /** @description The number of accelerators of this type. */ readonly count: number; - /** @description The amount of memory the accelerator has, if applicable. */ - readonly memory: number | null; /** @description The name of the accelerator. */ readonly name: string; - })[]) + })[] | null; /** @description The agent type of the machine. */ readonly agentType: string; @@ -8467,7 +5960,31 @@ export interface operations { /** @description The ID of the machine. */ readonly id: string; /** @description The type of the machine. */ - readonly machineType: string; + readonly machineType: { + /** @description The number of CPUs. */ + readonly cpus: number; + /** @description The name of the GPU. */ + readonly gpu: string | null; + /** @description The label of the machine type. */ + readonly label: string; + /** @description Metadata for the machine type. */ + readonly metadata: + | ({ + [key: string]: unknown | undefined; + }) + | null; + /** @description The name of the NVLink GPU. */ + readonly nvlinkGpu: string | null; + /** @description The number of NVLink GPUs. */ + readonly nvlinkGpuCount: number | null; + /** + * Format: int64 + * @description The amount of RAM in bytes. + */ + readonly ram: number; + /** @description Whether the machine type supports NVLink. */ + readonly supportsNvlink: boolean; + }; /** @description The name of the machine. */ readonly name: string; /** @description The ID of the network the machine is on. */ @@ -8595,13 +6112,18 @@ export interface operations { * Start a machine * @description Starts a machine. */ - "machines-start": { + "mutation.machines.start": { parameters: { readonly path: { /** @description The ID of the machine to start. */ id: string; }; }; + readonly requestBody: { + readonly content: { + readonly "application/json": Record; + }; + }; responses: { /** @description Successful response */ 200: { @@ -8611,14 +6133,12 @@ export interface operations { readonly data: { /** @description The accelerators of the machine. */ readonly accelerators?: - | (readonly ({ + | readonly ({ /** @description The number of accelerators of this type. */ readonly count: number; - /** @description The amount of memory the accelerator has, if applicable. */ - readonly memory: number | null; /** @description The name of the accelerator. */ readonly name: string; - })[]) + })[] | null; /** @description The agent type of the machine. */ readonly agentType: string; @@ -8662,11 +6182,35 @@ export interface operations { /** @description The ID of the machine. */ readonly id: string; /** @description The type of the machine. */ - readonly machineType: string; - /** @description The name of the machine. */ - readonly name: string; - /** @description The ID of the network the machine is on. */ - readonly networkId: string | null; + readonly machineType: { + /** @description The number of CPUs. */ + readonly cpus: number; + /** @description The name of the GPU. */ + readonly gpu: string | null; + /** @description The label of the machine type. */ + readonly label: string; + /** @description Metadata for the machine type. */ + readonly metadata: + | ({ + [key: string]: unknown | undefined; + }) + | null; + /** @description The name of the NVLink GPU. */ + readonly nvlinkGpu: string | null; + /** @description The number of NVLink GPUs. */ + readonly nvlinkGpuCount: number | null; + /** + * Format: int64 + * @description The amount of RAM in bytes. + */ + readonly ram: number; + /** @description Whether the machine type supports NVLink. */ + readonly supportsNvlink: boolean; + }; + /** @description The name of the machine. */ + readonly name: string; + /** @description The ID of the network the machine is on. */ + readonly networkId: string | null; /** @description The operating system of the machine. */ readonly os: string; /** @description The private IP address of the machine. */ @@ -8790,13 +6334,18 @@ export interface operations { * Stop a machine * @description Stops a machine. */ - "machines-stop": { + "mutation.machines.stop": { parameters: { readonly path: { /** @description The ID of the machine to stop. */ id: string; }; }; + readonly requestBody: { + readonly content: { + readonly "application/json": Record; + }; + }; responses: { /** @description Successful response */ 200: { @@ -8806,14 +6355,12 @@ export interface operations { readonly data: { /** @description The accelerators of the machine. */ readonly accelerators?: - | (readonly ({ + | readonly ({ /** @description The number of accelerators of this type. */ readonly count: number; - /** @description The amount of memory the accelerator has, if applicable. */ - readonly memory: number | null; /** @description The name of the accelerator. */ readonly name: string; - })[]) + })[] | null; /** @description The agent type of the machine. */ readonly agentType: string; @@ -8857,7 +6404,31 @@ export interface operations { /** @description The ID of the machine. */ readonly id: string; /** @description The type of the machine. */ - readonly machineType: string; + readonly machineType: { + /** @description The number of CPUs. */ + readonly cpus: number; + /** @description The name of the GPU. */ + readonly gpu: string | null; + /** @description The label of the machine type. */ + readonly label: string; + /** @description Metadata for the machine type. */ + readonly metadata: + | ({ + [key: string]: unknown | undefined; + }) + | null; + /** @description The name of the NVLink GPU. */ + readonly nvlinkGpu: string | null; + /** @description The number of NVLink GPUs. */ + readonly nvlinkGpuCount: number | null; + /** + * Format: int64 + * @description The amount of RAM in bytes. + */ + readonly ram: number; + /** @description Whether the machine type supports NVLink. */ + readonly supportsNvlink: boolean; + }; /** @description The name of the machine. */ readonly name: string; /** @description The ID of the network the machine is on. */ @@ -8985,7 +6556,7 @@ export interface operations { * List notebooks * @description Lists the notebooks you have access to in the current team */ - "notebooks-list": { + "query.notebooks.list": { parameters: { readonly query: { /** @description Fetch the next page of results after this cursor. */ @@ -9097,7 +6668,7 @@ export interface operations { * List private networks * @description Fetches a list of private networks. */ - "privateNetworks-list": { + "query.privateNetworks.list": { parameters: { readonly query: { /** @description Fetch the next page of results after this cursor. */ @@ -9151,7 +6722,7 @@ export interface operations { * Create a private network * @description Creates a new private network. */ - "privateNetworks-create": { + "mutation.privateNetworks.create": { readonly requestBody: { readonly content: { readonly "application/json": { @@ -9199,7 +6770,7 @@ export interface operations { * Get a private network * @description Fetches a single private network by ID. */ - "privateNetworks-get": { + "query.privateNetworks.get": { parameters: { readonly path: { /** @description The ID of the private network to fetch. */ @@ -9210,27 +6781,25 @@ export interface operations { /** @description Successful response */ 200: { content: { - readonly "application/json": - | ({ - /** - * Format: date-time - * @description The date the private network was created. - */ - readonly dtCreated: Date; - /** @description The date the private network was deleted. */ - readonly dtDeleted?: (Record | Date) | null; - /** @description The ID of the private network. */ - readonly id: string; - /** @description The name of the private network. */ - readonly name: string; - /** @description The subnet mask of the private network. */ - readonly netmask: string; - /** @description The network prefix of the private network. */ - readonly network: string; - /** @description The region the private network is in. */ - readonly region: string; - }) - | null; + readonly "application/json": { + /** + * Format: date-time + * @description The date the private network was created. + */ + readonly dtCreated: Date; + /** @description The date the private network was deleted. */ + readonly dtDeleted?: (Record | Date) | null; + /** @description The ID of the private network. */ + readonly id: string; + /** @description The name of the private network. */ + readonly name: string; + /** @description The subnet mask of the private network. */ + readonly netmask: string; + /** @description The network prefix of the private network. */ + readonly network: string; + /** @description The region the private network is in. */ + readonly region: string; + }; }; }; default: components["responses"]["error"]; @@ -9240,7 +6809,7 @@ export interface operations { * Update a private network * @description Updates a single private network by ID. */ - "privateNetworks-update": { + "mutation.privateNetworks.update": { parameters: { readonly path: { /** @description The ID of the private network to update. */ @@ -9287,7 +6856,7 @@ export interface operations { * Delete a private network * @description Deletes a single private network by ID. */ - "privateNetworks-delete": { + "mutation.privateNetworks.delete": { parameters: { readonly path: { /** @description The ID of the private network to delete. */ @@ -9312,7 +6881,7 @@ export interface operations { * @description * List projects. This endpoint supports pagination and sorting. */ - "projects-list": { + "query.projects.list": { parameters: { readonly query: { /** @description Fetch the next page of results after this cursor. */ @@ -9377,7 +6946,7 @@ export interface operations { * Create a project * @description Create a project */ - "projects-create": { + "mutation.projects.create": { readonly requestBody: { readonly content: { readonly "application/json": { @@ -9431,7 +7000,7 @@ export interface operations { * Get a project by its ID * @description Get a project by its ID. */ - "projects-get": { + "query.projects.get": { parameters: { readonly path: { /** @description The ID of the project to get */ @@ -9483,7 +7052,7 @@ export interface operations { * Update a project * @description Update a project */ - "projects-update": { + "mutation.projects.update": { parameters: { readonly path: { /** @description The ID of the project to update */ @@ -9543,7 +7112,7 @@ export interface operations { * Delete a project * @description Delete a project */ - "projects-delete": { + "mutation.projects.delete": { parameters: { readonly path: { /** @description The ID of the project to delete */ @@ -9595,7 +7164,7 @@ export interface operations { * List a project's activity * @description Fetches a list of activity items for a given project. */ - "projectActivity-list": { + "query.projectActivity.list": { parameters: { readonly query: { /** @description Fetch the next page of results after this cursor. */ @@ -9610,718 +7179,82 @@ export interface operations { deploymentId?: string; /** @description The name of the deployment to filter by */ name?: string; - }; - readonly path: { - /** @description The ID of the project to fetch activity items for */ - id: string; - }; - }; - responses: { - /** @description Successful response */ - 200: { - content: { - readonly "application/json": { - /** @description Whether there are more pages of results available. */ - readonly hasMore: boolean; - /** @description The items on this page. */ - readonly items: readonly ({ - /** @description The action that was performed */ - readonly action: - | "deployment.scaled" - | "deployment.created" - | "deployment.deleted" - | "deployment.updated" - | "deployment.enabled" - | "deployment.disabled" - | "deployment.autoscaling.enabled" - | "deployment.autoscaling.disabled"; - /** - * @description The actor that performed the action. Either a use or system. - * @default null - */ - readonly actor?: - | ({ - /** - * @description The avatar URL of the actor - * @default null - */ - readonly avatarUrl?: string | null; - /** - * @description The email of the actor - * @default null - */ - readonly email?: string | null; - /** - * @description The full name of the actor (e.g. "John Doe") - * @default null - */ - readonly fullName?: string | null; - }) - | null; - /** - * @description The data associated with the activity item - * @default null - */ - readonly data?: { - readonly from: number; - readonly to: number; - } | null; - /** - * @description The deployment associated with the activity item - * @default null - */ - readonly deployment?: { - /** @description The ID of the deployment */ - readonly id: string; - /** @description The name of the deployment */ - readonly name: string; - } | null; - /** - * Format: date-time - * @description The date the activity item was created - */ - readonly dtCreated: Date; - /** - * Format: uuid - * @description ID of the activity item - */ - readonly id: string; - })[]; - /** @description The cursor required to fetch the next page of results. i.e. `?after=nextPage`. This is `null` when there is no next page. */ - readonly nextPage?: string; - }; - }; - }; - default: components["responses"]["error"]; - }; - }; - /** - * List a project's apps - * @description Fetches a list of apps for a project. - */ - "projectApps-list": { - parameters: { - readonly query: { - /** @description Fetch the next page of results after this cursor. */ - after?: string; - /** @description The number of items to fetch after this page. */ - limit?: number; - /** @description Order results by one of these fields. */ - orderBy?: "dtCreated"; - /** @description The order to sort the results by. */ - order?: "asc" | "desc"; - /** @description The name of the app to filter by */ - name?: string; - }; - readonly path: { - /** @description The ID of the project to fetch apps for */ - id: string; - }; - }; - responses: { - /** @description Successful response */ - 200: { - content: { - readonly "application/json": { - /** @description Whether there are more pages of results available. */ - readonly hasMore: boolean; - /** @description The items on this page. */ - readonly items: readonly ({ - /** - * Format: date-time - * @description The date the deployment was created - */ - readonly dtCreated: Date; - /** @description The unique endpoint for the deployment */ - readonly endpoint: string; - /** @description The ID of the deployment */ - readonly id: string; - /** - * @description The latest deployment configuration. If invalid, null is returned. - * @default null - */ - readonly latestSpec?: - | ({ - /** @description The data for the deployment spec */ - readonly data?: - | ( - | ( - | ({ - /** @enum {string} */ - readonly apiVersion: "v0alpha0"; - readonly command?: readonly (string)[]; - readonly containerRegistry?: string; - /** @default true */ - readonly enabled?: boolean; - readonly env?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly healthChecks?: { - readonly liveness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - readonly readiness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - readonly startup?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - }; - readonly image: string; - readonly models?: readonly ({ - readonly id: string; - readonly path?: string; - })[]; - readonly name: string; - /** @default 80 */ - readonly port?: number; - readonly region?: string; - readonly repositories?: { - readonly dataset: string; - readonly mountPath?: string; - readonly repositories: readonly ({ - readonly name: string; - readonly password?: string; - readonly ref?: string; - readonly url: string; - readonly username?: string; - })[]; - }; - readonly resources: { - readonly autoscaling?: { - readonly enabled?: boolean; - readonly maxReplicas: number; - readonly metrics: readonly ( - | { - /** @enum {string} */ - readonly metric: "requestDuration"; - /** @enum {string} */ - readonly summary: "average"; - readonly value: number; - } - | ({ - /** @enum {string} */ - readonly metric: "cpu" | "memory"; - /** @enum {string} */ - readonly summary: "average"; - readonly value: number; - }) - )[]; - }; - readonly instanceType: string; - /** @default 1 */ - readonly replicas?: number; - }; - }) - | ({ - /** @enum {string} */ - readonly apiVersion: "v0alpha1"; - readonly command?: readonly (string)[]; - readonly containerRegistry?: string; - /** @default true */ - readonly enabled?: boolean; - readonly env?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly healthchecks?: { - readonly liveness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - readonly readiness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - readonly startup?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - }; - readonly healthChecks?: { - readonly liveness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - readonly readiness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - readonly startup?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - }; - readonly image: string; - readonly integrations?: readonly ({ - readonly id: string; - readonly name: string; - /** @default /opt/models */ - readonly path?: string; - /** @enum {string} */ - readonly type: "model"; - } | { - readonly accessKeyId: string; - readonly endpoint?: string; - readonly name: string; - readonly path?: string; - readonly region?: string; - readonly secretAccessKey: string; - /** @enum {string} */ - readonly type: "s3"; - readonly url: string; - } | { - readonly name: string; - /** @enum {string} */ - readonly type: "volume"; - } | { - readonly name: string; - readonly path?: string; - /** @enum {string} */ - readonly type: "git-lfs"; - /** Format: uri */ - readonly url: string; - })[]; - readonly name: string; - readonly region?: string; - readonly resources: { - readonly autoscaling?: { - readonly enabled?: boolean; - readonly maxReplicas: number; - readonly metrics: readonly ( - | { - /** @enum {string} */ - readonly metric: "requestDuration"; - /** @enum {string} */ - readonly summary: "average"; - readonly value: number; - } - | ({ - /** @enum {string} */ - readonly metric: "cpu" | "memory"; - /** @enum {string} */ - readonly summary: "average"; - readonly value: number; - }) - )[]; - }; - readonly machineType: string; - readonly ports: readonly (number)[]; - /** @default 1 */ - readonly replicas?: number; - }; - }) - ) - | ({ - readonly apiVersion: "v1" | "latest"; - readonly command?: readonly (string)[]; - readonly containerRegistry?: string; - /** @default true */ - readonly enabled?: boolean; - readonly env?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly healthchecks?: { - readonly liveness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - readonly readiness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - readonly startup?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - }; - readonly healthChecks?: { - readonly liveness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - readonly readiness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - readonly startup?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - }; - readonly image: string; - readonly integrations?: readonly ({ - readonly id: string; - readonly name: string; - /** @default /opt/models */ - readonly path?: string; - /** @enum {string} */ - readonly type: "model"; - } | { - readonly accessKeyId: string; - readonly endpoint?: string; - readonly name: string; - readonly path?: string; - readonly region?: string; - readonly secretAccessKey: string; - /** @enum {string} */ - readonly type: "s3"; - readonly url: string; - } | { - readonly name: string; - /** @enum {string} */ - readonly type: "volume"; - } | { - readonly name: string; - readonly path?: string; - /** @enum {string} */ - readonly type: "git-lfs"; - /** Format: uri */ - readonly url: string; - })[]; - readonly name: string; - readonly region?: string; - readonly resources: { - readonly autoscaling?: { - readonly enabled?: boolean; - readonly maxReplicas: number; - readonly metrics: readonly ( - | { - /** @enum {string} */ - readonly metric: "requestDuration"; - /** @enum {string} */ - readonly summary: "average"; - readonly value: number; - } - | ({ - /** @enum {string} */ - readonly metric: "cpu" | "memory"; - /** @enum {string} */ - readonly summary: "average"; - readonly value: number; - }) - )[]; - }; - readonly machineType: string; - readonly ports: readonly (number)[]; - /** @default 1 */ - readonly replicas?: number; - }; - }) - ) - | null; - /** @description The ID of the deployment the spec belongs to */ - readonly deploymentId: string; - /** - * Format: date-time - * @description The date the deployment was marked "healthy" - * @default null - */ - readonly dtHealthy?: Date; + }; + readonly path: { + /** @description The ID of the project to fetch activity items for */ + id: string; + }; + }; + responses: { + /** @description Successful response */ + 200: { + content: { + readonly "application/json": { + /** @description Whether there are more pages of results available. */ + readonly hasMore: boolean; + /** @description The items on this page. */ + readonly items: readonly ({ + /** @description The action that was performed */ + readonly action: + | "deployment.scaled" + | "deployment.created" + | "deployment.deleted" + | "deployment.updated" + | "deployment.enabled" + | "deployment.disabled" + | "deployment.autoscaling.enabled" + | "deployment.autoscaling.disabled"; + /** + * @description The actor that performed the action. Either a use or system. + * @default null + */ + readonly actor?: + | ({ /** - * @description The fatal configuration error. Only present if the cluster was unable to apply the entire deployment configuration. This is not the same as an instance error. + * @description The avatar URL of the actor * @default null */ - readonly error?: string | null; + readonly avatarUrl?: string | null; /** - * Format: date-time - * @description The date the deployment configuration was applied to the cluster + * @description The email of the actor * @default null */ - readonly externalApplied?: Date; - /** @description The ID of the deployment spec */ - readonly id: string; + readonly email?: string | null; /** - * @description Metadata about the source of the configuration + * @description The full name of the actor (e.g. "John Doe") * @default null */ - readonly metadata?: - | ({ - readonly gitHeaders?: { - readonly "x-git-actor": string; - readonly "x-git-host": "github" | "gitlab"; - readonly "x-git-owner": string; - readonly "x-git-ref": string; - readonly "x-git-repo": string; - readonly "x-git-sha": string; - }; - }) - | null; - /** @description The ID of the user the deployment belongs to */ - readonly userId: string; + readonly fullName?: string | null; }) | null; /** - * @description The last version hash for the deployment + * @description The data associated with the activity item * @default null */ - readonly latestSpecHash?: string | null; - /** @description The name of the deployment */ - readonly name: string; - /** @description The ID of the project the deployment belongs to */ - readonly projectId: string; - /** @description The ID of the team the deployment belongs to */ - readonly teamId: string; + readonly data?: { + readonly from: number; + readonly to: number; + } | null; + /** + * @description The deployment associated with the activity item + * @default null + */ + readonly deployment?: { + /** @description The ID of the deployment */ + readonly id: string; + /** @description The name of the deployment */ + readonly name: string; + } | null; + /** + * Format: date-time + * @description The date the activity item was created + */ + readonly dtCreated: Date; + /** + * Format: uuid + * @description ID of the activity item + */ + readonly id: string; })[]; /** @description The cursor required to fetch the next page of results. i.e. `?after=nextPage`. This is `null` when there is no next page. */ readonly nextPage?: string; @@ -10335,7 +7268,7 @@ export interface operations { * List a project's collaborators * @description Fetches a list of collaborators for a project. */ - "projectCollaborators-list": { + "query.projectCollaborators.list": { parameters: { readonly query: { /** @description Fetch the next page of results after this cursor. */ @@ -10410,7 +7343,7 @@ export interface operations { * Create a project collaborator * @description Adds a new collaborator to a project. */ - "projectCollaborators-create": { + "mutation.projectCollaborators.create": { parameters: { readonly path: { /** @description The ID of the project. */ @@ -10476,7 +7409,7 @@ export interface operations { * Delete a project collaborator * @description Removes a collaborator from a project. */ - "projectCollaborators-delete": { + "mutation.projectCollaborators.delete": { parameters: { readonly path: { /** @description The ID of the project. */ @@ -10502,7 +7435,7 @@ export interface operations { * List a project's deployments * @description Fetches a list of deployments for a project. */ - "projectDeployments-list": { + "query.projectsDeployments.list": { parameters: { readonly query: { /** @description Fetch the next page of results after this cursor. */ @@ -10513,7 +7446,7 @@ export interface operations { orderBy?: "dtCreated"; /** @description The order to sort the results by. */ order?: "asc" | "desc"; - /** @description The name of the app to filter by */ + /** @description The name of the deployment to filter by */ name?: string; }; readonly path: { @@ -10548,332 +7481,130 @@ export interface operations { /** @description The data for the deployment spec */ readonly data?: | ( - | ( - | ({ - /** @enum {string} */ - readonly apiVersion: "v0alpha0"; - readonly command?: readonly (string)[]; - readonly containerRegistry?: string; - /** @default true */ - readonly enabled?: boolean; - readonly env?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly healthChecks?: { - readonly liveness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - readonly readiness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - readonly startup?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - }; - readonly image: string; - readonly models?: readonly ({ - readonly id: string; - readonly path?: string; - })[]; + | ({ + readonly apiVersion: "v0alpha0" | "latest"; + readonly command?: readonly (string)[]; + readonly containerRegistry?: string; + /** @default true */ + readonly enabled?: boolean; + readonly env?: readonly ({ readonly name: string; - /** @default 80 */ - readonly port?: number; - readonly region?: string; - readonly repositories?: { - readonly dataset: string; - readonly mountPath?: string; - readonly repositories: readonly ({ + readonly value: string; + })[]; + readonly healthChecks?: { + readonly liveness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ readonly name: string; - readonly password?: string; - readonly ref?: string; - readonly url: string; - readonly username?: string; + readonly value: string; })[]; - }; - readonly resources: { - readonly autoscaling?: { - readonly enabled?: boolean; - readonly maxReplicas: number; - readonly metrics: readonly ( - | { - /** @enum {string} */ - readonly metric: "requestDuration"; - /** @enum {string} */ - readonly summary: "average"; - readonly value: number; - } - | ({ - /** @enum {string} */ - readonly metric: "cpu" | "memory"; - /** @enum {string} */ - readonly summary: "average"; - readonly value: number; - }) - )[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; }; - readonly instanceType: string; - /** @default 1 */ - readonly replicas?: number; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; }; - }) - | ({ - /** @enum {string} */ - readonly apiVersion: "v0alpha1"; - readonly command?: readonly (string)[]; - readonly containerRegistry?: string; - /** @default true */ - readonly enabled?: boolean; - readonly env?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly healthchecks?: { - readonly liveness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - readonly readiness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - readonly startup?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; + readonly readiness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; }; - readonly healthChecks?: { - readonly liveness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - readonly readiness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - readonly startup?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; + readonly startup?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; }; - readonly image: string; - readonly integrations?: readonly ({ - readonly id: string; - readonly name: string; - /** @default /opt/models */ - readonly path?: string; - /** @enum {string} */ - readonly type: "model"; - } | { - readonly accessKeyId: string; - readonly endpoint?: string; - readonly name: string; - readonly path?: string; - readonly region?: string; - readonly secretAccessKey: string; - /** @enum {string} */ - readonly type: "s3"; - readonly url: string; - } | { - readonly name: string; - /** @enum {string} */ - readonly type: "volume"; - } | { + }; + readonly image: string; + readonly models?: readonly ({ + readonly id: string; + readonly path?: string; + })[]; + readonly name: string; + /** @default 80 */ + readonly port?: number; + readonly region?: string; + readonly repositories?: { + readonly dataset: string; + readonly mountPath?: string; + readonly repositories: readonly ({ readonly name: string; - readonly path?: string; - /** @enum {string} */ - readonly type: "git-lfs"; - /** Format: uri */ + readonly password?: string; + readonly ref?: string; readonly url: string; + readonly username?: string; })[]; - readonly name: string; - readonly region?: string; - readonly resources: { - readonly autoscaling?: { - readonly enabled?: boolean; - readonly maxReplicas: number; - readonly metrics: readonly ( - | { - /** @enum {string} */ - readonly metric: "requestDuration"; - /** @enum {string} */ - readonly summary: "average"; - readonly value: number; - } - | ({ - /** @enum {string} */ - readonly metric: "cpu" | "memory"; - /** @enum {string} */ - readonly summary: "average"; - readonly value: number; - }) - )[]; - }; - readonly machineType: string; - readonly ports: readonly (number)[]; - /** @default 1 */ - readonly replicas?: number; + }; + readonly resources: { + readonly autoscaling?: { + readonly enabled?: boolean; + readonly maxReplicas: number; + readonly metrics: readonly ( + | { + /** @enum {string} */ + readonly metric: "requestDuration"; + /** @enum {string} */ + readonly summary: "average"; + readonly value: number; + } + | ({ + /** @enum {string} */ + readonly metric: "cpu" | "memory"; + /** @enum {string} */ + readonly summary: "average"; + readonly value: number; + }) + )[]; }; - }) - ) + readonly instanceType: string; + /** @default 1 */ + readonly replicas?: number; + }; + }) | ({ - readonly apiVersion: "v1" | "latest"; + /** @enum {string} */ + readonly apiVersion: "v0alpha1"; readonly command?: readonly (string)[]; readonly containerRegistry?: string; /** @default true */ @@ -10893,7 +7624,7 @@ export interface operations { readonly initialDelaySeconds?: number; readonly path: string; readonly periodSeconds?: number; - readonly port?: number; + readonly port: number; readonly timeoutSeconds?: number; } | { readonly exec: { @@ -10914,7 +7645,7 @@ export interface operations { readonly initialDelaySeconds?: number; readonly path: string; readonly periodSeconds?: number; - readonly port?: number; + readonly port: number; readonly timeoutSeconds?: number; } | { readonly exec: { @@ -10935,7 +7666,7 @@ export interface operations { readonly initialDelaySeconds?: number; readonly path: string; readonly periodSeconds?: number; - readonly port?: number; + readonly port: number; readonly timeoutSeconds?: number; } | { readonly exec: { @@ -10958,7 +7689,7 @@ export interface operations { readonly initialDelaySeconds?: number; readonly path: string; readonly periodSeconds?: number; - readonly port?: number; + readonly port: number; readonly timeoutSeconds?: number; } | { readonly exec: { @@ -10979,7 +7710,7 @@ export interface operations { readonly initialDelaySeconds?: number; readonly path: string; readonly periodSeconds?: number; - readonly port?: number; + readonly port: number; readonly timeoutSeconds?: number; } | { readonly exec: { @@ -11000,7 +7731,7 @@ export interface operations { readonly initialDelaySeconds?: number; readonly path: string; readonly periodSeconds?: number; - readonly port?: number; + readonly port: number; readonly timeoutSeconds?: number; } | { readonly exec: { @@ -11010,40 +7741,31 @@ export interface operations { readonly initialDelaySeconds?: number; readonly periodSeconds?: number; readonly timeoutSeconds?: number; - }; - }; - readonly image: string; - readonly integrations?: readonly ({ - readonly id: string; - readonly name: string; - /** @default /opt/models */ - readonly path?: string; - /** @enum {string} */ - readonly type: "model"; - } | { - readonly accessKeyId: string; - readonly endpoint?: string; - readonly name: string; - readonly path?: string; - readonly region?: string; - readonly secretAccessKey: string; - /** @enum {string} */ - readonly type: "s3"; - readonly url: string; - } | { + }; + }; + readonly image: string; + readonly integrations?: readonly ({ readonly name: string; /** @enum {string} */ readonly type: "volume"; - } | { - readonly name: string; + })[]; + readonly models?: readonly ({ + readonly id: string; readonly path?: string; - /** @enum {string} */ - readonly type: "git-lfs"; - /** Format: uri */ - readonly url: string; })[]; readonly name: string; readonly region?: string; + readonly repositories?: { + readonly dataset: string; + readonly mountPath?: string; + readonly repositories: readonly ({ + readonly name: string; + readonly password?: string; + readonly ref?: string; + readonly url: string; + readonly username?: string; + })[]; + }; readonly resources: { readonly autoscaling?: { readonly enabled?: boolean; @@ -11058,438 +7780,73 @@ export interface operations { } | ({ /** @enum {string} */ - readonly metric: "cpu" | "memory"; - /** @enum {string} */ - readonly summary: "average"; - readonly value: number; - }) - )[]; - }; - readonly machineType: string; - readonly ports: readonly (number)[]; - /** @default 1 */ - readonly replicas?: number; - }; - }) - ) - | null; - /** @description The ID of the deployment the spec belongs to */ - readonly deploymentId: string; - /** - * Format: date-time - * @description The date the deployment was marked "healthy" - * @default null - */ - readonly dtHealthy?: Date; - /** - * @description The fatal configuration error. Only present if the cluster was unable to apply the entire deployment configuration. This is not the same as an instance error. - * @default null - */ - readonly error?: string | null; - /** - * Format: date-time - * @description The date the deployment configuration was applied to the cluster - * @default null - */ - readonly externalApplied?: Date; - /** @description The ID of the deployment spec */ - readonly id: string; - /** - * @description Metadata about the source of the configuration - * @default null - */ - readonly metadata?: - | ({ - readonly gitHeaders?: { - readonly "x-git-actor": string; - readonly "x-git-host": "github" | "gitlab"; - readonly "x-git-owner": string; - readonly "x-git-ref": string; - readonly "x-git-repo": string; - readonly "x-git-sha": string; - }; - }) - | null; - /** @description The ID of the user the deployment belongs to */ - readonly userId: string; - }) - | null; - /** - * @description The last version hash for the deployment - * @default null - */ - readonly latestSpecHash?: string | null; - /** @description The name of the deployment */ - readonly name: string; - /** @description The ID of the project the deployment belongs to */ - readonly projectId: string; - /** @description The ID of the team the deployment belongs to */ - readonly teamId: string; - })[]; - /** @description The cursor required to fetch the next page of results. i.e. `?after=nextPage`. This is `null` when there is no next page. */ - readonly nextPage?: string; - }; - }; - }; - default: components["responses"]["error"]; - }; - }; - /** - * List a project's models - * @description Fetches a list of models for a project. - */ - "projectModels-list": { - parameters: { - readonly query: { - /** @description Fetch the next page of results after this cursor. */ - after?: string; - /** @description The number of items to fetch after this page. */ - limit?: number; - /** @description Order results by one of these fields. */ - orderBy?: "dtCreated"; - /** @description The order to sort the results by. */ - order?: "asc" | "desc"; - /** @description The name of the model to filter by */ - name?: string; - }; - readonly path: { - /** @description The ID of the project to fetch models for */ - id: string; - }; - }; - responses: { - /** @description Successful response */ - 200: { - content: { - readonly "application/json": { - /** @description Whether there are more pages of results available. */ - readonly hasMore: boolean; - /** @description The items on this page. */ - readonly items: readonly ({ - /** @description The description of the dataset */ - readonly description: string | null; - /** - * Format: date-time - * @description The date the dataset was created - */ - readonly dtCreated: Date; - /** - * Format: date-time - * @description The date the dataset was last modified - */ - readonly dtModified: Date; - /** @description The ID of the dataset */ - readonly id: string; - /** @description Whether the dataset is public */ - readonly isPublic: boolean; - /** @description The name of the dataset */ - readonly name: string; - /** @description The ID of the project */ - readonly projectId: string | null; - /** @description The ID of the storage provider */ - readonly storageProviderId: string | null; - /** @description The ID of the team that owns the dataset */ - readonly teamId: string; - })[]; - /** @description The cursor required to fetch the next page of results. i.e. `?after=nextPage`. This is `null` when there is no next page. */ - readonly nextPage?: string; - }; - }; - }; - default: components["responses"]["error"]; - }; - }; - /** - * Add a model to a project - * @description Adds a model to a project. - */ - "projectModels-add": { - parameters: { - readonly path: { - /** @description The ID of the project to add the model to */ - id: string; - /** @description The ID of the model to add to the project */ - modelId: string; - }; - }; - responses: { - /** @description Successful response */ - 200: { - content: { - readonly "application/json": { - /** @description The description of the dataset */ - readonly description: string | null; - /** - * Format: date-time - * @description The date the dataset was created - */ - readonly dtCreated: Date; - /** - * Format: date-time - * @description The date the dataset was last modified - */ - readonly dtModified: Date; - /** @description The ID of the dataset */ - readonly id: string; - /** @description Whether the dataset is public */ - readonly isPublic: boolean; - /** @description The name of the dataset */ - readonly name: string; - /** @description The ID of the project */ - readonly projectId: string | null; - /** @description The ID of the storage provider */ - readonly storageProviderId: string | null; - /** @description The ID of the team that owns the dataset */ - readonly teamId: string; - }; - }; - }; - default: components["responses"]["error"]; - }; - }; - /** - * Remove a model from project - * @description Remove a model from project. - */ - "projectModels-remove": { - parameters: { - readonly path: { - /** @description The ID of the project to remove the model from */ - id: string; - /** @description The ID of the model to remove from the project */ - modelId: string; - }; - }; - responses: { - /** @description Successful response */ - 200: { - content: { - readonly "application/json": { - /** @description The description of the dataset */ - readonly description: string | null; - /** - * Format: date-time - * @description The date the dataset was created - */ - readonly dtCreated: Date; - /** - * Format: date-time - * @description The date the dataset was last modified - */ - readonly dtModified: Date; - /** @description The ID of the dataset */ - readonly id: string; - /** @description Whether the dataset is public */ - readonly isPublic: boolean; - /** @description The name of the dataset */ - readonly name: string; - /** @description The ID of the project */ - readonly projectId: string | null; - /** @description The ID of the storage provider */ - readonly storageProviderId: string | null; - /** @description The ID of the team that owns the dataset */ - readonly teamId: string; - }; - }; - }; - default: components["responses"]["error"]; - }; - }; - /** - * Remove a notebook from a project - * @description Remove a notebook from a project. - */ - "projectNotebooks-remove": { - parameters: { - readonly path: { - /** @description The ID of the project to remove the notebook from */ - id: string; - /** @description The ID of the notebook to remove from the project */ - notebookId: string; - }; - }; - responses: { - /** @description Successful response */ - 200: { - content: { - readonly "application/json": { - /** - * Format: date-time - * @description The date the notebook was created - */ - readonly dtCreated: Date; - /** - * Format: date-time - * @description The date the notebook was last modified - */ - readonly dtModified: Date; - /** - * Format: date-time - * @description The date the notebook was last started - */ - readonly dtStarted: Date; - /** @description The ID of the notebook */ - readonly id: string; - /** @description The type of the machine the notebook is running on */ - readonly machineType: string | null; - /** @description The name of the notebook */ - readonly name: string; - /** @description The notebook repo ID */ - readonly notebookRepoId: string | null; - /** @description The project ID */ - readonly projectId: string; - /** @description The last user to start the notebook */ - readonly startedByUser: { - /** - * Format: email - * @description The email address of the user - */ - readonly email: string; - /** - * @description The first name of the user - * @default null - */ - readonly firstName?: string | null; - /** @description The ID of the user */ - readonly id: string; - /** - * @description The last name of the user - * @default null - */ - readonly lastName?: string | null; + readonly metric: "cpu" | "memory"; + /** @enum {string} */ + readonly summary: "average"; + readonly value: number; + }) + )[]; + }; + readonly machineType: string; + readonly ports: readonly (number)[]; + /** @default 1 */ + readonly replicas?: number; + }; + }) + ) + | null; + /** @description The ID of the deployment the spec belongs to */ + readonly deploymentId: string; + /** + * Format: date-time + * @description The date the deployment was marked "healthy" + * @default null + */ + readonly dtHealthy?: Date; + /** + * @description The fatal configuration error. Only present if the cluster was unable to apply the entire deployment configuration. This is not the same as an instance error. + * @default null + */ + readonly error?: string | null; + /** + * Format: date-time + * @description The date the deployment configuration was applied to the cluster + * @default null + */ + readonly externalApplied?: Date; + /** @description The ID of the deployment spec */ + readonly id: string; + /** + * @description Metadata about the source of the configuration + * @default null + */ + readonly metadata?: + | ({ + readonly gitHeaders?: { + readonly "x-git-actor": string; + readonly "x-git-host": "github" | "gitlab"; + readonly "x-git-owner": string; + readonly "x-git-ref": string; + readonly "x-git-repo": string; + readonly "x-git-sha": string; + }; + }) + | null; + /** @description The ID of the user the deployment belongs to */ + readonly userId: string; + }) + | null; /** - * @description The URL of the team's profile image. + * @description The last version hash for the deployment * @default null */ - readonly publicProfileImageUrl?: string | null; - }; - /** - * @description The state of the notebook. - * @enum {string} - */ - readonly state: - | "Cancel" - | "Cancelled" - | "Error" - | "Failed" - | "Pending" - | "Preempted" - | "Provisioned" - | "Running" - | "Stopped"; - }; - }; - }; - default: components["responses"]["error"]; - }; - }; - /** - * List a project's notebooks - * @description Fetches a list of notebooks for a project. - */ - "projectNotebooks-list": { - parameters: { - readonly query: { - /** @description Fetch the next page of results after this cursor. */ - after?: string; - /** @description The number of items to fetch after this page. */ - limit?: number; - /** @description Order results by one of these fields. */ - orderBy?: "dtCreated" | "name"; - /** @description The order to sort the results by. */ - order?: "asc" | "desc"; - /** @description The notebook name to filter by */ - name?: string; - /** @description The state of the notebook. */ - state?: - | "Cancel" - | "Cancelled" - | "Error" - | "Failed" - | "Pending" - | "Preempted" - | "Provisioned" - | "Running" - | "Stopped"; - }; - readonly path: { - /** @description The ID of the project to fetch notebooks for */ - id: string; - }; - }; - responses: { - /** @description Successful response */ - 200: { - content: { - readonly "application/json": { - /** @description Whether there are more pages of results available. */ - readonly hasMore: boolean; - /** @description The items on this page. */ - readonly items: readonly ({ - /** - * Format: date-time - * @description The date the notebook was created - */ - readonly dtCreated: Date; - /** - * Format: date-time - * @description The date the notebook was last modified - */ - readonly dtModified: Date; - /** - * Format: date-time - * @description The date the notebook was last started - */ - readonly dtStarted: Date; - /** @description The ID of the notebook */ - readonly id: string; - /** @description The type of the machine the notebook is running on */ - readonly machineType: string | null; - /** @description The name of the notebook */ + readonly latestSpecHash?: string | null; + /** @description The name of the deployment */ readonly name: string; - /** @description The notebook repo ID */ - readonly notebookRepoId: string | null; - /** @description The project ID */ + /** @description The ID of the project the deployment belongs to */ readonly projectId: string; - /** @description The last user to start the notebook */ - readonly startedByUser: { - /** - * Format: email - * @description The email address of the user - */ - readonly email: string; - /** - * @description The first name of the user - * @default null - */ - readonly firstName?: string | null; - /** @description The ID of the user */ - readonly id: string; - /** - * @description The last name of the user - * @default null - */ - readonly lastName?: string | null; - /** - * @description The URL of the team's profile image. - * @default null - */ - readonly publicProfileImageUrl?: string | null; - }; - /** - * @description The state of the notebook. - * @enum {string} - */ - readonly state: - | "Cancel" - | "Cancelled" - | "Error" - | "Failed" - | "Pending" - | "Preempted" - | "Provisioned" - | "Running" - | "Stopped"; + /** @description The ID of the team the deployment belongs to */ + readonly teamId: string; })[]; /** @description The cursor required to fetch the next page of results. i.e. `?after=nextPage`. This is `null` when there is no next page. */ readonly nextPage?: string; @@ -11499,99 +7856,11 @@ export interface operations { default: components["responses"]["error"]; }; }; - /** - * Add a notebook to a project - * @description Adds a notebook to a project. - */ - "projectNotebooks-add": { - parameters: { - readonly path: { - /** @description The ID of the project to add the notebook to */ - id: string; - /** @description The ID of the notebook to add to the project */ - notebookId: string; - }; - }; - responses: { - /** @description Successful response */ - 200: { - content: { - readonly "application/json": { - /** - * Format: date-time - * @description The date the notebook was created - */ - readonly dtCreated: Date; - /** - * Format: date-time - * @description The date the notebook was last modified - */ - readonly dtModified: Date; - /** - * Format: date-time - * @description The date the notebook was last started - */ - readonly dtStarted: Date; - /** @description The ID of the notebook */ - readonly id: string; - /** @description The type of the machine the notebook is running on */ - readonly machineType: string | null; - /** @description The name of the notebook */ - readonly name: string; - /** @description The notebook repo ID */ - readonly notebookRepoId: string | null; - /** @description The project ID */ - readonly projectId: string; - /** @description The last user to start the notebook */ - readonly startedByUser: { - /** - * Format: email - * @description The email address of the user - */ - readonly email: string; - /** - * @description The first name of the user - * @default null - */ - readonly firstName?: string | null; - /** @description The ID of the user */ - readonly id: string; - /** - * @description The last name of the user - * @default null - */ - readonly lastName?: string | null; - /** - * @description The URL of the team's profile image. - * @default null - */ - readonly publicProfileImageUrl?: string | null; - }; - /** - * @description The state of the notebook. - * @enum {string} - */ - readonly state: - | "Cancel" - | "Cancelled" - | "Error" - | "Failed" - | "Pending" - | "Preempted" - | "Provisioned" - | "Running" - | "Stopped"; - }; - }; - }; - default: components["responses"]["error"]; - }; - }; /** * List a project's secrets * @description Fetches a list of secrets for a project. */ - "projectSecrets-list": { + "query.projectSecrets.list": { parameters: { readonly query: { /** @description Fetch the next page of results after this cursor. */ @@ -11642,7 +7911,7 @@ export interface operations { * Create a project secret * @description Creates a new secret for a project. */ - "projectSecrets-create": { + "mutation.projectSecrets.create": { parameters: { readonly path: { /** @description The ID of the project where the secret is stored. */ @@ -11686,7 +7955,7 @@ export interface operations { * Get a project secret * @description Fetches a secret for a project. */ - "projectSecrets-getProjectSecret": { + "query.projectSecrets.getProjectSecret": { parameters: { readonly path: { /** @description The ID of the project where the secret is stored. */ @@ -11722,7 +7991,7 @@ export interface operations { * Delete a project secret * @description Deletes a secret for a project. */ - "projectSecrets-delete": { + "mutation.projectSecrets.delete": { parameters: { readonly path: { /** @description The ID of the project where the secret is stored. */ @@ -11748,7 +8017,7 @@ export interface operations { * Update a project secret * @description Update the value of a secret for a project. */ - "projectSecrets-update": { + "mutation.projectSecrets.update": { parameters: { readonly path: { /** @description The ID of the project where the secret is stored. */ @@ -11792,7 +8061,7 @@ export interface operations { * List public IPs * @description Fetches a list of public IPs. */ - "publicIps-list": { + "query.publicIps.list": { parameters: { readonly query: { /** @description Fetch the next page of results after this cursor. */ @@ -11839,7 +8108,7 @@ export interface operations { * Claim a public IP * @description Claims a public IP. */ - "publicIps-claim": { + "mutation.publicIps.claim": { readonly requestBody: { readonly content: { readonly "application/json": { @@ -11874,7 +8143,7 @@ export interface operations { * Assign a public IP * @description Assigns a public IP to a machine. */ - "publicIps-assign": { + "mutation.publicIps.assign": { parameters: { readonly path: { /** @description The IP address of the public IP. */ @@ -11915,7 +8184,7 @@ export interface operations { * Release a public IP * @description Releases a public IP. */ - "publicIps-release": { + "mutation.publicIps.release": { parameters: { readonly path: { /** @description The IP address of the public IP. */ @@ -11938,7 +8207,7 @@ export interface operations { * List shared drives * @description Fetches a list of shared drives. */ - "sharedDrives-list": { + "query.sharedDrives.list": { parameters: { readonly query: { /** @description Fetch the next page of results after this cursor. */ @@ -12001,7 +8270,7 @@ export interface operations { * Create a shared drive * @description Creates a new shared drive for use in a private network. */ - "sharedDrives-create": { + "mutation.sharedDrives.create": { readonly requestBody: { readonly content: { readonly "application/json": { @@ -12057,7 +8326,7 @@ export interface operations { * Get a shared drive * @description Fetches a single shared drive by ID. */ - "sharedDrives-get": { + "query.sharedDrives.get": { parameters: { readonly path: { /** @description The ID of the shared drive to fetch. */ @@ -12105,7 +8374,7 @@ export interface operations { * Update a shared drive * @description Updates a single shared drive by ID. */ - "sharedDrives-update": { + "mutation.sharedDrives.update": { parameters: { readonly path: { /** @description The ID of the shared drive to fetch. */ @@ -12161,7 +8430,7 @@ export interface operations { * Delete a shared drive * @description Deletes a single shared drive by ID. */ - "sharedDrives-delete": { + "mutation.sharedDrives.delete": { parameters: { readonly path: { /** @description The ID of the shared drive to delete. */ @@ -12185,7 +8454,7 @@ export interface operations { * List snapshots * @description List snapshots and filter by machine. */ - "snapshots-list": { + "query.snapshots.list": { parameters: { readonly query: { /** @description Fetch the next page of results after this cursor. */ @@ -12229,7 +8498,7 @@ export interface operations { * Create snapshot * @description Create a snapshot for a machine. */ - "snapshots-create": { + "mutation.snapshots.create": { readonly requestBody: { readonly content: { readonly "application/json": { @@ -12322,7 +8591,7 @@ export interface operations { * Get a snapshot * @description Fetches a single snapshot by ID. */ - "snapshots-get": { + "query.snapshots.get": { parameters: { readonly path: { /** @description The ID of the snapshot. */ @@ -12352,7 +8621,7 @@ export interface operations { * Update a snapshot * @description Updates a single snapshot by ID. */ - "snapshots-update": { + "mutation.snapshots.update": { parameters: { readonly path: { /** @description The ID of the snapshot. */ @@ -12390,7 +8659,7 @@ export interface operations { * Delete snapshot * @description Delete a snapshot for a machine. */ - "snapshots-delete": { + "mutation.snapshots.delete": { parameters: { readonly path: { /** @description The ID of the snapshot. */ @@ -12479,7 +8748,7 @@ export interface operations { * Restore snapshot * @description Restore a snapshot for a machine. */ - "snapshots-restore": { + "mutation.snapshots.restore": { parameters: { readonly path: { /** @description The ID of the snapshot. */ @@ -12576,7 +8845,7 @@ export interface operations { * List startup scripts * @description Fetches a list of startup scripts. */ - "startupScripts-list": { + "query.startupScripts.list": { parameters: { readonly query: { /** @description Fetch the next page of results after this cursor. */ @@ -12634,7 +8903,7 @@ export interface operations { * Create startup script * @description Create a startup script. */ - "startupScripts-create": { + "mutation.startupScripts.create": { readonly requestBody: { readonly content: { readonly "application/json": { @@ -12687,7 +8956,7 @@ export interface operations { * Get a startup script * @description Fetches a single startup script by ID. */ - "startupScripts-get": { + "query.startupScripts.get": { parameters: { readonly path: { /** @description The ID of the startup script to fetch. */ @@ -12731,7 +9000,7 @@ export interface operations { * Update startup script * @description Update a startup script. */ - "startupScripts-update": { + "mutation.startupScripts.update": { parameters: { readonly path: { /** @description The id of the startup script. */ @@ -12789,7 +9058,7 @@ export interface operations { * Delete startup script * @description Delete a startup script. */ - "startupScripts-delete": { + "mutation.startupScripts.delete": { parameters: { readonly path: { /** @description The id of the startup script. */ @@ -12833,7 +9102,7 @@ export interface operations { * Assign startup script to machine * @description Assign a startup script to a machine. */ - "startupScripts-assign": { + "mutation.startupScripts.assign": { parameters: { readonly path: { /** @description The id of the startup script. */ @@ -12885,7 +9154,7 @@ export interface operations { * Unassign startup script from machine * @description Unassign a startup script from a machine. */ - "startupScripts-unassign": { + "mutation.startupScripts.unassign": { parameters: { readonly path: { /** @description The id of the startup script. */ @@ -12937,7 +9206,7 @@ export interface operations { * List storage providers * @description List storage providers */ - "storageProviders-list": { + "query.storageProviders.list": { parameters: { readonly query: { /** @description Fetch the next page of results after this cursor. */ @@ -12961,21 +9230,14 @@ export interface operations { readonly items: readonly ({ /** @description The ID of the storage provider */ readonly id: string; - /** @description Whether the storage provider is managed by Paperspace */ - readonly isManaged: boolean; - /** @description Whether the storage provider is the team's default provider */ - readonly isTeamDefault: boolean | null; /** @description The name of the storage provider */ readonly name: string; /** @description The storage provider configuration */ readonly s3Config: { readonly accessKey: string; readonly bucket: string; - /** - * Format: uri - * @default null - */ - readonly endpoint?: string | null; + /** Format: uri */ + readonly endpoint: string | null; readonly region?: string | null; /** @default false */ readonly retainData?: boolean | null; @@ -12995,7 +9257,7 @@ export interface operations { * Create a storage provider * @description Create a storage provider */ - "storageProviders-create": { + "mutation.storageProviders.create": { readonly requestBody: { readonly content: { readonly "application/json": { @@ -13007,11 +9269,8 @@ export interface operations { readonly s3Config: { readonly accessKey: string; readonly bucket: string; - /** - * Format: uri - * @default null - */ - readonly endpoint?: string | null; + /** Format: uri */ + readonly endpoint: string | null; readonly region?: string | null; /** @default false */ readonly retainData?: boolean | null; @@ -13033,21 +9292,14 @@ export interface operations { readonly "application/json": { /** @description The ID of the storage provider */ readonly id: string; - /** @description Whether the storage provider is managed by Paperspace */ - readonly isManaged: boolean; - /** @description Whether the storage provider is the team's default provider */ - readonly isTeamDefault: boolean | null; /** @description The name of the storage provider */ readonly name: string; /** @description The storage provider configuration */ readonly s3Config: { readonly accessKey: string; readonly bucket: string; - /** - * Format: uri - * @default null - */ - readonly endpoint?: string | null; + /** Format: uri */ + readonly endpoint: string | null; readonly region?: string | null; /** @default false */ readonly retainData?: boolean | null; @@ -13064,7 +9316,7 @@ export interface operations { * Get a storage provider * @description Get a storage provider */ - "storageProviders-get": { + "query.storageProviders.get": { parameters: { readonly path: { /** @description The ID of the storage provider */ @@ -13078,21 +9330,14 @@ export interface operations { readonly "application/json": { /** @description The ID of the storage provider */ readonly id: string; - /** @description Whether the storage provider is managed by Paperspace */ - readonly isManaged: boolean; - /** @description Whether the storage provider is the team's default provider */ - readonly isTeamDefault: boolean | null; /** @description The name of the storage provider */ readonly name: string; /** @description The storage provider configuration */ readonly s3Config: { readonly accessKey: string; readonly bucket: string; - /** - * Format: uri - * @default null - */ - readonly endpoint?: string | null; + /** Format: uri */ + readonly endpoint: string | null; readonly region?: string | null; /** @default false */ readonly retainData?: boolean | null; @@ -13109,7 +9354,7 @@ export interface operations { * Update a storage provider * @description Update a storage provider */ - "storageProviders-update": { + "mutation.storageProviders.update": { parameters: { readonly path: { /** @description The ID of the storage provider */ @@ -13121,17 +9366,12 @@ export interface operations { readonly "application/json": { /** @description Is team default */ readonly isTeamDefault: boolean; - /** @description The name of the storage provider */ - readonly name: string; /** @description The storage provider configuration */ readonly s3Config: { readonly accessKey: string; readonly bucket: string; - /** - * Format: uri - * @default null - */ - readonly endpoint?: string | null; + /** Format: uri */ + readonly endpoint: string | null; readonly region?: string | null; /** @default false */ readonly retainData?: boolean | null; @@ -13148,21 +9388,14 @@ export interface operations { readonly "application/json": { /** @description The ID of the storage provider */ readonly id: string; - /** @description Whether the storage provider is managed by Paperspace */ - readonly isManaged: boolean; - /** @description Whether the storage provider is the team's default provider */ - readonly isTeamDefault: boolean | null; /** @description The name of the storage provider */ readonly name: string; /** @description The storage provider configuration */ readonly s3Config: { readonly accessKey: string; readonly bucket: string; - /** - * Format: uri - * @default null - */ - readonly endpoint?: string | null; + /** Format: uri */ + readonly endpoint: string | null; readonly region?: string | null; /** @default false */ readonly retainData?: boolean | null; @@ -13179,7 +9412,7 @@ export interface operations { * Delete a storage provider * @description Delete a storage provider */ - "storageProviders-delete": { + "mutation.storageProviders.delete": { parameters: { readonly path: { /** @description The ID of the storage provider */ @@ -13203,7 +9436,7 @@ export interface operations { * Get storage utilization * @description Get a breakdown of how storage is being used by your team */ - "storageUtilization-getPublic": { + "query.storageUtilization.getPublic": { responses: { /** @description Successful response */ 200: { @@ -13233,7 +9466,7 @@ export interface operations { * List a team's secrets * @description Fetches a list of secrets for a team. */ - "teamSecrets-list": { + "query.teamSecrets.list": { parameters: { readonly query: { /** @description Fetch the next page of results after this cursor. */ @@ -13284,7 +9517,7 @@ export interface operations { * Create a team secret * @description Creates a new secret for a team. */ - "teamSecrets-create": { + "mutation.teamSecrets.create": { parameters: { readonly path: { /** @description The ID of the team where the secret is stored. */ @@ -13328,7 +9561,7 @@ export interface operations { * Get a team secret * @description Fetches a secret for a team. */ - "teamSecrets-get": { + "query.teamSecrets.get": { parameters: { readonly path: { /** @description The ID of the team where the secret is stored. */ @@ -13364,7 +9597,7 @@ export interface operations { * Delete a team secret * @description Deletes a secret for a team. */ - "teamSecrets-delete": { + "mutation.teamSecrets.delete": { parameters: { readonly path: { /** @description The ID of the team where the secret is stored. */ @@ -13390,7 +9623,7 @@ export interface operations { * Update a team secret * @description Update the value of a secret for a team. */ - "teamSecrets-update": { + "mutation.teamSecrets.update": { parameters: { readonly path: { /** @description The ID of the team where the secret is stored. */ @@ -13434,7 +9667,7 @@ export interface operations { * List templates * @description Fetches a list of templates. */ - "templates-list": { + "query.templates.list": { parameters: { readonly query: { /** @description Fetch the next page of results after this cursor. */ @@ -13504,7 +9737,7 @@ export interface operations { * Create template * @description Create a template for a machine. */ - "templates-create": { + "mutation.templates.create": { readonly requestBody: { readonly content: { readonly "application/json": { @@ -13622,7 +9855,7 @@ export interface operations { * Get a template * @description Fetches a single template by ID. */ - "templates-get": { + "query.templates.get": { parameters: { readonly path: { /** @description The ID of the template to fetch. */ @@ -13677,7 +9910,7 @@ export interface operations { * Update a template * @description Updates a single template by ID. */ - "templates-update": { + "mutation.templates.update": { parameters: { readonly path: { /** @description The ID of the template to update. */ @@ -13740,7 +9973,7 @@ export interface operations { * Delete template * @description Delete a template. */ - "templates-delete": { + "mutation.templates.delete": { parameters: { readonly path: { /** @description The ID of the template to delete. */ @@ -13795,7 +10028,7 @@ export interface operations { * List workflow run logs * @description Lists logs for a given workflow run. */ - "workflowRunLogs-list": { + "query.workflowRunLogs.list": { parameters: { readonly path: { /** @description The ID of the workflow */ From 92c3af3bb8052d414213ac943379a5563f45c3c7 Mon Sep 17 00:00:00 2001 From: Kevin Wang Date: Wed, 5 Jul 2023 12:47:45 -0400 Subject: [PATCH 5/9] openapi --- api/openapi.ts | 8055 +++++++++++++++++++++++++++++++++++------------- 1 file changed, 5911 insertions(+), 2144 deletions(-) diff --git a/api/openapi.ts b/api/openapi.ts index 80fe81e..58e5910 100644 --- a/api/openapi.ts +++ b/api/openapi.ts @@ -9,304 +9,309 @@ export interface paths { * Create an app * @description Create an app. */ - post: operations["mutation.apps.create"]; + post: operations["apps-create"]; }; "/apps/{id}": { + /** + * Get an app + * @description Fetches an app. + */ + get: operations["apps-get"]; /** * Delete an app * @description Deletes an app. This will delete all resources associated with the app. */ - delete: operations["mutation.apps.delete"]; + delete: operations["apps-delete"]; }; "/apps/{id}/disable": { /** * Disable an app * @description Disables an app that is currently enabled. This will stop the app's deployments and make it unavailable to users. */ - patch: operations["mutation.apps.disable"]; + patch: operations["apps-disable"]; }; "/apps/{id}/enable": { /** * Enable an app * @description Enables an app that has been previously disabled. This will start the app and make it available to users. */ - patch: operations["mutation.apps.enable"]; + patch: operations["apps-enable"]; }; "/apps/{id}/name": { /** * Update an app's name * @description Change the name of an app */ - patch: operations["mutation.apps.updateName"]; + patch: operations["apps-updateName"]; }; "/auth/session": { /** * Get the current session * @description Get the current session. If a user is not logged in, this will be null. Otherwise, it will contain the current team and user. */ - get: operations["query.auth.session"]; + get: operations["auth-session"]; }; "/autoscaling-groups": { /** * List autoscaling groups * @description List autoscaling groups and filter by machine type. */ - get: operations["query.autoscalingGroups.list"]; + get: operations["autoscalingGroups-list"]; /** * Create an autoscaling group * @description Create an autoscaling group. */ - post: operations["mutation.autoscalingGroups.create"]; + post: operations["autoscalingGroups-create"]; }; "/autoscaling-groups/{id}": { /** * Get an autoscaling group * @description Fetches a single autoscaling group by id. */ - get: operations["query.autoscalingGroups.get"]; + get: operations["autoscalingGroups-get"]; /** * Update an autoscaling group * @description Update an autoscaling group. */ - put: operations["mutation.autoscalingGroups.update"]; + put: operations["autoscalingGroups-update"]; /** * Delete an autoscaling group * @description Delete an autoscaling group. */ - delete: operations["mutation.autoscalingGroups.delete"]; + delete: operations["autoscalingGroups-delete"]; }; "/billing/account-standing": { /** * Get account standing * @description Check whether the current team account is in good standing. If not, send back a message explaining why. */ - get: operations["query.billingAccountStanding.get"]; + get: operations["billingAccountStanding-get"]; }; "/container-registries": { /** * List container registries * @description Lists container registries for the current team. */ - get: operations["query.containerRegistries.list"]; + get: operations["containerRegistries-list"]; /** * Create a container registry * @description Creates a container registry for the current team. */ - post: operations["mutation.containerRegistries.create"]; + post: operations["containerRegistries-create"]; }; "/container-registries/{id}": { /** * List container registries * @description Lists container registries for the current team. */ - get: operations["query.containerRegistries.get"]; + get: operations["containerRegistries-get"]; /** * Update a container registry * @description Updates a container registry for the current team. */ - put: operations["mutation.containerRegistries.update"]; + put: operations["containerRegistries-update"]; /** * Delete a container registry * @description Deletes a container registry for the current team. */ - delete: operations["mutation.containerRegistries.delete"]; + delete: operations["containerRegistries-delete"]; }; "/container-registries/{id}/test-connection": { /** * Test a container registry connection * @description Validate that a container registry can be connected to using the provided credentials. */ - get: operations["mutation.containerRegistries.testConnection"]; + get: operations["containerRegistries-testConnection"]; }; "/deployments": { /** * List deployments * @description Fetches a list of deployments for a logged in user. */ - get: operations["query.deployments.list"]; + get: operations["deployments-list"]; /** * Upsert a deployment * @description Submit a new deployment configuration. If a deployment does not exist, one is created. Otherwise, a deployment is updated with new configuration. */ - post: operations["mutation.deployments.upsert"]; + post: operations["deployments-upsert"]; }; "/deployments/{id}": { /** * Get a deployment * @description Fetches a single deployment by deployment ID. */ - get: operations["query.deployments.get"]; + get: operations["deployments-get"]; /** * Delete a deployment * @description Deletes a deployment by deployment ID. */ - delete: operations["mutation.deployments.delete"]; + delete: operations["deployments-delete"]; }; "/deployments/{id}/history": { /** * List app history * @description Lists history for a given app. */ - get: operations["query.deploymentHistory.list"]; + get: operations["deploymentHistory-list"]; }; "/deployments/{id}/logs": { /** * List app logs * @description Lists logs for a given app. */ - get: operations["query.deploymentLogs.list"]; + get: operations["deploymentLogs-list"]; }; "/deployments/{id}/metrics": { /** * List app metrics * @description Lists metrics for a given app. */ - get: operations["query.deploymentMetrics.get"]; + get: operations["deploymentMetrics-get"]; }; "/deployments/{id}/runs": { /** * List deployment runs * @description Lists the active deployment runs for a deployment. */ - get: operations["query.deploymentRuns.get"]; + get: operations["deploymentRuns-get"]; }; "/health": { /** * Health check * @description Check if the API is healthy. */ - get: operations["query.health"]; + get: operations["health"]; }; "/machine-events": { /** * List machine events * @description Fetches a list of machine events. */ - get: operations["query.machineEvents.list"]; + get: operations["machineEvents-list"]; }; "/machine-events/{id}": { /** * Get a machine event * @description Fetches a single machine event by ID. */ - get: operations["query.machineEvents.get"]; + get: operations["machineEvents-get"]; }; "/machines": { /** * List machines * @description Fetches a list of machines. */ - get: operations["query.machines.list"]; + get: operations["machines-list"]; /** * Create a machine * @description Creates a new machine. */ - post: operations["mutation.machines.create"]; + post: operations["machines-create"]; }; "/machines/{id}": { /** * Get a machine * @description Fetches a single machine by ID. */ - get: operations["query.machines.get"]; + get: operations["machines-get"]; /** * Update a machine * @description Updates a machine. */ - put: operations["mutation.machines.update"]; + put: operations["machines-update"]; /** * Delete a machine * @description Deletes a single machine by ID. */ - delete: operations["mutation.machines.delete"]; + delete: operations["machines-delete"]; }; "/machines/{id}/accessors": { /** * List accessors * @description Lists the team members that can explicitly access a machine. */ - get: operations["query.machines.listAccessors"]; + get: operations["machines-listAccessors"]; /** * Add an accessor * @description Adds an accessor to a machine. */ - post: operations["mutation.machines.addAccessor"]; + post: operations["machines-addAccessor"]; }; "/machines/{id}/accessors/{userId}": { /** * Get an accessor * @description Get an accessor for a machine. */ - get: operations["query.machines.getAccessor"]; + get: operations["machines-getAccessor"]; /** * Delete an accessor * @description Deletes an accessor from a machine. */ - delete: operations["mutation.machines.removeAccessor"]; + delete: operations["machines-removeAccessor"]; }; "/machines/{id}/desktop": { /** * Get desktop settings * @description Gets the machine settings that are used to configure desktop streaming. */ - get: operations["query.machines.getDesktop"]; + get: operations["machines-getDesktop"]; }; "/machines/{id}/restart": { /** * Restart a machine * @description Restarts a machine. */ - patch: operations["mutation.machines.restart"]; + patch: operations["machines-restart"]; }; "/machines/{id}/start": { /** * Start a machine * @description Starts a machine. */ - patch: operations["mutation.machines.start"]; + patch: operations["machines-start"]; }; "/machines/{id}/stop": { /** * Stop a machine * @description Stops a machine. */ - patch: operations["mutation.machines.stop"]; + patch: operations["machines-stop"]; }; "/notebooks": { /** * List notebooks * @description Lists the notebooks you have access to in the current team */ - get: operations["query.notebooks.list"]; + get: operations["notebooks-list"]; }; "/private-networks": { /** * List private networks * @description Fetches a list of private networks. */ - get: operations["query.privateNetworks.list"]; + get: operations["privateNetworks-list"]; /** * Create a private network * @description Creates a new private network. */ - post: operations["mutation.privateNetworks.create"]; + post: operations["privateNetworks-create"]; }; "/private-networks/{id}": { /** * Get a private network * @description Fetches a single private network by ID. */ - get: operations["query.privateNetworks.get"]; + get: operations["privateNetworks-get"]; /** * Update a private network * @description Updates a single private network by ID. */ - put: operations["mutation.privateNetworks.update"]; + put: operations["privateNetworks-update"]; /** * Delete a private network * @description Deletes a single private network by ID. */ - delete: operations["mutation.privateNetworks.delete"]; + delete: operations["privateNetworks-delete"]; }; "/projects": { /** @@ -314,324 +319,371 @@ export interface paths { * @description * List projects. This endpoint supports pagination and sorting. */ - get: operations["query.projects.list"]; + get: operations["projects-list"]; /** * Create a project * @description Create a project */ - post: operations["mutation.projects.create"]; + post: operations["projects-create"]; }; "/projects/{id}": { /** * Get a project by its ID * @description Get a project by its ID. */ - get: operations["query.projects.get"]; + get: operations["projects-get"]; /** * Update a project * @description Update a project */ - put: operations["mutation.projects.update"]; + put: operations["projects-update"]; /** * Delete a project * @description Delete a project */ - delete: operations["mutation.projects.delete"]; + delete: operations["projects-delete"]; }; "/projects/{id}/activity": { /** * List a project's activity * @description Fetches a list of activity items for a given project. */ - get: operations["query.projectActivity.list"]; + get: operations["projectActivity-list"]; + }; + "/projects/{id}/apps": { + /** + * List a project's apps + * @description Fetches a list of apps for a project. + */ + get: operations["projectApps-list"]; }; "/projects/{id}/collaborators": { /** * List a project's collaborators * @description Fetches a list of collaborators for a project. */ - get: operations["query.projectCollaborators.list"]; + get: operations["projectCollaborators-list"]; /** * Create a project collaborator * @description Adds a new collaborator to a project. */ - post: operations["mutation.projectCollaborators.create"]; + post: operations["projectCollaborators-create"]; }; "/projects/{id}/collaborators/{userId}": { /** * Delete a project collaborator * @description Removes a collaborator from a project. */ - delete: operations["mutation.projectCollaborators.delete"]; + delete: operations["projectCollaborators-delete"]; }; "/projects/{id}/deployments": { /** * List a project's deployments * @description Fetches a list of deployments for a project. */ - get: operations["query.projectsDeployments.list"]; + get: operations["projectDeployments-list"]; + }; + "/projects/{id}/models": { + /** + * List a project's models + * @description Fetches a list of models for a project. + */ + get: operations["projectModels-list"]; + }; + "/projects/{id}/models/{modelId}": { + /** + * Add a model to a project + * @description Adds a model to a project. + */ + post: operations["projectModels-add"]; + /** + * Remove a model from project + * @description Remove a model from project. + */ + delete: operations["projectModels-remove"]; + }; + "/projects/{id}/notebook/{notebookId}": { + /** + * Remove a notebook from a project + * @description Remove a notebook from a project. + */ + delete: operations["projectNotebooks-remove"]; + }; + "/projects/{id}/notebooks": { + /** + * List a project's notebooks + * @description Fetches a list of notebooks for a project. + */ + get: operations["projectNotebooks-list"]; + }; + "/projects/{id}/notebooks/{notebookId}": { + /** + * Add a notebook to a project + * @description Adds a notebook to a project. + */ + post: operations["projectNotebooks-add"]; }; "/projects/{id}/secrets": { /** * List a project's secrets * @description Fetches a list of secrets for a project. */ - get: operations["query.projectSecrets.list"]; + get: operations["projectSecrets-list"]; /** * Create a project secret * @description Creates a new secret for a project. */ - post: operations["mutation.projectSecrets.create"]; + post: operations["projectSecrets-create"]; }; "/projects/{id}/secrets/{name}": { /** * Get a project secret * @description Fetches a secret for a project. */ - get: operations["query.projectSecrets.getProjectSecret"]; + get: operations["projectSecrets-getProjectSecret"]; /** * Delete a project secret * @description Deletes a secret for a project. */ - delete: operations["mutation.projectSecrets.delete"]; + delete: operations["projectSecrets-delete"]; /** * Update a project secret * @description Update the value of a secret for a project. */ - patch: operations["mutation.projectSecrets.update"]; + patch: operations["projectSecrets-update"]; }; "/public-ips": { /** * List public IPs * @description Fetches a list of public IPs. */ - get: operations["query.publicIps.list"]; + get: operations["publicIps-list"]; /** * Claim a public IP * @description Claims a public IP. */ - post: operations["mutation.publicIps.claim"]; + post: operations["publicIps-claim"]; }; "/public-ips/{ip}": { /** * Assign a public IP * @description Assigns a public IP to a machine. */ - put: operations["mutation.publicIps.assign"]; + put: operations["publicIps-assign"]; /** * Release a public IP * @description Releases a public IP. */ - delete: operations["mutation.publicIps.release"]; + delete: operations["publicIps-release"]; }; "/shared-drives": { /** * List shared drives * @description Fetches a list of shared drives. */ - get: operations["query.sharedDrives.list"]; + get: operations["sharedDrives-list"]; /** * Create a shared drive * @description Creates a new shared drive for use in a private network. */ - post: operations["mutation.sharedDrives.create"]; + post: operations["sharedDrives-create"]; }; "/shared-drives/{id}": { /** * Get a shared drive * @description Fetches a single shared drive by ID. */ - get: operations["query.sharedDrives.get"]; + get: operations["sharedDrives-get"]; /** * Update a shared drive * @description Updates a single shared drive by ID. */ - put: operations["mutation.sharedDrives.update"]; + put: operations["sharedDrives-update"]; /** * Delete a shared drive * @description Deletes a single shared drive by ID. */ - delete: operations["mutation.sharedDrives.delete"]; + delete: operations["sharedDrives-delete"]; }; "/snapshots": { /** * List snapshots * @description List snapshots and filter by machine. */ - get: operations["query.snapshots.list"]; + get: operations["snapshots-list"]; /** * Create snapshot * @description Create a snapshot for a machine. */ - post: operations["mutation.snapshots.create"]; + post: operations["snapshots-create"]; }; "/snapshots/{id}": { /** * Get a snapshot * @description Fetches a single snapshot by ID. */ - get: operations["query.snapshots.get"]; + get: operations["snapshots-get"]; /** * Update a snapshot * @description Updates a single snapshot by ID. */ - put: operations["mutation.snapshots.update"]; + put: operations["snapshots-update"]; /** * Delete snapshot * @description Delete a snapshot for a machine. */ - delete: operations["mutation.snapshots.delete"]; + delete: operations["snapshots-delete"]; }; "/snapshots/{id}/restore": { /** * Restore snapshot * @description Restore a snapshot for a machine. */ - post: operations["mutation.snapshots.restore"]; + post: operations["snapshots-restore"]; }; "/startup-scripts": { /** * List startup scripts * @description Fetches a list of startup scripts. */ - get: operations["query.startupScripts.list"]; + get: operations["startupScripts-list"]; /** * Create startup script * @description Create a startup script. */ - post: operations["mutation.startupScripts.create"]; + post: operations["startupScripts-create"]; }; "/startup-scripts/{id}": { /** * Get a startup script * @description Fetches a single startup script by ID. */ - get: operations["query.startupScripts.get"]; + get: operations["startupScripts-get"]; /** * Update startup script * @description Update a startup script. */ - put: operations["mutation.startupScripts.update"]; + put: operations["startupScripts-update"]; /** * Delete startup script * @description Delete a startup script. */ - delete: operations["mutation.startupScripts.delete"]; + delete: operations["startupScripts-delete"]; }; "/startup-scripts/{id}/assign": { /** * Assign startup script to machine * @description Assign a startup script to a machine. */ - post: operations["mutation.startupScripts.assign"]; + post: operations["startupScripts-assign"]; }; "/startup-scripts/{id}/unassign": { /** * Unassign startup script from machine * @description Unassign a startup script from a machine. */ - post: operations["mutation.startupScripts.unassign"]; + post: operations["startupScripts-unassign"]; }; "/storage": { /** * List storage providers * @description List storage providers */ - get: operations["query.storageProviders.list"]; + get: operations["storageProviders-list"]; /** * Create a storage provider * @description Create a storage provider */ - post: operations["mutation.storageProviders.create"]; + post: operations["storageProviders-create"]; }; "/storage/{id}": { /** * Get a storage provider * @description Get a storage provider */ - get: operations["query.storageProviders.get"]; + get: operations["storageProviders-get"]; /** * Update a storage provider * @description Update a storage provider */ - put: operations["mutation.storageProviders.update"]; + put: operations["storageProviders-update"]; /** * Delete a storage provider * @description Delete a storage provider */ - delete: operations["mutation.storageProviders.delete"]; + delete: operations["storageProviders-delete"]; }; "/storage/utilization": { /** * Get storage utilization * @description Get a breakdown of how storage is being used by your team */ - get: operations["query.storageUtilization.getPublic"]; + get: operations["storageUtilization-getPublic"]; }; "/teams/{id}/secrets": { /** * List a team's secrets * @description Fetches a list of secrets for a team. */ - get: operations["query.teamSecrets.list"]; + get: operations["teamSecrets-list"]; /** * Create a team secret * @description Creates a new secret for a team. */ - post: operations["mutation.teamSecrets.create"]; + post: operations["teamSecrets-create"]; }; "/teams/{id}/secrets/{name}": { /** * Get a team secret * @description Fetches a secret for a team. */ - get: operations["query.teamSecrets.get"]; + get: operations["teamSecrets-get"]; /** * Delete a team secret * @description Deletes a secret for a team. */ - delete: operations["mutation.teamSecrets.delete"]; + delete: operations["teamSecrets-delete"]; /** * Update a team secret * @description Update the value of a secret for a team. */ - patch: operations["mutation.teamSecrets.update"]; + patch: operations["teamSecrets-update"]; }; "/templates": { /** * List templates * @description Fetches a list of templates. */ - get: operations["query.templates.list"]; + get: operations["templates-list"]; /** * Create template * @description Create a template for a machine. */ - post: operations["mutation.templates.create"]; + post: operations["templates-create"]; }; "/templates/{id}": { /** * Get a template * @description Fetches a single template by ID. */ - get: operations["query.templates.get"]; + get: operations["templates-get"]; /** * Update a template * @description Updates a single template by ID. */ - put: operations["mutation.templates.update"]; + put: operations["templates-update"]; /** * Delete template * @description Delete a template. */ - delete: operations["mutation.templates.delete"]; + delete: operations["templates-delete"]; }; "/workflows/{id}/runs/{runId}/logs": { /** * List workflow run logs * @description Lists logs for a given workflow run. */ - get: operations["query.workflowRunLogs.list"]; + get: operations["workflowRunLogs-list"]; }; } @@ -666,188 +718,348 @@ export interface operations { * Create an app * @description Create an app. */ - "mutation.apps.create": { + "apps-create": { readonly requestBody: { readonly content: { readonly "application/json": { /** @description The new deployment configuration. */ readonly config: - | ({ - readonly apiVersion: "v0alpha0" | "latest"; - readonly command?: readonly (string)[]; - readonly containerRegistry?: string; - /** @default true */ - readonly enabled?: boolean; - readonly env?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly healthChecks?: { - readonly liveness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; + | ( + | ({ + /** @enum {string} */ + readonly apiVersion: "v0alpha0"; + readonly command?: readonly (string)[]; + readonly containerRegistry?: string; + /** @default true */ + readonly enabled?: boolean; + readonly env?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly healthChecks?: { + readonly liveness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - readonly readiness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; + readonly readiness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - readonly startup?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; + readonly startup?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; }; - }; - readonly image: string; - readonly models?: readonly ({ - readonly id: string; - readonly path?: string; - })[]; - readonly name: string; - /** @default 80 */ - readonly port?: number; - readonly region?: string; - readonly repositories?: { - readonly dataset: string; - readonly mountPath?: string; - readonly repositories: readonly ({ - readonly name: string; - readonly password?: string; - readonly ref?: string; - readonly url: string; - readonly username?: string; + readonly image: string; + readonly models?: readonly ({ + readonly id: string; + readonly path?: string; })[]; - }; - readonly resources: { - readonly autoscaling?: { - readonly enabled?: boolean; - readonly maxReplicas: number; - readonly metrics: readonly ( - | { - /** @enum {string} */ - readonly metric: "requestDuration"; - /** @enum {string} */ - readonly summary: "average"; - readonly value: number; - } - | ({ - /** @enum {string} */ - readonly metric: "cpu" | "memory"; - /** @enum {string} */ - readonly summary: "average"; - readonly value: number; - }) - )[]; - }; - readonly instanceType: string; - /** @default 1 */ - readonly replicas?: number; - }; - }) - | ({ - /** @enum {string} */ - readonly apiVersion: "v0alpha1"; - readonly command?: readonly (string)[]; - readonly containerRegistry?: string; - /** @default true */ - readonly enabled?: boolean; - readonly env?: readonly ({ readonly name: string; - readonly value: string; - })[]; - readonly healthchecks?: { - readonly liveness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ + /** @default 80 */ + readonly port?: number; + readonly region?: string; + readonly repositories?: { + readonly dataset: string; + readonly mountPath?: string; + readonly repositories: readonly ({ readonly name: string; - readonly value: string; + readonly password?: string; + readonly ref?: string; + readonly url: string; + readonly username?: string; })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; }; - readonly readiness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; + readonly resources: { + readonly autoscaling?: { + readonly enabled?: boolean; + readonly maxReplicas: number; + readonly metrics: readonly ( + | { + /** @enum {string} */ + readonly metric: "requestDuration"; + /** @enum {string} */ + readonly summary: "average"; + readonly value: number; + } + | ({ + /** @enum {string} */ + readonly metric: "cpu" | "memory"; + /** @enum {string} */ + readonly summary: "average"; + readonly value: number; + }) + )[]; + }; + readonly instanceType: string; + /** @default 1 */ + readonly replicas?: number; }; - readonly startup?: { + }) + | ({ + /** @enum {string} */ + readonly apiVersion: "v0alpha1"; + readonly command?: readonly (string)[]; + readonly containerRegistry?: string; + /** @default true */ + readonly enabled?: boolean; + readonly env?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly healthchecks?: { + readonly liveness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly readiness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly startup?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + }; + readonly healthChecks?: { + readonly liveness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly readiness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly startup?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + }; + readonly image: string; + readonly integrations?: readonly ({ + readonly id: string; + readonly name: string; + /** @default /opt/models */ + readonly path?: string; + /** @enum {string} */ + readonly type: "model"; + } | { + readonly accessKeyId: string; + readonly endpoint?: string; + readonly name: string; + readonly path?: string; + readonly region?: string; + readonly secretAccessKey: string; + /** @enum {string} */ + readonly type: "s3"; + readonly url: string; + } | { + readonly name: string; + /** @enum {string} */ + readonly type: "volume"; + } | { + readonly name: string; + readonly path?: string; + /** @enum {string} */ + readonly type: "git-lfs"; + /** Format: uri */ + readonly url: string; + })[]; + readonly name: string; + readonly region?: string; + readonly resources: { + readonly autoscaling?: { + readonly enabled?: boolean; + readonly maxReplicas: number; + readonly metrics: readonly ( + | { + /** @enum {string} */ + readonly metric: "requestDuration"; + /** @enum {string} */ + readonly summary: "average"; + readonly value: number; + } + | ({ + /** @enum {string} */ + readonly metric: "cpu" | "memory"; + /** @enum {string} */ + readonly summary: "average"; + readonly value: number; + }) + )[]; + }; + readonly machineType: string; + readonly ports: readonly (number)[]; + /** @default 1 */ + readonly replicas?: number; + }; + }) + ) + | ({ + readonly apiVersion: "v1" | "latest"; + readonly command?: readonly (string)[]; + readonly containerRegistry?: string; + /** @default true */ + readonly enabled?: boolean; + readonly env?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly healthchecks?: { + readonly liveness?: { readonly failureThreshold?: number; readonly headers?: readonly ({ readonly name: string; @@ -857,7 +1069,7 @@ export interface operations { readonly initialDelaySeconds?: number; readonly path: string; readonly periodSeconds?: number; - readonly port: number; + readonly port?: number; readonly timeoutSeconds?: number; } | { readonly exec: { @@ -868,9 +1080,7 @@ export interface operations { readonly periodSeconds?: number; readonly timeoutSeconds?: number; }; - }; - readonly healthChecks?: { - readonly liveness?: { + readonly readiness?: { readonly failureThreshold?: number; readonly headers?: readonly ({ readonly name: string; @@ -880,7 +1090,7 @@ export interface operations { readonly initialDelaySeconds?: number; readonly path: string; readonly periodSeconds?: number; - readonly port: number; + readonly port?: number; readonly timeoutSeconds?: number; } | { readonly exec: { @@ -891,7 +1101,7 @@ export interface operations { readonly periodSeconds?: number; readonly timeoutSeconds?: number; }; - readonly readiness?: { + readonly startup?: { readonly failureThreshold?: number; readonly headers?: readonly ({ readonly name: string; @@ -901,7 +1111,7 @@ export interface operations { readonly initialDelaySeconds?: number; readonly path: string; readonly periodSeconds?: number; - readonly port: number; + readonly port?: number; readonly timeoutSeconds?: number; } | { readonly exec: { @@ -912,7 +1122,9 @@ export interface operations { readonly periodSeconds?: number; readonly timeoutSeconds?: number; }; - readonly startup?: { + }; + readonly healthChecks?: { + readonly liveness?: { readonly failureThreshold?: number; readonly headers?: readonly ({ readonly name: string; @@ -922,7 +1134,49 @@ export interface operations { readonly initialDelaySeconds?: number; readonly path: string; readonly periodSeconds?: number; - readonly port: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly readiness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly startup?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; readonly timeoutSeconds?: number; } | { readonly exec: { @@ -934,29 +1188,38 @@ export interface operations { readonly timeoutSeconds?: number; }; }; - readonly image: string; - readonly integrations?: readonly ({ - readonly name: string; - /** @enum {string} */ - readonly type: "volume"; - })[]; - readonly models?: readonly ({ - readonly id: string; - readonly path?: string; - })[]; - readonly name: string; - readonly region?: string; - readonly repositories?: { - readonly dataset: string; - readonly mountPath?: string; - readonly repositories: readonly ({ - readonly name: string; - readonly password?: string; - readonly ref?: string; - readonly url: string; - readonly username?: string; - })[]; - }; + readonly image: string; + readonly integrations?: readonly ({ + readonly id: string; + readonly name: string; + /** @default /opt/models */ + readonly path?: string; + /** @enum {string} */ + readonly type: "model"; + } | { + readonly accessKeyId: string; + readonly endpoint?: string; + readonly name: string; + readonly path?: string; + readonly region?: string; + readonly secretAccessKey: string; + /** @enum {string} */ + readonly type: "s3"; + readonly url: string; + } | { + readonly name: string; + /** @enum {string} */ + readonly type: "volume"; + } | { + readonly name: string; + readonly path?: string; + /** @enum {string} */ + readonly type: "git-lfs"; + /** Format: uri */ + readonly url: string; + })[]; + readonly name: string; + readonly region?: string; readonly resources: { readonly autoscaling?: { readonly enabled?: boolean; @@ -987,59 +1250,6 @@ export interface operations { }; }; }; - responses: { - /** @description Successful response */ - 200: { - content: { - readonly "application/json": { - /** @description The ID of the app */ - readonly id: string; - }; - }; - }; - default: components["responses"]["error"]; - }; - }; - /** - * Delete an app - * @description Deletes an app. This will delete all resources associated with the app. - */ - "mutation.apps.delete": { - parameters: { - readonly path: { - /** @description The ID of the app to delete */ - id: string; - }; - }; - responses: { - /** @description Successful response */ - 200: { - content: { - readonly "application/json": { - /** @description The ID of the app that was deleted */ - readonly id: string; - }; - }; - }; - default: components["responses"]["error"]; - }; - }; - /** - * Disable an app - * @description Disables an app that is currently enabled. This will stop the app's deployments and make it unavailable to users. - */ - "mutation.apps.disable": { - parameters: { - readonly path: { - /** @description The ID of the app to disable */ - id: string; - }; - }; - readonly requestBody: { - readonly content: { - readonly "application/json": Record; - }; - }; responses: { /** @description Successful response */ 200: { @@ -1047,8 +1257,332 @@ export interface operations { readonly "application/json": { /** @description The new deployment configuration. */ readonly config: + | ( + | ({ + /** @enum {string} */ + readonly apiVersion: "v0alpha0"; + readonly command?: readonly (string)[]; + readonly containerRegistry?: string; + /** @default true */ + readonly enabled?: boolean; + readonly env?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly healthChecks?: { + readonly liveness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly readiness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly startup?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + }; + readonly image: string; + readonly models?: readonly ({ + readonly id: string; + readonly path?: string; + })[]; + readonly name: string; + /** @default 80 */ + readonly port?: number; + readonly region?: string; + readonly repositories?: { + readonly dataset: string; + readonly mountPath?: string; + readonly repositories: readonly ({ + readonly name: string; + readonly password?: string; + readonly ref?: string; + readonly url: string; + readonly username?: string; + })[]; + }; + readonly resources: { + readonly autoscaling?: { + readonly enabled?: boolean; + readonly maxReplicas: number; + readonly metrics: readonly ( + | { + /** @enum {string} */ + readonly metric: "requestDuration"; + /** @enum {string} */ + readonly summary: "average"; + readonly value: number; + } + | ({ + /** @enum {string} */ + readonly metric: "cpu" | "memory"; + /** @enum {string} */ + readonly summary: "average"; + readonly value: number; + }) + )[]; + }; + readonly instanceType: string; + /** @default 1 */ + readonly replicas?: number; + }; + }) + | ({ + /** @enum {string} */ + readonly apiVersion: "v0alpha1"; + readonly command?: readonly (string)[]; + readonly containerRegistry?: string; + /** @default true */ + readonly enabled?: boolean; + readonly env?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly healthchecks?: { + readonly liveness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly readiness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly startup?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + }; + readonly healthChecks?: { + readonly liveness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly readiness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly startup?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + }; + readonly image: string; + readonly integrations?: readonly ({ + readonly id: string; + readonly name: string; + /** @default /opt/models */ + readonly path?: string; + /** @enum {string} */ + readonly type: "model"; + } | { + readonly accessKeyId: string; + readonly endpoint?: string; + readonly name: string; + readonly path?: string; + readonly region?: string; + readonly secretAccessKey: string; + /** @enum {string} */ + readonly type: "s3"; + readonly url: string; + } | { + readonly name: string; + /** @enum {string} */ + readonly type: "volume"; + } | { + readonly name: string; + readonly path?: string; + /** @enum {string} */ + readonly type: "git-lfs"; + /** Format: uri */ + readonly url: string; + })[]; + readonly name: string; + readonly region?: string; + readonly resources: { + readonly autoscaling?: { + readonly enabled?: boolean; + readonly maxReplicas: number; + readonly metrics: readonly ( + | { + /** @enum {string} */ + readonly metric: "requestDuration"; + /** @enum {string} */ + readonly summary: "average"; + readonly value: number; + } + | ({ + /** @enum {string} */ + readonly metric: "cpu" | "memory"; + /** @enum {string} */ + readonly summary: "average"; + readonly value: number; + }) + )[]; + }; + readonly machineType: string; + readonly ports: readonly (number)[]; + /** @default 1 */ + readonly replicas?: number; + }; + }) + ) | ({ - readonly apiVersion: "v0alpha0" | "latest"; + readonly apiVersion: "v1" | "latest"; readonly command?: readonly (string)[]; readonly containerRegistry?: string; /** @default true */ @@ -1057,7 +1591,7 @@ export interface operations { readonly name: string; readonly value: string; })[]; - readonly healthChecks?: { + readonly healthchecks?: { readonly liveness?: { readonly failureThreshold?: number; readonly headers?: readonly ({ @@ -1122,128 +1656,6 @@ export interface operations { readonly timeoutSeconds?: number; }; }; - readonly image: string; - readonly models?: readonly ({ - readonly id: string; - readonly path?: string; - })[]; - readonly name: string; - /** @default 80 */ - readonly port?: number; - readonly region?: string; - readonly repositories?: { - readonly dataset: string; - readonly mountPath?: string; - readonly repositories: readonly ({ - readonly name: string; - readonly password?: string; - readonly ref?: string; - readonly url: string; - readonly username?: string; - })[]; - }; - readonly resources: { - readonly autoscaling?: { - readonly enabled?: boolean; - readonly maxReplicas: number; - readonly metrics: readonly ( - | { - /** @enum {string} */ - readonly metric: "requestDuration"; - /** @enum {string} */ - readonly summary: "average"; - readonly value: number; - } - | ({ - /** @enum {string} */ - readonly metric: "cpu" | "memory"; - /** @enum {string} */ - readonly summary: "average"; - readonly value: number; - }) - )[]; - }; - readonly instanceType: string; - /** @default 1 */ - readonly replicas?: number; - }; - }) - | ({ - /** @enum {string} */ - readonly apiVersion: "v0alpha1"; - readonly command?: readonly (string)[]; - readonly containerRegistry?: string; - /** @default true */ - readonly enabled?: boolean; - readonly env?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly healthchecks?: { - readonly liveness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - readonly readiness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - readonly startup?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - }; readonly healthChecks?: { readonly liveness?: { readonly failureThreshold?: number; @@ -1255,7 +1667,7 @@ export interface operations { readonly initialDelaySeconds?: number; readonly path: string; readonly periodSeconds?: number; - readonly port: number; + readonly port?: number; readonly timeoutSeconds?: number; } | { readonly exec: { @@ -1276,7 +1688,7 @@ export interface operations { readonly initialDelaySeconds?: number; readonly path: string; readonly periodSeconds?: number; - readonly port: number; + readonly port?: number; readonly timeoutSeconds?: number; } | { readonly exec: { @@ -1297,7 +1709,7 @@ export interface operations { readonly initialDelaySeconds?: number; readonly path: string; readonly periodSeconds?: number; - readonly port: number; + readonly port?: number; readonly timeoutSeconds?: number; } | { readonly exec: { @@ -1311,27 +1723,36 @@ export interface operations { }; readonly image: string; readonly integrations?: readonly ({ + readonly id: string; + readonly name: string; + /** @default /opt/models */ + readonly path?: string; + /** @enum {string} */ + readonly type: "model"; + } | { + readonly accessKeyId: string; + readonly endpoint?: string; + readonly name: string; + readonly path?: string; + readonly region?: string; + readonly secretAccessKey: string; + /** @enum {string} */ + readonly type: "s3"; + readonly url: string; + } | { readonly name: string; /** @enum {string} */ readonly type: "volume"; - })[]; - readonly models?: readonly ({ - readonly id: string; + } | { + readonly name: string; readonly path?: string; + /** @enum {string} */ + readonly type: "git-lfs"; + /** Format: uri */ + readonly url: string; })[]; readonly name: string; readonly region?: string; - readonly repositories?: { - readonly dataset: string; - readonly mountPath?: string; - readonly repositories: readonly ({ - readonly name: string; - readonly password?: string; - readonly ref?: string; - readonly url: string; - readonly username?: string; - })[]; - }; readonly resources: { readonly autoscaling?: { readonly enabled?: boolean; @@ -1368,21 +1789,16 @@ export interface operations { }; }; /** - * Enable an app - * @description Enables an app that has been previously disabled. This will start the app and make it available to users. + * Get an app + * @description Fetches an app. */ - "mutation.apps.enable": { + "apps-get": { parameters: { readonly path: { - /** @description The ID of the app to enable */ + /** @description The ID of the app to fetch */ id: string; }; }; - readonly requestBody: { - readonly content: { - readonly "application/json": Record; - }; - }; responses: { /** @description Successful response */ 200: { @@ -1390,8 +1806,332 @@ export interface operations { readonly "application/json": { /** @description The new deployment configuration. */ readonly config: + | ( + | ({ + /** @enum {string} */ + readonly apiVersion: "v0alpha0"; + readonly command?: readonly (string)[]; + readonly containerRegistry?: string; + /** @default true */ + readonly enabled?: boolean; + readonly env?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly healthChecks?: { + readonly liveness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly readiness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly startup?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + }; + readonly image: string; + readonly models?: readonly ({ + readonly id: string; + readonly path?: string; + })[]; + readonly name: string; + /** @default 80 */ + readonly port?: number; + readonly region?: string; + readonly repositories?: { + readonly dataset: string; + readonly mountPath?: string; + readonly repositories: readonly ({ + readonly name: string; + readonly password?: string; + readonly ref?: string; + readonly url: string; + readonly username?: string; + })[]; + }; + readonly resources: { + readonly autoscaling?: { + readonly enabled?: boolean; + readonly maxReplicas: number; + readonly metrics: readonly ( + | { + /** @enum {string} */ + readonly metric: "requestDuration"; + /** @enum {string} */ + readonly summary: "average"; + readonly value: number; + } + | ({ + /** @enum {string} */ + readonly metric: "cpu" | "memory"; + /** @enum {string} */ + readonly summary: "average"; + readonly value: number; + }) + )[]; + }; + readonly instanceType: string; + /** @default 1 */ + readonly replicas?: number; + }; + }) + | ({ + /** @enum {string} */ + readonly apiVersion: "v0alpha1"; + readonly command?: readonly (string)[]; + readonly containerRegistry?: string; + /** @default true */ + readonly enabled?: boolean; + readonly env?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly healthchecks?: { + readonly liveness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly readiness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly startup?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + }; + readonly healthChecks?: { + readonly liveness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly readiness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly startup?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + }; + readonly image: string; + readonly integrations?: readonly ({ + readonly id: string; + readonly name: string; + /** @default /opt/models */ + readonly path?: string; + /** @enum {string} */ + readonly type: "model"; + } | { + readonly accessKeyId: string; + readonly endpoint?: string; + readonly name: string; + readonly path?: string; + readonly region?: string; + readonly secretAccessKey: string; + /** @enum {string} */ + readonly type: "s3"; + readonly url: string; + } | { + readonly name: string; + /** @enum {string} */ + readonly type: "volume"; + } | { + readonly name: string; + readonly path?: string; + /** @enum {string} */ + readonly type: "git-lfs"; + /** Format: uri */ + readonly url: string; + })[]; + readonly name: string; + readonly region?: string; + readonly resources: { + readonly autoscaling?: { + readonly enabled?: boolean; + readonly maxReplicas: number; + readonly metrics: readonly ( + | { + /** @enum {string} */ + readonly metric: "requestDuration"; + /** @enum {string} */ + readonly summary: "average"; + readonly value: number; + } + | ({ + /** @enum {string} */ + readonly metric: "cpu" | "memory"; + /** @enum {string} */ + readonly summary: "average"; + readonly value: number; + }) + )[]; + }; + readonly machineType: string; + readonly ports: readonly (number)[]; + /** @default 1 */ + readonly replicas?: number; + }; + }) + ) | ({ - readonly apiVersion: "v0alpha0" | "latest"; + readonly apiVersion: "v1" | "latest"; readonly command?: readonly (string)[]; readonly containerRegistry?: string; /** @default true */ @@ -1400,7 +2140,7 @@ export interface operations { readonly name: string; readonly value: string; })[]; - readonly healthChecks?: { + readonly healthchecks?: { readonly liveness?: { readonly failureThreshold?: number; readonly headers?: readonly ({ @@ -1465,128 +2205,6 @@ export interface operations { readonly timeoutSeconds?: number; }; }; - readonly image: string; - readonly models?: readonly ({ - readonly id: string; - readonly path?: string; - })[]; - readonly name: string; - /** @default 80 */ - readonly port?: number; - readonly region?: string; - readonly repositories?: { - readonly dataset: string; - readonly mountPath?: string; - readonly repositories: readonly ({ - readonly name: string; - readonly password?: string; - readonly ref?: string; - readonly url: string; - readonly username?: string; - })[]; - }; - readonly resources: { - readonly autoscaling?: { - readonly enabled?: boolean; - readonly maxReplicas: number; - readonly metrics: readonly ( - | { - /** @enum {string} */ - readonly metric: "requestDuration"; - /** @enum {string} */ - readonly summary: "average"; - readonly value: number; - } - | ({ - /** @enum {string} */ - readonly metric: "cpu" | "memory"; - /** @enum {string} */ - readonly summary: "average"; - readonly value: number; - }) - )[]; - }; - readonly instanceType: string; - /** @default 1 */ - readonly replicas?: number; - }; - }) - | ({ - /** @enum {string} */ - readonly apiVersion: "v0alpha1"; - readonly command?: readonly (string)[]; - readonly containerRegistry?: string; - /** @default true */ - readonly enabled?: boolean; - readonly env?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly healthchecks?: { - readonly liveness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - readonly readiness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - readonly startup?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - }; readonly healthChecks?: { readonly liveness?: { readonly failureThreshold?: number; @@ -1598,7 +2216,7 @@ export interface operations { readonly initialDelaySeconds?: number; readonly path: string; readonly periodSeconds?: number; - readonly port: number; + readonly port?: number; readonly timeoutSeconds?: number; } | { readonly exec: { @@ -1619,7 +2237,7 @@ export interface operations { readonly initialDelaySeconds?: number; readonly path: string; readonly periodSeconds?: number; - readonly port: number; + readonly port?: number; readonly timeoutSeconds?: number; } | { readonly exec: { @@ -1640,7 +2258,7 @@ export interface operations { readonly initialDelaySeconds?: number; readonly path: string; readonly periodSeconds?: number; - readonly port: number; + readonly port?: number; readonly timeoutSeconds?: number; } | { readonly exec: { @@ -1654,27 +2272,36 @@ export interface operations { }; readonly image: string; readonly integrations?: readonly ({ + readonly id: string; + readonly name: string; + /** @default /opt/models */ + readonly path?: string; + /** @enum {string} */ + readonly type: "model"; + } | { + readonly accessKeyId: string; + readonly endpoint?: string; + readonly name: string; + readonly path?: string; + readonly region?: string; + readonly secretAccessKey: string; + /** @enum {string} */ + readonly type: "s3"; + readonly url: string; + } | { readonly name: string; /** @enum {string} */ readonly type: "volume"; - })[]; - readonly models?: readonly ({ - readonly id: string; + } | { + readonly name: string; readonly path?: string; + /** @enum {string} */ + readonly type: "git-lfs"; + /** Format: uri */ + readonly url: string; })[]; readonly name: string; readonly region?: string; - readonly repositories?: { - readonly dataset: string; - readonly mountPath?: string; - readonly repositories: readonly ({ - readonly name: string; - readonly password?: string; - readonly ref?: string; - readonly url: string; - readonly username?: string; - })[]; - }; readonly resources: { readonly autoscaling?: { readonly enabled?: boolean; @@ -1711,33 +2338,23 @@ export interface operations { }; }; /** - * Update an app's name - * @description Change the name of an app + * Delete an app + * @description Deletes an app. This will delete all resources associated with the app. */ - "mutation.apps.updateName": { + "apps-delete": { parameters: { readonly path: { - /** @description The ID of the app to update */ + /** @description The ID of the app to delete */ id: string; }; }; - readonly requestBody: { - readonly content: { - readonly "application/json": { - /** @description The new name of the app */ - readonly name: string; - }; - }; - }; responses: { /** @description Successful response */ 200: { content: { readonly "application/json": { - /** @description The ID of the app */ + /** @description The ID of the app that was deleted */ readonly id: string; - /** @description The name of the app */ - readonly name: string; }; }; }; @@ -1745,275 +2362,548 @@ export interface operations { }; }; /** - * Get the current session - * @description Get the current session. If a user is not logged in, this will be null. Otherwise, it will contain the current team and user. + * Disable an app + * @description Disables an app that is currently enabled. This will stop the app's deployments and make it unavailable to users. */ - "query.auth.session": { + "apps-disable": { + parameters: { + readonly path: { + /** @description The ID of the app to disable */ + id: string; + }; + }; responses: { /** @description Successful response */ 200: { content: { - readonly "application/json": - | ({ - readonly team: { - /** @description An internal, numeric ID for the team */ - readonly analyticsId: number; - /** @description A unique ID for the team */ - readonly id: string; - /** @description Whether the team is private or not */ - readonly isPrivate: boolean; - /** @description The maximum number of machines */ - readonly maxMachines: number; - /** @description The namespace for the team */ - readonly namespace: string; - }; - readonly user: { - /** @description An internal, numeric ID for the user */ - readonly analyticsId: number; - /** - * Format: date-time - * @description The date the account was confirmed - */ - readonly dtConfirmed: Date; - /** - * Format: date-time - * @description The date the user was created - */ - readonly dtCreated: Date; - /** @description The user's email address */ - readonly email: string; - /** @description The user's first name */ - readonly firstName: string | null; - /** @description A unique ID for the user */ - readonly id: string; - /** @description Whether the user has a password set */ - readonly isPasswordAuthEnabled: boolean; - /** @description Whether the user's phone number has been verified */ - readonly isPhoneVerified: boolean; - /** @description Whether the user has a QR code based MFA confirmed */ - readonly isQrCodeBasedMfaConfirmed: boolean; - /** @description Whether the user has a QR code based MFA enabled */ - readonly isQrCodeBasedMfaEnabled: boolean; - /** @description The user's last name */ - readonly lastName: string | null; - /** @description Metadata about the user */ - readonly metadata: { - /** - * @description Core survey question-answer pairs - * @default null - */ - readonly coreSurvey?: - | ({ - [key: string]: string | undefined; - }) - | null; - /** - * @description Gradient survey question-answer pairs - * @default null - */ - readonly gradientSurvey?: - | ({ - [key: string]: string | undefined; - }) - | null; - /** - * @description Whether the user has accepted the Graphcore terms of service - * @default false - */ - readonly graphcoreTermsAccepted?: boolean; - /** - * @description Tags for the user - * @default null - */ - readonly tags?: string | null; - }; - /** @description The teams this user is a member of */ - readonly teamMemberships: readonly ({ - /** @description Whether the user is an admin of the team */ - readonly isAdmin: boolean; - /** @description Whether the user is the owner of the team */ - readonly isOwner: boolean; - /** @description The team the user is a member of */ - readonly team: { - /** - * Format: date-time - * @description The date the team was created - */ - readonly dtCreated: Date; - /** @description The ID of the team */ - readonly id: string; - /** @description Whether the team is the user's team */ - readonly isUserTeam: boolean; - /** @description The name of the team */ - readonly name: string; - /** @description The namespace of the team */ - readonly namespace: string; - /** - * @description The URL of the team's profile image. - * @default null - */ - readonly publicProfileImageUrl?: string | null; + readonly "application/json": { + /** @description The new deployment configuration. */ + readonly config: + | ( + | ({ + /** @enum {string} */ + readonly apiVersion: "v0alpha0"; + readonly command?: readonly (string)[]; + readonly containerRegistry?: string; + /** @default true */ + readonly enabled?: boolean; + readonly env?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly healthChecks?: { + readonly liveness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly readiness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly startup?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + }; + readonly image: string; + readonly models?: readonly ({ + readonly id: string; + readonly path?: string; + })[]; + readonly name: string; + /** @default 80 */ + readonly port?: number; + readonly region?: string; + readonly repositories?: { + readonly dataset: string; + readonly mountPath?: string; + readonly repositories: readonly ({ + readonly name: string; + readonly password?: string; + readonly ref?: string; + readonly url: string; + readonly username?: string; + })[]; + }; + readonly resources: { + readonly autoscaling?: { + readonly enabled?: boolean; + readonly maxReplicas: number; + readonly metrics: readonly ( + | { + /** @enum {string} */ + readonly metric: "requestDuration"; + /** @enum {string} */ + readonly summary: "average"; + readonly value: number; + } + | ({ + /** @enum {string} */ + readonly metric: "cpu" | "memory"; + /** @enum {string} */ + readonly summary: "average"; + readonly value: number; + }) + )[]; + }; + readonly instanceType: string; + /** @default 1 */ + readonly replicas?: number; + }; + }) + | ({ + /** @enum {string} */ + readonly apiVersion: "v0alpha1"; + readonly command?: readonly (string)[]; + readonly containerRegistry?: string; + /** @default true */ + readonly enabled?: boolean; + readonly env?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly healthchecks?: { + readonly liveness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly readiness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly startup?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + }; + readonly healthChecks?: { + readonly liveness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly readiness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly startup?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + }; + readonly image: string; + readonly integrations?: readonly ({ + readonly id: string; + readonly name: string; + /** @default /opt/models */ + readonly path?: string; + /** @enum {string} */ + readonly type: "model"; + } | { + readonly accessKeyId: string; + readonly endpoint?: string; + readonly name: string; + readonly path?: string; + readonly region?: string; + readonly secretAccessKey: string; + /** @enum {string} */ + readonly type: "s3"; + readonly url: string; + } | { + readonly name: string; + /** @enum {string} */ + readonly type: "volume"; + } | { + readonly name: string; + readonly path?: string; + /** @enum {string} */ + readonly type: "git-lfs"; + /** Format: uri */ + readonly url: string; + })[]; + readonly name: string; + readonly region?: string; + readonly resources: { + readonly autoscaling?: { + readonly enabled?: boolean; + readonly maxReplicas: number; + readonly metrics: readonly ( + | { + /** @enum {string} */ + readonly metric: "requestDuration"; + /** @enum {string} */ + readonly summary: "average"; + readonly value: number; + } + | ({ + /** @enum {string} */ + readonly metric: "cpu" | "memory"; + /** @enum {string} */ + readonly summary: "average"; + readonly value: number; + }) + )[]; + }; + readonly machineType: string; + readonly ports: readonly (number)[]; + /** @default 1 */ + readonly replicas?: number; }; + }) + ) + | ({ + readonly apiVersion: "v1" | "latest"; + readonly command?: readonly (string)[]; + readonly containerRegistry?: string; + /** @default true */ + readonly enabled?: boolean; + readonly env?: readonly ({ + readonly name: string; + readonly value: string; })[]; - }; - }) - | null; - }; - }; - default: components["responses"]["error"]; - }; - }; - /** - * List autoscaling groups - * @description List autoscaling groups and filter by machine type. - */ - "query.autoscalingGroups.list": { - parameters: { - readonly query: { - /** @description Fetch the next page of results after this cursor. */ - after?: string; - /** @description The number of items to fetch after this page. */ - limit?: number; - /** @description Order results by one of these fields. */ - orderBy?: "dtCreated" | "name"; - /** @description The order to sort the results by. */ - order?: "asc" | "desc"; - /** @description Cluster the autoscaling group is for. */ - clusterId?: string; - /** @description Machine type used for machiens in the autoscaling group. */ - machineType?: string; - }; - }; - responses: { - /** @description Successful response */ - 200: { - content: { - readonly "application/json": { - /** @description Whether there are more pages of results available. */ - readonly hasMore: boolean; - /** @description The items on this page. */ - readonly items: readonly ({ - /** @description The ID of the cluster the autoscaling group is for. */ - readonly clusterId: string; - /** @description The current number of machines in the autoscaling group. */ - readonly current: number; - /** - * Format: date-time - * @description The date the autoscaling group was created. - */ - readonly dtCreated: Date; - /** - * Format: date-time - * @description The date the autoscaling group was deleted. - */ - readonly dtDeleted: Date; - /** - * Format: date-time - * @description The date the autoscaling group was last modified. - */ - readonly dtModified: Date; - /** @description The ID of the autoscaling group. */ - readonly id: string; - /** @description The ID of the user who last edited the autoscaling group. */ - readonly lastEditedByUserId: string | null; - /** @description The machine type used by machines in the autoscaling group. */ - readonly machineType: string; - /** @description The maximum number of machines in the autoscaling group. */ - readonly max: number; - /** @description The minimum number of machines in the autoscaling group. */ - readonly min: number; - /** @description The name of the autoscaling group. */ - readonly name: string; - /** @description The ID of the network used by machines in the autoscaling group. */ - readonly networkId: string; - /** @description The timeout for provisioning machines in the autoscaling group, in minutes. */ - readonly provisioningTimeout: number | null; - /** @description The ID of the startup script used by machines in the autoscaling group. */ - readonly startupScriptId: string | null; - /** @description The ID of the template used by machines in the autoscaling group. */ - readonly templateId: string; - })[]; - /** @description The cursor required to fetch the next page of results. i.e. `?after=nextPage`. This is `null` when there is no next page. */ - readonly nextPage?: string; - }; - }; - }; - default: components["responses"]["error"]; - }; - }; - /** - * Create an autoscaling group - * @description Create an autoscaling group. - */ - "mutation.autoscalingGroups.create": { - readonly requestBody: { - readonly content: { - readonly "application/json": { - /** @description The cluster the autoscaling group is for. */ - readonly clusterId: string; - /** @description The machine type used for machines in the autoscaling group. */ - readonly machineType: string; - /** @description The maximum number of machines in the autoscaling group. */ - readonly max: number; - /** @description The minimum number of machines in the autoscaling group. */ - readonly min: number; - /** @description The name of the autoscaling group. */ - readonly name: string; - /** @description The network the autoscaling group is in. */ - readonly networkId: string; - /** @description The timeout for provisioning machines in the autoscaling group. */ - readonly provisioningTimeout?: number; - /** @description The startup script used for machines in the autoscaling group. */ - readonly startupScriptId?: string; - /** @description The template used for machines in the autoscaling group. */ - readonly templateId: string; - }; - }; - }; - responses: { - /** @description Successful response */ - 200: { - content: { - readonly "application/json": { - /** @description The ID of the cluster the autoscaling group is for. */ - readonly clusterId: string; - /** @description The current number of machines in the autoscaling group. */ - readonly current: number; - /** - * Format: date-time - * @description The date the autoscaling group was created. - */ - readonly dtCreated: Date; - /** - * Format: date-time - * @description The date the autoscaling group was deleted. - */ - readonly dtDeleted: Date; - /** - * Format: date-time - * @description The date the autoscaling group was last modified. - */ - readonly dtModified: Date; - /** @description The ID of the autoscaling group. */ + readonly healthchecks?: { + readonly liveness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly readiness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly startup?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + }; + readonly healthChecks?: { + readonly liveness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly readiness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly startup?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + }; + readonly image: string; + readonly integrations?: readonly ({ + readonly id: string; + readonly name: string; + /** @default /opt/models */ + readonly path?: string; + /** @enum {string} */ + readonly type: "model"; + } | { + readonly accessKeyId: string; + readonly endpoint?: string; + readonly name: string; + readonly path?: string; + readonly region?: string; + readonly secretAccessKey: string; + /** @enum {string} */ + readonly type: "s3"; + readonly url: string; + } | { + readonly name: string; + /** @enum {string} */ + readonly type: "volume"; + } | { + readonly name: string; + readonly path?: string; + /** @enum {string} */ + readonly type: "git-lfs"; + /** Format: uri */ + readonly url: string; + })[]; + readonly name: string; + readonly region?: string; + readonly resources: { + readonly autoscaling?: { + readonly enabled?: boolean; + readonly maxReplicas: number; + readonly metrics: readonly ( + | { + /** @enum {string} */ + readonly metric: "requestDuration"; + /** @enum {string} */ + readonly summary: "average"; + readonly value: number; + } + | ({ + /** @enum {string} */ + readonly metric: "cpu" | "memory"; + /** @enum {string} */ + readonly summary: "average"; + readonly value: number; + }) + )[]; + }; + readonly machineType: string; + readonly ports: readonly (number)[]; + /** @default 1 */ + readonly replicas?: number; + }; + }); + /** @description The ID of the app */ readonly id: string; - /** @description The ID of the user who last edited the autoscaling group. */ - readonly lastEditedByUserId: string | null; - /** @description The machine type used by machines in the autoscaling group. */ - readonly machineType: string; - /** @description The maximum number of machines in the autoscaling group. */ - readonly max: number; - /** @description The minimum number of machines in the autoscaling group. */ - readonly min: number; - /** @description The name of the autoscaling group. */ - readonly name: string; - /** @description The ID of the network used by machines in the autoscaling group. */ - readonly networkId: string; - /** @description The timeout for provisioning machines in the autoscaling group, in minutes. */ - readonly provisioningTimeout: number | null; - /** @description The ID of the startup script used by machines in the autoscaling group. */ - readonly startupScriptId: string | null; - /** @description The ID of the template used by machines in the autoscaling group. */ - readonly templateId: string; }; }; }; @@ -2021,13 +2911,13 @@ export interface operations { }; }; /** - * Get an autoscaling group - * @description Fetches a single autoscaling group by id. + * Enable an app + * @description Enables an app that has been previously disabled. This will start the app and make it available to users. */ - "query.autoscalingGroups.get": { + "apps-enable": { parameters: { readonly path: { - /** @description The ID of the autoscaling group to fetch. */ + /** @description The ID of the app to enable */ id: string; }; }; @@ -2036,56 +2926,929 @@ export interface operations { 200: { content: { readonly "application/json": { - /** @description The ID of the cluster the autoscaling group is for. */ - readonly clusterId: string; - /** @description The current number of machines in the autoscaling group. */ - readonly current: number; - /** - * Format: date-time - * @description The date the autoscaling group was created. - */ - readonly dtCreated: Date; - /** - * Format: date-time - * @description The date the autoscaling group was deleted. - */ - readonly dtDeleted: Date; - /** - * Format: date-time - * @description The date the autoscaling group was last modified. - */ - readonly dtModified: Date; - /** @description The ID of the autoscaling group. */ - readonly id: string; - /** @description The ID of the user who last edited the autoscaling group. */ - readonly lastEditedByUserId: string | null; - /** @description The machine type used by machines in the autoscaling group. */ - readonly machineType: string; - /** @description The maximum number of machines in the autoscaling group. */ - readonly max: number; - /** @description The minimum number of machines in the autoscaling group. */ - readonly min: number; - /** @description The name of the autoscaling group. */ - readonly name: string; - /** @description The ID of the network used by machines in the autoscaling group. */ - readonly networkId: string; - /** @description The timeout for provisioning machines in the autoscaling group, in minutes. */ - readonly provisioningTimeout: number | null; - /** @description The ID of the startup script used by machines in the autoscaling group. */ - readonly startupScriptId: string | null; - /** @description The ID of the template used by machines in the autoscaling group. */ - readonly templateId: string; - }; - }; - }; - default: components["responses"]["error"]; - }; + /** @description The new deployment configuration. */ + readonly config: + | ( + | ({ + /** @enum {string} */ + readonly apiVersion: "v0alpha0"; + readonly command?: readonly (string)[]; + readonly containerRegistry?: string; + /** @default true */ + readonly enabled?: boolean; + readonly env?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly healthChecks?: { + readonly liveness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly readiness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly startup?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + }; + readonly image: string; + readonly models?: readonly ({ + readonly id: string; + readonly path?: string; + })[]; + readonly name: string; + /** @default 80 */ + readonly port?: number; + readonly region?: string; + readonly repositories?: { + readonly dataset: string; + readonly mountPath?: string; + readonly repositories: readonly ({ + readonly name: string; + readonly password?: string; + readonly ref?: string; + readonly url: string; + readonly username?: string; + })[]; + }; + readonly resources: { + readonly autoscaling?: { + readonly enabled?: boolean; + readonly maxReplicas: number; + readonly metrics: readonly ( + | { + /** @enum {string} */ + readonly metric: "requestDuration"; + /** @enum {string} */ + readonly summary: "average"; + readonly value: number; + } + | ({ + /** @enum {string} */ + readonly metric: "cpu" | "memory"; + /** @enum {string} */ + readonly summary: "average"; + readonly value: number; + }) + )[]; + }; + readonly instanceType: string; + /** @default 1 */ + readonly replicas?: number; + }; + }) + | ({ + /** @enum {string} */ + readonly apiVersion: "v0alpha1"; + readonly command?: readonly (string)[]; + readonly containerRegistry?: string; + /** @default true */ + readonly enabled?: boolean; + readonly env?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly healthchecks?: { + readonly liveness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly readiness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly startup?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + }; + readonly healthChecks?: { + readonly liveness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly readiness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly startup?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + }; + readonly image: string; + readonly integrations?: readonly ({ + readonly id: string; + readonly name: string; + /** @default /opt/models */ + readonly path?: string; + /** @enum {string} */ + readonly type: "model"; + } | { + readonly accessKeyId: string; + readonly endpoint?: string; + readonly name: string; + readonly path?: string; + readonly region?: string; + readonly secretAccessKey: string; + /** @enum {string} */ + readonly type: "s3"; + readonly url: string; + } | { + readonly name: string; + /** @enum {string} */ + readonly type: "volume"; + } | { + readonly name: string; + readonly path?: string; + /** @enum {string} */ + readonly type: "git-lfs"; + /** Format: uri */ + readonly url: string; + })[]; + readonly name: string; + readonly region?: string; + readonly resources: { + readonly autoscaling?: { + readonly enabled?: boolean; + readonly maxReplicas: number; + readonly metrics: readonly ( + | { + /** @enum {string} */ + readonly metric: "requestDuration"; + /** @enum {string} */ + readonly summary: "average"; + readonly value: number; + } + | ({ + /** @enum {string} */ + readonly metric: "cpu" | "memory"; + /** @enum {string} */ + readonly summary: "average"; + readonly value: number; + }) + )[]; + }; + readonly machineType: string; + readonly ports: readonly (number)[]; + /** @default 1 */ + readonly replicas?: number; + }; + }) + ) + | ({ + readonly apiVersion: "v1" | "latest"; + readonly command?: readonly (string)[]; + readonly containerRegistry?: string; + /** @default true */ + readonly enabled?: boolean; + readonly env?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly healthchecks?: { + readonly liveness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly readiness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly startup?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + }; + readonly healthChecks?: { + readonly liveness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly readiness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly startup?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + }; + readonly image: string; + readonly integrations?: readonly ({ + readonly id: string; + readonly name: string; + /** @default /opt/models */ + readonly path?: string; + /** @enum {string} */ + readonly type: "model"; + } | { + readonly accessKeyId: string; + readonly endpoint?: string; + readonly name: string; + readonly path?: string; + readonly region?: string; + readonly secretAccessKey: string; + /** @enum {string} */ + readonly type: "s3"; + readonly url: string; + } | { + readonly name: string; + /** @enum {string} */ + readonly type: "volume"; + } | { + readonly name: string; + readonly path?: string; + /** @enum {string} */ + readonly type: "git-lfs"; + /** Format: uri */ + readonly url: string; + })[]; + readonly name: string; + readonly region?: string; + readonly resources: { + readonly autoscaling?: { + readonly enabled?: boolean; + readonly maxReplicas: number; + readonly metrics: readonly ( + | { + /** @enum {string} */ + readonly metric: "requestDuration"; + /** @enum {string} */ + readonly summary: "average"; + readonly value: number; + } + | ({ + /** @enum {string} */ + readonly metric: "cpu" | "memory"; + /** @enum {string} */ + readonly summary: "average"; + readonly value: number; + }) + )[]; + }; + readonly machineType: string; + readonly ports: readonly (number)[]; + /** @default 1 */ + readonly replicas?: number; + }; + }); + /** @description The ID of the app */ + readonly id: string; + }; + }; + }; + default: components["responses"]["error"]; + }; + }; + /** + * Update an app's name + * @description Change the name of an app + */ + "apps-updateName": { + parameters: { + readonly path: { + /** @description The ID of the app to update */ + id: string; + }; + }; + readonly requestBody: { + readonly content: { + readonly "application/json": { + /** @description The new name of the app */ + readonly name: string; + }; + }; + }; + responses: { + /** @description Successful response */ + 200: { + content: { + readonly "application/json": { + /** @description The ID of the app */ + readonly id: string; + /** @description The name of the app */ + readonly name: string; + }; + }; + }; + default: components["responses"]["error"]; + }; + }; + /** + * Get the current session + * @description Get the current session. If a user is not logged in, this will be null. Otherwise, it will contain the current team and user. + */ + "auth-session": { + responses: { + /** @description Successful response */ + 200: { + content: { + readonly "application/json": + | ({ + readonly team: { + /** @description An internal, numeric ID for the team */ + readonly analyticsId: number; + /** @description A unique ID for the team */ + readonly id: string; + /** @description Whether the team is private or not */ + readonly isPrivate: boolean; + /** @description The maximum number of machines */ + readonly maxMachines: number; + /** @description The namespace for the team */ + readonly namespace: string; + }; + readonly user: { + /** @description An internal, numeric ID for the user */ + readonly analyticsId: number; + /** + * Format: date-time + * @description The date the account was confirmed + */ + readonly dtConfirmed: Date; + /** + * Format: date-time + * @description The date the user was created + */ + readonly dtCreated: Date; + /** @description The user's email address */ + readonly email: string; + /** @description The user's first name */ + readonly firstName: string | null; + /** @description A unique ID for the user */ + readonly id: string; + /** @description Whether the user has a password set */ + readonly isPasswordAuthEnabled: boolean; + /** @description Whether the user's phone number has been verified */ + readonly isPhoneVerified: boolean; + /** @description Whether the user has a QR code based MFA confirmed */ + readonly isQrCodeBasedMfaConfirmed: boolean; + /** @description Whether the user has a QR code based MFA enabled */ + readonly isQrCodeBasedMfaEnabled: boolean; + /** @description The user's last name */ + readonly lastName: string | null; + /** @description Metadata about the user */ + readonly metadata: { + /** + * @description Core survey question-answer pairs + * @default null + */ + readonly coreSurvey?: + | ({ + [key: string]: string | undefined; + }) + | null; + /** + * @description Gradient survey question-answer pairs + * @default null + */ + readonly gradientSurvey?: + | ({ + [key: string]: string | undefined; + }) + | null; + /** + * @description Whether the user has accepted the Graphcore terms of service + * @default false + */ + readonly graphcoreTermsAccepted?: boolean; + /** + * @description Tags for the user + * @default null + */ + readonly tags?: string | null; + }; + /** + * @description The user's preferences + * @default null + */ + readonly preferences?: + | ({ + readonly defaultProduct?: string | null; + readonly defaultTeamId?: string | null; + readonly disableHotkeys?: boolean | null; + readonly fontSize?: number | null; + /** @enum {string|null} */ + readonly theme?: "light" | "dark" | null; + }) + | null; + /** @description The teams this user is a member of */ + readonly teamMemberships: readonly ({ + /** @description Whether the user is an admin of the team */ + readonly isAdmin: boolean; + /** @description Whether the user is the owner of the team */ + readonly isOwner: boolean; + /** @description The team the user is a member of */ + readonly team: { + /** + * Format: date-time + * @description The date the team was created + */ + readonly dtCreated: Date; + /** @description The ID of the team */ + readonly id: string; + /** @description Whether the team is the user's team */ + readonly isUserTeam: boolean; + /** @description The name of the team */ + readonly name: string; + /** @description The namespace of the team */ + readonly namespace: string; + /** + * @description The URL of the team's profile image. + * @default null + */ + readonly publicProfileImageUrl?: string | null; + }; + })[]; + }; + }) + | null; + }; + }; + default: components["responses"]["error"]; + }; + }; + /** + * List autoscaling groups + * @description List autoscaling groups and filter by machine type. + */ + "autoscalingGroups-list": { + parameters: { + readonly query: { + /** @description Fetch the next page of results after this cursor. */ + after?: string; + /** @description The number of items to fetch after this page. */ + limit?: number; + /** @description Order results by one of these fields. */ + orderBy?: "dtCreated" | "name"; + /** @description The order to sort the results by. */ + order?: "asc" | "desc"; + /** @description Cluster the autoscaling group is for. */ + clusterId?: string; + /** @description Machine type used for machiens in the autoscaling group. */ + machineType?: string; + }; + }; + responses: { + /** @description Successful response */ + 200: { + content: { + readonly "application/json": { + /** @description Whether there are more pages of results available. */ + readonly hasMore: boolean; + /** @description The items on this page. */ + readonly items: readonly ({ + /** @description The ID of the cluster the autoscaling group is for. */ + readonly clusterId: string; + /** @description The current number of machines in the autoscaling group. */ + readonly current: number; + /** + * Format: date-time + * @description The date the autoscaling group was created. + */ + readonly dtCreated: Date; + /** + * Format: date-time + * @description The date the autoscaling group was deleted. + */ + readonly dtDeleted: Date; + /** + * Format: date-time + * @description The date the autoscaling group was last modified. + */ + readonly dtModified: Date; + /** @description The ID of the autoscaling group. */ + readonly id: string; + /** @description The ID of the user who last edited the autoscaling group. */ + readonly lastEditedByUserId: string | null; + /** @description The machine type used by machines in the autoscaling group. */ + readonly machineType: string; + /** @description The maximum number of machines in the autoscaling group. */ + readonly max: number; + /** @description The minimum number of machines in the autoscaling group. */ + readonly min: number; + /** @description The name of the autoscaling group. */ + readonly name: string; + /** @description The ID of the network used by machines in the autoscaling group. */ + readonly networkId: string; + /** @description The timeout for provisioning machines in the autoscaling group, in minutes. */ + readonly provisioningTimeout: number | null; + /** @description The ID of the startup script used by machines in the autoscaling group. */ + readonly startupScriptId: string | null; + /** @description The ID of the template used by machines in the autoscaling group. */ + readonly templateId: string; + })[]; + /** @description The cursor required to fetch the next page of results. i.e. `?after=nextPage`. This is `null` when there is no next page. */ + readonly nextPage?: string; + }; + }; + }; + default: components["responses"]["error"]; + }; + }; + /** + * Create an autoscaling group + * @description Create an autoscaling group. + */ + "autoscalingGroups-create": { + readonly requestBody: { + readonly content: { + readonly "application/json": { + /** @description The cluster the autoscaling group is for. */ + readonly clusterId: string; + /** @description The machine type used for machines in the autoscaling group. */ + readonly machineType: string; + /** @description The maximum number of machines in the autoscaling group. */ + readonly max: number; + /** @description The minimum number of machines in the autoscaling group. */ + readonly min: number; + /** @description The name of the autoscaling group. */ + readonly name: string; + /** @description The network the autoscaling group is in. */ + readonly networkId: string; + /** @description The timeout for provisioning machines in the autoscaling group. */ + readonly provisioningTimeout?: number; + /** @description The startup script used for machines in the autoscaling group. */ + readonly startupScriptId?: string; + /** @description The template used for machines in the autoscaling group. */ + readonly templateId: string; + }; + }; + }; + responses: { + /** @description Successful response */ + 200: { + content: { + readonly "application/json": { + /** @description The ID of the cluster the autoscaling group is for. */ + readonly clusterId: string; + /** @description The current number of machines in the autoscaling group. */ + readonly current: number; + /** + * Format: date-time + * @description The date the autoscaling group was created. + */ + readonly dtCreated: Date; + /** + * Format: date-time + * @description The date the autoscaling group was deleted. + */ + readonly dtDeleted: Date; + /** + * Format: date-time + * @description The date the autoscaling group was last modified. + */ + readonly dtModified: Date; + /** @description The ID of the autoscaling group. */ + readonly id: string; + /** @description The ID of the user who last edited the autoscaling group. */ + readonly lastEditedByUserId: string | null; + /** @description The machine type used by machines in the autoscaling group. */ + readonly machineType: string; + /** @description The maximum number of machines in the autoscaling group. */ + readonly max: number; + /** @description The minimum number of machines in the autoscaling group. */ + readonly min: number; + /** @description The name of the autoscaling group. */ + readonly name: string; + /** @description The ID of the network used by machines in the autoscaling group. */ + readonly networkId: string; + /** @description The timeout for provisioning machines in the autoscaling group, in minutes. */ + readonly provisioningTimeout: number | null; + /** @description The ID of the startup script used by machines in the autoscaling group. */ + readonly startupScriptId: string | null; + /** @description The ID of the template used by machines in the autoscaling group. */ + readonly templateId: string; + }; + }; + }; + default: components["responses"]["error"]; + }; + }; + /** + * Get an autoscaling group + * @description Fetches a single autoscaling group by id. + */ + "autoscalingGroups-get": { + parameters: { + readonly path: { + /** @description The ID of the autoscaling group to fetch. */ + id: string; + }; + }; + responses: { + /** @description Successful response */ + 200: { + content: { + readonly "application/json": { + /** @description The ID of the cluster the autoscaling group is for. */ + readonly clusterId: string; + /** @description The current number of machines in the autoscaling group. */ + readonly current: number; + /** + * Format: date-time + * @description The date the autoscaling group was created. + */ + readonly dtCreated: Date; + /** + * Format: date-time + * @description The date the autoscaling group was deleted. + */ + readonly dtDeleted: Date; + /** + * Format: date-time + * @description The date the autoscaling group was last modified. + */ + readonly dtModified: Date; + /** @description The ID of the autoscaling group. */ + readonly id: string; + /** @description The ID of the user who last edited the autoscaling group. */ + readonly lastEditedByUserId: string | null; + /** @description The machine type used by machines in the autoscaling group. */ + readonly machineType: string; + /** @description The maximum number of machines in the autoscaling group. */ + readonly max: number; + /** @description The minimum number of machines in the autoscaling group. */ + readonly min: number; + /** @description The name of the autoscaling group. */ + readonly name: string; + /** @description The ID of the network used by machines in the autoscaling group. */ + readonly networkId: string; + /** @description The timeout for provisioning machines in the autoscaling group, in minutes. */ + readonly provisioningTimeout: number | null; + /** @description The ID of the startup script used by machines in the autoscaling group. */ + readonly startupScriptId: string | null; + /** @description The ID of the template used by machines in the autoscaling group. */ + readonly templateId: string; + }; + }; + }; + default: components["responses"]["error"]; + }; }; /** * Update an autoscaling group * @description Update an autoscaling group. */ - "mutation.autoscalingGroups.update": { + "autoscalingGroups-update": { parameters: { readonly path: { /** @description The id of the autoscaling group. */ @@ -2172,7 +3935,7 @@ export interface operations { * Delete an autoscaling group * @description Delete an autoscaling group. */ - "mutation.autoscalingGroups.delete": { + "autoscalingGroups-delete": { parameters: { readonly path: { /** @description The id of the autoscaling group. */ @@ -2196,7 +3959,7 @@ export interface operations { * Get account standing * @description Check whether the current team account is in good standing. If not, send back a message explaining why. */ - "query.billingAccountStanding.get": { + "billingAccountStanding-get": { responses: { /** @description Successful response */ 200: { @@ -2216,7 +3979,7 @@ export interface operations { * List container registries * @description Lists container registries for the current team. */ - "query.containerRegistries.list": { + "containerRegistries-list": { parameters: { readonly query: { /** @description Fetch the next page of results after this cursor. */ @@ -2271,7 +4034,7 @@ export interface operations { * Create a container registry * @description Creates a container registry for the current team. */ - "mutation.containerRegistries.create": { + "containerRegistries-create": { readonly requestBody: { readonly content: { readonly "application/json": { @@ -2326,7 +4089,7 @@ export interface operations { * List container registries * @description Lists container registries for the current team. */ - "query.containerRegistries.get": { + "containerRegistries-get": { parameters: { readonly path: { /** @description The id of the container registry */ @@ -2368,7 +4131,7 @@ export interface operations { * Update a container registry * @description Updates a container registry for the current team. */ - "mutation.containerRegistries.update": { + "containerRegistries-update": { parameters: { readonly path: { /** @description The id of the container registry */ @@ -2429,7 +4192,7 @@ export interface operations { * Delete a container registry * @description Deletes a container registry for the current team. */ - "mutation.containerRegistries.delete": { + "containerRegistries-delete": { parameters: { readonly path: { /** @description The id of the container registry */ @@ -2471,7 +4234,7 @@ export interface operations { * Test a container registry connection * @description Validate that a container registry can be connected to using the provided credentials. */ - "mutation.containerRegistries.testConnection": { + "containerRegistries-testConnection": { parameters: { readonly path: { /** @description The id of the container registry */ @@ -2497,7 +4260,7 @@ export interface operations { * List deployments * @description Fetches a list of deployments for a logged in user. */ - "query.deployments.list": { + "deployments-list": { parameters: { readonly query: { /** @description Fetch the next page of results after this cursor. */ @@ -2537,130 +4300,332 @@ export interface operations { /** @description The data for the deployment spec */ readonly data?: | ( - | ({ - readonly apiVersion: "v0alpha0" | "latest"; - readonly command?: readonly (string)[]; - readonly containerRegistry?: string; - /** @default true */ - readonly enabled?: boolean; - readonly env?: readonly ({ + | ( + | ({ + /** @enum {string} */ + readonly apiVersion: "v0alpha0"; + readonly command?: readonly (string)[]; + readonly containerRegistry?: string; + /** @default true */ + readonly enabled?: boolean; + readonly env?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly healthChecks?: { + readonly liveness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly readiness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly startup?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + }; + readonly image: string; + readonly models?: readonly ({ + readonly id: string; + readonly path?: string; + })[]; readonly name: string; - readonly value: string; - })[]; - readonly healthChecks?: { - readonly liveness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ + /** @default 80 */ + readonly port?: number; + readonly region?: string; + readonly repositories?: { + readonly dataset: string; + readonly mountPath?: string; + readonly repositories: readonly ({ readonly name: string; - readonly value: string; + readonly password?: string; + readonly ref?: string; + readonly url: string; + readonly username?: string; })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; + }; + readonly resources: { + readonly autoscaling?: { + readonly enabled?: boolean; + readonly maxReplicas: number; + readonly metrics: readonly ( + | { + /** @enum {string} */ + readonly metric: "requestDuration"; + /** @enum {string} */ + readonly summary: "average"; + readonly value: number; + } + | ({ + /** @enum {string} */ + readonly metric: "cpu" | "memory"; + /** @enum {string} */ + readonly summary: "average"; + readonly value: number; + }) + )[]; }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; + readonly instanceType: string; + /** @default 1 */ + readonly replicas?: number; }; - readonly readiness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; + }) + | ({ + /** @enum {string} */ + readonly apiVersion: "v0alpha1"; + readonly command?: readonly (string)[]; + readonly containerRegistry?: string; + /** @default true */ + readonly enabled?: boolean; + readonly env?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly healthchecks?: { + readonly liveness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly readiness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly startup?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; }; - readonly startup?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; + readonly healthChecks?: { + readonly liveness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly readiness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly startup?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; }; - }; - readonly image: string; - readonly models?: readonly ({ - readonly id: string; - readonly path?: string; - })[]; - readonly name: string; - /** @default 80 */ - readonly port?: number; - readonly region?: string; - readonly repositories?: { - readonly dataset: string; - readonly mountPath?: string; - readonly repositories: readonly ({ + readonly image: string; + readonly integrations?: readonly ({ + readonly id: string; readonly name: string; - readonly password?: string; - readonly ref?: string; + /** @default /opt/models */ + readonly path?: string; + /** @enum {string} */ + readonly type: "model"; + } | { + readonly accessKeyId: string; + readonly endpoint?: string; + readonly name: string; + readonly path?: string; + readonly region?: string; + readonly secretAccessKey: string; + /** @enum {string} */ + readonly type: "s3"; + readonly url: string; + } | { + readonly name: string; + /** @enum {string} */ + readonly type: "volume"; + } | { + readonly name: string; + readonly path?: string; + /** @enum {string} */ + readonly type: "git-lfs"; + /** Format: uri */ readonly url: string; - readonly username?: string; })[]; - }; - readonly resources: { - readonly autoscaling?: { - readonly enabled?: boolean; - readonly maxReplicas: number; - readonly metrics: readonly ( - | { - /** @enum {string} */ - readonly metric: "requestDuration"; - /** @enum {string} */ - readonly summary: "average"; - readonly value: number; - } - | ({ - /** @enum {string} */ - readonly metric: "cpu" | "memory"; - /** @enum {string} */ - readonly summary: "average"; - readonly value: number; - }) - )[]; + readonly name: string; + readonly region?: string; + readonly resources: { + readonly autoscaling?: { + readonly enabled?: boolean; + readonly maxReplicas: number; + readonly metrics: readonly ( + | { + /** @enum {string} */ + readonly metric: "requestDuration"; + /** @enum {string} */ + readonly summary: "average"; + readonly value: number; + } + | ({ + /** @enum {string} */ + readonly metric: "cpu" | "memory"; + /** @enum {string} */ + readonly summary: "average"; + readonly value: number; + }) + )[]; + }; + readonly machineType: string; + readonly ports: readonly (number)[]; + /** @default 1 */ + readonly replicas?: number; }; - readonly instanceType: string; - /** @default 1 */ - readonly replicas?: number; - }; - }) + }) + ) | ({ - /** @enum {string} */ - readonly apiVersion: "v0alpha1"; + readonly apiVersion: "v1" | "latest"; readonly command?: readonly (string)[]; readonly containerRegistry?: string; /** @default true */ @@ -2680,7 +4645,7 @@ export interface operations { readonly initialDelaySeconds?: number; readonly path: string; readonly periodSeconds?: number; - readonly port: number; + readonly port?: number; readonly timeoutSeconds?: number; } | { readonly exec: { @@ -2701,7 +4666,7 @@ export interface operations { readonly initialDelaySeconds?: number; readonly path: string; readonly periodSeconds?: number; - readonly port: number; + readonly port?: number; readonly timeoutSeconds?: number; } | { readonly exec: { @@ -2722,7 +4687,7 @@ export interface operations { readonly initialDelaySeconds?: number; readonly path: string; readonly periodSeconds?: number; - readonly port: number; + readonly port?: number; readonly timeoutSeconds?: number; } | { readonly exec: { @@ -2745,7 +4710,7 @@ export interface operations { readonly initialDelaySeconds?: number; readonly path: string; readonly periodSeconds?: number; - readonly port: number; + readonly port?: number; readonly timeoutSeconds?: number; } | { readonly exec: { @@ -2766,7 +4731,7 @@ export interface operations { readonly initialDelaySeconds?: number; readonly path: string; readonly periodSeconds?: number; - readonly port: number; + readonly port?: number; readonly timeoutSeconds?: number; } | { readonly exec: { @@ -2787,7 +4752,7 @@ export interface operations { readonly initialDelaySeconds?: number; readonly path: string; readonly periodSeconds?: number; - readonly port: number; + readonly port?: number; readonly timeoutSeconds?: number; } | { readonly exec: { @@ -2801,27 +4766,36 @@ export interface operations { }; readonly image: string; readonly integrations?: readonly ({ + readonly id: string; + readonly name: string; + /** @default /opt/models */ + readonly path?: string; + /** @enum {string} */ + readonly type: "model"; + } | { + readonly accessKeyId: string; + readonly endpoint?: string; + readonly name: string; + readonly path?: string; + readonly region?: string; + readonly secretAccessKey: string; + /** @enum {string} */ + readonly type: "s3"; + readonly url: string; + } | { readonly name: string; /** @enum {string} */ readonly type: "volume"; - })[]; - readonly models?: readonly ({ - readonly id: string; + } | { + readonly name: string; readonly path?: string; + /** @enum {string} */ + readonly type: "git-lfs"; + /** Format: uri */ + readonly url: string; })[]; readonly name: string; readonly region?: string; - readonly repositories?: { - readonly dataset: string; - readonly mountPath?: string; - readonly repositories: readonly ({ - readonly name: string; - readonly password?: string; - readonly ref?: string; - readonly url: string; - readonly username?: string; - })[]; - }; readonly resources: { readonly autoscaling?: { readonly enabled?: boolean; @@ -2916,136 +4890,338 @@ export interface operations { * Upsert a deployment * @description Submit a new deployment configuration. If a deployment does not exist, one is created. Otherwise, a deployment is updated with new configuration. */ - "mutation.deployments.upsert": { + "deployments-upsert": { readonly requestBody: { readonly content: { readonly "application/json": { /** @description The deployment configuration */ readonly config: - | ({ - readonly apiVersion: "v0alpha0" | "latest"; - readonly command?: readonly (string)[]; - readonly containerRegistry?: string; - /** @default true */ - readonly enabled?: boolean; - readonly env?: readonly ({ + | ( + | ({ + /** @enum {string} */ + readonly apiVersion: "v0alpha0"; + readonly command?: readonly (string)[]; + readonly containerRegistry?: string; + /** @default true */ + readonly enabled?: boolean; + readonly env?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly healthChecks?: { + readonly liveness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly readiness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly startup?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + }; + readonly image: string; + readonly models?: readonly ({ + readonly id: string; + readonly path?: string; + })[]; readonly name: string; - readonly value: string; - })[]; - readonly healthChecks?: { - readonly liveness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ + /** @default 80 */ + readonly port?: number; + readonly region?: string; + readonly repositories?: { + readonly dataset: string; + readonly mountPath?: string; + readonly repositories: readonly ({ readonly name: string; - readonly value: string; + readonly password?: string; + readonly ref?: string; + readonly url: string; + readonly username?: string; })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; + }; + readonly resources: { + readonly autoscaling?: { + readonly enabled?: boolean; + readonly maxReplicas: number; + readonly metrics: readonly ( + | { + /** @enum {string} */ + readonly metric: "requestDuration"; + /** @enum {string} */ + readonly summary: "average"; + readonly value: number; + } + | ({ + /** @enum {string} */ + readonly metric: "cpu" | "memory"; + /** @enum {string} */ + readonly summary: "average"; + readonly value: number; + }) + )[]; }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; + readonly instanceType: string; + /** @default 1 */ + readonly replicas?: number; }; - readonly readiness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; + }) + | ({ + /** @enum {string} */ + readonly apiVersion: "v0alpha1"; + readonly command?: readonly (string)[]; + readonly containerRegistry?: string; + /** @default true */ + readonly enabled?: boolean; + readonly env?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly healthchecks?: { + readonly liveness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly readiness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly startup?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; }; - readonly startup?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; + readonly healthChecks?: { + readonly liveness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly readiness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly startup?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; }; - }; - readonly image: string; - readonly models?: readonly ({ - readonly id: string; - readonly path?: string; - })[]; - readonly name: string; - /** @default 80 */ - readonly port?: number; - readonly region?: string; - readonly repositories?: { - readonly dataset: string; - readonly mountPath?: string; - readonly repositories: readonly ({ + readonly image: string; + readonly integrations?: readonly ({ + readonly id: string; + readonly name: string; + /** @default /opt/models */ + readonly path?: string; + /** @enum {string} */ + readonly type: "model"; + } | { + readonly accessKeyId: string; + readonly endpoint?: string; + readonly name: string; + readonly path?: string; + readonly region?: string; + readonly secretAccessKey: string; + /** @enum {string} */ + readonly type: "s3"; + readonly url: string; + } | { + readonly name: string; + /** @enum {string} */ + readonly type: "volume"; + } | { readonly name: string; - readonly password?: string; - readonly ref?: string; + readonly path?: string; + /** @enum {string} */ + readonly type: "git-lfs"; + /** Format: uri */ readonly url: string; - readonly username?: string; })[]; - }; - readonly resources: { - readonly autoscaling?: { - readonly enabled?: boolean; - readonly maxReplicas: number; - readonly metrics: readonly ( - | { - /** @enum {string} */ - readonly metric: "requestDuration"; - /** @enum {string} */ - readonly summary: "average"; - readonly value: number; - } - | ({ - /** @enum {string} */ - readonly metric: "cpu" | "memory"; - /** @enum {string} */ - readonly summary: "average"; - readonly value: number; - }) - )[]; + readonly name: string; + readonly region?: string; + readonly resources: { + readonly autoscaling?: { + readonly enabled?: boolean; + readonly maxReplicas: number; + readonly metrics: readonly ( + | { + /** @enum {string} */ + readonly metric: "requestDuration"; + /** @enum {string} */ + readonly summary: "average"; + readonly value: number; + } + | ({ + /** @enum {string} */ + readonly metric: "cpu" | "memory"; + /** @enum {string} */ + readonly summary: "average"; + readonly value: number; + }) + )[]; + }; + readonly machineType: string; + readonly ports: readonly (number)[]; + /** @default 1 */ + readonly replicas?: number; }; - readonly instanceType: string; - /** @default 1 */ - readonly replicas?: number; - }; - }) + }) + ) | ({ - /** @enum {string} */ - readonly apiVersion: "v0alpha1"; + readonly apiVersion: "v1" | "latest"; readonly command?: readonly (string)[]; readonly containerRegistry?: string; /** @default true */ @@ -3065,7 +5241,7 @@ export interface operations { readonly initialDelaySeconds?: number; readonly path: string; readonly periodSeconds?: number; - readonly port: number; + readonly port?: number; readonly timeoutSeconds?: number; } | { readonly exec: { @@ -3086,7 +5262,7 @@ export interface operations { readonly initialDelaySeconds?: number; readonly path: string; readonly periodSeconds?: number; - readonly port: number; + readonly port?: number; readonly timeoutSeconds?: number; } | { readonly exec: { @@ -3107,7 +5283,7 @@ export interface operations { readonly initialDelaySeconds?: number; readonly path: string; readonly periodSeconds?: number; - readonly port: number; + readonly port?: number; readonly timeoutSeconds?: number; } | { readonly exec: { @@ -3130,7 +5306,7 @@ export interface operations { readonly initialDelaySeconds?: number; readonly path: string; readonly periodSeconds?: number; - readonly port: number; + readonly port?: number; readonly timeoutSeconds?: number; } | { readonly exec: { @@ -3151,7 +5327,7 @@ export interface operations { readonly initialDelaySeconds?: number; readonly path: string; readonly periodSeconds?: number; - readonly port: number; + readonly port?: number; readonly timeoutSeconds?: number; } | { readonly exec: { @@ -3172,7 +5348,7 @@ export interface operations { readonly initialDelaySeconds?: number; readonly path: string; readonly periodSeconds?: number; - readonly port: number; + readonly port?: number; readonly timeoutSeconds?: number; } | { readonly exec: { @@ -3186,27 +5362,36 @@ export interface operations { }; readonly image: string; readonly integrations?: readonly ({ + readonly id: string; + readonly name: string; + /** @default /opt/models */ + readonly path?: string; + /** @enum {string} */ + readonly type: "model"; + } | { + readonly accessKeyId: string; + readonly endpoint?: string; + readonly name: string; + readonly path?: string; + readonly region?: string; + readonly secretAccessKey: string; + /** @enum {string} */ + readonly type: "s3"; + readonly url: string; + } | { readonly name: string; /** @enum {string} */ readonly type: "volume"; - })[]; - readonly models?: readonly ({ - readonly id: string; + } | { + readonly name: string; readonly path?: string; + /** @enum {string} */ + readonly type: "git-lfs"; + /** Format: uri */ + readonly url: string; })[]; readonly name: string; readonly region?: string; - readonly repositories?: { - readonly dataset: string; - readonly mountPath?: string; - readonly repositories: readonly ({ - readonly name: string; - readonly password?: string; - readonly ref?: string; - readonly url: string; - readonly username?: string; - })[]; - }; readonly resources: { readonly autoscaling?: { readonly enabled?: boolean; @@ -3220,37 +5405,678 @@ export interface operations { readonly value: number; } | ({ - /** @enum {string} */ - readonly metric: "cpu" | "memory"; - /** @enum {string} */ - readonly summary: "average"; - readonly value: number; + /** @enum {string} */ + readonly metric: "cpu" | "memory"; + /** @enum {string} */ + readonly summary: "average"; + readonly value: number; + }) + )[]; + }; + readonly machineType: string; + readonly ports: readonly (number)[]; + /** @default 1 */ + readonly replicas?: number; + }; + }); + /** + * @description The ID of the deployment to update. + * @default null + */ + readonly deploymentId?: string | null; + /** @description The project ID to deploy resources under. */ + readonly projectId: string; + }; + }; + }; + responses: { + /** @description Successful response */ + 200: { + content: { + readonly "application/json": { + /** @description The ID of the deployment */ + readonly deploymentId: string; + }; + }; + }; + default: components["responses"]["error"]; + }; + }; + /** + * Get a deployment + * @description Fetches a single deployment by deployment ID. + */ + "deployments-get": { + parameters: { + readonly path: { + /** @description The ID of the deployment to fetch */ + id: string; + }; + }; + responses: { + /** @description Successful response */ + 200: { + content: { + readonly "application/json": { + /** + * Format: date-time + * @description The date the deployment was created + */ + readonly dtCreated: Date; + /** @description The unique endpoint for the deployment */ + readonly endpoint: string; + /** @description The ID of the deployment */ + readonly id: string; + /** + * @description The latest deployment configuration. If invalid, null is returned. + * @default null + */ + readonly latestSpec?: + | ({ + /** @description The data for the deployment spec */ + readonly data?: + | ( + | ( + | ({ + /** @enum {string} */ + readonly apiVersion: "v0alpha0"; + readonly command?: readonly (string)[]; + readonly containerRegistry?: string; + /** @default true */ + readonly enabled?: boolean; + readonly env?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly healthChecks?: { + readonly liveness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly readiness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly startup?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + }; + readonly image: string; + readonly models?: readonly ({ + readonly id: string; + readonly path?: string; + })[]; + readonly name: string; + /** @default 80 */ + readonly port?: number; + readonly region?: string; + readonly repositories?: { + readonly dataset: string; + readonly mountPath?: string; + readonly repositories: readonly ({ + readonly name: string; + readonly password?: string; + readonly ref?: string; + readonly url: string; + readonly username?: string; + })[]; + }; + readonly resources: { + readonly autoscaling?: { + readonly enabled?: boolean; + readonly maxReplicas: number; + readonly metrics: readonly ( + | { + /** @enum {string} */ + readonly metric: "requestDuration"; + /** @enum {string} */ + readonly summary: "average"; + readonly value: number; + } + | ({ + /** @enum {string} */ + readonly metric: "cpu" | "memory"; + /** @enum {string} */ + readonly summary: "average"; + readonly value: number; + }) + )[]; + }; + readonly instanceType: string; + /** @default 1 */ + readonly replicas?: number; + }; + }) + | ({ + /** @enum {string} */ + readonly apiVersion: "v0alpha1"; + readonly command?: readonly (string)[]; + readonly containerRegistry?: string; + /** @default true */ + readonly enabled?: boolean; + readonly env?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly healthchecks?: { + readonly liveness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly readiness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly startup?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + }; + readonly healthChecks?: { + readonly liveness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly readiness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly startup?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + }; + readonly image: string; + readonly integrations?: readonly ({ + readonly id: string; + readonly name: string; + /** @default /opt/models */ + readonly path?: string; + /** @enum {string} */ + readonly type: "model"; + } | { + readonly accessKeyId: string; + readonly endpoint?: string; + readonly name: string; + readonly path?: string; + readonly region?: string; + readonly secretAccessKey: string; + /** @enum {string} */ + readonly type: "s3"; + readonly url: string; + } | { + readonly name: string; + /** @enum {string} */ + readonly type: "volume"; + } | { + readonly name: string; + readonly path?: string; + /** @enum {string} */ + readonly type: "git-lfs"; + /** Format: uri */ + readonly url: string; + })[]; + readonly name: string; + readonly region?: string; + readonly resources: { + readonly autoscaling?: { + readonly enabled?: boolean; + readonly maxReplicas: number; + readonly metrics: readonly ( + | { + /** @enum {string} */ + readonly metric: "requestDuration"; + /** @enum {string} */ + readonly summary: "average"; + readonly value: number; + } + | ({ + /** @enum {string} */ + readonly metric: "cpu" | "memory"; + /** @enum {string} */ + readonly summary: "average"; + readonly value: number; + }) + )[]; + }; + readonly machineType: string; + readonly ports: readonly (number)[]; + /** @default 1 */ + readonly replicas?: number; + }; + }) + ) + | ({ + readonly apiVersion: "v1" | "latest"; + readonly command?: readonly (string)[]; + readonly containerRegistry?: string; + /** @default true */ + readonly enabled?: boolean; + readonly env?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly healthchecks?: { + readonly liveness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly readiness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly startup?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + }; + readonly healthChecks?: { + readonly liveness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly readiness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly startup?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + }; + readonly image: string; + readonly integrations?: readonly ({ + readonly id: string; + readonly name: string; + /** @default /opt/models */ + readonly path?: string; + /** @enum {string} */ + readonly type: "model"; + } | { + readonly accessKeyId: string; + readonly endpoint?: string; + readonly name: string; + readonly path?: string; + readonly region?: string; + readonly secretAccessKey: string; + /** @enum {string} */ + readonly type: "s3"; + readonly url: string; + } | { + readonly name: string; + /** @enum {string} */ + readonly type: "volume"; + } | { + readonly name: string; + readonly path?: string; + /** @enum {string} */ + readonly type: "git-lfs"; + /** Format: uri */ + readonly url: string; + })[]; + readonly name: string; + readonly region?: string; + readonly resources: { + readonly autoscaling?: { + readonly enabled?: boolean; + readonly maxReplicas: number; + readonly metrics: readonly ( + | { + /** @enum {string} */ + readonly metric: "requestDuration"; + /** @enum {string} */ + readonly summary: "average"; + readonly value: number; + } + | ({ + /** @enum {string} */ + readonly metric: "cpu" | "memory"; + /** @enum {string} */ + readonly summary: "average"; + readonly value: number; + }) + )[]; + }; + readonly machineType: string; + readonly ports: readonly (number)[]; + /** @default 1 */ + readonly replicas?: number; + }; }) - )[]; - }; - readonly machineType: string; - readonly ports: readonly (number)[]; - /** @default 1 */ - readonly replicas?: number; - }; - }); - /** - * @description The ID of the deployment to update. - * @default null - */ - readonly deploymentId?: string | null; - /** @description The project ID to deploy resources under. */ - readonly projectId: string; + ) + | null; + /** @description The ID of the deployment the spec belongs to */ + readonly deploymentId: string; + /** + * Format: date-time + * @description The date the deployment was marked "healthy" + * @default null + */ + readonly dtHealthy?: Date; + /** + * @description The fatal configuration error. Only present if the cluster was unable to apply the entire deployment configuration. This is not the same as an instance error. + * @default null + */ + readonly error?: string | null; + /** + * Format: date-time + * @description The date the deployment configuration was applied to the cluster + * @default null + */ + readonly externalApplied?: Date; + /** @description The ID of the deployment spec */ + readonly id: string; + /** + * @description Metadata about the source of the configuration + * @default null + */ + readonly metadata?: + | ({ + readonly gitHeaders?: { + readonly "x-git-actor": string; + readonly "x-git-host": "github" | "gitlab"; + readonly "x-git-owner": string; + readonly "x-git-ref": string; + readonly "x-git-repo": string; + readonly "x-git-sha": string; + }; + }) + | null; + /** @description The ID of the user the deployment belongs to */ + readonly userId: string; + }) + | null; + /** + * @description The last version hash for the deployment + * @default null + */ + readonly latestSpecHash?: string | null; + /** @description The name of the deployment */ + readonly name: string; + /** @description The ID of the project the deployment belongs to */ + readonly projectId: string; + /** @description The ID of the team the deployment belongs to */ + readonly teamId: string; + }; }; }; + default: components["responses"]["error"]; + }; + }; + /** + * Delete a deployment + * @description Deletes a deployment by deployment ID. + */ + "deployments-delete": { + parameters: { + readonly path: { + /** @description The ID of the deployment to delete */ + id: string; + }; }; responses: { /** @description Successful response */ 200: { content: { readonly "application/json": { - /** @description The ID of the deployment */ - readonly deploymentId: string; + /** @description The ID of the deleted deployment */ + readonly id: string; }; }; }; @@ -3258,13 +6084,23 @@ export interface operations { }; }; /** - * Get a deployment - * @description Fetches a single deployment by deployment ID. + * List app history + * @description Lists history for a given app. */ - "query.deployments.get": { + "deploymentHistory-list": { parameters: { + readonly query: { + /** @description Fetch the next page of results after this cursor. */ + after?: string; + /** @description The number of items to fetch after this page. */ + limit?: number; + /** @description Order results by one of these fields. */ + orderBy?: "dtCreated"; + /** @description The order to sort the results by. */ + order?: "asc" | "desc"; + }; readonly path: { - /** @description The ID of the deployment to fetch */ + /** @description The ID of the app */ id: string; }; }; @@ -3273,26 +6109,17 @@ export interface operations { 200: { content: { readonly "application/json": { - /** - * Format: date-time - * @description The date the deployment was created - */ - readonly dtCreated: Date; - /** @description The unique endpoint for the deployment */ - readonly endpoint: string; - /** @description The ID of the deployment */ - readonly id: string; - /** - * @description The latest deployment configuration. If invalid, null is returned. - * @default null - */ - readonly latestSpec?: - | ({ - /** @description The data for the deployment spec */ - readonly data?: + /** @description Whether there are more pages of results available. */ + readonly hasMore: boolean; + /** @description The items on this page. */ + readonly items: readonly ({ + /** @description The data for the deployment spec */ + readonly data?: + | ( | ( | ({ - readonly apiVersion: "v0alpha0" | "latest"; + /** @enum {string} */ + readonly apiVersion: "v0alpha0"; readonly command?: readonly (string)[]; readonly containerRegistry?: string; /** @default true */ @@ -3434,7 +6261,7 @@ export interface operations { readonly initialDelaySeconds?: number; readonly path: string; readonly periodSeconds?: number; - readonly port: number; + readonly port?: number; readonly timeoutSeconds?: number; } | { readonly exec: { @@ -3455,7 +6282,7 @@ export interface operations { readonly initialDelaySeconds?: number; readonly path: string; readonly periodSeconds?: number; - readonly port: number; + readonly port?: number; readonly timeoutSeconds?: number; } | { readonly exec: { @@ -3476,7 +6303,7 @@ export interface operations { readonly initialDelaySeconds?: number; readonly path: string; readonly periodSeconds?: number; - readonly port: number; + readonly port?: number; readonly timeoutSeconds?: number; } | { readonly exec: { @@ -3499,7 +6326,7 @@ export interface operations { readonly initialDelaySeconds?: number; readonly path: string; readonly periodSeconds?: number; - readonly port: number; + readonly port?: number; readonly timeoutSeconds?: number; } | { readonly exec: { @@ -3516,334 +6343,105 @@ export interface operations { readonly name: string; readonly value: string; })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - readonly startup?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - }; - readonly image: string; - readonly integrations?: readonly ({ - readonly name: string; - /** @enum {string} */ - readonly type: "volume"; - })[]; - readonly models?: readonly ({ - readonly id: string; - readonly path?: string; - })[]; - readonly name: string; - readonly region?: string; - readonly repositories?: { - readonly dataset: string; - readonly mountPath?: string; - readonly repositories: readonly ({ - readonly name: string; - readonly password?: string; - readonly ref?: string; - readonly url: string; - readonly username?: string; - })[]; - }; - readonly resources: { - readonly autoscaling?: { - readonly enabled?: boolean; - readonly maxReplicas: number; - readonly metrics: readonly ( - | { - /** @enum {string} */ - readonly metric: "requestDuration"; - /** @enum {string} */ - readonly summary: "average"; - readonly value: number; - } - | ({ - /** @enum {string} */ - readonly metric: "cpu" | "memory"; - /** @enum {string} */ - readonly summary: "average"; - readonly value: number; - }) - )[]; - }; - readonly machineType: string; - readonly ports: readonly (number)[]; - /** @default 1 */ - readonly replicas?: number; - }; - }) - ) - | null; - /** @description The ID of the deployment the spec belongs to */ - readonly deploymentId: string; - /** - * Format: date-time - * @description The date the deployment was marked "healthy" - * @default null - */ - readonly dtHealthy?: Date; - /** - * @description The fatal configuration error. Only present if the cluster was unable to apply the entire deployment configuration. This is not the same as an instance error. - * @default null - */ - readonly error?: string | null; - /** - * Format: date-time - * @description The date the deployment configuration was applied to the cluster - * @default null - */ - readonly externalApplied?: Date; - /** @description The ID of the deployment spec */ - readonly id: string; - /** - * @description Metadata about the source of the configuration - * @default null - */ - readonly metadata?: - | ({ - readonly gitHeaders?: { - readonly "x-git-actor": string; - readonly "x-git-host": "github" | "gitlab"; - readonly "x-git-owner": string; - readonly "x-git-ref": string; - readonly "x-git-repo": string; - readonly "x-git-sha": string; - }; - }) - | null; - /** @description The ID of the user the deployment belongs to */ - readonly userId: string; - }) - | null; - /** - * @description The last version hash for the deployment - * @default null - */ - readonly latestSpecHash?: string | null; - /** @description The name of the deployment */ - readonly name: string; - /** @description The ID of the project the deployment belongs to */ - readonly projectId: string; - /** @description The ID of the team the deployment belongs to */ - readonly teamId: string; - }; - }; - }; - default: components["responses"]["error"]; - }; - }; - /** - * Delete a deployment - * @description Deletes a deployment by deployment ID. - */ - "mutation.deployments.delete": { - parameters: { - readonly path: { - /** @description The ID of the deployment to delete */ - id: string; - }; - }; - responses: { - /** @description Successful response */ - 200: { - content: { - readonly "application/json": { - /** @description The ID of the deleted deployment */ - readonly id: string; - }; - }; - }; - default: components["responses"]["error"]; - }; - }; - /** - * List app history - * @description Lists history for a given app. - */ - "query.deploymentHistory.list": { - parameters: { - readonly query: { - /** @description Fetch the next page of results after this cursor. */ - after?: string; - /** @description The number of items to fetch after this page. */ - limit?: number; - /** @description Order results by one of these fields. */ - orderBy?: "dtCreated"; - /** @description The order to sort the results by. */ - order?: "asc" | "desc"; - }; - readonly path: { - /** @description The ID of the app */ - id: string; - }; - }; - responses: { - /** @description Successful response */ - 200: { - content: { - readonly "application/json": { - /** @description Whether there are more pages of results available. */ - readonly hasMore: boolean; - /** @description The items on this page. */ - readonly items: readonly ({ - /** @description The data for the deployment spec */ - readonly data?: - | ( - | ({ - readonly apiVersion: "v0alpha0" | "latest"; - readonly command?: readonly (string)[]; - readonly containerRegistry?: string; - /** @default true */ - readonly enabled?: boolean; - readonly env?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly healthChecks?: { - readonly liveness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - readonly readiness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; + readonly startup?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; }; - readonly startup?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; + readonly image: string; + readonly integrations?: readonly ({ + readonly id: string; + readonly name: string; + /** @default /opt/models */ + readonly path?: string; + /** @enum {string} */ + readonly type: "model"; + } | { + readonly accessKeyId: string; + readonly endpoint?: string; + readonly name: string; + readonly path?: string; + readonly region?: string; + readonly secretAccessKey: string; + /** @enum {string} */ + readonly type: "s3"; + readonly url: string; + } | { + readonly name: string; + /** @enum {string} */ + readonly type: "volume"; } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - }; - readonly image: string; - readonly models?: readonly ({ - readonly id: string; - readonly path?: string; - })[]; - readonly name: string; - /** @default 80 */ - readonly port?: number; - readonly region?: string; - readonly repositories?: { - readonly dataset: string; - readonly mountPath?: string; - readonly repositories: readonly ({ readonly name: string; - readonly password?: string; - readonly ref?: string; + readonly path?: string; + /** @enum {string} */ + readonly type: "git-lfs"; + /** Format: uri */ readonly url: string; - readonly username?: string; })[]; - }; - readonly resources: { - readonly autoscaling?: { - readonly enabled?: boolean; - readonly maxReplicas: number; - readonly metrics: readonly ( - | { - /** @enum {string} */ - readonly metric: "requestDuration"; - /** @enum {string} */ - readonly summary: "average"; - readonly value: number; - } - | ({ - /** @enum {string} */ - readonly metric: "cpu" | "memory"; - /** @enum {string} */ - readonly summary: "average"; - readonly value: number; - }) - )[]; + readonly name: string; + readonly region?: string; + readonly resources: { + readonly autoscaling?: { + readonly enabled?: boolean; + readonly maxReplicas: number; + readonly metrics: readonly ( + | { + /** @enum {string} */ + readonly metric: "requestDuration"; + /** @enum {string} */ + readonly summary: "average"; + readonly value: number; + } + | ({ + /** @enum {string} */ + readonly metric: "cpu" | "memory"; + /** @enum {string} */ + readonly summary: "average"; + readonly value: number; + }) + )[]; + }; + readonly machineType: string; + readonly ports: readonly (number)[]; + /** @default 1 */ + readonly replicas?: number; }; - readonly instanceType: string; - /** @default 1 */ - readonly replicas?: number; - }; - }) + }) + ) | ({ - /** @enum {string} */ - readonly apiVersion: "v0alpha1"; + readonly apiVersion: "v1" | "latest"; readonly command?: readonly (string)[]; readonly containerRegistry?: string; /** @default true */ @@ -3863,7 +6461,7 @@ export interface operations { readonly initialDelaySeconds?: number; readonly path: string; readonly periodSeconds?: number; - readonly port: number; + readonly port?: number; readonly timeoutSeconds?: number; } | { readonly exec: { @@ -3884,7 +6482,7 @@ export interface operations { readonly initialDelaySeconds?: number; readonly path: string; readonly periodSeconds?: number; - readonly port: number; + readonly port?: number; readonly timeoutSeconds?: number; } | { readonly exec: { @@ -3905,7 +6503,7 @@ export interface operations { readonly initialDelaySeconds?: number; readonly path: string; readonly periodSeconds?: number; - readonly port: number; + readonly port?: number; readonly timeoutSeconds?: number; } | { readonly exec: { @@ -3928,7 +6526,7 @@ export interface operations { readonly initialDelaySeconds?: number; readonly path: string; readonly periodSeconds?: number; - readonly port: number; + readonly port?: number; readonly timeoutSeconds?: number; } | { readonly exec: { @@ -3949,7 +6547,7 @@ export interface operations { readonly initialDelaySeconds?: number; readonly path: string; readonly periodSeconds?: number; - readonly port: number; + readonly port?: number; readonly timeoutSeconds?: number; } | { readonly exec: { @@ -3970,7 +6568,7 @@ export interface operations { readonly initialDelaySeconds?: number; readonly path: string; readonly periodSeconds?: number; - readonly port: number; + readonly port?: number; readonly timeoutSeconds?: number; } | { readonly exec: { @@ -3984,27 +6582,36 @@ export interface operations { }; readonly image: string; readonly integrations?: readonly ({ + readonly id: string; + readonly name: string; + /** @default /opt/models */ + readonly path?: string; + /** @enum {string} */ + readonly type: "model"; + } | { + readonly accessKeyId: string; + readonly endpoint?: string; + readonly name: string; + readonly path?: string; + readonly region?: string; + readonly secretAccessKey: string; + /** @enum {string} */ + readonly type: "s3"; + readonly url: string; + } | { readonly name: string; /** @enum {string} */ readonly type: "volume"; - })[]; - readonly models?: readonly ({ - readonly id: string; + } | { + readonly name: string; readonly path?: string; + /** @enum {string} */ + readonly type: "git-lfs"; + /** Format: uri */ + readonly url: string; })[]; readonly name: string; readonly region?: string; - readonly repositories?: { - readonly dataset: string; - readonly mountPath?: string; - readonly repositories: readonly ({ - readonly name: string; - readonly password?: string; - readonly ref?: string; - readonly url: string; - readonly username?: string; - })[]; - }; readonly resources: { readonly autoscaling?: { readonly enabled?: boolean; @@ -4104,8 +6711,21 @@ export interface operations { * @default null */ readonly message?: string | null; - /** @description The phase of the workflow run */ - readonly phase: string; + /** + * @description The phase of the workflow run + * @enum {string} + */ + readonly phase: + | "Initializing" + | "Submitting" + | "Pending" + | "Running" + | "Succeeded" + | "Skipped" + | "Failed" + | "Error" + | "Omitted" + | "Canceled"; readonly workflow: { /** * Format: date-time @@ -4141,7 +6761,7 @@ export interface operations { * List app logs * @description Lists logs for a given app. */ - "query.deploymentLogs.list": { + "deploymentLogs-list": { parameters: { readonly query: { /** @description Fetch the next page of results after this cursor. */ @@ -4205,7 +6825,7 @@ export interface operations { * List app metrics * @description Lists metrics for a given app. */ - "query.deploymentMetrics.get": { + "deploymentMetrics-get": { parameters: { readonly query: { /** @description The metric to fetch. */ @@ -4262,7 +6882,7 @@ export interface operations { * List deployment runs * @description Lists the active deployment runs for a deployment. */ - "query.deploymentRuns.get": { + "deploymentRuns-get": { parameters: { readonly query: { /** @description The latest n number of deployment runs to return */ @@ -4344,7 +6964,7 @@ export interface operations { * Health check * @description Check if the API is healthy. */ - "query.health": { + health: { responses: { /** @description Successful response */ 200: { @@ -4359,7 +6979,7 @@ export interface operations { * List machine events * @description Fetches a list of machine events. */ - "query.machineEvents.list": { + "machineEvents-list": { parameters: { readonly query: { /** @description Fetch the next page of results after this cursor. */ @@ -4448,7 +7068,7 @@ export interface operations { * Get a machine event * @description Fetches a single machine event by ID. */ - "query.machineEvents.get": { + "machineEvents-get": { parameters: { readonly path: { /** @description The ID of the machine event to fetch. */ @@ -4523,7 +7143,7 @@ export interface operations { * List machines * @description Fetches a list of machines. */ - "query.machines.list": { + "machines-list": { parameters: { readonly query: { /** @description Fetch the next page of results after this cursor. */ @@ -4551,12 +7171,14 @@ export interface operations { readonly items: readonly ({ /** @description The accelerators of the machine. */ readonly accelerators?: - | readonly ({ + | (readonly ({ /** @description The number of accelerators of this type. */ readonly count: number; + /** @description The amount of memory the accelerator has, if applicable. */ + readonly memory: number | null; /** @description The name of the accelerator. */ readonly name: string; - })[] + })[]) | null; /** @description The agent type of the machine. */ readonly agentType: string; @@ -4600,31 +7222,7 @@ export interface operations { /** @description The ID of the machine. */ readonly id: string; /** @description The type of the machine. */ - readonly machineType: { - /** @description The number of CPUs. */ - readonly cpus: number; - /** @description The name of the GPU. */ - readonly gpu: string | null; - /** @description The label of the machine type. */ - readonly label: string; - /** @description Metadata for the machine type. */ - readonly metadata: - | ({ - [key: string]: unknown | undefined; - }) - | null; - /** @description The name of the NVLink GPU. */ - readonly nvlinkGpu: string | null; - /** @description The number of NVLink GPUs. */ - readonly nvlinkGpuCount: number | null; - /** - * Format: int64 - * @description The amount of RAM in bytes. - */ - readonly ram: number; - /** @description Whether the machine type supports NVLink. */ - readonly supportsNvlink: boolean; - }; + readonly machineType: string; /** @description The name of the machine. */ readonly name: string; /** @description The ID of the network the machine is on. */ @@ -4698,7 +7296,7 @@ export interface operations { * Create a machine * @description Creates a new machine. */ - "mutation.machines.create": { + "machines-create": { readonly requestBody: { readonly content: { readonly "application/json": { @@ -4769,12 +7367,14 @@ export interface operations { readonly data: { /** @description The accelerators of the machine. */ readonly accelerators?: - | readonly ({ + | (readonly ({ /** @description The number of accelerators of this type. */ readonly count: number; + /** @description The amount of memory the accelerator has, if applicable. */ + readonly memory: number | null; /** @description The name of the accelerator. */ readonly name: string; - })[] + })[]) | null; /** @description The agent type of the machine. */ readonly agentType: string; @@ -4818,31 +7418,7 @@ export interface operations { /** @description The ID of the machine. */ readonly id: string; /** @description The type of the machine. */ - readonly machineType: { - /** @description The number of CPUs. */ - readonly cpus: number; - /** @description The name of the GPU. */ - readonly gpu: string | null; - /** @description The label of the machine type. */ - readonly label: string; - /** @description Metadata for the machine type. */ - readonly metadata: - | ({ - [key: string]: unknown | undefined; - }) - | null; - /** @description The name of the NVLink GPU. */ - readonly nvlinkGpu: string | null; - /** @description The number of NVLink GPUs. */ - readonly nvlinkGpuCount: number | null; - /** - * Format: int64 - * @description The amount of RAM in bytes. - */ - readonly ram: number; - /** @description Whether the machine type supports NVLink. */ - readonly supportsNvlink: boolean; - }; + readonly machineType: string; /** @description The name of the machine. */ readonly name: string; /** @description The ID of the network the machine is on. */ @@ -4970,7 +7546,7 @@ export interface operations { * Get a machine * @description Fetches a single machine by ID. */ - "query.machines.get": { + "machines-get": { parameters: { readonly path: { /** @description The ID of the machine to fetch. */ @@ -4984,12 +7560,14 @@ export interface operations { readonly "application/json": { /** @description The accelerators of the machine. */ readonly accelerators?: - | readonly ({ + | (readonly ({ /** @description The number of accelerators of this type. */ readonly count: number; + /** @description The amount of memory the accelerator has, if applicable. */ + readonly memory: number | null; /** @description The name of the accelerator. */ readonly name: string; - })[] + })[]) | null; /** @description The agent type of the machine. */ readonly agentType: string; @@ -5033,31 +7611,7 @@ export interface operations { /** @description The ID of the machine. */ readonly id: string; /** @description The type of the machine. */ - readonly machineType: { - /** @description The number of CPUs. */ - readonly cpus: number; - /** @description The name of the GPU. */ - readonly gpu: string | null; - /** @description The label of the machine type. */ - readonly label: string; - /** @description Metadata for the machine type. */ - readonly metadata: - | ({ - [key: string]: unknown | undefined; - }) - | null; - /** @description The name of the NVLink GPU. */ - readonly nvlinkGpu: string | null; - /** @description The number of NVLink GPUs. */ - readonly nvlinkGpuCount: number | null; - /** - * Format: int64 - * @description The amount of RAM in bytes. - */ - readonly ram: number; - /** @description Whether the machine type supports NVLink. */ - readonly supportsNvlink: boolean; - }; + readonly machineType: string; /** @description The name of the machine. */ readonly name: string; /** @description The ID of the network the machine is on. */ @@ -5128,7 +7682,7 @@ export interface operations { * Update a machine * @description Updates a machine. */ - "mutation.machines.update": { + "machines-update": { parameters: { readonly path: { /** @description The ID of the machine to update. */ @@ -5191,12 +7745,14 @@ export interface operations { readonly data: { /** @description The accelerators of the machine. */ readonly accelerators?: - | readonly ({ + | (readonly ({ /** @description The number of accelerators of this type. */ readonly count: number; + /** @description The amount of memory the accelerator has, if applicable. */ + readonly memory: number | null; /** @description The name of the accelerator. */ readonly name: string; - })[] + })[]) | null; /** @description The agent type of the machine. */ readonly agentType: string; @@ -5240,31 +7796,7 @@ export interface operations { /** @description The ID of the machine. */ readonly id: string; /** @description The type of the machine. */ - readonly machineType: { - /** @description The number of CPUs. */ - readonly cpus: number; - /** @description The name of the GPU. */ - readonly gpu: string | null; - /** @description The label of the machine type. */ - readonly label: string; - /** @description Metadata for the machine type. */ - readonly metadata: - | ({ - [key: string]: unknown | undefined; - }) - | null; - /** @description The name of the NVLink GPU. */ - readonly nvlinkGpu: string | null; - /** @description The number of NVLink GPUs. */ - readonly nvlinkGpuCount: number | null; - /** - * Format: int64 - * @description The amount of RAM in bytes. - */ - readonly ram: number; - /** @description Whether the machine type supports NVLink. */ - readonly supportsNvlink: boolean; - }; + readonly machineType: string; /** @description The name of the machine. */ readonly name: string; /** @description The ID of the network the machine is on. */ @@ -5392,7 +7924,7 @@ export interface operations { * Delete a machine * @description Deletes a single machine by ID. */ - "mutation.machines.delete": { + "machines-delete": { parameters: { readonly path: { /** @description The ID of the machine to delete. */ @@ -5408,12 +7940,14 @@ export interface operations { readonly data: { /** @description The accelerators of the machine. */ readonly accelerators?: - | readonly ({ + | (readonly ({ /** @description The number of accelerators of this type. */ readonly count: number; + /** @description The amount of memory the accelerator has, if applicable. */ + readonly memory: number | null; /** @description The name of the accelerator. */ readonly name: string; - })[] + })[]) | null; /** @description The agent type of the machine. */ readonly agentType: string; @@ -5457,31 +7991,7 @@ export interface operations { /** @description The ID of the machine. */ readonly id: string; /** @description The type of the machine. */ - readonly machineType: { - /** @description The number of CPUs. */ - readonly cpus: number; - /** @description The name of the GPU. */ - readonly gpu: string | null; - /** @description The label of the machine type. */ - readonly label: string; - /** @description Metadata for the machine type. */ - readonly metadata: - | ({ - [key: string]: unknown | undefined; - }) - | null; - /** @description The name of the NVLink GPU. */ - readonly nvlinkGpu: string | null; - /** @description The number of NVLink GPUs. */ - readonly nvlinkGpuCount: number | null; - /** - * Format: int64 - * @description The amount of RAM in bytes. - */ - readonly ram: number; - /** @description Whether the machine type supports NVLink. */ - readonly supportsNvlink: boolean; - }; + readonly machineType: string; /** @description The name of the machine. */ readonly name: string; /** @description The ID of the network the machine is on. */ @@ -5609,7 +8119,7 @@ export interface operations { * List accessors * @description Lists the team members that can explicitly access a machine. */ - "query.machines.listAccessors": { + "machines-listAccessors": { parameters: { readonly query: { /** @description Fetch the next page of results after this cursor. */ @@ -5679,7 +8189,7 @@ export interface operations { * Add an accessor * @description Adds an accessor to a machine. */ - "mutation.machines.addAccessor": { + "machines-addAccessor": { parameters: { readonly path: { /** @description The ID of the machine to add an accessor to. */ @@ -5740,7 +8250,7 @@ export interface operations { * Get an accessor * @description Get an accessor for a machine. */ - "query.machines.getAccessor": { + "machines-getAccessor": { parameters: { readonly path: { /** @description The ID of the machine to get an accessor for. */ @@ -5795,7 +8305,7 @@ export interface operations { * Delete an accessor * @description Deletes an accessor from a machine. */ - "mutation.machines.removeAccessor": { + "machines-removeAccessor": { parameters: { readonly path: { /** @description The ID of the machine to add an accessor to. */ @@ -5850,7 +8360,7 @@ export interface operations { * Get desktop settings * @description Gets the machine settings that are used to configure desktop streaming. */ - "query.machines.getDesktop": { + "machines-getDesktop": { parameters: { readonly path: { /** @description The ID of the machine. */ @@ -5890,18 +8400,13 @@ export interface operations { * Restart a machine * @description Restarts a machine. */ - "mutation.machines.restart": { + "machines-restart": { parameters: { readonly path: { /** @description The ID of the machine to restart. */ id: string; }; }; - readonly requestBody: { - readonly content: { - readonly "application/json": Record; - }; - }; responses: { /** @description Successful response */ 200: { @@ -5911,12 +8416,14 @@ export interface operations { readonly data: { /** @description The accelerators of the machine. */ readonly accelerators?: - | readonly ({ + | (readonly ({ /** @description The number of accelerators of this type. */ readonly count: number; + /** @description The amount of memory the accelerator has, if applicable. */ + readonly memory: number | null; /** @description The name of the accelerator. */ readonly name: string; - })[] + })[]) | null; /** @description The agent type of the machine. */ readonly agentType: string; @@ -5960,31 +8467,7 @@ export interface operations { /** @description The ID of the machine. */ readonly id: string; /** @description The type of the machine. */ - readonly machineType: { - /** @description The number of CPUs. */ - readonly cpus: number; - /** @description The name of the GPU. */ - readonly gpu: string | null; - /** @description The label of the machine type. */ - readonly label: string; - /** @description Metadata for the machine type. */ - readonly metadata: - | ({ - [key: string]: unknown | undefined; - }) - | null; - /** @description The name of the NVLink GPU. */ - readonly nvlinkGpu: string | null; - /** @description The number of NVLink GPUs. */ - readonly nvlinkGpuCount: number | null; - /** - * Format: int64 - * @description The amount of RAM in bytes. - */ - readonly ram: number; - /** @description Whether the machine type supports NVLink. */ - readonly supportsNvlink: boolean; - }; + readonly machineType: string; /** @description The name of the machine. */ readonly name: string; /** @description The ID of the network the machine is on. */ @@ -6112,18 +8595,13 @@ export interface operations { * Start a machine * @description Starts a machine. */ - "mutation.machines.start": { + "machines-start": { parameters: { readonly path: { /** @description The ID of the machine to start. */ id: string; }; }; - readonly requestBody: { - readonly content: { - readonly "application/json": Record; - }; - }; responses: { /** @description Successful response */ 200: { @@ -6133,12 +8611,14 @@ export interface operations { readonly data: { /** @description The accelerators of the machine. */ readonly accelerators?: - | readonly ({ + | (readonly ({ /** @description The number of accelerators of this type. */ readonly count: number; + /** @description The amount of memory the accelerator has, if applicable. */ + readonly memory: number | null; /** @description The name of the accelerator. */ readonly name: string; - })[] + })[]) | null; /** @description The agent type of the machine. */ readonly agentType: string; @@ -6179,34 +8659,10 @@ export interface operations { * @description The date the machine was last modified. */ readonly dtModified: Date; - /** @description The ID of the machine. */ - readonly id: string; - /** @description The type of the machine. */ - readonly machineType: { - /** @description The number of CPUs. */ - readonly cpus: number; - /** @description The name of the GPU. */ - readonly gpu: string | null; - /** @description The label of the machine type. */ - readonly label: string; - /** @description Metadata for the machine type. */ - readonly metadata: - | ({ - [key: string]: unknown | undefined; - }) - | null; - /** @description The name of the NVLink GPU. */ - readonly nvlinkGpu: string | null; - /** @description The number of NVLink GPUs. */ - readonly nvlinkGpuCount: number | null; - /** - * Format: int64 - * @description The amount of RAM in bytes. - */ - readonly ram: number; - /** @description Whether the machine type supports NVLink. */ - readonly supportsNvlink: boolean; - }; + /** @description The ID of the machine. */ + readonly id: string; + /** @description The type of the machine. */ + readonly machineType: string; /** @description The name of the machine. */ readonly name: string; /** @description The ID of the network the machine is on. */ @@ -6334,18 +8790,13 @@ export interface operations { * Stop a machine * @description Stops a machine. */ - "mutation.machines.stop": { + "machines-stop": { parameters: { readonly path: { /** @description The ID of the machine to stop. */ id: string; }; }; - readonly requestBody: { - readonly content: { - readonly "application/json": Record; - }; - }; responses: { /** @description Successful response */ 200: { @@ -6355,12 +8806,14 @@ export interface operations { readonly data: { /** @description The accelerators of the machine. */ readonly accelerators?: - | readonly ({ + | (readonly ({ /** @description The number of accelerators of this type. */ readonly count: number; + /** @description The amount of memory the accelerator has, if applicable. */ + readonly memory: number | null; /** @description The name of the accelerator. */ readonly name: string; - })[] + })[]) | null; /** @description The agent type of the machine. */ readonly agentType: string; @@ -6404,31 +8857,7 @@ export interface operations { /** @description The ID of the machine. */ readonly id: string; /** @description The type of the machine. */ - readonly machineType: { - /** @description The number of CPUs. */ - readonly cpus: number; - /** @description The name of the GPU. */ - readonly gpu: string | null; - /** @description The label of the machine type. */ - readonly label: string; - /** @description Metadata for the machine type. */ - readonly metadata: - | ({ - [key: string]: unknown | undefined; - }) - | null; - /** @description The name of the NVLink GPU. */ - readonly nvlinkGpu: string | null; - /** @description The number of NVLink GPUs. */ - readonly nvlinkGpuCount: number | null; - /** - * Format: int64 - * @description The amount of RAM in bytes. - */ - readonly ram: number; - /** @description Whether the machine type supports NVLink. */ - readonly supportsNvlink: boolean; - }; + readonly machineType: string; /** @description The name of the machine. */ readonly name: string; /** @description The ID of the network the machine is on. */ @@ -6556,7 +8985,7 @@ export interface operations { * List notebooks * @description Lists the notebooks you have access to in the current team */ - "query.notebooks.list": { + "notebooks-list": { parameters: { readonly query: { /** @description Fetch the next page of results after this cursor. */ @@ -6668,7 +9097,7 @@ export interface operations { * List private networks * @description Fetches a list of private networks. */ - "query.privateNetworks.list": { + "privateNetworks-list": { parameters: { readonly query: { /** @description Fetch the next page of results after this cursor. */ @@ -6722,7 +9151,7 @@ export interface operations { * Create a private network * @description Creates a new private network. */ - "mutation.privateNetworks.create": { + "privateNetworks-create": { readonly requestBody: { readonly content: { readonly "application/json": { @@ -6770,7 +9199,7 @@ export interface operations { * Get a private network * @description Fetches a single private network by ID. */ - "query.privateNetworks.get": { + "privateNetworks-get": { parameters: { readonly path: { /** @description The ID of the private network to fetch. */ @@ -6781,25 +9210,27 @@ export interface operations { /** @description Successful response */ 200: { content: { - readonly "application/json": { - /** - * Format: date-time - * @description The date the private network was created. - */ - readonly dtCreated: Date; - /** @description The date the private network was deleted. */ - readonly dtDeleted?: (Record | Date) | null; - /** @description The ID of the private network. */ - readonly id: string; - /** @description The name of the private network. */ - readonly name: string; - /** @description The subnet mask of the private network. */ - readonly netmask: string; - /** @description The network prefix of the private network. */ - readonly network: string; - /** @description The region the private network is in. */ - readonly region: string; - }; + readonly "application/json": + | ({ + /** + * Format: date-time + * @description The date the private network was created. + */ + readonly dtCreated: Date; + /** @description The date the private network was deleted. */ + readonly dtDeleted?: (Record | Date) | null; + /** @description The ID of the private network. */ + readonly id: string; + /** @description The name of the private network. */ + readonly name: string; + /** @description The subnet mask of the private network. */ + readonly netmask: string; + /** @description The network prefix of the private network. */ + readonly network: string; + /** @description The region the private network is in. */ + readonly region: string; + }) + | null; }; }; default: components["responses"]["error"]; @@ -6809,7 +9240,7 @@ export interface operations { * Update a private network * @description Updates a single private network by ID. */ - "mutation.privateNetworks.update": { + "privateNetworks-update": { parameters: { readonly path: { /** @description The ID of the private network to update. */ @@ -6856,7 +9287,7 @@ export interface operations { * Delete a private network * @description Deletes a single private network by ID. */ - "mutation.privateNetworks.delete": { + "privateNetworks-delete": { parameters: { readonly path: { /** @description The ID of the private network to delete. */ @@ -6881,7 +9312,7 @@ export interface operations { * @description * List projects. This endpoint supports pagination and sorting. */ - "query.projects.list": { + "projects-list": { parameters: { readonly query: { /** @description Fetch the next page of results after this cursor. */ @@ -6946,7 +9377,7 @@ export interface operations { * Create a project * @description Create a project */ - "mutation.projects.create": { + "projects-create": { readonly requestBody: { readonly content: { readonly "application/json": { @@ -7000,7 +9431,7 @@ export interface operations { * Get a project by its ID * @description Get a project by its ID. */ - "query.projects.get": { + "projects-get": { parameters: { readonly path: { /** @description The ID of the project to get */ @@ -7052,7 +9483,7 @@ export interface operations { * Update a project * @description Update a project */ - "mutation.projects.update": { + "projects-update": { parameters: { readonly path: { /** @description The ID of the project to update */ @@ -7112,7 +9543,7 @@ export interface operations { * Delete a project * @description Delete a project */ - "mutation.projects.delete": { + "projects-delete": { parameters: { readonly path: { /** @description The ID of the project to delete */ @@ -7164,7 +9595,7 @@ export interface operations { * List a project's activity * @description Fetches a list of activity items for a given project. */ - "query.projectActivity.list": { + "projectActivity-list": { parameters: { readonly query: { /** @description Fetch the next page of results after this cursor. */ @@ -7211,50 +9642,686 @@ export interface operations { readonly actor?: | ({ /** - * @description The avatar URL of the actor + * @description The avatar URL of the actor + * @default null + */ + readonly avatarUrl?: string | null; + /** + * @description The email of the actor + * @default null + */ + readonly email?: string | null; + /** + * @description The full name of the actor (e.g. "John Doe") + * @default null + */ + readonly fullName?: string | null; + }) + | null; + /** + * @description The data associated with the activity item + * @default null + */ + readonly data?: { + readonly from: number; + readonly to: number; + } | null; + /** + * @description The deployment associated with the activity item + * @default null + */ + readonly deployment?: { + /** @description The ID of the deployment */ + readonly id: string; + /** @description The name of the deployment */ + readonly name: string; + } | null; + /** + * Format: date-time + * @description The date the activity item was created + */ + readonly dtCreated: Date; + /** + * Format: uuid + * @description ID of the activity item + */ + readonly id: string; + })[]; + /** @description The cursor required to fetch the next page of results. i.e. `?after=nextPage`. This is `null` when there is no next page. */ + readonly nextPage?: string; + }; + }; + }; + default: components["responses"]["error"]; + }; + }; + /** + * List a project's apps + * @description Fetches a list of apps for a project. + */ + "projectApps-list": { + parameters: { + readonly query: { + /** @description Fetch the next page of results after this cursor. */ + after?: string; + /** @description The number of items to fetch after this page. */ + limit?: number; + /** @description Order results by one of these fields. */ + orderBy?: "dtCreated"; + /** @description The order to sort the results by. */ + order?: "asc" | "desc"; + /** @description The name of the app to filter by */ + name?: string; + }; + readonly path: { + /** @description The ID of the project to fetch apps for */ + id: string; + }; + }; + responses: { + /** @description Successful response */ + 200: { + content: { + readonly "application/json": { + /** @description Whether there are more pages of results available. */ + readonly hasMore: boolean; + /** @description The items on this page. */ + readonly items: readonly ({ + /** + * Format: date-time + * @description The date the deployment was created + */ + readonly dtCreated: Date; + /** @description The unique endpoint for the deployment */ + readonly endpoint: string; + /** @description The ID of the deployment */ + readonly id: string; + /** + * @description The latest deployment configuration. If invalid, null is returned. + * @default null + */ + readonly latestSpec?: + | ({ + /** @description The data for the deployment spec */ + readonly data?: + | ( + | ( + | ({ + /** @enum {string} */ + readonly apiVersion: "v0alpha0"; + readonly command?: readonly (string)[]; + readonly containerRegistry?: string; + /** @default true */ + readonly enabled?: boolean; + readonly env?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly healthChecks?: { + readonly liveness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly readiness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly startup?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + }; + readonly image: string; + readonly models?: readonly ({ + readonly id: string; + readonly path?: string; + })[]; + readonly name: string; + /** @default 80 */ + readonly port?: number; + readonly region?: string; + readonly repositories?: { + readonly dataset: string; + readonly mountPath?: string; + readonly repositories: readonly ({ + readonly name: string; + readonly password?: string; + readonly ref?: string; + readonly url: string; + readonly username?: string; + })[]; + }; + readonly resources: { + readonly autoscaling?: { + readonly enabled?: boolean; + readonly maxReplicas: number; + readonly metrics: readonly ( + | { + /** @enum {string} */ + readonly metric: "requestDuration"; + /** @enum {string} */ + readonly summary: "average"; + readonly value: number; + } + | ({ + /** @enum {string} */ + readonly metric: "cpu" | "memory"; + /** @enum {string} */ + readonly summary: "average"; + readonly value: number; + }) + )[]; + }; + readonly instanceType: string; + /** @default 1 */ + readonly replicas?: number; + }; + }) + | ({ + /** @enum {string} */ + readonly apiVersion: "v0alpha1"; + readonly command?: readonly (string)[]; + readonly containerRegistry?: string; + /** @default true */ + readonly enabled?: boolean; + readonly env?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly healthchecks?: { + readonly liveness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly readiness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly startup?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + }; + readonly healthChecks?: { + readonly liveness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly readiness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly startup?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + }; + readonly image: string; + readonly integrations?: readonly ({ + readonly id: string; + readonly name: string; + /** @default /opt/models */ + readonly path?: string; + /** @enum {string} */ + readonly type: "model"; + } | { + readonly accessKeyId: string; + readonly endpoint?: string; + readonly name: string; + readonly path?: string; + readonly region?: string; + readonly secretAccessKey: string; + /** @enum {string} */ + readonly type: "s3"; + readonly url: string; + } | { + readonly name: string; + /** @enum {string} */ + readonly type: "volume"; + } | { + readonly name: string; + readonly path?: string; + /** @enum {string} */ + readonly type: "git-lfs"; + /** Format: uri */ + readonly url: string; + })[]; + readonly name: string; + readonly region?: string; + readonly resources: { + readonly autoscaling?: { + readonly enabled?: boolean; + readonly maxReplicas: number; + readonly metrics: readonly ( + | { + /** @enum {string} */ + readonly metric: "requestDuration"; + /** @enum {string} */ + readonly summary: "average"; + readonly value: number; + } + | ({ + /** @enum {string} */ + readonly metric: "cpu" | "memory"; + /** @enum {string} */ + readonly summary: "average"; + readonly value: number; + }) + )[]; + }; + readonly machineType: string; + readonly ports: readonly (number)[]; + /** @default 1 */ + readonly replicas?: number; + }; + }) + ) + | ({ + readonly apiVersion: "v1" | "latest"; + readonly command?: readonly (string)[]; + readonly containerRegistry?: string; + /** @default true */ + readonly enabled?: boolean; + readonly env?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly healthchecks?: { + readonly liveness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly readiness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly startup?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + }; + readonly healthChecks?: { + readonly liveness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly readiness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly startup?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + }; + readonly image: string; + readonly integrations?: readonly ({ + readonly id: string; + readonly name: string; + /** @default /opt/models */ + readonly path?: string; + /** @enum {string} */ + readonly type: "model"; + } | { + readonly accessKeyId: string; + readonly endpoint?: string; + readonly name: string; + readonly path?: string; + readonly region?: string; + readonly secretAccessKey: string; + /** @enum {string} */ + readonly type: "s3"; + readonly url: string; + } | { + readonly name: string; + /** @enum {string} */ + readonly type: "volume"; + } | { + readonly name: string; + readonly path?: string; + /** @enum {string} */ + readonly type: "git-lfs"; + /** Format: uri */ + readonly url: string; + })[]; + readonly name: string; + readonly region?: string; + readonly resources: { + readonly autoscaling?: { + readonly enabled?: boolean; + readonly maxReplicas: number; + readonly metrics: readonly ( + | { + /** @enum {string} */ + readonly metric: "requestDuration"; + /** @enum {string} */ + readonly summary: "average"; + readonly value: number; + } + | ({ + /** @enum {string} */ + readonly metric: "cpu" | "memory"; + /** @enum {string} */ + readonly summary: "average"; + readonly value: number; + }) + )[]; + }; + readonly machineType: string; + readonly ports: readonly (number)[]; + /** @default 1 */ + readonly replicas?: number; + }; + }) + ) + | null; + /** @description The ID of the deployment the spec belongs to */ + readonly deploymentId: string; + /** + * Format: date-time + * @description The date the deployment was marked "healthy" * @default null */ - readonly avatarUrl?: string | null; + readonly dtHealthy?: Date; /** - * @description The email of the actor + * @description The fatal configuration error. Only present if the cluster was unable to apply the entire deployment configuration. This is not the same as an instance error. * @default null */ - readonly email?: string | null; + readonly error?: string | null; /** - * @description The full name of the actor (e.g. "John Doe") + * Format: date-time + * @description The date the deployment configuration was applied to the cluster * @default null */ - readonly fullName?: string | null; + readonly externalApplied?: Date; + /** @description The ID of the deployment spec */ + readonly id: string; + /** + * @description Metadata about the source of the configuration + * @default null + */ + readonly metadata?: + | ({ + readonly gitHeaders?: { + readonly "x-git-actor": string; + readonly "x-git-host": "github" | "gitlab"; + readonly "x-git-owner": string; + readonly "x-git-ref": string; + readonly "x-git-repo": string; + readonly "x-git-sha": string; + }; + }) + | null; + /** @description The ID of the user the deployment belongs to */ + readonly userId: string; }) | null; /** - * @description The data associated with the activity item - * @default null - */ - readonly data?: { - readonly from: number; - readonly to: number; - } | null; - /** - * @description The deployment associated with the activity item + * @description The last version hash for the deployment * @default null */ - readonly deployment?: { - /** @description The ID of the deployment */ - readonly id: string; - /** @description The name of the deployment */ - readonly name: string; - } | null; - /** - * Format: date-time - * @description The date the activity item was created - */ - readonly dtCreated: Date; - /** - * Format: uuid - * @description ID of the activity item - */ - readonly id: string; + readonly latestSpecHash?: string | null; + /** @description The name of the deployment */ + readonly name: string; + /** @description The ID of the project the deployment belongs to */ + readonly projectId: string; + /** @description The ID of the team the deployment belongs to */ + readonly teamId: string; })[]; /** @description The cursor required to fetch the next page of results. i.e. `?after=nextPage`. This is `null` when there is no next page. */ readonly nextPage?: string; @@ -7268,7 +10335,7 @@ export interface operations { * List a project's collaborators * @description Fetches a list of collaborators for a project. */ - "query.projectCollaborators.list": { + "projectCollaborators-list": { parameters: { readonly query: { /** @description Fetch the next page of results after this cursor. */ @@ -7343,7 +10410,7 @@ export interface operations { * Create a project collaborator * @description Adds a new collaborator to a project. */ - "mutation.projectCollaborators.create": { + "projectCollaborators-create": { parameters: { readonly path: { /** @description The ID of the project. */ @@ -7409,7 +10476,7 @@ export interface operations { * Delete a project collaborator * @description Removes a collaborator from a project. */ - "mutation.projectCollaborators.delete": { + "projectCollaborators-delete": { parameters: { readonly path: { /** @description The ID of the project. */ @@ -7435,7 +10502,7 @@ export interface operations { * List a project's deployments * @description Fetches a list of deployments for a project. */ - "query.projectsDeployments.list": { + "projectDeployments-list": { parameters: { readonly query: { /** @description Fetch the next page of results after this cursor. */ @@ -7446,7 +10513,7 @@ export interface operations { orderBy?: "dtCreated"; /** @description The order to sort the results by. */ order?: "asc" | "desc"; - /** @description The name of the deployment to filter by */ + /** @description The name of the app to filter by */ name?: string; }; readonly path: { @@ -7481,130 +10548,332 @@ export interface operations { /** @description The data for the deployment spec */ readonly data?: | ( - | ({ - readonly apiVersion: "v0alpha0" | "latest"; - readonly command?: readonly (string)[]; - readonly containerRegistry?: string; - /** @default true */ - readonly enabled?: boolean; - readonly env?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly healthChecks?: { - readonly liveness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - readonly readiness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; + | ( + | ({ + /** @enum {string} */ + readonly apiVersion: "v0alpha0"; + readonly command?: readonly (string)[]; + readonly containerRegistry?: string; + /** @default true */ + readonly enabled?: boolean; + readonly env?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly healthChecks?: { + readonly liveness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly readiness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly startup?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; }; - readonly startup?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ + readonly image: string; + readonly models?: readonly ({ + readonly id: string; + readonly path?: string; + })[]; + readonly name: string; + /** @default 80 */ + readonly port?: number; + readonly region?: string; + readonly repositories?: { + readonly dataset: string; + readonly mountPath?: string; + readonly repositories: readonly ({ readonly name: string; - readonly value: string; + readonly password?: string; + readonly ref?: string; + readonly url: string; + readonly username?: string; })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; + }; + readonly resources: { + readonly autoscaling?: { + readonly enabled?: boolean; + readonly maxReplicas: number; + readonly metrics: readonly ( + | { + /** @enum {string} */ + readonly metric: "requestDuration"; + /** @enum {string} */ + readonly summary: "average"; + readonly value: number; + } + | ({ + /** @enum {string} */ + readonly metric: "cpu" | "memory"; + /** @enum {string} */ + readonly summary: "average"; + readonly value: number; + }) + )[]; }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; + readonly instanceType: string; + /** @default 1 */ + readonly replicas?: number; }; - }; - readonly image: string; - readonly models?: readonly ({ - readonly id: string; - readonly path?: string; - })[]; - readonly name: string; - /** @default 80 */ - readonly port?: number; - readonly region?: string; - readonly repositories?: { - readonly dataset: string; - readonly mountPath?: string; - readonly repositories: readonly ({ + }) + | ({ + /** @enum {string} */ + readonly apiVersion: "v0alpha1"; + readonly command?: readonly (string)[]; + readonly containerRegistry?: string; + /** @default true */ + readonly enabled?: boolean; + readonly env?: readonly ({ readonly name: string; - readonly password?: string; - readonly ref?: string; + readonly value: string; + })[]; + readonly healthchecks?: { + readonly liveness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly readiness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly startup?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + }; + readonly healthChecks?: { + readonly liveness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly readiness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly startup?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + }; + readonly image: string; + readonly integrations?: readonly ({ + readonly id: string; + readonly name: string; + /** @default /opt/models */ + readonly path?: string; + /** @enum {string} */ + readonly type: "model"; + } | { + readonly accessKeyId: string; + readonly endpoint?: string; + readonly name: string; + readonly path?: string; + readonly region?: string; + readonly secretAccessKey: string; + /** @enum {string} */ + readonly type: "s3"; + readonly url: string; + } | { + readonly name: string; + /** @enum {string} */ + readonly type: "volume"; + } | { + readonly name: string; + readonly path?: string; + /** @enum {string} */ + readonly type: "git-lfs"; + /** Format: uri */ readonly url: string; - readonly username?: string; })[]; - }; - readonly resources: { - readonly autoscaling?: { - readonly enabled?: boolean; - readonly maxReplicas: number; - readonly metrics: readonly ( - | { - /** @enum {string} */ - readonly metric: "requestDuration"; - /** @enum {string} */ - readonly summary: "average"; - readonly value: number; - } - | ({ - /** @enum {string} */ - readonly metric: "cpu" | "memory"; - /** @enum {string} */ - readonly summary: "average"; - readonly value: number; - }) - )[]; + readonly name: string; + readonly region?: string; + readonly resources: { + readonly autoscaling?: { + readonly enabled?: boolean; + readonly maxReplicas: number; + readonly metrics: readonly ( + | { + /** @enum {string} */ + readonly metric: "requestDuration"; + /** @enum {string} */ + readonly summary: "average"; + readonly value: number; + } + | ({ + /** @enum {string} */ + readonly metric: "cpu" | "memory"; + /** @enum {string} */ + readonly summary: "average"; + readonly value: number; + }) + )[]; + }; + readonly machineType: string; + readonly ports: readonly (number)[]; + /** @default 1 */ + readonly replicas?: number; }; - readonly instanceType: string; - /** @default 1 */ - readonly replicas?: number; - }; - }) + }) + ) | ({ - /** @enum {string} */ - readonly apiVersion: "v0alpha1"; + readonly apiVersion: "v1" | "latest"; readonly command?: readonly (string)[]; readonly containerRegistry?: string; /** @default true */ @@ -7624,7 +10893,7 @@ export interface operations { readonly initialDelaySeconds?: number; readonly path: string; readonly periodSeconds?: number; - readonly port: number; + readonly port?: number; readonly timeoutSeconds?: number; } | { readonly exec: { @@ -7645,7 +10914,7 @@ export interface operations { readonly initialDelaySeconds?: number; readonly path: string; readonly periodSeconds?: number; - readonly port: number; + readonly port?: number; readonly timeoutSeconds?: number; } | { readonly exec: { @@ -7666,7 +10935,7 @@ export interface operations { readonly initialDelaySeconds?: number; readonly path: string; readonly periodSeconds?: number; - readonly port: number; + readonly port?: number; readonly timeoutSeconds?: number; } | { readonly exec: { @@ -7689,7 +10958,7 @@ export interface operations { readonly initialDelaySeconds?: number; readonly path: string; readonly periodSeconds?: number; - readonly port: number; + readonly port?: number; readonly timeoutSeconds?: number; } | { readonly exec: { @@ -7710,7 +10979,7 @@ export interface operations { readonly initialDelaySeconds?: number; readonly path: string; readonly periodSeconds?: number; - readonly port: number; + readonly port?: number; readonly timeoutSeconds?: number; } | { readonly exec: { @@ -7731,7 +11000,7 @@ export interface operations { readonly initialDelaySeconds?: number; readonly path: string; readonly periodSeconds?: number; - readonly port: number; + readonly port?: number; readonly timeoutSeconds?: number; } | { readonly exec: { @@ -7745,27 +11014,36 @@ export interface operations { }; readonly image: string; readonly integrations?: readonly ({ + readonly id: string; + readonly name: string; + /** @default /opt/models */ + readonly path?: string; + /** @enum {string} */ + readonly type: "model"; + } | { + readonly accessKeyId: string; + readonly endpoint?: string; + readonly name: string; + readonly path?: string; + readonly region?: string; + readonly secretAccessKey: string; + /** @enum {string} */ + readonly type: "s3"; + readonly url: string; + } | { readonly name: string; /** @enum {string} */ readonly type: "volume"; - })[]; - readonly models?: readonly ({ - readonly id: string; + } | { + readonly name: string; readonly path?: string; + /** @enum {string} */ + readonly type: "git-lfs"; + /** Format: uri */ + readonly url: string; })[]; readonly name: string; readonly region?: string; - readonly repositories?: { - readonly dataset: string; - readonly mountPath?: string; - readonly repositories: readonly ({ - readonly name: string; - readonly password?: string; - readonly ref?: string; - readonly url: string; - readonly username?: string; - })[]; - }; readonly resources: { readonly autoscaling?: { readonly enabled?: boolean; @@ -7837,16 +11115,381 @@ export interface operations { }) | null; /** - * @description The last version hash for the deployment + * @description The last version hash for the deployment + * @default null + */ + readonly latestSpecHash?: string | null; + /** @description The name of the deployment */ + readonly name: string; + /** @description The ID of the project the deployment belongs to */ + readonly projectId: string; + /** @description The ID of the team the deployment belongs to */ + readonly teamId: string; + })[]; + /** @description The cursor required to fetch the next page of results. i.e. `?after=nextPage`. This is `null` when there is no next page. */ + readonly nextPage?: string; + }; + }; + }; + default: components["responses"]["error"]; + }; + }; + /** + * List a project's models + * @description Fetches a list of models for a project. + */ + "projectModels-list": { + parameters: { + readonly query: { + /** @description Fetch the next page of results after this cursor. */ + after?: string; + /** @description The number of items to fetch after this page. */ + limit?: number; + /** @description Order results by one of these fields. */ + orderBy?: "dtCreated"; + /** @description The order to sort the results by. */ + order?: "asc" | "desc"; + /** @description The name of the model to filter by */ + name?: string; + }; + readonly path: { + /** @description The ID of the project to fetch models for */ + id: string; + }; + }; + responses: { + /** @description Successful response */ + 200: { + content: { + readonly "application/json": { + /** @description Whether there are more pages of results available. */ + readonly hasMore: boolean; + /** @description The items on this page. */ + readonly items: readonly ({ + /** @description The description of the dataset */ + readonly description: string | null; + /** + * Format: date-time + * @description The date the dataset was created + */ + readonly dtCreated: Date; + /** + * Format: date-time + * @description The date the dataset was last modified + */ + readonly dtModified: Date; + /** @description The ID of the dataset */ + readonly id: string; + /** @description Whether the dataset is public */ + readonly isPublic: boolean; + /** @description The name of the dataset */ + readonly name: string; + /** @description The ID of the project */ + readonly projectId: string | null; + /** @description The ID of the storage provider */ + readonly storageProviderId: string | null; + /** @description The ID of the team that owns the dataset */ + readonly teamId: string; + })[]; + /** @description The cursor required to fetch the next page of results. i.e. `?after=nextPage`. This is `null` when there is no next page. */ + readonly nextPage?: string; + }; + }; + }; + default: components["responses"]["error"]; + }; + }; + /** + * Add a model to a project + * @description Adds a model to a project. + */ + "projectModels-add": { + parameters: { + readonly path: { + /** @description The ID of the project to add the model to */ + id: string; + /** @description The ID of the model to add to the project */ + modelId: string; + }; + }; + responses: { + /** @description Successful response */ + 200: { + content: { + readonly "application/json": { + /** @description The description of the dataset */ + readonly description: string | null; + /** + * Format: date-time + * @description The date the dataset was created + */ + readonly dtCreated: Date; + /** + * Format: date-time + * @description The date the dataset was last modified + */ + readonly dtModified: Date; + /** @description The ID of the dataset */ + readonly id: string; + /** @description Whether the dataset is public */ + readonly isPublic: boolean; + /** @description The name of the dataset */ + readonly name: string; + /** @description The ID of the project */ + readonly projectId: string | null; + /** @description The ID of the storage provider */ + readonly storageProviderId: string | null; + /** @description The ID of the team that owns the dataset */ + readonly teamId: string; + }; + }; + }; + default: components["responses"]["error"]; + }; + }; + /** + * Remove a model from project + * @description Remove a model from project. + */ + "projectModels-remove": { + parameters: { + readonly path: { + /** @description The ID of the project to remove the model from */ + id: string; + /** @description The ID of the model to remove from the project */ + modelId: string; + }; + }; + responses: { + /** @description Successful response */ + 200: { + content: { + readonly "application/json": { + /** @description The description of the dataset */ + readonly description: string | null; + /** + * Format: date-time + * @description The date the dataset was created + */ + readonly dtCreated: Date; + /** + * Format: date-time + * @description The date the dataset was last modified + */ + readonly dtModified: Date; + /** @description The ID of the dataset */ + readonly id: string; + /** @description Whether the dataset is public */ + readonly isPublic: boolean; + /** @description The name of the dataset */ + readonly name: string; + /** @description The ID of the project */ + readonly projectId: string | null; + /** @description The ID of the storage provider */ + readonly storageProviderId: string | null; + /** @description The ID of the team that owns the dataset */ + readonly teamId: string; + }; + }; + }; + default: components["responses"]["error"]; + }; + }; + /** + * Remove a notebook from a project + * @description Remove a notebook from a project. + */ + "projectNotebooks-remove": { + parameters: { + readonly path: { + /** @description The ID of the project to remove the notebook from */ + id: string; + /** @description The ID of the notebook to remove from the project */ + notebookId: string; + }; + }; + responses: { + /** @description Successful response */ + 200: { + content: { + readonly "application/json": { + /** + * Format: date-time + * @description The date the notebook was created + */ + readonly dtCreated: Date; + /** + * Format: date-time + * @description The date the notebook was last modified + */ + readonly dtModified: Date; + /** + * Format: date-time + * @description The date the notebook was last started + */ + readonly dtStarted: Date; + /** @description The ID of the notebook */ + readonly id: string; + /** @description The type of the machine the notebook is running on */ + readonly machineType: string | null; + /** @description The name of the notebook */ + readonly name: string; + /** @description The notebook repo ID */ + readonly notebookRepoId: string | null; + /** @description The project ID */ + readonly projectId: string; + /** @description The last user to start the notebook */ + readonly startedByUser: { + /** + * Format: email + * @description The email address of the user + */ + readonly email: string; + /** + * @description The first name of the user * @default null */ - readonly latestSpecHash?: string | null; - /** @description The name of the deployment */ + readonly firstName?: string | null; + /** @description The ID of the user */ + readonly id: string; + /** + * @description The last name of the user + * @default null + */ + readonly lastName?: string | null; + /** + * @description The URL of the team's profile image. + * @default null + */ + readonly publicProfileImageUrl?: string | null; + }; + /** + * @description The state of the notebook. + * @enum {string} + */ + readonly state: + | "Cancel" + | "Cancelled" + | "Error" + | "Failed" + | "Pending" + | "Preempted" + | "Provisioned" + | "Running" + | "Stopped"; + }; + }; + }; + default: components["responses"]["error"]; + }; + }; + /** + * List a project's notebooks + * @description Fetches a list of notebooks for a project. + */ + "projectNotebooks-list": { + parameters: { + readonly query: { + /** @description Fetch the next page of results after this cursor. */ + after?: string; + /** @description The number of items to fetch after this page. */ + limit?: number; + /** @description Order results by one of these fields. */ + orderBy?: "dtCreated" | "name"; + /** @description The order to sort the results by. */ + order?: "asc" | "desc"; + /** @description The notebook name to filter by */ + name?: string; + /** @description The state of the notebook. */ + state?: + | "Cancel" + | "Cancelled" + | "Error" + | "Failed" + | "Pending" + | "Preempted" + | "Provisioned" + | "Running" + | "Stopped"; + }; + readonly path: { + /** @description The ID of the project to fetch notebooks for */ + id: string; + }; + }; + responses: { + /** @description Successful response */ + 200: { + content: { + readonly "application/json": { + /** @description Whether there are more pages of results available. */ + readonly hasMore: boolean; + /** @description The items on this page. */ + readonly items: readonly ({ + /** + * Format: date-time + * @description The date the notebook was created + */ + readonly dtCreated: Date; + /** + * Format: date-time + * @description The date the notebook was last modified + */ + readonly dtModified: Date; + /** + * Format: date-time + * @description The date the notebook was last started + */ + readonly dtStarted: Date; + /** @description The ID of the notebook */ + readonly id: string; + /** @description The type of the machine the notebook is running on */ + readonly machineType: string | null; + /** @description The name of the notebook */ readonly name: string; - /** @description The ID of the project the deployment belongs to */ + /** @description The notebook repo ID */ + readonly notebookRepoId: string | null; + /** @description The project ID */ readonly projectId: string; - /** @description The ID of the team the deployment belongs to */ - readonly teamId: string; + /** @description The last user to start the notebook */ + readonly startedByUser: { + /** + * Format: email + * @description The email address of the user + */ + readonly email: string; + /** + * @description The first name of the user + * @default null + */ + readonly firstName?: string | null; + /** @description The ID of the user */ + readonly id: string; + /** + * @description The last name of the user + * @default null + */ + readonly lastName?: string | null; + /** + * @description The URL of the team's profile image. + * @default null + */ + readonly publicProfileImageUrl?: string | null; + }; + /** + * @description The state of the notebook. + * @enum {string} + */ + readonly state: + | "Cancel" + | "Cancelled" + | "Error" + | "Failed" + | "Pending" + | "Preempted" + | "Provisioned" + | "Running" + | "Stopped"; })[]; /** @description The cursor required to fetch the next page of results. i.e. `?after=nextPage`. This is `null` when there is no next page. */ readonly nextPage?: string; @@ -7856,11 +11499,99 @@ export interface operations { default: components["responses"]["error"]; }; }; + /** + * Add a notebook to a project + * @description Adds a notebook to a project. + */ + "projectNotebooks-add": { + parameters: { + readonly path: { + /** @description The ID of the project to add the notebook to */ + id: string; + /** @description The ID of the notebook to add to the project */ + notebookId: string; + }; + }; + responses: { + /** @description Successful response */ + 200: { + content: { + readonly "application/json": { + /** + * Format: date-time + * @description The date the notebook was created + */ + readonly dtCreated: Date; + /** + * Format: date-time + * @description The date the notebook was last modified + */ + readonly dtModified: Date; + /** + * Format: date-time + * @description The date the notebook was last started + */ + readonly dtStarted: Date; + /** @description The ID of the notebook */ + readonly id: string; + /** @description The type of the machine the notebook is running on */ + readonly machineType: string | null; + /** @description The name of the notebook */ + readonly name: string; + /** @description The notebook repo ID */ + readonly notebookRepoId: string | null; + /** @description The project ID */ + readonly projectId: string; + /** @description The last user to start the notebook */ + readonly startedByUser: { + /** + * Format: email + * @description The email address of the user + */ + readonly email: string; + /** + * @description The first name of the user + * @default null + */ + readonly firstName?: string | null; + /** @description The ID of the user */ + readonly id: string; + /** + * @description The last name of the user + * @default null + */ + readonly lastName?: string | null; + /** + * @description The URL of the team's profile image. + * @default null + */ + readonly publicProfileImageUrl?: string | null; + }; + /** + * @description The state of the notebook. + * @enum {string} + */ + readonly state: + | "Cancel" + | "Cancelled" + | "Error" + | "Failed" + | "Pending" + | "Preempted" + | "Provisioned" + | "Running" + | "Stopped"; + }; + }; + }; + default: components["responses"]["error"]; + }; + }; /** * List a project's secrets * @description Fetches a list of secrets for a project. */ - "query.projectSecrets.list": { + "projectSecrets-list": { parameters: { readonly query: { /** @description Fetch the next page of results after this cursor. */ @@ -7911,7 +11642,7 @@ export interface operations { * Create a project secret * @description Creates a new secret for a project. */ - "mutation.projectSecrets.create": { + "projectSecrets-create": { parameters: { readonly path: { /** @description The ID of the project where the secret is stored. */ @@ -7955,7 +11686,7 @@ export interface operations { * Get a project secret * @description Fetches a secret for a project. */ - "query.projectSecrets.getProjectSecret": { + "projectSecrets-getProjectSecret": { parameters: { readonly path: { /** @description The ID of the project where the secret is stored. */ @@ -7991,7 +11722,7 @@ export interface operations { * Delete a project secret * @description Deletes a secret for a project. */ - "mutation.projectSecrets.delete": { + "projectSecrets-delete": { parameters: { readonly path: { /** @description The ID of the project where the secret is stored. */ @@ -8017,7 +11748,7 @@ export interface operations { * Update a project secret * @description Update the value of a secret for a project. */ - "mutation.projectSecrets.update": { + "projectSecrets-update": { parameters: { readonly path: { /** @description The ID of the project where the secret is stored. */ @@ -8061,7 +11792,7 @@ export interface operations { * List public IPs * @description Fetches a list of public IPs. */ - "query.publicIps.list": { + "publicIps-list": { parameters: { readonly query: { /** @description Fetch the next page of results after this cursor. */ @@ -8108,7 +11839,7 @@ export interface operations { * Claim a public IP * @description Claims a public IP. */ - "mutation.publicIps.claim": { + "publicIps-claim": { readonly requestBody: { readonly content: { readonly "application/json": { @@ -8143,7 +11874,7 @@ export interface operations { * Assign a public IP * @description Assigns a public IP to a machine. */ - "mutation.publicIps.assign": { + "publicIps-assign": { parameters: { readonly path: { /** @description The IP address of the public IP. */ @@ -8184,7 +11915,7 @@ export interface operations { * Release a public IP * @description Releases a public IP. */ - "mutation.publicIps.release": { + "publicIps-release": { parameters: { readonly path: { /** @description The IP address of the public IP. */ @@ -8207,7 +11938,7 @@ export interface operations { * List shared drives * @description Fetches a list of shared drives. */ - "query.sharedDrives.list": { + "sharedDrives-list": { parameters: { readonly query: { /** @description Fetch the next page of results after this cursor. */ @@ -8270,7 +12001,7 @@ export interface operations { * Create a shared drive * @description Creates a new shared drive for use in a private network. */ - "mutation.sharedDrives.create": { + "sharedDrives-create": { readonly requestBody: { readonly content: { readonly "application/json": { @@ -8326,7 +12057,7 @@ export interface operations { * Get a shared drive * @description Fetches a single shared drive by ID. */ - "query.sharedDrives.get": { + "sharedDrives-get": { parameters: { readonly path: { /** @description The ID of the shared drive to fetch. */ @@ -8374,7 +12105,7 @@ export interface operations { * Update a shared drive * @description Updates a single shared drive by ID. */ - "mutation.sharedDrives.update": { + "sharedDrives-update": { parameters: { readonly path: { /** @description The ID of the shared drive to fetch. */ @@ -8430,7 +12161,7 @@ export interface operations { * Delete a shared drive * @description Deletes a single shared drive by ID. */ - "mutation.sharedDrives.delete": { + "sharedDrives-delete": { parameters: { readonly path: { /** @description The ID of the shared drive to delete. */ @@ -8454,7 +12185,7 @@ export interface operations { * List snapshots * @description List snapshots and filter by machine. */ - "query.snapshots.list": { + "snapshots-list": { parameters: { readonly query: { /** @description Fetch the next page of results after this cursor. */ @@ -8498,7 +12229,7 @@ export interface operations { * Create snapshot * @description Create a snapshot for a machine. */ - "mutation.snapshots.create": { + "snapshots-create": { readonly requestBody: { readonly content: { readonly "application/json": { @@ -8591,7 +12322,7 @@ export interface operations { * Get a snapshot * @description Fetches a single snapshot by ID. */ - "query.snapshots.get": { + "snapshots-get": { parameters: { readonly path: { /** @description The ID of the snapshot. */ @@ -8621,7 +12352,7 @@ export interface operations { * Update a snapshot * @description Updates a single snapshot by ID. */ - "mutation.snapshots.update": { + "snapshots-update": { parameters: { readonly path: { /** @description The ID of the snapshot. */ @@ -8659,7 +12390,7 @@ export interface operations { * Delete snapshot * @description Delete a snapshot for a machine. */ - "mutation.snapshots.delete": { + "snapshots-delete": { parameters: { readonly path: { /** @description The ID of the snapshot. */ @@ -8748,7 +12479,7 @@ export interface operations { * Restore snapshot * @description Restore a snapshot for a machine. */ - "mutation.snapshots.restore": { + "snapshots-restore": { parameters: { readonly path: { /** @description The ID of the snapshot. */ @@ -8845,7 +12576,7 @@ export interface operations { * List startup scripts * @description Fetches a list of startup scripts. */ - "query.startupScripts.list": { + "startupScripts-list": { parameters: { readonly query: { /** @description Fetch the next page of results after this cursor. */ @@ -8903,7 +12634,7 @@ export interface operations { * Create startup script * @description Create a startup script. */ - "mutation.startupScripts.create": { + "startupScripts-create": { readonly requestBody: { readonly content: { readonly "application/json": { @@ -8956,7 +12687,7 @@ export interface operations { * Get a startup script * @description Fetches a single startup script by ID. */ - "query.startupScripts.get": { + "startupScripts-get": { parameters: { readonly path: { /** @description The ID of the startup script to fetch. */ @@ -9000,7 +12731,7 @@ export interface operations { * Update startup script * @description Update a startup script. */ - "mutation.startupScripts.update": { + "startupScripts-update": { parameters: { readonly path: { /** @description The id of the startup script. */ @@ -9058,7 +12789,7 @@ export interface operations { * Delete startup script * @description Delete a startup script. */ - "mutation.startupScripts.delete": { + "startupScripts-delete": { parameters: { readonly path: { /** @description The id of the startup script. */ @@ -9102,7 +12833,7 @@ export interface operations { * Assign startup script to machine * @description Assign a startup script to a machine. */ - "mutation.startupScripts.assign": { + "startupScripts-assign": { parameters: { readonly path: { /** @description The id of the startup script. */ @@ -9154,7 +12885,7 @@ export interface operations { * Unassign startup script from machine * @description Unassign a startup script from a machine. */ - "mutation.startupScripts.unassign": { + "startupScripts-unassign": { parameters: { readonly path: { /** @description The id of the startup script. */ @@ -9206,7 +12937,7 @@ export interface operations { * List storage providers * @description List storage providers */ - "query.storageProviders.list": { + "storageProviders-list": { parameters: { readonly query: { /** @description Fetch the next page of results after this cursor. */ @@ -9230,14 +12961,21 @@ export interface operations { readonly items: readonly ({ /** @description The ID of the storage provider */ readonly id: string; + /** @description Whether the storage provider is managed by Paperspace */ + readonly isManaged: boolean; + /** @description Whether the storage provider is the team's default provider */ + readonly isTeamDefault: boolean | null; /** @description The name of the storage provider */ readonly name: string; /** @description The storage provider configuration */ readonly s3Config: { readonly accessKey: string; readonly bucket: string; - /** Format: uri */ - readonly endpoint: string | null; + /** + * Format: uri + * @default null + */ + readonly endpoint?: string | null; readonly region?: string | null; /** @default false */ readonly retainData?: boolean | null; @@ -9257,7 +12995,7 @@ export interface operations { * Create a storage provider * @description Create a storage provider */ - "mutation.storageProviders.create": { + "storageProviders-create": { readonly requestBody: { readonly content: { readonly "application/json": { @@ -9269,8 +13007,11 @@ export interface operations { readonly s3Config: { readonly accessKey: string; readonly bucket: string; - /** Format: uri */ - readonly endpoint: string | null; + /** + * Format: uri + * @default null + */ + readonly endpoint?: string | null; readonly region?: string | null; /** @default false */ readonly retainData?: boolean | null; @@ -9292,14 +13033,21 @@ export interface operations { readonly "application/json": { /** @description The ID of the storage provider */ readonly id: string; + /** @description Whether the storage provider is managed by Paperspace */ + readonly isManaged: boolean; + /** @description Whether the storage provider is the team's default provider */ + readonly isTeamDefault: boolean | null; /** @description The name of the storage provider */ readonly name: string; /** @description The storage provider configuration */ readonly s3Config: { readonly accessKey: string; readonly bucket: string; - /** Format: uri */ - readonly endpoint: string | null; + /** + * Format: uri + * @default null + */ + readonly endpoint?: string | null; readonly region?: string | null; /** @default false */ readonly retainData?: boolean | null; @@ -9316,7 +13064,7 @@ export interface operations { * Get a storage provider * @description Get a storage provider */ - "query.storageProviders.get": { + "storageProviders-get": { parameters: { readonly path: { /** @description The ID of the storage provider */ @@ -9330,14 +13078,21 @@ export interface operations { readonly "application/json": { /** @description The ID of the storage provider */ readonly id: string; + /** @description Whether the storage provider is managed by Paperspace */ + readonly isManaged: boolean; + /** @description Whether the storage provider is the team's default provider */ + readonly isTeamDefault: boolean | null; /** @description The name of the storage provider */ readonly name: string; /** @description The storage provider configuration */ readonly s3Config: { readonly accessKey: string; readonly bucket: string; - /** Format: uri */ - readonly endpoint: string | null; + /** + * Format: uri + * @default null + */ + readonly endpoint?: string | null; readonly region?: string | null; /** @default false */ readonly retainData?: boolean | null; @@ -9354,7 +13109,7 @@ export interface operations { * Update a storage provider * @description Update a storage provider */ - "mutation.storageProviders.update": { + "storageProviders-update": { parameters: { readonly path: { /** @description The ID of the storage provider */ @@ -9366,12 +13121,17 @@ export interface operations { readonly "application/json": { /** @description Is team default */ readonly isTeamDefault: boolean; + /** @description The name of the storage provider */ + readonly name: string; /** @description The storage provider configuration */ readonly s3Config: { readonly accessKey: string; readonly bucket: string; - /** Format: uri */ - readonly endpoint: string | null; + /** + * Format: uri + * @default null + */ + readonly endpoint?: string | null; readonly region?: string | null; /** @default false */ readonly retainData?: boolean | null; @@ -9388,14 +13148,21 @@ export interface operations { readonly "application/json": { /** @description The ID of the storage provider */ readonly id: string; + /** @description Whether the storage provider is managed by Paperspace */ + readonly isManaged: boolean; + /** @description Whether the storage provider is the team's default provider */ + readonly isTeamDefault: boolean | null; /** @description The name of the storage provider */ readonly name: string; /** @description The storage provider configuration */ readonly s3Config: { readonly accessKey: string; readonly bucket: string; - /** Format: uri */ - readonly endpoint: string | null; + /** + * Format: uri + * @default null + */ + readonly endpoint?: string | null; readonly region?: string | null; /** @default false */ readonly retainData?: boolean | null; @@ -9412,7 +13179,7 @@ export interface operations { * Delete a storage provider * @description Delete a storage provider */ - "mutation.storageProviders.delete": { + "storageProviders-delete": { parameters: { readonly path: { /** @description The ID of the storage provider */ @@ -9436,7 +13203,7 @@ export interface operations { * Get storage utilization * @description Get a breakdown of how storage is being used by your team */ - "query.storageUtilization.getPublic": { + "storageUtilization-getPublic": { responses: { /** @description Successful response */ 200: { @@ -9466,7 +13233,7 @@ export interface operations { * List a team's secrets * @description Fetches a list of secrets for a team. */ - "query.teamSecrets.list": { + "teamSecrets-list": { parameters: { readonly query: { /** @description Fetch the next page of results after this cursor. */ @@ -9517,7 +13284,7 @@ export interface operations { * Create a team secret * @description Creates a new secret for a team. */ - "mutation.teamSecrets.create": { + "teamSecrets-create": { parameters: { readonly path: { /** @description The ID of the team where the secret is stored. */ @@ -9561,7 +13328,7 @@ export interface operations { * Get a team secret * @description Fetches a secret for a team. */ - "query.teamSecrets.get": { + "teamSecrets-get": { parameters: { readonly path: { /** @description The ID of the team where the secret is stored. */ @@ -9597,7 +13364,7 @@ export interface operations { * Delete a team secret * @description Deletes a secret for a team. */ - "mutation.teamSecrets.delete": { + "teamSecrets-delete": { parameters: { readonly path: { /** @description The ID of the team where the secret is stored. */ @@ -9623,7 +13390,7 @@ export interface operations { * Update a team secret * @description Update the value of a secret for a team. */ - "mutation.teamSecrets.update": { + "teamSecrets-update": { parameters: { readonly path: { /** @description The ID of the team where the secret is stored. */ @@ -9667,7 +13434,7 @@ export interface operations { * List templates * @description Fetches a list of templates. */ - "query.templates.list": { + "templates-list": { parameters: { readonly query: { /** @description Fetch the next page of results after this cursor. */ @@ -9737,7 +13504,7 @@ export interface operations { * Create template * @description Create a template for a machine. */ - "mutation.templates.create": { + "templates-create": { readonly requestBody: { readonly content: { readonly "application/json": { @@ -9855,7 +13622,7 @@ export interface operations { * Get a template * @description Fetches a single template by ID. */ - "query.templates.get": { + "templates-get": { parameters: { readonly path: { /** @description The ID of the template to fetch. */ @@ -9910,7 +13677,7 @@ export interface operations { * Update a template * @description Updates a single template by ID. */ - "mutation.templates.update": { + "templates-update": { parameters: { readonly path: { /** @description The ID of the template to update. */ @@ -9973,7 +13740,7 @@ export interface operations { * Delete template * @description Delete a template. */ - "mutation.templates.delete": { + "templates-delete": { parameters: { readonly path: { /** @description The ID of the template to delete. */ @@ -10028,7 +13795,7 @@ export interface operations { * List workflow run logs * @description Lists logs for a given workflow run. */ - "query.workflowRunLogs.list": { + "workflowRunLogs-list": { parameters: { readonly path: { /** @description The ID of the workflow */ From 46884ad890cc431ef80d9ddae0570294f4341dd5 Mon Sep 17 00:00:00 2001 From: Kevin Wang Date: Wed, 5 Jul 2023 12:49:11 -0400 Subject: [PATCH 6/9] revert --- api/openapi.ts | 6515 +++++++++++++++--------------------------------- 1 file changed, 2001 insertions(+), 4514 deletions(-) diff --git a/api/openapi.ts b/api/openapi.ts index 37107a7..f9bb1d8 100644 --- a/api/openapi.ts +++ b/api/openapi.ts @@ -12,11 +12,6 @@ export interface paths { post: operations["apps-create"]; }; "/apps/{id}": { - /** - * Get an app - * @description Fetches an app. - */ - get: operations["apps-get"]; /** * Delete an app * @description Deletes an app. This will delete all resources associated with the app. @@ -1859,13 +1854,20 @@ export interface operations { readonly models?: readonly ({ readonly id: string; readonly path?: string; - /** @enum {string} */ - readonly type: "git-lfs"; - /** Format: uri */ - readonly url: string; })[]; readonly name: string; readonly region?: string; + readonly repositories?: { + readonly dataset: string; + readonly mountPath?: string; + readonly repositories: readonly ({ + readonly name: string; + readonly password?: string; + readonly ref?: string; + readonly url: string; + readonly username?: string; + })[]; + }; readonly resources: { readonly autoscaling?: { readonly enabled?: boolean; @@ -1892,209 +1894,25 @@ export interface operations { /** @default 1 */ readonly replicas?: number; }; - }) - ) - | ({ - readonly apiVersion: "v1" | "latest"; - readonly command?: readonly (string)[]; - readonly containerRegistry?: string; - /** @default true */ - readonly enabled?: boolean; - readonly env?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly healthchecks?: { - readonly liveness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - readonly readiness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - readonly startup?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - }; - readonly healthChecks?: { - readonly liveness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - readonly readiness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - readonly startup?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - }; - readonly image: string; - readonly integrations?: readonly ({ - readonly id: string; - readonly name: string; - /** @default /opt/models */ - readonly path?: string; - /** @enum {string} */ - readonly type: "model"; - } | { - readonly accessKeyId: string; - readonly endpoint?: string; - readonly name: string; - readonly path?: string; - readonly region?: string; - readonly secretAccessKey: string; - /** @enum {string} */ - readonly type: "s3"; - readonly url: string; - } | { - readonly name: string; - /** @enum {string} */ - readonly type: "volume"; - } | { - readonly name: string; - readonly path?: string; - /** @enum {string} */ - readonly type: "git-lfs"; - /** Format: uri */ - readonly url: string; - })[]; - readonly name: string; - readonly region?: string; - readonly resources: { - readonly autoscaling?: { - readonly enabled?: boolean; - readonly maxReplicas: number; - readonly metrics: readonly ( - | { - /** @enum {string} */ - readonly metric: "requestDuration"; - /** @enum {string} */ - readonly summary: "average"; - readonly value: number; - } - | ({ - /** @enum {string} */ - readonly metric: "cpu" | "memory"; - /** @enum {string} */ - readonly summary: "average"; - readonly value: number; - }) - )[]; - }; - readonly machineType: string; - readonly ports: readonly (number)[]; - /** @default 1 */ - readonly replicas?: number; - }; - }); + }); + /** @description The ID of the app */ + readonly id: string; + }; }; }; + default: components["responses"]["error"]; + }; + }; + /** + * Enable an app + * @description Enables an app that has been previously disabled. This will start the app and make it available to users. + */ + "apps-enable": { + parameters: { + readonly path: { + /** @description The ID of the app to enable */ + id: string; + }; }; responses: { /** @description Successful response */ @@ -2105,8 +1923,7 @@ export interface operations { readonly config: | ( | ({ - /** @enum {string} */ - readonly apiVersion: "v0alpha0"; + readonly apiVersion: "v0alpha0" | "latest"; readonly command?: readonly (string)[]; readonly containerRegistry?: string; /** @default true */ @@ -2369,13 +2186,6 @@ export interface operations { }; readonly image: string; readonly integrations?: readonly ({ - readonly id: string; - readonly name: string; - /** @default /opt/models */ - readonly path?: string; - /** @enum {string} */ - readonly type: "model"; - } | { readonly accessKeyId: string; readonly endpoint?: string; readonly name: string; @@ -2397,8 +2207,23 @@ export interface operations { /** Format: uri */ readonly url: string; })[]; + readonly models?: readonly ({ + readonly id: string; + readonly path?: string; + })[]; readonly name: string; readonly region?: string; + readonly repositories?: { + readonly dataset: string; + readonly mountPath?: string; + readonly repositories: readonly ({ + readonly name: string; + readonly password?: string; + readonly ref?: string; + readonly url: string; + readonly username?: string; + })[]; + }; readonly resources: { readonly autoscaling?: { readonly enabled?: boolean; @@ -2569,13 +2394,6 @@ export interface operations { }; readonly image: string; readonly integrations?: readonly ({ - readonly id: string; - readonly name: string; - /** @default /opt/models */ - readonly path?: string; - /** @enum {string} */ - readonly type: "model"; - } | { readonly accessKeyId: string; readonly endpoint?: string; readonly name: string; @@ -2597,8 +2415,23 @@ export interface operations { /** Format: uri */ readonly url: string; })[]; + readonly models?: readonly ({ + readonly id: string; + readonly path?: string; + })[]; readonly name: string; readonly region?: string; + readonly repositories?: { + readonly dataset: string; + readonly mountPath?: string; + readonly repositories: readonly ({ + readonly name: string; + readonly password?: string; + readonly ref?: string; + readonly url: string; + readonly username?: string; + })[]; + }; readonly resources: { readonly autoscaling?: { readonly enabled?: boolean; @@ -2635,563 +2468,177 @@ export interface operations { }; }; /** - * Get an app - * @description Fetches an app. + * Update an app's name + * @description Change the name of an app */ - "apps-get": { + "apps-updateName": { parameters: { readonly path: { - /** @description The ID of the app to fetch */ + /** @description The ID of the app to update */ id: string; }; }; + readonly requestBody: { + readonly content: { + readonly "application/json": { + /** @description The new name of the app */ + readonly name: string; + }; + }; + }; responses: { /** @description Successful response */ 200: { content: { readonly "application/json": { - /** @description The new deployment configuration. */ - readonly config: - | ( - | ({ - /** @enum {string} */ - readonly apiVersion: "v0alpha0"; - readonly command?: readonly (string)[]; - readonly containerRegistry?: string; - /** @default true */ - readonly enabled?: boolean; - readonly env?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly healthChecks?: { - readonly liveness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - readonly readiness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - readonly startup?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - }; - readonly image: string; - readonly models?: readonly ({ + /** @description The ID of the app */ + readonly id: string; + /** @description The name of the app */ + readonly name: string; + }; + }; + }; + default: components["responses"]["error"]; + }; + }; + /** + * Get the current session + * @description Get the current session. If a user is not logged in, this will be null. Otherwise, it will contain the current team and user. + */ + "auth-session": { + responses: { + /** @description Successful response */ + 200: { + content: { + readonly "application/json": + | ({ + readonly team: { + /** @description An internal, numeric ID for the team */ + readonly analyticsId: number; + /** @description A unique ID for the team */ + readonly id: string; + /** @description Whether the team is private or not */ + readonly isPrivate: boolean; + /** @description The maximum number of machines */ + readonly maxMachines: number; + /** @description The namespace for the team */ + readonly namespace: string; + }; + readonly user: { + /** @description An internal, numeric ID for the user */ + readonly analyticsId: number; + /** + * Format: date-time + * @description The date the account was confirmed + */ + readonly dtConfirmed: Date; + /** + * Format: date-time + * @description The date the user was created + */ + readonly dtCreated: Date; + /** @description The user's email address */ + readonly email: string; + /** @description The user's first name */ + readonly firstName: string | null; + /** @description A unique ID for the user */ + readonly id: string; + /** @description Whether the user has a password set */ + readonly isPasswordAuthEnabled: boolean; + /** @description Whether the user's phone number has been verified */ + readonly isPhoneVerified: boolean; + /** @description Whether the user has a QR code based MFA confirmed */ + readonly isQrCodeBasedMfaConfirmed: boolean; + /** @description Whether the user has a QR code based MFA enabled */ + readonly isQrCodeBasedMfaEnabled: boolean; + /** @description The user's last name */ + readonly lastName: string | null; + /** @description Metadata about the user */ + readonly metadata: { + /** + * @description Core survey question-answer pairs + * @default null + */ + readonly coreSurvey?: + | ({ + [key: string]: string | undefined; + }) + | null; + /** + * @description Gradient survey question-answer pairs + * @default null + */ + readonly gradientSurvey?: + | ({ + [key: string]: string | undefined; + }) + | null; + /** + * @description Whether the user has accepted the Graphcore terms of service + * @default false + */ + readonly graphcoreTermsAccepted?: boolean; + /** + * @description Tags for the user + * @default null + */ + readonly tags?: string | null; + }; + /** @description The teams this user is a member of */ + readonly teamMemberships: readonly ({ + /** @description Whether the user is an admin of the team */ + readonly isAdmin: boolean; + /** @description Whether the user is the owner of the team */ + readonly isOwner: boolean; + /** @description The team the user is a member of */ + readonly team: { + /** + * Format: date-time + * @description The date the team was created + */ + readonly dtCreated: Date; + /** @description The ID of the team */ readonly id: string; - readonly path?: string; - })[]; - readonly name: string; - /** @default 80 */ - readonly port?: number; - readonly region?: string; - readonly repositories?: { - readonly dataset: string; - readonly mountPath?: string; - readonly repositories: readonly ({ - readonly name: string; - readonly password?: string; - readonly ref?: string; - readonly url: string; - readonly username?: string; - })[]; + /** @description Whether the team is the user's team */ + readonly isUserTeam: boolean; + /** @description The name of the team */ + readonly name: string; + /** @description The namespace of the team */ + readonly namespace: string; + /** + * @description The URL of the team's profile image. + * @default null + */ + readonly publicProfileImageUrl?: string | null; }; - readonly resources: { - readonly autoscaling?: { - readonly enabled?: boolean; - readonly maxReplicas: number; - readonly metrics: readonly ( - | { - /** @enum {string} */ - readonly metric: "requestDuration"; - /** @enum {string} */ - readonly summary: "average"; - readonly value: number; - } - | ({ - /** @enum {string} */ - readonly metric: "cpu" | "memory"; - /** @enum {string} */ - readonly summary: "average"; - readonly value: number; - }) - )[]; - }; - readonly instanceType: string; - /** @default 1 */ - readonly replicas?: number; - }; - }) - | ({ - /** @enum {string} */ - readonly apiVersion: "v0alpha1"; - readonly command?: readonly (string)[]; - readonly containerRegistry?: string; - /** @default true */ - readonly enabled?: boolean; - readonly env?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly healthchecks?: { - readonly liveness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - readonly readiness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - readonly startup?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - }; - readonly healthChecks?: { - readonly liveness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - readonly readiness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - readonly startup?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - }; - readonly image: string; - readonly integrations?: readonly ({ - readonly id: string; - readonly name: string; - /** @default /opt/models */ - readonly path?: string; - /** @enum {string} */ - readonly type: "model"; - } | { - readonly accessKeyId: string; - readonly endpoint?: string; - readonly name: string; - readonly path?: string; - readonly region?: string; - readonly secretAccessKey: string; - /** @enum {string} */ - readonly type: "s3"; - readonly url: string; - } | { - readonly name: string; - /** @enum {string} */ - readonly type: "volume"; - } | { - readonly name: string; - readonly path?: string; - /** @enum {string} */ - readonly type: "git-lfs"; - /** Format: uri */ - readonly url: string; - })[]; - readonly name: string; - readonly region?: string; - readonly resources: { - readonly autoscaling?: { - readonly enabled?: boolean; - readonly maxReplicas: number; - readonly metrics: readonly ( - | { - /** @enum {string} */ - readonly metric: "requestDuration"; - /** @enum {string} */ - readonly summary: "average"; - readonly value: number; - } - | ({ - /** @enum {string} */ - readonly metric: "cpu" | "memory"; - /** @enum {string} */ - readonly summary: "average"; - readonly value: number; - }) - )[]; - }; - readonly machineType: string; - readonly ports: readonly (number)[]; - /** @default 1 */ - readonly replicas?: number; - }; - }) - ) - | ({ - readonly apiVersion: "v1" | "latest"; - readonly command?: readonly (string)[]; - readonly containerRegistry?: string; - /** @default true */ - readonly enabled?: boolean; - readonly env?: readonly ({ - readonly name: string; - readonly value: string; })[]; - readonly healthchecks?: { - readonly liveness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - readonly readiness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - readonly startup?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - }; - readonly healthChecks?: { - readonly liveness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - readonly readiness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - readonly startup?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - }; - readonly image: string; - readonly integrations?: readonly ({ - readonly id: string; - readonly name: string; - /** @default /opt/models */ - readonly path?: string; - /** @enum {string} */ - readonly type: "model"; - } | { - readonly accessKeyId: string; - readonly endpoint?: string; - readonly name: string; - readonly path?: string; - readonly region?: string; - readonly secretAccessKey: string; - /** @enum {string} */ - readonly type: "s3"; - readonly url: string; - } | { - readonly name: string; - /** @enum {string} */ - readonly type: "volume"; - } | { - readonly name: string; - readonly path?: string; - /** @enum {string} */ - readonly type: "git-lfs"; - /** Format: uri */ - readonly url: string; - })[]; - readonly name: string; - readonly region?: string; - readonly resources: { - readonly autoscaling?: { - readonly enabled?: boolean; - readonly maxReplicas: number; - readonly metrics: readonly ( - | { - /** @enum {string} */ - readonly metric: "requestDuration"; - /** @enum {string} */ - readonly summary: "average"; - readonly value: number; - } - | ({ - /** @enum {string} */ - readonly metric: "cpu" | "memory"; - /** @enum {string} */ - readonly summary: "average"; - readonly value: number; - }) - )[]; - }; - readonly machineType: string; - readonly ports: readonly (number)[]; - /** @default 1 */ - readonly replicas?: number; - }; - }); - /** @description The ID of the app */ - readonly id: string; - }; + }; + }) + | null; }; }; default: components["responses"]["error"]; }; }; /** - * Delete an app - * @description Deletes an app. This will delete all resources associated with the app. + * List autoscaling groups + * @description List autoscaling groups and filter by machine type. */ - "apps-delete": { + "autoscalingGroups-list": { parameters: { - readonly path: { - /** @description The ID of the app to delete */ - id: string; + readonly query: { + /** @description Fetch the next page of results after this cursor. */ + after?: string; + /** @description The number of items to fetch after this page. */ + limit?: number; + /** @description Order results by one of these fields. */ + orderBy?: "dtCreated" | "name"; + /** @description The order to sort the results by. */ + order?: "asc" | "desc"; + /** @description Cluster the autoscaling group is for. */ + clusterId?: string; + /** @description Machine type used for machiens in the autoscaling group. */ + machineType?: string; }; }; responses: { @@ -3199,8 +2646,52 @@ export interface operations { 200: { content: { readonly "application/json": { - /** @description The ID of the app that was deleted */ - readonly id: string; + /** @description Whether there are more pages of results available. */ + readonly hasMore: boolean; + /** @description The items on this page. */ + readonly items: readonly ({ + /** @description The ID of the cluster the autoscaling group is for. */ + readonly clusterId: string; + /** @description The current number of machines in the autoscaling group. */ + readonly current: number; + /** + * Format: date-time + * @description The date the autoscaling group was created. + */ + readonly dtCreated: Date; + /** + * Format: date-time + * @description The date the autoscaling group was deleted. + */ + readonly dtDeleted: Date; + /** + * Format: date-time + * @description The date the autoscaling group was last modified. + */ + readonly dtModified: Date; + /** @description The ID of the autoscaling group. */ + readonly id: string; + /** @description The ID of the user who last edited the autoscaling group. */ + readonly lastEditedByUserId: string | null; + /** @description The machine type used by machines in the autoscaling group. */ + readonly machineType: string; + /** @description The maximum number of machines in the autoscaling group. */ + readonly max: number; + /** @description The minimum number of machines in the autoscaling group. */ + readonly min: number; + /** @description The name of the autoscaling group. */ + readonly name: string; + /** @description The ID of the network used by machines in the autoscaling group. */ + readonly networkId: string; + /** @description The timeout for provisioning machines in the autoscaling group, in minutes. */ + readonly provisioningTimeout: number | null; + /** @description The ID of the startup script used by machines in the autoscaling group. */ + readonly startupScriptId: string | null; + /** @description The ID of the template used by machines in the autoscaling group. */ + readonly templateId: string; + })[]; + /** @description The cursor required to fetch the next page of results. i.e. `?after=nextPage`. This is `null` when there is no next page. */ + readonly nextPage?: string; }; }; }; @@ -3208,3647 +2699,958 @@ export interface operations { }; }; /** - * Disable an app - * @description Disables an app that is currently enabled. This will stop the app's deployments and make it unavailable to users. + * Create an autoscaling group + * @description Create an autoscaling group. */ - "apps-disable": { - parameters: { - readonly path: { - /** @description The ID of the app to disable */ - id: string; - }; - }; - responses: { - /** @description Successful response */ - 200: { - content: { - readonly "application/json": { - /** @description The new deployment configuration. */ - readonly config: - | ( - | ({ - /** @enum {string} */ - readonly apiVersion: "v0alpha0"; - readonly command?: readonly (string)[]; - readonly containerRegistry?: string; - /** @default true */ - readonly enabled?: boolean; - readonly env?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly healthChecks?: { - readonly liveness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - readonly readiness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - readonly startup?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - }; - readonly image: string; - readonly models?: readonly ({ - readonly id: string; - readonly path?: string; - })[]; - readonly name: string; - /** @default 80 */ - readonly port?: number; - readonly region?: string; - readonly repositories?: { - readonly dataset: string; - readonly mountPath?: string; - readonly repositories: readonly ({ - readonly name: string; - readonly password?: string; - readonly ref?: string; - readonly url: string; - readonly username?: string; - })[]; - }; - readonly resources: { - readonly autoscaling?: { - readonly enabled?: boolean; - readonly maxReplicas: number; - readonly metrics: readonly ( - | { - /** @enum {string} */ - readonly metric: "requestDuration"; - /** @enum {string} */ - readonly summary: "average"; - readonly value: number; - } - | ({ - /** @enum {string} */ - readonly metric: "cpu" | "memory"; - /** @enum {string} */ - readonly summary: "average"; - readonly value: number; - }) - )[]; - }; - readonly instanceType: string; - /** @default 1 */ - readonly replicas?: number; - }; - }) - | ({ - /** @enum {string} */ - readonly apiVersion: "v0alpha1"; - readonly command?: readonly (string)[]; - readonly containerRegistry?: string; - /** @default true */ - readonly enabled?: boolean; - readonly env?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly healthchecks?: { - readonly liveness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - readonly readiness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - readonly startup?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - }; - readonly healthChecks?: { - readonly liveness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - readonly readiness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - readonly startup?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - }; - readonly image: string; - readonly integrations?: readonly ({ - readonly id: string; - readonly name: string; - /** @default /opt/models */ - readonly path?: string; - /** @enum {string} */ - readonly type: "model"; - } | { - readonly accessKeyId: string; - readonly endpoint?: string; - readonly name: string; - readonly path?: string; - readonly region?: string; - readonly secretAccessKey: string; - /** @enum {string} */ - readonly type: "s3"; - readonly url: string; - } | { - readonly name: string; - /** @enum {string} */ - readonly type: "volume"; - } | { - readonly name: string; - readonly path?: string; - /** @enum {string} */ - readonly type: "git-lfs"; - /** Format: uri */ - readonly url: string; - })[]; - readonly name: string; - readonly region?: string; - readonly resources: { - readonly autoscaling?: { - readonly enabled?: boolean; - readonly maxReplicas: number; - readonly metrics: readonly ( - | { - /** @enum {string} */ - readonly metric: "requestDuration"; - /** @enum {string} */ - readonly summary: "average"; - readonly value: number; - } - | ({ - /** @enum {string} */ - readonly metric: "cpu" | "memory"; - /** @enum {string} */ - readonly summary: "average"; - readonly value: number; - }) - )[]; - }; - readonly machineType: string; - readonly ports: readonly (number)[]; - /** @default 1 */ - readonly replicas?: number; - }; - }) - ) - | ({ - readonly apiVersion: "v1" | "latest"; - readonly command?: readonly (string)[]; - readonly containerRegistry?: string; - /** @default true */ - readonly enabled?: boolean; - readonly env?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly healthchecks?: { - readonly liveness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - readonly readiness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - readonly startup?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - }; - readonly healthChecks?: { - readonly liveness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - readonly readiness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - readonly startup?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - }; - readonly image: string; - readonly integrations?: readonly ({ - readonly id: string; - readonly name: string; - /** @default /opt/models */ - readonly path?: string; - /** @enum {string} */ - readonly type: "model"; - } | { - readonly accessKeyId: string; - readonly endpoint?: string; - readonly name: string; - readonly path?: string; - readonly region?: string; - readonly secretAccessKey: string; - /** @enum {string} */ - readonly type: "s3"; - readonly url: string; - } | { - readonly name: string; - /** @enum {string} */ - readonly type: "volume"; - } | { - readonly name: string; - readonly path?: string; - /** @enum {string} */ - readonly type: "git-lfs"; - /** Format: uri */ - readonly url: string; - })[]; - readonly name: string; - readonly region?: string; - readonly resources: { - readonly autoscaling?: { - readonly enabled?: boolean; - readonly maxReplicas: number; - readonly metrics: readonly ( - | { - /** @enum {string} */ - readonly metric: "requestDuration"; - /** @enum {string} */ - readonly summary: "average"; - readonly value: number; - } - | ({ - /** @enum {string} */ - readonly metric: "cpu" | "memory"; - /** @enum {string} */ - readonly summary: "average"; - readonly value: number; - }) - )[]; - }; - readonly machineType: string; - readonly ports: readonly (number)[]; - /** @default 1 */ - readonly replicas?: number; - }; - }); - /** @description The ID of the app */ - readonly id: string; - }; - }; - }; - default: components["responses"]["error"]; - }; - }; - /** - * Enable an app - * @description Enables an app that has been previously disabled. This will start the app and make it available to users. - */ - "apps-enable": { - parameters: { - readonly path: { - /** @description The ID of the app to enable */ - id: string; - }; - }; - responses: { - /** @description Successful response */ - 200: { - content: { - readonly "application/json": { - /** @description The new deployment configuration. */ - readonly config: - | ( - | ({ - readonly apiVersion: "v0alpha0" | "latest"; - readonly command?: readonly (string)[]; - readonly containerRegistry?: string; - /** @default true */ - readonly enabled?: boolean; - readonly env?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly healthChecks?: { - readonly liveness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - readonly readiness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - readonly startup?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - }; - readonly image: string; - readonly models?: readonly ({ - readonly id: string; - readonly path?: string; - })[]; - readonly name: string; - /** @default 80 */ - readonly port?: number; - readonly region?: string; - readonly repositories?: { - readonly dataset: string; - readonly mountPath?: string; - readonly repositories: readonly ({ - readonly name: string; - readonly password?: string; - readonly ref?: string; - readonly url: string; - readonly username?: string; - })[]; - }; - readonly resources: { - readonly autoscaling?: { - readonly enabled?: boolean; - readonly maxReplicas: number; - readonly metrics: readonly ( - | { - /** @enum {string} */ - readonly metric: "requestDuration"; - /** @enum {string} */ - readonly summary: "average"; - readonly value: number; - } - | ({ - /** @enum {string} */ - readonly metric: "cpu" | "memory"; - /** @enum {string} */ - readonly summary: "average"; - readonly value: number; - }) - )[]; - }; - readonly instanceType: string; - /** @default 1 */ - readonly replicas?: number; - }; - }) - | ({ - /** @enum {string} */ - readonly apiVersion: "v0alpha1"; - readonly command?: readonly (string)[]; - readonly containerRegistry?: string; - /** @default true */ - readonly enabled?: boolean; - readonly env?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly healthchecks?: { - readonly liveness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - readonly readiness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - readonly startup?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - }; - readonly healthChecks?: { - readonly liveness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - readonly readiness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - readonly startup?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - }; - readonly image: string; - readonly integrations?: readonly ({ - readonly accessKeyId: string; - readonly endpoint?: string; - readonly name: string; - readonly path?: string; - readonly region?: string; - readonly secretAccessKey: string; - /** @enum {string} */ - readonly type: "s3"; - readonly url: string; - } | { - readonly name: string; - /** @enum {string} */ - readonly type: "volume"; - } | { - readonly name: string; - readonly path?: string; - /** @enum {string} */ - readonly type: "git-lfs"; - /** Format: uri */ - readonly url: string; - })[]; - readonly models?: readonly ({ - readonly id: string; - readonly path?: string; - })[]; - readonly name: string; - readonly region?: string; - readonly repositories?: { - readonly dataset: string; - readonly mountPath?: string; - readonly repositories: readonly ({ - readonly name: string; - readonly password?: string; - readonly ref?: string; - readonly url: string; - readonly username?: string; - })[]; - }; - readonly resources: { - readonly autoscaling?: { - readonly enabled?: boolean; - readonly maxReplicas: number; - readonly metrics: readonly ( - | { - /** @enum {string} */ - readonly metric: "requestDuration"; - /** @enum {string} */ - readonly summary: "average"; - readonly value: number; - } - | ({ - /** @enum {string} */ - readonly metric: "cpu" | "memory"; - /** @enum {string} */ - readonly summary: "average"; - readonly value: number; - }) - )[]; - }; - readonly machineType: string; - readonly ports: readonly (number)[]; - /** @default 1 */ - readonly replicas?: number; - }; - }) - ) - | ({ - readonly apiVersion: "v1" | "latest"; - readonly command?: readonly (string)[]; - readonly containerRegistry?: string; - /** @default true */ - readonly enabled?: boolean; - readonly env?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly healthchecks?: { - readonly liveness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - readonly readiness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - readonly startup?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - }; - readonly healthChecks?: { - readonly liveness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - readonly readiness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - readonly startup?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - }; - readonly image: string; - readonly integrations?: readonly ({ - readonly accessKeyId: string; - readonly endpoint?: string; - readonly name: string; - readonly path?: string; - readonly region?: string; - readonly secretAccessKey: string; - /** @enum {string} */ - readonly type: "s3"; - readonly url: string; - } | { - readonly name: string; - /** @enum {string} */ - readonly type: "volume"; - } | { - readonly name: string; - readonly path?: string; - /** @enum {string} */ - readonly type: "git-lfs"; - /** Format: uri */ - readonly url: string; - })[]; - readonly models?: readonly ({ - readonly id: string; - readonly path?: string; - /** @enum {string} */ - readonly type: "git-lfs"; - /** Format: uri */ - readonly url: string; - })[]; - readonly name: string; - readonly region?: string; - readonly resources: { - readonly autoscaling?: { - readonly enabled?: boolean; - readonly maxReplicas: number; - readonly metrics: readonly ( - | { - /** @enum {string} */ - readonly metric: "requestDuration"; - /** @enum {string} */ - readonly summary: "average"; - readonly value: number; - } - | ({ - /** @enum {string} */ - readonly metric: "cpu" | "memory"; - /** @enum {string} */ - readonly summary: "average"; - readonly value: number; - }) - )[]; - }; - readonly machineType: string; - readonly ports: readonly (number)[]; - /** @default 1 */ - readonly replicas?: number; - }; - }); - /** @description The ID of the app */ - readonly id: string; - }; - }; - }; - default: components["responses"]["error"]; - }; - }; - /** - * Update an app's name - * @description Change the name of an app - */ - "apps-updateName": { - parameters: { - readonly path: { - /** @description The ID of the app to update */ - id: string; - }; - }; - readonly requestBody: { - readonly content: { - readonly "application/json": { - /** @description The new name of the app */ - readonly name: string; - }; - }; - }; - responses: { - /** @description Successful response */ - 200: { - content: { - readonly "application/json": { - /** @description The ID of the app */ - readonly id: string; - /** @description The name of the app */ - readonly name: string; - }; - }; - }; - default: components["responses"]["error"]; - }; - }; - /** - * Get the current session - * @description Get the current session. If a user is not logged in, this will be null. Otherwise, it will contain the current team and user. - */ - "auth-session": { - responses: { - /** @description Successful response */ - 200: { - content: { - readonly "application/json": - | ({ - readonly team: { - /** @description An internal, numeric ID for the team */ - readonly analyticsId: number; - /** @description A unique ID for the team */ - readonly id: string; - /** @description Whether the team is private or not */ - readonly isPrivate: boolean; - /** @description The maximum number of machines */ - readonly maxMachines: number; - /** @description The namespace for the team */ - readonly namespace: string; - }; - readonly user: { - /** @description An internal, numeric ID for the user */ - readonly analyticsId: number; - /** - * Format: date-time - * @description The date the account was confirmed - */ - readonly dtConfirmed: Date; - /** - * Format: date-time - * @description The date the user was created - */ - readonly dtCreated: Date; - /** @description The user's email address */ - readonly email: string; - /** @description The user's first name */ - readonly firstName: string | null; - /** @description A unique ID for the user */ - readonly id: string; - /** @description Whether the user has a password set */ - readonly isPasswordAuthEnabled: boolean; - /** @description Whether the user's phone number has been verified */ - readonly isPhoneVerified: boolean; - /** @description Whether the user has a QR code based MFA confirmed */ - readonly isQrCodeBasedMfaConfirmed: boolean; - /** @description Whether the user has a QR code based MFA enabled */ - readonly isQrCodeBasedMfaEnabled: boolean; - /** @description The user's last name */ - readonly lastName: string | null; - /** @description Metadata about the user */ - readonly metadata: { - /** - * @description Core survey question-answer pairs - * @default null - */ - readonly coreSurvey?: - | ({ - [key: string]: string | undefined; - }) - | null; - /** - * @description Gradient survey question-answer pairs - * @default null - */ - readonly gradientSurvey?: - | ({ - [key: string]: string | undefined; - }) - | null; - /** - * @description Whether the user has accepted the Graphcore terms of service - * @default false - */ - readonly graphcoreTermsAccepted?: boolean; - /** - * @description Tags for the user - * @default null - */ - readonly tags?: string | null; - }; - /** - * @description The user's preferences - * @default null - */ - readonly preferences?: - | ({ - readonly defaultProduct?: string | null; - readonly defaultTeamId?: string | null; - readonly disableHotkeys?: boolean | null; - readonly fontSize?: number | null; - /** @enum {string|null} */ - readonly theme?: "light" | "dark" | null; - }) - | null; - /** @description The teams this user is a member of */ - readonly teamMemberships: readonly ({ - /** @description Whether the user is an admin of the team */ - readonly isAdmin: boolean; - /** @description Whether the user is the owner of the team */ - readonly isOwner: boolean; - /** @description The team the user is a member of */ - readonly team: { - /** - * Format: date-time - * @description The date the team was created - */ - readonly dtCreated: Date; - /** @description The ID of the team */ - readonly id: string; - /** @description Whether the team is the user's team */ - readonly isUserTeam: boolean; - /** @description The name of the team */ - readonly name: string; - /** @description The namespace of the team */ - readonly namespace: string; - /** - * @description The URL of the team's profile image. - * @default null - */ - readonly publicProfileImageUrl?: string | null; - }; - })[]; - }; - }) - | null; - }; - }; - default: components["responses"]["error"]; - }; - }; - /** - * List autoscaling groups - * @description List autoscaling groups and filter by machine type. - */ - "autoscalingGroups-list": { - parameters: { - readonly query: { - /** @description Fetch the next page of results after this cursor. */ - after?: string; - /** @description The number of items to fetch after this page. */ - limit?: number; - /** @description Order results by one of these fields. */ - orderBy?: "dtCreated" | "name"; - /** @description The order to sort the results by. */ - order?: "asc" | "desc"; - /** @description Cluster the autoscaling group is for. */ - clusterId?: string; - /** @description Machine type used for machiens in the autoscaling group. */ - machineType?: string; - }; - }; - responses: { - /** @description Successful response */ - 200: { - content: { - readonly "application/json": { - /** @description Whether there are more pages of results available. */ - readonly hasMore: boolean; - /** @description The items on this page. */ - readonly items: readonly ({ - /** @description The ID of the cluster the autoscaling group is for. */ - readonly clusterId: string; - /** @description The current number of machines in the autoscaling group. */ - readonly current: number; - /** - * Format: date-time - * @description The date the autoscaling group was created. - */ - readonly dtCreated: Date; - /** - * Format: date-time - * @description The date the autoscaling group was deleted. - */ - readonly dtDeleted: Date; - /** - * Format: date-time - * @description The date the autoscaling group was last modified. - */ - readonly dtModified: Date; - /** @description The ID of the autoscaling group. */ - readonly id: string; - /** @description The ID of the user who last edited the autoscaling group. */ - readonly lastEditedByUserId: string | null; - /** @description The machine type used by machines in the autoscaling group. */ - readonly machineType: string; - /** @description The maximum number of machines in the autoscaling group. */ - readonly max: number; - /** @description The minimum number of machines in the autoscaling group. */ - readonly min: number; - /** @description The name of the autoscaling group. */ - readonly name: string; - /** @description The ID of the network used by machines in the autoscaling group. */ - readonly networkId: string; - /** @description The timeout for provisioning machines in the autoscaling group, in minutes. */ - readonly provisioningTimeout: number | null; - /** @description The ID of the startup script used by machines in the autoscaling group. */ - readonly startupScriptId: string | null; - /** @description The ID of the template used by machines in the autoscaling group. */ - readonly templateId: string; - })[]; - /** @description The cursor required to fetch the next page of results. i.e. `?after=nextPage`. This is `null` when there is no next page. */ - readonly nextPage?: string; - }; - }; - }; - default: components["responses"]["error"]; - }; - }; - /** - * Create an autoscaling group - * @description Create an autoscaling group. - */ - "autoscalingGroups-create": { - readonly requestBody: { - readonly content: { - readonly "application/json": { - /** @description The cluster the autoscaling group is for. */ - readonly clusterId: string; - /** @description The machine type used for machines in the autoscaling group. */ - readonly machineType: string; - /** @description The maximum number of machines in the autoscaling group. */ - readonly max: number; - /** @description The minimum number of machines in the autoscaling group. */ - readonly min: number; - /** @description The name of the autoscaling group. */ - readonly name: string; - /** @description The network the autoscaling group is in. */ - readonly networkId: string; - /** @description The timeout for provisioning machines in the autoscaling group. */ - readonly provisioningTimeout?: number; - /** @description The startup script used for machines in the autoscaling group. */ - readonly startupScriptId?: string; - /** @description The template used for machines in the autoscaling group. */ - readonly templateId: string; - }; - }; - }; - responses: { - /** @description Successful response */ - 200: { - content: { - readonly "application/json": { - /** @description The ID of the cluster the autoscaling group is for. */ - readonly clusterId: string; - /** @description The current number of machines in the autoscaling group. */ - readonly current: number; - /** - * Format: date-time - * @description The date the autoscaling group was created. - */ - readonly dtCreated: Date; - /** - * Format: date-time - * @description The date the autoscaling group was deleted. - */ - readonly dtDeleted: Date; - /** - * Format: date-time - * @description The date the autoscaling group was last modified. - */ - readonly dtModified: Date; - /** @description The ID of the autoscaling group. */ - readonly id: string; - /** @description The ID of the user who last edited the autoscaling group. */ - readonly lastEditedByUserId: string | null; - /** @description The machine type used by machines in the autoscaling group. */ - readonly machineType: string; - /** @description The maximum number of machines in the autoscaling group. */ - readonly max: number; - /** @description The minimum number of machines in the autoscaling group. */ - readonly min: number; - /** @description The name of the autoscaling group. */ - readonly name: string; - /** @description The ID of the network used by machines in the autoscaling group. */ - readonly networkId: string; - /** @description The timeout for provisioning machines in the autoscaling group, in minutes. */ - readonly provisioningTimeout: number | null; - /** @description The ID of the startup script used by machines in the autoscaling group. */ - readonly startupScriptId: string | null; - /** @description The ID of the template used by machines in the autoscaling group. */ - readonly templateId: string; - }; - }; - }; - default: components["responses"]["error"]; - }; - }; - /** - * Get an autoscaling group - * @description Fetches a single autoscaling group by id. - */ - "autoscalingGroups-get": { - parameters: { - readonly path: { - /** @description The ID of the autoscaling group to fetch. */ - id: string; - }; - }; - responses: { - /** @description Successful response */ - 200: { - content: { - readonly "application/json": { - /** @description The ID of the cluster the autoscaling group is for. */ - readonly clusterId: string; - /** @description The current number of machines in the autoscaling group. */ - readonly current: number; - /** - * Format: date-time - * @description The date the autoscaling group was created. - */ - readonly dtCreated: Date; - /** - * Format: date-time - * @description The date the autoscaling group was deleted. - */ - readonly dtDeleted: Date; - /** - * Format: date-time - * @description The date the autoscaling group was last modified. - */ - readonly dtModified: Date; - /** @description The ID of the autoscaling group. */ - readonly id: string; - /** @description The ID of the user who last edited the autoscaling group. */ - readonly lastEditedByUserId: string | null; - /** @description The machine type used by machines in the autoscaling group. */ - readonly machineType: string; - /** @description The maximum number of machines in the autoscaling group. */ - readonly max: number; - /** @description The minimum number of machines in the autoscaling group. */ - readonly min: number; - /** @description The name of the autoscaling group. */ - readonly name: string; - /** @description The ID of the network used by machines in the autoscaling group. */ - readonly networkId: string; - /** @description The timeout for provisioning machines in the autoscaling group, in minutes. */ - readonly provisioningTimeout: number | null; - /** @description The ID of the startup script used by machines in the autoscaling group. */ - readonly startupScriptId: string | null; - /** @description The ID of the template used by machines in the autoscaling group. */ - readonly templateId: string; - }; - }; - }; - default: components["responses"]["error"]; - }; - }; - /** - * Update an autoscaling group - * @description Update an autoscaling group. - */ - "autoscalingGroups-update": { - parameters: { - readonly path: { - /** @description The id of the autoscaling group. */ - id: string; - }; - }; - readonly requestBody: { - readonly content: { - readonly "application/json": { - /** @description The cluster the autoscaling group is for. */ - readonly clusterId?: string; - /** @description The target number of machines in the autoscaling group. */ - readonly current?: number; - /** @description The machine type used for machines in the autoscaling group. */ - readonly machineType?: string; - /** @description The maximum number of machines in the autoscaling group. */ - readonly max?: number; - /** @description The minimum number of machines in the autoscaling group. */ - readonly min?: number; - /** @description The name of the autoscaling group. */ - readonly name?: string; - /** @description The network the autoscaling group is in. */ - readonly networkId?: string; - /** @description The timeout for provisioning machines in the autoscaling group. */ - readonly provisioningTimeout?: number; - /** @description The startup script used for machines in the autoscaling group. */ - readonly startupScriptId?: string; - /** @description The template used for machines in the autoscaling group. */ - readonly templateId?: string; - }; - }; - }; - responses: { - /** @description Successful response */ - 200: { - content: { - readonly "application/json": { - /** @description The ID of the cluster the autoscaling group is for. */ - readonly clusterId: string; - /** @description The current number of machines in the autoscaling group. */ - readonly current: number; - /** - * Format: date-time - * @description The date the autoscaling group was created. - */ - readonly dtCreated: Date; - /** - * Format: date-time - * @description The date the autoscaling group was deleted. - */ - readonly dtDeleted: Date; - /** - * Format: date-time - * @description The date the autoscaling group was last modified. - */ - readonly dtModified: Date; - /** @description The ID of the autoscaling group. */ - readonly id: string; - /** @description The ID of the user who last edited the autoscaling group. */ - readonly lastEditedByUserId: string | null; - /** @description The machine type used by machines in the autoscaling group. */ - readonly machineType: string; - /** @description The maximum number of machines in the autoscaling group. */ - readonly max: number; - /** @description The minimum number of machines in the autoscaling group. */ - readonly min: number; - /** @description The name of the autoscaling group. */ - readonly name: string; - /** @description The ID of the network used by machines in the autoscaling group. */ - readonly networkId: string; - /** @description The timeout for provisioning machines in the autoscaling group, in minutes. */ - readonly provisioningTimeout: number | null; - /** @description The ID of the startup script used by machines in the autoscaling group. */ - readonly startupScriptId: string | null; - /** @description The ID of the template used by machines in the autoscaling group. */ - readonly templateId: string; - }; - }; - }; - default: components["responses"]["error"]; - }; - }; - /** - * Delete an autoscaling group - * @description Delete an autoscaling group. - */ - "autoscalingGroups-delete": { - parameters: { - readonly path: { - /** @description The id of the autoscaling group. */ - id: string; - }; - }; - responses: { - /** @description Successful response */ - 200: { - content: { - readonly "application/json": { - /** @description The id of the autoscaling group. */ - readonly id: string; - }; - }; - }; - default: components["responses"]["error"]; - }; - }; - /** - * Get account standing - * @description Check whether the current team account is in good standing. If not, send back a message explaining why. - */ - "billingAccountStanding-get": { - responses: { - /** @description Successful response */ - 200: { - content: { - readonly "application/json": { - /** @description Whether the account is in good standing */ - readonly isInGoodStanding: boolean; - /** @description If the account is not in good standing, these are messages explaining why. */ - readonly messages: readonly (string)[]; - }; - }; - }; - default: components["responses"]["error"]; - }; - }; - /** - * List container registries - * @description Lists container registries for the current team. - */ - "containerRegistries-list": { - parameters: { - readonly query: { - /** @description Fetch the next page of results after this cursor. */ - after?: string; - /** @description The number of items to fetch after this page. */ - limit?: number; - /** @description Order results by one of these fields. */ - orderBy?: "dtCreated"; - /** @description The order to sort the results by. */ - order?: "asc" | "desc"; - }; - }; - responses: { - /** @description Successful response */ - 200: { - content: { - readonly "application/json": { - /** @description Whether there are more pages of results available. */ - readonly hasMore: boolean; - /** @description The items on this page. */ - readonly items: readonly ({ - /** - * Format: date-time - * @description The date the container registry was created - */ - readonly dtCreated: Date; - /** - * Format: date-time - * @description The date the container registry was last modified - */ - readonly dtModified: Date; - /** @description The id of the container registry */ - readonly id: string; - /** @description The name of the container registry */ - readonly name: string; - /** @description The namespace of the container registry */ - readonly namespace: string; - /** @description The URL of the container registry */ - readonly url: string; - /** @description A username for the container registry */ - readonly username: string; - })[]; - /** @description The cursor required to fetch the next page of results. i.e. `?after=nextPage`. This is `null` when there is no next page. */ - readonly nextPage?: string; - }; - }; - }; - default: components["responses"]["error"]; - }; - }; - /** - * Create a container registry - * @description Creates a container registry for the current team. - */ - "containerRegistries-create": { - readonly requestBody: { - readonly content: { - readonly "application/json": { - /** @description The name of the container registry */ - readonly name: string; - /** @description The namespace of the container registry */ - readonly namespace: string; - /** @description The password for the registry */ - readonly password: string; - /** - * Format: uri - * @description The URL of the container registry - */ - readonly url: string; - /** @description A username for the container registry */ - readonly username: string; - }; - }; - }; - responses: { - /** @description Successful response */ - 200: { - content: { - readonly "application/json": { - /** - * Format: date-time - * @description The date the container registry was created - */ - readonly dtCreated: Date; - /** - * Format: date-time - * @description The date the container registry was last modified - */ - readonly dtModified: Date; - /** @description The id of the container registry */ - readonly id: string; - /** @description The name of the container registry */ - readonly name: string; - /** @description The namespace of the container registry */ - readonly namespace: string; - /** @description The URL of the container registry */ - readonly url: string; - /** @description A username for the container registry */ - readonly username: string; - }; - }; - }; - default: components["responses"]["error"]; - }; - }; - /** - * List container registries - * @description Lists container registries for the current team. - */ - "containerRegistries-get": { - parameters: { - readonly path: { - /** @description The id of the container registry */ - id: string; - }; - }; - responses: { - /** @description Successful response */ - 200: { - content: { - readonly "application/json": { - /** - * Format: date-time - * @description The date the container registry was created - */ - readonly dtCreated: Date; - /** - * Format: date-time - * @description The date the container registry was last modified - */ - readonly dtModified: Date; - /** @description The id of the container registry */ - readonly id: string; - /** @description The name of the container registry */ - readonly name: string; - /** @description The namespace of the container registry */ - readonly namespace: string; - /** @description The URL of the container registry */ - readonly url: string; - /** @description A username for the container registry */ - readonly username: string; - }; - }; - }; - default: components["responses"]["error"]; - }; - }; - /** - * Update a container registry - * @description Updates a container registry for the current team. - */ - "containerRegistries-update": { - parameters: { - readonly path: { - /** @description The id of the container registry */ - id: string; - }; - }; - readonly requestBody: { - readonly content: { - readonly "application/json": { - /** @description The name of the container registry */ - readonly name?: string; - /** @description The namespace of the container registry */ - readonly namespace?: string; - /** @description An updated password for the registry */ - readonly password?: string; - /** - * Format: uri - * @description The URL of the container registry - */ - readonly url?: string; - /** @description A username for the container registry */ - readonly username?: string; - }; - }; - }; - responses: { - /** @description Successful response */ - 200: { - content: { - readonly "application/json": { - /** - * Format: date-time - * @description The date the container registry was created - */ - readonly dtCreated: Date; - /** - * Format: date-time - * @description The date the container registry was last modified - */ - readonly dtModified: Date; - /** @description The id of the container registry */ - readonly id: string; - /** @description The name of the container registry */ - readonly name: string; - /** @description The namespace of the container registry */ - readonly namespace: string; - /** @description The URL of the container registry */ - readonly url: string; - /** @description A username for the container registry */ - readonly username: string; - }; - }; - }; - default: components["responses"]["error"]; - }; - }; - /** - * Delete a container registry - * @description Deletes a container registry for the current team. - */ - "containerRegistries-delete": { - parameters: { - readonly path: { - /** @description The id of the container registry */ - id: string; - }; - }; - responses: { - /** @description Successful response */ - 200: { - content: { - readonly "application/json": { - /** - * Format: date-time - * @description The date the container registry was created - */ - readonly dtCreated: Date; - /** - * Format: date-time - * @description The date the container registry was last modified - */ - readonly dtModified: Date; - /** @description The id of the container registry */ - readonly id: string; - /** @description The name of the container registry */ - readonly name: string; - /** @description The namespace of the container registry */ - readonly namespace: string; - /** @description The URL of the container registry */ - readonly url: string; - /** @description A username for the container registry */ - readonly username: string; - }; - }; - }; - default: components["responses"]["error"]; - }; - }; - /** - * Test a container registry connection - * @description Validate that a container registry can be connected to using the provided credentials. - */ - "containerRegistries-testConnection": { - parameters: { - readonly path: { - /** @description The id of the container registry */ - id: string; - }; - }; - responses: { - /** @description Successful response */ - 200: { - content: { - readonly "application/json": { - /** @description The error message, if any */ - readonly error?: string; - /** @description Whether the connection was successful */ - readonly success: boolean; - }; - }; - }; - default: components["responses"]["error"]; - }; - }; - /** - * List datasets - * @description List datasets - */ - "datasets-list": { - parameters: { - readonly query: { - /** @description Fetch the next page of results after this cursor. */ - after?: string; - /** @description The number of items to fetch after this page. */ - limit?: number; - /** @description Order results by one of these fields. */ - orderBy?: "dtCreated"; - /** @description The order to sort the results by. */ - order?: "asc" | "desc"; - teamId?: string; - privacy?: Record | ("PUBLIC" | "PRIVATE"); - }; - }; - responses: { - /** @description Successful response */ - 200: { - content: { - readonly "application/json": { - /** @description Whether there are more pages of results available. */ - readonly hasMore: boolean; - /** @description The items on this page. */ - readonly items: readonly ({ - /** @description The description of the dataset */ - readonly description: string | null; - /** - * Format: date-time - * @description The date the dataset was created - */ - readonly dtCreated: Date; - /** - * Format: date-time - * @description The date the dataset was last modified - */ - readonly dtModified: Date; - /** @description The ID of the dataset */ - readonly id: string; - /** @description Whether the dataset is public */ - readonly isPublic: boolean; - /** @description The name of the dataset */ - readonly name: string | null; - /** @description The ID of the storage provider */ - readonly storageProviderId: string | null; - /** @description The ID of the team that owns the dataset */ - readonly teamId: string; - })[]; - /** @description The cursor required to fetch the next page of results. i.e. `?after=nextPage`. This is `null` when there is no next page. */ - readonly nextPage?: string; - }; - }; - }; - default: components["responses"]["error"]; - }; - }; - /** - * Create a dataset - * @description Create a dataset - */ - "datasets-create": { - readonly requestBody: { - readonly content: { - readonly "application/json": { - /** @description The description of the dataset */ - readonly description?: (Record | string) | null; - /** @description Whether the dataset is public */ - readonly isPublic: boolean; - /** @description The name of the dataset */ - readonly name: string; - /** @description The ID of the storage provider */ - readonly storageProviderId?: string; - }; - }; - }; - responses: { - /** @description Successful response */ - 200: { - content: { - readonly "application/json": { - /** @description The description of the dataset */ - readonly description: string | null; - /** - * Format: date-time - * @description The date the dataset was created - */ - readonly dtCreated: Date; - /** - * Format: date-time - * @description The date the dataset was last modified - */ - readonly dtModified: Date; - /** @description The ID of the dataset */ - readonly id: string; - /** @description Whether the dataset is public */ - readonly isPublic: boolean; - /** @description The name of the dataset */ - readonly name: string | null; - /** @description The ID of the storage provider */ - readonly storageProviderId: string | null; - /** @description The ID of the team that owns the dataset */ - readonly teamId: string; - }; - }; - }; - default: components["responses"]["error"]; - }; - }; - /** - * List dataset versions - * @description List dataset versions - */ - "datasetVersions-list": { - parameters: { - readonly query: { - /** @description Fetch the next page of results after this cursor. */ - after?: string; - /** @description The number of items to fetch after this page. */ - limit?: number; - /** @description Order results by one of these fields. */ - orderBy?: "dtCreated"; - /** @description The order to sort the results by. */ - order?: "asc" | "desc"; - tags?: string; - }; - readonly path: { - /** @description The ID of the dataset */ - datasetId: string; - }; - }; - responses: { - /** @description Successful response */ - 200: { - content: { - readonly "application/json": { - /** @description Whether there are more pages of results available. */ - readonly hasMore: boolean; - /** @description The items on this page. */ - readonly items: readonly ({ - /** @description The ID of the dataset */ - readonly datasetId: string; - /** - * Format: date-time - * @description The date the version was created - */ - readonly dtCreated: Date; - /** - * Format: date-time - * @description The date the version was last modified - */ - readonly dtModified: Date; - /** @description Whether the version is committed */ - readonly isCommitted: boolean; - /** @description The description of the dataset version */ - readonly message: string | null; - /** @description Metadata for the version. */ - readonly metadata: - | ({ - [key: string]: unknown | undefined; - }) - | null; - /** @description The tags for the version */ - readonly tags: readonly (string)[]; - /** @description The URL of the version */ - readonly url: string | null; - /** @description The size of the dataset at this version in bytes */ - readonly usageBytes: string | null; - /** @description The ID of the user that created the version */ - readonly userId: string | null; - /** @description The version of the dataset */ - readonly version: string; - })[]; - /** @description The cursor required to fetch the next page of results. i.e. `?after=nextPage`. This is `null` when there is no next page. */ - readonly nextPage?: string; - }; - }; - }; - default: components["responses"]["error"]; - }; - }; - /** - * Create a dataset version - * @description Create a dataset version - */ - "datasetVersions-create": { - parameters: { - readonly path: { - /** @description The ID of the dataset */ - datasetId: string; - }; - }; - readonly requestBody: { - readonly content: { - readonly "application/json": { - /** @description The description of the dataset version */ - readonly message?: string; - /** @description Metadata for the version. */ - readonly metadata?: { - [key: string]: unknown | undefined; - }; - /** @description The tags for the version, comma-delimited */ - readonly tags?: string; - }; - }; - }; - responses: { - /** @description Successful response */ - 200: { - content: { - readonly "application/json": { - /** @description The ID of the dataset */ - readonly datasetId: string; - /** - * Format: date-time - * @description The date the version was created - */ - readonly dtCreated: Date; - /** - * Format: date-time - * @description The date the version was last modified - */ - readonly dtModified: Date; - /** @description Whether the version is committed */ - readonly isCommitted: boolean; - /** @description The description of the dataset version */ - readonly message: string | null; - /** @description Metadata for the version. */ - readonly metadata: - | ({ - [key: string]: unknown | undefined; - }) - | null; - /** @description The tags for the version */ - readonly tags: readonly (string)[]; - /** @description The URL of the version */ - readonly url: string | null; - /** @description The size of the dataset at this version in bytes */ - readonly usageBytes: string | null; - /** @description The ID of the user that created the version */ - readonly userId: string | null; - /** @description The version of the dataset */ - readonly version: string; - }; - }; - }; - default: components["responses"]["error"]; - }; - }; - /** - * Get a dataset version - * @description Get a dataset version - */ - "datasetVersions-get": { - parameters: { - readonly path: { - /** @description The ID of the dataset */ - datasetId: string; - /** @description The version of the dataset */ - version: string; - }; - }; - responses: { - /** @description Successful response */ - 200: { - content: { - readonly "application/json": { - /** @description The ID of the dataset */ - readonly datasetId: string; - /** - * Format: date-time - * @description The date the version was created - */ - readonly dtCreated: Date; - /** - * Format: date-time - * @description The date the version was last modified - */ - readonly dtModified: Date; - /** @description Whether the version is committed */ - readonly isCommitted: boolean; - /** @description The description of the dataset version */ - readonly message: string | null; - /** @description Metadata for the version. */ - readonly metadata: - | ({ - [key: string]: unknown | undefined; - }) - | null; - /** @description The tags for the version */ - readonly tags: readonly (string)[]; - /** @description The URL of the version */ - readonly url: string | null; - /** @description The size of the dataset at this version in bytes */ - readonly usageBytes: string | null; - /** @description The ID of the user that created the version */ - readonly userId: string | null; - /** @description The version of the dataset */ - readonly version: string; - }; - }; - }; - default: components["responses"]["error"]; - }; - }; - /** - * Update a dataset version - * @description Update a dataset version - */ - "datasetVersions-update": { - parameters: { - readonly path: { - /** @description The ID of the dataset */ - datasetId: string; - /** @description The version of the dataset */ - version: string; - }; - }; - readonly requestBody: { - readonly content: { - readonly "application/json": { - /** @description Whether the version is committed */ - readonly isCommitted?: boolean; - /** @description The description of the dataset version */ - readonly message?: string; - /** @description Metadata for the version. */ - readonly metadata?: { - [key: string]: unknown | undefined; - }; - /** @description The tags for the version, comma-delimited */ - readonly tags?: string; - }; - }; - }; - responses: { - /** @description Successful response */ - 200: { - content: { - readonly "application/json": { - /** @description The ID of the dataset */ - readonly datasetId: string; - /** - * Format: date-time - * @description The date the version was created - */ - readonly dtCreated: Date; - /** - * Format: date-time - * @description The date the version was last modified - */ - readonly dtModified: Date; - /** @description Whether the version is committed */ - readonly isCommitted: boolean; - /** @description The description of the dataset version */ - readonly message: string | null; - /** @description Metadata for the version. */ - readonly metadata: - | ({ - [key: string]: unknown | undefined; - }) - | null; - /** @description The tags for the version */ - readonly tags: readonly (string)[]; - /** @description The URL of the version */ - readonly url: string | null; - /** @description The size of the dataset at this version in bytes */ - readonly usageBytes: string | null; - /** @description The ID of the user that created the version */ - readonly userId: string | null; - /** @description The version of the dataset */ - readonly version: string; - }; - }; - }; - default: components["responses"]["error"]; - }; - }; - /** - * Delete a dataset version - * @description Delete a dataset version - */ - "datasetVersions-delete": { - parameters: { - readonly path: { - /** @description The ID of the dataset */ - datasetId: string; - /** @description The version of the dataset */ - version: string; - }; - }; - responses: { - /** @description Successful response */ - 200: { - content: { - readonly "application/json": { - /** @description The ID of the dataset */ - readonly datasetId: string; - /** @description The version of the dataset */ - readonly version: string; - }; - }; - }; - default: components["responses"]["error"]; - }; - }; - /** - * Get a dataset - * @description Get a dataset - */ - "datasets-get": { - parameters: { - readonly path: { - /** @description The ID of the dataset */ - id: string; - }; - }; - responses: { - /** @description Successful response */ - 200: { - content: { - readonly "application/json": { - /** @description The description of the dataset */ - readonly description: string | null; - /** - * Format: date-time - * @description The date the dataset was created - */ - readonly dtCreated: Date; - /** - * Format: date-time - * @description The date the dataset was last modified - */ - readonly dtModified: Date; - /** @description The ID of the dataset */ - readonly id: string; - /** @description Whether the dataset is public */ - readonly isPublic: boolean; - /** @description The name of the dataset */ - readonly name: string | null; - /** @description The ID of the storage provider */ - readonly storageProviderId: string | null; - /** @description The ID of the team that owns the dataset */ - readonly teamId: string; - }; - }; - }; - default: components["responses"]["error"]; - }; - }; - /** - * Update a dataset - * @description Update a dataset - */ - "datasets-update": { - parameters: { - readonly path: { - /** @description The ID of the dataset */ - id: string; - }; - }; - readonly requestBody: { - readonly content: { - readonly "application/json": { - /** @description The description of the dataset */ - readonly description?: (Record | string) | null; - /** @description The name of the dataset */ - readonly name?: string; - }; - }; - }; - responses: { - /** @description Successful response */ - 200: { - content: { - readonly "application/json": { - /** @description The description of the dataset */ - readonly description: string | null; - /** - * Format: date-time - * @description The date the dataset was created - */ - readonly dtCreated: Date; - /** - * Format: date-time - * @description The date the dataset was last modified - */ - readonly dtModified: Date; - /** @description The ID of the dataset */ - readonly id: string; - /** @description Whether the dataset is public */ - readonly isPublic: boolean; - /** @description The name of the dataset */ - readonly name: string | null; - /** @description The ID of the storage provider */ - readonly storageProviderId: string | null; - /** @description The ID of the team that owns the dataset */ - readonly teamId: string; - }; - }; - }; - default: components["responses"]["error"]; - }; - }; - /** - * Delete a dataset - * @description Delete a dataset - */ - "datasets-delete": { - parameters: { - readonly path: { - /** @description The ID of the dataset */ - id: string; - }; - }; - responses: { - /** @description Successful response */ - 200: { - content: { - readonly "application/json": { - /** @description The ID of the dataset */ - readonly id: string; - }; - }; - }; - default: components["responses"]["error"]; - }; - }; - /** - * List deployments - * @description Fetches a list of deployments for a logged in user. - */ - "deployments-list": { - parameters: { - readonly query: { - /** @description Fetch the next page of results after this cursor. */ - after?: string; - /** @description The number of items to fetch after this page. */ - limit?: number; - /** @description Order results by one of these fields. */ - orderBy?: "dtCreated"; - /** @description The order to sort the results by. */ - order?: "asc" | "desc"; - }; - }; - responses: { - /** @description Successful response */ - 200: { - content: { - readonly "application/json": { - /** @description Whether there are more pages of results available. */ - readonly hasMore: boolean; - /** @description The items on this page. */ - readonly items: readonly ({ - /** - * Format: date-time - * @description The date the deployment was created - */ - readonly dtCreated: Date; - /** @description The unique endpoint for the deployment */ - readonly endpoint: string; - /** @description The ID of the deployment */ - readonly id: string; - /** - * @description The latest deployment configuration. If invalid, null is returned. - * @default null - */ - readonly latestSpec?: - | ({ - /** @description The data for the deployment spec */ - readonly data?: - | ( - | ( - | ({ - readonly apiVersion: "v0alpha0" | "latest"; - readonly command?: readonly (string)[]; - readonly containerRegistry?: string; - /** @default true */ - readonly enabled?: boolean; - readonly env?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly healthChecks?: { - readonly liveness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - readonly readiness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - readonly startup?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - }; - readonly image: string; - readonly models?: readonly ({ - readonly id: string; - readonly path?: string; - })[]; - readonly name: string; - /** @default 80 */ - readonly port?: number; - readonly region?: string; - readonly repositories?: { - readonly dataset: string; - readonly mountPath?: string; - readonly repositories: readonly ({ - readonly name: string; - readonly password?: string; - readonly ref?: string; - readonly url: string; - readonly username?: string; - })[]; - }; - readonly resources: { - readonly autoscaling?: { - readonly enabled?: boolean; - readonly maxReplicas: number; - readonly metrics: readonly ( - | { - /** @enum {string} */ - readonly metric: "requestDuration"; - /** @enum {string} */ - readonly summary: "average"; - readonly value: number; - } - | ({ - /** @enum {string} */ - readonly metric: "cpu" | "memory"; - /** @enum {string} */ - readonly summary: "average"; - readonly value: number; - }) - )[]; - }; - readonly instanceType: string; - /** @default 1 */ - readonly replicas?: number; - }; - }) - | ({ - /** @enum {string} */ - readonly apiVersion: "v0alpha1"; - readonly command?: readonly (string)[]; - readonly containerRegistry?: string; - /** @default true */ - readonly enabled?: boolean; - readonly env?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly healthchecks?: { - readonly liveness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - readonly readiness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - readonly startup?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - }; - readonly healthChecks?: { - readonly liveness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - readonly readiness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - readonly startup?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - }; - readonly image: string; - readonly integrations?: readonly ({ - readonly accessKeyId: string; - readonly endpoint?: string; - readonly name: string; - readonly path?: string; - readonly region?: string; - readonly secretAccessKey: string; - /** @enum {string} */ - readonly type: "s3"; - readonly url: string; - } | { - readonly name: string; - /** @enum {string} */ - readonly type: "volume"; - } | { - readonly name: string; - readonly path?: string; - /** @enum {string} */ - readonly type: "git-lfs"; - /** Format: uri */ - readonly url: string; - })[]; - readonly models?: readonly ({ - readonly id: string; - readonly path?: string; - })[]; - readonly name: string; - readonly region?: string; - readonly repositories?: { - readonly dataset: string; - readonly mountPath?: string; - readonly repositories: readonly ({ - readonly name: string; - readonly password?: string; - readonly ref?: string; - readonly url: string; - readonly username?: string; - })[]; - }; - readonly resources: { - readonly autoscaling?: { - readonly enabled?: boolean; - readonly maxReplicas: number; - readonly metrics: readonly ( - | { - /** @enum {string} */ - readonly metric: "requestDuration"; - /** @enum {string} */ - readonly summary: "average"; - readonly value: number; - } - | ({ - /** @enum {string} */ - readonly metric: "cpu" | "memory"; - /** @enum {string} */ - readonly summary: "average"; - readonly value: number; - }) - )[]; - }; - readonly machineType: string; - readonly ports: readonly (number)[]; - /** @default 1 */ - readonly replicas?: number; - }; - }) - ) - | ({ - readonly apiVersion: "v1" | "latest"; - readonly command?: readonly (string)[]; - readonly containerRegistry?: string; - /** @default true */ - readonly enabled?: boolean; - readonly env?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly healthchecks?: { - readonly liveness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - readonly readiness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - readonly startup?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - }; - readonly healthChecks?: { - readonly liveness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - readonly readiness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - readonly startup?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - }; - readonly image: string; - readonly integrations?: readonly ({ - readonly accessKeyId: string; - readonly endpoint?: string; - readonly name: string; - readonly path?: string; - readonly region?: string; - readonly secretAccessKey: string; - /** @enum {string} */ - readonly type: "s3"; - readonly url: string; - } | { - readonly name: string; - /** @enum {string} */ - readonly type: "volume"; - } | { - readonly name: string; - readonly path?: string; - /** @enum {string} */ - readonly type: "git-lfs"; - /** Format: uri */ - readonly url: string; - })[]; - readonly models?: readonly ({ - readonly id: string; - readonly path?: string; - })[]; - readonly name: string; - readonly region?: string; - readonly repositories?: { - readonly dataset: string; - readonly mountPath?: string; - readonly repositories: readonly ({ - readonly name: string; - readonly password?: string; - readonly ref?: string; - readonly url: string; - readonly username?: string; - })[]; - }; - readonly resources: { - readonly autoscaling?: { - readonly enabled?: boolean; - readonly maxReplicas: number; - readonly metrics: readonly ( - | { - /** @enum {string} */ - readonly metric: "requestDuration"; - /** @enum {string} */ - readonly summary: "average"; - readonly value: number; - } - | ({ - /** @enum {string} */ - readonly metric: "cpu" | "memory"; - /** @enum {string} */ - readonly summary: "average"; - readonly value: number; - }) - )[]; - }; - readonly machineType: string; - readonly ports: readonly (number)[]; - /** @default 1 */ - readonly replicas?: number; - }; - }) - ) - | null; - /** @description The ID of the deployment the spec belongs to */ - readonly deploymentId: string; - /** - * Format: date-time - * @description The date the deployment was marked "healthy" - * @default null - */ - readonly dtHealthy?: Date; - /** - * @description The fatal configuration error. Only present if the cluster was unable to apply the entire deployment configuration. This is not the same as an instance error. - * @default null - */ - readonly error?: string | null; - /** - * Format: date-time - * @description The date the deployment configuration was applied to the cluster - * @default null - */ - readonly externalApplied?: Date; - /** @description The ID of the deployment spec */ - readonly id: string; - /** - * @description Metadata about the source of the configuration - * @default null - */ - readonly metadata?: - | ({ - readonly gitHeaders?: { - readonly "x-git-actor": string; - readonly "x-git-host": "github" | "gitlab"; - readonly "x-git-owner": string; - readonly "x-git-ref": string; - readonly "x-git-repo": string; - readonly "x-git-sha": string; - }; - }) - | null; - /** @description The ID of the user the deployment belongs to */ - readonly userId: string; - }) - | null; - /** - * @description The last version hash for the deployment - * @default null - */ - readonly latestSpecHash?: string | null; - /** @description The name of the deployment */ - readonly name: string; - /** @description The ID of the project the deployment belongs to */ - readonly projectId: string; - /** @description The ID of the team the deployment belongs to */ - readonly teamId: string; - })[]; - /** @description The cursor required to fetch the next page of results. i.e. `?after=nextPage`. This is `null` when there is no next page. */ - readonly nextPage?: string; - }; - }; - }; - default: components["responses"]["error"]; - }; - }; - /** - * Upsert a deployment - * @description Submit a new deployment configuration. If a deployment does not exist, one is created. Otherwise, a deployment is updated with new configuration. - */ - "deployments-upsert": { - readonly requestBody: { - readonly content: { - readonly "application/json": { - /** @description The deployment configuration */ - readonly config: - | ( - | ({ - readonly apiVersion: "v0alpha0" | "latest"; - readonly command?: readonly (string)[]; - readonly containerRegistry?: string; - /** @default true */ - readonly enabled?: boolean; - readonly env?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly healthChecks?: { - readonly liveness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - readonly readiness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - readonly startup?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - }; - readonly image: string; - readonly models?: readonly ({ - readonly id: string; - readonly path?: string; - })[]; - readonly name: string; - /** @default 80 */ - readonly port?: number; - readonly region?: string; - readonly repositories?: { - readonly dataset: string; - readonly mountPath?: string; - readonly repositories: readonly ({ - readonly name: string; - readonly password?: string; - readonly ref?: string; - readonly url: string; - readonly username?: string; - })[]; - }; - readonly resources: { - readonly autoscaling?: { - readonly enabled?: boolean; - readonly maxReplicas: number; - readonly metrics: readonly ( - | { - /** @enum {string} */ - readonly metric: "requestDuration"; - /** @enum {string} */ - readonly summary: "average"; - readonly value: number; - } - | ({ - /** @enum {string} */ - readonly metric: "cpu" | "memory"; - /** @enum {string} */ - readonly summary: "average"; - readonly value: number; - }) - )[]; - }; - readonly instanceType: string; - /** @default 1 */ - readonly replicas?: number; - }; - }) - | ({ - /** @enum {string} */ - readonly apiVersion: "v0alpha1"; - readonly command?: readonly (string)[]; - readonly containerRegistry?: string; - /** @default true */ - readonly enabled?: boolean; - readonly env?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly healthchecks?: { - readonly liveness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - readonly readiness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - readonly startup?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - }; - readonly healthChecks?: { - readonly liveness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - readonly readiness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - readonly startup?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - }; - readonly image: string; - readonly integrations?: readonly ({ - readonly accessKeyId: string; - readonly endpoint?: string; - readonly name: string; - readonly path?: string; - readonly region?: string; - readonly secretAccessKey: string; - /** @enum {string} */ - readonly type: "s3"; - readonly url: string; - } | { - readonly name: string; - /** @enum {string} */ - readonly type: "volume"; - } | { - readonly name: string; - readonly path?: string; - /** @enum {string} */ - readonly type: "git-lfs"; - /** Format: uri */ - readonly url: string; - })[]; - readonly models?: readonly ({ - readonly id: string; - readonly path?: string; - })[]; - readonly name: string; - readonly region?: string; - readonly repositories?: { - readonly dataset: string; - readonly mountPath?: string; - readonly repositories: readonly ({ - readonly name: string; - readonly password?: string; - readonly ref?: string; - readonly url: string; - readonly username?: string; - })[]; - }; - readonly resources: { - readonly autoscaling?: { - readonly enabled?: boolean; - readonly maxReplicas: number; - readonly metrics: readonly ( - | { - /** @enum {string} */ - readonly metric: "requestDuration"; - /** @enum {string} */ - readonly summary: "average"; - readonly value: number; - } - | ({ - /** @enum {string} */ - readonly metric: "cpu" | "memory"; - /** @enum {string} */ - readonly summary: "average"; - readonly value: number; - }) - )[]; - }; - readonly machineType: string; - readonly ports: readonly (number)[]; - /** @default 1 */ - readonly replicas?: number; - }; - }) - ) - | ({ - readonly apiVersion: "v1" | "latest"; - readonly command?: readonly (string)[]; - readonly containerRegistry?: string; - /** @default true */ - readonly enabled?: boolean; - readonly env?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly healthchecks?: { - readonly liveness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - readonly readiness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - readonly startup?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - }; - readonly healthChecks?: { - readonly liveness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - readonly readiness?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - readonly startup?: { - readonly failureThreshold?: number; - readonly headers?: readonly ({ - readonly name: string; - readonly value: string; - })[]; - readonly host?: string; - readonly initialDelaySeconds?: number; - readonly path: string; - readonly periodSeconds?: number; - readonly port?: number; - readonly timeoutSeconds?: number; - } | { - readonly exec: { - readonly command: readonly (string)[]; - }; - readonly failureThreshold?: number; - readonly initialDelaySeconds?: number; - readonly periodSeconds?: number; - readonly timeoutSeconds?: number; - }; - }; - readonly image: string; - readonly integrations?: readonly ({ - readonly accessKeyId: string; - readonly endpoint?: string; - readonly name: string; - readonly path?: string; - readonly region?: string; - readonly secretAccessKey: string; - /** @enum {string} */ - readonly type: "s3"; - readonly url: string; - } | { - readonly name: string; - /** @enum {string} */ - readonly type: "volume"; - } | { - readonly name: string; - readonly path?: string; - /** @enum {string} */ - readonly type: "git-lfs"; - /** Format: uri */ - readonly url: string; - })[]; - readonly models?: readonly ({ - readonly id: string; - readonly path?: string; - })[]; + "autoscalingGroups-create": { + readonly requestBody: { + readonly content: { + readonly "application/json": { + /** @description The cluster the autoscaling group is for. */ + readonly clusterId: string; + /** @description The machine type used for machines in the autoscaling group. */ + readonly machineType: string; + /** @description The maximum number of machines in the autoscaling group. */ + readonly max: number; + /** @description The minimum number of machines in the autoscaling group. */ + readonly min: number; + /** @description The name of the autoscaling group. */ + readonly name: string; + /** @description The network the autoscaling group is in. */ + readonly networkId: string; + /** @description The timeout for provisioning machines in the autoscaling group. */ + readonly provisioningTimeout?: number; + /** @description The startup script used for machines in the autoscaling group. */ + readonly startupScriptId?: string; + /** @description The template used for machines in the autoscaling group. */ + readonly templateId: string; + }; + }; + }; + responses: { + /** @description Successful response */ + 200: { + content: { + readonly "application/json": { + /** @description The ID of the cluster the autoscaling group is for. */ + readonly clusterId: string; + /** @description The current number of machines in the autoscaling group. */ + readonly current: number; + /** + * Format: date-time + * @description The date the autoscaling group was created. + */ + readonly dtCreated: Date; + /** + * Format: date-time + * @description The date the autoscaling group was deleted. + */ + readonly dtDeleted: Date; + /** + * Format: date-time + * @description The date the autoscaling group was last modified. + */ + readonly dtModified: Date; + /** @description The ID of the autoscaling group. */ + readonly id: string; + /** @description The ID of the user who last edited the autoscaling group. */ + readonly lastEditedByUserId: string | null; + /** @description The machine type used by machines in the autoscaling group. */ + readonly machineType: string; + /** @description The maximum number of machines in the autoscaling group. */ + readonly max: number; + /** @description The minimum number of machines in the autoscaling group. */ + readonly min: number; + /** @description The name of the autoscaling group. */ + readonly name: string; + /** @description The ID of the network used by machines in the autoscaling group. */ + readonly networkId: string; + /** @description The timeout for provisioning machines in the autoscaling group, in minutes. */ + readonly provisioningTimeout: number | null; + /** @description The ID of the startup script used by machines in the autoscaling group. */ + readonly startupScriptId: string | null; + /** @description The ID of the template used by machines in the autoscaling group. */ + readonly templateId: string; + }; + }; + }; + default: components["responses"]["error"]; + }; + }; + /** + * Get an autoscaling group + * @description Fetches a single autoscaling group by id. + */ + "autoscalingGroups-get": { + parameters: { + readonly path: { + /** @description The ID of the autoscaling group to fetch. */ + id: string; + }; + }; + responses: { + /** @description Successful response */ + 200: { + content: { + readonly "application/json": { + /** @description The ID of the cluster the autoscaling group is for. */ + readonly clusterId: string; + /** @description The current number of machines in the autoscaling group. */ + readonly current: number; + /** + * Format: date-time + * @description The date the autoscaling group was created. + */ + readonly dtCreated: Date; + /** + * Format: date-time + * @description The date the autoscaling group was deleted. + */ + readonly dtDeleted: Date; + /** + * Format: date-time + * @description The date the autoscaling group was last modified. + */ + readonly dtModified: Date; + /** @description The ID of the autoscaling group. */ + readonly id: string; + /** @description The ID of the user who last edited the autoscaling group. */ + readonly lastEditedByUserId: string | null; + /** @description The machine type used by machines in the autoscaling group. */ + readonly machineType: string; + /** @description The maximum number of machines in the autoscaling group. */ + readonly max: number; + /** @description The minimum number of machines in the autoscaling group. */ + readonly min: number; + /** @description The name of the autoscaling group. */ + readonly name: string; + /** @description The ID of the network used by machines in the autoscaling group. */ + readonly networkId: string; + /** @description The timeout for provisioning machines in the autoscaling group, in minutes. */ + readonly provisioningTimeout: number | null; + /** @description The ID of the startup script used by machines in the autoscaling group. */ + readonly startupScriptId: string | null; + /** @description The ID of the template used by machines in the autoscaling group. */ + readonly templateId: string; + }; + }; + }; + default: components["responses"]["error"]; + }; + }; + /** + * Update an autoscaling group + * @description Update an autoscaling group. + */ + "autoscalingGroups-update": { + parameters: { + readonly path: { + /** @description The id of the autoscaling group. */ + id: string; + }; + }; + readonly requestBody: { + readonly content: { + readonly "application/json": { + /** @description The cluster the autoscaling group is for. */ + readonly clusterId?: string; + /** @description The target number of machines in the autoscaling group. */ + readonly current?: number; + /** @description The machine type used for machines in the autoscaling group. */ + readonly machineType?: string; + /** @description The maximum number of machines in the autoscaling group. */ + readonly max?: number; + /** @description The minimum number of machines in the autoscaling group. */ + readonly min?: number; + /** @description The name of the autoscaling group. */ + readonly name?: string; + /** @description The network the autoscaling group is in. */ + readonly networkId?: string; + /** @description The timeout for provisioning machines in the autoscaling group. */ + readonly provisioningTimeout?: number; + /** @description The startup script used for machines in the autoscaling group. */ + readonly startupScriptId?: string; + /** @description The template used for machines in the autoscaling group. */ + readonly templateId?: string; + }; + }; + }; + responses: { + /** @description Successful response */ + 200: { + content: { + readonly "application/json": { + /** @description The ID of the cluster the autoscaling group is for. */ + readonly clusterId: string; + /** @description The current number of machines in the autoscaling group. */ + readonly current: number; + /** + * Format: date-time + * @description The date the autoscaling group was created. + */ + readonly dtCreated: Date; + /** + * Format: date-time + * @description The date the autoscaling group was deleted. + */ + readonly dtDeleted: Date; + /** + * Format: date-time + * @description The date the autoscaling group was last modified. + */ + readonly dtModified: Date; + /** @description The ID of the autoscaling group. */ + readonly id: string; + /** @description The ID of the user who last edited the autoscaling group. */ + readonly lastEditedByUserId: string | null; + /** @description The machine type used by machines in the autoscaling group. */ + readonly machineType: string; + /** @description The maximum number of machines in the autoscaling group. */ + readonly max: number; + /** @description The minimum number of machines in the autoscaling group. */ + readonly min: number; + /** @description The name of the autoscaling group. */ + readonly name: string; + /** @description The ID of the network used by machines in the autoscaling group. */ + readonly networkId: string; + /** @description The timeout for provisioning machines in the autoscaling group, in minutes. */ + readonly provisioningTimeout: number | null; + /** @description The ID of the startup script used by machines in the autoscaling group. */ + readonly startupScriptId: string | null; + /** @description The ID of the template used by machines in the autoscaling group. */ + readonly templateId: string; + }; + }; + }; + default: components["responses"]["error"]; + }; + }; + /** + * Delete an autoscaling group + * @description Delete an autoscaling group. + */ + "autoscalingGroups-delete": { + parameters: { + readonly path: { + /** @description The id of the autoscaling group. */ + id: string; + }; + }; + responses: { + /** @description Successful response */ + 200: { + content: { + readonly "application/json": { + /** @description The id of the autoscaling group. */ + readonly id: string; + }; + }; + }; + default: components["responses"]["error"]; + }; + }; + /** + * Get account standing + * @description Check whether the current team account is in good standing. If not, send back a message explaining why. + */ + "billingAccountStanding-get": { + responses: { + /** @description Successful response */ + 200: { + content: { + readonly "application/json": { + /** @description Whether the account is in good standing */ + readonly isInGoodStanding: boolean; + /** @description If the account is not in good standing, these are messages explaining why. */ + readonly messages: readonly (string)[]; + }; + }; + }; + default: components["responses"]["error"]; + }; + }; + /** + * List container registries + * @description Lists container registries for the current team. + */ + "containerRegistries-list": { + parameters: { + readonly query: { + /** @description Fetch the next page of results after this cursor. */ + after?: string; + /** @description The number of items to fetch after this page. */ + limit?: number; + /** @description Order results by one of these fields. */ + orderBy?: "dtCreated"; + /** @description The order to sort the results by. */ + order?: "asc" | "desc"; + }; + }; + responses: { + /** @description Successful response */ + 200: { + content: { + readonly "application/json": { + /** @description Whether there are more pages of results available. */ + readonly hasMore: boolean; + /** @description The items on this page. */ + readonly items: readonly ({ + /** + * Format: date-time + * @description The date the container registry was created + */ + readonly dtCreated: Date; + /** + * Format: date-time + * @description The date the container registry was last modified + */ + readonly dtModified: Date; + /** @description The id of the container registry */ + readonly id: string; + /** @description The name of the container registry */ readonly name: string; - readonly region?: string; - readonly repositories?: { - readonly dataset: string; - readonly mountPath?: string; - readonly repositories: readonly ({ - readonly name: string; - readonly password?: string; - readonly ref?: string; - readonly url: string; - readonly username?: string; - })[]; - }; - readonly resources: { - readonly autoscaling?: { - readonly enabled?: boolean; - readonly maxReplicas: number; - readonly metrics: readonly ( - | { - /** @enum {string} */ - readonly metric: "requestDuration"; - /** @enum {string} */ - readonly summary: "average"; - readonly value: number; - } - | ({ - /** @enum {string} */ - readonly metric: "cpu" | "memory"; - /** @enum {string} */ - readonly summary: "average"; - readonly value: number; - }) - )[]; - }; - readonly machineType: string; - readonly ports: readonly (number)[]; - /** @default 1 */ - readonly replicas?: number; - }; - }); + /** @description The namespace of the container registry */ + readonly namespace: string; + /** @description The URL of the container registry */ + readonly url: string; + /** @description A username for the container registry */ + readonly username: string; + })[]; + /** @description The cursor required to fetch the next page of results. i.e. `?after=nextPage`. This is `null` when there is no next page. */ + readonly nextPage?: string; + }; + }; + }; + default: components["responses"]["error"]; + }; + }; + /** + * Create a container registry + * @description Creates a container registry for the current team. + */ + "containerRegistries-create": { + readonly requestBody: { + readonly content: { + readonly "application/json": { + /** @description The name of the container registry */ + readonly name: string; + /** @description The namespace of the container registry */ + readonly namespace: string; + /** @description The password for the registry */ + readonly password: string; + /** + * Format: uri + * @description The URL of the container registry + */ + readonly url: string; + /** @description A username for the container registry */ + readonly username: string; + }; + }; + }; + responses: { + /** @description Successful response */ + 200: { + content: { + readonly "application/json": { + /** + * Format: date-time + * @description The date the container registry was created + */ + readonly dtCreated: Date; + /** + * Format: date-time + * @description The date the container registry was last modified + */ + readonly dtModified: Date; + /** @description The id of the container registry */ + readonly id: string; + /** @description The name of the container registry */ + readonly name: string; + /** @description The namespace of the container registry */ + readonly namespace: string; + /** @description The URL of the container registry */ + readonly url: string; + /** @description A username for the container registry */ + readonly username: string; + }; + }; + }; + default: components["responses"]["error"]; + }; + }; + /** + * List container registries + * @description Lists container registries for the current team. + */ + "containerRegistries-get": { + parameters: { + readonly path: { + /** @description The id of the container registry */ + id: string; + }; + }; + responses: { + /** @description Successful response */ + 200: { + content: { + readonly "application/json": { + /** + * Format: date-time + * @description The date the container registry was created + */ + readonly dtCreated: Date; + /** + * Format: date-time + * @description The date the container registry was last modified + */ + readonly dtModified: Date; + /** @description The id of the container registry */ + readonly id: string; + /** @description The name of the container registry */ + readonly name: string; + /** @description The namespace of the container registry */ + readonly namespace: string; + /** @description The URL of the container registry */ + readonly url: string; + /** @description A username for the container registry */ + readonly username: string; + }; + }; + }; + default: components["responses"]["error"]; + }; + }; + /** + * Update a container registry + * @description Updates a container registry for the current team. + */ + "containerRegistries-update": { + parameters: { + readonly path: { + /** @description The id of the container registry */ + id: string; + }; + }; + readonly requestBody: { + readonly content: { + readonly "application/json": { + /** @description The name of the container registry */ + readonly name?: string; + /** @description The namespace of the container registry */ + readonly namespace?: string; + /** @description An updated password for the registry */ + readonly password?: string; /** - * @description The ID of the deployment to update. - * @default null + * Format: uri + * @description The URL of the container registry */ - readonly deploymentId?: string | null; - /** @description The project ID to deploy resources under. */ - readonly projectId: string; + readonly url?: string; + /** @description A username for the container registry */ + readonly username?: string; + }; + }; + }; + responses: { + /** @description Successful response */ + 200: { + content: { + readonly "application/json": { + /** + * Format: date-time + * @description The date the container registry was created + */ + readonly dtCreated: Date; + /** + * Format: date-time + * @description The date the container registry was last modified + */ + readonly dtModified: Date; + /** @description The id of the container registry */ + readonly id: string; + /** @description The name of the container registry */ + readonly name: string; + /** @description The namespace of the container registry */ + readonly namespace: string; + /** @description The URL of the container registry */ + readonly url: string; + /** @description A username for the container registry */ + readonly username: string; + }; + }; + }; + default: components["responses"]["error"]; + }; + }; + /** + * Delete a container registry + * @description Deletes a container registry for the current team. + */ + "containerRegistries-delete": { + parameters: { + readonly path: { + /** @description The id of the container registry */ + id: string; + }; + }; + responses: { + /** @description Successful response */ + 200: { + content: { + readonly "application/json": { + /** + * Format: date-time + * @description The date the container registry was created + */ + readonly dtCreated: Date; + /** + * Format: date-time + * @description The date the container registry was last modified + */ + readonly dtModified: Date; + /** @description The id of the container registry */ + readonly id: string; + /** @description The name of the container registry */ + readonly name: string; + /** @description The namespace of the container registry */ + readonly namespace: string; + /** @description The URL of the container registry */ + readonly url: string; + /** @description A username for the container registry */ + readonly username: string; + }; + }; + }; + default: components["responses"]["error"]; + }; + }; + /** + * Test a container registry connection + * @description Validate that a container registry can be connected to using the provided credentials. + */ + "containerRegistries-testConnection": { + parameters: { + readonly path: { + /** @description The id of the container registry */ + id: string; + }; + }; + responses: { + /** @description Successful response */ + 200: { + content: { + readonly "application/json": { + /** @description The error message, if any */ + readonly error?: string; + /** @description Whether the connection was successful */ + readonly success: boolean; + }; + }; + }; + default: components["responses"]["error"]; + }; + }; + /** + * List datasets + * @description List datasets + */ + "datasets-list": { + parameters: { + readonly query: { + /** @description Fetch the next page of results after this cursor. */ + after?: string; + /** @description The number of items to fetch after this page. */ + limit?: number; + /** @description Order results by one of these fields. */ + orderBy?: "dtCreated"; + /** @description The order to sort the results by. */ + order?: "asc" | "desc"; + teamId?: string; + privacy?: Record | ("PUBLIC" | "PRIVATE"); + }; + }; + responses: { + /** @description Successful response */ + 200: { + content: { + readonly "application/json": { + /** @description Whether there are more pages of results available. */ + readonly hasMore: boolean; + /** @description The items on this page. */ + readonly items: readonly ({ + /** @description The description of the dataset */ + readonly description: string | null; + /** + * Format: date-time + * @description The date the dataset was created + */ + readonly dtCreated: Date; + /** + * Format: date-time + * @description The date the dataset was last modified + */ + readonly dtModified: Date; + /** @description The ID of the dataset */ + readonly id: string; + /** @description Whether the dataset is public */ + readonly isPublic: boolean; + /** @description The name of the dataset */ + readonly name: string | null; + /** @description The ID of the storage provider */ + readonly storageProviderId: string | null; + /** @description The ID of the team that owns the dataset */ + readonly teamId: string; + })[]; + /** @description The cursor required to fetch the next page of results. i.e. `?after=nextPage`. This is `null` when there is no next page. */ + readonly nextPage?: string; + }; + }; + }; + default: components["responses"]["error"]; + }; + }; + /** + * Create a dataset + * @description Create a dataset + */ + "datasets-create": { + readonly requestBody: { + readonly content: { + readonly "application/json": { + /** @description The description of the dataset */ + readonly description?: (Record | string) | null; + /** @description Whether the dataset is public */ + readonly isPublic: boolean; + /** @description The name of the dataset */ + readonly name: string; + /** @description The ID of the storage provider */ + readonly storageProviderId?: string; + }; + }; + }; + responses: { + /** @description Successful response */ + 200: { + content: { + readonly "application/json": { + /** @description The description of the dataset */ + readonly description: string | null; + /** + * Format: date-time + * @description The date the dataset was created + */ + readonly dtCreated: Date; + /** + * Format: date-time + * @description The date the dataset was last modified + */ + readonly dtModified: Date; + /** @description The ID of the dataset */ + readonly id: string; + /** @description Whether the dataset is public */ + readonly isPublic: boolean; + /** @description The name of the dataset */ + readonly name: string | null; + /** @description The ID of the storage provider */ + readonly storageProviderId: string | null; + /** @description The ID of the team that owns the dataset */ + readonly teamId: string; + }; + }; + }; + default: components["responses"]["error"]; + }; + }; + /** + * List dataset versions + * @description List dataset versions + */ + "datasetVersions-list": { + parameters: { + readonly query: { + /** @description Fetch the next page of results after this cursor. */ + after?: string; + /** @description The number of items to fetch after this page. */ + limit?: number; + /** @description Order results by one of these fields. */ + orderBy?: "dtCreated"; + /** @description The order to sort the results by. */ + order?: "asc" | "desc"; + tags?: string; + }; + readonly path: { + /** @description The ID of the dataset */ + datasetId: string; + }; + }; + responses: { + /** @description Successful response */ + 200: { + content: { + readonly "application/json": { + /** @description Whether there are more pages of results available. */ + readonly hasMore: boolean; + /** @description The items on this page. */ + readonly items: readonly ({ + /** @description The ID of the dataset */ + readonly datasetId: string; + /** + * Format: date-time + * @description The date the version was created + */ + readonly dtCreated: Date; + /** + * Format: date-time + * @description The date the version was last modified + */ + readonly dtModified: Date; + /** @description Whether the version is committed */ + readonly isCommitted: boolean; + /** @description The description of the dataset version */ + readonly message: string | null; + /** @description Metadata for the version. */ + readonly metadata: + | ({ + [key: string]: unknown | undefined; + }) + | null; + /** @description The tags for the version */ + readonly tags: readonly (string)[]; + /** @description The URL of the version */ + readonly url: string | null; + /** @description The size of the dataset at this version in bytes */ + readonly usageBytes: string | null; + /** @description The ID of the user that created the version */ + readonly userId: string | null; + /** @description The version of the dataset */ + readonly version: string; + })[]; + /** @description The cursor required to fetch the next page of results. i.e. `?after=nextPage`. This is `null` when there is no next page. */ + readonly nextPage?: string; + }; + }; + }; + default: components["responses"]["error"]; + }; + }; + /** + * Create a dataset version + * @description Create a dataset version + */ + "datasetVersions-create": { + parameters: { + readonly path: { + /** @description The ID of the dataset */ + datasetId: string; + }; + }; + readonly requestBody: { + readonly content: { + readonly "application/json": { + /** @description The description of the dataset version */ + readonly message?: string; + /** @description Metadata for the version. */ + readonly metadata?: { + [key: string]: unknown | undefined; + }; + /** @description The tags for the version, comma-delimited */ + readonly tags?: string; + }; + }; + }; + responses: { + /** @description Successful response */ + 200: { + content: { + readonly "application/json": { + /** @description The ID of the dataset */ + readonly datasetId: string; + /** + * Format: date-time + * @description The date the version was created + */ + readonly dtCreated: Date; + /** + * Format: date-time + * @description The date the version was last modified + */ + readonly dtModified: Date; + /** @description Whether the version is committed */ + readonly isCommitted: boolean; + /** @description The description of the dataset version */ + readonly message: string | null; + /** @description Metadata for the version. */ + readonly metadata: + | ({ + [key: string]: unknown | undefined; + }) + | null; + /** @description The tags for the version */ + readonly tags: readonly (string)[]; + /** @description The URL of the version */ + readonly url: string | null; + /** @description The size of the dataset at this version in bytes */ + readonly usageBytes: string | null; + /** @description The ID of the user that created the version */ + readonly userId: string | null; + /** @description The version of the dataset */ + readonly version: string; + }; + }; + }; + default: components["responses"]["error"]; + }; + }; + /** + * Get a dataset version + * @description Get a dataset version + */ + "datasetVersions-get": { + parameters: { + readonly path: { + /** @description The ID of the dataset */ + datasetId: string; + /** @description The version of the dataset */ + version: string; + }; + }; + responses: { + /** @description Successful response */ + 200: { + content: { + readonly "application/json": { + /** @description The ID of the dataset */ + readonly datasetId: string; + /** + * Format: date-time + * @description The date the version was created + */ + readonly dtCreated: Date; + /** + * Format: date-time + * @description The date the version was last modified + */ + readonly dtModified: Date; + /** @description Whether the version is committed */ + readonly isCommitted: boolean; + /** @description The description of the dataset version */ + readonly message: string | null; + /** @description Metadata for the version. */ + readonly metadata: + | ({ + [key: string]: unknown | undefined; + }) + | null; + /** @description The tags for the version */ + readonly tags: readonly (string)[]; + /** @description The URL of the version */ + readonly url: string | null; + /** @description The size of the dataset at this version in bytes */ + readonly usageBytes: string | null; + /** @description The ID of the user that created the version */ + readonly userId: string | null; + /** @description The version of the dataset */ + readonly version: string; + }; + }; + }; + default: components["responses"]["error"]; + }; + }; + /** + * Update a dataset version + * @description Update a dataset version + */ + "datasetVersions-update": { + parameters: { + readonly path: { + /** @description The ID of the dataset */ + datasetId: string; + /** @description The version of the dataset */ + version: string; + }; + }; + readonly requestBody: { + readonly content: { + readonly "application/json": { + /** @description Whether the version is committed */ + readonly isCommitted?: boolean; + /** @description The description of the dataset version */ + readonly message?: string; + /** @description Metadata for the version. */ + readonly metadata?: { + [key: string]: unknown | undefined; + }; + /** @description The tags for the version, comma-delimited */ + readonly tags?: string; + }; + }; + }; + responses: { + /** @description Successful response */ + 200: { + content: { + readonly "application/json": { + /** @description The ID of the dataset */ + readonly datasetId: string; + /** + * Format: date-time + * @description The date the version was created + */ + readonly dtCreated: Date; + /** + * Format: date-time + * @description The date the version was last modified + */ + readonly dtModified: Date; + /** @description Whether the version is committed */ + readonly isCommitted: boolean; + /** @description The description of the dataset version */ + readonly message: string | null; + /** @description Metadata for the version. */ + readonly metadata: + | ({ + [key: string]: unknown | undefined; + }) + | null; + /** @description The tags for the version */ + readonly tags: readonly (string)[]; + /** @description The URL of the version */ + readonly url: string | null; + /** @description The size of the dataset at this version in bytes */ + readonly usageBytes: string | null; + /** @description The ID of the user that created the version */ + readonly userId: string | null; + /** @description The version of the dataset */ + readonly version: string; + }; }; }; + default: components["responses"]["error"]; + }; + }; + /** + * Delete a dataset version + * @description Delete a dataset version + */ + "datasetVersions-delete": { + parameters: { + readonly path: { + /** @description The ID of the dataset */ + datasetId: string; + /** @description The version of the dataset */ + version: string; + }; }; responses: { /** @description Successful response */ 200: { content: { readonly "application/json": { - /** @description The ID of the deployment */ - readonly deploymentId: string; + /** @description The ID of the dataset */ + readonly datasetId: string; + /** @description The version of the dataset */ + readonly version: string; }; }; }; @@ -6856,13 +3658,13 @@ export interface operations { }; }; /** - * Get a deployment - * @description Fetches a single deployment by deployment ID. + * Get a dataset + * @description Get a dataset */ - "deployments-get": { + "datasets-get": { parameters: { readonly path: { - /** @description The ID of the deployment to fetch */ + /** @description The ID of the dataset */ id: string; }; }; @@ -6871,25 +3673,487 @@ export interface operations { 200: { content: { readonly "application/json": { + /** @description The description of the dataset */ + readonly description: string | null; /** * Format: date-time - * @description The date the deployment was created + * @description The date the dataset was created */ readonly dtCreated: Date; - /** @description The unique endpoint for the deployment */ - readonly endpoint: string; - /** @description The ID of the deployment */ + /** + * Format: date-time + * @description The date the dataset was last modified + */ + readonly dtModified: Date; + /** @description The ID of the dataset */ readonly id: string; + /** @description Whether the dataset is public */ + readonly isPublic: boolean; + /** @description The name of the dataset */ + readonly name: string | null; + /** @description The ID of the storage provider */ + readonly storageProviderId: string | null; + /** @description The ID of the team that owns the dataset */ + readonly teamId: string; + }; + }; + }; + default: components["responses"]["error"]; + }; + }; + /** + * Update a dataset + * @description Update a dataset + */ + "datasets-update": { + parameters: { + readonly path: { + /** @description The ID of the dataset */ + id: string; + }; + }; + readonly requestBody: { + readonly content: { + readonly "application/json": { + /** @description The description of the dataset */ + readonly description?: (Record | string) | null; + /** @description The name of the dataset */ + readonly name?: string; + }; + }; + }; + responses: { + /** @description Successful response */ + 200: { + content: { + readonly "application/json": { + /** @description The description of the dataset */ + readonly description: string | null; /** - * @description The latest deployment configuration. If invalid, null is returned. - * @default null + * Format: date-time + * @description The date the dataset was created */ - readonly latestSpec?: - | ({ - /** @description The data for the deployment spec */ - readonly data?: - | ( + readonly dtCreated: Date; + /** + * Format: date-time + * @description The date the dataset was last modified + */ + readonly dtModified: Date; + /** @description The ID of the dataset */ + readonly id: string; + /** @description Whether the dataset is public */ + readonly isPublic: boolean; + /** @description The name of the dataset */ + readonly name: string | null; + /** @description The ID of the storage provider */ + readonly storageProviderId: string | null; + /** @description The ID of the team that owns the dataset */ + readonly teamId: string; + }; + }; + }; + default: components["responses"]["error"]; + }; + }; + /** + * Delete a dataset + * @description Delete a dataset + */ + "datasets-delete": { + parameters: { + readonly path: { + /** @description The ID of the dataset */ + id: string; + }; + }; + responses: { + /** @description Successful response */ + 200: { + content: { + readonly "application/json": { + /** @description The ID of the dataset */ + readonly id: string; + }; + }; + }; + default: components["responses"]["error"]; + }; + }; + /** + * List deployments + * @description Fetches a list of deployments for a logged in user. + */ + "deployments-list": { + parameters: { + readonly query: { + /** @description Fetch the next page of results after this cursor. */ + after?: string; + /** @description The number of items to fetch after this page. */ + limit?: number; + /** @description Order results by one of these fields. */ + orderBy?: "dtCreated"; + /** @description The order to sort the results by. */ + order?: "asc" | "desc"; + }; + }; + responses: { + /** @description Successful response */ + 200: { + content: { + readonly "application/json": { + /** @description Whether there are more pages of results available. */ + readonly hasMore: boolean; + /** @description The items on this page. */ + readonly items: readonly ({ + /** + * Format: date-time + * @description The date the deployment was created + */ + readonly dtCreated: Date; + /** @description The unique endpoint for the deployment */ + readonly endpoint: string; + /** @description The ID of the deployment */ + readonly id: string; + /** + * @description The latest deployment configuration. If invalid, null is returned. + * @default null + */ + readonly latestSpec?: + | ({ + /** @description The data for the deployment spec */ + readonly data?: | ( + | ( + | ({ + readonly apiVersion: "v0alpha0" | "latest"; + readonly command?: readonly (string)[]; + readonly containerRegistry?: string; + /** @default true */ + readonly enabled?: boolean; + readonly env?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly healthChecks?: { + readonly liveness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly readiness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly startup?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + }; + readonly image: string; + readonly models?: readonly ({ + readonly id: string; + readonly path?: string; + })[]; + readonly name: string; + /** @default 80 */ + readonly port?: number; + readonly region?: string; + readonly repositories?: { + readonly dataset: string; + readonly mountPath?: string; + readonly repositories: readonly ({ + readonly name: string; + readonly password?: string; + readonly ref?: string; + readonly url: string; + readonly username?: string; + })[]; + }; + readonly resources: { + readonly autoscaling?: { + readonly enabled?: boolean; + readonly maxReplicas: number; + readonly metrics: readonly ( + | { + /** @enum {string} */ + readonly metric: "requestDuration"; + /** @enum {string} */ + readonly summary: "average"; + readonly value: number; + } + | ({ + /** @enum {string} */ + readonly metric: "cpu" | "memory"; + /** @enum {string} */ + readonly summary: "average"; + readonly value: number; + }) + )[]; + }; + readonly instanceType: string; + /** @default 1 */ + readonly replicas?: number; + }; + }) + | ({ + /** @enum {string} */ + readonly apiVersion: "v0alpha1"; + readonly command?: readonly (string)[]; + readonly containerRegistry?: string; + /** @default true */ + readonly enabled?: boolean; + readonly env?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly healthchecks?: { + readonly liveness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly readiness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly startup?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + }; + readonly healthChecks?: { + readonly liveness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly readiness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly startup?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + }; + readonly image: string; + readonly integrations?: readonly ({ + readonly accessKeyId: string; + readonly endpoint?: string; + readonly name: string; + readonly path?: string; + readonly region?: string; + readonly secretAccessKey: string; + /** @enum {string} */ + readonly type: "s3"; + readonly url: string; + } | { + readonly name: string; + /** @enum {string} */ + readonly type: "volume"; + } | { + readonly name: string; + readonly path?: string; + /** @enum {string} */ + readonly type: "git-lfs"; + /** Format: uri */ + readonly url: string; + })[]; + readonly models?: readonly ({ + readonly id: string; + readonly path?: string; + })[]; + readonly name: string; + readonly region?: string; + readonly repositories?: { + readonly dataset: string; + readonly mountPath?: string; + readonly repositories: readonly ({ + readonly name: string; + readonly password?: string; + readonly ref?: string; + readonly url: string; + readonly username?: string; + })[]; + }; + readonly resources: { + readonly autoscaling?: { + readonly enabled?: boolean; + readonly maxReplicas: number; + readonly metrics: readonly ( + | { + /** @enum {string} */ + readonly metric: "requestDuration"; + /** @enum {string} */ + readonly summary: "average"; + readonly value: number; + } + | ({ + /** @enum {string} */ + readonly metric: "cpu" | "memory"; + /** @enum {string} */ + readonly summary: "average"; + readonly value: number; + }) + )[]; + }; + readonly machineType: string; + readonly ports: readonly (number)[]; + /** @default 1 */ + readonly replicas?: number; + }; + }) + ) | ({ readonly apiVersion: "v1" | "latest"; readonly command?: readonly (string)[]; @@ -7032,13 +4296,6 @@ export interface operations { }; readonly image: string; readonly integrations?: readonly ({ - readonly id: string; - readonly name: string; - /** @default /opt/models */ - readonly path?: string; - /** @enum {string} */ - readonly type: "model"; - } | { readonly accessKeyId: string; readonly endpoint?: string; readonly name: string; @@ -7060,8 +4317,23 @@ export interface operations { /** Format: uri */ readonly url: string; })[]; + readonly models?: readonly ({ + readonly id: string; + readonly path?: string; + })[]; readonly name: string; readonly region?: string; + readonly repositories?: { + readonly dataset: string; + readonly mountPath?: string; + readonly repositories: readonly ({ + readonly name: string; + readonly password?: string; + readonly ref?: string; + readonly url: string; + readonly username?: string; + })[]; + }; readonly resources: { readonly autoscaling?: { readonly enabled?: boolean; @@ -7164,8 +4436,7 @@ export interface operations { readonly config: | ( | ({ - /** @enum {string} */ - readonly apiVersion: "v0alpha0"; + readonly apiVersion: "v0alpha0" | "latest"; readonly command?: readonly (string)[]; readonly containerRegistry?: string; /** @default true */ @@ -7428,13 +4699,6 @@ export interface operations { }; readonly image: string; readonly integrations?: readonly ({ - readonly id: string; - readonly name: string; - /** @default /opt/models */ - readonly path?: string; - /** @enum {string} */ - readonly type: "model"; - } | { readonly accessKeyId: string; readonly endpoint?: string; readonly name: string; @@ -7456,8 +4720,23 @@ export interface operations { /** Format: uri */ readonly url: string; })[]; + readonly models?: readonly ({ + readonly id: string; + readonly path?: string; + })[]; readonly name: string; readonly region?: string; + readonly repositories?: { + readonly dataset: string; + readonly mountPath?: string; + readonly repositories: readonly ({ + readonly name: string; + readonly password?: string; + readonly ref?: string; + readonly url: string; + readonly username?: string; + })[]; + }; readonly resources: { readonly autoscaling?: { readonly enabled?: boolean; @@ -7628,13 +4907,6 @@ export interface operations { }; readonly image: string; readonly integrations?: readonly ({ - readonly id: string; - readonly name: string; - /** @default /opt/models */ - readonly path?: string; - /** @enum {string} */ - readonly type: "model"; - } | { readonly accessKeyId: string; readonly endpoint?: string; readonly name: string; @@ -7656,8 +4928,23 @@ export interface operations { /** Format: uri */ readonly url: string; })[]; + readonly models?: readonly ({ + readonly id: string; + readonly path?: string; + })[]; readonly name: string; readonly region?: string; + readonly repositories?: { + readonly dataset: string; + readonly mountPath?: string; + readonly repositories: readonly ({ + readonly name: string; + readonly password?: string; + readonly ref?: string; + readonly url: string; + readonly username?: string; + })[]; + }; readonly resources: { readonly autoscaling?: { readonly enabled?: boolean; @@ -7744,8 +5031,7 @@ export interface operations { | ( | ( | ({ - /** @enum {string} */ - readonly apiVersion: "v0alpha0"; + readonly apiVersion: "v0alpha0" | "latest"; readonly command?: readonly (string)[]; readonly containerRegistry?: string; /** @default true */ @@ -8032,13 +5318,20 @@ export interface operations { readonly models?: readonly ({ readonly id: string; readonly path?: string; - /** @enum {string} */ - readonly type: "git-lfs"; - /** Format: uri */ - readonly url: string; })[]; readonly name: string; readonly region?: string; + readonly repositories?: { + readonly dataset: string; + readonly mountPath?: string; + readonly repositories: readonly ({ + readonly name: string; + readonly password?: string; + readonly ref?: string; + readonly url: string; + readonly username?: string; + })[]; + }; readonly resources: { readonly autoscaling?: { readonly enabled?: boolean; @@ -8393,8 +5686,7 @@ export interface operations { | ( | ( | ({ - /** @enum {string} */ - readonly apiVersion: "v0alpha0"; + readonly apiVersion: "v0alpha0" | "latest"; readonly command?: readonly (string)[]; readonly containerRegistry?: string; /** @default true */ @@ -8681,13 +5973,20 @@ export interface operations { readonly models?: readonly ({ readonly id: string; readonly path?: string; - /** @enum {string} */ - readonly type: "git-lfs"; - /** Format: uri */ - readonly url: string; })[]; readonly name: string; readonly region?: string; + readonly repositories?: { + readonly dataset: string; + readonly mountPath?: string; + readonly repositories: readonly ({ + readonly name: string; + readonly password?: string; + readonly ref?: string; + readonly url: string; + readonly username?: string; + })[]; + }; readonly resources: { readonly autoscaling?: { readonly enabled?: boolean; @@ -8882,13 +6181,20 @@ export interface operations { readonly models?: readonly ({ readonly id: string; readonly path?: string; - /** @enum {string} */ - readonly type: "git-lfs"; - /** Format: uri */ - readonly url: string; })[]; readonly name: string; readonly region?: string; + readonly repositories?: { + readonly dataset: string; + readonly mountPath?: string; + readonly repositories: readonly ({ + readonly name: string; + readonly password?: string; + readonly ref?: string; + readonly url: string; + readonly username?: string; + })[]; + }; readonly resources: { readonly autoscaling?: { readonly enabled?: boolean; @@ -9448,14 +6754,12 @@ export interface operations { readonly items: readonly ({ /** @description The accelerators of the machine. */ readonly accelerators?: - | (readonly ({ + | readonly ({ /** @description The number of accelerators of this type. */ readonly count: number; - /** @description The amount of memory the accelerator has, if applicable. */ - readonly memory: number | null; /** @description The name of the accelerator. */ readonly name: string; - })[]) + })[] | null; /** @description The agent type of the machine. */ readonly agentType: string; @@ -9499,7 +6803,31 @@ export interface operations { /** @description The ID of the machine. */ readonly id: string; /** @description The type of the machine. */ - readonly machineType: string; + readonly machineType: { + /** @description The number of CPUs. */ + readonly cpus: number; + /** @description The name of the GPU. */ + readonly gpu: string | null; + /** @description The label of the machine type. */ + readonly label: string; + /** @description Metadata for the machine type. */ + readonly metadata: + | ({ + [key: string]: unknown | undefined; + }) + | null; + /** @description The name of the NVLink GPU. */ + readonly nvlinkGpu: string | null; + /** @description The number of NVLink GPUs. */ + readonly nvlinkGpuCount: number | null; + /** + * Format: int64 + * @description The amount of RAM in bytes. + */ + readonly ram: number; + /** @description Whether the machine type supports NVLink. */ + readonly supportsNvlink: boolean; + }; /** @description The name of the machine. */ readonly name: string; /** @description The ID of the network the machine is on. */ @@ -9644,14 +6972,12 @@ export interface operations { readonly data: { /** @description The accelerators of the machine. */ readonly accelerators?: - | (readonly ({ + | readonly ({ /** @description The number of accelerators of this type. */ readonly count: number; - /** @description The amount of memory the accelerator has, if applicable. */ - readonly memory: number | null; /** @description The name of the accelerator. */ readonly name: string; - })[]) + })[] | null; /** @description The agent type of the machine. */ readonly agentType: string; @@ -9695,7 +7021,31 @@ export interface operations { /** @description The ID of the machine. */ readonly id: string; /** @description The type of the machine. */ - readonly machineType: string; + readonly machineType: { + /** @description The number of CPUs. */ + readonly cpus: number; + /** @description The name of the GPU. */ + readonly gpu: string | null; + /** @description The label of the machine type. */ + readonly label: string; + /** @description Metadata for the machine type. */ + readonly metadata: + | ({ + [key: string]: unknown | undefined; + }) + | null; + /** @description The name of the NVLink GPU. */ + readonly nvlinkGpu: string | null; + /** @description The number of NVLink GPUs. */ + readonly nvlinkGpuCount: number | null; + /** + * Format: int64 + * @description The amount of RAM in bytes. + */ + readonly ram: number; + /** @description Whether the machine type supports NVLink. */ + readonly supportsNvlink: boolean; + }; /** @description The name of the machine. */ readonly name: string; /** @description The ID of the network the machine is on. */ @@ -9837,14 +7187,12 @@ export interface operations { readonly "application/json": { /** @description The accelerators of the machine. */ readonly accelerators?: - | (readonly ({ + | readonly ({ /** @description The number of accelerators of this type. */ readonly count: number; - /** @description The amount of memory the accelerator has, if applicable. */ - readonly memory: number | null; /** @description The name of the accelerator. */ readonly name: string; - })[]) + })[] | null; /** @description The agent type of the machine. */ readonly agentType: string; @@ -9888,7 +7236,31 @@ export interface operations { /** @description The ID of the machine. */ readonly id: string; /** @description The type of the machine. */ - readonly machineType: string; + readonly machineType: { + /** @description The number of CPUs. */ + readonly cpus: number; + /** @description The name of the GPU. */ + readonly gpu: string | null; + /** @description The label of the machine type. */ + readonly label: string; + /** @description Metadata for the machine type. */ + readonly metadata: + | ({ + [key: string]: unknown | undefined; + }) + | null; + /** @description The name of the NVLink GPU. */ + readonly nvlinkGpu: string | null; + /** @description The number of NVLink GPUs. */ + readonly nvlinkGpuCount: number | null; + /** + * Format: int64 + * @description The amount of RAM in bytes. + */ + readonly ram: number; + /** @description Whether the machine type supports NVLink. */ + readonly supportsNvlink: boolean; + }; /** @description The name of the machine. */ readonly name: string; /** @description The ID of the network the machine is on. */ @@ -10022,14 +7394,12 @@ export interface operations { readonly data: { /** @description The accelerators of the machine. */ readonly accelerators?: - | (readonly ({ + | readonly ({ /** @description The number of accelerators of this type. */ readonly count: number; - /** @description The amount of memory the accelerator has, if applicable. */ - readonly memory: number | null; /** @description The name of the accelerator. */ readonly name: string; - })[]) + })[] | null; /** @description The agent type of the machine. */ readonly agentType: string; @@ -10073,7 +7443,31 @@ export interface operations { /** @description The ID of the machine. */ readonly id: string; /** @description The type of the machine. */ - readonly machineType: string; + readonly machineType: { + /** @description The number of CPUs. */ + readonly cpus: number; + /** @description The name of the GPU. */ + readonly gpu: string | null; + /** @description The label of the machine type. */ + readonly label: string; + /** @description Metadata for the machine type. */ + readonly metadata: + | ({ + [key: string]: unknown | undefined; + }) + | null; + /** @description The name of the NVLink GPU. */ + readonly nvlinkGpu: string | null; + /** @description The number of NVLink GPUs. */ + readonly nvlinkGpuCount: number | null; + /** + * Format: int64 + * @description The amount of RAM in bytes. + */ + readonly ram: number; + /** @description Whether the machine type supports NVLink. */ + readonly supportsNvlink: boolean; + }; /** @description The name of the machine. */ readonly name: string; /** @description The ID of the network the machine is on. */ @@ -10217,14 +7611,12 @@ export interface operations { readonly data: { /** @description The accelerators of the machine. */ readonly accelerators?: - | (readonly ({ + | readonly ({ /** @description The number of accelerators of this type. */ readonly count: number; - /** @description The amount of memory the accelerator has, if applicable. */ - readonly memory: number | null; /** @description The name of the accelerator. */ readonly name: string; - })[]) + })[] | null; /** @description The agent type of the machine. */ readonly agentType: string; @@ -10268,7 +7660,31 @@ export interface operations { /** @description The ID of the machine. */ readonly id: string; /** @description The type of the machine. */ - readonly machineType: string; + readonly machineType: { + /** @description The number of CPUs. */ + readonly cpus: number; + /** @description The name of the GPU. */ + readonly gpu: string | null; + /** @description The label of the machine type. */ + readonly label: string; + /** @description Metadata for the machine type. */ + readonly metadata: + | ({ + [key: string]: unknown | undefined; + }) + | null; + /** @description The name of the NVLink GPU. */ + readonly nvlinkGpu: string | null; + /** @description The number of NVLink GPUs. */ + readonly nvlinkGpuCount: number | null; + /** + * Format: int64 + * @description The amount of RAM in bytes. + */ + readonly ram: number; + /** @description Whether the machine type supports NVLink. */ + readonly supportsNvlink: boolean; + }; /** @description The name of the machine. */ readonly name: string; /** @description The ID of the network the machine is on. */ @@ -10693,14 +8109,12 @@ export interface operations { readonly data: { /** @description The accelerators of the machine. */ readonly accelerators?: - | (readonly ({ + | readonly ({ /** @description The number of accelerators of this type. */ readonly count: number; - /** @description The amount of memory the accelerator has, if applicable. */ - readonly memory: number | null; /** @description The name of the accelerator. */ readonly name: string; - })[]) + })[] | null; /** @description The agent type of the machine. */ readonly agentType: string; @@ -10744,7 +8158,31 @@ export interface operations { /** @description The ID of the machine. */ readonly id: string; /** @description The type of the machine. */ - readonly machineType: string; + readonly machineType: { + /** @description The number of CPUs. */ + readonly cpus: number; + /** @description The name of the GPU. */ + readonly gpu: string | null; + /** @description The label of the machine type. */ + readonly label: string; + /** @description Metadata for the machine type. */ + readonly metadata: + | ({ + [key: string]: unknown | undefined; + }) + | null; + /** @description The name of the NVLink GPU. */ + readonly nvlinkGpu: string | null; + /** @description The number of NVLink GPUs. */ + readonly nvlinkGpuCount: number | null; + /** + * Format: int64 + * @description The amount of RAM in bytes. + */ + readonly ram: number; + /** @description Whether the machine type supports NVLink. */ + readonly supportsNvlink: boolean; + }; /** @description The name of the machine. */ readonly name: string; /** @description The ID of the network the machine is on. */ @@ -10888,14 +8326,12 @@ export interface operations { readonly data: { /** @description The accelerators of the machine. */ readonly accelerators?: - | (readonly ({ + | readonly ({ /** @description The number of accelerators of this type. */ readonly count: number; - /** @description The amount of memory the accelerator has, if applicable. */ - readonly memory: number | null; /** @description The name of the accelerator. */ readonly name: string; - })[]) + })[] | null; /** @description The agent type of the machine. */ readonly agentType: string; @@ -10939,7 +8375,31 @@ export interface operations { /** @description The ID of the machine. */ readonly id: string; /** @description The type of the machine. */ - readonly machineType: string; + readonly machineType: { + /** @description The number of CPUs. */ + readonly cpus: number; + /** @description The name of the GPU. */ + readonly gpu: string | null; + /** @description The label of the machine type. */ + readonly label: string; + /** @description Metadata for the machine type. */ + readonly metadata: + | ({ + [key: string]: unknown | undefined; + }) + | null; + /** @description The name of the NVLink GPU. */ + readonly nvlinkGpu: string | null; + /** @description The number of NVLink GPUs. */ + readonly nvlinkGpuCount: number | null; + /** + * Format: int64 + * @description The amount of RAM in bytes. + */ + readonly ram: number; + /** @description Whether the machine type supports NVLink. */ + readonly supportsNvlink: boolean; + }; /** @description The name of the machine. */ readonly name: string; /** @description The ID of the network the machine is on. */ @@ -11083,14 +8543,12 @@ export interface operations { readonly data: { /** @description The accelerators of the machine. */ readonly accelerators?: - | (readonly ({ + | readonly ({ /** @description The number of accelerators of this type. */ readonly count: number; - /** @description The amount of memory the accelerator has, if applicable. */ - readonly memory: number | null; /** @description The name of the accelerator. */ readonly name: string; - })[]) + })[] | null; /** @description The agent type of the machine. */ readonly agentType: string; @@ -11134,7 +8592,31 @@ export interface operations { /** @description The ID of the machine. */ readonly id: string; /** @description The type of the machine. */ - readonly machineType: string; + readonly machineType: { + /** @description The number of CPUs. */ + readonly cpus: number; + /** @description The name of the GPU. */ + readonly gpu: string | null; + /** @description The label of the machine type. */ + readonly label: string; + /** @description Metadata for the machine type. */ + readonly metadata: + | ({ + [key: string]: unknown | undefined; + }) + | null; + /** @description The name of the NVLink GPU. */ + readonly nvlinkGpu: string | null; + /** @description The number of NVLink GPUs. */ + readonly nvlinkGpuCount: number | null; + /** + * Format: int64 + * @description The amount of RAM in bytes. + */ + readonly ram: number; + /** @description Whether the machine type supports NVLink. */ + readonly supportsNvlink: boolean; + }; /** @description The name of the machine. */ readonly name: string; /** @description The ID of the network the machine is on. */ @@ -11673,27 +9155,25 @@ export interface operations { /** @description Successful response */ 200: { content: { - readonly "application/json": - | ({ - /** - * Format: date-time - * @description The date the private network was created. - */ - readonly dtCreated: Date; - /** @description The date the private network was deleted. */ - readonly dtDeleted?: (Record | Date) | null; - /** @description The ID of the private network. */ - readonly id: string; - /** @description The name of the private network. */ - readonly name: string; - /** @description The subnet mask of the private network. */ - readonly netmask: string; - /** @description The network prefix of the private network. */ - readonly network: string; - /** @description The region the private network is in. */ - readonly region: string; - }) - | null; + readonly "application/json": { + /** + * Format: date-time + * @description The date the private network was created. + */ + readonly dtCreated: Date; + /** @description The date the private network was deleted. */ + readonly dtDeleted?: (Record | Date) | null; + /** @description The ID of the private network. */ + readonly id: string; + /** @description The name of the private network. */ + readonly name: string; + /** @description The subnet mask of the private network. */ + readonly netmask: string; + /** @description The network prefix of the private network. */ + readonly network: string; + /** @description The region the private network is in. */ + readonly region: string; + }; }; }; default: components["responses"]["error"]; @@ -12159,8 +9639,8 @@ export interface operations { }; }; /** - * List a project's apps - * @description Fetches a list of apps for a project. + * List a project's collaborators + * @description Fetches a list of collaborators for a project. */ "projectCollaborators-list": { parameters: { @@ -12344,7 +9824,7 @@ export interface operations { name?: string; }; readonly path: { - /** @description The ID of the project to fetch apps for */ + /** @description The ID of the project to fetch deployments for */ id: string; }; }; @@ -12872,13 +10352,20 @@ export interface operations { readonly models?: readonly ({ readonly id: string; readonly path?: string; - /** @enum {string} */ - readonly type: "git-lfs"; - /** Format: uri */ - readonly url: string; })[]; readonly name: string; readonly region?: string; + readonly repositories?: { + readonly dataset: string; + readonly mountPath?: string; + readonly repositories: readonly ({ + readonly name: string; + readonly password?: string; + readonly ref?: string; + readonly url: string; + readonly username?: string; + })[]; + }; readonly resources: { readonly autoscaling?: { readonly enabled?: boolean; From 5e8d339459e2327dd9b49109fe9760cdd4c62405 Mon Sep 17 00:00:00 2001 From: Kevin Wang Date: Wed, 5 Jul 2023 12:49:26 -0400 Subject: [PATCH 7/9] openapi --- api/openapi.ts | 4672 +++++++++++++++++++++++++++++------------------- 1 file changed, 2869 insertions(+), 1803 deletions(-) diff --git a/api/openapi.ts b/api/openapi.ts index f9bb1d8..58e5910 100644 --- a/api/openapi.ts +++ b/api/openapi.ts @@ -12,6 +12,11 @@ export interface paths { post: operations["apps-create"]; }; "/apps/{id}": { + /** + * Get an app + * @description Fetches an app. + */ + get: operations["apps-get"]; /** * Delete an app * @description Deletes an app. This will delete all resources associated with the app. @@ -118,64 +123,6 @@ export interface paths { */ get: operations["containerRegistries-testConnection"]; }; - "/datasets": { - /** - * List datasets - * @description List datasets - */ - get: operations["datasets-list"]; - /** - * Create a dataset - * @description Create a dataset - */ - post: operations["datasets-create"]; - }; - "/datasets/{datasetId}/versions": { - /** - * List dataset versions - * @description List dataset versions - */ - get: operations["datasetVersions-list"]; - /** - * Create a dataset version - * @description Create a dataset version - */ - post: operations["datasetVersions-create"]; - }; - "/datasets/{datasetId}/versions/{version}": { - /** - * Get a dataset version - * @description Get a dataset version - */ - get: operations["datasetVersions-get"]; - /** - * Update a dataset version - * @description Update a dataset version - */ - put: operations["datasetVersions-update"]; - /** - * Delete a dataset version - * @description Delete a dataset version - */ - delete: operations["datasetVersions-delete"]; - }; - "/datasets/{id}": { - /** - * Get a dataset - * @description Get a dataset - */ - get: operations["datasets-get"]; - /** - * Update a dataset - * @description Update a dataset - */ - put: operations["datasets-update"]; - /** - * Delete a dataset - * @description Delete a dataset - */ - delete: operations["datasets-delete"]; - }; "/deployments": { /** * List deployments @@ -330,30 +277,6 @@ export interface paths { */ patch: operations["machines-stop"]; }; - "/models": { - /** - * List models - * @description List models - */ - get: operations["models-list"]; - /** - * Create a model - * @description Create a model - */ - post: operations["models-create"]; - }; - "/models/{id}": { - /** - * Get a model - * @description Get a model - */ - get: operations["models-get"]; - /** - * Delete a model - * @description Delete a model - */ - delete: operations["models-delete"]; - }; "/notebooks": { /** * List notebooks @@ -427,6 +350,13 @@ export interface paths { */ get: operations["projectActivity-list"]; }; + "/projects/{id}/apps": { + /** + * List a project's apps + * @description Fetches a list of apps for a project. + */ + get: operations["projectApps-list"]; + }; "/projects/{id}/collaborators": { /** * List a project's collaborators @@ -451,7 +381,7 @@ export interface paths { * List a project's deployments * @description Fetches a list of deployments for a project. */ - get: operations["projectsDeployments-list"]; + get: operations["projectDeployments-list"]; }; "/projects/{id}/models": { /** @@ -460,6 +390,39 @@ export interface paths { */ get: operations["projectModels-list"]; }; + "/projects/{id}/models/{modelId}": { + /** + * Add a model to a project + * @description Adds a model to a project. + */ + post: operations["projectModels-add"]; + /** + * Remove a model from project + * @description Remove a model from project. + */ + delete: operations["projectModels-remove"]; + }; + "/projects/{id}/notebook/{notebookId}": { + /** + * Remove a notebook from a project + * @description Remove a notebook from a project. + */ + delete: operations["projectNotebooks-remove"]; + }; + "/projects/{id}/notebooks": { + /** + * List a project's notebooks + * @description Fetches a list of notebooks for a project. + */ + get: operations["projectNotebooks-list"]; + }; + "/projects/{id}/notebooks/{notebookId}": { + /** + * Add a notebook to a project + * @description Adds a notebook to a project. + */ + post: operations["projectNotebooks-add"]; + }; "/projects/{id}/secrets": { /** * List a project's secrets @@ -763,7 +726,8 @@ export interface operations { readonly config: | ( | ({ - readonly apiVersion: "v0alpha0" | "latest"; + /** @enum {string} */ + readonly apiVersion: "v0alpha0"; readonly command?: readonly (string)[]; readonly containerRegistry?: string; /** @default true */ @@ -1026,6 +990,13 @@ export interface operations { }; readonly image: string; readonly integrations?: readonly ({ + readonly id: string; + readonly name: string; + /** @default /opt/models */ + readonly path?: string; + /** @enum {string} */ + readonly type: "model"; + } | { readonly accessKeyId: string; readonly endpoint?: string; readonly name: string; @@ -1047,23 +1018,8 @@ export interface operations { /** Format: uri */ readonly url: string; })[]; - readonly models?: readonly ({ - readonly id: string; - readonly path?: string; - })[]; readonly name: string; readonly region?: string; - readonly repositories?: { - readonly dataset: string; - readonly mountPath?: string; - readonly repositories: readonly ({ - readonly name: string; - readonly password?: string; - readonly ref?: string; - readonly url: string; - readonly username?: string; - })[]; - }; readonly resources: { readonly autoscaling?: { readonly enabled?: boolean; @@ -1234,6 +1190,13 @@ export interface operations { }; readonly image: string; readonly integrations?: readonly ({ + readonly id: string; + readonly name: string; + /** @default /opt/models */ + readonly path?: string; + /** @enum {string} */ + readonly type: "model"; + } | { readonly accessKeyId: string; readonly endpoint?: string; readonly name: string; @@ -1255,23 +1218,8 @@ export interface operations { /** Format: uri */ readonly url: string; })[]; - readonly models?: readonly ({ - readonly id: string; - readonly path?: string; - })[]; readonly name: string; readonly region?: string; - readonly repositories?: { - readonly dataset: string; - readonly mountPath?: string; - readonly repositories: readonly ({ - readonly name: string; - readonly password?: string; - readonly ref?: string; - readonly url: string; - readonly username?: string; - })[]; - }; readonly resources: { readonly autoscaling?: { readonly enabled?: boolean; @@ -1302,54 +1250,6 @@ export interface operations { }; }; }; - responses: { - /** @description Successful response */ - 200: { - content: { - readonly "application/json": { - /** @description The ID of the app */ - readonly id: string; - }; - }; - }; - default: components["responses"]["error"]; - }; - }; - /** - * Delete an app - * @description Deletes an app. This will delete all resources associated with the app. - */ - "apps-delete": { - parameters: { - readonly path: { - /** @description The ID of the app to delete */ - id: string; - }; - }; - responses: { - /** @description Successful response */ - 200: { - content: { - readonly "application/json": { - /** @description The ID of the app that was deleted */ - readonly id: string; - }; - }; - }; - default: components["responses"]["error"]; - }; - }; - /** - * Disable an app - * @description Disables an app that is currently enabled. This will stop the app's deployments and make it unavailable to users. - */ - "apps-disable": { - parameters: { - readonly path: { - /** @description The ID of the app to disable */ - id: string; - }; - }; responses: { /** @description Successful response */ 200: { @@ -1359,7 +1259,8 @@ export interface operations { readonly config: | ( | ({ - readonly apiVersion: "v0alpha0" | "latest"; + /** @enum {string} */ + readonly apiVersion: "v0alpha0"; readonly command?: readonly (string)[]; readonly containerRegistry?: string; /** @default true */ @@ -1622,6 +1523,13 @@ export interface operations { }; readonly image: string; readonly integrations?: readonly ({ + readonly id: string; + readonly name: string; + /** @default /opt/models */ + readonly path?: string; + /** @enum {string} */ + readonly type: "model"; + } | { readonly accessKeyId: string; readonly endpoint?: string; readonly name: string; @@ -1643,23 +1551,8 @@ export interface operations { /** Format: uri */ readonly url: string; })[]; - readonly models?: readonly ({ - readonly id: string; - readonly path?: string; - })[]; readonly name: string; readonly region?: string; - readonly repositories?: { - readonly dataset: string; - readonly mountPath?: string; - readonly repositories: readonly ({ - readonly name: string; - readonly password?: string; - readonly ref?: string; - readonly url: string; - readonly username?: string; - })[]; - }; readonly resources: { readonly autoscaling?: { readonly enabled?: boolean; @@ -1830,6 +1723,13 @@ export interface operations { }; readonly image: string; readonly integrations?: readonly ({ + readonly id: string; + readonly name: string; + /** @default /opt/models */ + readonly path?: string; + /** @enum {string} */ + readonly type: "model"; + } | { readonly accessKeyId: string; readonly endpoint?: string; readonly name: string; @@ -1851,23 +1751,8 @@ export interface operations { /** Format: uri */ readonly url: string; })[]; - readonly models?: readonly ({ - readonly id: string; - readonly path?: string; - })[]; readonly name: string; readonly region?: string; - readonly repositories?: { - readonly dataset: string; - readonly mountPath?: string; - readonly repositories: readonly ({ - readonly name: string; - readonly password?: string; - readonly ref?: string; - readonly url: string; - readonly username?: string; - })[]; - }; readonly resources: { readonly autoscaling?: { readonly enabled?: boolean; @@ -1904,13 +1789,13 @@ export interface operations { }; }; /** - * Enable an app - * @description Enables an app that has been previously disabled. This will start the app and make it available to users. + * Get an app + * @description Fetches an app. */ - "apps-enable": { + "apps-get": { parameters: { readonly path: { - /** @description The ID of the app to enable */ + /** @description The ID of the app to fetch */ id: string; }; }; @@ -1923,7 +1808,8 @@ export interface operations { readonly config: | ( | ({ - readonly apiVersion: "v0alpha0" | "latest"; + /** @enum {string} */ + readonly apiVersion: "v0alpha0"; readonly command?: readonly (string)[]; readonly containerRegistry?: string; /** @default true */ @@ -2186,6 +2072,13 @@ export interface operations { }; readonly image: string; readonly integrations?: readonly ({ + readonly id: string; + readonly name: string; + /** @default /opt/models */ + readonly path?: string; + /** @enum {string} */ + readonly type: "model"; + } | { readonly accessKeyId: string; readonly endpoint?: string; readonly name: string; @@ -2207,23 +2100,8 @@ export interface operations { /** Format: uri */ readonly url: string; })[]; - readonly models?: readonly ({ - readonly id: string; - readonly path?: string; - })[]; readonly name: string; readonly region?: string; - readonly repositories?: { - readonly dataset: string; - readonly mountPath?: string; - readonly repositories: readonly ({ - readonly name: string; - readonly password?: string; - readonly ref?: string; - readonly url: string; - readonly username?: string; - })[]; - }; readonly resources: { readonly autoscaling?: { readonly enabled?: boolean; @@ -2394,6 +2272,13 @@ export interface operations { }; readonly image: string; readonly integrations?: readonly ({ + readonly id: string; + readonly name: string; + /** @default /opt/models */ + readonly path?: string; + /** @enum {string} */ + readonly type: "model"; + } | { readonly accessKeyId: string; readonly endpoint?: string; readonly name: string; @@ -2415,23 +2300,8 @@ export interface operations { /** Format: uri */ readonly url: string; })[]; - readonly models?: readonly ({ - readonly id: string; - readonly path?: string; - })[]; readonly name: string; readonly region?: string; - readonly repositories?: { - readonly dataset: string; - readonly mountPath?: string; - readonly repositories: readonly ({ - readonly name: string; - readonly password?: string; - readonly ref?: string; - readonly url: string; - readonly username?: string; - })[]; - }; readonly resources: { readonly autoscaling?: { readonly enabled?: boolean; @@ -2468,33 +2338,23 @@ export interface operations { }; }; /** - * Update an app's name - * @description Change the name of an app + * Delete an app + * @description Deletes an app. This will delete all resources associated with the app. */ - "apps-updateName": { + "apps-delete": { parameters: { readonly path: { - /** @description The ID of the app to update */ + /** @description The ID of the app to delete */ id: string; }; }; - readonly requestBody: { - readonly content: { - readonly "application/json": { - /** @description The new name of the app */ - readonly name: string; - }; - }; - }; responses: { /** @description Successful response */ 200: { content: { readonly "application/json": { - /** @description The ID of the app */ + /** @description The ID of the app that was deleted */ readonly id: string; - /** @description The name of the app */ - readonly name: string; }; }; }; @@ -2502,275 +2362,548 @@ export interface operations { }; }; /** - * Get the current session - * @description Get the current session. If a user is not logged in, this will be null. Otherwise, it will contain the current team and user. + * Disable an app + * @description Disables an app that is currently enabled. This will stop the app's deployments and make it unavailable to users. */ - "auth-session": { + "apps-disable": { + parameters: { + readonly path: { + /** @description The ID of the app to disable */ + id: string; + }; + }; responses: { /** @description Successful response */ 200: { content: { - readonly "application/json": - | ({ - readonly team: { - /** @description An internal, numeric ID for the team */ - readonly analyticsId: number; - /** @description A unique ID for the team */ - readonly id: string; - /** @description Whether the team is private or not */ - readonly isPrivate: boolean; - /** @description The maximum number of machines */ - readonly maxMachines: number; - /** @description The namespace for the team */ - readonly namespace: string; - }; - readonly user: { - /** @description An internal, numeric ID for the user */ - readonly analyticsId: number; - /** - * Format: date-time - * @description The date the account was confirmed - */ - readonly dtConfirmed: Date; - /** - * Format: date-time - * @description The date the user was created - */ - readonly dtCreated: Date; - /** @description The user's email address */ - readonly email: string; - /** @description The user's first name */ - readonly firstName: string | null; - /** @description A unique ID for the user */ - readonly id: string; - /** @description Whether the user has a password set */ - readonly isPasswordAuthEnabled: boolean; - /** @description Whether the user's phone number has been verified */ - readonly isPhoneVerified: boolean; - /** @description Whether the user has a QR code based MFA confirmed */ - readonly isQrCodeBasedMfaConfirmed: boolean; - /** @description Whether the user has a QR code based MFA enabled */ - readonly isQrCodeBasedMfaEnabled: boolean; - /** @description The user's last name */ - readonly lastName: string | null; - /** @description Metadata about the user */ - readonly metadata: { - /** - * @description Core survey question-answer pairs - * @default null - */ - readonly coreSurvey?: - | ({ - [key: string]: string | undefined; - }) - | null; - /** - * @description Gradient survey question-answer pairs - * @default null - */ - readonly gradientSurvey?: - | ({ - [key: string]: string | undefined; - }) - | null; - /** - * @description Whether the user has accepted the Graphcore terms of service - * @default false - */ - readonly graphcoreTermsAccepted?: boolean; - /** - * @description Tags for the user - * @default null - */ - readonly tags?: string | null; - }; - /** @description The teams this user is a member of */ - readonly teamMemberships: readonly ({ - /** @description Whether the user is an admin of the team */ - readonly isAdmin: boolean; - /** @description Whether the user is the owner of the team */ - readonly isOwner: boolean; - /** @description The team the user is a member of */ - readonly team: { - /** - * Format: date-time - * @description The date the team was created - */ - readonly dtCreated: Date; - /** @description The ID of the team */ - readonly id: string; - /** @description Whether the team is the user's team */ - readonly isUserTeam: boolean; - /** @description The name of the team */ + readonly "application/json": { + /** @description The new deployment configuration. */ + readonly config: + | ( + | ({ + /** @enum {string} */ + readonly apiVersion: "v0alpha0"; + readonly command?: readonly (string)[]; + readonly containerRegistry?: string; + /** @default true */ + readonly enabled?: boolean; + readonly env?: readonly ({ readonly name: string; - /** @description The namespace of the team */ - readonly namespace: string; - /** - * @description The URL of the team's profile image. - * @default null - */ - readonly publicProfileImageUrl?: string | null; + readonly value: string; + })[]; + readonly healthChecks?: { + readonly liveness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly readiness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly startup?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; }; - })[]; - }; - }) - | null; - }; - }; - default: components["responses"]["error"]; - }; - }; - /** - * List autoscaling groups - * @description List autoscaling groups and filter by machine type. - */ - "autoscalingGroups-list": { - parameters: { - readonly query: { - /** @description Fetch the next page of results after this cursor. */ - after?: string; - /** @description The number of items to fetch after this page. */ - limit?: number; - /** @description Order results by one of these fields. */ - orderBy?: "dtCreated" | "name"; - /** @description The order to sort the results by. */ - order?: "asc" | "desc"; - /** @description Cluster the autoscaling group is for. */ - clusterId?: string; - /** @description Machine type used for machiens in the autoscaling group. */ - machineType?: string; - }; - }; - responses: { - /** @description Successful response */ - 200: { - content: { - readonly "application/json": { - /** @description Whether there are more pages of results available. */ - readonly hasMore: boolean; - /** @description The items on this page. */ - readonly items: readonly ({ - /** @description The ID of the cluster the autoscaling group is for. */ - readonly clusterId: string; - /** @description The current number of machines in the autoscaling group. */ - readonly current: number; - /** - * Format: date-time - * @description The date the autoscaling group was created. - */ - readonly dtCreated: Date; - /** - * Format: date-time - * @description The date the autoscaling group was deleted. - */ - readonly dtDeleted: Date; - /** - * Format: date-time - * @description The date the autoscaling group was last modified. - */ - readonly dtModified: Date; - /** @description The ID of the autoscaling group. */ - readonly id: string; - /** @description The ID of the user who last edited the autoscaling group. */ - readonly lastEditedByUserId: string | null; - /** @description The machine type used by machines in the autoscaling group. */ - readonly machineType: string; - /** @description The maximum number of machines in the autoscaling group. */ - readonly max: number; - /** @description The minimum number of machines in the autoscaling group. */ - readonly min: number; - /** @description The name of the autoscaling group. */ - readonly name: string; - /** @description The ID of the network used by machines in the autoscaling group. */ - readonly networkId: string; - /** @description The timeout for provisioning machines in the autoscaling group, in minutes. */ - readonly provisioningTimeout: number | null; - /** @description The ID of the startup script used by machines in the autoscaling group. */ - readonly startupScriptId: string | null; - /** @description The ID of the template used by machines in the autoscaling group. */ - readonly templateId: string; - })[]; - /** @description The cursor required to fetch the next page of results. i.e. `?after=nextPage`. This is `null` when there is no next page. */ - readonly nextPage?: string; - }; - }; - }; - default: components["responses"]["error"]; - }; - }; - /** - * Create an autoscaling group - * @description Create an autoscaling group. - */ - "autoscalingGroups-create": { - readonly requestBody: { - readonly content: { - readonly "application/json": { - /** @description The cluster the autoscaling group is for. */ - readonly clusterId: string; - /** @description The machine type used for machines in the autoscaling group. */ - readonly machineType: string; - /** @description The maximum number of machines in the autoscaling group. */ - readonly max: number; - /** @description The minimum number of machines in the autoscaling group. */ - readonly min: number; - /** @description The name of the autoscaling group. */ - readonly name: string; - /** @description The network the autoscaling group is in. */ - readonly networkId: string; - /** @description The timeout for provisioning machines in the autoscaling group. */ - readonly provisioningTimeout?: number; - /** @description The startup script used for machines in the autoscaling group. */ - readonly startupScriptId?: string; - /** @description The template used for machines in the autoscaling group. */ - readonly templateId: string; - }; - }; - }; - responses: { - /** @description Successful response */ - 200: { - content: { - readonly "application/json": { - /** @description The ID of the cluster the autoscaling group is for. */ - readonly clusterId: string; - /** @description The current number of machines in the autoscaling group. */ - readonly current: number; - /** - * Format: date-time - * @description The date the autoscaling group was created. - */ - readonly dtCreated: Date; - /** - * Format: date-time - * @description The date the autoscaling group was deleted. - */ - readonly dtDeleted: Date; - /** - * Format: date-time - * @description The date the autoscaling group was last modified. - */ - readonly dtModified: Date; - /** @description The ID of the autoscaling group. */ + readonly image: string; + readonly models?: readonly ({ + readonly id: string; + readonly path?: string; + })[]; + readonly name: string; + /** @default 80 */ + readonly port?: number; + readonly region?: string; + readonly repositories?: { + readonly dataset: string; + readonly mountPath?: string; + readonly repositories: readonly ({ + readonly name: string; + readonly password?: string; + readonly ref?: string; + readonly url: string; + readonly username?: string; + })[]; + }; + readonly resources: { + readonly autoscaling?: { + readonly enabled?: boolean; + readonly maxReplicas: number; + readonly metrics: readonly ( + | { + /** @enum {string} */ + readonly metric: "requestDuration"; + /** @enum {string} */ + readonly summary: "average"; + readonly value: number; + } + | ({ + /** @enum {string} */ + readonly metric: "cpu" | "memory"; + /** @enum {string} */ + readonly summary: "average"; + readonly value: number; + }) + )[]; + }; + readonly instanceType: string; + /** @default 1 */ + readonly replicas?: number; + }; + }) + | ({ + /** @enum {string} */ + readonly apiVersion: "v0alpha1"; + readonly command?: readonly (string)[]; + readonly containerRegistry?: string; + /** @default true */ + readonly enabled?: boolean; + readonly env?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly healthchecks?: { + readonly liveness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly readiness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly startup?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + }; + readonly healthChecks?: { + readonly liveness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly readiness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly startup?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + }; + readonly image: string; + readonly integrations?: readonly ({ + readonly id: string; + readonly name: string; + /** @default /opt/models */ + readonly path?: string; + /** @enum {string} */ + readonly type: "model"; + } | { + readonly accessKeyId: string; + readonly endpoint?: string; + readonly name: string; + readonly path?: string; + readonly region?: string; + readonly secretAccessKey: string; + /** @enum {string} */ + readonly type: "s3"; + readonly url: string; + } | { + readonly name: string; + /** @enum {string} */ + readonly type: "volume"; + } | { + readonly name: string; + readonly path?: string; + /** @enum {string} */ + readonly type: "git-lfs"; + /** Format: uri */ + readonly url: string; + })[]; + readonly name: string; + readonly region?: string; + readonly resources: { + readonly autoscaling?: { + readonly enabled?: boolean; + readonly maxReplicas: number; + readonly metrics: readonly ( + | { + /** @enum {string} */ + readonly metric: "requestDuration"; + /** @enum {string} */ + readonly summary: "average"; + readonly value: number; + } + | ({ + /** @enum {string} */ + readonly metric: "cpu" | "memory"; + /** @enum {string} */ + readonly summary: "average"; + readonly value: number; + }) + )[]; + }; + readonly machineType: string; + readonly ports: readonly (number)[]; + /** @default 1 */ + readonly replicas?: number; + }; + }) + ) + | ({ + readonly apiVersion: "v1" | "latest"; + readonly command?: readonly (string)[]; + readonly containerRegistry?: string; + /** @default true */ + readonly enabled?: boolean; + readonly env?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly healthchecks?: { + readonly liveness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly readiness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly startup?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + }; + readonly healthChecks?: { + readonly liveness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly readiness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly startup?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + }; + readonly image: string; + readonly integrations?: readonly ({ + readonly id: string; + readonly name: string; + /** @default /opt/models */ + readonly path?: string; + /** @enum {string} */ + readonly type: "model"; + } | { + readonly accessKeyId: string; + readonly endpoint?: string; + readonly name: string; + readonly path?: string; + readonly region?: string; + readonly secretAccessKey: string; + /** @enum {string} */ + readonly type: "s3"; + readonly url: string; + } | { + readonly name: string; + /** @enum {string} */ + readonly type: "volume"; + } | { + readonly name: string; + readonly path?: string; + /** @enum {string} */ + readonly type: "git-lfs"; + /** Format: uri */ + readonly url: string; + })[]; + readonly name: string; + readonly region?: string; + readonly resources: { + readonly autoscaling?: { + readonly enabled?: boolean; + readonly maxReplicas: number; + readonly metrics: readonly ( + | { + /** @enum {string} */ + readonly metric: "requestDuration"; + /** @enum {string} */ + readonly summary: "average"; + readonly value: number; + } + | ({ + /** @enum {string} */ + readonly metric: "cpu" | "memory"; + /** @enum {string} */ + readonly summary: "average"; + readonly value: number; + }) + )[]; + }; + readonly machineType: string; + readonly ports: readonly (number)[]; + /** @default 1 */ + readonly replicas?: number; + }; + }); + /** @description The ID of the app */ readonly id: string; - /** @description The ID of the user who last edited the autoscaling group. */ - readonly lastEditedByUserId: string | null; - /** @description The machine type used by machines in the autoscaling group. */ - readonly machineType: string; - /** @description The maximum number of machines in the autoscaling group. */ - readonly max: number; - /** @description The minimum number of machines in the autoscaling group. */ - readonly min: number; - /** @description The name of the autoscaling group. */ - readonly name: string; - /** @description The ID of the network used by machines in the autoscaling group. */ - readonly networkId: string; - /** @description The timeout for provisioning machines in the autoscaling group, in minutes. */ - readonly provisioningTimeout: number | null; - /** @description The ID of the startup script used by machines in the autoscaling group. */ - readonly startupScriptId: string | null; - /** @description The ID of the template used by machines in the autoscaling group. */ - readonly templateId: string; }; }; }; @@ -2778,13 +2911,13 @@ export interface operations { }; }; /** - * Get an autoscaling group - * @description Fetches a single autoscaling group by id. + * Enable an app + * @description Enables an app that has been previously disabled. This will start the app and make it available to users. */ - "autoscalingGroups-get": { + "apps-enable": { parameters: { readonly path: { - /** @description The ID of the autoscaling group to fetch. */ + /** @description The ID of the app to enable */ id: string; }; }; @@ -2793,45 +2926,533 @@ export interface operations { 200: { content: { readonly "application/json": { - /** @description The ID of the cluster the autoscaling group is for. */ - readonly clusterId: string; - /** @description The current number of machines in the autoscaling group. */ - readonly current: number; - /** - * Format: date-time - * @description The date the autoscaling group was created. - */ - readonly dtCreated: Date; - /** - * Format: date-time - * @description The date the autoscaling group was deleted. - */ - readonly dtDeleted: Date; - /** - * Format: date-time - * @description The date the autoscaling group was last modified. - */ - readonly dtModified: Date; - /** @description The ID of the autoscaling group. */ + /** @description The new deployment configuration. */ + readonly config: + | ( + | ({ + /** @enum {string} */ + readonly apiVersion: "v0alpha0"; + readonly command?: readonly (string)[]; + readonly containerRegistry?: string; + /** @default true */ + readonly enabled?: boolean; + readonly env?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly healthChecks?: { + readonly liveness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly readiness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly startup?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + }; + readonly image: string; + readonly models?: readonly ({ + readonly id: string; + readonly path?: string; + })[]; + readonly name: string; + /** @default 80 */ + readonly port?: number; + readonly region?: string; + readonly repositories?: { + readonly dataset: string; + readonly mountPath?: string; + readonly repositories: readonly ({ + readonly name: string; + readonly password?: string; + readonly ref?: string; + readonly url: string; + readonly username?: string; + })[]; + }; + readonly resources: { + readonly autoscaling?: { + readonly enabled?: boolean; + readonly maxReplicas: number; + readonly metrics: readonly ( + | { + /** @enum {string} */ + readonly metric: "requestDuration"; + /** @enum {string} */ + readonly summary: "average"; + readonly value: number; + } + | ({ + /** @enum {string} */ + readonly metric: "cpu" | "memory"; + /** @enum {string} */ + readonly summary: "average"; + readonly value: number; + }) + )[]; + }; + readonly instanceType: string; + /** @default 1 */ + readonly replicas?: number; + }; + }) + | ({ + /** @enum {string} */ + readonly apiVersion: "v0alpha1"; + readonly command?: readonly (string)[]; + readonly containerRegistry?: string; + /** @default true */ + readonly enabled?: boolean; + readonly env?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly healthchecks?: { + readonly liveness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly readiness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly startup?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + }; + readonly healthChecks?: { + readonly liveness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly readiness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly startup?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + }; + readonly image: string; + readonly integrations?: readonly ({ + readonly id: string; + readonly name: string; + /** @default /opt/models */ + readonly path?: string; + /** @enum {string} */ + readonly type: "model"; + } | { + readonly accessKeyId: string; + readonly endpoint?: string; + readonly name: string; + readonly path?: string; + readonly region?: string; + readonly secretAccessKey: string; + /** @enum {string} */ + readonly type: "s3"; + readonly url: string; + } | { + readonly name: string; + /** @enum {string} */ + readonly type: "volume"; + } | { + readonly name: string; + readonly path?: string; + /** @enum {string} */ + readonly type: "git-lfs"; + /** Format: uri */ + readonly url: string; + })[]; + readonly name: string; + readonly region?: string; + readonly resources: { + readonly autoscaling?: { + readonly enabled?: boolean; + readonly maxReplicas: number; + readonly metrics: readonly ( + | { + /** @enum {string} */ + readonly metric: "requestDuration"; + /** @enum {string} */ + readonly summary: "average"; + readonly value: number; + } + | ({ + /** @enum {string} */ + readonly metric: "cpu" | "memory"; + /** @enum {string} */ + readonly summary: "average"; + readonly value: number; + }) + )[]; + }; + readonly machineType: string; + readonly ports: readonly (number)[]; + /** @default 1 */ + readonly replicas?: number; + }; + }) + ) + | ({ + readonly apiVersion: "v1" | "latest"; + readonly command?: readonly (string)[]; + readonly containerRegistry?: string; + /** @default true */ + readonly enabled?: boolean; + readonly env?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly healthchecks?: { + readonly liveness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly readiness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly startup?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + }; + readonly healthChecks?: { + readonly liveness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly readiness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly startup?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + }; + readonly image: string; + readonly integrations?: readonly ({ + readonly id: string; + readonly name: string; + /** @default /opt/models */ + readonly path?: string; + /** @enum {string} */ + readonly type: "model"; + } | { + readonly accessKeyId: string; + readonly endpoint?: string; + readonly name: string; + readonly path?: string; + readonly region?: string; + readonly secretAccessKey: string; + /** @enum {string} */ + readonly type: "s3"; + readonly url: string; + } | { + readonly name: string; + /** @enum {string} */ + readonly type: "volume"; + } | { + readonly name: string; + readonly path?: string; + /** @enum {string} */ + readonly type: "git-lfs"; + /** Format: uri */ + readonly url: string; + })[]; + readonly name: string; + readonly region?: string; + readonly resources: { + readonly autoscaling?: { + readonly enabled?: boolean; + readonly maxReplicas: number; + readonly metrics: readonly ( + | { + /** @enum {string} */ + readonly metric: "requestDuration"; + /** @enum {string} */ + readonly summary: "average"; + readonly value: number; + } + | ({ + /** @enum {string} */ + readonly metric: "cpu" | "memory"; + /** @enum {string} */ + readonly summary: "average"; + readonly value: number; + }) + )[]; + }; + readonly machineType: string; + readonly ports: readonly (number)[]; + /** @default 1 */ + readonly replicas?: number; + }; + }); + /** @description The ID of the app */ readonly id: string; - /** @description The ID of the user who last edited the autoscaling group. */ - readonly lastEditedByUserId: string | null; - /** @description The machine type used by machines in the autoscaling group. */ - readonly machineType: string; - /** @description The maximum number of machines in the autoscaling group. */ - readonly max: number; - /** @description The minimum number of machines in the autoscaling group. */ - readonly min: number; - /** @description The name of the autoscaling group. */ - readonly name: string; - /** @description The ID of the network used by machines in the autoscaling group. */ - readonly networkId: string; - /** @description The timeout for provisioning machines in the autoscaling group, in minutes. */ - readonly provisioningTimeout: number | null; - /** @description The ID of the startup script used by machines in the autoscaling group. */ - readonly startupScriptId: string | null; - /** @description The ID of the template used by machines in the autoscaling group. */ - readonly templateId: string; }; }; }; @@ -2839,39 +3460,21 @@ export interface operations { }; }; /** - * Update an autoscaling group - * @description Update an autoscaling group. + * Update an app's name + * @description Change the name of an app */ - "autoscalingGroups-update": { + "apps-updateName": { parameters: { readonly path: { - /** @description The id of the autoscaling group. */ + /** @description The ID of the app to update */ id: string; }; }; readonly requestBody: { readonly content: { readonly "application/json": { - /** @description The cluster the autoscaling group is for. */ - readonly clusterId?: string; - /** @description The target number of machines in the autoscaling group. */ - readonly current?: number; - /** @description The machine type used for machines in the autoscaling group. */ - readonly machineType?: string; - /** @description The maximum number of machines in the autoscaling group. */ - readonly max?: number; - /** @description The minimum number of machines in the autoscaling group. */ - readonly min?: number; - /** @description The name of the autoscaling group. */ - readonly name?: string; - /** @description The network the autoscaling group is in. */ - readonly networkId?: string; - /** @description The timeout for provisioning machines in the autoscaling group. */ - readonly provisioningTimeout?: number; - /** @description The startup script used for machines in the autoscaling group. */ - readonly startupScriptId?: string; - /** @description The template used for machines in the autoscaling group. */ - readonly templateId?: string; + /** @description The new name of the app */ + readonly name: string; }; }; }; @@ -2880,69 +3483,10 @@ export interface operations { 200: { content: { readonly "application/json": { - /** @description The ID of the cluster the autoscaling group is for. */ - readonly clusterId: string; - /** @description The current number of machines in the autoscaling group. */ - readonly current: number; - /** - * Format: date-time - * @description The date the autoscaling group was created. - */ - readonly dtCreated: Date; - /** - * Format: date-time - * @description The date the autoscaling group was deleted. - */ - readonly dtDeleted: Date; - /** - * Format: date-time - * @description The date the autoscaling group was last modified. - */ - readonly dtModified: Date; - /** @description The ID of the autoscaling group. */ + /** @description The ID of the app */ readonly id: string; - /** @description The ID of the user who last edited the autoscaling group. */ - readonly lastEditedByUserId: string | null; - /** @description The machine type used by machines in the autoscaling group. */ - readonly machineType: string; - /** @description The maximum number of machines in the autoscaling group. */ - readonly max: number; - /** @description The minimum number of machines in the autoscaling group. */ - readonly min: number; - /** @description The name of the autoscaling group. */ + /** @description The name of the app */ readonly name: string; - /** @description The ID of the network used by machines in the autoscaling group. */ - readonly networkId: string; - /** @description The timeout for provisioning machines in the autoscaling group, in minutes. */ - readonly provisioningTimeout: number | null; - /** @description The ID of the startup script used by machines in the autoscaling group. */ - readonly startupScriptId: string | null; - /** @description The ID of the template used by machines in the autoscaling group. */ - readonly templateId: string; - }; - }; - }; - default: components["responses"]["error"]; - }; - }; - /** - * Delete an autoscaling group - * @description Delete an autoscaling group. - */ - "autoscalingGroups-delete": { - parameters: { - readonly path: { - /** @description The id of the autoscaling group. */ - id: string; - }; - }; - responses: { - /** @description Successful response */ - 200: { - content: { - readonly "application/json": { - /** @description The id of the autoscaling group. */ - readonly id: string; }; }; }; @@ -2950,30 +3494,143 @@ export interface operations { }; }; /** - * Get account standing - * @description Check whether the current team account is in good standing. If not, send back a message explaining why. + * Get the current session + * @description Get the current session. If a user is not logged in, this will be null. Otherwise, it will contain the current team and user. */ - "billingAccountStanding-get": { + "auth-session": { responses: { /** @description Successful response */ 200: { content: { - readonly "application/json": { - /** @description Whether the account is in good standing */ - readonly isInGoodStanding: boolean; - /** @description If the account is not in good standing, these are messages explaining why. */ - readonly messages: readonly (string)[]; - }; + readonly "application/json": + | ({ + readonly team: { + /** @description An internal, numeric ID for the team */ + readonly analyticsId: number; + /** @description A unique ID for the team */ + readonly id: string; + /** @description Whether the team is private or not */ + readonly isPrivate: boolean; + /** @description The maximum number of machines */ + readonly maxMachines: number; + /** @description The namespace for the team */ + readonly namespace: string; + }; + readonly user: { + /** @description An internal, numeric ID for the user */ + readonly analyticsId: number; + /** + * Format: date-time + * @description The date the account was confirmed + */ + readonly dtConfirmed: Date; + /** + * Format: date-time + * @description The date the user was created + */ + readonly dtCreated: Date; + /** @description The user's email address */ + readonly email: string; + /** @description The user's first name */ + readonly firstName: string | null; + /** @description A unique ID for the user */ + readonly id: string; + /** @description Whether the user has a password set */ + readonly isPasswordAuthEnabled: boolean; + /** @description Whether the user's phone number has been verified */ + readonly isPhoneVerified: boolean; + /** @description Whether the user has a QR code based MFA confirmed */ + readonly isQrCodeBasedMfaConfirmed: boolean; + /** @description Whether the user has a QR code based MFA enabled */ + readonly isQrCodeBasedMfaEnabled: boolean; + /** @description The user's last name */ + readonly lastName: string | null; + /** @description Metadata about the user */ + readonly metadata: { + /** + * @description Core survey question-answer pairs + * @default null + */ + readonly coreSurvey?: + | ({ + [key: string]: string | undefined; + }) + | null; + /** + * @description Gradient survey question-answer pairs + * @default null + */ + readonly gradientSurvey?: + | ({ + [key: string]: string | undefined; + }) + | null; + /** + * @description Whether the user has accepted the Graphcore terms of service + * @default false + */ + readonly graphcoreTermsAccepted?: boolean; + /** + * @description Tags for the user + * @default null + */ + readonly tags?: string | null; + }; + /** + * @description The user's preferences + * @default null + */ + readonly preferences?: + | ({ + readonly defaultProduct?: string | null; + readonly defaultTeamId?: string | null; + readonly disableHotkeys?: boolean | null; + readonly fontSize?: number | null; + /** @enum {string|null} */ + readonly theme?: "light" | "dark" | null; + }) + | null; + /** @description The teams this user is a member of */ + readonly teamMemberships: readonly ({ + /** @description Whether the user is an admin of the team */ + readonly isAdmin: boolean; + /** @description Whether the user is the owner of the team */ + readonly isOwner: boolean; + /** @description The team the user is a member of */ + readonly team: { + /** + * Format: date-time + * @description The date the team was created + */ + readonly dtCreated: Date; + /** @description The ID of the team */ + readonly id: string; + /** @description Whether the team is the user's team */ + readonly isUserTeam: boolean; + /** @description The name of the team */ + readonly name: string; + /** @description The namespace of the team */ + readonly namespace: string; + /** + * @description The URL of the team's profile image. + * @default null + */ + readonly publicProfileImageUrl?: string | null; + }; + })[]; + }; + }) + | null; }; }; default: components["responses"]["error"]; }; }; /** - * List container registries - * @description Lists container registries for the current team. + * List autoscaling groups + * @description List autoscaling groups and filter by machine type. */ - "containerRegistries-list": { + "autoscalingGroups-list": { parameters: { readonly query: { /** @description Fetch the next page of results after this cursor. */ @@ -2981,9 +3638,13 @@ export interface operations { /** @description The number of items to fetch after this page. */ limit?: number; /** @description Order results by one of these fields. */ - orderBy?: "dtCreated"; + orderBy?: "dtCreated" | "name"; /** @description The order to sort the results by. */ order?: "asc" | "desc"; + /** @description Cluster the autoscaling group is for. */ + clusterId?: string; + /** @description Machine type used for machiens in the autoscaling group. */ + machineType?: string; }; }; responses: { @@ -2995,26 +3656,45 @@ export interface operations { readonly hasMore: boolean; /** @description The items on this page. */ readonly items: readonly ({ + /** @description The ID of the cluster the autoscaling group is for. */ + readonly clusterId: string; + /** @description The current number of machines in the autoscaling group. */ + readonly current: number; /** * Format: date-time - * @description The date the container registry was created + * @description The date the autoscaling group was created. */ readonly dtCreated: Date; /** * Format: date-time - * @description The date the container registry was last modified + * @description The date the autoscaling group was deleted. + */ + readonly dtDeleted: Date; + /** + * Format: date-time + * @description The date the autoscaling group was last modified. */ readonly dtModified: Date; - /** @description The id of the container registry */ + /** @description The ID of the autoscaling group. */ readonly id: string; - /** @description The name of the container registry */ + /** @description The ID of the user who last edited the autoscaling group. */ + readonly lastEditedByUserId: string | null; + /** @description The machine type used by machines in the autoscaling group. */ + readonly machineType: string; + /** @description The maximum number of machines in the autoscaling group. */ + readonly max: number; + /** @description The minimum number of machines in the autoscaling group. */ + readonly min: number; + /** @description The name of the autoscaling group. */ readonly name: string; - /** @description The namespace of the container registry */ - readonly namespace: string; - /** @description The URL of the container registry */ - readonly url: string; - /** @description A username for the container registry */ - readonly username: string; + /** @description The ID of the network used by machines in the autoscaling group. */ + readonly networkId: string; + /** @description The timeout for provisioning machines in the autoscaling group, in minutes. */ + readonly provisioningTimeout: number | null; + /** @description The ID of the startup script used by machines in the autoscaling group. */ + readonly startupScriptId: string | null; + /** @description The ID of the template used by machines in the autoscaling group. */ + readonly templateId: string; })[]; /** @description The cursor required to fetch the next page of results. i.e. `?after=nextPage`. This is `null` when there is no next page. */ readonly nextPage?: string; @@ -3025,129 +3705,31 @@ export interface operations { }; }; /** - * Create a container registry - * @description Creates a container registry for the current team. - */ - "containerRegistries-create": { - readonly requestBody: { - readonly content: { - readonly "application/json": { - /** @description The name of the container registry */ - readonly name: string; - /** @description The namespace of the container registry */ - readonly namespace: string; - /** @description The password for the registry */ - readonly password: string; - /** - * Format: uri - * @description The URL of the container registry - */ - readonly url: string; - /** @description A username for the container registry */ - readonly username: string; - }; - }; - }; - responses: { - /** @description Successful response */ - 200: { - content: { - readonly "application/json": { - /** - * Format: date-time - * @description The date the container registry was created - */ - readonly dtCreated: Date; - /** - * Format: date-time - * @description The date the container registry was last modified - */ - readonly dtModified: Date; - /** @description The id of the container registry */ - readonly id: string; - /** @description The name of the container registry */ - readonly name: string; - /** @description The namespace of the container registry */ - readonly namespace: string; - /** @description The URL of the container registry */ - readonly url: string; - /** @description A username for the container registry */ - readonly username: string; - }; - }; - }; - default: components["responses"]["error"]; - }; - }; - /** - * List container registries - * @description Lists container registries for the current team. - */ - "containerRegistries-get": { - parameters: { - readonly path: { - /** @description The id of the container registry */ - id: string; - }; - }; - responses: { - /** @description Successful response */ - 200: { - content: { - readonly "application/json": { - /** - * Format: date-time - * @description The date the container registry was created - */ - readonly dtCreated: Date; - /** - * Format: date-time - * @description The date the container registry was last modified - */ - readonly dtModified: Date; - /** @description The id of the container registry */ - readonly id: string; - /** @description The name of the container registry */ - readonly name: string; - /** @description The namespace of the container registry */ - readonly namespace: string; - /** @description The URL of the container registry */ - readonly url: string; - /** @description A username for the container registry */ - readonly username: string; - }; - }; - }; - default: components["responses"]["error"]; - }; - }; - /** - * Update a container registry - * @description Updates a container registry for the current team. + * Create an autoscaling group + * @description Create an autoscaling group. */ - "containerRegistries-update": { - parameters: { - readonly path: { - /** @description The id of the container registry */ - id: string; - }; - }; + "autoscalingGroups-create": { readonly requestBody: { readonly content: { readonly "application/json": { - /** @description The name of the container registry */ - readonly name?: string; - /** @description The namespace of the container registry */ - readonly namespace?: string; - /** @description An updated password for the registry */ - readonly password?: string; - /** - * Format: uri - * @description The URL of the container registry - */ - readonly url?: string; - /** @description A username for the container registry */ - readonly username?: string; + /** @description The cluster the autoscaling group is for. */ + readonly clusterId: string; + /** @description The machine type used for machines in the autoscaling group. */ + readonly machineType: string; + /** @description The maximum number of machines in the autoscaling group. */ + readonly max: number; + /** @description The minimum number of machines in the autoscaling group. */ + readonly min: number; + /** @description The name of the autoscaling group. */ + readonly name: string; + /** @description The network the autoscaling group is in. */ + readonly networkId: string; + /** @description The timeout for provisioning machines in the autoscaling group. */ + readonly provisioningTimeout?: number; + /** @description The startup script used for machines in the autoscaling group. */ + readonly startupScriptId?: string; + /** @description The template used for machines in the autoscaling group. */ + readonly templateId: string; }; }; }; @@ -3156,26 +3738,45 @@ export interface operations { 200: { content: { readonly "application/json": { + /** @description The ID of the cluster the autoscaling group is for. */ + readonly clusterId: string; + /** @description The current number of machines in the autoscaling group. */ + readonly current: number; /** * Format: date-time - * @description The date the container registry was created + * @description The date the autoscaling group was created. */ readonly dtCreated: Date; /** * Format: date-time - * @description The date the container registry was last modified + * @description The date the autoscaling group was deleted. + */ + readonly dtDeleted: Date; + /** + * Format: date-time + * @description The date the autoscaling group was last modified. */ readonly dtModified: Date; - /** @description The id of the container registry */ + /** @description The ID of the autoscaling group. */ readonly id: string; - /** @description The name of the container registry */ + /** @description The ID of the user who last edited the autoscaling group. */ + readonly lastEditedByUserId: string | null; + /** @description The machine type used by machines in the autoscaling group. */ + readonly machineType: string; + /** @description The maximum number of machines in the autoscaling group. */ + readonly max: number; + /** @description The minimum number of machines in the autoscaling group. */ + readonly min: number; + /** @description The name of the autoscaling group. */ readonly name: string; - /** @description The namespace of the container registry */ - readonly namespace: string; - /** @description The URL of the container registry */ - readonly url: string; - /** @description A username for the container registry */ - readonly username: string; + /** @description The ID of the network used by machines in the autoscaling group. */ + readonly networkId: string; + /** @description The timeout for provisioning machines in the autoscaling group, in minutes. */ + readonly provisioningTimeout: number | null; + /** @description The ID of the startup script used by machines in the autoscaling group. */ + readonly startupScriptId: string | null; + /** @description The ID of the template used by machines in the autoscaling group. */ + readonly templateId: string; }; }; }; @@ -3183,13 +3784,13 @@ export interface operations { }; }; /** - * Delete a container registry - * @description Deletes a container registry for the current team. + * Get an autoscaling group + * @description Fetches a single autoscaling group by id. */ - "containerRegistries-delete": { + "autoscalingGroups-get": { parameters: { readonly path: { - /** @description The id of the container registry */ + /** @description The ID of the autoscaling group to fetch. */ id: string; }; }; @@ -3198,26 +3799,45 @@ export interface operations { 200: { content: { readonly "application/json": { + /** @description The ID of the cluster the autoscaling group is for. */ + readonly clusterId: string; + /** @description The current number of machines in the autoscaling group. */ + readonly current: number; /** * Format: date-time - * @description The date the container registry was created + * @description The date the autoscaling group was created. */ readonly dtCreated: Date; /** * Format: date-time - * @description The date the container registry was last modified + * @description The date the autoscaling group was deleted. + */ + readonly dtDeleted: Date; + /** + * Format: date-time + * @description The date the autoscaling group was last modified. */ readonly dtModified: Date; - /** @description The id of the container registry */ + /** @description The ID of the autoscaling group. */ readonly id: string; - /** @description The name of the container registry */ + /** @description The ID of the user who last edited the autoscaling group. */ + readonly lastEditedByUserId: string | null; + /** @description The machine type used by machines in the autoscaling group. */ + readonly machineType: string; + /** @description The maximum number of machines in the autoscaling group. */ + readonly max: number; + /** @description The minimum number of machines in the autoscaling group. */ + readonly min: number; + /** @description The name of the autoscaling group. */ readonly name: string; - /** @description The namespace of the container registry */ - readonly namespace: string; - /** @description The URL of the container registry */ - readonly url: string; - /** @description A username for the container registry */ - readonly username: string; + /** @description The ID of the network used by machines in the autoscaling group. */ + readonly networkId: string; + /** @description The timeout for provisioning machines in the autoscaling group, in minutes. */ + readonly provisioningTimeout: number | null; + /** @description The ID of the startup script used by machines in the autoscaling group. */ + readonly startupScriptId: string | null; + /** @description The ID of the template used by machines in the autoscaling group. */ + readonly templateId: string; }; }; }; @@ -3225,25 +3845,86 @@ export interface operations { }; }; /** - * Test a container registry connection - * @description Validate that a container registry can be connected to using the provided credentials. + * Update an autoscaling group + * @description Update an autoscaling group. */ - "containerRegistries-testConnection": { + "autoscalingGroups-update": { parameters: { readonly path: { - /** @description The id of the container registry */ + /** @description The id of the autoscaling group. */ id: string; }; }; + readonly requestBody: { + readonly content: { + readonly "application/json": { + /** @description The cluster the autoscaling group is for. */ + readonly clusterId?: string; + /** @description The target number of machines in the autoscaling group. */ + readonly current?: number; + /** @description The machine type used for machines in the autoscaling group. */ + readonly machineType?: string; + /** @description The maximum number of machines in the autoscaling group. */ + readonly max?: number; + /** @description The minimum number of machines in the autoscaling group. */ + readonly min?: number; + /** @description The name of the autoscaling group. */ + readonly name?: string; + /** @description The network the autoscaling group is in. */ + readonly networkId?: string; + /** @description The timeout for provisioning machines in the autoscaling group. */ + readonly provisioningTimeout?: number; + /** @description The startup script used for machines in the autoscaling group. */ + readonly startupScriptId?: string; + /** @description The template used for machines in the autoscaling group. */ + readonly templateId?: string; + }; + }; + }; responses: { /** @description Successful response */ 200: { content: { readonly "application/json": { - /** @description The error message, if any */ - readonly error?: string; - /** @description Whether the connection was successful */ - readonly success: boolean; + /** @description The ID of the cluster the autoscaling group is for. */ + readonly clusterId: string; + /** @description The current number of machines in the autoscaling group. */ + readonly current: number; + /** + * Format: date-time + * @description The date the autoscaling group was created. + */ + readonly dtCreated: Date; + /** + * Format: date-time + * @description The date the autoscaling group was deleted. + */ + readonly dtDeleted: Date; + /** + * Format: date-time + * @description The date the autoscaling group was last modified. + */ + readonly dtModified: Date; + /** @description The ID of the autoscaling group. */ + readonly id: string; + /** @description The ID of the user who last edited the autoscaling group. */ + readonly lastEditedByUserId: string | null; + /** @description The machine type used by machines in the autoscaling group. */ + readonly machineType: string; + /** @description The maximum number of machines in the autoscaling group. */ + readonly max: number; + /** @description The minimum number of machines in the autoscaling group. */ + readonly min: number; + /** @description The name of the autoscaling group. */ + readonly name: string; + /** @description The ID of the network used by machines in the autoscaling group. */ + readonly networkId: string; + /** @description The timeout for provisioning machines in the autoscaling group, in minutes. */ + readonly provisioningTimeout: number | null; + /** @description The ID of the startup script used by machines in the autoscaling group. */ + readonly startupScriptId: string | null; + /** @description The ID of the template used by machines in the autoscaling group. */ + readonly templateId: string; }; }; }; @@ -3251,22 +3932,14 @@ export interface operations { }; }; /** - * List datasets - * @description List datasets + * Delete an autoscaling group + * @description Delete an autoscaling group. */ - "datasets-list": { + "autoscalingGroups-delete": { parameters: { - readonly query: { - /** @description Fetch the next page of results after this cursor. */ - after?: string; - /** @description The number of items to fetch after this page. */ - limit?: number; - /** @description Order results by one of these fields. */ - orderBy?: "dtCreated"; - /** @description The order to sort the results by. */ - order?: "asc" | "desc"; - teamId?: string; - privacy?: Record | ("PUBLIC" | "PRIVATE"); + readonly path: { + /** @description The id of the autoscaling group. */ + id: string; }; }; responses: { @@ -3274,35 +3947,8 @@ export interface operations { 200: { content: { readonly "application/json": { - /** @description Whether there are more pages of results available. */ - readonly hasMore: boolean; - /** @description The items on this page. */ - readonly items: readonly ({ - /** @description The description of the dataset */ - readonly description: string | null; - /** - * Format: date-time - * @description The date the dataset was created - */ - readonly dtCreated: Date; - /** - * Format: date-time - * @description The date the dataset was last modified - */ - readonly dtModified: Date; - /** @description The ID of the dataset */ - readonly id: string; - /** @description Whether the dataset is public */ - readonly isPublic: boolean; - /** @description The name of the dataset */ - readonly name: string | null; - /** @description The ID of the storage provider */ - readonly storageProviderId: string | null; - /** @description The ID of the team that owns the dataset */ - readonly teamId: string; - })[]; - /** @description The cursor required to fetch the next page of results. i.e. `?after=nextPage`. This is `null` when there is no next page. */ - readonly nextPage?: string; + /** @description The id of the autoscaling group. */ + readonly id: string; }; }; }; @@ -3310,51 +3956,19 @@ export interface operations { }; }; /** - * Create a dataset - * @description Create a dataset - */ - "datasets-create": { - readonly requestBody: { - readonly content: { - readonly "application/json": { - /** @description The description of the dataset */ - readonly description?: (Record | string) | null; - /** @description Whether the dataset is public */ - readonly isPublic: boolean; - /** @description The name of the dataset */ - readonly name: string; - /** @description The ID of the storage provider */ - readonly storageProviderId?: string; - }; - }; - }; - responses: { - /** @description Successful response */ - 200: { - content: { - readonly "application/json": { - /** @description The description of the dataset */ - readonly description: string | null; - /** - * Format: date-time - * @description The date the dataset was created - */ - readonly dtCreated: Date; - /** - * Format: date-time - * @description The date the dataset was last modified - */ - readonly dtModified: Date; - /** @description The ID of the dataset */ - readonly id: string; - /** @description Whether the dataset is public */ - readonly isPublic: boolean; - /** @description The name of the dataset */ - readonly name: string | null; - /** @description The ID of the storage provider */ - readonly storageProviderId: string | null; - /** @description The ID of the team that owns the dataset */ - readonly teamId: string; + * Get account standing + * @description Check whether the current team account is in good standing. If not, send back a message explaining why. + */ + "billingAccountStanding-get": { + responses: { + /** @description Successful response */ + 200: { + content: { + readonly "application/json": { + /** @description Whether the account is in good standing */ + readonly isInGoodStanding: boolean; + /** @description If the account is not in good standing, these are messages explaining why. */ + readonly messages: readonly (string)[]; }; }; }; @@ -3362,10 +3976,10 @@ export interface operations { }; }; /** - * List dataset versions - * @description List dataset versions + * List container registries + * @description Lists container registries for the current team. */ - "datasetVersions-list": { + "containerRegistries-list": { parameters: { readonly query: { /** @description Fetch the next page of results after this cursor. */ @@ -3376,11 +3990,6 @@ export interface operations { orderBy?: "dtCreated"; /** @description The order to sort the results by. */ order?: "asc" | "desc"; - tags?: string; - }; - readonly path: { - /** @description The ID of the dataset */ - datasetId: string; }; }; responses: { @@ -3392,38 +4001,26 @@ export interface operations { readonly hasMore: boolean; /** @description The items on this page. */ readonly items: readonly ({ - /** @description The ID of the dataset */ - readonly datasetId: string; /** * Format: date-time - * @description The date the version was created + * @description The date the container registry was created */ readonly dtCreated: Date; /** * Format: date-time - * @description The date the version was last modified + * @description The date the container registry was last modified */ readonly dtModified: Date; - /** @description Whether the version is committed */ - readonly isCommitted: boolean; - /** @description The description of the dataset version */ - readonly message: string | null; - /** @description Metadata for the version. */ - readonly metadata: - | ({ - [key: string]: unknown | undefined; - }) - | null; - /** @description The tags for the version */ - readonly tags: readonly (string)[]; - /** @description The URL of the version */ - readonly url: string | null; - /** @description The size of the dataset at this version in bytes */ - readonly usageBytes: string | null; - /** @description The ID of the user that created the version */ - readonly userId: string | null; - /** @description The version of the dataset */ - readonly version: string; + /** @description The id of the container registry */ + readonly id: string; + /** @description The name of the container registry */ + readonly name: string; + /** @description The namespace of the container registry */ + readonly namespace: string; + /** @description The URL of the container registry */ + readonly url: string; + /** @description A username for the container registry */ + readonly username: string; })[]; /** @description The cursor required to fetch the next page of results. i.e. `?after=nextPage`. This is `null` when there is no next page. */ readonly nextPage?: string; @@ -3434,27 +4031,26 @@ export interface operations { }; }; /** - * Create a dataset version - * @description Create a dataset version + * Create a container registry + * @description Creates a container registry for the current team. */ - "datasetVersions-create": { - parameters: { - readonly path: { - /** @description The ID of the dataset */ - datasetId: string; - }; - }; + "containerRegistries-create": { readonly requestBody: { readonly content: { readonly "application/json": { - /** @description The description of the dataset version */ - readonly message?: string; - /** @description Metadata for the version. */ - readonly metadata?: { - [key: string]: unknown | undefined; - }; - /** @description The tags for the version, comma-delimited */ - readonly tags?: string; + /** @description The name of the container registry */ + readonly name: string; + /** @description The namespace of the container registry */ + readonly namespace: string; + /** @description The password for the registry */ + readonly password: string; + /** + * Format: uri + * @description The URL of the container registry + */ + readonly url: string; + /** @description A username for the container registry */ + readonly username: string; }; }; }; @@ -3463,38 +4059,26 @@ export interface operations { 200: { content: { readonly "application/json": { - /** @description The ID of the dataset */ - readonly datasetId: string; /** * Format: date-time - * @description The date the version was created + * @description The date the container registry was created */ readonly dtCreated: Date; /** * Format: date-time - * @description The date the version was last modified + * @description The date the container registry was last modified */ readonly dtModified: Date; - /** @description Whether the version is committed */ - readonly isCommitted: boolean; - /** @description The description of the dataset version */ - readonly message: string | null; - /** @description Metadata for the version. */ - readonly metadata: - | ({ - [key: string]: unknown | undefined; - }) - | null; - /** @description The tags for the version */ - readonly tags: readonly (string)[]; - /** @description The URL of the version */ - readonly url: string | null; - /** @description The size of the dataset at this version in bytes */ - readonly usageBytes: string | null; - /** @description The ID of the user that created the version */ - readonly userId: string | null; - /** @description The version of the dataset */ - readonly version: string; + /** @description The id of the container registry */ + readonly id: string; + /** @description The name of the container registry */ + readonly name: string; + /** @description The namespace of the container registry */ + readonly namespace: string; + /** @description The URL of the container registry */ + readonly url: string; + /** @description A username for the container registry */ + readonly username: string; }; }; }; @@ -3502,16 +4086,14 @@ export interface operations { }; }; /** - * Get a dataset version - * @description Get a dataset version + * List container registries + * @description Lists container registries for the current team. */ - "datasetVersions-get": { + "containerRegistries-get": { parameters: { readonly path: { - /** @description The ID of the dataset */ - datasetId: string; - /** @description The version of the dataset */ - version: string; + /** @description The id of the container registry */ + id: string; }; }; responses: { @@ -3519,38 +4101,26 @@ export interface operations { 200: { content: { readonly "application/json": { - /** @description The ID of the dataset */ - readonly datasetId: string; /** * Format: date-time - * @description The date the version was created + * @description The date the container registry was created */ readonly dtCreated: Date; /** * Format: date-time - * @description The date the version was last modified + * @description The date the container registry was last modified */ readonly dtModified: Date; - /** @description Whether the version is committed */ - readonly isCommitted: boolean; - /** @description The description of the dataset version */ - readonly message: string | null; - /** @description Metadata for the version. */ - readonly metadata: - | ({ - [key: string]: unknown | undefined; - }) - | null; - /** @description The tags for the version */ - readonly tags: readonly (string)[]; - /** @description The URL of the version */ - readonly url: string | null; - /** @description The size of the dataset at this version in bytes */ - readonly usageBytes: string | null; - /** @description The ID of the user that created the version */ - readonly userId: string | null; - /** @description The version of the dataset */ - readonly version: string; + /** @description The id of the container registry */ + readonly id: string; + /** @description The name of the container registry */ + readonly name: string; + /** @description The namespace of the container registry */ + readonly namespace: string; + /** @description The URL of the container registry */ + readonly url: string; + /** @description A username for the container registry */ + readonly username: string; }; }; }; @@ -3558,143 +4128,60 @@ export interface operations { }; }; /** - * Update a dataset version - * @description Update a dataset version + * Update a container registry + * @description Updates a container registry for the current team. */ - "datasetVersions-update": { + "containerRegistries-update": { parameters: { readonly path: { - /** @description The ID of the dataset */ - datasetId: string; - /** @description The version of the dataset */ - version: string; + /** @description The id of the container registry */ + id: string; }; }; readonly requestBody: { readonly content: { readonly "application/json": { - /** @description Whether the version is committed */ - readonly isCommitted?: boolean; - /** @description The description of the dataset version */ - readonly message?: string; - /** @description Metadata for the version. */ - readonly metadata?: { - [key: string]: unknown | undefined; - }; - /** @description The tags for the version, comma-delimited */ - readonly tags?: string; - }; - }; - }; - responses: { - /** @description Successful response */ - 200: { - content: { - readonly "application/json": { - /** @description The ID of the dataset */ - readonly datasetId: string; - /** - * Format: date-time - * @description The date the version was created - */ - readonly dtCreated: Date; - /** - * Format: date-time - * @description The date the version was last modified - */ - readonly dtModified: Date; - /** @description Whether the version is committed */ - readonly isCommitted: boolean; - /** @description The description of the dataset version */ - readonly message: string | null; - /** @description Metadata for the version. */ - readonly metadata: - | ({ - [key: string]: unknown | undefined; - }) - | null; - /** @description The tags for the version */ - readonly tags: readonly (string)[]; - /** @description The URL of the version */ - readonly url: string | null; - /** @description The size of the dataset at this version in bytes */ - readonly usageBytes: string | null; - /** @description The ID of the user that created the version */ - readonly userId: string | null; - /** @description The version of the dataset */ - readonly version: string; - }; - }; - }; - default: components["responses"]["error"]; - }; - }; - /** - * Delete a dataset version - * @description Delete a dataset version - */ - "datasetVersions-delete": { - parameters: { - readonly path: { - /** @description The ID of the dataset */ - datasetId: string; - /** @description The version of the dataset */ - version: string; - }; - }; - responses: { - /** @description Successful response */ - 200: { - content: { - readonly "application/json": { - /** @description The ID of the dataset */ - readonly datasetId: string; - /** @description The version of the dataset */ - readonly version: string; - }; + /** @description The name of the container registry */ + readonly name?: string; + /** @description The namespace of the container registry */ + readonly namespace?: string; + /** @description An updated password for the registry */ + readonly password?: string; + /** + * Format: uri + * @description The URL of the container registry + */ + readonly url?: string; + /** @description A username for the container registry */ + readonly username?: string; }; }; - default: components["responses"]["error"]; - }; - }; - /** - * Get a dataset - * @description Get a dataset - */ - "datasets-get": { - parameters: { - readonly path: { - /** @description The ID of the dataset */ - id: string; - }; }; responses: { /** @description Successful response */ 200: { content: { readonly "application/json": { - /** @description The description of the dataset */ - readonly description: string | null; /** * Format: date-time - * @description The date the dataset was created + * @description The date the container registry was created */ readonly dtCreated: Date; /** * Format: date-time - * @description The date the dataset was last modified + * @description The date the container registry was last modified */ readonly dtModified: Date; - /** @description The ID of the dataset */ + /** @description The id of the container registry */ readonly id: string; - /** @description Whether the dataset is public */ - readonly isPublic: boolean; - /** @description The name of the dataset */ - readonly name: string | null; - /** @description The ID of the storage provider */ - readonly storageProviderId: string | null; - /** @description The ID of the team that owns the dataset */ - readonly teamId: string; + /** @description The name of the container registry */ + readonly name: string; + /** @description The namespace of the container registry */ + readonly namespace: string; + /** @description The URL of the container registry */ + readonly url: string; + /** @description A username for the container registry */ + readonly username: string; }; }; }; @@ -3702,53 +4189,41 @@ export interface operations { }; }; /** - * Update a dataset - * @description Update a dataset + * Delete a container registry + * @description Deletes a container registry for the current team. */ - "datasets-update": { + "containerRegistries-delete": { parameters: { readonly path: { - /** @description The ID of the dataset */ + /** @description The id of the container registry */ id: string; }; }; - readonly requestBody: { - readonly content: { - readonly "application/json": { - /** @description The description of the dataset */ - readonly description?: (Record | string) | null; - /** @description The name of the dataset */ - readonly name?: string; - }; - }; - }; responses: { /** @description Successful response */ 200: { content: { readonly "application/json": { - /** @description The description of the dataset */ - readonly description: string | null; /** * Format: date-time - * @description The date the dataset was created + * @description The date the container registry was created */ readonly dtCreated: Date; /** * Format: date-time - * @description The date the dataset was last modified + * @description The date the container registry was last modified */ readonly dtModified: Date; - /** @description The ID of the dataset */ + /** @description The id of the container registry */ readonly id: string; - /** @description Whether the dataset is public */ - readonly isPublic: boolean; - /** @description The name of the dataset */ - readonly name: string | null; - /** @description The ID of the storage provider */ - readonly storageProviderId: string | null; - /** @description The ID of the team that owns the dataset */ - readonly teamId: string; + /** @description The name of the container registry */ + readonly name: string; + /** @description The namespace of the container registry */ + readonly namespace: string; + /** @description The URL of the container registry */ + readonly url: string; + /** @description A username for the container registry */ + readonly username: string; }; }; }; @@ -3756,13 +4231,13 @@ export interface operations { }; }; /** - * Delete a dataset - * @description Delete a dataset + * Test a container registry connection + * @description Validate that a container registry can be connected to using the provided credentials. */ - "datasets-delete": { + "containerRegistries-testConnection": { parameters: { readonly path: { - /** @description The ID of the dataset */ + /** @description The id of the container registry */ id: string; }; }; @@ -3771,8 +4246,10 @@ export interface operations { 200: { content: { readonly "application/json": { - /** @description The ID of the dataset */ - readonly id: string; + /** @description The error message, if any */ + readonly error?: string; + /** @description Whether the connection was successful */ + readonly success: boolean; }; }; }; @@ -3825,7 +4302,8 @@ export interface operations { | ( | ( | ({ - readonly apiVersion: "v0alpha0" | "latest"; + /** @enum {string} */ + readonly apiVersion: "v0alpha0"; readonly command?: readonly (string)[]; readonly containerRegistry?: string; /** @default true */ @@ -4088,6 +4566,13 @@ export interface operations { }; readonly image: string; readonly integrations?: readonly ({ + readonly id: string; + readonly name: string; + /** @default /opt/models */ + readonly path?: string; + /** @enum {string} */ + readonly type: "model"; + } | { readonly accessKeyId: string; readonly endpoint?: string; readonly name: string; @@ -4102,30 +4587,15 @@ export interface operations { /** @enum {string} */ readonly type: "volume"; } | { - readonly name: string; - readonly path?: string; - /** @enum {string} */ - readonly type: "git-lfs"; - /** Format: uri */ - readonly url: string; - })[]; - readonly models?: readonly ({ - readonly id: string; - readonly path?: string; - })[]; - readonly name: string; - readonly region?: string; - readonly repositories?: { - readonly dataset: string; - readonly mountPath?: string; - readonly repositories: readonly ({ - readonly name: string; - readonly password?: string; - readonly ref?: string; - readonly url: string; - readonly username?: string; - })[]; - }; + readonly name: string; + readonly path?: string; + /** @enum {string} */ + readonly type: "git-lfs"; + /** Format: uri */ + readonly url: string; + })[]; + readonly name: string; + readonly region?: string; readonly resources: { readonly autoscaling?: { readonly enabled?: boolean; @@ -4296,6 +4766,13 @@ export interface operations { }; readonly image: string; readonly integrations?: readonly ({ + readonly id: string; + readonly name: string; + /** @default /opt/models */ + readonly path?: string; + /** @enum {string} */ + readonly type: "model"; + } | { readonly accessKeyId: string; readonly endpoint?: string; readonly name: string; @@ -4317,23 +4794,8 @@ export interface operations { /** Format: uri */ readonly url: string; })[]; - readonly models?: readonly ({ - readonly id: string; - readonly path?: string; - })[]; readonly name: string; readonly region?: string; - readonly repositories?: { - readonly dataset: string; - readonly mountPath?: string; - readonly repositories: readonly ({ - readonly name: string; - readonly password?: string; - readonly ref?: string; - readonly url: string; - readonly username?: string; - })[]; - }; readonly resources: { readonly autoscaling?: { readonly enabled?: boolean; @@ -4436,7 +4898,8 @@ export interface operations { readonly config: | ( | ({ - readonly apiVersion: "v0alpha0" | "latest"; + /** @enum {string} */ + readonly apiVersion: "v0alpha0"; readonly command?: readonly (string)[]; readonly containerRegistry?: string; /** @default true */ @@ -4699,6 +5162,13 @@ export interface operations { }; readonly image: string; readonly integrations?: readonly ({ + readonly id: string; + readonly name: string; + /** @default /opt/models */ + readonly path?: string; + /** @enum {string} */ + readonly type: "model"; + } | { readonly accessKeyId: string; readonly endpoint?: string; readonly name: string; @@ -4720,23 +5190,8 @@ export interface operations { /** Format: uri */ readonly url: string; })[]; - readonly models?: readonly ({ - readonly id: string; - readonly path?: string; - })[]; readonly name: string; readonly region?: string; - readonly repositories?: { - readonly dataset: string; - readonly mountPath?: string; - readonly repositories: readonly ({ - readonly name: string; - readonly password?: string; - readonly ref?: string; - readonly url: string; - readonly username?: string; - })[]; - }; readonly resources: { readonly autoscaling?: { readonly enabled?: boolean; @@ -4907,6 +5362,13 @@ export interface operations { }; readonly image: string; readonly integrations?: readonly ({ + readonly id: string; + readonly name: string; + /** @default /opt/models */ + readonly path?: string; + /** @enum {string} */ + readonly type: "model"; + } | { readonly accessKeyId: string; readonly endpoint?: string; readonly name: string; @@ -4928,23 +5390,8 @@ export interface operations { /** Format: uri */ readonly url: string; })[]; - readonly models?: readonly ({ - readonly id: string; - readonly path?: string; - })[]; readonly name: string; readonly region?: string; - readonly repositories?: { - readonly dataset: string; - readonly mountPath?: string; - readonly repositories: readonly ({ - readonly name: string; - readonly password?: string; - readonly ref?: string; - readonly url: string; - readonly username?: string; - })[]; - }; readonly resources: { readonly autoscaling?: { readonly enabled?: boolean; @@ -5031,7 +5478,8 @@ export interface operations { | ( | ( | ({ - readonly apiVersion: "v0alpha0" | "latest"; + /** @enum {string} */ + readonly apiVersion: "v0alpha0"; readonly command?: readonly (string)[]; readonly containerRegistry?: string; /** @default true */ @@ -5294,6 +5742,13 @@ export interface operations { }; readonly image: string; readonly integrations?: readonly ({ + readonly id: string; + readonly name: string; + /** @default /opt/models */ + readonly path?: string; + /** @enum {string} */ + readonly type: "model"; + } | { readonly accessKeyId: string; readonly endpoint?: string; readonly name: string; @@ -5315,23 +5770,8 @@ export interface operations { /** Format: uri */ readonly url: string; })[]; - readonly models?: readonly ({ - readonly id: string; - readonly path?: string; - })[]; readonly name: string; readonly region?: string; - readonly repositories?: { - readonly dataset: string; - readonly mountPath?: string; - readonly repositories: readonly ({ - readonly name: string; - readonly password?: string; - readonly ref?: string; - readonly url: string; - readonly username?: string; - })[]; - }; readonly resources: { readonly autoscaling?: { readonly enabled?: boolean; @@ -5502,6 +5942,13 @@ export interface operations { }; readonly image: string; readonly integrations?: readonly ({ + readonly id: string; + readonly name: string; + /** @default /opt/models */ + readonly path?: string; + /** @enum {string} */ + readonly type: "model"; + } | { readonly accessKeyId: string; readonly endpoint?: string; readonly name: string; @@ -5523,23 +5970,8 @@ export interface operations { /** Format: uri */ readonly url: string; })[]; - readonly models?: readonly ({ - readonly id: string; - readonly path?: string; - })[]; readonly name: string; readonly region?: string; - readonly repositories?: { - readonly dataset: string; - readonly mountPath?: string; - readonly repositories: readonly ({ - readonly name: string; - readonly password?: string; - readonly ref?: string; - readonly url: string; - readonly username?: string; - })[]; - }; readonly resources: { readonly autoscaling?: { readonly enabled?: boolean; @@ -5686,7 +6118,8 @@ export interface operations { | ( | ( | ({ - readonly apiVersion: "v0alpha0" | "latest"; + /** @enum {string} */ + readonly apiVersion: "v0alpha0"; readonly command?: readonly (string)[]; readonly containerRegistry?: string; /** @default true */ @@ -5949,6 +6382,13 @@ export interface operations { }; readonly image: string; readonly integrations?: readonly ({ + readonly id: string; + readonly name: string; + /** @default /opt/models */ + readonly path?: string; + /** @enum {string} */ + readonly type: "model"; + } | { readonly accessKeyId: string; readonly endpoint?: string; readonly name: string; @@ -5970,23 +6410,8 @@ export interface operations { /** Format: uri */ readonly url: string; })[]; - readonly models?: readonly ({ - readonly id: string; - readonly path?: string; - })[]; readonly name: string; readonly region?: string; - readonly repositories?: { - readonly dataset: string; - readonly mountPath?: string; - readonly repositories: readonly ({ - readonly name: string; - readonly password?: string; - readonly ref?: string; - readonly url: string; - readonly username?: string; - })[]; - }; readonly resources: { readonly autoscaling?: { readonly enabled?: boolean; @@ -6157,6 +6582,13 @@ export interface operations { }; readonly image: string; readonly integrations?: readonly ({ + readonly id: string; + readonly name: string; + /** @default /opt/models */ + readonly path?: string; + /** @enum {string} */ + readonly type: "model"; + } | { readonly accessKeyId: string; readonly endpoint?: string; readonly name: string; @@ -6178,23 +6610,8 @@ export interface operations { /** Format: uri */ readonly url: string; })[]; - readonly models?: readonly ({ - readonly id: string; - readonly path?: string; - })[]; readonly name: string; readonly region?: string; - readonly repositories?: { - readonly dataset: string; - readonly mountPath?: string; - readonly repositories: readonly ({ - readonly name: string; - readonly password?: string; - readonly ref?: string; - readonly url: string; - readonly username?: string; - })[]; - }; readonly resources: { readonly autoscaling?: { readonly enabled?: boolean; @@ -6754,12 +7171,14 @@ export interface operations { readonly items: readonly ({ /** @description The accelerators of the machine. */ readonly accelerators?: - | readonly ({ + | (readonly ({ /** @description The number of accelerators of this type. */ readonly count: number; + /** @description The amount of memory the accelerator has, if applicable. */ + readonly memory: number | null; /** @description The name of the accelerator. */ readonly name: string; - })[] + })[]) | null; /** @description The agent type of the machine. */ readonly agentType: string; @@ -6803,31 +7222,7 @@ export interface operations { /** @description The ID of the machine. */ readonly id: string; /** @description The type of the machine. */ - readonly machineType: { - /** @description The number of CPUs. */ - readonly cpus: number; - /** @description The name of the GPU. */ - readonly gpu: string | null; - /** @description The label of the machine type. */ - readonly label: string; - /** @description Metadata for the machine type. */ - readonly metadata: - | ({ - [key: string]: unknown | undefined; - }) - | null; - /** @description The name of the NVLink GPU. */ - readonly nvlinkGpu: string | null; - /** @description The number of NVLink GPUs. */ - readonly nvlinkGpuCount: number | null; - /** - * Format: int64 - * @description The amount of RAM in bytes. - */ - readonly ram: number; - /** @description Whether the machine type supports NVLink. */ - readonly supportsNvlink: boolean; - }; + readonly machineType: string; /** @description The name of the machine. */ readonly name: string; /** @description The ID of the network the machine is on. */ @@ -6972,12 +7367,14 @@ export interface operations { readonly data: { /** @description The accelerators of the machine. */ readonly accelerators?: - | readonly ({ + | (readonly ({ /** @description The number of accelerators of this type. */ readonly count: number; + /** @description The amount of memory the accelerator has, if applicable. */ + readonly memory: number | null; /** @description The name of the accelerator. */ readonly name: string; - })[] + })[]) | null; /** @description The agent type of the machine. */ readonly agentType: string; @@ -7021,31 +7418,7 @@ export interface operations { /** @description The ID of the machine. */ readonly id: string; /** @description The type of the machine. */ - readonly machineType: { - /** @description The number of CPUs. */ - readonly cpus: number; - /** @description The name of the GPU. */ - readonly gpu: string | null; - /** @description The label of the machine type. */ - readonly label: string; - /** @description Metadata for the machine type. */ - readonly metadata: - | ({ - [key: string]: unknown | undefined; - }) - | null; - /** @description The name of the NVLink GPU. */ - readonly nvlinkGpu: string | null; - /** @description The number of NVLink GPUs. */ - readonly nvlinkGpuCount: number | null; - /** - * Format: int64 - * @description The amount of RAM in bytes. - */ - readonly ram: number; - /** @description Whether the machine type supports NVLink. */ - readonly supportsNvlink: boolean; - }; + readonly machineType: string; /** @description The name of the machine. */ readonly name: string; /** @description The ID of the network the machine is on. */ @@ -7187,12 +7560,14 @@ export interface operations { readonly "application/json": { /** @description The accelerators of the machine. */ readonly accelerators?: - | readonly ({ + | (readonly ({ /** @description The number of accelerators of this type. */ readonly count: number; + /** @description The amount of memory the accelerator has, if applicable. */ + readonly memory: number | null; /** @description The name of the accelerator. */ readonly name: string; - })[] + })[]) | null; /** @description The agent type of the machine. */ readonly agentType: string; @@ -7236,31 +7611,7 @@ export interface operations { /** @description The ID of the machine. */ readonly id: string; /** @description The type of the machine. */ - readonly machineType: { - /** @description The number of CPUs. */ - readonly cpus: number; - /** @description The name of the GPU. */ - readonly gpu: string | null; - /** @description The label of the machine type. */ - readonly label: string; - /** @description Metadata for the machine type. */ - readonly metadata: - | ({ - [key: string]: unknown | undefined; - }) - | null; - /** @description The name of the NVLink GPU. */ - readonly nvlinkGpu: string | null; - /** @description The number of NVLink GPUs. */ - readonly nvlinkGpuCount: number | null; - /** - * Format: int64 - * @description The amount of RAM in bytes. - */ - readonly ram: number; - /** @description Whether the machine type supports NVLink. */ - readonly supportsNvlink: boolean; - }; + readonly machineType: string; /** @description The name of the machine. */ readonly name: string; /** @description The ID of the network the machine is on. */ @@ -7394,12 +7745,14 @@ export interface operations { readonly data: { /** @description The accelerators of the machine. */ readonly accelerators?: - | readonly ({ + | (readonly ({ /** @description The number of accelerators of this type. */ readonly count: number; + /** @description The amount of memory the accelerator has, if applicable. */ + readonly memory: number | null; /** @description The name of the accelerator. */ readonly name: string; - })[] + })[]) | null; /** @description The agent type of the machine. */ readonly agentType: string; @@ -7443,31 +7796,7 @@ export interface operations { /** @description The ID of the machine. */ readonly id: string; /** @description The type of the machine. */ - readonly machineType: { - /** @description The number of CPUs. */ - readonly cpus: number; - /** @description The name of the GPU. */ - readonly gpu: string | null; - /** @description The label of the machine type. */ - readonly label: string; - /** @description Metadata for the machine type. */ - readonly metadata: - | ({ - [key: string]: unknown | undefined; - }) - | null; - /** @description The name of the NVLink GPU. */ - readonly nvlinkGpu: string | null; - /** @description The number of NVLink GPUs. */ - readonly nvlinkGpuCount: number | null; - /** - * Format: int64 - * @description The amount of RAM in bytes. - */ - readonly ram: number; - /** @description Whether the machine type supports NVLink. */ - readonly supportsNvlink: boolean; - }; + readonly machineType: string; /** @description The name of the machine. */ readonly name: string; /** @description The ID of the network the machine is on. */ @@ -7611,12 +7940,14 @@ export interface operations { readonly data: { /** @description The accelerators of the machine. */ readonly accelerators?: - | readonly ({ + | (readonly ({ /** @description The number of accelerators of this type. */ readonly count: number; + /** @description The amount of memory the accelerator has, if applicable. */ + readonly memory: number | null; /** @description The name of the accelerator. */ readonly name: string; - })[] + })[]) | null; /** @description The agent type of the machine. */ readonly agentType: string; @@ -7660,31 +7991,7 @@ export interface operations { /** @description The ID of the machine. */ readonly id: string; /** @description The type of the machine. */ - readonly machineType: { - /** @description The number of CPUs. */ - readonly cpus: number; - /** @description The name of the GPU. */ - readonly gpu: string | null; - /** @description The label of the machine type. */ - readonly label: string; - /** @description Metadata for the machine type. */ - readonly metadata: - | ({ - [key: string]: unknown | undefined; - }) - | null; - /** @description The name of the NVLink GPU. */ - readonly nvlinkGpu: string | null; - /** @description The number of NVLink GPUs. */ - readonly nvlinkGpuCount: number | null; - /** - * Format: int64 - * @description The amount of RAM in bytes. - */ - readonly ram: number; - /** @description Whether the machine type supports NVLink. */ - readonly supportsNvlink: boolean; - }; + readonly machineType: string; /** @description The name of the machine. */ readonly name: string; /** @description The ID of the network the machine is on. */ @@ -8109,12 +8416,14 @@ export interface operations { readonly data: { /** @description The accelerators of the machine. */ readonly accelerators?: - | readonly ({ + | (readonly ({ /** @description The number of accelerators of this type. */ readonly count: number; + /** @description The amount of memory the accelerator has, if applicable. */ + readonly memory: number | null; /** @description The name of the accelerator. */ readonly name: string; - })[] + })[]) | null; /** @description The agent type of the machine. */ readonly agentType: string; @@ -8158,31 +8467,7 @@ export interface operations { /** @description The ID of the machine. */ readonly id: string; /** @description The type of the machine. */ - readonly machineType: { - /** @description The number of CPUs. */ - readonly cpus: number; - /** @description The name of the GPU. */ - readonly gpu: string | null; - /** @description The label of the machine type. */ - readonly label: string; - /** @description Metadata for the machine type. */ - readonly metadata: - | ({ - [key: string]: unknown | undefined; - }) - | null; - /** @description The name of the NVLink GPU. */ - readonly nvlinkGpu: string | null; - /** @description The number of NVLink GPUs. */ - readonly nvlinkGpuCount: number | null; - /** - * Format: int64 - * @description The amount of RAM in bytes. - */ - readonly ram: number; - /** @description Whether the machine type supports NVLink. */ - readonly supportsNvlink: boolean; - }; + readonly machineType: string; /** @description The name of the machine. */ readonly name: string; /** @description The ID of the network the machine is on. */ @@ -8326,12 +8611,14 @@ export interface operations { readonly data: { /** @description The accelerators of the machine. */ readonly accelerators?: - | readonly ({ + | (readonly ({ /** @description The number of accelerators of this type. */ readonly count: number; + /** @description The amount of memory the accelerator has, if applicable. */ + readonly memory: number | null; /** @description The name of the accelerator. */ readonly name: string; - })[] + })[]) | null; /** @description The agent type of the machine. */ readonly agentType: string; @@ -8375,31 +8662,7 @@ export interface operations { /** @description The ID of the machine. */ readonly id: string; /** @description The type of the machine. */ - readonly machineType: { - /** @description The number of CPUs. */ - readonly cpus: number; - /** @description The name of the GPU. */ - readonly gpu: string | null; - /** @description The label of the machine type. */ - readonly label: string; - /** @description Metadata for the machine type. */ - readonly metadata: - | ({ - [key: string]: unknown | undefined; - }) - | null; - /** @description The name of the NVLink GPU. */ - readonly nvlinkGpu: string | null; - /** @description The number of NVLink GPUs. */ - readonly nvlinkGpuCount: number | null; - /** - * Format: int64 - * @description The amount of RAM in bytes. - */ - readonly ram: number; - /** @description Whether the machine type supports NVLink. */ - readonly supportsNvlink: boolean; - }; + readonly machineType: string; /** @description The name of the machine. */ readonly name: string; /** @description The ID of the network the machine is on. */ @@ -8543,12 +8806,14 @@ export interface operations { readonly data: { /** @description The accelerators of the machine. */ readonly accelerators?: - | readonly ({ + | (readonly ({ /** @description The number of accelerators of this type. */ readonly count: number; + /** @description The amount of memory the accelerator has, if applicable. */ + readonly memory: number | null; /** @description The name of the accelerator. */ readonly name: string; - })[] + })[]) | null; /** @description The agent type of the machine. */ readonly agentType: string; @@ -8592,31 +8857,7 @@ export interface operations { /** @description The ID of the machine. */ readonly id: string; /** @description The type of the machine. */ - readonly machineType: { - /** @description The number of CPUs. */ - readonly cpus: number; - /** @description The name of the GPU. */ - readonly gpu: string | null; - /** @description The label of the machine type. */ - readonly label: string; - /** @description Metadata for the machine type. */ - readonly metadata: - | ({ - [key: string]: unknown | undefined; - }) - | null; - /** @description The name of the NVLink GPU. */ - readonly nvlinkGpu: string | null; - /** @description The number of NVLink GPUs. */ - readonly nvlinkGpuCount: number | null; - /** - * Format: int64 - * @description The amount of RAM in bytes. - */ - readonly ram: number; - /** @description Whether the machine type supports NVLink. */ - readonly supportsNvlink: boolean; - }; + readonly machineType: string; /** @description The name of the machine. */ readonly name: string; /** @description The ID of the network the machine is on. */ @@ -8724,202 +8965,16 @@ export interface operations { | "vm-shutdown-force" | "vm-upgrade"; /** - * @description The state of the event, e.g. "done". - * @enum {string} - */ - readonly state: - | "new" - | "in progress" - | "done" - | "error" - | "cancelled"; - }; - }; - }; - }; - default: components["responses"]["error"]; - }; - }; - /** - * List models - * @description List models - */ - "models-list": { - parameters: { - readonly query: { - /** @description Fetch the next page of results after this cursor. */ - after?: string; - /** @description The number of items to fetch after this page. */ - limit?: number; - /** @description Order results by one of these fields. */ - orderBy?: "dtCreated"; - /** @description The order to sort the results by. */ - order?: "asc" | "desc"; - projectId?: string; - }; - }; - responses: { - /** @description Successful response */ - 200: { - content: { - readonly "application/json": { - /** @description Whether there are more pages of results available. */ - readonly hasMore: boolean; - /** @description The items on this page. */ - readonly items: readonly ({ - /** @description The description of the dataset */ - readonly description: string | null; - /** - * Format: date-time - * @description The date the dataset was created - */ - readonly dtCreated: Date; - /** - * Format: date-time - * @description The date the dataset was last modified + * @description The state of the event, e.g. "done". + * @enum {string} */ - readonly dtModified: Date; - /** @description The ID of the dataset */ - readonly id: string; - /** @description Whether the dataset is public */ - readonly isPublic: boolean; - /** @description The name of the dataset */ - readonly name: string; - /** @description The ID of the project */ - readonly projectId: string | null; - /** @description The ID of the storage provider */ - readonly storageProviderId: string | null; - /** @description The ID of the team that owns the dataset */ - readonly teamId: string; - })[]; - /** @description The cursor required to fetch the next page of results. i.e. `?after=nextPage`. This is `null` when there is no next page. */ - readonly nextPage?: string; - }; - }; - }; - default: components["responses"]["error"]; - }; - }; - /** - * Create a model - * @description Create a model - */ - "models-create": { - readonly requestBody: { - readonly content: { - readonly "application/json": { - /** @description The description of the model */ - readonly description?: (Record | string) | null; - /** @description Whether the model is public */ - readonly isPublic: boolean; - /** @description The name of the model */ - readonly name: string; - /** @description The ID of the project */ - readonly projectId?: string; - /** @description The ID of the storage provider */ - readonly storageProviderId?: string; - }; - }; - }; - responses: { - /** @description Successful response */ - 200: { - content: { - readonly "application/json": { - /** @description The description of the dataset */ - readonly description: string | null; - /** - * Format: date-time - * @description The date the dataset was created - */ - readonly dtCreated: Date; - /** - * Format: date-time - * @description The date the dataset was last modified - */ - readonly dtModified: Date; - /** @description The ID of the dataset */ - readonly id: string; - /** @description Whether the dataset is public */ - readonly isPublic: boolean; - /** @description The name of the dataset */ - readonly name: string | null; - /** @description The ID of the project */ - readonly projectId: string | null; - /** @description The ID of the storage provider */ - readonly storageProviderId: string | null; - /** @description The ID of the team that owns the dataset */ - readonly teamId: string; - }; - }; - }; - default: components["responses"]["error"]; - }; - }; - /** - * Get a model - * @description Get a model - */ - "models-get": { - parameters: { - readonly path: { - /** @description The ID of the model */ - id: string; - }; - }; - responses: { - /** @description Successful response */ - 200: { - content: { - readonly "application/json": { - /** @description The description of the dataset */ - readonly description: string | null; - /** - * Format: date-time - * @description The date the dataset was created - */ - readonly dtCreated: Date; - /** - * Format: date-time - * @description The date the dataset was last modified - */ - readonly dtModified: Date; - /** @description The ID of the dataset */ - readonly id: string; - /** @description Whether the dataset is public */ - readonly isPublic: boolean; - /** @description The name of the dataset */ - readonly name: string | null; - /** @description The ID of the project */ - readonly projectId: string | null; - /** @description The ID of the storage provider */ - readonly storageProviderId: string | null; - /** @description The ID of the team that owns the dataset */ - readonly teamId: string; - }; - }; - }; - default: components["responses"]["error"]; - }; - }; - /** - * Delete a model - * @description Delete a model - */ - "models-delete": { - parameters: { - readonly path: { - /** @description The ID of the model */ - id: string; - }; - }; - responses: { - /** @description Successful response */ - 200: { - content: { - readonly "application/json": { - /** @description The ID of the model */ - readonly id: string; + readonly state: + | "new" + | "in progress" + | "done" + | "error" + | "cancelled"; + }; }; }; }; @@ -9155,25 +9210,27 @@ export interface operations { /** @description Successful response */ 200: { content: { - readonly "application/json": { - /** - * Format: date-time - * @description The date the private network was created. - */ - readonly dtCreated: Date; - /** @description The date the private network was deleted. */ - readonly dtDeleted?: (Record | Date) | null; - /** @description The ID of the private network. */ - readonly id: string; - /** @description The name of the private network. */ - readonly name: string; - /** @description The subnet mask of the private network. */ - readonly netmask: string; - /** @description The network prefix of the private network. */ - readonly network: string; - /** @description The region the private network is in. */ - readonly region: string; - }; + readonly "application/json": + | ({ + /** + * Format: date-time + * @description The date the private network was created. + */ + readonly dtCreated: Date; + /** @description The date the private network was deleted. */ + readonly dtDeleted?: (Record | Date) | null; + /** @description The ID of the private network. */ + readonly id: string; + /** @description The name of the private network. */ + readonly name: string; + /** @description The subnet mask of the private network. */ + readonly netmask: string; + /** @description The network prefix of the private network. */ + readonly network: string; + /** @description The region the private network is in. */ + readonly region: string; + }) + | null; }; }; default: components["responses"]["error"]; @@ -9579,56 +9636,692 @@ export interface operations { | "deployment.autoscaling.enabled" | "deployment.autoscaling.disabled"; /** - * @description The actor that performed the action. Either a use or system. + * @description The actor that performed the action. Either a use or system. + * @default null + */ + readonly actor?: + | ({ + /** + * @description The avatar URL of the actor + * @default null + */ + readonly avatarUrl?: string | null; + /** + * @description The email of the actor + * @default null + */ + readonly email?: string | null; + /** + * @description The full name of the actor (e.g. "John Doe") + * @default null + */ + readonly fullName?: string | null; + }) + | null; + /** + * @description The data associated with the activity item + * @default null + */ + readonly data?: { + readonly from: number; + readonly to: number; + } | null; + /** + * @description The deployment associated with the activity item + * @default null + */ + readonly deployment?: { + /** @description The ID of the deployment */ + readonly id: string; + /** @description The name of the deployment */ + readonly name: string; + } | null; + /** + * Format: date-time + * @description The date the activity item was created + */ + readonly dtCreated: Date; + /** + * Format: uuid + * @description ID of the activity item + */ + readonly id: string; + })[]; + /** @description The cursor required to fetch the next page of results. i.e. `?after=nextPage`. This is `null` when there is no next page. */ + readonly nextPage?: string; + }; + }; + }; + default: components["responses"]["error"]; + }; + }; + /** + * List a project's apps + * @description Fetches a list of apps for a project. + */ + "projectApps-list": { + parameters: { + readonly query: { + /** @description Fetch the next page of results after this cursor. */ + after?: string; + /** @description The number of items to fetch after this page. */ + limit?: number; + /** @description Order results by one of these fields. */ + orderBy?: "dtCreated"; + /** @description The order to sort the results by. */ + order?: "asc" | "desc"; + /** @description The name of the app to filter by */ + name?: string; + }; + readonly path: { + /** @description The ID of the project to fetch apps for */ + id: string; + }; + }; + responses: { + /** @description Successful response */ + 200: { + content: { + readonly "application/json": { + /** @description Whether there are more pages of results available. */ + readonly hasMore: boolean; + /** @description The items on this page. */ + readonly items: readonly ({ + /** + * Format: date-time + * @description The date the deployment was created + */ + readonly dtCreated: Date; + /** @description The unique endpoint for the deployment */ + readonly endpoint: string; + /** @description The ID of the deployment */ + readonly id: string; + /** + * @description The latest deployment configuration. If invalid, null is returned. * @default null */ - readonly actor?: + readonly latestSpec?: | ({ + /** @description The data for the deployment spec */ + readonly data?: + | ( + | ( + | ({ + /** @enum {string} */ + readonly apiVersion: "v0alpha0"; + readonly command?: readonly (string)[]; + readonly containerRegistry?: string; + /** @default true */ + readonly enabled?: boolean; + readonly env?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly healthChecks?: { + readonly liveness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly readiness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly startup?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + }; + readonly image: string; + readonly models?: readonly ({ + readonly id: string; + readonly path?: string; + })[]; + readonly name: string; + /** @default 80 */ + readonly port?: number; + readonly region?: string; + readonly repositories?: { + readonly dataset: string; + readonly mountPath?: string; + readonly repositories: readonly ({ + readonly name: string; + readonly password?: string; + readonly ref?: string; + readonly url: string; + readonly username?: string; + })[]; + }; + readonly resources: { + readonly autoscaling?: { + readonly enabled?: boolean; + readonly maxReplicas: number; + readonly metrics: readonly ( + | { + /** @enum {string} */ + readonly metric: "requestDuration"; + /** @enum {string} */ + readonly summary: "average"; + readonly value: number; + } + | ({ + /** @enum {string} */ + readonly metric: "cpu" | "memory"; + /** @enum {string} */ + readonly summary: "average"; + readonly value: number; + }) + )[]; + }; + readonly instanceType: string; + /** @default 1 */ + readonly replicas?: number; + }; + }) + | ({ + /** @enum {string} */ + readonly apiVersion: "v0alpha1"; + readonly command?: readonly (string)[]; + readonly containerRegistry?: string; + /** @default true */ + readonly enabled?: boolean; + readonly env?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly healthchecks?: { + readonly liveness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly readiness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly startup?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + }; + readonly healthChecks?: { + readonly liveness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly readiness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly startup?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + }; + readonly image: string; + readonly integrations?: readonly ({ + readonly id: string; + readonly name: string; + /** @default /opt/models */ + readonly path?: string; + /** @enum {string} */ + readonly type: "model"; + } | { + readonly accessKeyId: string; + readonly endpoint?: string; + readonly name: string; + readonly path?: string; + readonly region?: string; + readonly secretAccessKey: string; + /** @enum {string} */ + readonly type: "s3"; + readonly url: string; + } | { + readonly name: string; + /** @enum {string} */ + readonly type: "volume"; + } | { + readonly name: string; + readonly path?: string; + /** @enum {string} */ + readonly type: "git-lfs"; + /** Format: uri */ + readonly url: string; + })[]; + readonly name: string; + readonly region?: string; + readonly resources: { + readonly autoscaling?: { + readonly enabled?: boolean; + readonly maxReplicas: number; + readonly metrics: readonly ( + | { + /** @enum {string} */ + readonly metric: "requestDuration"; + /** @enum {string} */ + readonly summary: "average"; + readonly value: number; + } + | ({ + /** @enum {string} */ + readonly metric: "cpu" | "memory"; + /** @enum {string} */ + readonly summary: "average"; + readonly value: number; + }) + )[]; + }; + readonly machineType: string; + readonly ports: readonly (number)[]; + /** @default 1 */ + readonly replicas?: number; + }; + }) + ) + | ({ + readonly apiVersion: "v1" | "latest"; + readonly command?: readonly (string)[]; + readonly containerRegistry?: string; + /** @default true */ + readonly enabled?: boolean; + readonly env?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly healthchecks?: { + readonly liveness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly readiness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly startup?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + }; + readonly healthChecks?: { + readonly liveness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly readiness?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + readonly startup?: { + readonly failureThreshold?: number; + readonly headers?: readonly ({ + readonly name: string; + readonly value: string; + })[]; + readonly host?: string; + readonly initialDelaySeconds?: number; + readonly path: string; + readonly periodSeconds?: number; + readonly port?: number; + readonly timeoutSeconds?: number; + } | { + readonly exec: { + readonly command: readonly (string)[]; + }; + readonly failureThreshold?: number; + readonly initialDelaySeconds?: number; + readonly periodSeconds?: number; + readonly timeoutSeconds?: number; + }; + }; + readonly image: string; + readonly integrations?: readonly ({ + readonly id: string; + readonly name: string; + /** @default /opt/models */ + readonly path?: string; + /** @enum {string} */ + readonly type: "model"; + } | { + readonly accessKeyId: string; + readonly endpoint?: string; + readonly name: string; + readonly path?: string; + readonly region?: string; + readonly secretAccessKey: string; + /** @enum {string} */ + readonly type: "s3"; + readonly url: string; + } | { + readonly name: string; + /** @enum {string} */ + readonly type: "volume"; + } | { + readonly name: string; + readonly path?: string; + /** @enum {string} */ + readonly type: "git-lfs"; + /** Format: uri */ + readonly url: string; + })[]; + readonly name: string; + readonly region?: string; + readonly resources: { + readonly autoscaling?: { + readonly enabled?: boolean; + readonly maxReplicas: number; + readonly metrics: readonly ( + | { + /** @enum {string} */ + readonly metric: "requestDuration"; + /** @enum {string} */ + readonly summary: "average"; + readonly value: number; + } + | ({ + /** @enum {string} */ + readonly metric: "cpu" | "memory"; + /** @enum {string} */ + readonly summary: "average"; + readonly value: number; + }) + )[]; + }; + readonly machineType: string; + readonly ports: readonly (number)[]; + /** @default 1 */ + readonly replicas?: number; + }; + }) + ) + | null; + /** @description The ID of the deployment the spec belongs to */ + readonly deploymentId: string; /** - * @description The avatar URL of the actor + * Format: date-time + * @description The date the deployment was marked "healthy" * @default null */ - readonly avatarUrl?: string | null; + readonly dtHealthy?: Date; /** - * @description The email of the actor + * @description The fatal configuration error. Only present if the cluster was unable to apply the entire deployment configuration. This is not the same as an instance error. * @default null */ - readonly email?: string | null; + readonly error?: string | null; /** - * @description The full name of the actor (e.g. "John Doe") + * Format: date-time + * @description The date the deployment configuration was applied to the cluster * @default null */ - readonly fullName?: string | null; + readonly externalApplied?: Date; + /** @description The ID of the deployment spec */ + readonly id: string; + /** + * @description Metadata about the source of the configuration + * @default null + */ + readonly metadata?: + | ({ + readonly gitHeaders?: { + readonly "x-git-actor": string; + readonly "x-git-host": "github" | "gitlab"; + readonly "x-git-owner": string; + readonly "x-git-ref": string; + readonly "x-git-repo": string; + readonly "x-git-sha": string; + }; + }) + | null; + /** @description The ID of the user the deployment belongs to */ + readonly userId: string; }) | null; /** - * @description The data associated with the activity item - * @default null - */ - readonly data?: { - readonly from: number; - readonly to: number; - } | null; - /** - * @description The deployment associated with the activity item + * @description The last version hash for the deployment * @default null */ - readonly deployment?: { - /** @description The ID of the deployment */ - readonly id: string; - /** @description The name of the deployment */ - readonly name: string; - } | null; - /** - * Format: date-time - * @description The date the activity item was created - */ - readonly dtCreated: Date; - /** - * Format: uuid - * @description ID of the activity item - */ - readonly id: string; + readonly latestSpecHash?: string | null; + /** @description The name of the deployment */ + readonly name: string; + /** @description The ID of the project the deployment belongs to */ + readonly projectId: string; + /** @description The ID of the team the deployment belongs to */ + readonly teamId: string; })[]; /** @description The cursor required to fetch the next page of results. i.e. `?after=nextPage`. This is `null` when there is no next page. */ readonly nextPage?: string; @@ -9809,7 +10502,7 @@ export interface operations { * List a project's deployments * @description Fetches a list of deployments for a project. */ - "projectsDeployments-list": { + "projectDeployments-list": { parameters: { readonly query: { /** @description Fetch the next page of results after this cursor. */ @@ -9820,7 +10513,7 @@ export interface operations { orderBy?: "dtCreated"; /** @description The order to sort the results by. */ order?: "asc" | "desc"; - /** @description The name of the deployment to filter by */ + /** @description The name of the app to filter by */ name?: string; }; readonly path: { @@ -9857,7 +10550,8 @@ export interface operations { | ( | ( | ({ - readonly apiVersion: "v0alpha0" | "latest"; + /** @enum {string} */ + readonly apiVersion: "v0alpha0"; readonly command?: readonly (string)[]; readonly containerRegistry?: string; /** @default true */ @@ -10120,6 +10814,13 @@ export interface operations { }; readonly image: string; readonly integrations?: readonly ({ + readonly id: string; + readonly name: string; + /** @default /opt/models */ + readonly path?: string; + /** @enum {string} */ + readonly type: "model"; + } | { readonly accessKeyId: string; readonly endpoint?: string; readonly name: string; @@ -10141,23 +10842,8 @@ export interface operations { /** Format: uri */ readonly url: string; })[]; - readonly models?: readonly ({ - readonly id: string; - readonly path?: string; - })[]; readonly name: string; readonly region?: string; - readonly repositories?: { - readonly dataset: string; - readonly mountPath?: string; - readonly repositories: readonly ({ - readonly name: string; - readonly password?: string; - readonly ref?: string; - readonly url: string; - readonly username?: string; - })[]; - }; readonly resources: { readonly autoscaling?: { readonly enabled?: boolean; @@ -10328,6 +11014,13 @@ export interface operations { }; readonly image: string; readonly integrations?: readonly ({ + readonly id: string; + readonly name: string; + /** @default /opt/models */ + readonly path?: string; + /** @enum {string} */ + readonly type: "model"; + } | { readonly accessKeyId: string; readonly endpoint?: string; readonly name: string; @@ -10349,23 +11042,8 @@ export interface operations { /** Format: uri */ readonly url: string; })[]; - readonly models?: readonly ({ - readonly id: string; - readonly path?: string; - })[]; readonly name: string; readonly region?: string; - readonly repositories?: { - readonly dataset: string; - readonly mountPath?: string; - readonly repositories: readonly ({ - readonly name: string; - readonly password?: string; - readonly ref?: string; - readonly url: string; - readonly username?: string; - })[]; - }; readonly resources: { readonly autoscaling?: { readonly enabled?: boolean; @@ -10437,19 +11115,268 @@ export interface operations { }) | null; /** - * @description The last version hash for the deployment + * @description The last version hash for the deployment + * @default null + */ + readonly latestSpecHash?: string | null; + /** @description The name of the deployment */ + readonly name: string; + /** @description The ID of the project the deployment belongs to */ + readonly projectId: string; + /** @description The ID of the team the deployment belongs to */ + readonly teamId: string; + })[]; + /** @description The cursor required to fetch the next page of results. i.e. `?after=nextPage`. This is `null` when there is no next page. */ + readonly nextPage?: string; + }; + }; + }; + default: components["responses"]["error"]; + }; + }; + /** + * List a project's models + * @description Fetches a list of models for a project. + */ + "projectModels-list": { + parameters: { + readonly query: { + /** @description Fetch the next page of results after this cursor. */ + after?: string; + /** @description The number of items to fetch after this page. */ + limit?: number; + /** @description Order results by one of these fields. */ + orderBy?: "dtCreated"; + /** @description The order to sort the results by. */ + order?: "asc" | "desc"; + /** @description The name of the model to filter by */ + name?: string; + }; + readonly path: { + /** @description The ID of the project to fetch models for */ + id: string; + }; + }; + responses: { + /** @description Successful response */ + 200: { + content: { + readonly "application/json": { + /** @description Whether there are more pages of results available. */ + readonly hasMore: boolean; + /** @description The items on this page. */ + readonly items: readonly ({ + /** @description The description of the dataset */ + readonly description: string | null; + /** + * Format: date-time + * @description The date the dataset was created + */ + readonly dtCreated: Date; + /** + * Format: date-time + * @description The date the dataset was last modified + */ + readonly dtModified: Date; + /** @description The ID of the dataset */ + readonly id: string; + /** @description Whether the dataset is public */ + readonly isPublic: boolean; + /** @description The name of the dataset */ + readonly name: string; + /** @description The ID of the project */ + readonly projectId: string | null; + /** @description The ID of the storage provider */ + readonly storageProviderId: string | null; + /** @description The ID of the team that owns the dataset */ + readonly teamId: string; + })[]; + /** @description The cursor required to fetch the next page of results. i.e. `?after=nextPage`. This is `null` when there is no next page. */ + readonly nextPage?: string; + }; + }; + }; + default: components["responses"]["error"]; + }; + }; + /** + * Add a model to a project + * @description Adds a model to a project. + */ + "projectModels-add": { + parameters: { + readonly path: { + /** @description The ID of the project to add the model to */ + id: string; + /** @description The ID of the model to add to the project */ + modelId: string; + }; + }; + responses: { + /** @description Successful response */ + 200: { + content: { + readonly "application/json": { + /** @description The description of the dataset */ + readonly description: string | null; + /** + * Format: date-time + * @description The date the dataset was created + */ + readonly dtCreated: Date; + /** + * Format: date-time + * @description The date the dataset was last modified + */ + readonly dtModified: Date; + /** @description The ID of the dataset */ + readonly id: string; + /** @description Whether the dataset is public */ + readonly isPublic: boolean; + /** @description The name of the dataset */ + readonly name: string; + /** @description The ID of the project */ + readonly projectId: string | null; + /** @description The ID of the storage provider */ + readonly storageProviderId: string | null; + /** @description The ID of the team that owns the dataset */ + readonly teamId: string; + }; + }; + }; + default: components["responses"]["error"]; + }; + }; + /** + * Remove a model from project + * @description Remove a model from project. + */ + "projectModels-remove": { + parameters: { + readonly path: { + /** @description The ID of the project to remove the model from */ + id: string; + /** @description The ID of the model to remove from the project */ + modelId: string; + }; + }; + responses: { + /** @description Successful response */ + 200: { + content: { + readonly "application/json": { + /** @description The description of the dataset */ + readonly description: string | null; + /** + * Format: date-time + * @description The date the dataset was created + */ + readonly dtCreated: Date; + /** + * Format: date-time + * @description The date the dataset was last modified + */ + readonly dtModified: Date; + /** @description The ID of the dataset */ + readonly id: string; + /** @description Whether the dataset is public */ + readonly isPublic: boolean; + /** @description The name of the dataset */ + readonly name: string; + /** @description The ID of the project */ + readonly projectId: string | null; + /** @description The ID of the storage provider */ + readonly storageProviderId: string | null; + /** @description The ID of the team that owns the dataset */ + readonly teamId: string; + }; + }; + }; + default: components["responses"]["error"]; + }; + }; + /** + * Remove a notebook from a project + * @description Remove a notebook from a project. + */ + "projectNotebooks-remove": { + parameters: { + readonly path: { + /** @description The ID of the project to remove the notebook from */ + id: string; + /** @description The ID of the notebook to remove from the project */ + notebookId: string; + }; + }; + responses: { + /** @description Successful response */ + 200: { + content: { + readonly "application/json": { + /** + * Format: date-time + * @description The date the notebook was created + */ + readonly dtCreated: Date; + /** + * Format: date-time + * @description The date the notebook was last modified + */ + readonly dtModified: Date; + /** + * Format: date-time + * @description The date the notebook was last started + */ + readonly dtStarted: Date; + /** @description The ID of the notebook */ + readonly id: string; + /** @description The type of the machine the notebook is running on */ + readonly machineType: string | null; + /** @description The name of the notebook */ + readonly name: string; + /** @description The notebook repo ID */ + readonly notebookRepoId: string | null; + /** @description The project ID */ + readonly projectId: string; + /** @description The last user to start the notebook */ + readonly startedByUser: { + /** + * Format: email + * @description The email address of the user + */ + readonly email: string; + /** + * @description The first name of the user * @default null */ - readonly latestSpecHash?: string | null; - /** @description The name of the deployment */ - readonly name: string; - /** @description The ID of the project the deployment belongs to */ - readonly projectId: string; - /** @description The ID of the team the deployment belongs to */ - readonly teamId: string; - })[]; - /** @description The cursor required to fetch the next page of results. i.e. `?after=nextPage`. This is `null` when there is no next page. */ - readonly nextPage?: string; + readonly firstName?: string | null; + /** @description The ID of the user */ + readonly id: string; + /** + * @description The last name of the user + * @default null + */ + readonly lastName?: string | null; + /** + * @description The URL of the team's profile image. + * @default null + */ + readonly publicProfileImageUrl?: string | null; + }; + /** + * @description The state of the notebook. + * @enum {string} + */ + readonly state: + | "Cancel" + | "Cancelled" + | "Error" + | "Failed" + | "Pending" + | "Preempted" + | "Provisioned" + | "Running" + | "Stopped"; }; }; }; @@ -10457,10 +11384,10 @@ export interface operations { }; }; /** - * List a project's models - * @description Fetches a list of models for a project. + * List a project's notebooks + * @description Fetches a list of notebooks for a project. */ - "projectModels-list": { + "projectNotebooks-list": { parameters: { readonly query: { /** @description Fetch the next page of results after this cursor. */ @@ -10468,14 +11395,25 @@ export interface operations { /** @description The number of items to fetch after this page. */ limit?: number; /** @description Order results by one of these fields. */ - orderBy?: "dtCreated"; + orderBy?: "dtCreated" | "name"; /** @description The order to sort the results by. */ order?: "asc" | "desc"; - /** @description The name of the model to filter by */ + /** @description The notebook name to filter by */ name?: string; + /** @description The state of the notebook. */ + state?: + | "Cancel" + | "Cancelled" + | "Error" + | "Failed" + | "Pending" + | "Preempted" + | "Provisioned" + | "Running" + | "Stopped"; }; readonly path: { - /** @description The ID of the project to fetch models for */ + /** @description The ID of the project to fetch notebooks for */ id: string; }; }; @@ -10488,30 +11426,70 @@ export interface operations { readonly hasMore: boolean; /** @description The items on this page. */ readonly items: readonly ({ - /** @description The description of the dataset */ - readonly description: string | null; /** * Format: date-time - * @description The date the dataset was created + * @description The date the notebook was created */ readonly dtCreated: Date; /** * Format: date-time - * @description The date the dataset was last modified + * @description The date the notebook was last modified */ readonly dtModified: Date; - /** @description The ID of the dataset */ + /** + * Format: date-time + * @description The date the notebook was last started + */ + readonly dtStarted: Date; + /** @description The ID of the notebook */ readonly id: string; - /** @description Whether the dataset is public */ - readonly isPublic: boolean; - /** @description The name of the dataset */ - readonly name: string | null; - /** @description The ID of the project */ - readonly projectId: string | null; - /** @description The ID of the storage provider */ - readonly storageProviderId: string | null; - /** @description The ID of the team that owns the dataset */ - readonly teamId: string; + /** @description The type of the machine the notebook is running on */ + readonly machineType: string | null; + /** @description The name of the notebook */ + readonly name: string; + /** @description The notebook repo ID */ + readonly notebookRepoId: string | null; + /** @description The project ID */ + readonly projectId: string; + /** @description The last user to start the notebook */ + readonly startedByUser: { + /** + * Format: email + * @description The email address of the user + */ + readonly email: string; + /** + * @description The first name of the user + * @default null + */ + readonly firstName?: string | null; + /** @description The ID of the user */ + readonly id: string; + /** + * @description The last name of the user + * @default null + */ + readonly lastName?: string | null; + /** + * @description The URL of the team's profile image. + * @default null + */ + readonly publicProfileImageUrl?: string | null; + }; + /** + * @description The state of the notebook. + * @enum {string} + */ + readonly state: + | "Cancel" + | "Cancelled" + | "Error" + | "Failed" + | "Pending" + | "Preempted" + | "Provisioned" + | "Running" + | "Stopped"; })[]; /** @description The cursor required to fetch the next page of results. i.e. `?after=nextPage`. This is `null` when there is no next page. */ readonly nextPage?: string; @@ -10521,6 +11499,94 @@ export interface operations { default: components["responses"]["error"]; }; }; + /** + * Add a notebook to a project + * @description Adds a notebook to a project. + */ + "projectNotebooks-add": { + parameters: { + readonly path: { + /** @description The ID of the project to add the notebook to */ + id: string; + /** @description The ID of the notebook to add to the project */ + notebookId: string; + }; + }; + responses: { + /** @description Successful response */ + 200: { + content: { + readonly "application/json": { + /** + * Format: date-time + * @description The date the notebook was created + */ + readonly dtCreated: Date; + /** + * Format: date-time + * @description The date the notebook was last modified + */ + readonly dtModified: Date; + /** + * Format: date-time + * @description The date the notebook was last started + */ + readonly dtStarted: Date; + /** @description The ID of the notebook */ + readonly id: string; + /** @description The type of the machine the notebook is running on */ + readonly machineType: string | null; + /** @description The name of the notebook */ + readonly name: string; + /** @description The notebook repo ID */ + readonly notebookRepoId: string | null; + /** @description The project ID */ + readonly projectId: string; + /** @description The last user to start the notebook */ + readonly startedByUser: { + /** + * Format: email + * @description The email address of the user + */ + readonly email: string; + /** + * @description The first name of the user + * @default null + */ + readonly firstName?: string | null; + /** @description The ID of the user */ + readonly id: string; + /** + * @description The last name of the user + * @default null + */ + readonly lastName?: string | null; + /** + * @description The URL of the team's profile image. + * @default null + */ + readonly publicProfileImageUrl?: string | null; + }; + /** + * @description The state of the notebook. + * @enum {string} + */ + readonly state: + | "Cancel" + | "Cancelled" + | "Error" + | "Failed" + | "Pending" + | "Preempted" + | "Provisioned" + | "Running" + | "Stopped"; + }; + }; + }; + default: components["responses"]["error"]; + }; + }; /** * List a project's secrets * @description Fetches a list of secrets for a project. From 78ad518d112776e160b4da333fbb02c006bf8588 Mon Sep 17 00:00:00 2001 From: Kevin Wang Date: Wed, 5 Jul 2023 12:57:06 -0400 Subject: [PATCH 8/9] update url --- commands/init/mod.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/init/mod.ts b/commands/init/mod.ts index 86f0bde..b06c58e 100644 --- a/commands/init/mod.ts +++ b/commands/init/mod.ts @@ -139,7 +139,7 @@ export const init = command("init", { yield ""; yield fmt.colors.bold("Console URL"); yield new URL( - `/${team}/projects/${app.id}/apps`, + `/${team}/apps/${app.id}`, env.get("PAPERSPACE_CONSOLE_URL"), ) + ""; yield ""; From 557c729da6c2a5038b0489910fdb56bb5581d9aa Mon Sep 17 00:00:00 2001 From: Kevin Wang Date: Wed, 5 Jul 2023 12:58:38 -0400 Subject: [PATCH 9/9] update name --- commands/init/mod.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/commands/init/mod.ts b/commands/init/mod.ts index b06c58e..ed98981 100644 --- a/commands/init/mod.ts +++ b/commands/init/mod.ts @@ -108,7 +108,12 @@ export const init = command("init", { logger.info(`Project doesn't exist. Creating a new one.`); const res = await loading( - apps.create({ config }), + apps.create({ + config: { + ...config, + name: appName, + }, + }), { text: "Creating app", enabled: !flags.json,