Skip to content

Commit f50f5ad

Browse files
feat(api): manual updates
1 parent b52aa07 commit f50f5ad

28 files changed

+887
-211
lines changed

.stats.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 111
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/gitpod%2Fgitpod-3655d5ad0ac3e228c1519af70dbf3d0bfa3c47a2d06d4cac92a650da051b49a6.yml
3-
openapi_spec_hash: 5dbb5577e6a7cae7db615b1b06c9d23e
4-
config_hash: 719ad411c0ec7402a7a4c1f95515280c
1+
configured_endpoints: 115
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/gitpod%2Fgitpod-d854bc81e0a99171716893e6790a87ba350bb6fc778f8e3244abdd47d5c252c3.yml
3+
openapi_spec_hash: 5189220e4712a7b0cdd35beba2ebb47d
4+
config_hash: 981e43e8b1e3ddabd435d350aeeed417

api.md

+33-2
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ Types:
6868
- <code><a href="./src/resources/environments/environments.ts">EnvironmentRetrieveResponse</a></code>
6969
- <code><a href="./src/resources/environments/environments.ts">EnvironmentUpdateResponse</a></code>
7070
- <code><a href="./src/resources/environments/environments.ts">EnvironmentDeleteResponse</a></code>
71+
- <code><a href="./src/resources/environments/environments.ts">EnvironmentCreateEnvironmentTokenResponse</a></code>
7172
- <code><a href="./src/resources/environments/environments.ts">EnvironmentCreateFromProjectResponse</a></code>
7273
- <code><a href="./src/resources/environments/environments.ts">EnvironmentCreateLogsTokenResponse</a></code>
7374
- <code><a href="./src/resources/environments/environments.ts">EnvironmentMarkActiveResponse</a></code>
@@ -81,6 +82,7 @@ Methods:
8182
- <code title="post /gitpod.v1.EnvironmentService/UpdateEnvironment">client.environments.<a href="./src/resources/environments/environments.ts">update</a>({ ...params }) -> unknown</code>
8283
- <code title="post /gitpod.v1.EnvironmentService/ListEnvironments">client.environments.<a href="./src/resources/environments/environments.ts">list</a>({ ...params }) -> EnvironmentsEnvironmentsPage</code>
8384
- <code title="post /gitpod.v1.EnvironmentService/DeleteEnvironment">client.environments.<a href="./src/resources/environments/environments.ts">delete</a>({ ...params }) -> unknown</code>
85+
- <code title="post /gitpod.v1.EnvironmentService/CreateEnvironmentAccessToken">client.environments.<a href="./src/resources/environments/environments.ts">createEnvironmentToken</a>({ ...params }) -> EnvironmentCreateEnvironmentTokenResponse</code>
8486
- <code title="post /gitpod.v1.EnvironmentService/CreateEnvironmentFromProject">client.environments.<a href="./src/resources/environments/environments.ts">createFromProject</a>({ ...params }) -> EnvironmentCreateFromProjectResponse</code>
8587
- <code title="post /gitpod.v1.EnvironmentService/CreateEnvironmentLogsToken">client.environments.<a href="./src/resources/environments/environments.ts">createLogsToken</a>({ ...params }) -> EnvironmentCreateLogsTokenResponse</code>
8688
- <code title="post /gitpod.v1.EnvironmentService/MarkEnvironmentActive">client.environments.<a href="./src/resources/environments/environments.ts">markActive</a>({ ...params }) -> unknown</code>
@@ -190,6 +192,7 @@ Methods:
190192

191193
Types:
192194

