From de389e725494be628e252d7cdd48a55faf313cbc Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 18 Feb 2025 11:47:58 +0000 Subject: [PATCH] feat(api): manual updates --- .stats.yml | 2 +- src/resources/environments/environments.ts | 31 ++++++++++++++++++++++ src/resources/users/users.ts | 2 +- 3 files changed, 33 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 8371fbe..21d6a3d 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 111 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/gitpod%2Fgitpod-410f762771ac58738f3d165b19c5e2e9377ebbfa3f090f041e269142cfa2e7f4.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/gitpod%2Fgitpod-bef0e79f204c51c91f5dca61e621e5e31c7494dccccb200e51da0c7654340816.yml diff --git a/src/resources/environments/environments.ts b/src/resources/environments/environments.ts index d50472f..626b729 100644 --- a/src/resources/environments/environments.ts +++ b/src/resources/environments/environments.ts @@ -887,9 +887,40 @@ export namespace EnvironmentSpec { */ devcontainerFilePath?: string; + /** + * Experimental: dotfiles is the dotfiles configuration of the devcontainer + */ + dotfiles?: Devcontainer.Dotfiles; + session?: string; } + export namespace Devcontainer { + /** + * Experimental: dotfiles is the dotfiles configuration of the devcontainer + */ + export interface Dotfiles { + /** + * URL of a dotfiles Git repository (e.g. https://github.com/owner/repository) + */ + repository: string; + + /** + * install_command is the command to run after cloning the dotfiles repository. + * Defaults to run the first file of `install.sh`, `install`, `bootstrap.sh`, + * `bootstrap`, `setup.sh` and `setup` found in the dotfiles repository's root + * folder. + */ + installCommand?: string; + + /** + * target_path is the path to clone the dotfiles repository to. Defaults to + * `~/dotfiles`. + */ + targetPath?: string; + } + } + /** * machine is the machine spec of the environment */ diff --git a/src/resources/users/users.ts b/src/resources/users/users.ts index 4ba6145..0e6be07 100644 --- a/src/resources/users/users.ts +++ b/src/resources/users/users.ts @@ -84,7 +84,7 @@ export interface User { /** * id is a UUID of the user */ - id?: string; + id: string; /** * avatar_url is a link to the user avatar