Skip to content

feat(api): manual updates #16

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 14, 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-6860d955bb7b497681b9d1ae03c10c51a458c68f5011efc648ae9d049250d6c7.yml
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/gitpod%2Fgitpod-27f7bd641de1e4657ad8ce84a456fe0c5e8f1e14779bf1f567a4bc8667eba4da.yml
45 changes: 23 additions & 22 deletions src/resources/accounts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,12 +150,6 @@ export interface Account {

name: string;

/**
* public_email_provider is true if the email for the Account matches a known
* public email provider
*/
publicEmailProvider: boolean;

/**
* A Timestamp represents a point in time independent of any time zone or local
* calendar, encoded as a count of seconds and fractions of seconds at nanosecond
Expand Down Expand Up @@ -259,6 +253,12 @@ export interface Account {
* created through custom SSO
*/
organizationId?: string | null;

/**
* public_email_provider is true if the email for the Account matches a known
* public email provider
*/
publicEmailProvider?: boolean;
}

export interface AccountMembership {
Expand All @@ -267,12 +267,6 @@ export interface AccountMembership {
*/
organizationId: string;

/**
* organization_name is the member count of the organization the user is a member
* of
*/
organizationMemberCount: number;

/**
* organization_name is the name of the organization the user is a member of
*/
Expand All @@ -287,6 +281,12 @@ export interface AccountMembership {
* user_role is the role the user has in the organization
*/
userRole: Shared.OrganizationRole;

/**
* organization_name is the member count of the organization the user is a member
* of
*/
organizationMemberCount?: number;
}

export interface JoinableOrganization {
Expand All @@ -295,29 +295,30 @@ export interface JoinableOrganization {
*/
organizationId: string;

/**
* organization_member_count is the member count of the organization the user can
* join
*/
organizationMemberCount: number;

/**
* organization_name is the name of the organization the user can join
*/
organizationName: string;
}

export interface LoginProvider {
/**
* login_url is the URL to redirect the browser agent to for login
* organization_member_count is the member count of the organization the user can
* join
*/
loginUrl: string;
organizationMemberCount?: number;
}

export interface LoginProvider {
/**
* provider is the provider used by this login method, e.g. "github", "google",
* "custom"
*/
provider: string;

/**
* login_url is the URL to redirect the browser agent to for login, when provider
* is "custom"
*/
loginUrl?: string;
}

export interface AccountRetrieveResponse {
Expand Down
12 changes: 6 additions & 6 deletions src/resources/editors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,17 +39,17 @@ export type EditorsEditorsPage = EditorsPage<Editor>;
export interface Editor {
id: string;

alias: string;

iconUrl: string;

installationInstructions: string;

name: string;

shortDescription: string;

urlTemplate: string;

alias?: string;

iconUrl?: string;

shortDescription?: string;
}

export interface EditorRetrieveResponse {
Expand Down
2 changes: 1 addition & 1 deletion src/resources/organizations/domain-verifications.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ export interface DomainVerification {
* [`ISODateTimeFormat.dateTime()`](<http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime()>)
* to obtain a formatter capable of generating timestamps in this format.
*/
verifiedAt: string;
verifiedAt?: string;
}

export type DomainVerificationState =
Expand Down
14 changes: 7 additions & 7 deletions src/resources/organizations/sso-configurations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,6 @@ export interface SSOConfiguration {
*/
id: string;

/**
* client_id is the client ID of the OIDC application set on the IdP
*/
clientId: string;

emailDomain: string;

/**
* issuer_url is the URL of the IdP issuer
*/
Expand All @@ -94,6 +87,13 @@ export interface SSOConfiguration {
* claims are key/value pairs that defines a mapping of claims issued by the IdP.
*/
claims?: Record<string, string>;

/**
* client_id is the client ID of the OIDC application set on the IdP
*/
clientId?: string;

emailDomain?: string;
}

export type SSOConfigurationState =
Expand Down
6 changes: 1 addition & 5 deletions src/resources/secrets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -286,11 +286,7 @@ export type SecretUpdateValueResponse = unknown;
export interface SecretCreateParams {
/**
* secret will be mounted as a docker config in the environment VM, mount will have
* the docker host value must be a valid registry hostname with optional port:
*
* ```
* this.matches('^[a-zA-Z0-9][a-zA-Z0-9.-]*[a-zA-Z0-9](:[0-9]+)?$')
* ```
* the docker registry host
*/
containerRegistryBasicAuthHost?: string;

Expand Down