195+
- <code><a href="./src/resources/identity.ts">IDTokenVersion</a></code>
193196
- <code><a href="./src/resources/identity.ts">IdentityExchangeTokenResponse</a></code>
194197
- <code><a href="./src/resources/identity.ts">IdentityGetAuthenticatedIdentityResponse</a></code>
195198
- <code><a href="./src/resources/identity.ts">IdentityGetIDTokenResponse</a></code>
@@ -207,7 +210,7 @@ Types:
207210
- <code><a href="./src/resources/organizations/organizations.ts">InviteDomains</a></code>
208211
- <code><a href="./src/resources/organizations/organizations.ts">Organization</a></code>
209212
- <code><a href="./src/resources/organizations/organizations.ts">OrganizationMember</a></code>
210-
- <code><a href="./src/resources/organizations/organizations.ts">Scope</a></code>
213+
- <code><a href="./src/resources/organizations/organizations.ts">OrganizationTier</a></code>
211214
- <code><a href="./src/resources/organizations/organizations.ts">OrganizationCreateResponse</a></code>
212215
- <code><a href="./src/resources/organizations/organizations.ts">OrganizationRetrieveResponse</a></code>
213216
- <code><a href="./src/resources/organizations/organizations.ts">OrganizationUpdateResponse</a></code>
@@ -221,7 +224,6 @@ Methods:
221224
- <code title="post /gitpod.v1.OrganizationService/CreateOrganization">client.organizations.<a href="./src/resources/organizations/organizations.ts">create</a>({ ...params }) -> OrganizationCreateResponse</code>
222225
- <code title="post /gitpod.v1.OrganizationService/GetOrganization">client.organizations.<a href="./src/resources/organizations/organizations.ts">retrieve</a>({ ...params }) -> OrganizationRetrieveResponse</code>
223226
- <code title="post /gitpod.v1.OrganizationService/UpdateOrganization">client.organizations.<a href="./src/resources/organizations/organizations.ts">update</a>({ ...params }) -> OrganizationUpdateResponse</code>
224-
- <code title="post /gitpod.v1.OrganizationService/ListOrganizations">client.organizations.<a href="./src/resources/organizations/organizations.ts">list</a>({ ...params }) -> OrganizationsOrganizationsPage</code>
225227
- <code title="post /gitpod.v1.OrganizationService/DeleteOrganization">client.organizations.<a href="./src/resources/organizations/organizations.ts">delete</a>({ ...params }) -> unknown</code>
226228
- <code title="post /gitpod.v1.OrganizationService/JoinOrganization">client.organizations.<a href="./src/resources/organizations/organizations.ts">join</a>({ ...params }) -> OrganizationJoinResponse</code>
227229
- <code title="post /gitpod.v1.OrganizationService/LeaveOrganization">client.organizations.<a href="./src/resources/organizations/organizations.ts">leave</a>({ ...params }) -> unknown</code>
@@ -262,6 +264,19 @@ Methods:
262264
- <code title="post /gitpod.v1.OrganizationService/GetOrganizationInvite">client.organizations.invites.<a href="./src/resources/organizations/invites.ts">retrieve</a>({ ...params }) -> InviteRetrieveResponse</code>
263265
- <code title="post /gitpod.v1.OrganizationService/GetOrganizationInviteSummary">client.organizations.invites.<a href="./src/resources/organizations/invites.ts">getSummary</a>({ ...params }) -> InviteGetSummaryResponse</code>
264266

267+
## Policies
268+
269+
Types:
270+
271+
- <code><a href="./src/resources/organizations/policies.ts">OrganizationPolicies</a></code>
272+
- <code><a href="./src/resources/organizations/policies.ts">PolicyRetrieveResponse</a></code>
273+
- <code><a href="./src/resources/organizations/policies.ts">PolicyUpdateResponse</a></code>
274+
275+
Methods:
276+
277+
- <code title="post /gitpod.v1.OrganizationService/GetOrganizationPolicies">client.organizations.policies.<a href="./src/resources/organizations/policies.ts">retrieve</a>({ ...params }) -> PolicyRetrieveResponse</code>
278+
- <code title="post /gitpod.v1.OrganizationService/UpdateOrganizationPolicies">client.organizations.policies.<a href="./src/resources/organizations/policies.ts">update</a>({ ...params }) -> unknown</code>
279+
265280
## SSOConfigurations
266281

267282
Types:
@@ -326,6 +341,8 @@ Methods:
326341

327342
Types:
328343

344+
- <code><a href="./src/resources/runners/runners.ts">LogLevel</a></code>
345+
- <code><a href="./src/resources/runners/runners.ts">MetricsConfiguration</a></code>
329346
- <code><a href="./src/resources/runners/runners.ts">Runner</a></code>
330347
- <code><a href="./src/resources/runners/runners.ts">RunnerCapability</a></code>
331348
- <code><a href="./src/resources/runners/runners.ts">RunnerConfiguration</a></code>
@@ -453,6 +470,7 @@ Methods:
453470
Types:
454471

