diff --git a/.release-please-manifest.json b/.release-please-manifest.json index a915e8c..001eb2c 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.1.1" + ".": "0.1.2" } diff --git a/.stats.yml b/.stats.yml index d569fcb..4f2abc7 100644 --- a/.stats.yml +++ b/.stats.yml @@ -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 diff --git a/CHANGELOG.md b/CHANGELOG.md index 58d1336..2a9eb6b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/package.json b/package.json index 83aa954..bdcbe73 100644 --- a/package.json +++ b/package.json @@ -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 ", "types": "dist/index.d.ts", diff --git a/src/resources/accounts.ts b/src/resources/accounts.ts index abd7aac..1b70feb 100644 --- a/src/resources/accounts.ts +++ b/src/resources/accounts.ts @@ -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 { diff --git a/src/resources/editors.ts b/src/resources/editors.ts index 58913f3..ac5e5de 100644 --- a/src/resources/editors.ts +++ b/src/resources/editors.ts @@ -39,17 +39,17 @@ export type EditorsEditorsPage = EditorsPage; 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 { diff --git a/src/resources/organizations/domain-verifications.ts b/src/resources/organizations/domain-verifications.ts index 0f242e7..08c5798 100644 --- a/src/resources/organizations/domain-verifications.ts +++ b/src/resources/organizations/domain-verifications.ts @@ -160,7 +160,7 @@ export interface DomainVerification { * [`ISODateTimeFormat.dateTime()`]() * to obtain a formatter capable of generating timestamps in this format. */ - verifiedAt: string; + verifiedAt?: string; } export type DomainVerificationState = diff --git a/src/resources/organizations/sso-configurations.ts b/src/resources/organizations/sso-configurations.ts index 9705cf5..588e09c 100644 --- a/src/resources/organizations/sso-configurations.ts +++ b/src/resources/organizations/sso-configurations.ts @@ -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; + + /** + * client_id is the client ID of the OIDC application set on the IdP + */ + clientId?: string; + + emailDomain?: string; } export type SSOConfigurationState = diff --git a/src/resources/secrets.ts b/src/resources/secrets.ts index 830b1f9..38d9729 100644 --- a/src/resources/secrets.ts +++ b/src/resources/secrets.ts @@ -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; diff --git a/src/resources/users/pats.ts b/src/resources/users/pats.ts index 8ea91af..dcb49b9 100644 --- a/src/resources/users/pats.ts +++ b/src/resources/users/pats.ts @@ -11,10 +11,10 @@ export class Pats extends APIResource { * ListPersonalAccessTokens */ list( - params: PatListParams | null | undefined = {}, + params: PatListParams, options?: RequestOptions, ): PagePromise { - const { token, pageSize, ...body } = params ?? {}; + const { token, pageSize, ...body } = params; return this._client.getAPIList( '/gitpod.v1.UserService/ListPersonalAccessTokens', PersonalAccessTokensPage, diff --git a/src/version.ts b/src/version.ts index b322647..5447861 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1 +1 @@ -export const VERSION = '0.1.1'; // x-release-please-version +export const VERSION = '0.1.2'; // x-release-please-version diff --git a/tests/api-resources/users/pats.test.ts b/tests/api-resources/users/pats.test.ts index 31f99a1..cb8544c 100644 --- a/tests/api-resources/users/pats.test.ts +++ b/tests/api-resources/users/pats.test.ts @@ -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({});