@@ -52,9 +52,7 @@ export class Accounts extends APIResource {
52
52
export type LoginProvidersLoginProvidersPage = LoginProvidersPage < LoginProvider > ;
53
53
54
54
export interface Account {
55
- id ?: string ;
56
-
57
- avatarUrl ?: string ;
55
+ id : string ;
58
56
59
57
/**
60
58
* A Timestamp represents a point in time independent of any time zone or local
@@ -146,27 +144,17 @@ export interface Account {
146
144
* [`ISODateTimeFormat.dateTime()`](<http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime()>)
147
145
* to obtain a formatter capable of generating timestamps in this format.
148
146
*/
149
- createdAt ?: string ;
150
-
151
- email ?: string ;
152
-
153
- joinables ?: Array < JoinableOrganization > ;
154
-
155
- memberships ?: Array < AccountMembership > ;
147
+ createdAt : string ;
156
148
157
- name ? : string ;
149
+ email : string ;
158
150
159
- /**
160
- * organization_id is the ID of the organization the account is owned by if it's
161
- * created through custom SSO
162
- */
163
- organizationId ?: string | null ;
151
+ name : string ;
164
152
165
153
/**
166
154
* public_email_provider is true if the email for the Account matches a known
167
155
* public email provider
168
156
*/
169
- publicEmailProvider ? : boolean ;
157
+ publicEmailProvider : boolean ;
170
158
171
159
/**
172
160
* A Timestamp represents a point in time independent of any time zone or local
@@ -258,70 +246,82 @@ export interface Account {
258
246
* [`ISODateTimeFormat.dateTime()`](<http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime()>)
259
247
* to obtain a formatter capable of generating timestamps in this format.
260
248
*/
261
- updatedAt ?: string ;
249
+ updatedAt : string ;
250
+
251
+ avatarUrl ?: string ;
252
+
253
+ joinables ?: Array < JoinableOrganization > ;
254
+
255
+ memberships ?: Array < AccountMembership > ;
256
+
257
+ /**
258
+ * organization_id is the ID of the organization the account is owned by if it's
259
+ * created through custom SSO
260
+ */
261
+ organizationId ?: string | null ;
262
262
}
263
263
264
264
export interface AccountMembership {
265
265
/**
266
266
* organization_id is the id of the organization the user is a member of
267
267
*/
268
- organizationId ? : string ;
268
+ organizationId : string ;
269
269
270
270
/**
271
271
* organization_name is the member count of the organization the user is a member
272
272
* of
273
273
*/
274
- organizationMemberCount ? : number ;
274
+ organizationMemberCount : number ;
275
275
276
276
/**
277
277
* organization_name is the name of the organization the user is a member of
278
278
*/
279
- organizationName ? : string ;
279
+ organizationName : string ;
280
280
281
281
/**
282
282
* user_id is the ID the user has in the organization
283
283
*/
284
- userId ? : string ;
284
+ userId : string ;
285
285
286
286
/**
287
287
* user_role is the role the user has in the organization
288
288
*/
289
- userRole ? : Shared . OrganizationRole ;
289
+ userRole : Shared . OrganizationRole ;
290
290
}
291
291
292
292
export interface JoinableOrganization {
293
293
/**
294
294
* organization_id is the id of the organization the user can join
295
295
*/
296
- organizationId ? : string ;
296
+ organizationId : string ;
297
297
298
298
/**
299
299
* organization_member_count is the member count of the organization the user can
300
300
* join
301
301
*/
302
- organizationMemberCount ? : number ;
302
+ organizationMemberCount : number ;
303
303
304
304
/**
305
305
* organization_name is the name of the organization the user can join
306
306
*/
307
- organizationName ? : string ;
307
+ organizationName : string ;
308
308
}
309
309
310
310
export interface LoginProvider {
311
311
/**
312
312
* login_url is the URL to redirect the browser agent to for login
313
313
*/
314
- loginUrl ? : string ;
314
+ loginUrl : string ;
315
315
316
316
/**
317
317
* provider is the provider used by this login method, e.g. "github", "google",
318
318
* "custom"
319
319
*/
320
- provider ? : string ;
320
+ provider : string ;
321
321
}
322
322
323
323
export interface AccountRetrieveResponse {
324
- account ? : Account ;
324
+ account : Account ;
325
325
}
326
326
327
327
export type AccountDeleteResponse = unknown ;
@@ -330,22 +330,22 @@ export interface AccountGetSSOLoginURLResponse {
330
330
/**
331
331
* login_url is the URL to redirect the user to for SSO login
332
332
*/
333
- loginUrl ? : string ;
333
+ loginUrl : string ;
334
334
}
335
335
336
336
export interface AccountRetrieveParams {
337
337
empty ?: boolean ;
338
338
}
339
339
340
340
export interface AccountDeleteParams {
341
- accountId ? : string ;
341
+ accountId : string ;
342
342
}
343
343
344
344
export interface AccountGetSSOLoginURLParams {
345
345
/**
346
346
* email is the email the user wants to login with
347
347
*/
348
- email ? : string ;
348
+ email : string ;
349
349
350
350
/**
351
351
* return_to is the URL the user will be redirected to after login
0 commit comments