Skip to content

Commit 75c7fca

Browse files
feat(api): manual updates (#16)
1 parent 7c398fb commit 75c7fca

File tree

6 files changed

+39
-42
lines changed

6 files changed

+39
-42
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-6860d955bb7b497681b9d1ae03c10c51a458c68f5011efc648ae9d049250d6c7.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/gitpod%2Fgitpod-27f7bd641de1e4657ad8ce84a456fe0c5e8f1e14779bf1f567a4bc8667eba4da.yml

src/resources/accounts.ts

+23-22
Original file line numberDiff line numberDiff line change
@@ -150,12 +150,6 @@ export interface Account {
150150

151151
name: string;
152152

153-
/**
154-
* public_email_provider is true if the email for the Account matches a known
155-
* public email provider
156-
*/
157-
publicEmailProvider: boolean;
158-
159153
/**
160154
* A Timestamp represents a point in time independent of any time zone or local
161155
* calendar, encoded as a count of seconds and fractions of seconds at nanosecond
@@ -259,6 +253,12 @@ export interface Account {
259253
* created through custom SSO
260254
*/
261255
organizationId?: string | null;
256+
257+
/**
258+
* public_email_provider is true if the email for the Account matches a known
259+
* public email provider
260+
*/
261+
publicEmailProvider?: boolean;
262262
}
263263

264264
export interface AccountMembership {
@@ -267,12 +267,6 @@ export interface AccountMembership {
267267
*/
268268
organizationId: string;
269269

270-
/**
271-
* organization_name is the member count of the organization the user is a member
272-
* of
273-
*/
274-
organizationMemberCount: number;
275-
276270
/**
277271
* organization_name is the name of the organization the user is a member of
278272
*/
@@ -287,6 +281,12 @@ export interface AccountMembership {
287281
* user_role is the role the user has in the organization
288282
*/
289283
userRole: Shared.OrganizationRole;
284+
285+
/**
286+
* organization_name is the member count of the organization the user is a member
287+
* of
288+
*/
289+
organizationMemberCount?: number;
290290
}
291291

292292
export interface JoinableOrganization {
@@ -295,29 +295,30 @@ export interface JoinableOrganization {
295295
*/
296296
organizationId: string;
297297

298-
/**
299-
* organization_member_count is the member count of the organization the user can
300-
* join
301-
*/
302-
organizationMemberCount: number;
303-
304298
/**
305299
* organization_name is the name of the organization the user can join
306300
*/
307301
organizationName: string;
308-
}
309302

310-
export interface LoginProvider {
311303
/**
312-
* login_url is the URL to redirect the browser agent to for login
304+
* organization_member_count is the member count of the organization the user can
305+
* join
313306
*/
314-
loginUrl: string;
307+
organizationMemberCount?: number;
308+
}
315309

310+
export interface LoginProvider {
316311
/**
317312
* provider is the provider used by this login method, e.g. "github", "google",
318313
* "custom"
319314
*/
320315
provider: string;
316+
317+
/**
318+
* login_url is the URL to redirect the browser agent to for login, when provider
319+
* is "custom"
320+
*/
321+
loginUrl?: string;
321322
}
322323

323324
export interface AccountRetrieveResponse {

src/resources/editors.ts

+6-6
Original file line numberDiff line numberDiff line change
@@ -39,17 +39,17 @@ export type EditorsEditorsPage = EditorsPage<Editor>;
3939
export interface Editor {
4040
id: string;
4141

42-
alias: string;
43-
44-
iconUrl: string;
45-
4642
installationInstructions: string;
4743

4844
name: string;
4945

50-
shortDescription: string;
51-
5246
urlTemplate: string;
47+
48+
alias?: string;
49+
50+
iconUrl?: string;
51+
52+
shortDescription?: string;
5353
}
5454

5555
export interface EditorRetrieveResponse {

src/resources/organizations/domain-verifications.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ export interface DomainVerification {
160160
* [`ISODateTimeFormat.dateTime()`](<http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime()>)
161161
* to obtain a formatter capable of generating timestamps in this format.
162162
*/
163-
verifiedAt: string;
163+
verifiedAt?: string;
164164
}
165165

166166
export type DomainVerificationState =

src/resources/organizations/sso-configurations.ts

+7-7
Original file line numberDiff line numberDiff line change
@@ -66,13 +66,6 @@ export interface SSOConfiguration {
6666
*/
6767
id: string;
6868

69-
/**
70-
* client_id is the client ID of the OIDC application set on the IdP
71-
*/
72-
clientId: string;
73-
74-
emailDomain: string;
75-
7669
/**
7770
* issuer_url is the URL of the IdP issuer
7871
*/
@@ -94,6 +87,13 @@ export interface SSOConfiguration {
9487
* claims are key/value pairs that defines a mapping of claims issued by the IdP.
9588
*/
9689
claims?: Record<string, string>;
90+
91+
/**
92+
* client_id is the client ID of the OIDC application set on the IdP
93+
*/
94+
clientId?: string;
95+
96+
emailDomain?: string;
9797
}
9898

9999
export type SSOConfigurationState =

src/resources/secrets.ts

+1-5
Original file line numberDiff line numberDiff line change
@@ -286,11 +286,7 @@ export type SecretUpdateValueResponse = unknown;
286286
export interface SecretCreateParams {
287287
/**
288288
* secret will be mounted as a docker config in the environment VM, mount will have
289-
* the docker host value must be a valid registry hostname with optional port:
290-
*
291-
* ```
292-
* this.matches('^[a-zA-Z0-9][a-zA-Z0-9.-]*[a-zA-Z0-9](:[0-9]+)?$')
293-
* ```
289+
* the docker registry host
294290
*/
295291
containerRegistryBasicAuthHost?: string;
296292

0 commit comments

Comments
 (0)