Skip to content

feat(api): manual updates #24

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 18, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -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
4 changes: 2 additions & 2 deletions src/resources/environments/automations/services.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/resources/environments/automations/tasks/executions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ export class Executions extends APIResource {
}

export interface ExecutionRetrieveResponse {
taskExecution?: Shared.TaskExecution;
taskExecution: Shared.TaskExecution;
}

export type ExecutionStopResponse = unknown;
Expand Down
6 changes: 3 additions & 3 deletions src/resources/environments/automations/tasks/tasks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -218,19 +218,19 @@ 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;

export type TaskDeleteResponse = unknown;

export interface TaskStartResponse {
taskExecution?: Shared.TaskExecution;
taskExecution: Shared.TaskExecution;
}

export interface TaskCreateParams {
Expand Down
8 changes: 4 additions & 4 deletions src/resources/environments/environments.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export class HostAuthenticationTokens extends APIResource {
export type HostAuthenticationTokensTokensPage = TokensPage<HostAuthenticationToken>;

export interface HostAuthenticationToken {
id?: string;
id: string;

/**
* A Timestamp represents a point in time independent of any time zone or local
Expand Down Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions src/resources/runners/policies.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
6 changes: 3 additions & 3 deletions src/resources/runners/runners.ts
Original file line number Diff line number Diff line change
Expand Up @@ -550,6 +550,8 @@ export interface RunnerStatus {
}

export interface RunnerCreateResponse {
runner: Runner;

/**
* deprecated, will be removed. Use exchange_token instead.
*/
Expand All @@ -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;
Expand Down
14 changes: 7 additions & 7 deletions src/resources/shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand All @@ -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;
}

/**
Expand Down Expand Up @@ -146,7 +146,7 @@ export interface Task {
}

export interface TaskExecution {
id?: string;
id: string;

metadata?: TaskExecutionMetadata;

Expand Down
2 changes: 1 addition & 1 deletion src/resources/users/pats.ts
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ export interface PersonalAccessToken {
export type PatDeleteResponse = unknown;

export interface PatGetResponse {
pat?: PersonalAccessToken;
pat: PersonalAccessToken;
}

export interface PatListParams extends PersonalAccessTokensPageParams {
Expand Down
2 changes: 1 addition & 1 deletion src/resources/users/users.ts
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ export interface User {
}

export interface UserGetAuthenticatedUserResponse {
user?: User;
user: User;
}

export type UserSetSuspendedResponse = unknown;
Expand Down