455472
- <code><a href="./src/resources/secrets.ts">Secret</a></code>
473+
- <code><a href="./src/resources/secrets.ts">SecretScope</a></code>
456474
- <code><a href="./src/resources/secrets.ts">SecretCreateResponse</a></code>
457475
- <code><a href="./src/resources/secrets.ts">SecretDeleteResponse</a></code>
458476
- <code><a href="./src/resources/secrets.ts">SecretGetValueResponse</a></code>
@@ -479,6 +497,19 @@ Methods:
479497
- <code title="post /gitpod.v1.UserService/GetAuthenticatedUser">client.users.<a href="./src/resources/users/users.ts">getAuthenticatedUser</a>({ ...params }) -> UserGetAuthenticatedUserResponse</code>
480498
- <code title="post /gitpod.v1.UserService/SetSuspended">client.users.<a href="./src/resources/users/users.ts">setSuspended</a>({ ...params }) -> unknown</code>
481499

500+
## Dotfiles
501+
502+
Types:
503+
504+
- <code><a href="./src/resources/users/dotfiles.ts">DotfilesConfiguration</a></code>
505+
- <code><a href="./src/resources/users/dotfiles.ts">DotfileGetResponse</a></code>
506+
- <code><a href="./src/resources/users/dotfiles.ts">DotfileSetResponse</a></code>
507+
508+
Methods:
509+
510+
- <code title="post /gitpod.v1.UserService/GetDotfilesConfiguration">client.users.dotfiles.<a href="./src/resources/users/dotfiles.ts">get</a>({ ...params }) -> DotfileGetResponse</code>
511+
- <code title="post /gitpod.v1.UserService/SetDotfilesConfiguration">client.users.dotfiles.<a href="./src/resources/users/dotfiles.ts">set</a>({ ...params }) -> unknown</code>
512+
482513
## Pats
483514

484515
Types:

src/client.ts

