Skip to content

Commit d05435d

Browse files
release: 0.1.1 (#29)
* codegen metadata * codegen metadata * codegen metadata * feat(api): manual updates (#28) * release: 0.1.1 --------- Co-authored-by: stainless-app[bot] <142633134+stainless-app[bot]@users.noreply.github.com>
1 parent f49e593 commit d05435d

12 files changed

+54
-49
lines changed

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "0.1.0-alpha.3"
2+
".": "0.1.1"
33
}

.stats.yml

Lines changed: 1 addition & 1 deletion
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-988164042da1361feb3d28364c6f14fee775ceab496b9d79d048141c0fa6da19.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/gitpod%2Fgitpod-27f7bd641de1e4657ad8ce84a456fe0c5e8f1e14779bf1f567a4bc8667eba4da.yml

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Changelog
22

3+
## 0.1.1 (2025-02-14)
4+
5+
Full Changelog: [v0.1.0-alpha.3...v0.1.1](https://github.com/gitpod-io/gitpod-sdk-go/compare/v0.1.0-alpha.3...v0.1.1)
6+
7+
### Features
8+
9+
* **api:** manual updates ([#28](https://github.com/gitpod-io/gitpod-sdk-go/issues/28)) ([7fd8f6c](https://github.com/gitpod-io/gitpod-sdk-go/commit/7fd8f6c7ef83ba84bbca6e5e9cf052ccf0c6cc4c))
10+
311
## 0.1.0-alpha.3 (2025-02-13)
412

513
Full Changelog: [v0.1.0-alpha.2...v0.1.0-alpha.3](https://github.com/gitpod-io/gitpod-sdk-go/compare/v0.1.0-alpha.2...v0.1.0-alpha.3)

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Or to pin the version:
2424
<!-- x-release-please-start-version -->
2525

2626
```sh
27-
go get -u 'github.com/gitpod-io/[email protected].0-alpha.3'
27+
go get -u 'github.com/gitpod-io/[email protected].1'
2828
```
2929

3030
<!-- x-release-please-end -->

account.go

Lines changed: 21 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -179,9 +179,6 @@ type Account struct {
179179
CreatedAt time.Time `json:"createdAt,required" format:"date-time"`
180180
Email string `json:"email,required"`
181181
Name string `json:"name,required"`
182-
// public_email_provider is true if the email for the Account matches a known
183-
// public email provider
184-
PublicEmailProvider bool `json:"publicEmailProvider,required"`
185182
// A Timestamp represents a point in time independent of any time zone or local
186183
// calendar, encoded as a count of seconds and fractions of seconds at nanosecond
187184
// resolution. The count is relative to an epoch at UTC midnight on January 1,
@@ -276,8 +273,11 @@ type Account struct {
276273
Memberships []AccountMembership `json:"memberships"`
277274
// organization_id is the ID of the organization the account is owned by if it's
278275
// created through custom SSO
279-
OrganizationID string `json:"organizationId,nullable"`
280-
JSON accountJSON `json:"-"`
276+
OrganizationID string `json:"organizationId,nullable"`
277+
// public_email_provider is true if the email for the Account matches a known
278+
// public email provider
279+
PublicEmailProvider bool `json:"publicEmailProvider"`
280+
JSON accountJSON `json:"-"`
281281
}
282282

283283
// accountJSON contains the JSON metadata for the struct [Account]
@@ -286,12 +286,12 @@ type accountJSON struct {
286286
CreatedAt apijson.Field
287287
Email apijson.Field
288288
Name apijson.Field
289-
PublicEmailProvider apijson.Field
290289
UpdatedAt apijson.Field
291290
AvatarURL apijson.Field
292291
Joinables apijson.Field
293292
Memberships apijson.Field
294293
OrganizationID apijson.Field
294+
PublicEmailProvider apijson.Field
295295
raw string
296296
ExtraFields map[string]apijson.Field
297297
}
@@ -307,26 +307,26 @@ func (r accountJSON) RawJSON() string {
307307
type AccountMembership struct {
308308
// organization_id is the id of the organization the user is a member of
309309
OrganizationID string `json:"organizationId,required" format:"uuid"`
310-
// organization_name is the member count of the organization the user is a member
311-
// of
312-
OrganizationMemberCount int64 `json:"organizationMemberCount,required"`
313310
// organization_name is the name of the organization the user is a member of
314311
OrganizationName string `json:"organizationName,required"`
315312
// user_id is the ID the user has in the organization
316313
UserID string `json:"userId,required" format:"uuid"`
317314
// user_role is the role the user has in the organization
318315
UserRole shared.OrganizationRole `json:"userRole,required"`
319-
JSON accountMembershipJSON `json:"-"`
316+
// organization_name is the member count of the organization the user is a member
317+
// of
318+
OrganizationMemberCount int64 `json:"organizationMemberCount"`
319+
JSON accountMembershipJSON `json:"-"`
320320
}
321321

322322
// accountMembershipJSON contains the JSON metadata for the struct
323323
// [AccountMembership]
324324
type accountMembershipJSON struct {
325325
OrganizationID apijson.Field
326-
OrganizationMemberCount apijson.Field
327326
OrganizationName apijson.Field
328327
UserID apijson.Field
329328
UserRole apijson.Field
329+
OrganizationMemberCount apijson.Field
330330
raw string
331331
ExtraFields map[string]apijson.Field
332332
}
@@ -342,20 +342,20 @@ func (r accountMembershipJSON) RawJSON() string {
342342
type JoinableOrganization struct {
343343
// organization_id is the id of the organization the user can join
344344
OrganizationID string `json:"organizationId,required" format:"uuid"`
345+
// organization_name is the name of the organization the user can join
346+
OrganizationName string `json:"organizationName,required"`
345347
// organization_member_count is the member count of the organization the user can
346348
// join
347-
OrganizationMemberCount int64 `json:"organizationMemberCount,required"`
348-
// organization_name is the name of the organization the user can join
349-
OrganizationName string `json:"organizationName,required"`
350-
JSON joinableOrganizationJSON `json:"-"`
349+
OrganizationMemberCount int64 `json:"organizationMemberCount"`
350+
JSON joinableOrganizationJSON `json:"-"`
351351
}
352352

353353
// joinableOrganizationJSON contains the JSON metadata for the struct
354354
// [JoinableOrganization]
355355
type joinableOrganizationJSON struct {
356356
OrganizationID apijson.Field
357-
OrganizationMemberCount apijson.Field
358357
OrganizationName apijson.Field
358+
OrganizationMemberCount apijson.Field
359359
raw string
360360
ExtraFields map[string]apijson.Field
361361
}
@@ -369,18 +369,19 @@ func (r joinableOrganizationJSON) RawJSON() string {
369369
}
370370

371371
type LoginProvider struct {
372-
// login_url is the URL to redirect the browser agent to for login
373-
LoginURL string `json:"loginUrl,required"`
374372
// provider is the provider used by this login method, e.g. "github", "google",
375373
// "custom"
376-
Provider string `json:"provider,required"`
374+
Provider string `json:"provider,required"`
375+
// login_url is the URL to redirect the browser agent to for login, when provider
376+
// is "custom"
377+
LoginURL string `json:"loginUrl"`
377378
JSON loginProviderJSON `json:"-"`
378379
}
379380

380381
// loginProviderJSON contains the JSON metadata for the struct [LoginProvider]
381382
type loginProviderJSON struct {
382-
LoginURL apijson.Field
383383
Provider apijson.Field
384+
LoginURL apijson.Field
384385
raw string
385386
ExtraFields map[string]apijson.Field
386387
}

editor.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -74,25 +74,25 @@ func (r *EditorService) ResolveURL(ctx context.Context, body EditorResolveURLPar
7474
}
7575

7676
type Editor struct {
77-
ID string `json:"id,required"`
78-
Alias string `json:"alias,required"`
79-
IconURL string `json:"iconUrl,required"`
77+
ID string `json:"id,required" format:"uuid"`
8078
InstallationInstructions string `json:"installationInstructions,required"`
8179
Name string `json:"name,required"`
82-
ShortDescription string `json:"shortDescription,required"`
8380
URLTemplate string `json:"urlTemplate,required"`
81+
Alias string `json:"alias"`
82+
IconURL string `json:"iconUrl"`
83+
ShortDescription string `json:"shortDescription"`
8484
JSON editorJSON `json:"-"`
8585
}
8686

8787
// editorJSON contains the JSON metadata for the struct [Editor]
8888
type editorJSON struct {
8989
ID apijson.Field
90-
Alias apijson.Field
91-
IconURL apijson.Field
9290
InstallationInstructions apijson.Field
9391
Name apijson.Field
94-
ShortDescription apijson.Field
9592
URLTemplate apijson.Field
93+
Alias apijson.Field
94+
IconURL apijson.Field
95+
ShortDescription apijson.Field
9696
raw string
9797
ExtraFields map[string]apijson.Field
9898
}

environment.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1107,7 +1107,7 @@ func (r environmentSpecDevcontainerJSON) RawJSON() string {
11071107
// machine is the machine spec of the environment
11081108
type EnvironmentSpecMachine struct {
11091109
// Class denotes the class of the environment we ought to start
1110-
Class string `json:"class" format:"uuid"`
1110+
Class string `json:"class"`
11111111
Session string `json:"session"`
11121112
JSON environmentSpecMachineJSON `json:"-"`
11131113
}
@@ -1388,7 +1388,7 @@ func (r EnvironmentSpecDevcontainerParam) MarshalJSON() (data []byte, err error)
13881388
// machine is the machine spec of the environment
13891389
type EnvironmentSpecMachineParam struct {
13901390
// Class denotes the class of the environment we ought to start
1391-
Class param.Field[string] `json:"class" format:"uuid"`
1391+
Class param.Field[string] `json:"class"`
13921392
Session param.Field[string] `json:"session"`
13931393
}
13941394

internal/version.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
package internal
44

5-
const PackageVersion = "0.1.0-alpha.3" // x-release-please-version
5+
const PackageVersion = "0.1.1" // x-release-please-version

organizationdomainverification.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ type DomainVerification struct {
183183
// Joda Time's
184184
// [`ISODateTimeFormat.dateTime()`](<http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime()>)
185185
// to obtain a formatter capable of generating timestamps in this format.
186-
VerifiedAt time.Time `json:"verifiedAt,required" format:"date-time"`
186+
VerifiedAt time.Time `json:"verifiedAt" format:"date-time"`
187187
JSON domainVerificationJSON `json:"-"`
188188
}
189189

organizationssoconfiguration.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,6 @@ func (r ProviderType) IsKnown() bool {
108108
type SSOConfiguration struct {
109109
// id is the unique identifier of the SSO configuration
110110
ID string `json:"id,required" format:"uuid"`
111-
// client_id is the client ID of the OIDC application set on the IdP
112-
ClientID string `json:"clientId,required"`
113-
EmailDomain string `json:"emailDomain,required"`
114111
// issuer_url is the URL of the IdP issuer
115112
IssuerURL string `json:"issuerUrl,required"`
116113
OrganizationID string `json:"organizationId,required" format:"uuid"`
@@ -119,21 +116,24 @@ type SSOConfiguration struct {
119116
// state is the state of the SSO configuration
120117
State SSOConfigurationState `json:"state,required"`
121118
// claims are key/value pairs that defines a mapping of claims issued by the IdP.
122-
Claims map[string]string `json:"claims"`
123-
JSON ssoConfigurationJSON `json:"-"`
119+
Claims map[string]string `json:"claims"`
120+
// client_id is the client ID of the OIDC application set on the IdP
121+
ClientID string `json:"clientId"`
122+
EmailDomain string `json:"emailDomain"`
123+
JSON ssoConfigurationJSON `json:"-"`
124124
}
125125

126126
// ssoConfigurationJSON contains the JSON metadata for the struct
127127
// [SSOConfiguration]
128128
type ssoConfigurationJSON struct {
129129
ID apijson.Field
130-
ClientID apijson.Field
131-
EmailDomain apijson.Field
132130
IssuerURL apijson.Field
133131
OrganizationID apijson.Field
134132
ProviderType apijson.Field
135133
State apijson.Field
136134
Claims apijson.Field
135+
ClientID apijson.Field
136+
EmailDomain apijson.Field
137137
raw string
138138
ExtraFields map[string]apijson.Field
139139
}

secret.go

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ func (r *SecretService) UpdateValue(ctx context.Context, body SecretUpdateValueP
9595
type Secret struct {
9696
ID string `json:"id" format:"uuid"`
9797
// secret will be mounted as a registry secret
98-
ContainerRegistryBasicAuthHost string `json:"containerRegistryBasicAuthHost"`
98+
ContainerRegistryBasicAuthHost string `json:"containerRegistryBasicAuthHost" format:"uri"`
9999
// A Timestamp represents a point in time independent of any time zone or local
100100
// calendar, encoded as a count of seconds and fractions of seconds at nanosecond
101101
// resolution. The count is relative to an epoch at UTC midnight on January 1,
@@ -359,12 +359,8 @@ type SecretUpdateValueResponse = interface{}
359359

360360
type SecretNewParams struct {
361361
// secret will be mounted as a docker config in the environment VM, mount will have
362-
// the docker host value must be a valid registry hostname with optional port:
363-
//
364-
// ```
365-
// this.matches('^[a-zA-Z0-9][a-zA-Z0-9.-]*[a-zA-Z0-9](:[0-9]+)?$')
366-
// ```
367-
ContainerRegistryBasicAuthHost param.Field[string] `json:"containerRegistryBasicAuthHost"`
362+
// the docker registry host
363+
ContainerRegistryBasicAuthHost param.Field[string] `json:"containerRegistryBasicAuthHost" format:"uri"`
368364
// secret will be created as an Environment Variable with the same name as the
369365
// secret
370366
EnvironmentVariable param.Field[bool] `json:"environmentVariable"`

secret_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ func TestSecretNewWithOptionalParams(t *testing.T) {
2727
option.WithBearerToken("My Bearer Token"),
2828
)
2929
_, err := client.Secrets.New(context.TODO(), gitpod.SecretNewParams{
30-
ContainerRegistryBasicAuthHost: gitpod.F("containerRegistryBasicAuthHost"),
30+
ContainerRegistryBasicAuthHost: gitpod.F("https://example.com"),
3131
EnvironmentVariable: gitpod.F(true),
3232
FilePath: gitpod.F("filePath"),
3333
Name: gitpod.F("name"),

0 commit comments

Comments
 (0)