@@ -179,9 +179,6 @@ type Account struct {
179
179
CreatedAt time.Time `json:"createdAt,required" format:"date-time"`
180
180
Email string `json:"email,required"`
181
181
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"`
185
182
// A Timestamp represents a point in time independent of any time zone or local
186
183
// calendar, encoded as a count of seconds and fractions of seconds at nanosecond
187
184
// resolution. The count is relative to an epoch at UTC midnight on January 1,
@@ -276,8 +273,11 @@ type Account struct {
276
273
Memberships []AccountMembership `json:"memberships"`
277
274
// organization_id is the ID of the organization the account is owned by if it's
278
275
// 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:"-"`
281
281
}
282
282
283
283
// accountJSON contains the JSON metadata for the struct [Account]
@@ -286,12 +286,12 @@ type accountJSON struct {
286
286
CreatedAt apijson.Field
287
287
Email apijson.Field
288
288
Name apijson.Field
289
- PublicEmailProvider apijson.Field
290
289
UpdatedAt apijson.Field
291
290
AvatarURL apijson.Field
292
291
Joinables apijson.Field
293
292
Memberships apijson.Field
294
293
OrganizationID apijson.Field
294
+ PublicEmailProvider apijson.Field
295
295
raw string
296
296
ExtraFields map [string ]apijson.Field
297
297
}
@@ -307,26 +307,26 @@ func (r accountJSON) RawJSON() string {
307
307
type AccountMembership struct {
308
308
// organization_id is the id of the organization the user is a member of
309
309
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"`
313
310
// organization_name is the name of the organization the user is a member of
314
311
OrganizationName string `json:"organizationName,required"`
315
312
// user_id is the ID the user has in the organization
316
313
UserID string `json:"userId,required" format:"uuid"`
317
314
// user_role is the role the user has in the organization
318
315
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:"-"`
320
320
}
321
321
322
322
// accountMembershipJSON contains the JSON metadata for the struct
323
323
// [AccountMembership]
324
324
type accountMembershipJSON struct {
325
325
OrganizationID apijson.Field
326
- OrganizationMemberCount apijson.Field
327
326
OrganizationName apijson.Field
328
327
UserID apijson.Field
329
328
UserRole apijson.Field
329
+ OrganizationMemberCount apijson.Field
330
330
raw string
331
331
ExtraFields map [string ]apijson.Field
332
332
}
@@ -342,20 +342,20 @@ func (r accountMembershipJSON) RawJSON() string {
342
342
type JoinableOrganization struct {
343
343
// organization_id is the id of the organization the user can join
344
344
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"`
345
347
// organization_member_count is the member count of the organization the user can
346
348
// 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:"-"`
351
351
}
352
352
353
353
// joinableOrganizationJSON contains the JSON metadata for the struct
354
354
// [JoinableOrganization]
355
355
type joinableOrganizationJSON struct {
356
356
OrganizationID apijson.Field
357
- OrganizationMemberCount apijson.Field
358
357
OrganizationName apijson.Field
358
+ OrganizationMemberCount apijson.Field
359
359
raw string
360
360
ExtraFields map [string ]apijson.Field
361
361
}
@@ -369,18 +369,19 @@ func (r joinableOrganizationJSON) RawJSON() string {
369
369
}
370
370
371
371
type LoginProvider struct {
372
- // login_url is the URL to redirect the browser agent to for login
373
- LoginURL string `json:"loginUrl,required"`
374
372
// provider is the provider used by this login method, e.g. "github", "google",
375
373
// "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"`
377
378
JSON loginProviderJSON `json:"-"`
378
379
}
379
380
380
381
// loginProviderJSON contains the JSON metadata for the struct [LoginProvider]
381
382
type loginProviderJSON struct {
382
- LoginURL apijson.Field
383
383
Provider apijson.Field
384
+ LoginURL apijson.Field
384
385
raw string
385
386
ExtraFields map [string ]apijson.Field
386
387
}
0 commit comments