-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathuser.ts
More file actions
36 lines (27 loc) · 860 Bytes
/
user.ts
File metadata and controls
36 lines (27 loc) · 860 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
import { APIResource } from '../core/resource';
import { APIPromise } from '../core/api-promise';
import { RequestOptions } from '../internal/request-options';
export class User extends APIResource {
/**
* Retrieve the currently authenticated user's information.
*/
retrieve(options?: RequestOptions): APIPromise<UserRetrieveResponse> {
return this._client.get('/v0/user', options);
}
}
export interface UserRetrieveResponse {
id: string;
email: string | null;
github: UserRetrieveResponse.GitHub | null;
name: string | null;
object: 'user';
}
export namespace UserRetrieveResponse {
export interface GitHub {
username: string;
}
}
export declare namespace User {
export { type UserRetrieveResponse as UserRetrieveResponse };
}