Skip to content

Commit

Permalink
release: 0.1.2 (#15)
Browse files Browse the repository at this point in the history
* feat(api): manual updates (#14)

* feat(api): manual updates (#16)

* release: 0.1.2

---------

Co-authored-by: stainless-app[bot] <142633134+stainless-app[bot]@users.noreply.github.com>
  • Loading branch information
stainless-app[bot] authored Feb 14, 2025
1 parent 6a04cdb commit 63334d0
Showing 12 changed files with 54 additions and 64 deletions.
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.1.1"
".": "0.1.2"
}
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-4e3ac088751d52ff03184c39a009d093a7457f4e25dc489a938fe25ad5d83d98.yml
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/gitpod%2Fgitpod-27f7bd641de1e4657ad8ce84a456fe0c5e8f1e14779bf1f567a4bc8667eba4da.yml
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# Changelog

## 0.1.2 (2025-02-14)

Full Changelog: [v0.1.1...v0.1.2](https://github.com/gitpod-io/gitpod-sdk-typescript/compare/v0.1.1...v0.1.2)

### Features

* **api:** manual updates ([#14](https://github.com/gitpod-io/gitpod-sdk-typescript/issues/14)) ([7c398fb](https://github.com/gitpod-io/gitpod-sdk-typescript/commit/7c398fb2159022f99e478d87599da377bfb070db))
* **api:** manual updates ([#16](https://github.com/gitpod-io/gitpod-sdk-typescript/issues/16)) ([75c7fca](https://github.com/gitpod-io/gitpod-sdk-typescript/commit/75c7fcaecd06e9f190a9246f9c055168a9f3de11))

## 0.1.1 (2025-02-14)

Full Changelog: [v0.1.0-alpha.4...v0.1.1](https://github.com/gitpod-io/gitpod-sdk-typescript/compare/v0.1.0-alpha.4...v0.1.1)
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@gitpod/sdk",
"version": "0.1.1",
"version": "0.1.2",
"description": "The official TypeScript library for the Gitpod API",
"author": "Gitpod <dev-feedback@gitpod.com>",
"types": "dist/index.d.ts",
45 changes: 23 additions & 22 deletions src/resources/accounts.ts
Original file line number Diff line number Diff line change
@@ -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
@@ -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 {
@@ -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
*/
@@ -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 {
@@ -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 {
12 changes: 6 additions & 6 deletions src/resources/editors.ts
Original file line number Diff line number Diff line change
@@ -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 {
2 changes: 1 addition & 1 deletion src/resources/organizations/domain-verifications.ts
Original file line number Diff line number Diff line change
@@ -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 =
14 changes: 7 additions & 7 deletions src/resources/organizations/sso-configurations.ts
Original file line number Diff line number Diff line change
@@ -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
*/
@@ -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 =
6 changes: 1 addition & 5 deletions src/resources/secrets.ts
Original file line number Diff line number Diff line change
@@ -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;

4 changes: 2 additions & 2 deletions src/resources/users/pats.ts
Original file line number Diff line number Diff line change
@@ -11,10 +11,10 @@ export class Pats extends APIResource {
* ListPersonalAccessTokens
*/
list(
params: PatListParams | null | undefined = {},
params: PatListParams,
options?: RequestOptions,
): PagePromise<PersonalAccessTokensPersonalAccessTokensPage, PersonalAccessToken> {
const { token, pageSize, ...body } = params ?? {};
const { token, pageSize, ...body } = params;
return this._client.getAPIList(
'/gitpod.v1.UserService/ListPersonalAccessTokens',
PersonalAccessTokensPage<PersonalAccessToken>,
2 changes: 1 addition & 1 deletion src/version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const VERSION = '0.1.1'; // x-release-please-version
export const VERSION = '0.1.2'; // x-release-please-version
18 changes: 1 addition & 17 deletions tests/api-resources/users/pats.test.ts
Original file line number Diff line number Diff line change
@@ -10,7 +10,7 @@ const client = new Gitpod({
describe('resource pats', () => {
// skipped: tests are disabled for the time being
test.skip('list', async () => {
const responsePromise = client.users.pats.list();
const responsePromise = client.users.pats.list({});
const rawResponse = await responsePromise.asResponse();
expect(rawResponse).toBeInstanceOf(Response);
const response = await responsePromise;
@@ -20,22 +20,6 @@ describe('resource pats', () => {
expect(dataAndResponse.response).toBe(rawResponse);
});

// skipped: tests are disabled for the time being
test.skip('list: request options and params are passed correctly', async () => {
// ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error
await expect(
client.users.pats.list(
{
token: 'token',
pageSize: 0,
filter: { userIds: ['182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e'] },
pagination: { token: 'token', pageSize: 100 },
},
{ path: '/_stainless_unknown_path' },
),
).rejects.toThrow(Gitpod.NotFoundError);
});

// skipped: tests are disabled for the time being
test.skip('delete', async () => {
const responsePromise = client.users.pats.delete({});

0 comments on commit 63334d0

Please sign in to comment.