Skip to content

Commit 78dba3a

Browse files
feat(api): manual updates (#6)
1 parent a0e6a16 commit 78dba3a

15 files changed

+667
-194
lines changed

.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-a058dd6f8c83b32adb6f30bae2db8295468b8ffc391342a960ec6f393c50b83e.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/gitpod%2Fgitpod-988164042da1361feb3d28364c6f14fee775ceab496b9d79d048141c0fa6da19.yml

src/resources/accounts.ts

+32-32
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,7 @@ export class Accounts extends APIResource {
5252
export type LoginProvidersLoginProvidersPage = LoginProvidersPage<LoginProvider>;
5353

5454
export interface Account {
55-
id?: string;
56-
57-
avatarUrl?: string;
55+
id: string;
5856

5957
/**
6058
* A Timestamp represents a point in time independent of any time zone or local
@@ -146,27 +144,17 @@ export interface Account {
146144
* [`ISODateTimeFormat.dateTime()`](<http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime()>)
147145
* to obtain a formatter capable of generating timestamps in this format.
148146
*/
149-
createdAt?: string;
150-
151-
email?: string;
152-
153-
joinables?: Array<JoinableOrganization>;
154-
155-
memberships?: Array<AccountMembership>;
147+
createdAt: string;
156148

157-
name?: string;
149+
email: string;
158150

159-
/**
160-
* organization_id is the ID of the organization the account is owned by if it's
161-
* created through custom SSO
162-
*/
163-
organizationId?: string | null;
151+
name: string;
164152

165153
/**
166154
* public_email_provider is true if the email for the Account matches a known
167155
* public email provider
168156
*/
169-
publicEmailProvider?: boolean;
157+
publicEmailProvider: boolean;
170158

171159
/**
172160
* A Timestamp represents a point in time independent of any time zone or local
@@ -258,70 +246,82 @@ export interface Account {
258246
* [`ISODateTimeFormat.dateTime()`](<http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime()>)
259247
* to obtain a formatter capable of generating timestamps in this format.
260248
*/
261-
updatedAt?: string;
249+
updatedAt: string;
250+
251+
avatarUrl?: string;
252+
253+
joinables?: Array<JoinableOrganization>;
254+
255+
memberships?: Array<AccountMembership>;
256+
257+
/**
258+
* organization_id is the ID of the organization the account is owned by if it's
259+
* created through custom SSO
260+
*/
261+
organizationId?: string | null;
262262
}
263263

264264
export interface AccountMembership {
265265
/**
266266
* organization_id is the id of the organization the user is a member of
267267
*/
268-
organizationId?: string;
268+
organizationId: string;
269269

270270
/**
271271
* organization_name is the member count of the organization the user is a member
272272
* of
273273
*/
274-
organizationMemberCount?: number;
274+
organizationMemberCount: number;
275275

276276
/**
277277
* organization_name is the name of the organization the user is a member of
278278
*/
279-
organizationName?: string;
279+
organizationName: string;
280280

281281
/**
282282
* user_id is the ID the user has in the organization
283283
*/
284-
userId?: string;
284+
userId: string;
285285

286286
/**
287287
* user_role is the role the user has in the organization
288288
*/
289-
userRole?: Shared.OrganizationRole;
289+
userRole: Shared.OrganizationRole;
290290
}
291291

292292
export interface JoinableOrganization {
293293
/**
294294
* organization_id is the id of the organization the user can join
295295
*/
296-
organizationId?: string;
296+
organizationId: string;
297297

298298
/**
299299
* organization_member_count is the member count of the organization the user can
300300
* join
301301
*/
302-
organizationMemberCount?: number;
302+
organizationMemberCount: number;
303303

304304
/**
305305
* organization_name is the name of the organization the user can join
306306
*/
307-
organizationName?: string;
307+
organizationName: string;
308308
}
309309

310310
export interface LoginProvider {
311311
/**
312312
* login_url is the URL to redirect the browser agent to for login
313313
*/
314-
loginUrl?: string;
314+
loginUrl: string;
315315

316316
/**
317317
* provider is the provider used by this login method, e.g. "github", "google",
318318
* "custom"
319319
*/
320-
provider?: string;
320+
provider: string;
321321
}
322322

323323
export interface AccountRetrieveResponse {
324-
account?: Account;
324+
account: Account;
325325
}
326326

327327
export type AccountDeleteResponse = unknown;
@@ -330,22 +330,22 @@ export interface AccountGetSSOLoginURLResponse {
330330
/**
331331
* login_url is the URL to redirect the user to for SSO login
332332
*/
333-
loginUrl?: string;
333+
loginUrl: string;
334334
}
335335

336336
export interface AccountRetrieveParams {
337337
empty?: boolean;
338338
}
339339

340340
export interface AccountDeleteParams {
341-
accountId?: string;
341+
accountId: string;
342342
}
343343

344344
export interface AccountGetSSOLoginURLParams {
345345
/**
346346
* email is the email the user wants to login with
347347
*/
348-
email?: string;
348+
email: string;
349349

350350
/**
351351
* return_to is the URL the user will be redirected to after login

src/resources/environments/classes.ts

+18-3
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,24 @@ import { RequestOptions } from '../../internal/request-options';
99

1010
export class Classes extends APIResource {
1111
/**
12-
* ListEnvironmentClasses returns the list of environment classes with runner
13-
* details a user is able to use based on the query buf:lint:ignore
14-
* RPC_REQUEST_RESPONSE_UNIQUE
12+
* Lists available environment classes with their specifications and resource
13+
* limits.
14+
*
15+
* Use this method to understand what types of environments you can create and
16+
* their capabilities. Environment classes define the compute resources and
17+
* features available to your environments.
18+
*
19+
* ### Examples
20+
*
21+
* - List all available classes:
22+
*
23+
* Retrieves a list of all environment classes with their specifications.
24+
*
25+
* ```yaml
26+
* {}
27+
* ```
28+
*
29+
* buf:lint:ignore RPC_REQUEST_RESPONSE_UNIQUE
1530
*/
1631
list(
1732
params: ClassListParams,

0 commit comments

Comments
 (0)