UNPKG

810 BTypeScriptView Raw
1export declare type AUTH = {
2 phone?: boolean | number;
3 profile?: boolean | number;
4 contacts?: boolean | number;
5 assets?: boolean | number;
6 snapshots?: boolean | number;
7 messages?: boolean | number;
8};
9export declare type SCOPE = keyof typeof AUTHSCOPE;
10declare const AUTHSCOPE: {
11 phone: string;
12 profile: string;
13 contacts: string;
14 assets: string;
15 snapshots: string;
16 messages: string;
17};
18export declare function getAccessCode(params: {
19 client_id: string;
20 oauth_url?: string;
21 redirect_url?: string;
22 state?: string;
23 auth?: AUTH;
24 code_challenge?: boolean;
25}): void;
26export declare function getAccessToken(params: {
27 code: string;
28 client_id: string;
29 code_verifier: string;
30}): Promise<any>;
31export {};