+14-14
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,6 @@ import {
3535
LoginProvidersPageResponse,
3636
type MembersPageParams,
3737
MembersPageResponse,
38-
type OrganizationsPageParams,
39-
OrganizationsPageResponse,
4038
type PersonalAccessTokensPageParams,
4139
PersonalAccessTokensPageResponse,
4240
type PoliciesPageParams,
@@ -101,6 +99,7 @@ import {
10199
} from './resources/events';
102100
import { Group, GroupListParams, Groups, GroupsGroupsPage } from './resources/groups';
103101
import {
102+
IDTokenVersion,
104103
Identity,
105104
IdentityExchangeTokenParams,
106105
IdentityExchangeTokenResponse,
@@ -118,6 +117,7 @@ import {
118117
SecretGetValueParams,
119118
SecretGetValueResponse,
120119
SecretListParams,
120+
SecretScope,
121121
SecretUpdateValueParams,
122122
SecretUpdateValueResponse,
123123
Secrets,
@@ -130,6 +130,8 @@ import {
130130
AdmissionLevel,
131131
Environment,
132132
EnvironmentActivitySignal,
133+
EnvironmentCreateEnvironmentTokenParams,
134+
EnvironmentCreateEnvironmentTokenResponse,
133135
EnvironmentCreateFromProjectParams,
134136
EnvironmentCreateFromProjectResponse,
135137
EnvironmentCreateLogsTokenParams,
@@ -168,18 +170,16 @@ import {
168170
OrganizationLeaveParams,
169171
OrganizationLeaveResponse,
170172
OrganizationListMembersParams,
171-
OrganizationListParams,
172173
OrganizationMember,
173174
OrganizationMembersMembersPage,
174175
OrganizationRetrieveParams,
175176
OrganizationRetrieveResponse,
176177
OrganizationSetRoleParams,
177178
OrganizationSetRoleResponse,
179+
OrganizationTier,
178180
OrganizationUpdateParams,
179181
OrganizationUpdateResponse,
180182
Organizations,
181-
OrganizationsOrganizationsPage,
182-
Scope,
183183
} from './resources/organizations/organizations';
184184
import {
185185
EnvironmentInitializer,
@@ -201,6 +201,8 @@ import {
201201
ProjectsProjectsPage,
202202
} from './resources/projects/projects';
203203
import {
204+
LogLevel,
205+
MetricsConfiguration,
204206
Runner,
205207
RunnerCapability,
206208
RunnerCheckAuthenticationForHostParams,
@@ -973,12 +975,6 @@ export declare namespace Gitpod {
973975
export import MembersPage = Pagination.MembersPage;
974976
export { type MembersPageParams as MembersPageParams, type MembersPageResponse as MembersPageResponse };
975977

976-
export import OrganizationsPage = Pagination.OrganizationsPage;
977-
export {
978-
type OrganizationsPageParams as OrganizationsPageParams,
979-
type OrganizationsPageResponse as OrganizationsPageResponse,
980-
};
981-
982978
export import PersonalAccessTokensPage = Pagination.PersonalAccessTokensPage;
983979
export {
984980
type PersonalAccessTokensPageParams as PersonalAccessTokensPageParams,
@@ -1058,6 +1054,7 @@ export declare namespace Gitpod {
10581054
type EnvironmentRetrieveResponse as EnvironmentRetrieveResponse,
10591055
type EnvironmentUpdateResponse as EnvironmentUpdateResponse,
10601056
type EnvironmentDeleteResponse as EnvironmentDeleteResponse,
1057+
type EnvironmentCreateEnvironmentTokenResponse as EnvironmentCreateEnvironmentTokenResponse,
10611058
type EnvironmentCreateFromProjectResponse as EnvironmentCreateFromProjectResponse,
10621059
type EnvironmentCreateLogsTokenResponse as EnvironmentCreateLogsTokenResponse,
10631060
type EnvironmentMarkActiveResponse as EnvironmentMarkActiveResponse,
@@ -1069,6 +1066,7 @@ export declare namespace Gitpod {
10691066
type EnvironmentUpdateParams as EnvironmentUpdateParams,
10701067
type EnvironmentListParams as EnvironmentListParams,
10711068
type EnvironmentDeleteParams as EnvironmentDeleteParams,
1069+
type EnvironmentCreateEnvironmentTokenParams as EnvironmentCreateEnvironmentTokenParams,
10721070
type EnvironmentCreateFromProjectParams as EnvironmentCreateFromProjectParams,
10731071
type EnvironmentCreateLogsTokenParams as EnvironmentCreateLogsTokenParams,
10741072
type EnvironmentMarkActiveParams as EnvironmentMarkActiveParams,
@@ -1096,6 +1094,7 @@ export declare namespace Gitpod {
10961094

10971095
export {
10981096
Identity as Identity,
1097+
type IDTokenVersion as IDTokenVersion,
10991098
type IdentityExchangeTokenResponse as IdentityExchangeTokenResponse,
11001099
type IdentityGetAuthenticatedIdentityResponse as IdentityGetAuthenticatedIdentityResponse,
11011100
type IdentityGetIDTokenResponse as IdentityGetIDTokenResponse,
@@ -1109,20 +1108,18 @@ export declare namespace Gitpod {
11091108
type InviteDomains as InviteDomains,
11101109
type Organization as Organization,
11111110
type OrganizationMember as OrganizationMember,
1112-
type Scope as Scope,
1111+
type OrganizationTier as OrganizationTier,
11131112
type OrganizationCreateResponse as OrganizationCreateResponse,
11141113
type OrganizationRetrieveResponse as OrganizationRetrieveResponse,
11151114
type OrganizationUpdateResponse as OrganizationUpdateResponse,
11161115
type OrganizationDeleteResponse as OrganizationDeleteResponse,
11171116
type OrganizationJoinResponse as OrganizationJoinResponse,
11181117
type OrganizationLeaveResponse as OrganizationLeaveResponse,
11191118
type OrganizationSetRoleResponse as OrganizationSetRoleResponse,
1120-
type OrganizationsOrganizationsPage as OrganizationsOrganizationsPage,
11211119
type OrganizationMembersMembersPage as OrganizationMembersMembersPage,
11221120
type OrganizationCreateParams as OrganizationCreateParams,
11231121
type OrganizationRetrieveParams as OrganizationRetrieveParams,
11241122
type OrganizationUpdateParams as OrganizationUpdateParams,
1125-
type OrganizationListParams as OrganizationListParams,
11261123
type OrganizationDeleteParams as OrganizationDeleteParams,
11271124
type OrganizationJoinParams as OrganizationJoinParams,
11281125
type OrganizationLeaveParams as OrganizationLeaveParams,
@@ -1152,6 +1149,8 @@ export declare namespace Gitpod {
11521149

11531150
export {
11541151
Runners as Runners,
1152+
type LogLevel as LogLevel,
1153+
type MetricsConfiguration as MetricsConfiguration,
11551154
type Runner as Runner,
11561155
type RunnerCapability as RunnerCapability,
11571156
type RunnerConfiguration as RunnerConfiguration,
@@ -1182,6 +1181,7 @@ export declare namespace Gitpod {
11821181
export {
11831182
Secrets as Secrets,
11841183
type Secret as Secret,
1184+
type SecretScope as SecretScope,
11851185
type SecretCreateResponse as SecretCreateResponse,
11861186
type SecretDeleteResponse as SecretDeleteResponse,
11871187
type SecretGetValueResponse as SecretGetValueResponse,

src/core/pagination.ts

-55
Original file line numberDiff line numberDiff line change
@@ -608,61 +608,6 @@ export class MembersPage<Item> extends AbstractPage<Item> implements MembersPage
608608
}
609609
}
610610

611-
export interface OrganizationsPageResponse<Item> {
612-
organizations: Array<Item>;
613-
614-
pagination: OrganizationsPageResponse.Pagination;
615-
}
616-
617-
export namespace OrganizationsPageResponse {
618-
export interface Pagination {
619-
nextToken?: string;
620-
}
621-
}
622-
623-
export interface OrganizationsPageParams {
624-
pageSize?: number;
625-
626-
token?: string;
627-
}
628-
629-
export class OrganizationsPage<Item> extends AbstractPage<Item> implements OrganizationsPageResponse<Item> {
630-
organizations: Array<Item>;
631-
632-
pagination: OrganizationsPageResponse.Pagination;
633-
634-
constructor(
635-
client: Gitpod,
636-
response: Response,
637-
body: OrganizationsPageResponse<Item>,
638-
options: FinalRequestOptions,
639-
) {
640-
super(client, response, body, options);
641-
642-
this.organizations = body.organizations || [];
643-
this.pagination = body.pagination || {};
644-
}
645-
646-
getPaginatedItems(): Item[] {
647-
return this.organizations ?? [];
648-
}
649-
650-
nextPageRequestOptions(): PageRequestOptions | null {
651-
const cursor = this.pagination?.nextToken;
652-
if (!cursor) {
653-
return null;
654-
}
655-
656-
return {
657-
...this.options,
658-
query: {
659-
...maybeObj(this.options.query),
660-
token: cursor,
661-
},
662-
};
663-
}
664-
}
665-
666611
export interface PersonalAccessTokensPageResponse<Item> {
667612
pagination: PersonalAccessTokensPageResponse.Pagination;
668613

src/resources/editors.ts

+30-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ export class Editors extends APIResource {
2929
}
3030

3131
/**
32-
* Lists all available code editors.
32+
* Lists all available code editors, optionally filtered to those allowed in an
33+
* organization.
3334
*
3435
* Use this method to:
3536
*
@@ -48,6 +49,18 @@ export class Editors extends APIResource {
4849
* pagination:
4950
* pageSize: 20
5051
* ```
52+
*
53+
* - List editors available to the organization:
54+
*
55+
* Shows all available editors that are allowed by the policies enforced in the
56+
* organization with pagination.
57+
*
58+
* ```yaml
59+
* pagination:
60+
* pageSize: 20
61+
* filter:
62+
* allowedByPolicy: true
63+
* ```
5164
*/
5265
list(params: EditorListParams, options?: RequestOptions): PagePromise<EditorsEditorsPage, Editor> {
5366
const { token, pageSize, ...body } = params;
@@ -126,13 +139,29 @@ export interface EditorRetrieveParams {
126139
}
127140

128141
export interface EditorListParams extends EditorsPageParams {
142+
/**
143+
* Body param: filter contains the filter options for listing editors
144+
*/
145+
filter?: EditorListParams.Filter;
146+
129147
/**
130148
* Body param: pagination contains the pagination options for listing environments
131149
*/
132150
pagination?: EditorListParams.Pagination;
133151
}
134152

135153
export namespace EditorListParams {
154+
/**
155+
* filter contains the filter options for listing editors
156+
*/
157+
export interface Filter {
158+
/**
159+
* allowed_by_policy filters the response to only editors that are allowed by the
160+
* policies enforced in the organization
161+
*/
162+
allowedByPolicy?: boolean;
163+
}
164+
136165
/**
137166
* pagination contains the pagination options for listing environments
138167
*/

src/resources/environments/automations/services.ts

+11
Original file line numberDiff line numberDiff line change
@@ -393,6 +393,12 @@ export interface ServiceStatus {
393393
*/
394394
logUrl?: string;
395395

396+
/**
397+
* output contains the output of the service. setting an output field to empty
398+
* string will unset it.
399+
*/
400+
output?: Record<string, string>;
401+
396402
/**
397403
* phase is the current phase of the service.
398404
*/
@@ -507,6 +513,11 @@ export namespace ServiceUpdateParams {
507513

508514
logUrl?: string | null;
509515

516+
/**
517+
* setting an output field to empty string will unset it.
518+
*/
519+
output?: Record<string, string>;
520+
510521
phase?: ServicesAPI.ServicePhase | null;
511522

512523
session?: string | null;

0 commit comments

Comments
 (0)