From 66153dbf178520a0a52f26e0e10b4ef1421a9317 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 18 Feb 2025 10:43:46 +0000 Subject: [PATCH 1/3] feat(api): manual updates (#24) --- .stats.yml | 2 +- src/resources/environments/automations/services.ts | 4 ++-- .../environments/automations/tasks/executions.ts | 2 +- .../environments/automations/tasks/tasks.ts | 6 +++--- src/resources/environments/environments.ts | 8 ++++---- .../configurations/host-authentication-tokens.ts | 6 +++--- src/resources/runners/policies.ts | 4 ++-- src/resources/runners/runners.ts | 6 +++--- src/resources/shared.ts | 14 +++++++------- src/resources/users/pats.ts | 2 +- src/resources/users/users.ts | 2 +- 11 files changed, 28 insertions(+), 28 deletions(-) diff --git a/.stats.yml b/.stats.yml index 296014e..8371fbe 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-f6598ab5d6827f66b642201769e92590ea32af84ebbf24b18cc32b33dee5107e.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/gitpod%2Fgitpod-410f762771ac58738f3d165b19c5e2e9377ebbfa3f090f041e269142cfa2e7f4.yml diff --git a/src/resources/environments/automations/services.ts b/src/resources/environments/automations/services.ts index d674974..b190b05 100644 --- a/src/resources/environments/automations/services.ts +++ b/src/resources/environments/automations/services.ts @@ -501,11 +501,11 @@ export interface ServiceStatus { } export interface ServiceCreateResponse { - service?: Service; + service: Service; } export interface ServiceRetrieveResponse { - service?: Service; + service: Service; } export type ServiceUpdateResponse = unknown; diff --git a/src/resources/environments/automations/tasks/executions.ts b/src/resources/environments/automations/tasks/executions.ts index c1de401..d8bc0cf 100644 --- a/src/resources/environments/automations/tasks/executions.ts +++ b/src/resources/environments/automations/tasks/executions.ts @@ -108,7 +108,7 @@ export class Executions extends APIResource { } export interface ExecutionRetrieveResponse { - taskExecution?: Shared.TaskExecution; + taskExecution: Shared.TaskExecution; } export type ExecutionStopResponse = unknown; diff --git a/src/resources/environments/automations/tasks/tasks.ts b/src/resources/environments/automations/tasks/tasks.ts index d113e00..a1e1b97 100644 --- a/src/resources/environments/automations/tasks/tasks.ts +++ b/src/resources/environments/automations/tasks/tasks.ts @@ -218,11 +218,11 @@ export class Tasks extends APIResource { } export interface TaskCreateResponse { - task?: Shared.Task; + task: Shared.Task; } export interface TaskRetrieveResponse { - task?: Shared.Task; + task: Shared.Task; } export type TaskUpdateResponse = unknown; @@ -230,7 +230,7 @@ export type TaskUpdateResponse = unknown; export type TaskDeleteResponse = unknown; export interface TaskStartResponse { - taskExecution?: Shared.TaskExecution; + taskExecution: Shared.TaskExecution; } export interface TaskCreateParams { diff --git a/src/resources/environments/environments.ts b/src/resources/environments/environments.ts index b783a6d..d50472f 100644 --- a/src/resources/environments/environments.ts +++ b/src/resources/environments/environments.ts @@ -1509,14 +1509,14 @@ export interface EnvironmentCreateResponse { /** * +resource get environment */ - environment?: Environment; + environment: Environment; } export interface EnvironmentRetrieveResponse { /** * +resource get environment */ - environment?: Environment; + environment: Environment; } export type EnvironmentUpdateResponse = unknown; @@ -1527,14 +1527,14 @@ export interface EnvironmentCreateFromProjectResponse { /** * +resource get environment */ - environment?: Environment; + environment: Environment; } export interface EnvironmentCreateLogsTokenResponse { /** * access_token is the token that can be used to access the logs of the environment */ - accessToken?: string; + accessToken: string; } export type EnvironmentMarkActiveResponse = unknown; diff --git a/src/resources/runners/configurations/host-authentication-tokens.ts b/src/resources/runners/configurations/host-authentication-tokens.ts index 4435471..d6eb144 100644 --- a/src/resources/runners/configurations/host-authentication-tokens.ts +++ b/src/resources/runners/configurations/host-authentication-tokens.ts @@ -71,7 +71,7 @@ export class HostAuthenticationTokens extends APIResource { export type HostAuthenticationTokensTokensPage = TokensPage; export interface HostAuthenticationToken { - id?: string; + id: string; /** * A Timestamp represents a point in time independent of any time zone or local @@ -180,11 +180,11 @@ export type HostAuthenticationTokenSource = | 'HOST_AUTHENTICATION_TOKEN_SOURCE_PAT'; export interface HostAuthenticationTokenCreateResponse { - token?: HostAuthenticationToken; + token: HostAuthenticationToken; } export interface HostAuthenticationTokenRetrieveResponse { - token?: HostAuthenticationToken; + token: HostAuthenticationToken; } export type HostAuthenticationTokenUpdateResponse = unknown; diff --git a/src/resources/runners/policies.ts b/src/resources/runners/policies.ts index be3da7a..5d38bb5 100644 --- a/src/resources/runners/policies.ts +++ b/src/resources/runners/policies.ts @@ -57,11 +57,11 @@ export interface RunnerPolicy { export type RunnerRole = 'RUNNER_ROLE_UNSPECIFIED' | 'RUNNER_ROLE_ADMIN' | 'RUNNER_ROLE_USER'; export interface PolicyCreateResponse { - policy?: RunnerPolicy; + policy: RunnerPolicy; } export interface PolicyUpdateResponse { - policy?: RunnerPolicy; + policy: RunnerPolicy; } export type PolicyDeleteResponse = unknown; diff --git a/src/resources/runners/runners.ts b/src/resources/runners/runners.ts index fba3eb3..05a8ff5 100644 --- a/src/resources/runners/runners.ts +++ b/src/resources/runners/runners.ts @@ -550,6 +550,8 @@ export interface RunnerStatus { } export interface RunnerCreateResponse { + runner: Runner; + /** * deprecated, will be removed. Use exchange_token instead. */ @@ -561,12 +563,10 @@ export interface RunnerCreateResponse { * expires after 24 hours. */ exchangeToken?: string; - - runner?: Runner; } export interface RunnerRetrieveResponse { - runner?: Runner; + runner: Runner; } export type RunnerUpdateResponse = unknown; diff --git a/src/resources/shared.ts b/src/resources/shared.ts index c70d702..64f898f 100644 --- a/src/resources/shared.ts +++ b/src/resources/shared.ts @@ -37,6 +37,12 @@ export interface EnvironmentClass { */ id: string; + /** + * runner_id is the unique identifier of the runner the environment class belongs + * to + */ + runnerId: string; + /** * configuration describes the configuration of the environment class */ @@ -57,12 +63,6 @@ export interface EnvironmentClass { * environments. */ enabled?: boolean; - - /** - * runner_id is the unique identifier of the runner the environment class belongs - * to - */ - runnerId?: string; } /** @@ -146,7 +146,7 @@ export interface Task { } export interface TaskExecution { - id?: string; + id: string; metadata?: TaskExecutionMetadata; diff --git a/src/resources/users/pats.ts b/src/resources/users/pats.ts index 46dcda4..d8037ac 100644 --- a/src/resources/users/pats.ts +++ b/src/resources/users/pats.ts @@ -379,7 +379,7 @@ export interface PersonalAccessToken { export type PatDeleteResponse = unknown; export interface PatGetResponse { - pat?: PersonalAccessToken; + pat: PersonalAccessToken; } export interface PatListParams extends PersonalAccessTokensPageParams { diff --git a/src/resources/users/users.ts b/src/resources/users/users.ts index 842292e..4ba6145 100644 --- a/src/resources/users/users.ts +++ b/src/resources/users/users.ts @@ -202,7 +202,7 @@ export interface User { } export interface UserGetAuthenticatedUserResponse { - user?: User; + user: User; } export type UserSetSuspendedResponse = unknown; From b6fb638e126b63f4563b789a6e1f91a9e11f9320 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:48:03 +0000 Subject: [PATCH 2/3] feat(api): manual updates (#26) --- .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 From 3ede5e8c806194f967acf8c890c333e014721423 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:48:20 +0000 Subject: [PATCH 3/3] release: 0.3.0 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 9 +++++++++ package.json | 2 +- src/version.ts | 2 +- 4 files changed, 12 insertions(+), 3 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 2be9c43..0ee8c01 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.2.0" + ".": "0.3.0" } diff --git a/CHANGELOG.md b/CHANGELOG.md index 0142833..91feb22 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,14 @@ # Changelog +## 0.3.0 (2025-02-18) + +Full Changelog: [v0.2.0...v0.3.0](https://github.com/gitpod-io/gitpod-sdk-typescript/compare/v0.2.0...v0.3.0) + +### Features + +* **api:** manual updates ([#24](https://github.com/gitpod-io/gitpod-sdk-typescript/issues/24)) ([66153db](https://github.com/gitpod-io/gitpod-sdk-typescript/commit/66153dbf178520a0a52f26e0e10b4ef1421a9317)) +* **api:** manual updates ([#26](https://github.com/gitpod-io/gitpod-sdk-typescript/issues/26)) ([b6fb638](https://github.com/gitpod-io/gitpod-sdk-typescript/commit/b6fb638e126b63f4563b789a6e1f91a9e11f9320)) + ## 0.2.0 (2025-02-18) Full Changelog: [v0.1.2...v0.2.0](https://github.com/gitpod-io/gitpod-sdk-typescript/compare/v0.1.2...v0.2.0) diff --git a/package.json b/package.json index ba3b029..0c98ebe 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@gitpod/sdk", - "version": "0.2.0", + "version": "0.3.0", "description": "The official TypeScript library for the Gitpod API", "author": "Gitpod ", "types": "dist/index.d.ts", diff --git a/src/version.ts b/src/version.ts index bade2ff..88f4d40 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1 +1 @@ -export const VERSION = '0.2.0'; // x-release-please-version +export const VERSION = '0.3.0'; // x-release-please-version