Skip to content

Commit 2a6f6e7

Browse files
release: 0.3.0 (#25)
* feat(api): manual updates (#24) * feat(api): manual updates (#26) * release: 0.3.0 --------- Co-authored-by: stainless-app[bot] <142633134+stainless-app[bot]@users.noreply.github.com>
1 parent ec476cb commit 2a6f6e7

15 files changed

+72
-32
lines changed

.release-please-manifest.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "0.2.0"
2+
".": "0.3.0"
33
}

.stats.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
configured_endpoints: 111
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/gitpod%2Fgitpod-f6598ab5d6827f66b642201769e92590ea32af84ebbf24b18cc32b33dee5107e.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/gitpod%2Fgitpod-bef0e79f204c51c91f5dca61e621e5e31c7494dccccb200e51da0c7654340816.yml

CHANGELOG.md

+9
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
# Changelog
22

3+
## 0.3.0 (2025-02-18)
4+
5+
Full Changelog: [v0.2.0...v0.3.0](https://github.com/gitpod-io/gitpod-sdk-typescript/compare/v0.2.0...v0.3.0)
6+
7+
### Features
8+
9+
* **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))
10+
* **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))
11+
312
## 0.2.0 (2025-02-18)
413

514
Full Changelog: [v0.1.2...v0.2.0](https://github.com/gitpod-io/gitpod-sdk-typescript/compare/v0.1.2...v0.2.0)

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@gitpod/sdk",
3-
"version": "0.2.0",
3+
"version": "0.3.0",
44
"description": "The official TypeScript library for the Gitpod API",
55
"author": "Gitpod <[email protected]>",
66
"types": "dist/index.d.ts",

src/resources/environments/automations/services.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -501,11 +501,11 @@ export interface ServiceStatus {
501501
}
502502

503503
export interface ServiceCreateResponse {
504-
service?: Service;
504+
service: Service;
505505
}
506506

507507
export interface ServiceRetrieveResponse {
508-
service?: Service;
508+
service: Service;
509509
}
510510

511511
export type ServiceUpdateResponse = unknown;

src/resources/environments/automations/tasks/executions.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ export class Executions extends APIResource {
108108
}
109109

110110
export interface ExecutionRetrieveResponse {
111-
taskExecution?: Shared.TaskExecution;
111+
taskExecution: Shared.TaskExecution;
112112
}
113113

114114
export type ExecutionStopResponse = unknown;

src/resources/environments/automations/tasks/tasks.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -218,19 +218,19 @@ export class Tasks extends APIResource {
218218
}
219219

220220
export interface TaskCreateResponse {
221-
task?: Shared.Task;
221+
task: Shared.Task;
222222
}
223223

224224
export interface TaskRetrieveResponse {
225-
task?: Shared.Task;
225+
task: Shared.Task;
226226
}
227227

228228
export type TaskUpdateResponse = unknown;
229229

230230
export type TaskDeleteResponse = unknown;
231231

232232
export interface TaskStartResponse {
233-
taskExecution?: Shared.TaskExecution;
233+
taskExecution: Shared.TaskExecution;
234234
}
235235

236236
export interface TaskCreateParams {

src/resources/environments/environments.ts

+35-4
Original file line numberDiff line numberDiff line change
@@ -887,9 +887,40 @@ export namespace EnvironmentSpec {
887887
*/
888888
devcontainerFilePath?: string;
889889

890+
/**
891+
* Experimental: dotfiles is the dotfiles configuration of the devcontainer
892+
*/
893+
dotfiles?: Devcontainer.Dotfiles;
894+
890895
session?: string;
891896
}
892897

898+
export namespace Devcontainer {
899+
/**
900+
* Experimental: dotfiles is the dotfiles configuration of the devcontainer
901+
*/
902+
export interface Dotfiles {
903+
/**
904+
* URL of a dotfiles Git repository (e.g. https://github.com/owner/repository)
905+
*/
906+
repository: string;
907+
908+
/**
909+
* install_command is the command to run after cloning the dotfiles repository.
910+
* Defaults to run the first file of `install.sh`, `install`, `bootstrap.sh`,
911+
* `bootstrap`, `setup.sh` and `setup` found in the dotfiles repository's root
912+
* folder.
913+
*/
914+
installCommand?: string;
915+
916+
/**
917+
* target_path is the path to clone the dotfiles repository to. Defaults to
918+
* `~/dotfiles`.
919+
*/
920+
targetPath?: string;
921+
}
922+
}
923+
893924
/**
894925
* machine is the machine spec of the environment
895926
*/
@@ -1509,14 +1540,14 @@ export interface EnvironmentCreateResponse {
15091540
/**
15101541
* +resource get environment
15111542
*/
1512-
environment?: Environment;
1543+
environment: Environment;
15131544
}
15141545

15151546
export interface EnvironmentRetrieveResponse {
15161547
/**
15171548
* +resource get environment
15181549
*/
1519-
environment?: Environment;
1550+
environment: Environment;
15201551
}
15211552

15221553
export type EnvironmentUpdateResponse = unknown;
@@ -1527,14 +1558,14 @@ export interface EnvironmentCreateFromProjectResponse {
15271558
/**
15281559
* +resource get environment
15291560
*/
1530-
environment?: Environment;
1561+
environment: Environment;
15311562
}
15321563

15331564
export interface EnvironmentCreateLogsTokenResponse {
15341565
/**
15351566
* access_token is the token that can be used to access the logs of the environment
15361567
*/
1537-
accessToken?: string;
1568+
accessToken: string;
15381569
}
15391570

15401571
export type EnvironmentMarkActiveResponse = unknown;

src/resources/runners/configurations/host-authentication-tokens.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ export class HostAuthenticationTokens extends APIResource {
7171
export type HostAuthenticationTokensTokensPage = TokensPage<HostAuthenticationToken>;
7272

7373
export interface HostAuthenticationToken {
74-
id?: string;
74+
id: string;
7575

7676
/**
7777
* A Timestamp represents a point in time independent of any time zone or local
@@ -180,11 +180,11 @@ export type HostAuthenticationTokenSource =
180180
| 'HOST_AUTHENTICATION_TOKEN_SOURCE_PAT';
181181

182182
export interface HostAuthenticationTokenCreateResponse {
183-
token?: HostAuthenticationToken;
183+
token: HostAuthenticationToken;
184184
}
185185

186186
export interface HostAuthenticationTokenRetrieveResponse {
187-
token?: HostAuthenticationToken;
187+
token: HostAuthenticationToken;
188188
}
189189

190190
export type HostAuthenticationTokenUpdateResponse = unknown;

src/resources/runners/policies.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,11 @@ export interface RunnerPolicy {
5757
export type RunnerRole = 'RUNNER_ROLE_UNSPECIFIED' | 'RUNNER_ROLE_ADMIN' | 'RUNNER_ROLE_USER';
5858

5959
export interface PolicyCreateResponse {
60-
policy?: RunnerPolicy;
60+
policy: RunnerPolicy;
6161
}
6262

6363
export interface PolicyUpdateResponse {
64-
policy?: RunnerPolicy;
64+
policy: RunnerPolicy;
6565
}
6666

6767
export type PolicyDeleteResponse = unknown;

src/resources/runners/runners.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -550,6 +550,8 @@ export interface RunnerStatus {
550550
}
551551

552552
export interface RunnerCreateResponse {
553+
runner: Runner;
554+
553555
/**
554556
* deprecated, will be removed. Use exchange_token instead.
555557
*/
@@ -561,12 +563,10 @@ export interface RunnerCreateResponse {
561563
* expires after 24 hours.
562564
*/
563565
exchangeToken?: string;
564-
565-
runner?: Runner;
566566
}
567567

568568
export interface RunnerRetrieveResponse {
569-
runner?: Runner;
569+
runner: Runner;
570570
}
571571

572572
export type RunnerUpdateResponse = unknown;

src/resources/shared.ts

+7-7
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,12 @@ export interface EnvironmentClass {
3737
*/
3838
id: string;
3939

40+
/**
41+
* runner_id is the unique identifier of the runner the environment class belongs
42+
* to
43+
*/
44+
runnerId: string;
45+
4046
/**
4147
* configuration describes the configuration of the environment class
4248
*/
@@ -57,12 +63,6 @@ export interface EnvironmentClass {
5763
* environments.
5864
*/
5965
enabled?: boolean;
60-
61-
/**
62-
* runner_id is the unique identifier of the runner the environment class belongs
63-
* to
64-
*/
65-
runnerId?: string;
6666
}
6767

6868
/**
@@ -146,7 +146,7 @@ export interface Task {
146146
}
147147

148148
export interface TaskExecution {
149-
id?: string;
149+
id: string;
150150

151151
metadata?: TaskExecutionMetadata;
152152

src/resources/users/pats.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ export interface PersonalAccessToken {
379379
export type PatDeleteResponse = unknown;
380380

381381
export interface PatGetResponse {
382-
pat?: PersonalAccessToken;
382+
pat: PersonalAccessToken;
383383
}
384384

385385
export interface PatListParams extends PersonalAccessTokensPageParams {

src/resources/users/users.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ export interface User {
8484
/**
8585
* id is a UUID of the user
8686
*/
87-
id?: string;
87+
id: string;
8888

8989
/**
9090
* avatar_url is a link to the user avatar
@@ -202,7 +202,7 @@ export interface User {
202202
}
203203

204204
export interface UserGetAuthenticatedUserResponse {
205-
user?: User;
205+
user: User;
206206
}
207207

208208
export type UserSetSuspendedResponse = unknown;

src/version.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export const VERSION = '0.2.0'; // x-release-please-version
1+
export const VERSION = '0.3.0'; // x-release-please-version

0 commit comments

Comments
 (0)