Skip to content

Commit 63334d0

Browse files
release: 0.1.2 (#15)
* 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>
1 parent 6a04cdb commit 63334d0

File tree

12 files changed

+54
-64
lines changed

12 files changed

+54
-64
lines changed

.release-please-manifest.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "0.1.1"
2+
".": "0.1.2"
33
}

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

CHANGELOG.md

+9
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
# Changelog
22

3+
## 0.1.2 (2025-02-14)
4+
5+
Full Changelog: [v0.1.1...v0.1.2](https://github.com/gitpod-io/gitpod-sdk-typescript/compare/v0.1.1...v0.1.2)
6+
7+
### Features
8+
9+
* **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))
10+
* **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))
11+
312
## 0.1.1 (2025-02-14)
413

514
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)

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@gitpod/sdk",
3-
"version": "0.1.1",
3+
"version": "0.1.2",
44
"description": "The official TypeScript library for the Gitpod API",
55
"author": "Gitpod <[email protected]>",
66
"types": "dist/index.d.ts",

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

src/resources/users/pats.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ export class Pats extends APIResource {
1111
* ListPersonalAccessTokens
1212
*/
1313
list(
14-
params: PatListParams | null | undefined = {},
14+
params: PatListParams,
1515
options?: RequestOptions,
1616
): PagePromise<PersonalAccessTokensPersonalAccessTokensPage, PersonalAccessToken> {
17-
const { token, pageSize, ...body } = params ?? {};
17+
const { token, pageSize, ...body } = params;
1818
return this._client.getAPIList(
1919
'/gitpod.v1.UserService/ListPersonalAccessTokens',
2020
PersonalAccessTokensPage<PersonalAccessToken>,

src/version.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export const VERSION = '0.1.1'; // x-release-please-version
1+
export const VERSION = '0.1.2'; // x-release-please-version

tests/api-resources/users/pats.test.ts

+1-17
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const client = new Gitpod({
1010
describe('resource pats', () => {
1111
// skipped: tests are disabled for the time being
1212
test.skip('list', async () => {
13-
const responsePromise = client.users.pats.list();
13+
const responsePromise = client.users.pats.list({});
1414
const rawResponse = await responsePromise.asResponse();
1515
expect(rawResponse).toBeInstanceOf(Response);
1616
const response = await responsePromise;
@@ -20,22 +20,6 @@ describe('resource pats', () => {
2020
expect(dataAndResponse.response).toBe(rawResponse);
2121
});
2222

23-
// skipped: tests are disabled for the time being
24-
test.skip('list: request options and params are passed correctly', async () => {
25-
// ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error
26-
await expect(
27-
client.users.pats.list(
28-
{
29-
token: 'token',
30-
pageSize: 0,
31-
filter: { userIds: ['182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e'] },
32-
pagination: { token: 'token', pageSize: 100 },
33-
},
34-
{ path: '/_stainless_unknown_path' },
35-
),
36-
).rejects.toThrow(Gitpod.NotFoundError);
37-
});
38-
3923
// skipped: tests are disabled for the time being
4024
test.skip('delete', async () => {
4125
const responsePromise = client.users.pats.delete({});

0 commit comments

Comments
 (0)