@@ -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 {
307307type 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]
324324type 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 {
342342type 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]
355355type 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
371371type 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]
381382type loginProviderJSON struct {
382- LoginURL apijson.Field
383383 Provider apijson.Field
384+ LoginURL apijson.Field
384385 raw string
385386 ExtraFields map [string ]apijson.Field
386387}
0 commit comments