Skip to content

feat(api): manual updates #6

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 13, 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-a058dd6f8c83b32adb6f30bae2db8295468b8ffc391342a960ec6f393c50b83e.yml
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/gitpod%2Fgitpod-988164042da1361feb3d28364c6f14fee775ceab496b9d79d048141c0fa6da19.yml
64 changes: 32 additions & 32 deletions src/resources/accounts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,7 @@ export class Accounts extends APIResource {
export type LoginProvidersLoginProvidersPage = LoginProvidersPage<LoginProvider>;

export interface Account {
id?: string;

avatarUrl?: string;
id: string;

/**
* A Timestamp represents a point in time independent of any time zone or local
Expand Down Expand Up @@ -146,27 +144,17 @@ export interface Account {
* [`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.
*/
createdAt?: string;

email?: string;

joinables?: Array<JoinableOrganization>;

memberships?: Array<AccountMembership>;
createdAt: string;

name?: string;
email: string;

/**
* organization_id is the ID of the organization the account is owned by if it's
* created through custom SSO
*/
organizationId?: string | null;
name: string;

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

/**
* A Timestamp represents a point in time independent of any time zone or local
Expand Down Expand Up @@ -258,70 +246,82 @@ export interface Account {
* [`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.
*/
updatedAt?: string;
updatedAt: string;

avatarUrl?: string;

joinables?: Array<JoinableOrganization>;

memberships?: Array<AccountMembership>;

/**
* organization_id is the ID of the organization the account is owned by if it's
* created through custom SSO
*/
organizationId?: string | null;
}

export interface AccountMembership {
/**
* organization_id is the id of the organization the user is a member of
*/
organizationId?: string;
organizationId: string;

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

/**
* organization_name is the name of the organization the user is a member of
*/
organizationName?: string;
organizationName: string;

/**
* user_id is the ID the user has in the organization
*/
userId?: string;
userId: string;

/**
* user_role is the role the user has in the organization
*/
userRole?: Shared.OrganizationRole;
userRole: Shared.OrganizationRole;
}

export interface JoinableOrganization {
/**
* organization_id is the id of the organization the user can join
*/
organizationId?: string;
organizationId: string;

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

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

export interface LoginProvider {
/**
* login_url is the URL to redirect the browser agent to for login
*/
loginUrl?: string;
loginUrl: string;

/**
* provider is the provider used by this login method, e.g. "github", "google",
* "custom"
*/
provider?: string;
provider: string;
}

export interface AccountRetrieveResponse {
account?: Account;
account: Account;
}

export type AccountDeleteResponse = unknown;
Expand All @@ -330,22 +330,22 @@ export interface AccountGetSSOLoginURLResponse {
/**
* login_url is the URL to redirect the user to for SSO login
*/
loginUrl?: string;
loginUrl: string;
}

export interface AccountRetrieveParams {
empty?: boolean;
}

export interface AccountDeleteParams {
accountId?: string;
accountId: string;
}

export interface AccountGetSSOLoginURLParams {
/**
* email is the email the user wants to login with
*/
email?: string;
email: string;

/**
* return_to is the URL the user will be redirected to after login
Expand Down
21 changes: 18 additions & 3 deletions src/resources/environments/classes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,24 @@ import { RequestOptions } from '../../internal/request-options';

export class Classes extends APIResource {
/**
* ListEnvironmentClasses returns the list of environment classes with runner
* details a user is able to use based on the query buf:lint:ignore
* RPC_REQUEST_RESPONSE_UNIQUE
* Lists available environment classes with their specifications and resource
* limits.
*
* Use this method to understand what types of environments you can create and
* their capabilities. Environment classes define the compute resources and
* features available to your environments.
*
* ### Examples
*
* - List all available classes:
*
* Retrieves a list of all environment classes with their specifications.
*
* ```yaml
* {}
* ```
*
* buf:lint:ignore RPC_REQUEST_RESPONSE_UNIQUE
*/
list(
params: ClassListParams,
Expand Down
Loading