@better-auth/core 1.4.0-beta.13 → 1.4.0-beta.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +34 -58
- package/dist/api/index.cjs +1 -1
- package/dist/api/index.d.cts +2 -6
- package/dist/api/index.d.ts +2 -6
- package/dist/api/index.js +1 -1
- package/dist/async_hooks/index.d.cts +1 -1
- package/dist/async_hooks/index.d.ts +1 -1
- package/dist/context/index.cjs +1 -1
- package/dist/context/index.d.cts +14 -18
- package/dist/context/index.d.ts +14 -18
- package/dist/context/index.js +1 -1
- package/dist/{context-Bm0rm76r.js → context-BAOGRjRS.js} +30 -30
- package/dist/{context-7VgEbfs3.cjs → context-BRDf96na.cjs} +29 -29
- package/dist/db/adapter/index.d.cts +2 -6
- package/dist/db/adapter/index.d.ts +2 -6
- package/dist/db/index.cjs +17 -17
- package/dist/db/index.d.cts +2 -2
- package/dist/db/index.d.ts +2 -2
- package/dist/db/index.js +17 -17
- package/dist/env/index.d.cts +1 -1
- package/dist/env/index.d.ts +1 -1
- package/dist/error/index.d.cts +1 -1
- package/dist/error/index.d.ts +1 -1
- package/dist/{index-D5uj-vER.d.ts → index-B_YiOlcX.d.cts} +9 -9
- package/dist/index-Bab6W0hG.d.ts +7155 -0
- package/dist/index-CGS5U4X6.d.cts +7155 -0
- package/dist/{index-Dy_s5RNc.d.cts → index-CSISZQGm.d.ts} +9 -9
- package/dist/index.d.cts +3 -65
- package/dist/index.d.ts +3 -65
- package/dist/oauth2/index.cjs +1 -1
- package/dist/oauth2/index.d.cts +2 -2
- package/dist/oauth2/index.d.ts +2 -2
- package/dist/oauth2/index.js +1 -1
- package/dist/{oauth2-C8-hfKTF.cjs → oauth2-C4Pt8KMZ.cjs} +87 -87
- package/dist/{oauth2-CjVUvPq7.js → oauth2-CP3eVHS_.js} +88 -88
- package/dist/social-providers/index.cjs +963 -888
- package/dist/social-providers/index.d.cts +3 -4
- package/dist/social-providers/index.d.ts +3 -4
- package/dist/social-providers/index.js +1023 -948
- package/package.json +4 -3
- package/src/api/index.ts +3 -3
- package/src/context/endpoint-context.ts +1 -1
- package/src/context/index.ts +7 -7
- package/src/context/transaction.ts +2 -2
- package/src/db/adapter/index.ts +146 -128
- package/src/db/index.ts +11 -11
- package/src/db/plugin.ts +3 -3
- package/src/db/type.ts +47 -41
- package/src/env/index.ts +9 -9
- package/src/env/logger.test.ts +2 -2
- package/src/env/logger.ts +11 -9
- package/src/error/index.ts +1 -1
- package/src/oauth2/client-credentials-token.ts +9 -9
- package/src/oauth2/create-authorization-url.ts +12 -12
- package/src/oauth2/index.ts +10 -11
- package/src/oauth2/oauth-provider.ts +91 -74
- package/src/oauth2/refresh-access-token.ts +12 -12
- package/src/oauth2/validate-authorization-code.ts +13 -13
- package/src/social-providers/apple.ts +6 -6
- package/src/social-providers/atlassian.ts +23 -18
- package/src/social-providers/cognito.ts +17 -14
- package/src/social-providers/discord.ts +6 -6
- package/src/social-providers/dropbox.ts +3 -3
- package/src/social-providers/facebook.ts +10 -7
- package/src/social-providers/figma.ts +8 -5
- package/src/social-providers/github.ts +2 -2
- package/src/social-providers/gitlab.ts +7 -7
- package/src/social-providers/google.ts +15 -12
- package/src/social-providers/huggingface.ts +25 -23
- package/src/social-providers/index.ts +29 -26
- package/src/social-providers/kakao.ts +39 -39
- package/src/social-providers/kick.ts +3 -3
- package/src/social-providers/line.ts +10 -10
- package/src/social-providers/linear.ts +4 -4
- package/src/social-providers/linkedin.ts +3 -3
- package/src/social-providers/microsoft-entra-id.ts +15 -13
- package/src/social-providers/naver.ts +3 -3
- package/src/social-providers/notion.ts +9 -7
- package/src/social-providers/paybin.ts +122 -0
- package/src/social-providers/paypal.ts +29 -27
- package/src/social-providers/polar.ts +20 -18
- package/src/social-providers/reddit.ts +4 -4
- package/src/social-providers/roblox.ts +11 -8
- package/src/social-providers/salesforce.ts +22 -17
- package/src/social-providers/slack.ts +3 -3
- package/src/social-providers/spotify.ts +3 -3
- package/src/social-providers/tiktok.ts +30 -28
- package/src/social-providers/twitch.ts +6 -6
- package/src/social-providers/twitter.ts +47 -43
- package/src/social-providers/vk.ts +11 -10
- package/src/social-providers/zoom.ts +15 -13
- package/src/types/context.ts +23 -17
- package/src/types/index.ts +11 -10
- package/src/types/init-options.ts +1037 -932
- package/src/types/plugin-client.ts +44 -13
- package/src/types/plugin.ts +66 -52
- package/dist/helper-BH5srn6K.d.ts +0 -6
- package/dist/helper-ChPUVnMr.d.cts +0 -6
- package/dist/index-BCxkjvux.d.cts +0 -344
- package/dist/index-CZCOI9An.d.ts +0 -344
- package/dist/index-Cg7SVnu9.d.cts +0 -4645
- package/dist/index-DQNPxXof.d.ts +0 -262
- package/dist/index-DXj1sY8B.d.cts +0 -1772
- package/dist/index-DgTKobWC.d.ts +0 -1772
- package/dist/index-RfHoxHB4.d.ts +0 -4531
- package/dist/index-daoIWR6L.d.cts +0 -262
- /package/dist/{index-CR-gJyzm.d.ts → index-BzepAavo.d.cts} +0 -0
- /package/dist/{index-CilaMiAm.d.cts → index-DT7CRnvv.d.ts} +0 -0
|
@@ -1,4645 +0,0 @@
|
|
|
1
|
-
import { d as OAuth2Tokens$1, m as ProviderOptions$1 } from "./index-BCxkjvux.cjs";
|
|
2
|
-
import * as z from "zod";
|
|
3
|
-
|
|
4
|
-
//#region src/social-providers/apple.d.ts
|
|
5
|
-
interface AppleProfile {
|
|
6
|
-
/**
|
|
7
|
-
* The subject registered claim identifies the principal that’s the subject
|
|
8
|
-
* of the identity token. Because this token is for your app, the value is
|
|
9
|
-
* the unique identifier for the user.
|
|
10
|
-
*/
|
|
11
|
-
sub: string;
|
|
12
|
-
/**
|
|
13
|
-
* A String value representing the user's email address.
|
|
14
|
-
* The email address is either the user's real email address or the proxy
|
|
15
|
-
* address, depending on their status private email relay service.
|
|
16
|
-
*/
|
|
17
|
-
email: string;
|
|
18
|
-
/**
|
|
19
|
-
* A string or Boolean value that indicates whether the service verifies
|
|
20
|
-
* the email. The value can either be a string ("true" or "false") or a
|
|
21
|
-
* Boolean (true or false). The system may not verify email addresses for
|
|
22
|
-
* Sign in with Apple at Work & School users, and this claim is "false" or
|
|
23
|
-
* false for those users.
|
|
24
|
-
*/
|
|
25
|
-
email_verified: true | "true";
|
|
26
|
-
/**
|
|
27
|
-
* A string or Boolean value that indicates whether the email that the user
|
|
28
|
-
* shares is the proxy address. The value can either be a string ("true" or
|
|
29
|
-
* "false") or a Boolean (true or false).
|
|
30
|
-
*/
|
|
31
|
-
is_private_email: boolean;
|
|
32
|
-
/**
|
|
33
|
-
* An Integer value that indicates whether the user appears to be a real
|
|
34
|
-
* person. Use the value of this claim to mitigate fraud. The possible
|
|
35
|
-
* values are: 0 (or Unsupported), 1 (or Unknown), 2 (or LikelyReal). For
|
|
36
|
-
* more information, see ASUserDetectionStatus. This claim is present only
|
|
37
|
-
* in iOS 14 and later, macOS 11 and later, watchOS 7 and later, tvOS 14
|
|
38
|
-
* and later. The claim isn’t present or supported for web-based apps.
|
|
39
|
-
*/
|
|
40
|
-
real_user_status: number;
|
|
41
|
-
/**
|
|
42
|
-
* The user’s full name in the format provided during the authorization
|
|
43
|
-
* process.
|
|
44
|
-
*/
|
|
45
|
-
name: string;
|
|
46
|
-
/**
|
|
47
|
-
* The URL to the user's profile picture.
|
|
48
|
-
*/
|
|
49
|
-
picture: string;
|
|
50
|
-
user?: AppleNonConformUser;
|
|
51
|
-
}
|
|
52
|
-
/**
|
|
53
|
-
* This is the shape of the `user` query parameter that Apple sends the first
|
|
54
|
-
* time the user consents to the app.
|
|
55
|
-
* @see https://developer.apple.com/documentation/signinwithapplerestapi/request-an-authorization-to-the-sign-in-with-apple-server./
|
|
56
|
-
*/
|
|
57
|
-
interface AppleNonConformUser {
|
|
58
|
-
name: {
|
|
59
|
-
firstName: string;
|
|
60
|
-
lastName: string;
|
|
61
|
-
};
|
|
62
|
-
email: string;
|
|
63
|
-
}
|
|
64
|
-
interface AppleOptions extends ProviderOptions$1<AppleProfile> {
|
|
65
|
-
clientId: string;
|
|
66
|
-
appBundleIdentifier?: string;
|
|
67
|
-
audience?: string | string[];
|
|
68
|
-
}
|
|
69
|
-
declare const apple: (options: AppleOptions) => {
|
|
70
|
-
id: "apple";
|
|
71
|
-
name: string;
|
|
72
|
-
createAuthorizationURL({
|
|
73
|
-
state,
|
|
74
|
-
scopes,
|
|
75
|
-
redirectURI
|
|
76
|
-
}: {
|
|
77
|
-
state: string;
|
|
78
|
-
codeVerifier: string;
|
|
79
|
-
scopes?: string[];
|
|
80
|
-
redirectURI: string;
|
|
81
|
-
display?: string;
|
|
82
|
-
loginHint?: string;
|
|
83
|
-
}): Promise<URL>;
|
|
84
|
-
validateAuthorizationCode: ({
|
|
85
|
-
code,
|
|
86
|
-
codeVerifier,
|
|
87
|
-
redirectURI
|
|
88
|
-
}: {
|
|
89
|
-
code: string;
|
|
90
|
-
redirectURI: string;
|
|
91
|
-
codeVerifier?: string;
|
|
92
|
-
deviceId?: string;
|
|
93
|
-
}) => Promise<OAuth2Tokens$1>;
|
|
94
|
-
verifyIdToken(token: string, nonce: string | undefined): Promise<boolean>;
|
|
95
|
-
refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens$1>;
|
|
96
|
-
getUserInfo(token: OAuth2Tokens$1 & {
|
|
97
|
-
user?: {
|
|
98
|
-
name?: {
|
|
99
|
-
firstName?: string;
|
|
100
|
-
lastName?: string;
|
|
101
|
-
};
|
|
102
|
-
email?: string;
|
|
103
|
-
};
|
|
104
|
-
}): Promise<{
|
|
105
|
-
user: {
|
|
106
|
-
id: string;
|
|
107
|
-
name?: string;
|
|
108
|
-
email?: string | null;
|
|
109
|
-
image?: string;
|
|
110
|
-
emailVerified: boolean;
|
|
111
|
-
[key: string]: any;
|
|
112
|
-
};
|
|
113
|
-
data: any;
|
|
114
|
-
} | null>;
|
|
115
|
-
options: AppleOptions;
|
|
116
|
-
};
|
|
117
|
-
declare const getApplePublicKey: (kid: string) => Promise<Uint8Array<ArrayBufferLike> | CryptoKey>;
|
|
118
|
-
//#endregion
|
|
119
|
-
//#region src/social-providers/atlassian.d.ts
|
|
120
|
-
interface AtlassianProfile {
|
|
121
|
-
account_type?: string;
|
|
122
|
-
account_id: string;
|
|
123
|
-
email?: string;
|
|
124
|
-
name: string;
|
|
125
|
-
picture?: string;
|
|
126
|
-
nickname?: string;
|
|
127
|
-
locale?: string;
|
|
128
|
-
extended_profile?: {
|
|
129
|
-
job_title?: string;
|
|
130
|
-
organization?: string;
|
|
131
|
-
department?: string;
|
|
132
|
-
location?: string;
|
|
133
|
-
};
|
|
134
|
-
}
|
|
135
|
-
interface AtlassianOptions extends ProviderOptions$1<AtlassianProfile> {
|
|
136
|
-
clientId: string;
|
|
137
|
-
}
|
|
138
|
-
declare const atlassian: (options: AtlassianOptions) => {
|
|
139
|
-
id: "atlassian";
|
|
140
|
-
name: string;
|
|
141
|
-
createAuthorizationURL({
|
|
142
|
-
state,
|
|
143
|
-
scopes,
|
|
144
|
-
codeVerifier,
|
|
145
|
-
redirectURI
|
|
146
|
-
}: {
|
|
147
|
-
state: string;
|
|
148
|
-
codeVerifier: string;
|
|
149
|
-
scopes?: string[];
|
|
150
|
-
redirectURI: string;
|
|
151
|
-
display?: string;
|
|
152
|
-
loginHint?: string;
|
|
153
|
-
}): Promise<URL>;
|
|
154
|
-
validateAuthorizationCode: ({
|
|
155
|
-
code,
|
|
156
|
-
codeVerifier,
|
|
157
|
-
redirectURI
|
|
158
|
-
}: {
|
|
159
|
-
code: string;
|
|
160
|
-
redirectURI: string;
|
|
161
|
-
codeVerifier?: string;
|
|
162
|
-
deviceId?: string;
|
|
163
|
-
}) => Promise<OAuth2Tokens$1>;
|
|
164
|
-
refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens$1>;
|
|
165
|
-
getUserInfo(token: OAuth2Tokens$1 & {
|
|
166
|
-
user?: {
|
|
167
|
-
name?: {
|
|
168
|
-
firstName?: string;
|
|
169
|
-
lastName?: string;
|
|
170
|
-
};
|
|
171
|
-
email?: string;
|
|
172
|
-
};
|
|
173
|
-
}): Promise<{
|
|
174
|
-
user: {
|
|
175
|
-
id: string;
|
|
176
|
-
name?: string;
|
|
177
|
-
email?: string | null;
|
|
178
|
-
image?: string;
|
|
179
|
-
emailVerified: boolean;
|
|
180
|
-
[key: string]: any;
|
|
181
|
-
};
|
|
182
|
-
data: any;
|
|
183
|
-
} | null>;
|
|
184
|
-
options: AtlassianOptions;
|
|
185
|
-
};
|
|
186
|
-
//#endregion
|
|
187
|
-
//#region src/social-providers/cognito.d.ts
|
|
188
|
-
interface CognitoProfile {
|
|
189
|
-
sub: string;
|
|
190
|
-
email: string;
|
|
191
|
-
email_verified: boolean;
|
|
192
|
-
name: string;
|
|
193
|
-
given_name?: string;
|
|
194
|
-
family_name?: string;
|
|
195
|
-
picture?: string;
|
|
196
|
-
username?: string;
|
|
197
|
-
locale?: string;
|
|
198
|
-
phone_number?: string;
|
|
199
|
-
phone_number_verified?: boolean;
|
|
200
|
-
aud: string;
|
|
201
|
-
iss: string;
|
|
202
|
-
exp: number;
|
|
203
|
-
iat: number;
|
|
204
|
-
[key: string]: any;
|
|
205
|
-
}
|
|
206
|
-
interface CognitoOptions extends ProviderOptions$1<CognitoProfile> {
|
|
207
|
-
clientId: string;
|
|
208
|
-
/**
|
|
209
|
-
* The Cognito domain (e.g., "your-app.auth.us-east-1.amazoncognito.com")
|
|
210
|
-
*/
|
|
211
|
-
domain: string;
|
|
212
|
-
/**
|
|
213
|
-
* AWS region where User Pool is hosted (e.g., "us-east-1")
|
|
214
|
-
*/
|
|
215
|
-
region: string;
|
|
216
|
-
userPoolId: string;
|
|
217
|
-
requireClientSecret?: boolean;
|
|
218
|
-
}
|
|
219
|
-
declare const cognito: (options: CognitoOptions) => {
|
|
220
|
-
id: "cognito";
|
|
221
|
-
name: string;
|
|
222
|
-
createAuthorizationURL({
|
|
223
|
-
state,
|
|
224
|
-
scopes,
|
|
225
|
-
codeVerifier,
|
|
226
|
-
redirectURI
|
|
227
|
-
}: {
|
|
228
|
-
state: string;
|
|
229
|
-
codeVerifier: string;
|
|
230
|
-
scopes?: string[];
|
|
231
|
-
redirectURI: string;
|
|
232
|
-
display?: string;
|
|
233
|
-
loginHint?: string;
|
|
234
|
-
}): Promise<URL>;
|
|
235
|
-
validateAuthorizationCode: ({
|
|
236
|
-
code,
|
|
237
|
-
codeVerifier,
|
|
238
|
-
redirectURI
|
|
239
|
-
}: {
|
|
240
|
-
code: string;
|
|
241
|
-
redirectURI: string;
|
|
242
|
-
codeVerifier?: string;
|
|
243
|
-
deviceId?: string;
|
|
244
|
-
}) => Promise<OAuth2Tokens$1>;
|
|
245
|
-
refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens$1>;
|
|
246
|
-
verifyIdToken(token: string, nonce: string | undefined): Promise<boolean>;
|
|
247
|
-
getUserInfo(token: OAuth2Tokens$1 & {
|
|
248
|
-
user?: {
|
|
249
|
-
name?: {
|
|
250
|
-
firstName?: string;
|
|
251
|
-
lastName?: string;
|
|
252
|
-
};
|
|
253
|
-
email?: string;
|
|
254
|
-
};
|
|
255
|
-
}): Promise<{
|
|
256
|
-
user: {
|
|
257
|
-
id: string;
|
|
258
|
-
name?: string;
|
|
259
|
-
email?: string | null;
|
|
260
|
-
image?: string;
|
|
261
|
-
emailVerified: boolean;
|
|
262
|
-
[key: string]: any;
|
|
263
|
-
};
|
|
264
|
-
data: any;
|
|
265
|
-
} | null>;
|
|
266
|
-
options: CognitoOptions;
|
|
267
|
-
};
|
|
268
|
-
declare const getCognitoPublicKey: (kid: string, region: string, userPoolId: string) => Promise<Uint8Array<ArrayBufferLike> | CryptoKey>;
|
|
269
|
-
//#endregion
|
|
270
|
-
//#region src/social-providers/discord.d.ts
|
|
271
|
-
interface DiscordProfile extends Record<string, any> {
|
|
272
|
-
/** the user's id (i.e. the numerical snowflake) */
|
|
273
|
-
id: string;
|
|
274
|
-
/** the user's username, not unique across the platform */
|
|
275
|
-
username: string;
|
|
276
|
-
/** the user's Discord-tag */
|
|
277
|
-
discriminator: string;
|
|
278
|
-
/** the user's display name, if it is set */
|
|
279
|
-
global_name: string | null;
|
|
280
|
-
/**
|
|
281
|
-
* the user's avatar hash:
|
|
282
|
-
* https://discord.com/developers/docs/reference#image-formatting
|
|
283
|
-
*/
|
|
284
|
-
avatar: string | null;
|
|
285
|
-
/** whether the user belongs to an OAuth2 application */
|
|
286
|
-
bot?: boolean;
|
|
287
|
-
/**
|
|
288
|
-
* whether the user is an Official Discord System user (part of the urgent
|
|
289
|
-
* message system)
|
|
290
|
-
*/
|
|
291
|
-
system?: boolean;
|
|
292
|
-
/** whether the user has two factor enabled on their account */
|
|
293
|
-
mfa_enabled: boolean;
|
|
294
|
-
/**
|
|
295
|
-
* the user's banner hash:
|
|
296
|
-
* https://discord.com/developers/docs/reference#image-formatting
|
|
297
|
-
*/
|
|
298
|
-
banner: string | null;
|
|
299
|
-
/** the user's banner color encoded as an integer representation of hexadecimal color code */
|
|
300
|
-
accent_color: number | null;
|
|
301
|
-
/**
|
|
302
|
-
* the user's chosen language option:
|
|
303
|
-
* https://discord.com/developers/docs/reference#locales
|
|
304
|
-
*/
|
|
305
|
-
locale: string;
|
|
306
|
-
/** whether the email on this account has been verified */
|
|
307
|
-
verified: boolean;
|
|
308
|
-
/** the user's email */
|
|
309
|
-
email: string;
|
|
310
|
-
/**
|
|
311
|
-
* the flags on a user's account:
|
|
312
|
-
* https://discord.com/developers/docs/resources/user#user-object-user-flags
|
|
313
|
-
*/
|
|
314
|
-
flags: number;
|
|
315
|
-
/**
|
|
316
|
-
* the type of Nitro subscription on a user's account:
|
|
317
|
-
* https://discord.com/developers/docs/resources/user#user-object-premium-types
|
|
318
|
-
*/
|
|
319
|
-
premium_type: number;
|
|
320
|
-
/**
|
|
321
|
-
* the public flags on a user's account:
|
|
322
|
-
* https://discord.com/developers/docs/resources/user#user-object-user-flags
|
|
323
|
-
*/
|
|
324
|
-
public_flags: number;
|
|
325
|
-
/** undocumented field; corresponds to the user's custom nickname */
|
|
326
|
-
display_name: string | null;
|
|
327
|
-
/**
|
|
328
|
-
* undocumented field; corresponds to the Discord feature where you can e.g.
|
|
329
|
-
* put your avatar inside of an ice cube
|
|
330
|
-
*/
|
|
331
|
-
avatar_decoration: string | null;
|
|
332
|
-
/**
|
|
333
|
-
* undocumented field; corresponds to the premium feature where you can
|
|
334
|
-
* select a custom banner color
|
|
335
|
-
*/
|
|
336
|
-
banner_color: string | null;
|
|
337
|
-
/** undocumented field; the CDN URL of their profile picture */
|
|
338
|
-
image_url: string;
|
|
339
|
-
}
|
|
340
|
-
interface DiscordOptions extends ProviderOptions$1<DiscordProfile> {
|
|
341
|
-
clientId: string;
|
|
342
|
-
prompt?: "none" | "consent";
|
|
343
|
-
permissions?: number;
|
|
344
|
-
}
|
|
345
|
-
declare const discord: (options: DiscordOptions) => {
|
|
346
|
-
id: "discord";
|
|
347
|
-
name: string;
|
|
348
|
-
createAuthorizationURL({
|
|
349
|
-
state,
|
|
350
|
-
scopes,
|
|
351
|
-
redirectURI
|
|
352
|
-
}: {
|
|
353
|
-
state: string;
|
|
354
|
-
codeVerifier: string;
|
|
355
|
-
scopes?: string[];
|
|
356
|
-
redirectURI: string;
|
|
357
|
-
display?: string;
|
|
358
|
-
loginHint?: string;
|
|
359
|
-
}): URL;
|
|
360
|
-
validateAuthorizationCode: ({
|
|
361
|
-
code,
|
|
362
|
-
redirectURI
|
|
363
|
-
}: {
|
|
364
|
-
code: string;
|
|
365
|
-
redirectURI: string;
|
|
366
|
-
codeVerifier?: string;
|
|
367
|
-
deviceId?: string;
|
|
368
|
-
}) => Promise<OAuth2Tokens$1>;
|
|
369
|
-
refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens$1>;
|
|
370
|
-
getUserInfo(token: OAuth2Tokens$1 & {
|
|
371
|
-
user?: {
|
|
372
|
-
name?: {
|
|
373
|
-
firstName?: string;
|
|
374
|
-
lastName?: string;
|
|
375
|
-
};
|
|
376
|
-
email?: string;
|
|
377
|
-
};
|
|
378
|
-
}): Promise<{
|
|
379
|
-
user: {
|
|
380
|
-
id: string;
|
|
381
|
-
name?: string;
|
|
382
|
-
email?: string | null;
|
|
383
|
-
image?: string;
|
|
384
|
-
emailVerified: boolean;
|
|
385
|
-
[key: string]: any;
|
|
386
|
-
};
|
|
387
|
-
data: any;
|
|
388
|
-
} | null>;
|
|
389
|
-
options: DiscordOptions;
|
|
390
|
-
};
|
|
391
|
-
//#endregion
|
|
392
|
-
//#region src/social-providers/facebook.d.ts
|
|
393
|
-
interface FacebookProfile {
|
|
394
|
-
id: string;
|
|
395
|
-
name: string;
|
|
396
|
-
email: string;
|
|
397
|
-
email_verified: boolean;
|
|
398
|
-
picture: {
|
|
399
|
-
data: {
|
|
400
|
-
height: number;
|
|
401
|
-
is_silhouette: boolean;
|
|
402
|
-
url: string;
|
|
403
|
-
width: number;
|
|
404
|
-
};
|
|
405
|
-
};
|
|
406
|
-
}
|
|
407
|
-
interface FacebookOptions extends ProviderOptions$1<FacebookProfile> {
|
|
408
|
-
clientId: string;
|
|
409
|
-
/**
|
|
410
|
-
* Extend list of fields to retrieve from the Facebook user profile.
|
|
411
|
-
*
|
|
412
|
-
* @default ["id", "name", "email", "picture"]
|
|
413
|
-
*/
|
|
414
|
-
fields?: string[];
|
|
415
|
-
/**
|
|
416
|
-
* The config id to use when undergoing oauth
|
|
417
|
-
*/
|
|
418
|
-
configId?: string;
|
|
419
|
-
}
|
|
420
|
-
declare const facebook: (options: FacebookOptions) => {
|
|
421
|
-
id: "facebook";
|
|
422
|
-
name: string;
|
|
423
|
-
createAuthorizationURL({
|
|
424
|
-
state,
|
|
425
|
-
scopes,
|
|
426
|
-
redirectURI,
|
|
427
|
-
loginHint
|
|
428
|
-
}: {
|
|
429
|
-
state: string;
|
|
430
|
-
codeVerifier: string;
|
|
431
|
-
scopes?: string[];
|
|
432
|
-
redirectURI: string;
|
|
433
|
-
display?: string;
|
|
434
|
-
loginHint?: string;
|
|
435
|
-
}): Promise<URL>;
|
|
436
|
-
validateAuthorizationCode: ({
|
|
437
|
-
code,
|
|
438
|
-
redirectURI
|
|
439
|
-
}: {
|
|
440
|
-
code: string;
|
|
441
|
-
redirectURI: string;
|
|
442
|
-
codeVerifier?: string;
|
|
443
|
-
deviceId?: string;
|
|
444
|
-
}) => Promise<OAuth2Tokens$1>;
|
|
445
|
-
verifyIdToken(token: string, nonce: string | undefined): Promise<boolean>;
|
|
446
|
-
refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens$1>;
|
|
447
|
-
getUserInfo(token: OAuth2Tokens$1 & {
|
|
448
|
-
user?: {
|
|
449
|
-
name?: {
|
|
450
|
-
firstName?: string;
|
|
451
|
-
lastName?: string;
|
|
452
|
-
};
|
|
453
|
-
email?: string;
|
|
454
|
-
};
|
|
455
|
-
}): Promise<{
|
|
456
|
-
user: {
|
|
457
|
-
id: string;
|
|
458
|
-
name?: string;
|
|
459
|
-
email?: string | null;
|
|
460
|
-
image?: string;
|
|
461
|
-
emailVerified: boolean;
|
|
462
|
-
[key: string]: any;
|
|
463
|
-
};
|
|
464
|
-
data: any;
|
|
465
|
-
} | null>;
|
|
466
|
-
options: FacebookOptions;
|
|
467
|
-
};
|
|
468
|
-
//#endregion
|
|
469
|
-
//#region src/social-providers/figma.d.ts
|
|
470
|
-
interface FigmaProfile {
|
|
471
|
-
id: string;
|
|
472
|
-
email: string;
|
|
473
|
-
handle: string;
|
|
474
|
-
img_url: string;
|
|
475
|
-
}
|
|
476
|
-
interface FigmaOptions extends ProviderOptions$1<FigmaProfile> {
|
|
477
|
-
clientId: string;
|
|
478
|
-
}
|
|
479
|
-
declare const figma: (options: FigmaOptions) => {
|
|
480
|
-
id: "figma";
|
|
481
|
-
name: string;
|
|
482
|
-
createAuthorizationURL({
|
|
483
|
-
state,
|
|
484
|
-
scopes,
|
|
485
|
-
codeVerifier,
|
|
486
|
-
redirectURI
|
|
487
|
-
}: {
|
|
488
|
-
state: string;
|
|
489
|
-
codeVerifier: string;
|
|
490
|
-
scopes?: string[];
|
|
491
|
-
redirectURI: string;
|
|
492
|
-
display?: string;
|
|
493
|
-
loginHint?: string;
|
|
494
|
-
}): Promise<URL>;
|
|
495
|
-
validateAuthorizationCode: ({
|
|
496
|
-
code,
|
|
497
|
-
codeVerifier,
|
|
498
|
-
redirectURI
|
|
499
|
-
}: {
|
|
500
|
-
code: string;
|
|
501
|
-
redirectURI: string;
|
|
502
|
-
codeVerifier?: string;
|
|
503
|
-
deviceId?: string;
|
|
504
|
-
}) => Promise<OAuth2Tokens$1>;
|
|
505
|
-
refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens$1>;
|
|
506
|
-
getUserInfo(token: OAuth2Tokens$1 & {
|
|
507
|
-
user?: {
|
|
508
|
-
name?: {
|
|
509
|
-
firstName?: string;
|
|
510
|
-
lastName?: string;
|
|
511
|
-
};
|
|
512
|
-
email?: string;
|
|
513
|
-
};
|
|
514
|
-
}): Promise<{
|
|
515
|
-
user: {
|
|
516
|
-
id: string;
|
|
517
|
-
name?: string;
|
|
518
|
-
email?: string | null;
|
|
519
|
-
image?: string;
|
|
520
|
-
emailVerified: boolean;
|
|
521
|
-
[key: string]: any;
|
|
522
|
-
};
|
|
523
|
-
data: any;
|
|
524
|
-
} | null>;
|
|
525
|
-
options: FigmaOptions;
|
|
526
|
-
};
|
|
527
|
-
//#endregion
|
|
528
|
-
//#region src/social-providers/github.d.ts
|
|
529
|
-
interface GithubProfile {
|
|
530
|
-
login: string;
|
|
531
|
-
id: string;
|
|
532
|
-
node_id: string;
|
|
533
|
-
avatar_url: string;
|
|
534
|
-
gravatar_id: string;
|
|
535
|
-
url: string;
|
|
536
|
-
html_url: string;
|
|
537
|
-
followers_url: string;
|
|
538
|
-
following_url: string;
|
|
539
|
-
gists_url: string;
|
|
540
|
-
starred_url: string;
|
|
541
|
-
subscriptions_url: string;
|
|
542
|
-
organizations_url: string;
|
|
543
|
-
repos_url: string;
|
|
544
|
-
events_url: string;
|
|
545
|
-
received_events_url: string;
|
|
546
|
-
type: string;
|
|
547
|
-
site_admin: boolean;
|
|
548
|
-
name: string;
|
|
549
|
-
company: string;
|
|
550
|
-
blog: string;
|
|
551
|
-
location: string;
|
|
552
|
-
email: string;
|
|
553
|
-
hireable: boolean;
|
|
554
|
-
bio: string;
|
|
555
|
-
twitter_username: string;
|
|
556
|
-
public_repos: string;
|
|
557
|
-
public_gists: string;
|
|
558
|
-
followers: string;
|
|
559
|
-
following: string;
|
|
560
|
-
created_at: string;
|
|
561
|
-
updated_at: string;
|
|
562
|
-
private_gists: string;
|
|
563
|
-
total_private_repos: string;
|
|
564
|
-
owned_private_repos: string;
|
|
565
|
-
disk_usage: string;
|
|
566
|
-
collaborators: string;
|
|
567
|
-
two_factor_authentication: boolean;
|
|
568
|
-
plan: {
|
|
569
|
-
name: string;
|
|
570
|
-
space: string;
|
|
571
|
-
private_repos: string;
|
|
572
|
-
collaborators: string;
|
|
573
|
-
};
|
|
574
|
-
}
|
|
575
|
-
interface GithubOptions extends ProviderOptions$1<GithubProfile> {
|
|
576
|
-
clientId: string;
|
|
577
|
-
}
|
|
578
|
-
declare const github: (options: GithubOptions) => {
|
|
579
|
-
id: "github";
|
|
580
|
-
name: string;
|
|
581
|
-
createAuthorizationURL({
|
|
582
|
-
state,
|
|
583
|
-
scopes,
|
|
584
|
-
loginHint,
|
|
585
|
-
redirectURI
|
|
586
|
-
}: {
|
|
587
|
-
state: string;
|
|
588
|
-
codeVerifier: string;
|
|
589
|
-
scopes?: string[];
|
|
590
|
-
redirectURI: string;
|
|
591
|
-
display?: string;
|
|
592
|
-
loginHint?: string;
|
|
593
|
-
}): Promise<URL>;
|
|
594
|
-
validateAuthorizationCode: ({
|
|
595
|
-
code,
|
|
596
|
-
redirectURI
|
|
597
|
-
}: {
|
|
598
|
-
code: string;
|
|
599
|
-
redirectURI: string;
|
|
600
|
-
codeVerifier?: string;
|
|
601
|
-
deviceId?: string;
|
|
602
|
-
}) => Promise<OAuth2Tokens$1>;
|
|
603
|
-
refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens$1>;
|
|
604
|
-
getUserInfo(token: OAuth2Tokens$1 & {
|
|
605
|
-
user?: {
|
|
606
|
-
name?: {
|
|
607
|
-
firstName?: string;
|
|
608
|
-
lastName?: string;
|
|
609
|
-
};
|
|
610
|
-
email?: string;
|
|
611
|
-
};
|
|
612
|
-
}): Promise<{
|
|
613
|
-
user: {
|
|
614
|
-
id: string;
|
|
615
|
-
name?: string;
|
|
616
|
-
email?: string | null;
|
|
617
|
-
image?: string;
|
|
618
|
-
emailVerified: boolean;
|
|
619
|
-
[key: string]: any;
|
|
620
|
-
};
|
|
621
|
-
data: any;
|
|
622
|
-
} | null>;
|
|
623
|
-
options: GithubOptions;
|
|
624
|
-
};
|
|
625
|
-
//#endregion
|
|
626
|
-
//#region src/social-providers/microsoft-entra-id.d.ts
|
|
627
|
-
/**
|
|
628
|
-
* @see [Microsoft Identity Platform - Optional claims reference](https://learn.microsoft.com/en-us/entra/identity-platform/optional-claims-reference)
|
|
629
|
-
*/
|
|
630
|
-
interface MicrosoftEntraIDProfile extends Record<string, any> {
|
|
631
|
-
/** Identifies the intended recipient of the token */
|
|
632
|
-
aud: string;
|
|
633
|
-
/** Identifies the issuer, or "authorization server" that constructs and returns the token */
|
|
634
|
-
iss: string;
|
|
635
|
-
/** Indicates when the authentication for the token occurred */
|
|
636
|
-
iat: Date;
|
|
637
|
-
/** Records the identity provider that authenticated the subject of the token */
|
|
638
|
-
idp: string;
|
|
639
|
-
/** Identifies the time before which the JWT can't be accepted for processing */
|
|
640
|
-
nbf: Date;
|
|
641
|
-
/** Identifies the expiration time on or after which the JWT can't be accepted for processing */
|
|
642
|
-
exp: Date;
|
|
643
|
-
/** Code hash included in ID tokens when issued with an OAuth 2.0 authorization code */
|
|
644
|
-
c_hash: string;
|
|
645
|
-
/** Access token hash included in ID tokens when issued with an OAuth 2.0 access token */
|
|
646
|
-
at_hash: string;
|
|
647
|
-
/** Internal claim used to record data for token reuse */
|
|
648
|
-
aio: string;
|
|
649
|
-
/** The primary username that represents the user */
|
|
650
|
-
preferred_username: string;
|
|
651
|
-
/** User's email address */
|
|
652
|
-
email: string;
|
|
653
|
-
/** Human-readable value that identifies the subject of the token */
|
|
654
|
-
name: string;
|
|
655
|
-
/** Matches the parameter included in the original authorize request */
|
|
656
|
-
nonce: string;
|
|
657
|
-
/** User's profile picture */
|
|
658
|
-
picture: string;
|
|
659
|
-
/** Immutable identifier for the user account */
|
|
660
|
-
oid: string;
|
|
661
|
-
/** Set of roles assigned to the user */
|
|
662
|
-
roles: string[];
|
|
663
|
-
/** Internal claim used to revalidate tokens */
|
|
664
|
-
rh: string;
|
|
665
|
-
/** Subject identifier - unique to application ID */
|
|
666
|
-
sub: string;
|
|
667
|
-
/** Tenant ID the user is signing in to */
|
|
668
|
-
tid: string;
|
|
669
|
-
/** Unique identifier for a session */
|
|
670
|
-
sid: string;
|
|
671
|
-
/** Token identifier claim */
|
|
672
|
-
uti: string;
|
|
673
|
-
/** Indicates if user is in at least one group */
|
|
674
|
-
hasgroups: boolean;
|
|
675
|
-
/** User account status in tenant (0 = member, 1 = guest) */
|
|
676
|
-
acct: 0 | 1;
|
|
677
|
-
/** Auth Context IDs */
|
|
678
|
-
acrs: string;
|
|
679
|
-
/** Time when the user last authenticated */
|
|
680
|
-
auth_time: Date;
|
|
681
|
-
/** User's country/region */
|
|
682
|
-
ctry: string;
|
|
683
|
-
/** IP address of requesting client when inside VNET */
|
|
684
|
-
fwd: string;
|
|
685
|
-
/** Group claims */
|
|
686
|
-
groups: string;
|
|
687
|
-
/** Login hint for SSO */
|
|
688
|
-
login_hint: string;
|
|
689
|
-
/** Resource tenant's country/region */
|
|
690
|
-
tenant_ctry: string;
|
|
691
|
-
/** Region of the resource tenant */
|
|
692
|
-
tenant_region_scope: string;
|
|
693
|
-
/** UserPrincipalName */
|
|
694
|
-
upn: string;
|
|
695
|
-
/** User's verified primary email addresses */
|
|
696
|
-
verified_primary_email: string[];
|
|
697
|
-
/** User's verified secondary email addresses */
|
|
698
|
-
verified_secondary_email: string[];
|
|
699
|
-
/** VNET specifier information */
|
|
700
|
-
vnet: string;
|
|
701
|
-
/** Client Capabilities */
|
|
702
|
-
xms_cc: string;
|
|
703
|
-
/** Whether user's email domain is verified */
|
|
704
|
-
xms_edov: boolean;
|
|
705
|
-
/** Preferred data location for Multi-Geo tenants */
|
|
706
|
-
xms_pdl: string;
|
|
707
|
-
/** User preferred language */
|
|
708
|
-
xms_pl: string;
|
|
709
|
-
/** Tenant preferred language */
|
|
710
|
-
xms_tpl: string;
|
|
711
|
-
/** Zero-touch Deployment ID */
|
|
712
|
-
ztdid: string;
|
|
713
|
-
/** IP Address */
|
|
714
|
-
ipaddr: string;
|
|
715
|
-
/** On-premises Security Identifier */
|
|
716
|
-
onprem_sid: string;
|
|
717
|
-
/** Password Expiration Time */
|
|
718
|
-
pwd_exp: number;
|
|
719
|
-
/** Change Password URL */
|
|
720
|
-
pwd_url: string;
|
|
721
|
-
/** Inside Corporate Network flag */
|
|
722
|
-
in_corp: string;
|
|
723
|
-
/** User's family name/surname */
|
|
724
|
-
family_name: string;
|
|
725
|
-
/** User's given/first name */
|
|
726
|
-
given_name: string;
|
|
727
|
-
}
|
|
728
|
-
interface MicrosoftOptions extends ProviderOptions$1<MicrosoftEntraIDProfile> {
|
|
729
|
-
clientId: string;
|
|
730
|
-
/**
|
|
731
|
-
* The tenant ID of the Microsoft account
|
|
732
|
-
* @default "common"
|
|
733
|
-
*/
|
|
734
|
-
tenantId?: string;
|
|
735
|
-
/**
|
|
736
|
-
* The authentication authority URL. Use the default "https://login.microsoftonline.com" for standard Entra ID or "https://<tenant-id>.ciamlogin.com" for CIAM scenarios.
|
|
737
|
-
* @default "https://login.microsoftonline.com"
|
|
738
|
-
*/
|
|
739
|
-
authority?: string;
|
|
740
|
-
/**
|
|
741
|
-
* The size of the profile photo
|
|
742
|
-
* @default 48
|
|
743
|
-
*/
|
|
744
|
-
profilePhotoSize?: 48 | 64 | 96 | 120 | 240 | 360 | 432 | 504 | 648;
|
|
745
|
-
/**
|
|
746
|
-
* Disable profile photo
|
|
747
|
-
*/
|
|
748
|
-
disableProfilePhoto?: boolean;
|
|
749
|
-
}
|
|
750
|
-
declare const microsoft: (options: MicrosoftOptions) => {
|
|
751
|
-
id: "microsoft";
|
|
752
|
-
name: string;
|
|
753
|
-
createAuthorizationURL(data: {
|
|
754
|
-
state: string;
|
|
755
|
-
codeVerifier: string;
|
|
756
|
-
scopes?: string[];
|
|
757
|
-
redirectURI: string;
|
|
758
|
-
display?: string;
|
|
759
|
-
loginHint?: string;
|
|
760
|
-
}): Promise<URL>;
|
|
761
|
-
validateAuthorizationCode({
|
|
762
|
-
code,
|
|
763
|
-
codeVerifier,
|
|
764
|
-
redirectURI
|
|
765
|
-
}: {
|
|
766
|
-
code: string;
|
|
767
|
-
redirectURI: string;
|
|
768
|
-
codeVerifier?: string;
|
|
769
|
-
deviceId?: string;
|
|
770
|
-
}): Promise<OAuth2Tokens$1>;
|
|
771
|
-
getUserInfo(token: OAuth2Tokens$1 & {
|
|
772
|
-
user?: {
|
|
773
|
-
name?: {
|
|
774
|
-
firstName?: string;
|
|
775
|
-
lastName?: string;
|
|
776
|
-
};
|
|
777
|
-
email?: string;
|
|
778
|
-
};
|
|
779
|
-
}): Promise<{
|
|
780
|
-
user: {
|
|
781
|
-
id: string;
|
|
782
|
-
name?: string;
|
|
783
|
-
email
|
|
784
|
-
/** Tenant preferred language */? /** Tenant preferred language */: string | null;
|
|
785
|
-
image?: string;
|
|
786
|
-
emailVerified: boolean;
|
|
787
|
-
[key: string]: any;
|
|
788
|
-
};
|
|
789
|
-
data: any;
|
|
790
|
-
} | null>;
|
|
791
|
-
refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens$1>;
|
|
792
|
-
options: MicrosoftOptions;
|
|
793
|
-
};
|
|
794
|
-
//#endregion
|
|
795
|
-
//#region src/social-providers/google.d.ts
|
|
796
|
-
interface GoogleProfile {
|
|
797
|
-
aud: string;
|
|
798
|
-
azp: string;
|
|
799
|
-
email: string;
|
|
800
|
-
email_verified: boolean;
|
|
801
|
-
exp: number;
|
|
802
|
-
/**
|
|
803
|
-
* The family name of the user, or last name in most
|
|
804
|
-
* Western languages.
|
|
805
|
-
*/
|
|
806
|
-
family_name: string;
|
|
807
|
-
/**
|
|
808
|
-
* The given name of the user, or first name in most
|
|
809
|
-
* Western languages.
|
|
810
|
-
*/
|
|
811
|
-
given_name: string;
|
|
812
|
-
hd?: string;
|
|
813
|
-
iat: number;
|
|
814
|
-
iss: string;
|
|
815
|
-
jti?: string;
|
|
816
|
-
locale?: string;
|
|
817
|
-
name: string;
|
|
818
|
-
nbf?: number;
|
|
819
|
-
picture: string;
|
|
820
|
-
sub: string;
|
|
821
|
-
}
|
|
822
|
-
interface GoogleOptions extends ProviderOptions$1<GoogleProfile> {
|
|
823
|
-
clientId: string;
|
|
824
|
-
/**
|
|
825
|
-
* The access type to use for the authorization code request
|
|
826
|
-
*/
|
|
827
|
-
accessType?: "offline" | "online";
|
|
828
|
-
/**
|
|
829
|
-
* The display mode to use for the authorization code request
|
|
830
|
-
*/
|
|
831
|
-
display?: "page" | "popup" | "touch" | "wap";
|
|
832
|
-
/**
|
|
833
|
-
* The hosted domain of the user
|
|
834
|
-
*/
|
|
835
|
-
hd?: string;
|
|
836
|
-
}
|
|
837
|
-
declare const google: (options: GoogleOptions) => {
|
|
838
|
-
id: "google";
|
|
839
|
-
name: string;
|
|
840
|
-
createAuthorizationURL({
|
|
841
|
-
state,
|
|
842
|
-
scopes,
|
|
843
|
-
codeVerifier,
|
|
844
|
-
redirectURI,
|
|
845
|
-
loginHint,
|
|
846
|
-
display
|
|
847
|
-
}: {
|
|
848
|
-
state: string;
|
|
849
|
-
codeVerifier: string;
|
|
850
|
-
scopes?: string[];
|
|
851
|
-
redirectURI: string;
|
|
852
|
-
display?: string;
|
|
853
|
-
loginHint?: string;
|
|
854
|
-
}): Promise<URL>;
|
|
855
|
-
validateAuthorizationCode: ({
|
|
856
|
-
code,
|
|
857
|
-
codeVerifier,
|
|
858
|
-
redirectURI
|
|
859
|
-
}: {
|
|
860
|
-
code: string;
|
|
861
|
-
redirectURI: string;
|
|
862
|
-
codeVerifier?: string;
|
|
863
|
-
deviceId?: string;
|
|
864
|
-
}) => Promise<OAuth2Tokens$1>;
|
|
865
|
-
refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens$1>;
|
|
866
|
-
verifyIdToken(token: string, nonce: string | undefined): Promise<boolean>;
|
|
867
|
-
getUserInfo(token: OAuth2Tokens$1 & {
|
|
868
|
-
user?: {
|
|
869
|
-
name?: {
|
|
870
|
-
firstName?: string;
|
|
871
|
-
lastName?: string;
|
|
872
|
-
};
|
|
873
|
-
email?: string;
|
|
874
|
-
};
|
|
875
|
-
}): Promise<{
|
|
876
|
-
user: {
|
|
877
|
-
id: string;
|
|
878
|
-
name?: string;
|
|
879
|
-
email?: string | null;
|
|
880
|
-
image?: string;
|
|
881
|
-
emailVerified: boolean;
|
|
882
|
-
[key: string]: any;
|
|
883
|
-
};
|
|
884
|
-
data: any;
|
|
885
|
-
} | null>;
|
|
886
|
-
options: GoogleOptions;
|
|
887
|
-
};
|
|
888
|
-
//#endregion
|
|
889
|
-
//#region src/social-providers/huggingface.d.ts
|
|
890
|
-
interface HuggingFaceProfile {
|
|
891
|
-
sub: string;
|
|
892
|
-
name: string;
|
|
893
|
-
preferred_username: string;
|
|
894
|
-
profile: string;
|
|
895
|
-
picture: string;
|
|
896
|
-
website?: string;
|
|
897
|
-
email?: string;
|
|
898
|
-
email_verified?: boolean;
|
|
899
|
-
isPro: boolean;
|
|
900
|
-
canPay?: boolean;
|
|
901
|
-
orgs?: {
|
|
902
|
-
sub: string;
|
|
903
|
-
name: string;
|
|
904
|
-
picture: string;
|
|
905
|
-
preferred_username: string;
|
|
906
|
-
isEnterprise: boolean | "plus";
|
|
907
|
-
canPay?: boolean;
|
|
908
|
-
roleInOrg?: "admin" | "write" | "contributor" | "read";
|
|
909
|
-
pendingSSO?: boolean;
|
|
910
|
-
missingMFA?: boolean;
|
|
911
|
-
resourceGroups?: {
|
|
912
|
-
sub: string;
|
|
913
|
-
name: string;
|
|
914
|
-
role: "admin" | "write" | "contributor" | "read";
|
|
915
|
-
}[];
|
|
916
|
-
};
|
|
917
|
-
}
|
|
918
|
-
interface HuggingFaceOptions extends ProviderOptions$1<HuggingFaceProfile> {
|
|
919
|
-
clientId: string;
|
|
920
|
-
}
|
|
921
|
-
declare const huggingface: (options: HuggingFaceOptions) => {
|
|
922
|
-
id: "huggingface";
|
|
923
|
-
name: string;
|
|
924
|
-
createAuthorizationURL({
|
|
925
|
-
state,
|
|
926
|
-
scopes,
|
|
927
|
-
codeVerifier,
|
|
928
|
-
redirectURI
|
|
929
|
-
}: {
|
|
930
|
-
state: string;
|
|
931
|
-
codeVerifier: string;
|
|
932
|
-
scopes?: string[];
|
|
933
|
-
redirectURI: string;
|
|
934
|
-
display?: string;
|
|
935
|
-
loginHint?: string;
|
|
936
|
-
}): Promise<URL>;
|
|
937
|
-
validateAuthorizationCode: ({
|
|
938
|
-
code,
|
|
939
|
-
codeVerifier,
|
|
940
|
-
redirectURI
|
|
941
|
-
}: {
|
|
942
|
-
code: string;
|
|
943
|
-
redirectURI: string;
|
|
944
|
-
codeVerifier?: string;
|
|
945
|
-
deviceId?: string;
|
|
946
|
-
}) => Promise<OAuth2Tokens$1>;
|
|
947
|
-
refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens$1>;
|
|
948
|
-
getUserInfo(token: OAuth2Tokens$1 & {
|
|
949
|
-
user?: {
|
|
950
|
-
name?: {
|
|
951
|
-
firstName?: string;
|
|
952
|
-
lastName?: string;
|
|
953
|
-
};
|
|
954
|
-
email?: string;
|
|
955
|
-
};
|
|
956
|
-
}): Promise<{
|
|
957
|
-
user: {
|
|
958
|
-
id: string;
|
|
959
|
-
name?: string;
|
|
960
|
-
email?: string | null;
|
|
961
|
-
image?: string;
|
|
962
|
-
emailVerified: boolean;
|
|
963
|
-
[key: string]: any;
|
|
964
|
-
};
|
|
965
|
-
data: any;
|
|
966
|
-
} | null>;
|
|
967
|
-
options: HuggingFaceOptions;
|
|
968
|
-
};
|
|
969
|
-
//#endregion
|
|
970
|
-
//#region src/social-providers/slack.d.ts
|
|
971
|
-
interface SlackProfile extends Record<string, any> {
|
|
972
|
-
ok: boolean;
|
|
973
|
-
sub: string;
|
|
974
|
-
"https://slack.com/user_id": string;
|
|
975
|
-
"https://slack.com/team_id": string;
|
|
976
|
-
email: string;
|
|
977
|
-
email_verified: boolean;
|
|
978
|
-
date_email_verified: number;
|
|
979
|
-
name: string;
|
|
980
|
-
picture: string;
|
|
981
|
-
given_name: string;
|
|
982
|
-
family_name: string;
|
|
983
|
-
locale: string;
|
|
984
|
-
"https://slack.com/team_name": string;
|
|
985
|
-
"https://slack.com/team_domain": string;
|
|
986
|
-
"https://slack.com/user_image_24": string;
|
|
987
|
-
"https://slack.com/user_image_32": string;
|
|
988
|
-
"https://slack.com/user_image_48": string;
|
|
989
|
-
"https://slack.com/user_image_72": string;
|
|
990
|
-
"https://slack.com/user_image_192": string;
|
|
991
|
-
"https://slack.com/user_image_512": string;
|
|
992
|
-
"https://slack.com/team_image_34": string;
|
|
993
|
-
"https://slack.com/team_image_44": string;
|
|
994
|
-
"https://slack.com/team_image_68": string;
|
|
995
|
-
"https://slack.com/team_image_88": string;
|
|
996
|
-
"https://slack.com/team_image_102": string;
|
|
997
|
-
"https://slack.com/team_image_132": string;
|
|
998
|
-
"https://slack.com/team_image_230": string;
|
|
999
|
-
"https://slack.com/team_image_default": boolean;
|
|
1000
|
-
}
|
|
1001
|
-
interface SlackOptions extends ProviderOptions$1<SlackProfile> {
|
|
1002
|
-
clientId: string;
|
|
1003
|
-
}
|
|
1004
|
-
declare const slack: (options: SlackOptions) => {
|
|
1005
|
-
id: "slack";
|
|
1006
|
-
name: string;
|
|
1007
|
-
createAuthorizationURL({
|
|
1008
|
-
state,
|
|
1009
|
-
scopes,
|
|
1010
|
-
redirectURI
|
|
1011
|
-
}: {
|
|
1012
|
-
state: string;
|
|
1013
|
-
codeVerifier: string;
|
|
1014
|
-
scopes?: string[];
|
|
1015
|
-
redirectURI: string;
|
|
1016
|
-
display?: string;
|
|
1017
|
-
loginHint?: string;
|
|
1018
|
-
}): URL;
|
|
1019
|
-
validateAuthorizationCode: ({
|
|
1020
|
-
code,
|
|
1021
|
-
redirectURI
|
|
1022
|
-
}: {
|
|
1023
|
-
code: string;
|
|
1024
|
-
redirectURI: string;
|
|
1025
|
-
codeVerifier?: string;
|
|
1026
|
-
deviceId?: string;
|
|
1027
|
-
}) => Promise<OAuth2Tokens$1>;
|
|
1028
|
-
refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens$1>;
|
|
1029
|
-
getUserInfo(token: OAuth2Tokens$1 & {
|
|
1030
|
-
user?: {
|
|
1031
|
-
name?: {
|
|
1032
|
-
firstName?: string;
|
|
1033
|
-
lastName?: string;
|
|
1034
|
-
};
|
|
1035
|
-
email?: string;
|
|
1036
|
-
};
|
|
1037
|
-
}): Promise<{
|
|
1038
|
-
user: {
|
|
1039
|
-
id: string;
|
|
1040
|
-
name?: string;
|
|
1041
|
-
email?: string | null;
|
|
1042
|
-
image?: string;
|
|
1043
|
-
emailVerified: boolean;
|
|
1044
|
-
[key: string]: any;
|
|
1045
|
-
};
|
|
1046
|
-
data: any;
|
|
1047
|
-
} | null>;
|
|
1048
|
-
options: SlackOptions;
|
|
1049
|
-
};
|
|
1050
|
-
//#endregion
|
|
1051
|
-
//#region src/social-providers/spotify.d.ts
|
|
1052
|
-
interface SpotifyProfile {
|
|
1053
|
-
id: string;
|
|
1054
|
-
display_name: string;
|
|
1055
|
-
email: string;
|
|
1056
|
-
images: {
|
|
1057
|
-
url: string;
|
|
1058
|
-
}[];
|
|
1059
|
-
}
|
|
1060
|
-
interface SpotifyOptions extends ProviderOptions$1<SpotifyProfile> {
|
|
1061
|
-
clientId: string;
|
|
1062
|
-
}
|
|
1063
|
-
declare const spotify: (options: SpotifyOptions) => {
|
|
1064
|
-
id: "spotify";
|
|
1065
|
-
name: string;
|
|
1066
|
-
createAuthorizationURL({
|
|
1067
|
-
state,
|
|
1068
|
-
scopes,
|
|
1069
|
-
codeVerifier,
|
|
1070
|
-
redirectURI
|
|
1071
|
-
}: {
|
|
1072
|
-
state: string;
|
|
1073
|
-
codeVerifier: string;
|
|
1074
|
-
scopes?: string[];
|
|
1075
|
-
redirectURI: string;
|
|
1076
|
-
display?: string;
|
|
1077
|
-
loginHint?: string;
|
|
1078
|
-
}): Promise<URL>;
|
|
1079
|
-
validateAuthorizationCode: ({
|
|
1080
|
-
code,
|
|
1081
|
-
codeVerifier,
|
|
1082
|
-
redirectURI
|
|
1083
|
-
}: {
|
|
1084
|
-
code: string;
|
|
1085
|
-
redirectURI: string;
|
|
1086
|
-
codeVerifier?: string;
|
|
1087
|
-
deviceId?: string;
|
|
1088
|
-
}) => Promise<OAuth2Tokens$1>;
|
|
1089
|
-
refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens$1>;
|
|
1090
|
-
getUserInfo(token: OAuth2Tokens$1 & {
|
|
1091
|
-
user?: {
|
|
1092
|
-
name?: {
|
|
1093
|
-
firstName?: string;
|
|
1094
|
-
lastName?: string;
|
|
1095
|
-
};
|
|
1096
|
-
email?: string;
|
|
1097
|
-
};
|
|
1098
|
-
}): Promise<{
|
|
1099
|
-
user: {
|
|
1100
|
-
id: string;
|
|
1101
|
-
name?: string;
|
|
1102
|
-
email?: string | null;
|
|
1103
|
-
image?: string;
|
|
1104
|
-
emailVerified: boolean;
|
|
1105
|
-
[key: string]: any;
|
|
1106
|
-
};
|
|
1107
|
-
data: any;
|
|
1108
|
-
} | null>;
|
|
1109
|
-
options: SpotifyOptions;
|
|
1110
|
-
};
|
|
1111
|
-
//#endregion
|
|
1112
|
-
//#region src/social-providers/twitch.d.ts
|
|
1113
|
-
/**
|
|
1114
|
-
* @see https://dev.twitch.tv/docs/authentication/getting-tokens-oidc/#requesting-claims
|
|
1115
|
-
*/
|
|
1116
|
-
interface TwitchProfile {
|
|
1117
|
-
/**
|
|
1118
|
-
* The sub of the user
|
|
1119
|
-
*/
|
|
1120
|
-
sub: string;
|
|
1121
|
-
/**
|
|
1122
|
-
* The preferred username of the user
|
|
1123
|
-
*/
|
|
1124
|
-
preferred_username: string;
|
|
1125
|
-
/**
|
|
1126
|
-
* The email of the user
|
|
1127
|
-
*/
|
|
1128
|
-
email: string;
|
|
1129
|
-
/**
|
|
1130
|
-
* Indicate if this user has a verified email.
|
|
1131
|
-
*/
|
|
1132
|
-
email_verified: boolean;
|
|
1133
|
-
/**
|
|
1134
|
-
* The picture of the user
|
|
1135
|
-
*/
|
|
1136
|
-
picture: string;
|
|
1137
|
-
}
|
|
1138
|
-
interface TwitchOptions extends ProviderOptions$1<TwitchProfile> {
|
|
1139
|
-
clientId: string;
|
|
1140
|
-
claims?: string[];
|
|
1141
|
-
}
|
|
1142
|
-
declare const twitch: (options: TwitchOptions) => {
|
|
1143
|
-
id: "twitch";
|
|
1144
|
-
name: string;
|
|
1145
|
-
createAuthorizationURL({
|
|
1146
|
-
state,
|
|
1147
|
-
scopes,
|
|
1148
|
-
redirectURI
|
|
1149
|
-
}: {
|
|
1150
|
-
state: string;
|
|
1151
|
-
codeVerifier: string;
|
|
1152
|
-
scopes?: string[];
|
|
1153
|
-
redirectURI: string;
|
|
1154
|
-
display?: string;
|
|
1155
|
-
loginHint?: string;
|
|
1156
|
-
}): Promise<URL>;
|
|
1157
|
-
validateAuthorizationCode: ({
|
|
1158
|
-
code,
|
|
1159
|
-
redirectURI
|
|
1160
|
-
}: {
|
|
1161
|
-
code: string;
|
|
1162
|
-
redirectURI: string;
|
|
1163
|
-
codeVerifier?: string;
|
|
1164
|
-
deviceId?: string;
|
|
1165
|
-
}) => Promise<OAuth2Tokens$1>;
|
|
1166
|
-
refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens$1>;
|
|
1167
|
-
getUserInfo(token: OAuth2Tokens$1 & {
|
|
1168
|
-
user?: {
|
|
1169
|
-
name?: {
|
|
1170
|
-
firstName?: string;
|
|
1171
|
-
lastName?: string;
|
|
1172
|
-
};
|
|
1173
|
-
email?: string;
|
|
1174
|
-
};
|
|
1175
|
-
}): Promise<{
|
|
1176
|
-
user: {
|
|
1177
|
-
id: string;
|
|
1178
|
-
name?: string;
|
|
1179
|
-
email?: string | null;
|
|
1180
|
-
image?: string;
|
|
1181
|
-
emailVerified: boolean;
|
|
1182
|
-
[key: string]: any;
|
|
1183
|
-
};
|
|
1184
|
-
data: any;
|
|
1185
|
-
} | null>;
|
|
1186
|
-
options: TwitchOptions;
|
|
1187
|
-
};
|
|
1188
|
-
//#endregion
|
|
1189
|
-
//#region src/social-providers/twitter.d.ts
|
|
1190
|
-
interface TwitterProfile {
|
|
1191
|
-
data: {
|
|
1192
|
-
/**
|
|
1193
|
-
* Unique identifier of this user. This is returned as a string in order to avoid complications with languages and tools
|
|
1194
|
-
* that cannot handle large integers.
|
|
1195
|
-
*/
|
|
1196
|
-
id: string;
|
|
1197
|
-
/** The friendly name of this user, as shown on their profile. */
|
|
1198
|
-
name: string;
|
|
1199
|
-
/** The email address of this user. */
|
|
1200
|
-
email?: string;
|
|
1201
|
-
/** The Twitter handle (screen name) of this user. */
|
|
1202
|
-
username: string;
|
|
1203
|
-
/**
|
|
1204
|
-
* The location specified in the user's profile, if the user provided one.
|
|
1205
|
-
* As this is a freeform value, it may not indicate a valid location, but it may be fuzzily evaluated when performing searches with location queries.
|
|
1206
|
-
*
|
|
1207
|
-
* To return this field, add `user.fields=location` in the authorization request's query parameter.
|
|
1208
|
-
*/
|
|
1209
|
-
location?: string;
|
|
1210
|
-
/**
|
|
1211
|
-
* This object and its children fields contain details about text that has a special meaning in the user's description.
|
|
1212
|
-
*
|
|
1213
|
-
*To return this field, add `user.fields=entities` in the authorization request's query parameter.
|
|
1214
|
-
*/
|
|
1215
|
-
entities?: {
|
|
1216
|
-
/** Contains details about the user's profile website. */
|
|
1217
|
-
url: {
|
|
1218
|
-
/** Contains details about the user's profile website. */
|
|
1219
|
-
urls: Array<{
|
|
1220
|
-
/** The start position (zero-based) of the recognized user's profile website. All start indices are inclusive. */
|
|
1221
|
-
start: number;
|
|
1222
|
-
/** The end position (zero-based) of the recognized user's profile website. This end index is exclusive. */
|
|
1223
|
-
end: number;
|
|
1224
|
-
/** The URL in the format entered by the user. */
|
|
1225
|
-
url: string;
|
|
1226
|
-
/** The fully resolved URL. */
|
|
1227
|
-
expanded_url: string;
|
|
1228
|
-
/** The URL as displayed in the user's profile. */
|
|
1229
|
-
display_url: string;
|
|
1230
|
-
}>;
|
|
1231
|
-
};
|
|
1232
|
-
/** Contains details about URLs, Hashtags, Cashtags, or mentions located within a user's description. */
|
|
1233
|
-
description: {
|
|
1234
|
-
hashtags: Array<{
|
|
1235
|
-
start: number;
|
|
1236
|
-
end: number;
|
|
1237
|
-
tag: string;
|
|
1238
|
-
}>;
|
|
1239
|
-
};
|
|
1240
|
-
};
|
|
1241
|
-
/**
|
|
1242
|
-
* Indicate if this user is a verified Twitter user.
|
|
1243
|
-
*
|
|
1244
|
-
* To return this field, add `user.fields=verified` in the authorization request's query parameter.
|
|
1245
|
-
*/
|
|
1246
|
-
verified?: boolean;
|
|
1247
|
-
/**
|
|
1248
|
-
* The text of this user's profile description (also known as bio), if the user provided one.
|
|
1249
|
-
*
|
|
1250
|
-
* To return this field, add `user.fields=description` in the authorization request's query parameter.
|
|
1251
|
-
*/
|
|
1252
|
-
description?: string;
|
|
1253
|
-
/**
|
|
1254
|
-
* The URL specified in the user's profile, if present.
|
|
1255
|
-
*
|
|
1256
|
-
* To return this field, add `user.fields=url` in the authorization request's query parameter.
|
|
1257
|
-
*/
|
|
1258
|
-
url?: string;
|
|
1259
|
-
/** The URL to the profile image for this user, as shown on the user's profile. */
|
|
1260
|
-
profile_image_url?: string;
|
|
1261
|
-
protected?: boolean;
|
|
1262
|
-
/**
|
|
1263
|
-
* Unique identifier of this user's pinned Tweet.
|
|
1264
|
-
*
|
|
1265
|
-
* You can obtain the expanded object in `includes.tweets` by adding `expansions=pinned_tweet_id` in the authorization request's query parameter.
|
|
1266
|
-
*/
|
|
1267
|
-
pinned_tweet_id?: string;
|
|
1268
|
-
created_at?: string;
|
|
1269
|
-
};
|
|
1270
|
-
includes?: {
|
|
1271
|
-
tweets?: Array<{
|
|
1272
|
-
id: string;
|
|
1273
|
-
text: string;
|
|
1274
|
-
}>;
|
|
1275
|
-
};
|
|
1276
|
-
[claims: string]: unknown;
|
|
1277
|
-
}
|
|
1278
|
-
interface TwitterOption extends ProviderOptions$1<TwitterProfile> {
|
|
1279
|
-
clientId: string;
|
|
1280
|
-
}
|
|
1281
|
-
declare const twitter: (options: TwitterOption) => {
|
|
1282
|
-
id: "twitter";
|
|
1283
|
-
name: string;
|
|
1284
|
-
createAuthorizationURL(data: {
|
|
1285
|
-
state: string;
|
|
1286
|
-
codeVerifier: string;
|
|
1287
|
-
scopes?: string[];
|
|
1288
|
-
redirectURI: string;
|
|
1289
|
-
display?: string;
|
|
1290
|
-
loginHint?: string;
|
|
1291
|
-
}): Promise<URL>;
|
|
1292
|
-
validateAuthorizationCode: ({
|
|
1293
|
-
code,
|
|
1294
|
-
codeVerifier,
|
|
1295
|
-
redirectURI
|
|
1296
|
-
}: {
|
|
1297
|
-
code: string;
|
|
1298
|
-
redirectURI: string;
|
|
1299
|
-
codeVerifier?: string;
|
|
1300
|
-
deviceId?: string;
|
|
1301
|
-
}) => Promise<OAuth2Tokens$1>;
|
|
1302
|
-
refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens$1>;
|
|
1303
|
-
getUserInfo(token: OAuth2Tokens$1 & {
|
|
1304
|
-
user?: {
|
|
1305
|
-
name?: {
|
|
1306
|
-
firstName?: string;
|
|
1307
|
-
lastName?: string;
|
|
1308
|
-
};
|
|
1309
|
-
email?: string;
|
|
1310
|
-
};
|
|
1311
|
-
}): Promise<{
|
|
1312
|
-
user: {
|
|
1313
|
-
id: string;
|
|
1314
|
-
name?: string;
|
|
1315
|
-
email?: string | null;
|
|
1316
|
-
image?: string;
|
|
1317
|
-
emailVerified: boolean;
|
|
1318
|
-
[key: string]: any;
|
|
1319
|
-
};
|
|
1320
|
-
data: any;
|
|
1321
|
-
} | null>;
|
|
1322
|
-
options: TwitterOption;
|
|
1323
|
-
};
|
|
1324
|
-
//#endregion
|
|
1325
|
-
//#region src/social-providers/dropbox.d.ts
|
|
1326
|
-
interface DropboxProfile {
|
|
1327
|
-
account_id: string;
|
|
1328
|
-
name: {
|
|
1329
|
-
given_name: string;
|
|
1330
|
-
surname: string;
|
|
1331
|
-
familiar_name: string;
|
|
1332
|
-
display_name: string;
|
|
1333
|
-
abbreviated_name: string;
|
|
1334
|
-
};
|
|
1335
|
-
email: string;
|
|
1336
|
-
email_verified: boolean;
|
|
1337
|
-
profile_photo_url: string;
|
|
1338
|
-
}
|
|
1339
|
-
interface DropboxOptions extends ProviderOptions$1<DropboxProfile> {
|
|
1340
|
-
clientId: string;
|
|
1341
|
-
accessType?: "offline" | "online" | "legacy";
|
|
1342
|
-
}
|
|
1343
|
-
declare const dropbox: (options: DropboxOptions) => {
|
|
1344
|
-
id: "dropbox";
|
|
1345
|
-
name: string;
|
|
1346
|
-
createAuthorizationURL: ({
|
|
1347
|
-
state,
|
|
1348
|
-
scopes,
|
|
1349
|
-
codeVerifier,
|
|
1350
|
-
redirectURI
|
|
1351
|
-
}: {
|
|
1352
|
-
state: string;
|
|
1353
|
-
codeVerifier: string;
|
|
1354
|
-
scopes?: string[];
|
|
1355
|
-
redirectURI: string;
|
|
1356
|
-
display?: string;
|
|
1357
|
-
loginHint?: string;
|
|
1358
|
-
}) => Promise<URL>;
|
|
1359
|
-
validateAuthorizationCode: ({
|
|
1360
|
-
code,
|
|
1361
|
-
codeVerifier,
|
|
1362
|
-
redirectURI
|
|
1363
|
-
}: {
|
|
1364
|
-
code: string;
|
|
1365
|
-
redirectURI: string;
|
|
1366
|
-
codeVerifier?: string;
|
|
1367
|
-
deviceId?: string;
|
|
1368
|
-
}) => Promise<OAuth2Tokens$1>;
|
|
1369
|
-
refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens$1>;
|
|
1370
|
-
getUserInfo(token: OAuth2Tokens$1 & {
|
|
1371
|
-
user?: {
|
|
1372
|
-
name?: {
|
|
1373
|
-
firstName?: string;
|
|
1374
|
-
lastName?: string;
|
|
1375
|
-
};
|
|
1376
|
-
email?: string;
|
|
1377
|
-
};
|
|
1378
|
-
}): Promise<{
|
|
1379
|
-
user: {
|
|
1380
|
-
id: string;
|
|
1381
|
-
name?: string;
|
|
1382
|
-
email?: string | null;
|
|
1383
|
-
image?: string;
|
|
1384
|
-
emailVerified: boolean;
|
|
1385
|
-
[key: string]: any;
|
|
1386
|
-
};
|
|
1387
|
-
data: any;
|
|
1388
|
-
} | null>;
|
|
1389
|
-
options: DropboxOptions;
|
|
1390
|
-
};
|
|
1391
|
-
//#endregion
|
|
1392
|
-
//#region src/social-providers/kick.d.ts
|
|
1393
|
-
interface KickProfile {
|
|
1394
|
-
/**
|
|
1395
|
-
* The user id of the user
|
|
1396
|
-
*/
|
|
1397
|
-
user_id: string;
|
|
1398
|
-
/**
|
|
1399
|
-
* The name of the user
|
|
1400
|
-
*/
|
|
1401
|
-
name: string;
|
|
1402
|
-
/**
|
|
1403
|
-
* The email of the user
|
|
1404
|
-
*/
|
|
1405
|
-
email: string;
|
|
1406
|
-
/**
|
|
1407
|
-
* The picture of the user
|
|
1408
|
-
*/
|
|
1409
|
-
profile_picture: string;
|
|
1410
|
-
}
|
|
1411
|
-
interface KickOptions extends ProviderOptions$1<KickProfile> {
|
|
1412
|
-
clientId: string;
|
|
1413
|
-
}
|
|
1414
|
-
declare const kick: (options: KickOptions) => {
|
|
1415
|
-
id: "kick";
|
|
1416
|
-
name: string;
|
|
1417
|
-
createAuthorizationURL({
|
|
1418
|
-
state,
|
|
1419
|
-
scopes,
|
|
1420
|
-
redirectURI,
|
|
1421
|
-
codeVerifier
|
|
1422
|
-
}: {
|
|
1423
|
-
state: string;
|
|
1424
|
-
codeVerifier: string;
|
|
1425
|
-
scopes?: string[];
|
|
1426
|
-
redirectURI: string;
|
|
1427
|
-
display?: string;
|
|
1428
|
-
loginHint?: string;
|
|
1429
|
-
}): Promise<URL>;
|
|
1430
|
-
validateAuthorizationCode({
|
|
1431
|
-
code,
|
|
1432
|
-
redirectURI,
|
|
1433
|
-
codeVerifier
|
|
1434
|
-
}: {
|
|
1435
|
-
code: string;
|
|
1436
|
-
redirectURI: string;
|
|
1437
|
-
codeVerifier?: string;
|
|
1438
|
-
deviceId?: string;
|
|
1439
|
-
}): Promise<OAuth2Tokens$1>;
|
|
1440
|
-
getUserInfo(token: OAuth2Tokens$1 & {
|
|
1441
|
-
user?: {
|
|
1442
|
-
name?: {
|
|
1443
|
-
firstName?: string;
|
|
1444
|
-
lastName?: string;
|
|
1445
|
-
};
|
|
1446
|
-
email?: string;
|
|
1447
|
-
};
|
|
1448
|
-
}): Promise<{
|
|
1449
|
-
user: {
|
|
1450
|
-
id: string;
|
|
1451
|
-
name?: string;
|
|
1452
|
-
email?: string | null;
|
|
1453
|
-
image?: string;
|
|
1454
|
-
emailVerified: boolean;
|
|
1455
|
-
[key: string]: any;
|
|
1456
|
-
};
|
|
1457
|
-
data: any;
|
|
1458
|
-
} | null>;
|
|
1459
|
-
options: KickOptions;
|
|
1460
|
-
};
|
|
1461
|
-
//#endregion
|
|
1462
|
-
//#region src/social-providers/linear.d.ts
|
|
1463
|
-
interface LinearUser {
|
|
1464
|
-
id: string;
|
|
1465
|
-
name: string;
|
|
1466
|
-
email: string;
|
|
1467
|
-
avatarUrl?: string;
|
|
1468
|
-
active: boolean;
|
|
1469
|
-
createdAt: string;
|
|
1470
|
-
updatedAt: string;
|
|
1471
|
-
}
|
|
1472
|
-
interface LinearProfile {
|
|
1473
|
-
data: {
|
|
1474
|
-
viewer: LinearUser;
|
|
1475
|
-
};
|
|
1476
|
-
}
|
|
1477
|
-
interface LinearOptions extends ProviderOptions$1<LinearUser> {
|
|
1478
|
-
clientId: string;
|
|
1479
|
-
}
|
|
1480
|
-
declare const linear: (options: LinearOptions) => {
|
|
1481
|
-
id: "linear";
|
|
1482
|
-
name: string;
|
|
1483
|
-
createAuthorizationURL({
|
|
1484
|
-
state,
|
|
1485
|
-
scopes,
|
|
1486
|
-
loginHint,
|
|
1487
|
-
redirectURI
|
|
1488
|
-
}: {
|
|
1489
|
-
state: string;
|
|
1490
|
-
codeVerifier: string;
|
|
1491
|
-
scopes?: string[];
|
|
1492
|
-
redirectURI: string;
|
|
1493
|
-
display?: string;
|
|
1494
|
-
loginHint?: string;
|
|
1495
|
-
}): Promise<URL>;
|
|
1496
|
-
validateAuthorizationCode: ({
|
|
1497
|
-
code,
|
|
1498
|
-
redirectURI
|
|
1499
|
-
}: {
|
|
1500
|
-
code: string;
|
|
1501
|
-
redirectURI: string;
|
|
1502
|
-
codeVerifier?: string;
|
|
1503
|
-
deviceId?: string;
|
|
1504
|
-
}) => Promise<OAuth2Tokens$1>;
|
|
1505
|
-
refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens$1>;
|
|
1506
|
-
getUserInfo(token: OAuth2Tokens$1 & {
|
|
1507
|
-
user?: {
|
|
1508
|
-
name?: {
|
|
1509
|
-
firstName?: string;
|
|
1510
|
-
lastName?: string;
|
|
1511
|
-
};
|
|
1512
|
-
email?: string;
|
|
1513
|
-
};
|
|
1514
|
-
}): Promise<{
|
|
1515
|
-
user: {
|
|
1516
|
-
id: string;
|
|
1517
|
-
name?: string;
|
|
1518
|
-
email?: string | null;
|
|
1519
|
-
image?: string;
|
|
1520
|
-
emailVerified: boolean;
|
|
1521
|
-
[key: string]: any;
|
|
1522
|
-
};
|
|
1523
|
-
data: any;
|
|
1524
|
-
} | null>;
|
|
1525
|
-
options: LinearOptions;
|
|
1526
|
-
};
|
|
1527
|
-
//#endregion
|
|
1528
|
-
//#region src/social-providers/linkedin.d.ts
|
|
1529
|
-
interface LinkedInProfile {
|
|
1530
|
-
sub: string;
|
|
1531
|
-
name: string;
|
|
1532
|
-
given_name: string;
|
|
1533
|
-
family_name: string;
|
|
1534
|
-
picture: string;
|
|
1535
|
-
locale: {
|
|
1536
|
-
country: string;
|
|
1537
|
-
language: string;
|
|
1538
|
-
};
|
|
1539
|
-
email: string;
|
|
1540
|
-
email_verified: boolean;
|
|
1541
|
-
}
|
|
1542
|
-
interface LinkedInOptions extends ProviderOptions$1<LinkedInProfile> {
|
|
1543
|
-
clientId: string;
|
|
1544
|
-
}
|
|
1545
|
-
declare const linkedin: (options: LinkedInOptions) => {
|
|
1546
|
-
id: "linkedin";
|
|
1547
|
-
name: string;
|
|
1548
|
-
createAuthorizationURL: ({
|
|
1549
|
-
state,
|
|
1550
|
-
scopes,
|
|
1551
|
-
redirectURI,
|
|
1552
|
-
loginHint
|
|
1553
|
-
}: {
|
|
1554
|
-
state: string;
|
|
1555
|
-
codeVerifier: string;
|
|
1556
|
-
scopes?: string[];
|
|
1557
|
-
redirectURI: string;
|
|
1558
|
-
display?: string;
|
|
1559
|
-
loginHint?: string;
|
|
1560
|
-
}) => Promise<URL>;
|
|
1561
|
-
validateAuthorizationCode: ({
|
|
1562
|
-
code,
|
|
1563
|
-
redirectURI
|
|
1564
|
-
}: {
|
|
1565
|
-
code: string;
|
|
1566
|
-
redirectURI: string;
|
|
1567
|
-
codeVerifier?: string;
|
|
1568
|
-
deviceId?: string;
|
|
1569
|
-
}) => Promise<OAuth2Tokens$1>;
|
|
1570
|
-
refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens$1>;
|
|
1571
|
-
getUserInfo(token: OAuth2Tokens$1 & {
|
|
1572
|
-
user?: {
|
|
1573
|
-
name?: {
|
|
1574
|
-
firstName?: string;
|
|
1575
|
-
lastName?: string;
|
|
1576
|
-
};
|
|
1577
|
-
email?: string;
|
|
1578
|
-
};
|
|
1579
|
-
}): Promise<{
|
|
1580
|
-
user: {
|
|
1581
|
-
id: string;
|
|
1582
|
-
name?: string;
|
|
1583
|
-
email?: string | null;
|
|
1584
|
-
image?: string;
|
|
1585
|
-
emailVerified: boolean;
|
|
1586
|
-
[key: string]: any;
|
|
1587
|
-
};
|
|
1588
|
-
data: any;
|
|
1589
|
-
} | null>;
|
|
1590
|
-
options: LinkedInOptions;
|
|
1591
|
-
};
|
|
1592
|
-
//#endregion
|
|
1593
|
-
//#region src/social-providers/gitlab.d.ts
|
|
1594
|
-
interface GitlabProfile extends Record<string, any> {
|
|
1595
|
-
id: number;
|
|
1596
|
-
username: string;
|
|
1597
|
-
email: string;
|
|
1598
|
-
name: string;
|
|
1599
|
-
state: string;
|
|
1600
|
-
avatar_url: string;
|
|
1601
|
-
web_url: string;
|
|
1602
|
-
created_at: string;
|
|
1603
|
-
bio: string;
|
|
1604
|
-
location?: string;
|
|
1605
|
-
public_email: string;
|
|
1606
|
-
skype: string;
|
|
1607
|
-
linkedin: string;
|
|
1608
|
-
twitter: string;
|
|
1609
|
-
website_url: string;
|
|
1610
|
-
organization: string;
|
|
1611
|
-
job_title: string;
|
|
1612
|
-
pronouns: string;
|
|
1613
|
-
bot: boolean;
|
|
1614
|
-
work_information?: string;
|
|
1615
|
-
followers: number;
|
|
1616
|
-
following: number;
|
|
1617
|
-
local_time: string;
|
|
1618
|
-
last_sign_in_at: string;
|
|
1619
|
-
confirmed_at: string;
|
|
1620
|
-
theme_id: number;
|
|
1621
|
-
last_activity_on: string;
|
|
1622
|
-
color_scheme_id: number;
|
|
1623
|
-
projects_limit: number;
|
|
1624
|
-
current_sign_in_at: string;
|
|
1625
|
-
identities: Array<{
|
|
1626
|
-
provider: string;
|
|
1627
|
-
extern_uid: string;
|
|
1628
|
-
}>;
|
|
1629
|
-
can_create_group: boolean;
|
|
1630
|
-
can_create_project: boolean;
|
|
1631
|
-
two_factor_enabled: boolean;
|
|
1632
|
-
external: boolean;
|
|
1633
|
-
private_profile: boolean;
|
|
1634
|
-
commit_email: string;
|
|
1635
|
-
shared_runners_minutes_limit: number;
|
|
1636
|
-
extra_shared_runners_minutes_limit: number;
|
|
1637
|
-
}
|
|
1638
|
-
interface GitlabOptions extends ProviderOptions$1<GitlabProfile> {
|
|
1639
|
-
clientId: string;
|
|
1640
|
-
issuer?: string;
|
|
1641
|
-
}
|
|
1642
|
-
declare const gitlab: (options: GitlabOptions) => {
|
|
1643
|
-
id: "gitlab";
|
|
1644
|
-
name: string;
|
|
1645
|
-
createAuthorizationURL: ({
|
|
1646
|
-
state,
|
|
1647
|
-
scopes,
|
|
1648
|
-
codeVerifier,
|
|
1649
|
-
loginHint,
|
|
1650
|
-
redirectURI
|
|
1651
|
-
}: {
|
|
1652
|
-
state: string;
|
|
1653
|
-
codeVerifier: string;
|
|
1654
|
-
scopes?: string[];
|
|
1655
|
-
redirectURI: string;
|
|
1656
|
-
display?: string;
|
|
1657
|
-
loginHint?: string;
|
|
1658
|
-
}) => Promise<URL>;
|
|
1659
|
-
validateAuthorizationCode: ({
|
|
1660
|
-
code,
|
|
1661
|
-
redirectURI,
|
|
1662
|
-
codeVerifier
|
|
1663
|
-
}: {
|
|
1664
|
-
code: string;
|
|
1665
|
-
redirectURI: string;
|
|
1666
|
-
codeVerifier?: string;
|
|
1667
|
-
deviceId?: string;
|
|
1668
|
-
}) => Promise<OAuth2Tokens$1>;
|
|
1669
|
-
refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens$1>;
|
|
1670
|
-
getUserInfo(token: OAuth2Tokens$1 & {
|
|
1671
|
-
user?: {
|
|
1672
|
-
name?: {
|
|
1673
|
-
firstName?: string;
|
|
1674
|
-
lastName?: string;
|
|
1675
|
-
};
|
|
1676
|
-
email?: string;
|
|
1677
|
-
};
|
|
1678
|
-
}): Promise<{
|
|
1679
|
-
user: {
|
|
1680
|
-
id: string;
|
|
1681
|
-
name?: string;
|
|
1682
|
-
email?: string | null;
|
|
1683
|
-
image?: string;
|
|
1684
|
-
emailVerified: boolean;
|
|
1685
|
-
[key: string]: any;
|
|
1686
|
-
};
|
|
1687
|
-
data: any;
|
|
1688
|
-
} | {
|
|
1689
|
-
user: {
|
|
1690
|
-
id: number;
|
|
1691
|
-
name: string;
|
|
1692
|
-
email: string;
|
|
1693
|
-
image: string;
|
|
1694
|
-
emailVerified: true;
|
|
1695
|
-
} | {
|
|
1696
|
-
id: string | number;
|
|
1697
|
-
name: string;
|
|
1698
|
-
email: string | null;
|
|
1699
|
-
image: string;
|
|
1700
|
-
emailVerified: boolean;
|
|
1701
|
-
} | {
|
|
1702
|
-
id: string | number;
|
|
1703
|
-
name: string;
|
|
1704
|
-
email: string | null;
|
|
1705
|
-
image: string;
|
|
1706
|
-
emailVerified: boolean;
|
|
1707
|
-
};
|
|
1708
|
-
data: GitlabProfile;
|
|
1709
|
-
} | null>;
|
|
1710
|
-
options: GitlabOptions;
|
|
1711
|
-
};
|
|
1712
|
-
//#endregion
|
|
1713
|
-
//#region src/social-providers/tiktok.d.ts
|
|
1714
|
-
/**
|
|
1715
|
-
* [More info](https://developers.tiktok.com/doc/tiktok-api-v2-get-user-info/)
|
|
1716
|
-
*/
|
|
1717
|
-
interface TiktokProfile extends Record<string, any> {
|
|
1718
|
-
data: {
|
|
1719
|
-
user: {
|
|
1720
|
-
/**
|
|
1721
|
-
* The unique identification of the user in the current application.Open id
|
|
1722
|
-
* for the client.
|
|
1723
|
-
*
|
|
1724
|
-
* To return this field, add `fields=open_id` in the user profile request's query parameter.
|
|
1725
|
-
*/
|
|
1726
|
-
open_id: string;
|
|
1727
|
-
/**
|
|
1728
|
-
* The unique identification of the user across different apps for the same developer.
|
|
1729
|
-
* For example, if a partner has X number of clients,
|
|
1730
|
-
* it will get X number of open_id for the same TikTok user,
|
|
1731
|
-
* but one persistent union_id for the particular user.
|
|
1732
|
-
*
|
|
1733
|
-
* To return this field, add `fields=union_id` in the user profile request's query parameter.
|
|
1734
|
-
*/
|
|
1735
|
-
union_id?: string;
|
|
1736
|
-
/**
|
|
1737
|
-
* User's profile image.
|
|
1738
|
-
*
|
|
1739
|
-
* To return this field, add `fields=avatar_url` in the user profile request's query parameter.
|
|
1740
|
-
*/
|
|
1741
|
-
avatar_url?: string;
|
|
1742
|
-
/**
|
|
1743
|
-
* User`s profile image in 100x100 size.
|
|
1744
|
-
*
|
|
1745
|
-
* To return this field, add `fields=avatar_url_100` in the user profile request's query parameter.
|
|
1746
|
-
*/
|
|
1747
|
-
avatar_url_100?: string;
|
|
1748
|
-
/**
|
|
1749
|
-
* User's profile image with higher resolution
|
|
1750
|
-
*
|
|
1751
|
-
* To return this field, add `fields=avatar_url_100` in the user profile request's query parameter.
|
|
1752
|
-
*/
|
|
1753
|
-
avatar_large_url: string;
|
|
1754
|
-
/**
|
|
1755
|
-
* User's profile name
|
|
1756
|
-
*
|
|
1757
|
-
* To return this field, add `fields=display_name` in the user profile request's query parameter.
|
|
1758
|
-
*/
|
|
1759
|
-
display_name: string;
|
|
1760
|
-
/**
|
|
1761
|
-
* User's username.
|
|
1762
|
-
*
|
|
1763
|
-
* To return this field, add `fields=username` in the user profile request's query parameter.
|
|
1764
|
-
*/
|
|
1765
|
-
username: string;
|
|
1766
|
-
/** @note Email is currently unsupported by TikTok */
|
|
1767
|
-
email?: string;
|
|
1768
|
-
/**
|
|
1769
|
-
* User's bio description if there is a valid one.
|
|
1770
|
-
*
|
|
1771
|
-
* To return this field, add `fields=bio_description` in the user profile request's query parameter.
|
|
1772
|
-
*/
|
|
1773
|
-
bio_description?: string;
|
|
1774
|
-
/**
|
|
1775
|
-
* The link to user's TikTok profile page.
|
|
1776
|
-
*
|
|
1777
|
-
* To return this field, add `fields=profile_deep_link` in the user profile request's query parameter.
|
|
1778
|
-
*/
|
|
1779
|
-
profile_deep_link?: string;
|
|
1780
|
-
/**
|
|
1781
|
-
* Whether TikTok has provided a verified badge to the account after confirming
|
|
1782
|
-
* that it belongs to the user it represents.
|
|
1783
|
-
*
|
|
1784
|
-
* To return this field, add `fields=is_verified` in the user profile request's query parameter.
|
|
1785
|
-
*/
|
|
1786
|
-
is_verified?: boolean;
|
|
1787
|
-
/**
|
|
1788
|
-
* User's followers count.
|
|
1789
|
-
*
|
|
1790
|
-
* To return this field, add `fields=follower_count` in the user profile request's query parameter.
|
|
1791
|
-
*/
|
|
1792
|
-
follower_count?: number;
|
|
1793
|
-
/**
|
|
1794
|
-
* The number of accounts that the user is following.
|
|
1795
|
-
*
|
|
1796
|
-
* To return this field, add `fields=following_count` in the user profile request's query parameter.
|
|
1797
|
-
*/
|
|
1798
|
-
following_count?: number;
|
|
1799
|
-
/**
|
|
1800
|
-
* The total number of likes received by the user across all of their videos.
|
|
1801
|
-
*
|
|
1802
|
-
* To return this field, add `fields=likes_count` in the user profile request's query parameter.
|
|
1803
|
-
*/
|
|
1804
|
-
likes_count?: number;
|
|
1805
|
-
/**
|
|
1806
|
-
* The total number of publicly posted videos by the user.
|
|
1807
|
-
*
|
|
1808
|
-
* To return this field, add `fields=video_count` in the user profile request's query parameter.
|
|
1809
|
-
*/
|
|
1810
|
-
video_count?: number;
|
|
1811
|
-
};
|
|
1812
|
-
};
|
|
1813
|
-
error?: {
|
|
1814
|
-
/**
|
|
1815
|
-
* The error category in string.
|
|
1816
|
-
*/
|
|
1817
|
-
code?: string;
|
|
1818
|
-
/**
|
|
1819
|
-
* The error message in string.
|
|
1820
|
-
*/
|
|
1821
|
-
message?: string;
|
|
1822
|
-
/**
|
|
1823
|
-
* The error message in string.
|
|
1824
|
-
*/
|
|
1825
|
-
log_id?: string;
|
|
1826
|
-
};
|
|
1827
|
-
}
|
|
1828
|
-
interface TiktokOptions extends ProviderOptions$1 {
|
|
1829
|
-
clientId?: never;
|
|
1830
|
-
clientSecret: string;
|
|
1831
|
-
clientKey: string;
|
|
1832
|
-
}
|
|
1833
|
-
declare const tiktok: (options: TiktokOptions) => {
|
|
1834
|
-
id: "tiktok";
|
|
1835
|
-
name: string;
|
|
1836
|
-
createAuthorizationURL({
|
|
1837
|
-
state,
|
|
1838
|
-
scopes,
|
|
1839
|
-
redirectURI
|
|
1840
|
-
}: {
|
|
1841
|
-
state: string;
|
|
1842
|
-
codeVerifier: string;
|
|
1843
|
-
scopes?: string[];
|
|
1844
|
-
redirectURI: string;
|
|
1845
|
-
display?: string;
|
|
1846
|
-
loginHint?: string;
|
|
1847
|
-
}): URL;
|
|
1848
|
-
validateAuthorizationCode: ({
|
|
1849
|
-
code,
|
|
1850
|
-
redirectURI
|
|
1851
|
-
}: {
|
|
1852
|
-
code: string;
|
|
1853
|
-
redirectURI: string;
|
|
1854
|
-
codeVerifier?: string;
|
|
1855
|
-
deviceId?: string;
|
|
1856
|
-
}) => Promise<OAuth2Tokens$1>;
|
|
1857
|
-
refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens$1>;
|
|
1858
|
-
getUserInfo(token: OAuth2Tokens$1 & {
|
|
1859
|
-
user?: {
|
|
1860
|
-
name?: {
|
|
1861
|
-
firstName?: string;
|
|
1862
|
-
lastName?: string;
|
|
1863
|
-
};
|
|
1864
|
-
email?: string;
|
|
1865
|
-
};
|
|
1866
|
-
}): Promise<{
|
|
1867
|
-
user: {
|
|
1868
|
-
id: string;
|
|
1869
|
-
name?: string;
|
|
1870
|
-
email?: string | null;
|
|
1871
|
-
image?: string;
|
|
1872
|
-
emailVerified: boolean;
|
|
1873
|
-
[key: string]: any;
|
|
1874
|
-
};
|
|
1875
|
-
data: any;
|
|
1876
|
-
} | null>;
|
|
1877
|
-
options: TiktokOptions;
|
|
1878
|
-
};
|
|
1879
|
-
//#endregion
|
|
1880
|
-
//#region src/social-providers/reddit.d.ts
|
|
1881
|
-
interface RedditProfile {
|
|
1882
|
-
id: string;
|
|
1883
|
-
name: string;
|
|
1884
|
-
icon_img: string | null;
|
|
1885
|
-
has_verified_email: boolean;
|
|
1886
|
-
oauth_client_id: string;
|
|
1887
|
-
verified: boolean;
|
|
1888
|
-
}
|
|
1889
|
-
interface RedditOptions extends ProviderOptions$1<RedditProfile> {
|
|
1890
|
-
clientId: string;
|
|
1891
|
-
duration?: string;
|
|
1892
|
-
}
|
|
1893
|
-
declare const reddit: (options: RedditOptions) => {
|
|
1894
|
-
id: "reddit";
|
|
1895
|
-
name: string;
|
|
1896
|
-
createAuthorizationURL({
|
|
1897
|
-
state,
|
|
1898
|
-
scopes,
|
|
1899
|
-
redirectURI
|
|
1900
|
-
}: {
|
|
1901
|
-
state: string;
|
|
1902
|
-
codeVerifier: string;
|
|
1903
|
-
scopes?: string[];
|
|
1904
|
-
redirectURI: string;
|
|
1905
|
-
display?: string;
|
|
1906
|
-
loginHint?: string;
|
|
1907
|
-
}): Promise<URL>;
|
|
1908
|
-
validateAuthorizationCode: ({
|
|
1909
|
-
code,
|
|
1910
|
-
redirectURI
|
|
1911
|
-
}: {
|
|
1912
|
-
code: string;
|
|
1913
|
-
redirectURI: string;
|
|
1914
|
-
codeVerifier?: string;
|
|
1915
|
-
deviceId?: string;
|
|
1916
|
-
}) => Promise<OAuth2Tokens$1>;
|
|
1917
|
-
refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens$1>;
|
|
1918
|
-
getUserInfo(token: OAuth2Tokens$1 & {
|
|
1919
|
-
user?: {
|
|
1920
|
-
name?: {
|
|
1921
|
-
firstName?: string;
|
|
1922
|
-
lastName?: string;
|
|
1923
|
-
};
|
|
1924
|
-
email?: string;
|
|
1925
|
-
};
|
|
1926
|
-
}): Promise<{
|
|
1927
|
-
user: {
|
|
1928
|
-
id: string;
|
|
1929
|
-
name?: string;
|
|
1930
|
-
email?: string | null;
|
|
1931
|
-
image?: string;
|
|
1932
|
-
emailVerified: boolean;
|
|
1933
|
-
[key: string]: any;
|
|
1934
|
-
};
|
|
1935
|
-
data: any;
|
|
1936
|
-
} | null>;
|
|
1937
|
-
options: RedditOptions;
|
|
1938
|
-
};
|
|
1939
|
-
//#endregion
|
|
1940
|
-
//#region src/social-providers/roblox.d.ts
|
|
1941
|
-
interface RobloxProfile extends Record<string, any> {
|
|
1942
|
-
/** the user's id */
|
|
1943
|
-
sub: string;
|
|
1944
|
-
/** the user's username */
|
|
1945
|
-
preferred_username: string;
|
|
1946
|
-
/** the user's display name, will return the same value as the preferred_username if not set */
|
|
1947
|
-
nickname: string;
|
|
1948
|
-
/** the user's display name, again, will return the same value as the preferred_username if not set */
|
|
1949
|
-
name: string;
|
|
1950
|
-
/** the account creation date as a unix timestamp in seconds */
|
|
1951
|
-
created_at: number;
|
|
1952
|
-
/** the user's profile URL */
|
|
1953
|
-
profile: string;
|
|
1954
|
-
/** the user's avatar URL */
|
|
1955
|
-
picture: string;
|
|
1956
|
-
}
|
|
1957
|
-
interface RobloxOptions extends ProviderOptions$1<RobloxProfile> {
|
|
1958
|
-
clientId: string;
|
|
1959
|
-
prompt?: "none" | "consent" | "login" | "select_account" | "select_account consent";
|
|
1960
|
-
}
|
|
1961
|
-
declare const roblox: (options: RobloxOptions) => {
|
|
1962
|
-
id: "roblox";
|
|
1963
|
-
name: string;
|
|
1964
|
-
createAuthorizationURL({
|
|
1965
|
-
state,
|
|
1966
|
-
scopes,
|
|
1967
|
-
redirectURI
|
|
1968
|
-
}: {
|
|
1969
|
-
state: string;
|
|
1970
|
-
codeVerifier: string;
|
|
1971
|
-
scopes?: string[];
|
|
1972
|
-
redirectURI: string;
|
|
1973
|
-
display?: string;
|
|
1974
|
-
loginHint?: string;
|
|
1975
|
-
}): URL;
|
|
1976
|
-
validateAuthorizationCode: ({
|
|
1977
|
-
code,
|
|
1978
|
-
redirectURI
|
|
1979
|
-
}: {
|
|
1980
|
-
code: string;
|
|
1981
|
-
redirectURI: string;
|
|
1982
|
-
codeVerifier?: string;
|
|
1983
|
-
deviceId?: string;
|
|
1984
|
-
}) => Promise<OAuth2Tokens$1>;
|
|
1985
|
-
refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens$1>;
|
|
1986
|
-
getUserInfo(token: OAuth2Tokens$1 & {
|
|
1987
|
-
user?: {
|
|
1988
|
-
name?: {
|
|
1989
|
-
firstName?: string;
|
|
1990
|
-
lastName?: string;
|
|
1991
|
-
};
|
|
1992
|
-
email?: string;
|
|
1993
|
-
};
|
|
1994
|
-
}): Promise<{
|
|
1995
|
-
user: {
|
|
1996
|
-
id: string;
|
|
1997
|
-
name?: string;
|
|
1998
|
-
email?: string | null;
|
|
1999
|
-
image?: string;
|
|
2000
|
-
emailVerified: boolean;
|
|
2001
|
-
[key: string]: any;
|
|
2002
|
-
};
|
|
2003
|
-
data: any;
|
|
2004
|
-
} | null>;
|
|
2005
|
-
options: RobloxOptions;
|
|
2006
|
-
};
|
|
2007
|
-
//#endregion
|
|
2008
|
-
//#region src/social-providers/salesforce.d.ts
|
|
2009
|
-
interface SalesforceProfile {
|
|
2010
|
-
sub: string;
|
|
2011
|
-
user_id: string;
|
|
2012
|
-
organization_id: string;
|
|
2013
|
-
preferred_username?: string;
|
|
2014
|
-
email: string;
|
|
2015
|
-
email_verified?: boolean;
|
|
2016
|
-
name: string;
|
|
2017
|
-
given_name?: string;
|
|
2018
|
-
family_name?: string;
|
|
2019
|
-
zoneinfo?: string;
|
|
2020
|
-
photos?: {
|
|
2021
|
-
picture?: string;
|
|
2022
|
-
thumbnail?: string;
|
|
2023
|
-
};
|
|
2024
|
-
}
|
|
2025
|
-
interface SalesforceOptions extends ProviderOptions$1<SalesforceProfile> {
|
|
2026
|
-
clientId: string;
|
|
2027
|
-
environment?: "sandbox" | "production";
|
|
2028
|
-
loginUrl?: string;
|
|
2029
|
-
/**
|
|
2030
|
-
* Override the redirect URI if auto-detection fails.
|
|
2031
|
-
* Should match the Callback URL configured in your Salesforce Connected App.
|
|
2032
|
-
* @example "http://localhost:3000/api/auth/callback/salesforce"
|
|
2033
|
-
*/
|
|
2034
|
-
redirectURI?: string;
|
|
2035
|
-
}
|
|
2036
|
-
declare const salesforce: (options: SalesforceOptions) => {
|
|
2037
|
-
id: "salesforce";
|
|
2038
|
-
name: string;
|
|
2039
|
-
createAuthorizationURL({
|
|
2040
|
-
state,
|
|
2041
|
-
scopes,
|
|
2042
|
-
codeVerifier,
|
|
2043
|
-
redirectURI
|
|
2044
|
-
}: {
|
|
2045
|
-
state: string;
|
|
2046
|
-
codeVerifier: string;
|
|
2047
|
-
scopes?: string[];
|
|
2048
|
-
redirectURI: string;
|
|
2049
|
-
display?: string;
|
|
2050
|
-
loginHint?: string;
|
|
2051
|
-
}): Promise<URL>;
|
|
2052
|
-
validateAuthorizationCode: ({
|
|
2053
|
-
code,
|
|
2054
|
-
codeVerifier,
|
|
2055
|
-
redirectURI
|
|
2056
|
-
}: {
|
|
2057
|
-
code: string;
|
|
2058
|
-
redirectURI: string;
|
|
2059
|
-
codeVerifier?: string;
|
|
2060
|
-
deviceId?: string;
|
|
2061
|
-
}) => Promise<OAuth2Tokens$1>;
|
|
2062
|
-
refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens$1>;
|
|
2063
|
-
getUserInfo(token: OAuth2Tokens$1 & {
|
|
2064
|
-
user?: {
|
|
2065
|
-
name?: {
|
|
2066
|
-
firstName?: string;
|
|
2067
|
-
lastName?: string;
|
|
2068
|
-
};
|
|
2069
|
-
email?: string;
|
|
2070
|
-
};
|
|
2071
|
-
}): Promise<{
|
|
2072
|
-
user: {
|
|
2073
|
-
id: string;
|
|
2074
|
-
name?: string;
|
|
2075
|
-
email?: string | null;
|
|
2076
|
-
image?: string;
|
|
2077
|
-
emailVerified: boolean;
|
|
2078
|
-
[key: string]: any;
|
|
2079
|
-
};
|
|
2080
|
-
data: any;
|
|
2081
|
-
} | null>;
|
|
2082
|
-
options: SalesforceOptions;
|
|
2083
|
-
};
|
|
2084
|
-
//#endregion
|
|
2085
|
-
//#region src/social-providers/vk.d.ts
|
|
2086
|
-
interface VkProfile {
|
|
2087
|
-
user: {
|
|
2088
|
-
user_id: string;
|
|
2089
|
-
first_name: string;
|
|
2090
|
-
last_name: string;
|
|
2091
|
-
email?: string;
|
|
2092
|
-
phone?: number;
|
|
2093
|
-
avatar?: string;
|
|
2094
|
-
sex?: number;
|
|
2095
|
-
verified?: boolean;
|
|
2096
|
-
birthday: string;
|
|
2097
|
-
};
|
|
2098
|
-
}
|
|
2099
|
-
interface VkOption extends ProviderOptions$1 {
|
|
2100
|
-
clientId: string;
|
|
2101
|
-
scheme?: "light" | "dark";
|
|
2102
|
-
}
|
|
2103
|
-
declare const vk: (options: VkOption) => {
|
|
2104
|
-
id: "vk";
|
|
2105
|
-
name: string;
|
|
2106
|
-
createAuthorizationURL({
|
|
2107
|
-
state,
|
|
2108
|
-
scopes,
|
|
2109
|
-
codeVerifier,
|
|
2110
|
-
redirectURI
|
|
2111
|
-
}: {
|
|
2112
|
-
state: string;
|
|
2113
|
-
codeVerifier: string;
|
|
2114
|
-
scopes?: string[];
|
|
2115
|
-
redirectURI: string;
|
|
2116
|
-
display?: string;
|
|
2117
|
-
loginHint?: string;
|
|
2118
|
-
}): Promise<URL>;
|
|
2119
|
-
validateAuthorizationCode: ({
|
|
2120
|
-
code,
|
|
2121
|
-
codeVerifier,
|
|
2122
|
-
redirectURI,
|
|
2123
|
-
deviceId
|
|
2124
|
-
}: {
|
|
2125
|
-
code: string;
|
|
2126
|
-
redirectURI: string;
|
|
2127
|
-
codeVerifier?: string;
|
|
2128
|
-
deviceId?: string;
|
|
2129
|
-
}) => Promise<OAuth2Tokens$1>;
|
|
2130
|
-
refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens$1>;
|
|
2131
|
-
getUserInfo(data: OAuth2Tokens$1 & {
|
|
2132
|
-
user?: {
|
|
2133
|
-
name?: {
|
|
2134
|
-
firstName?: string;
|
|
2135
|
-
lastName?: string;
|
|
2136
|
-
};
|
|
2137
|
-
email?: string;
|
|
2138
|
-
};
|
|
2139
|
-
}): Promise<{
|
|
2140
|
-
user: {
|
|
2141
|
-
id: string;
|
|
2142
|
-
name?: string;
|
|
2143
|
-
email?: string | null;
|
|
2144
|
-
image?: string;
|
|
2145
|
-
emailVerified: boolean;
|
|
2146
|
-
[key: string]: any;
|
|
2147
|
-
};
|
|
2148
|
-
data: any;
|
|
2149
|
-
} | null>;
|
|
2150
|
-
options: VkOption;
|
|
2151
|
-
};
|
|
2152
|
-
//#endregion
|
|
2153
|
-
//#region src/social-providers/zoom.d.ts
|
|
2154
|
-
type LoginType = 0 /** Facebook OAuth */ | 1 /** Google OAuth */ | 24 /** Apple OAuth */ | 27 /** Microsoft OAuth */ | 97 /** Mobile device */ | 98 /** RingCentral OAuth */ | 99 /** API user */ | 100 /** Zoom Work email */ | 101;
|
|
2155
|
-
/** Single Sign-On (SSO) */
|
|
2156
|
-
type AccountStatus = "pending" | "active" | "inactive";
|
|
2157
|
-
type PronounOption = 1 /** Ask the user every time */ | 2 /** Always display */ | 3;
|
|
2158
|
-
/** Do not display */
|
|
2159
|
-
interface PhoneNumber {
|
|
2160
|
-
/** The country code of the phone number (Example: "+1") */
|
|
2161
|
-
code: string;
|
|
2162
|
-
/** The country of the phone number (Example: "US") */
|
|
2163
|
-
country: string;
|
|
2164
|
-
/** The label for the phone number (Example: "Mobile") */
|
|
2165
|
-
label: string;
|
|
2166
|
-
/** The phone number itself (Example: "800000000") */
|
|
2167
|
-
number: string;
|
|
2168
|
-
/** Whether the phone number has been verified (Example: true) */
|
|
2169
|
-
verified: boolean;
|
|
2170
|
-
}
|
|
2171
|
-
/**
|
|
2172
|
-
* See the full documentation below:
|
|
2173
|
-
* https://developers.zoom.us/docs/api/users/#tag/users/GET/users/{userId}
|
|
2174
|
-
*/
|
|
2175
|
-
interface ZoomProfile extends Record<string, any> {
|
|
2176
|
-
/** The user's account ID (Example: "q6gBJVO5TzexKYTb_I2rpg") */
|
|
2177
|
-
account_id: string;
|
|
2178
|
-
/** The user's account number (Example: 10009239) */
|
|
2179
|
-
account_number: number;
|
|
2180
|
-
/** The user's cluster (Example: "us04") */
|
|
2181
|
-
cluster: string;
|
|
2182
|
-
/** The user's CMS ID. Only enabled for Kaltura integration (Example: "KDcuGIm1QgePTO8WbOqwIQ") */
|
|
2183
|
-
cms_user_id: string;
|
|
2184
|
-
/** The user's cost center (Example: "cost center") */
|
|
2185
|
-
cost_center: string;
|
|
2186
|
-
/** User create time (Example: "2018-10-31T04:32:37Z") */
|
|
2187
|
-
created_at: string;
|
|
2188
|
-
/** Department (Example: "Developers") */
|
|
2189
|
-
dept: string;
|
|
2190
|
-
/** User's display name (Example: "Jill Chill") */
|
|
2191
|
-
display_name: string;
|
|
2192
|
-
/** User's email address (Example: "jchill@example.com") */
|
|
2193
|
-
email: string;
|
|
2194
|
-
/** User's first name (Example: "Jill") */
|
|
2195
|
-
first_name: string;
|
|
2196
|
-
/** IDs of the web groups that the user belongs to (Example: ["RSMaSp8sTEGK0_oamiA2_w"]) */
|
|
2197
|
-
group_ids: string[];
|
|
2198
|
-
/** User ID (Example: "zJKyaiAyTNC-MWjiWC18KQ") */
|
|
2199
|
-
id: string;
|
|
2200
|
-
/** IM IDs of the groups that the user belongs to (Example: ["t-_-d56CSWG-7BF15LLrOw"]) */
|
|
2201
|
-
im_group_ids: string[];
|
|
2202
|
-
/** The user's JID (Example: "jchill@example.com") */
|
|
2203
|
-
jid: string;
|
|
2204
|
-
/** The user's job title (Example: "API Developer") */
|
|
2205
|
-
job_title: string;
|
|
2206
|
-
/** Default language for the Zoom Web Portal (Example: "en-US") */
|
|
2207
|
-
language: string;
|
|
2208
|
-
/** User last login client version (Example: "5.9.6.4993(mac)") */
|
|
2209
|
-
last_client_version: string;
|
|
2210
|
-
/** User last login time (Example: "2021-05-05T20:40:30Z") */
|
|
2211
|
-
last_login_time: string;
|
|
2212
|
-
/** User's last name (Example: "Chill") */
|
|
2213
|
-
last_name: string;
|
|
2214
|
-
/** The time zone of the user (Example: "Asia/Shanghai") */
|
|
2215
|
-
timezone: string;
|
|
2216
|
-
/** User's location (Example: "Paris") */
|
|
2217
|
-
location: string;
|
|
2218
|
-
/** The user's login method (Example: 101) */
|
|
2219
|
-
login_types: LoginType[];
|
|
2220
|
-
/** User's personal meeting URL (Example: "example.com") */
|
|
2221
|
-
personal_meeting_url: string;
|
|
2222
|
-
/** This field has been deprecated and will not be supported in the future.
|
|
2223
|
-
* Use the phone_numbers field instead of this field.
|
|
2224
|
-
* The user's phone number (Example: "+1 800000000") */
|
|
2225
|
-
phone_number?: string;
|
|
2226
|
-
/** The URL for user's profile picture (Example: "example.com") */
|
|
2227
|
-
pic_url: string;
|
|
2228
|
-
/** Personal Meeting ID (PMI) (Example: 3542471135) */
|
|
2229
|
-
pmi: number;
|
|
2230
|
-
/** Unique identifier of the user's assigned role (Example: "0") */
|
|
2231
|
-
role_id: string;
|
|
2232
|
-
/** User's role name (Example: "Admin") */
|
|
2233
|
-
role_name: string;
|
|
2234
|
-
/** Status of user's account (Example: "pending") */
|
|
2235
|
-
status: AccountStatus;
|
|
2236
|
-
/** Use the personal meeting ID (PMI) for instant meetings (Example: false) */
|
|
2237
|
-
use_pmi: boolean;
|
|
2238
|
-
/** The time and date when the user was created (Example: "2018-10-31T04:32:37Z") */
|
|
2239
|
-
user_created_at: string;
|
|
2240
|
-
/** Displays whether user is verified or not (Example: 1) */
|
|
2241
|
-
verified: number;
|
|
2242
|
-
/** The user's Zoom Workplace plan option (Example: 64) */
|
|
2243
|
-
zoom_one_type: number;
|
|
2244
|
-
/** The user's company (Example: "Jill") */
|
|
2245
|
-
company?: string;
|
|
2246
|
-
/** Custom attributes that have been assigned to the user (Example: [{ "key": "cbf_cywdkexrtqc73f97gd4w6g", "name": "A1", "value": "1" }]) */
|
|
2247
|
-
custom_attributes?: {
|
|
2248
|
-
key: string;
|
|
2249
|
-
name: string;
|
|
2250
|
-
value: string;
|
|
2251
|
-
}[];
|
|
2252
|
-
/** The employee's unique ID. This field only returns when SAML single sign-on (SSO) is enabled.
|
|
2253
|
-
* The `login_type` value is `101` (SSO) (Example: "HqDyI037Qjili1kNsSIrIg") */
|
|
2254
|
-
employee_unique_id?: string;
|
|
2255
|
-
/** The manager for the user (Example: "thill@example.com") */
|
|
2256
|
-
manager?: string;
|
|
2257
|
-
/** The user's country for the company phone number (Example: "US")
|
|
2258
|
-
* @deprecated true */
|
|
2259
|
-
phone_country?: string;
|
|
2260
|
-
/** The phone number's ISO country code (Example: "+1") */
|
|
2261
|
-
phone_numbers?: PhoneNumber[];
|
|
2262
|
-
/** The user's plan type (Example: "1") */
|
|
2263
|
-
plan_united_type?: string;
|
|
2264
|
-
/** The user's pronouns (Example: "3123") */
|
|
2265
|
-
pronouns?: string;
|
|
2266
|
-
/** The user's display pronouns setting (Example: 1) */
|
|
2267
|
-
pronouns_option?: PronounOption;
|
|
2268
|
-
/** Personal meeting room URL, if the user has one (Example: "example.com") */
|
|
2269
|
-
vanity_url?: string;
|
|
2270
|
-
}
|
|
2271
|
-
interface ZoomOptions extends ProviderOptions$1<ZoomProfile> {
|
|
2272
|
-
clientId: string;
|
|
2273
|
-
pkce?: boolean;
|
|
2274
|
-
}
|
|
2275
|
-
declare const zoom: (userOptions: ZoomOptions) => {
|
|
2276
|
-
id: "zoom";
|
|
2277
|
-
name: string;
|
|
2278
|
-
createAuthorizationURL: ({
|
|
2279
|
-
state,
|
|
2280
|
-
redirectURI,
|
|
2281
|
-
codeVerifier
|
|
2282
|
-
}: {
|
|
2283
|
-
state: string;
|
|
2284
|
-
codeVerifier: string;
|
|
2285
|
-
scopes?: string[];
|
|
2286
|
-
redirectURI: string;
|
|
2287
|
-
display?: string;
|
|
2288
|
-
loginHint?: string;
|
|
2289
|
-
}) => Promise<URL>;
|
|
2290
|
-
validateAuthorizationCode: ({
|
|
2291
|
-
code,
|
|
2292
|
-
redirectURI,
|
|
2293
|
-
codeVerifier
|
|
2294
|
-
}: {
|
|
2295
|
-
code: string;
|
|
2296
|
-
redirectURI: string;
|
|
2297
|
-
codeVerifier?: string;
|
|
2298
|
-
deviceId?: string;
|
|
2299
|
-
}) => Promise<OAuth2Tokens$1>;
|
|
2300
|
-
getUserInfo(token: OAuth2Tokens$1 & {
|
|
2301
|
-
user?: {
|
|
2302
|
-
name?: {
|
|
2303
|
-
firstName?: string;
|
|
2304
|
-
lastName?: string;
|
|
2305
|
-
};
|
|
2306
|
-
email?: string;
|
|
2307
|
-
};
|
|
2308
|
-
}): Promise<{
|
|
2309
|
-
user: {
|
|
2310
|
-
id: string;
|
|
2311
|
-
name?: string;
|
|
2312
|
-
email?: string | null;
|
|
2313
|
-
image?: string;
|
|
2314
|
-
emailVerified: boolean;
|
|
2315
|
-
[key: string]: any;
|
|
2316
|
-
};
|
|
2317
|
-
data: any;
|
|
2318
|
-
} | null>;
|
|
2319
|
-
};
|
|
2320
|
-
//#endregion
|
|
2321
|
-
//#region src/social-providers/notion.d.ts
|
|
2322
|
-
interface NotionProfile {
|
|
2323
|
-
object: "user";
|
|
2324
|
-
id: string;
|
|
2325
|
-
type: "person" | "bot";
|
|
2326
|
-
name?: string;
|
|
2327
|
-
avatar_url?: string;
|
|
2328
|
-
person?: {
|
|
2329
|
-
email?: string;
|
|
2330
|
-
};
|
|
2331
|
-
}
|
|
2332
|
-
interface NotionOptions extends ProviderOptions$1<NotionProfile> {
|
|
2333
|
-
clientId: string;
|
|
2334
|
-
}
|
|
2335
|
-
declare const notion: (options: NotionOptions) => {
|
|
2336
|
-
id: "notion";
|
|
2337
|
-
name: string;
|
|
2338
|
-
createAuthorizationURL({
|
|
2339
|
-
state,
|
|
2340
|
-
scopes,
|
|
2341
|
-
loginHint,
|
|
2342
|
-
redirectURI
|
|
2343
|
-
}: {
|
|
2344
|
-
state: string;
|
|
2345
|
-
codeVerifier: string;
|
|
2346
|
-
scopes?: string[];
|
|
2347
|
-
redirectURI: string;
|
|
2348
|
-
display?: string;
|
|
2349
|
-
loginHint?: string;
|
|
2350
|
-
}): Promise<URL>;
|
|
2351
|
-
validateAuthorizationCode: ({
|
|
2352
|
-
code,
|
|
2353
|
-
redirectURI
|
|
2354
|
-
}: {
|
|
2355
|
-
code: string;
|
|
2356
|
-
redirectURI: string;
|
|
2357
|
-
codeVerifier?: string;
|
|
2358
|
-
deviceId?: string;
|
|
2359
|
-
}) => Promise<OAuth2Tokens$1>;
|
|
2360
|
-
refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens$1>;
|
|
2361
|
-
getUserInfo(token: OAuth2Tokens$1 & {
|
|
2362
|
-
user?: {
|
|
2363
|
-
name?: {
|
|
2364
|
-
firstName?: string;
|
|
2365
|
-
lastName?: string;
|
|
2366
|
-
};
|
|
2367
|
-
email?: string;
|
|
2368
|
-
};
|
|
2369
|
-
}): Promise<{
|
|
2370
|
-
user: {
|
|
2371
|
-
id: string;
|
|
2372
|
-
name?: string;
|
|
2373
|
-
email?: string | null;
|
|
2374
|
-
image?: string;
|
|
2375
|
-
emailVerified: boolean;
|
|
2376
|
-
[key: string]: any;
|
|
2377
|
-
};
|
|
2378
|
-
data: any;
|
|
2379
|
-
} | null>;
|
|
2380
|
-
options: NotionOptions;
|
|
2381
|
-
};
|
|
2382
|
-
//#endregion
|
|
2383
|
-
//#region src/social-providers/kakao.d.ts
|
|
2384
|
-
interface Partner {
|
|
2385
|
-
/** Partner-specific ID (consent required: kakaotalk_message) */
|
|
2386
|
-
uuid?: string;
|
|
2387
|
-
}
|
|
2388
|
-
interface Profile {
|
|
2389
|
-
/** Nickname (consent required: profile/nickname) */
|
|
2390
|
-
nickname?: string;
|
|
2391
|
-
/** Thumbnail image URL (consent required: profile/profile image) */
|
|
2392
|
-
thumbnail_image_url?: string;
|
|
2393
|
-
/** Profile image URL (consent required: profile/profile image) */
|
|
2394
|
-
profile_image_url?: string;
|
|
2395
|
-
/** Whether the profile image is the default */
|
|
2396
|
-
is_default_image?: boolean;
|
|
2397
|
-
/** Whether the nickname is the default */
|
|
2398
|
-
is_default_nickname?: boolean;
|
|
2399
|
-
}
|
|
2400
|
-
interface KakaoAccount {
|
|
2401
|
-
/** Consent required: profile info (nickname/profile image) */
|
|
2402
|
-
profile_needs_agreement?: boolean;
|
|
2403
|
-
/** Consent required: nickname */
|
|
2404
|
-
profile_nickname_needs_agreement?: boolean;
|
|
2405
|
-
/** Consent required: profile image */
|
|
2406
|
-
profile_image_needs_agreement?: boolean;
|
|
2407
|
-
/** Profile info */
|
|
2408
|
-
profile?: Profile;
|
|
2409
|
-
/** Consent required: name */
|
|
2410
|
-
name_needs_agreement?: boolean;
|
|
2411
|
-
/** Name */
|
|
2412
|
-
name?: string;
|
|
2413
|
-
/** Consent required: email */
|
|
2414
|
-
email_needs_agreement?: boolean;
|
|
2415
|
-
/** Email valid */
|
|
2416
|
-
is_email_valid?: boolean;
|
|
2417
|
-
/** Email verified */
|
|
2418
|
-
is_email_verified?: boolean;
|
|
2419
|
-
/** Email */
|
|
2420
|
-
email?: string;
|
|
2421
|
-
/** Consent required: age range */
|
|
2422
|
-
age_range_needs_agreement?: boolean;
|
|
2423
|
-
/** Age range */
|
|
2424
|
-
age_range?: string;
|
|
2425
|
-
/** Consent required: birth year */
|
|
2426
|
-
birthyear_needs_agreement?: boolean;
|
|
2427
|
-
/** Birth year (YYYY) */
|
|
2428
|
-
birthyear?: string;
|
|
2429
|
-
/** Consent required: birthday */
|
|
2430
|
-
birthday_needs_agreement?: boolean;
|
|
2431
|
-
/** Birthday (MMDD) */
|
|
2432
|
-
birthday?: string;
|
|
2433
|
-
/** Birthday type (SOLAR/LUNAR) */
|
|
2434
|
-
birthday_type?: string;
|
|
2435
|
-
/** Whether birthday is in a leap month */
|
|
2436
|
-
is_leap_month?: boolean;
|
|
2437
|
-
/** Consent required: gender */
|
|
2438
|
-
gender_needs_agreement?: boolean;
|
|
2439
|
-
/** Gender (male/female) */
|
|
2440
|
-
gender?: string;
|
|
2441
|
-
/** Consent required: phone number */
|
|
2442
|
-
phone_number_needs_agreement?: boolean;
|
|
2443
|
-
/** Phone number */
|
|
2444
|
-
phone_number?: string;
|
|
2445
|
-
/** Consent required: CI */
|
|
2446
|
-
ci_needs_agreement?: boolean;
|
|
2447
|
-
/** CI (unique identifier) */
|
|
2448
|
-
ci?: string;
|
|
2449
|
-
/** CI authentication time (UTC) */
|
|
2450
|
-
ci_authenticated_at?: string;
|
|
2451
|
-
}
|
|
2452
|
-
interface KakaoProfile {
|
|
2453
|
-
/** Kakao user ID */
|
|
2454
|
-
id: number;
|
|
2455
|
-
/**
|
|
2456
|
-
* Whether the user has signed up (only present if auto-connection is disabled)
|
|
2457
|
-
* false: preregistered, true: registered
|
|
2458
|
-
*/
|
|
2459
|
-
has_signed_up?: boolean;
|
|
2460
|
-
/** UTC datetime when the user connected the service */
|
|
2461
|
-
connected_at?: string;
|
|
2462
|
-
/** UTC datetime when the user signed up via Kakao Sync */
|
|
2463
|
-
synched_at?: string;
|
|
2464
|
-
/** Custom user properties */
|
|
2465
|
-
properties?: Record<string, any>;
|
|
2466
|
-
/** Kakao account info */
|
|
2467
|
-
kakao_account: KakaoAccount;
|
|
2468
|
-
/** Partner info */
|
|
2469
|
-
for_partner?: Partner;
|
|
2470
|
-
}
|
|
2471
|
-
interface KakaoOptions extends ProviderOptions$1<KakaoProfile> {
|
|
2472
|
-
clientId: string;
|
|
2473
|
-
}
|
|
2474
|
-
declare const kakao: (options: KakaoOptions) => {
|
|
2475
|
-
id: "kakao";
|
|
2476
|
-
name: string;
|
|
2477
|
-
createAuthorizationURL({
|
|
2478
|
-
state,
|
|
2479
|
-
scopes,
|
|
2480
|
-
redirectURI
|
|
2481
|
-
}: {
|
|
2482
|
-
state: string;
|
|
2483
|
-
codeVerifier: string;
|
|
2484
|
-
scopes?: string[];
|
|
2485
|
-
redirectURI: string;
|
|
2486
|
-
display?: string;
|
|
2487
|
-
loginHint?: string;
|
|
2488
|
-
}): Promise<URL>;
|
|
2489
|
-
validateAuthorizationCode: ({
|
|
2490
|
-
code,
|
|
2491
|
-
redirectURI
|
|
2492
|
-
}: {
|
|
2493
|
-
code: string;
|
|
2494
|
-
redirectURI: string;
|
|
2495
|
-
codeVerifier?: string;
|
|
2496
|
-
deviceId?: string;
|
|
2497
|
-
}) => Promise<OAuth2Tokens$1>;
|
|
2498
|
-
refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens$1>;
|
|
2499
|
-
getUserInfo(token: OAuth2Tokens$1 & {
|
|
2500
|
-
user?: {
|
|
2501
|
-
name?: {
|
|
2502
|
-
firstName?: string;
|
|
2503
|
-
lastName?: string;
|
|
2504
|
-
};
|
|
2505
|
-
email?: string;
|
|
2506
|
-
};
|
|
2507
|
-
}): Promise<{
|
|
2508
|
-
user: {
|
|
2509
|
-
id: string;
|
|
2510
|
-
name?: string;
|
|
2511
|
-
email?: string | null;
|
|
2512
|
-
image?: string;
|
|
2513
|
-
emailVerified: boolean;
|
|
2514
|
-
[key: string]: any;
|
|
2515
|
-
};
|
|
2516
|
-
data: any;
|
|
2517
|
-
} | {
|
|
2518
|
-
user: {
|
|
2519
|
-
id: string;
|
|
2520
|
-
name: string | undefined;
|
|
2521
|
-
email: string | undefined;
|
|
2522
|
-
image: string | undefined;
|
|
2523
|
-
emailVerified: boolean;
|
|
2524
|
-
} | {
|
|
2525
|
-
id: string;
|
|
2526
|
-
name: string;
|
|
2527
|
-
email: string | null;
|
|
2528
|
-
image: string;
|
|
2529
|
-
emailVerified: boolean;
|
|
2530
|
-
} | {
|
|
2531
|
-
id: string;
|
|
2532
|
-
name: string;
|
|
2533
|
-
email: string | null;
|
|
2534
|
-
image: string;
|
|
2535
|
-
emailVerified: boolean;
|
|
2536
|
-
};
|
|
2537
|
-
data: KakaoProfile;
|
|
2538
|
-
} | null>;
|
|
2539
|
-
options: KakaoOptions;
|
|
2540
|
-
};
|
|
2541
|
-
//#endregion
|
|
2542
|
-
//#region src/social-providers/naver.d.ts
|
|
2543
|
-
interface NaverProfile {
|
|
2544
|
-
/** API response result code */
|
|
2545
|
-
resultcode: string;
|
|
2546
|
-
/** API response message */
|
|
2547
|
-
message: string;
|
|
2548
|
-
response: {
|
|
2549
|
-
/** Unique Naver user identifier */
|
|
2550
|
-
id: string;
|
|
2551
|
-
/** User nickname */
|
|
2552
|
-
nickname: string;
|
|
2553
|
-
/** User real name */
|
|
2554
|
-
name: string;
|
|
2555
|
-
/** User email address */
|
|
2556
|
-
email: string;
|
|
2557
|
-
/** Gender (F: female, M: male, U: unknown) */
|
|
2558
|
-
gender: string;
|
|
2559
|
-
/** Age range */
|
|
2560
|
-
age: string;
|
|
2561
|
-
/** Birthday (MM-DD format) */
|
|
2562
|
-
birthday: string;
|
|
2563
|
-
/** Birth year */
|
|
2564
|
-
birthyear: string;
|
|
2565
|
-
/** Profile image URL */
|
|
2566
|
-
profile_image: string;
|
|
2567
|
-
/** Mobile phone number */
|
|
2568
|
-
mobile: string;
|
|
2569
|
-
};
|
|
2570
|
-
}
|
|
2571
|
-
interface NaverOptions extends ProviderOptions$1<NaverProfile> {
|
|
2572
|
-
clientId: string;
|
|
2573
|
-
}
|
|
2574
|
-
declare const naver: (options: NaverOptions) => {
|
|
2575
|
-
id: "naver";
|
|
2576
|
-
name: string;
|
|
2577
|
-
createAuthorizationURL({
|
|
2578
|
-
state,
|
|
2579
|
-
scopes,
|
|
2580
|
-
redirectURI
|
|
2581
|
-
}: {
|
|
2582
|
-
state: string;
|
|
2583
|
-
codeVerifier: string;
|
|
2584
|
-
scopes?: string[];
|
|
2585
|
-
redirectURI: string;
|
|
2586
|
-
display?: string;
|
|
2587
|
-
loginHint?: string;
|
|
2588
|
-
}): Promise<URL>;
|
|
2589
|
-
validateAuthorizationCode: ({
|
|
2590
|
-
code,
|
|
2591
|
-
redirectURI
|
|
2592
|
-
}: {
|
|
2593
|
-
code: string;
|
|
2594
|
-
redirectURI: string;
|
|
2595
|
-
codeVerifier?: string;
|
|
2596
|
-
deviceId?: string;
|
|
2597
|
-
}) => Promise<OAuth2Tokens$1>;
|
|
2598
|
-
refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens$1>;
|
|
2599
|
-
getUserInfo(token: OAuth2Tokens$1 & {
|
|
2600
|
-
user?: {
|
|
2601
|
-
name?: {
|
|
2602
|
-
firstName?: string;
|
|
2603
|
-
lastName?: string;
|
|
2604
|
-
};
|
|
2605
|
-
email?: string;
|
|
2606
|
-
};
|
|
2607
|
-
}): Promise<{
|
|
2608
|
-
user: {
|
|
2609
|
-
id: string;
|
|
2610
|
-
name?: string;
|
|
2611
|
-
email?: string | null;
|
|
2612
|
-
image?: string;
|
|
2613
|
-
emailVerified: boolean;
|
|
2614
|
-
[key: string]: any;
|
|
2615
|
-
};
|
|
2616
|
-
data: any;
|
|
2617
|
-
} | {
|
|
2618
|
-
user: {
|
|
2619
|
-
id: string;
|
|
2620
|
-
name: string;
|
|
2621
|
-
email: string;
|
|
2622
|
-
image: string;
|
|
2623
|
-
emailVerified: boolean;
|
|
2624
|
-
} | {
|
|
2625
|
-
id: string;
|
|
2626
|
-
name: string;
|
|
2627
|
-
email: string | null;
|
|
2628
|
-
image: string;
|
|
2629
|
-
emailVerified: boolean;
|
|
2630
|
-
} | {
|
|
2631
|
-
id: string;
|
|
2632
|
-
name: string;
|
|
2633
|
-
email: string | null;
|
|
2634
|
-
image: string;
|
|
2635
|
-
emailVerified: boolean;
|
|
2636
|
-
};
|
|
2637
|
-
data: NaverProfile;
|
|
2638
|
-
} | null>;
|
|
2639
|
-
options: NaverOptions;
|
|
2640
|
-
};
|
|
2641
|
-
//#endregion
|
|
2642
|
-
//#region src/social-providers/line.d.ts
|
|
2643
|
-
interface LineIdTokenPayload {
|
|
2644
|
-
iss: string;
|
|
2645
|
-
sub: string;
|
|
2646
|
-
aud: string;
|
|
2647
|
-
exp: number;
|
|
2648
|
-
iat: number;
|
|
2649
|
-
name?: string;
|
|
2650
|
-
picture?: string;
|
|
2651
|
-
email?: string;
|
|
2652
|
-
amr?: string[];
|
|
2653
|
-
nonce?: string;
|
|
2654
|
-
}
|
|
2655
|
-
interface LineUserInfo {
|
|
2656
|
-
sub: string;
|
|
2657
|
-
name?: string;
|
|
2658
|
-
picture?: string;
|
|
2659
|
-
email?: string;
|
|
2660
|
-
}
|
|
2661
|
-
interface LineOptions extends ProviderOptions$1<LineUserInfo | LineIdTokenPayload> {
|
|
2662
|
-
clientId: string;
|
|
2663
|
-
}
|
|
2664
|
-
/**
|
|
2665
|
-
* LINE Login v2.1
|
|
2666
|
-
* - Authorization endpoint: https://access.line.me/oauth2/v2.1/authorize
|
|
2667
|
-
* - Token endpoint: https://api.line.me/oauth2/v2.1/token
|
|
2668
|
-
* - UserInfo endpoint: https://api.line.me/oauth2/v2.1/userinfo
|
|
2669
|
-
* - Verify ID token: https://api.line.me/oauth2/v2.1/verify
|
|
2670
|
-
*
|
|
2671
|
-
* Docs: https://developers.line.biz/en/reference/line-login/#issue-access-token
|
|
2672
|
-
*/
|
|
2673
|
-
declare const line: (options: LineOptions) => {
|
|
2674
|
-
id: "line";
|
|
2675
|
-
name: string;
|
|
2676
|
-
createAuthorizationURL({
|
|
2677
|
-
state,
|
|
2678
|
-
scopes,
|
|
2679
|
-
codeVerifier,
|
|
2680
|
-
redirectURI,
|
|
2681
|
-
loginHint
|
|
2682
|
-
}: {
|
|
2683
|
-
state: string;
|
|
2684
|
-
codeVerifier: string;
|
|
2685
|
-
scopes?: string[];
|
|
2686
|
-
redirectURI: string;
|
|
2687
|
-
display?: string;
|
|
2688
|
-
loginHint?: string;
|
|
2689
|
-
}): Promise<URL>;
|
|
2690
|
-
validateAuthorizationCode: ({
|
|
2691
|
-
code,
|
|
2692
|
-
codeVerifier,
|
|
2693
|
-
redirectURI
|
|
2694
|
-
}: {
|
|
2695
|
-
code: string;
|
|
2696
|
-
redirectURI: string;
|
|
2697
|
-
codeVerifier?: string;
|
|
2698
|
-
deviceId?: string;
|
|
2699
|
-
}) => Promise<OAuth2Tokens$1>;
|
|
2700
|
-
refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens$1>;
|
|
2701
|
-
verifyIdToken(token: string, nonce: string | undefined): Promise<boolean>;
|
|
2702
|
-
getUserInfo(token: OAuth2Tokens$1 & {
|
|
2703
|
-
user?: {
|
|
2704
|
-
name?: {
|
|
2705
|
-
firstName?: string;
|
|
2706
|
-
lastName?: string;
|
|
2707
|
-
};
|
|
2708
|
-
email?: string;
|
|
2709
|
-
};
|
|
2710
|
-
}): Promise<{
|
|
2711
|
-
user: {
|
|
2712
|
-
id: string;
|
|
2713
|
-
name?: string;
|
|
2714
|
-
email?: string | null;
|
|
2715
|
-
image?: string;
|
|
2716
|
-
emailVerified: boolean;
|
|
2717
|
-
[key: string]: any;
|
|
2718
|
-
};
|
|
2719
|
-
data: any;
|
|
2720
|
-
} | {
|
|
2721
|
-
user: {
|
|
2722
|
-
id: any;
|
|
2723
|
-
name: any;
|
|
2724
|
-
email: any;
|
|
2725
|
-
image: any;
|
|
2726
|
-
emailVerified: false;
|
|
2727
|
-
} | {
|
|
2728
|
-
id: any;
|
|
2729
|
-
name: any;
|
|
2730
|
-
email: any;
|
|
2731
|
-
image: any;
|
|
2732
|
-
emailVerified: boolean;
|
|
2733
|
-
} | {
|
|
2734
|
-
id: any;
|
|
2735
|
-
name: any;
|
|
2736
|
-
email: any;
|
|
2737
|
-
image: any;
|
|
2738
|
-
emailVerified: boolean;
|
|
2739
|
-
};
|
|
2740
|
-
data: any;
|
|
2741
|
-
} | null>;
|
|
2742
|
-
options: LineOptions;
|
|
2743
|
-
};
|
|
2744
|
-
//#endregion
|
|
2745
|
-
//#region src/social-providers/paypal.d.ts
|
|
2746
|
-
interface PayPalProfile {
|
|
2747
|
-
user_id: string;
|
|
2748
|
-
name: string;
|
|
2749
|
-
given_name: string;
|
|
2750
|
-
family_name: string;
|
|
2751
|
-
middle_name?: string;
|
|
2752
|
-
picture?: string;
|
|
2753
|
-
email: string;
|
|
2754
|
-
email_verified: boolean;
|
|
2755
|
-
gender?: string;
|
|
2756
|
-
birthdate?: string;
|
|
2757
|
-
zoneinfo?: string;
|
|
2758
|
-
locale?: string;
|
|
2759
|
-
phone_number?: string;
|
|
2760
|
-
address?: {
|
|
2761
|
-
street_address?: string;
|
|
2762
|
-
locality?: string;
|
|
2763
|
-
region?: string;
|
|
2764
|
-
postal_code?: string;
|
|
2765
|
-
country?: string;
|
|
2766
|
-
};
|
|
2767
|
-
verified_account?: boolean;
|
|
2768
|
-
account_type?: string;
|
|
2769
|
-
age_range?: string;
|
|
2770
|
-
payer_id?: string;
|
|
2771
|
-
}
|
|
2772
|
-
interface PayPalTokenResponse {
|
|
2773
|
-
scope?: string;
|
|
2774
|
-
access_token: string;
|
|
2775
|
-
refresh_token?: string;
|
|
2776
|
-
token_type: "Bearer";
|
|
2777
|
-
id_token?: string;
|
|
2778
|
-
expires_in: number;
|
|
2779
|
-
nonce?: string;
|
|
2780
|
-
}
|
|
2781
|
-
interface PayPalOptions extends ProviderOptions$1<PayPalProfile> {
|
|
2782
|
-
clientId: string;
|
|
2783
|
-
/**
|
|
2784
|
-
* PayPal environment - 'sandbox' for testing, 'live' for production
|
|
2785
|
-
* @default 'sandbox'
|
|
2786
|
-
*/
|
|
2787
|
-
environment?: "sandbox" | "live";
|
|
2788
|
-
/**
|
|
2789
|
-
* Whether to request shipping address information
|
|
2790
|
-
* @default false
|
|
2791
|
-
*/
|
|
2792
|
-
requestShippingAddress?: boolean;
|
|
2793
|
-
}
|
|
2794
|
-
declare const paypal: (options: PayPalOptions) => {
|
|
2795
|
-
id: "paypal";
|
|
2796
|
-
name: string;
|
|
2797
|
-
createAuthorizationURL({
|
|
2798
|
-
state,
|
|
2799
|
-
codeVerifier,
|
|
2800
|
-
redirectURI
|
|
2801
|
-
}: {
|
|
2802
|
-
state: string;
|
|
2803
|
-
codeVerifier: string;
|
|
2804
|
-
scopes?: string[];
|
|
2805
|
-
redirectURI: string;
|
|
2806
|
-
display?: string;
|
|
2807
|
-
loginHint?: string;
|
|
2808
|
-
}): Promise<URL>;
|
|
2809
|
-
validateAuthorizationCode: ({
|
|
2810
|
-
code,
|
|
2811
|
-
redirectURI
|
|
2812
|
-
}: {
|
|
2813
|
-
code: string;
|
|
2814
|
-
redirectURI: string;
|
|
2815
|
-
codeVerifier?: string;
|
|
2816
|
-
deviceId?: string;
|
|
2817
|
-
}) => Promise<{
|
|
2818
|
-
accessToken: string;
|
|
2819
|
-
refreshToken: string | undefined;
|
|
2820
|
-
accessTokenExpiresAt: Date | undefined;
|
|
2821
|
-
idToken: string | undefined;
|
|
2822
|
-
}>;
|
|
2823
|
-
refreshAccessToken: ((refreshToken: string) => Promise<OAuth2Tokens$1>) | ((refreshToken: string) => Promise<{
|
|
2824
|
-
accessToken: any;
|
|
2825
|
-
refreshToken: any;
|
|
2826
|
-
accessTokenExpiresAt: Date | undefined;
|
|
2827
|
-
}>);
|
|
2828
|
-
verifyIdToken(token: string, nonce: string | undefined): Promise<boolean>;
|
|
2829
|
-
getUserInfo(token: OAuth2Tokens$1 & {
|
|
2830
|
-
user?: {
|
|
2831
|
-
name?: {
|
|
2832
|
-
firstName?: string;
|
|
2833
|
-
lastName?: string;
|
|
2834
|
-
};
|
|
2835
|
-
email?: string;
|
|
2836
|
-
};
|
|
2837
|
-
}): Promise<{
|
|
2838
|
-
user: {
|
|
2839
|
-
id: string;
|
|
2840
|
-
name?: string;
|
|
2841
|
-
email?: string | null;
|
|
2842
|
-
image?: string;
|
|
2843
|
-
emailVerified: boolean;
|
|
2844
|
-
[key: string]: any;
|
|
2845
|
-
};
|
|
2846
|
-
data: any;
|
|
2847
|
-
} | {
|
|
2848
|
-
user: {
|
|
2849
|
-
id: string;
|
|
2850
|
-
name: string;
|
|
2851
|
-
email: string;
|
|
2852
|
-
image: string | undefined;
|
|
2853
|
-
emailVerified: boolean;
|
|
2854
|
-
} | {
|
|
2855
|
-
id: string;
|
|
2856
|
-
name: string;
|
|
2857
|
-
email: string | null;
|
|
2858
|
-
image: string;
|
|
2859
|
-
emailVerified: boolean;
|
|
2860
|
-
} | {
|
|
2861
|
-
id: string;
|
|
2862
|
-
name: string;
|
|
2863
|
-
email: string | null;
|
|
2864
|
-
image: string;
|
|
2865
|
-
emailVerified: boolean;
|
|
2866
|
-
};
|
|
2867
|
-
data: PayPalProfile;
|
|
2868
|
-
} | null>;
|
|
2869
|
-
options: PayPalOptions;
|
|
2870
|
-
};
|
|
2871
|
-
//#endregion
|
|
2872
|
-
//#region dist/index-CZCOI9An.d.ts
|
|
2873
|
-
//#region src/oauth2/oauth-provider.d.ts
|
|
2874
|
-
interface OAuth2Tokens {
|
|
2875
|
-
tokenType?: string;
|
|
2876
|
-
accessToken?: string;
|
|
2877
|
-
refreshToken?: string;
|
|
2878
|
-
accessTokenExpiresAt?: Date;
|
|
2879
|
-
refreshTokenExpiresAt?: Date;
|
|
2880
|
-
scopes?: string[];
|
|
2881
|
-
idToken?: string;
|
|
2882
|
-
}
|
|
2883
|
-
type ProviderOptions<Profile$1 extends Record<string, any> = any> = {
|
|
2884
|
-
/**
|
|
2885
|
-
* The client ID of your application.
|
|
2886
|
-
*
|
|
2887
|
-
* This is usually a string but can be any type depending on the provider.
|
|
2888
|
-
*/
|
|
2889
|
-
clientId?: unknown;
|
|
2890
|
-
/**
|
|
2891
|
-
* The client secret of your application
|
|
2892
|
-
*/
|
|
2893
|
-
clientSecret?: string;
|
|
2894
|
-
/**
|
|
2895
|
-
* The scopes you want to request from the provider
|
|
2896
|
-
*/
|
|
2897
|
-
scope?: string[];
|
|
2898
|
-
/**
|
|
2899
|
-
* Remove default scopes of the provider
|
|
2900
|
-
*/
|
|
2901
|
-
disableDefaultScope?: boolean;
|
|
2902
|
-
/**
|
|
2903
|
-
* The redirect URL for your application. This is where the provider will
|
|
2904
|
-
* redirect the user after the sign in process. Make sure this URL is
|
|
2905
|
-
* whitelisted in the provider's dashboard.
|
|
2906
|
-
*/
|
|
2907
|
-
redirectURI?: string;
|
|
2908
|
-
/**
|
|
2909
|
-
* The client key of your application
|
|
2910
|
-
* Tiktok Social Provider uses this field instead of clientId
|
|
2911
|
-
*/
|
|
2912
|
-
clientKey?: string;
|
|
2913
|
-
/**
|
|
2914
|
-
* Disable provider from allowing users to sign in
|
|
2915
|
-
* with this provider with an id token sent from the
|
|
2916
|
-
* client.
|
|
2917
|
-
*/
|
|
2918
|
-
disableIdTokenSignIn?: boolean;
|
|
2919
|
-
/**
|
|
2920
|
-
* verifyIdToken function to verify the id token
|
|
2921
|
-
*/
|
|
2922
|
-
verifyIdToken?: (token: string, nonce?: string) => Promise<boolean>;
|
|
2923
|
-
/**
|
|
2924
|
-
* Custom function to get user info from the provider
|
|
2925
|
-
*/
|
|
2926
|
-
getUserInfo?: (token: OAuth2Tokens) => Promise<{
|
|
2927
|
-
user: {
|
|
2928
|
-
id: string;
|
|
2929
|
-
name?: string;
|
|
2930
|
-
email?: string | null;
|
|
2931
|
-
image?: string;
|
|
2932
|
-
emailVerified: boolean;
|
|
2933
|
-
[key: string]: any;
|
|
2934
|
-
};
|
|
2935
|
-
data: any;
|
|
2936
|
-
}>;
|
|
2937
|
-
/**
|
|
2938
|
-
* Custom function to refresh a token
|
|
2939
|
-
*/
|
|
2940
|
-
refreshAccessToken?: (refreshToken: string) => Promise<OAuth2Tokens>;
|
|
2941
|
-
/**
|
|
2942
|
-
* Custom function to map the provider profile to a
|
|
2943
|
-
* user.
|
|
2944
|
-
*/
|
|
2945
|
-
mapProfileToUser?: (profile: Profile$1) => {
|
|
2946
|
-
id?: string;
|
|
2947
|
-
name?: string;
|
|
2948
|
-
email?: string | null;
|
|
2949
|
-
image?: string;
|
|
2950
|
-
emailVerified?: boolean;
|
|
2951
|
-
[key: string]: any;
|
|
2952
|
-
} | Promise<{
|
|
2953
|
-
id?: string;
|
|
2954
|
-
name?: string;
|
|
2955
|
-
email?: string | null;
|
|
2956
|
-
image?: string;
|
|
2957
|
-
emailVerified?: boolean;
|
|
2958
|
-
[key: string]: any;
|
|
2959
|
-
}>;
|
|
2960
|
-
/**
|
|
2961
|
-
* Disable implicit sign up for new users. When set to true for the provider,
|
|
2962
|
-
* sign-in need to be called with with requestSignUp as true to create new users.
|
|
2963
|
-
*/
|
|
2964
|
-
disableImplicitSignUp?: boolean;
|
|
2965
|
-
/**
|
|
2966
|
-
* Disable sign up for new users.
|
|
2967
|
-
*/
|
|
2968
|
-
disableSignUp?: boolean;
|
|
2969
|
-
/**
|
|
2970
|
-
* The prompt to use for the authorization code request
|
|
2971
|
-
*/
|
|
2972
|
-
prompt?: "select_account" | "consent" | "login" | "none" | "select_account consent";
|
|
2973
|
-
/**
|
|
2974
|
-
* The response mode to use for the authorization code request
|
|
2975
|
-
*/
|
|
2976
|
-
responseMode?: "query" | "form_post";
|
|
2977
|
-
/**
|
|
2978
|
-
* If enabled, the user info will be overridden with the provider user info
|
|
2979
|
-
* This is useful if you want to use the provider user info to update the user info
|
|
2980
|
-
*
|
|
2981
|
-
* @default false
|
|
2982
|
-
*/
|
|
2983
|
-
overrideUserInfoOnSignIn?: boolean;
|
|
2984
|
-
};
|
|
2985
|
-
//#endregion
|
|
2986
|
-
//#region src/oauth2/utils.d.ts
|
|
2987
|
-
//#endregion
|
|
2988
|
-
//#region src/social-providers/polar.d.ts
|
|
2989
|
-
interface PolarProfile {
|
|
2990
|
-
id: string;
|
|
2991
|
-
email: string;
|
|
2992
|
-
username: string;
|
|
2993
|
-
avatar_url: string;
|
|
2994
|
-
github_username?: string;
|
|
2995
|
-
account_id?: string;
|
|
2996
|
-
public_name?: string;
|
|
2997
|
-
profile_settings?: {
|
|
2998
|
-
profile_settings_enabled?: boolean;
|
|
2999
|
-
profile_settings_public_name?: string;
|
|
3000
|
-
profile_settings_public_avatar?: string;
|
|
3001
|
-
profile_settings_public_bio?: string;
|
|
3002
|
-
profile_settings_public_location?: string;
|
|
3003
|
-
profile_settings_public_website?: string;
|
|
3004
|
-
profile_settings_public_twitter?: string;
|
|
3005
|
-
profile_settings_public_github?: string;
|
|
3006
|
-
profile_settings_public_email?: string;
|
|
3007
|
-
};
|
|
3008
|
-
}
|
|
3009
|
-
interface PolarOptions extends ProviderOptions<PolarProfile> {}
|
|
3010
|
-
declare const polar: (options: PolarOptions) => {
|
|
3011
|
-
id: "polar";
|
|
3012
|
-
name: string;
|
|
3013
|
-
createAuthorizationURL({
|
|
3014
|
-
state,
|
|
3015
|
-
scopes,
|
|
3016
|
-
codeVerifier,
|
|
3017
|
-
redirectURI
|
|
3018
|
-
}: {
|
|
3019
|
-
state: string;
|
|
3020
|
-
codeVerifier: string;
|
|
3021
|
-
scopes?: string[];
|
|
3022
|
-
redirectURI: string;
|
|
3023
|
-
display?: string;
|
|
3024
|
-
loginHint?: string;
|
|
3025
|
-
}): Promise<URL>;
|
|
3026
|
-
validateAuthorizationCode: ({
|
|
3027
|
-
code,
|
|
3028
|
-
codeVerifier,
|
|
3029
|
-
redirectURI
|
|
3030
|
-
}: {
|
|
3031
|
-
code: string;
|
|
3032
|
-
redirectURI: string;
|
|
3033
|
-
codeVerifier?: string;
|
|
3034
|
-
deviceId?: string;
|
|
3035
|
-
}) => Promise<OAuth2Tokens>;
|
|
3036
|
-
refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens>;
|
|
3037
|
-
getUserInfo(token: OAuth2Tokens & {
|
|
3038
|
-
user?: {
|
|
3039
|
-
name?: {
|
|
3040
|
-
firstName?: string;
|
|
3041
|
-
lastName?: string;
|
|
3042
|
-
};
|
|
3043
|
-
email?: string;
|
|
3044
|
-
};
|
|
3045
|
-
}): Promise<{
|
|
3046
|
-
user: {
|
|
3047
|
-
id: string;
|
|
3048
|
-
name?: string;
|
|
3049
|
-
email?: string | null;
|
|
3050
|
-
image?: string;
|
|
3051
|
-
emailVerified: boolean;
|
|
3052
|
-
[key: string]: any;
|
|
3053
|
-
};
|
|
3054
|
-
data: any;
|
|
3055
|
-
} | null>;
|
|
3056
|
-
options: PolarOptions;
|
|
3057
|
-
};
|
|
3058
|
-
//#endregion
|
|
3059
|
-
//#region src/social-providers/index.d.ts
|
|
3060
|
-
declare const socialProviders: {
|
|
3061
|
-
apple: (options: AppleOptions) => {
|
|
3062
|
-
id: "apple";
|
|
3063
|
-
name: string;
|
|
3064
|
-
createAuthorizationURL({
|
|
3065
|
-
state,
|
|
3066
|
-
scopes,
|
|
3067
|
-
redirectURI
|
|
3068
|
-
}: {
|
|
3069
|
-
state: string;
|
|
3070
|
-
codeVerifier: string;
|
|
3071
|
-
scopes?: string[];
|
|
3072
|
-
redirectURI: string;
|
|
3073
|
-
display?: string;
|
|
3074
|
-
loginHint?: string;
|
|
3075
|
-
}): Promise<URL>;
|
|
3076
|
-
validateAuthorizationCode: ({
|
|
3077
|
-
code,
|
|
3078
|
-
codeVerifier,
|
|
3079
|
-
redirectURI
|
|
3080
|
-
}: {
|
|
3081
|
-
code: string;
|
|
3082
|
-
redirectURI: string;
|
|
3083
|
-
codeVerifier?: string;
|
|
3084
|
-
deviceId?: string;
|
|
3085
|
-
}) => Promise<OAuth2Tokens$1>;
|
|
3086
|
-
verifyIdToken(token: string, nonce: string | undefined): Promise<boolean>;
|
|
3087
|
-
refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens$1>;
|
|
3088
|
-
getUserInfo(token: OAuth2Tokens$1 & {
|
|
3089
|
-
user?: {
|
|
3090
|
-
name?: {
|
|
3091
|
-
firstName?: string;
|
|
3092
|
-
lastName?: string;
|
|
3093
|
-
};
|
|
3094
|
-
email?: string;
|
|
3095
|
-
};
|
|
3096
|
-
}): Promise<{
|
|
3097
|
-
user: {
|
|
3098
|
-
id: string;
|
|
3099
|
-
name?: string;
|
|
3100
|
-
email?: string | null;
|
|
3101
|
-
image?: string;
|
|
3102
|
-
emailVerified: boolean;
|
|
3103
|
-
[key: string]: any;
|
|
3104
|
-
};
|
|
3105
|
-
data: any;
|
|
3106
|
-
} | null>;
|
|
3107
|
-
options: AppleOptions;
|
|
3108
|
-
};
|
|
3109
|
-
atlassian: (options: AtlassianOptions) => {
|
|
3110
|
-
id: "atlassian";
|
|
3111
|
-
name: string;
|
|
3112
|
-
createAuthorizationURL({
|
|
3113
|
-
state,
|
|
3114
|
-
scopes,
|
|
3115
|
-
codeVerifier,
|
|
3116
|
-
redirectURI
|
|
3117
|
-
}: {
|
|
3118
|
-
state: string;
|
|
3119
|
-
codeVerifier: string;
|
|
3120
|
-
scopes?: string[];
|
|
3121
|
-
redirectURI: string;
|
|
3122
|
-
display?: string;
|
|
3123
|
-
loginHint?: string;
|
|
3124
|
-
}): Promise<URL>;
|
|
3125
|
-
validateAuthorizationCode: ({
|
|
3126
|
-
code,
|
|
3127
|
-
codeVerifier,
|
|
3128
|
-
redirectURI
|
|
3129
|
-
}: {
|
|
3130
|
-
code: string;
|
|
3131
|
-
redirectURI: string;
|
|
3132
|
-
codeVerifier?: string;
|
|
3133
|
-
deviceId?: string;
|
|
3134
|
-
}) => Promise<OAuth2Tokens$1>;
|
|
3135
|
-
refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens$1>;
|
|
3136
|
-
getUserInfo(token: OAuth2Tokens$1 & {
|
|
3137
|
-
user?: {
|
|
3138
|
-
name?: {
|
|
3139
|
-
firstName?: string;
|
|
3140
|
-
lastName?: string;
|
|
3141
|
-
};
|
|
3142
|
-
email?: string;
|
|
3143
|
-
};
|
|
3144
|
-
}): Promise<{
|
|
3145
|
-
user: {
|
|
3146
|
-
id: string;
|
|
3147
|
-
name?: string;
|
|
3148
|
-
email?: string | null;
|
|
3149
|
-
image?: string;
|
|
3150
|
-
emailVerified: boolean;
|
|
3151
|
-
[key: string]: any;
|
|
3152
|
-
};
|
|
3153
|
-
data: any;
|
|
3154
|
-
} | null>;
|
|
3155
|
-
options: AtlassianOptions;
|
|
3156
|
-
};
|
|
3157
|
-
cognito: (options: CognitoOptions) => {
|
|
3158
|
-
id: "cognito";
|
|
3159
|
-
name: string;
|
|
3160
|
-
createAuthorizationURL({
|
|
3161
|
-
state,
|
|
3162
|
-
scopes,
|
|
3163
|
-
codeVerifier,
|
|
3164
|
-
redirectURI
|
|
3165
|
-
}: {
|
|
3166
|
-
state: string;
|
|
3167
|
-
codeVerifier: string;
|
|
3168
|
-
scopes?: string[];
|
|
3169
|
-
redirectURI: string;
|
|
3170
|
-
display?: string;
|
|
3171
|
-
loginHint?: string;
|
|
3172
|
-
}): Promise<URL>;
|
|
3173
|
-
validateAuthorizationCode: ({
|
|
3174
|
-
code,
|
|
3175
|
-
codeVerifier,
|
|
3176
|
-
redirectURI
|
|
3177
|
-
}: {
|
|
3178
|
-
code: string;
|
|
3179
|
-
redirectURI: string;
|
|
3180
|
-
codeVerifier?: string;
|
|
3181
|
-
deviceId?: string;
|
|
3182
|
-
}) => Promise<OAuth2Tokens$1>;
|
|
3183
|
-
refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens$1>;
|
|
3184
|
-
verifyIdToken(token: string, nonce: string | undefined): Promise<boolean>;
|
|
3185
|
-
getUserInfo(token: OAuth2Tokens$1 & {
|
|
3186
|
-
user?: {
|
|
3187
|
-
name?: {
|
|
3188
|
-
firstName?: string;
|
|
3189
|
-
lastName?: string;
|
|
3190
|
-
};
|
|
3191
|
-
email?: string;
|
|
3192
|
-
};
|
|
3193
|
-
}): Promise<{
|
|
3194
|
-
user: {
|
|
3195
|
-
id: string;
|
|
3196
|
-
name?: string;
|
|
3197
|
-
email?: string | null;
|
|
3198
|
-
image?: string;
|
|
3199
|
-
emailVerified: boolean;
|
|
3200
|
-
[key: string]: any;
|
|
3201
|
-
};
|
|
3202
|
-
data: any;
|
|
3203
|
-
} | null>;
|
|
3204
|
-
options: CognitoOptions;
|
|
3205
|
-
};
|
|
3206
|
-
discord: (options: DiscordOptions) => {
|
|
3207
|
-
id: "discord";
|
|
3208
|
-
name: string;
|
|
3209
|
-
createAuthorizationURL({
|
|
3210
|
-
state,
|
|
3211
|
-
scopes,
|
|
3212
|
-
redirectURI
|
|
3213
|
-
}: {
|
|
3214
|
-
state: string;
|
|
3215
|
-
codeVerifier: string;
|
|
3216
|
-
scopes?: string[];
|
|
3217
|
-
redirectURI: string;
|
|
3218
|
-
display?: string;
|
|
3219
|
-
loginHint?: string;
|
|
3220
|
-
}): URL;
|
|
3221
|
-
validateAuthorizationCode: ({
|
|
3222
|
-
code,
|
|
3223
|
-
redirectURI
|
|
3224
|
-
}: {
|
|
3225
|
-
code: string;
|
|
3226
|
-
redirectURI: string;
|
|
3227
|
-
codeVerifier?: string;
|
|
3228
|
-
deviceId?: string;
|
|
3229
|
-
}) => Promise<OAuth2Tokens$1>;
|
|
3230
|
-
refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens$1>;
|
|
3231
|
-
getUserInfo(token: OAuth2Tokens$1 & {
|
|
3232
|
-
user?: {
|
|
3233
|
-
name?: {
|
|
3234
|
-
firstName?: string;
|
|
3235
|
-
lastName?: string;
|
|
3236
|
-
};
|
|
3237
|
-
email?: string;
|
|
3238
|
-
};
|
|
3239
|
-
}): Promise<{
|
|
3240
|
-
user: {
|
|
3241
|
-
id: string;
|
|
3242
|
-
name?: string;
|
|
3243
|
-
email?: string | null;
|
|
3244
|
-
image?: string;
|
|
3245
|
-
emailVerified: boolean;
|
|
3246
|
-
[key: string]: any;
|
|
3247
|
-
};
|
|
3248
|
-
data: any;
|
|
3249
|
-
} | null>;
|
|
3250
|
-
options: DiscordOptions;
|
|
3251
|
-
};
|
|
3252
|
-
facebook: (options: FacebookOptions) => {
|
|
3253
|
-
id: "facebook";
|
|
3254
|
-
name: string;
|
|
3255
|
-
createAuthorizationURL({
|
|
3256
|
-
state,
|
|
3257
|
-
scopes,
|
|
3258
|
-
redirectURI,
|
|
3259
|
-
loginHint
|
|
3260
|
-
}: {
|
|
3261
|
-
state: string;
|
|
3262
|
-
codeVerifier: string;
|
|
3263
|
-
scopes?: string[];
|
|
3264
|
-
redirectURI: string;
|
|
3265
|
-
display?: string;
|
|
3266
|
-
loginHint?: string;
|
|
3267
|
-
}): Promise<URL>;
|
|
3268
|
-
validateAuthorizationCode: ({
|
|
3269
|
-
code,
|
|
3270
|
-
redirectURI
|
|
3271
|
-
}: {
|
|
3272
|
-
code: string;
|
|
3273
|
-
redirectURI: string;
|
|
3274
|
-
codeVerifier?: string;
|
|
3275
|
-
deviceId?: string;
|
|
3276
|
-
}) => Promise<OAuth2Tokens$1>;
|
|
3277
|
-
verifyIdToken(token: string, nonce: string | undefined): Promise<boolean>;
|
|
3278
|
-
refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens$1>;
|
|
3279
|
-
getUserInfo(token: OAuth2Tokens$1 & {
|
|
3280
|
-
user?: {
|
|
3281
|
-
name?: {
|
|
3282
|
-
firstName?: string;
|
|
3283
|
-
lastName?: string;
|
|
3284
|
-
};
|
|
3285
|
-
email?: string;
|
|
3286
|
-
};
|
|
3287
|
-
}): Promise<{
|
|
3288
|
-
user: {
|
|
3289
|
-
id: string;
|
|
3290
|
-
name?: string;
|
|
3291
|
-
email?: string | null;
|
|
3292
|
-
image?: string;
|
|
3293
|
-
emailVerified: boolean;
|
|
3294
|
-
[key: string]: any;
|
|
3295
|
-
};
|
|
3296
|
-
data: any;
|
|
3297
|
-
} | null>;
|
|
3298
|
-
options: FacebookOptions;
|
|
3299
|
-
};
|
|
3300
|
-
figma: (options: FigmaOptions) => {
|
|
3301
|
-
id: "figma";
|
|
3302
|
-
name: string;
|
|
3303
|
-
createAuthorizationURL({
|
|
3304
|
-
state,
|
|
3305
|
-
scopes,
|
|
3306
|
-
codeVerifier,
|
|
3307
|
-
redirectURI
|
|
3308
|
-
}: {
|
|
3309
|
-
state: string;
|
|
3310
|
-
codeVerifier: string;
|
|
3311
|
-
scopes?: string[];
|
|
3312
|
-
redirectURI: string;
|
|
3313
|
-
display?: string;
|
|
3314
|
-
loginHint?: string;
|
|
3315
|
-
}): Promise<URL>;
|
|
3316
|
-
validateAuthorizationCode: ({
|
|
3317
|
-
code,
|
|
3318
|
-
codeVerifier,
|
|
3319
|
-
redirectURI
|
|
3320
|
-
}: {
|
|
3321
|
-
code: string;
|
|
3322
|
-
redirectURI: string;
|
|
3323
|
-
codeVerifier?: string;
|
|
3324
|
-
deviceId?: string;
|
|
3325
|
-
}) => Promise<OAuth2Tokens$1>;
|
|
3326
|
-
refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens$1>;
|
|
3327
|
-
getUserInfo(token: OAuth2Tokens$1 & {
|
|
3328
|
-
user?: {
|
|
3329
|
-
name?: {
|
|
3330
|
-
firstName?: string;
|
|
3331
|
-
lastName?: string;
|
|
3332
|
-
};
|
|
3333
|
-
email?: string;
|
|
3334
|
-
};
|
|
3335
|
-
}): Promise<{
|
|
3336
|
-
user: {
|
|
3337
|
-
id: string;
|
|
3338
|
-
name?: string;
|
|
3339
|
-
email?: string | null;
|
|
3340
|
-
image?: string;
|
|
3341
|
-
emailVerified: boolean;
|
|
3342
|
-
[key: string]: any;
|
|
3343
|
-
};
|
|
3344
|
-
data: any;
|
|
3345
|
-
} | null>;
|
|
3346
|
-
options: FigmaOptions;
|
|
3347
|
-
};
|
|
3348
|
-
github: (options: GithubOptions) => {
|
|
3349
|
-
id: "github";
|
|
3350
|
-
name: string;
|
|
3351
|
-
createAuthorizationURL({
|
|
3352
|
-
state,
|
|
3353
|
-
scopes,
|
|
3354
|
-
loginHint,
|
|
3355
|
-
redirectURI
|
|
3356
|
-
}: {
|
|
3357
|
-
state: string;
|
|
3358
|
-
codeVerifier: string;
|
|
3359
|
-
scopes?: string[];
|
|
3360
|
-
redirectURI: string;
|
|
3361
|
-
display?: string;
|
|
3362
|
-
loginHint?: string;
|
|
3363
|
-
}): Promise<URL>;
|
|
3364
|
-
validateAuthorizationCode: ({
|
|
3365
|
-
code,
|
|
3366
|
-
redirectURI
|
|
3367
|
-
}: {
|
|
3368
|
-
code: string;
|
|
3369
|
-
redirectURI: string;
|
|
3370
|
-
codeVerifier?: string;
|
|
3371
|
-
deviceId?: string;
|
|
3372
|
-
}) => Promise<OAuth2Tokens$1>;
|
|
3373
|
-
refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens$1>;
|
|
3374
|
-
getUserInfo(token: OAuth2Tokens$1 & {
|
|
3375
|
-
user?: {
|
|
3376
|
-
name?: {
|
|
3377
|
-
firstName?: string;
|
|
3378
|
-
lastName?: string;
|
|
3379
|
-
};
|
|
3380
|
-
email?: string;
|
|
3381
|
-
};
|
|
3382
|
-
}): Promise<{
|
|
3383
|
-
user: {
|
|
3384
|
-
id: string;
|
|
3385
|
-
name?: string;
|
|
3386
|
-
email?: string | null;
|
|
3387
|
-
image?: string;
|
|
3388
|
-
emailVerified: boolean;
|
|
3389
|
-
[key: string]: any;
|
|
3390
|
-
};
|
|
3391
|
-
data: any;
|
|
3392
|
-
} | null>;
|
|
3393
|
-
options: GithubOptions;
|
|
3394
|
-
};
|
|
3395
|
-
microsoft: (options: MicrosoftOptions) => {
|
|
3396
|
-
id: "microsoft";
|
|
3397
|
-
name: string;
|
|
3398
|
-
createAuthorizationURL(data: {
|
|
3399
|
-
state: string;
|
|
3400
|
-
codeVerifier: string;
|
|
3401
|
-
scopes?: string[];
|
|
3402
|
-
redirectURI: string;
|
|
3403
|
-
display?: string;
|
|
3404
|
-
loginHint?: string;
|
|
3405
|
-
}): Promise<URL>;
|
|
3406
|
-
validateAuthorizationCode({
|
|
3407
|
-
code,
|
|
3408
|
-
codeVerifier,
|
|
3409
|
-
redirectURI
|
|
3410
|
-
}: {
|
|
3411
|
-
code: string;
|
|
3412
|
-
redirectURI: string;
|
|
3413
|
-
codeVerifier?: string;
|
|
3414
|
-
deviceId?: string;
|
|
3415
|
-
}): Promise<OAuth2Tokens$1>;
|
|
3416
|
-
getUserInfo(token: OAuth2Tokens$1 & {
|
|
3417
|
-
user?: {
|
|
3418
|
-
name?: {
|
|
3419
|
-
firstName?: string;
|
|
3420
|
-
lastName?: string;
|
|
3421
|
-
};
|
|
3422
|
-
email?: string;
|
|
3423
|
-
};
|
|
3424
|
-
}): Promise<{
|
|
3425
|
-
user: {
|
|
3426
|
-
id: string;
|
|
3427
|
-
name?: string;
|
|
3428
|
-
email?: string | null;
|
|
3429
|
-
image?: string;
|
|
3430
|
-
emailVerified: boolean;
|
|
3431
|
-
[key: string]: any;
|
|
3432
|
-
};
|
|
3433
|
-
data: any;
|
|
3434
|
-
} | null>;
|
|
3435
|
-
refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens$1>;
|
|
3436
|
-
options: MicrosoftOptions;
|
|
3437
|
-
};
|
|
3438
|
-
google: (options: GoogleOptions) => {
|
|
3439
|
-
id: "google";
|
|
3440
|
-
name: string;
|
|
3441
|
-
createAuthorizationURL({
|
|
3442
|
-
state,
|
|
3443
|
-
scopes,
|
|
3444
|
-
codeVerifier,
|
|
3445
|
-
redirectURI,
|
|
3446
|
-
loginHint,
|
|
3447
|
-
display
|
|
3448
|
-
}: {
|
|
3449
|
-
state: string;
|
|
3450
|
-
codeVerifier: string;
|
|
3451
|
-
scopes?: string[];
|
|
3452
|
-
redirectURI: string;
|
|
3453
|
-
display?: string;
|
|
3454
|
-
loginHint?: string;
|
|
3455
|
-
}): Promise<URL>;
|
|
3456
|
-
validateAuthorizationCode: ({
|
|
3457
|
-
code,
|
|
3458
|
-
codeVerifier,
|
|
3459
|
-
redirectURI
|
|
3460
|
-
}: {
|
|
3461
|
-
code: string;
|
|
3462
|
-
redirectURI: string;
|
|
3463
|
-
codeVerifier?: string;
|
|
3464
|
-
deviceId?: string;
|
|
3465
|
-
}) => Promise<OAuth2Tokens$1>;
|
|
3466
|
-
refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens$1>;
|
|
3467
|
-
verifyIdToken(token: string, nonce: string | undefined): Promise<boolean>;
|
|
3468
|
-
getUserInfo(token: OAuth2Tokens$1 & {
|
|
3469
|
-
user?: {
|
|
3470
|
-
name?: {
|
|
3471
|
-
firstName?: string;
|
|
3472
|
-
lastName?: string;
|
|
3473
|
-
};
|
|
3474
|
-
email?: string;
|
|
3475
|
-
};
|
|
3476
|
-
}): Promise<{
|
|
3477
|
-
user: {
|
|
3478
|
-
id: string;
|
|
3479
|
-
name?: string;
|
|
3480
|
-
email?: string | null;
|
|
3481
|
-
image?: string;
|
|
3482
|
-
emailVerified: boolean;
|
|
3483
|
-
[key: string]: any;
|
|
3484
|
-
};
|
|
3485
|
-
data: any;
|
|
3486
|
-
} | null>;
|
|
3487
|
-
options: GoogleOptions;
|
|
3488
|
-
};
|
|
3489
|
-
huggingface: (options: HuggingFaceOptions) => {
|
|
3490
|
-
id: "huggingface";
|
|
3491
|
-
name: string;
|
|
3492
|
-
createAuthorizationURL({
|
|
3493
|
-
state,
|
|
3494
|
-
scopes,
|
|
3495
|
-
codeVerifier,
|
|
3496
|
-
redirectURI
|
|
3497
|
-
}: {
|
|
3498
|
-
state: string;
|
|
3499
|
-
codeVerifier: string;
|
|
3500
|
-
scopes?: string[];
|
|
3501
|
-
redirectURI: string;
|
|
3502
|
-
display?: string;
|
|
3503
|
-
loginHint?: string;
|
|
3504
|
-
}): Promise<URL>;
|
|
3505
|
-
validateAuthorizationCode: ({
|
|
3506
|
-
code,
|
|
3507
|
-
codeVerifier,
|
|
3508
|
-
redirectURI
|
|
3509
|
-
}: {
|
|
3510
|
-
code: string;
|
|
3511
|
-
redirectURI: string;
|
|
3512
|
-
codeVerifier?: string;
|
|
3513
|
-
deviceId?: string;
|
|
3514
|
-
}) => Promise<OAuth2Tokens$1>;
|
|
3515
|
-
refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens$1>;
|
|
3516
|
-
getUserInfo(token: OAuth2Tokens$1 & {
|
|
3517
|
-
user?: {
|
|
3518
|
-
name?: {
|
|
3519
|
-
firstName?: string;
|
|
3520
|
-
lastName?: string;
|
|
3521
|
-
};
|
|
3522
|
-
email?: string;
|
|
3523
|
-
};
|
|
3524
|
-
}): Promise<{
|
|
3525
|
-
user: {
|
|
3526
|
-
id: string;
|
|
3527
|
-
name?: string;
|
|
3528
|
-
email?: string | null;
|
|
3529
|
-
image?: string;
|
|
3530
|
-
emailVerified: boolean;
|
|
3531
|
-
[key: string]: any;
|
|
3532
|
-
};
|
|
3533
|
-
data: any;
|
|
3534
|
-
} | null>;
|
|
3535
|
-
options: HuggingFaceOptions;
|
|
3536
|
-
};
|
|
3537
|
-
slack: (options: SlackOptions) => {
|
|
3538
|
-
id: "slack";
|
|
3539
|
-
name: string;
|
|
3540
|
-
createAuthorizationURL({
|
|
3541
|
-
state,
|
|
3542
|
-
scopes,
|
|
3543
|
-
redirectURI
|
|
3544
|
-
}: {
|
|
3545
|
-
state: string;
|
|
3546
|
-
codeVerifier: string;
|
|
3547
|
-
scopes?: string[];
|
|
3548
|
-
redirectURI: string;
|
|
3549
|
-
display?: string;
|
|
3550
|
-
loginHint?: string;
|
|
3551
|
-
}): URL;
|
|
3552
|
-
validateAuthorizationCode: ({
|
|
3553
|
-
code,
|
|
3554
|
-
redirectURI
|
|
3555
|
-
}: {
|
|
3556
|
-
code: string;
|
|
3557
|
-
redirectURI: string;
|
|
3558
|
-
codeVerifier?: string;
|
|
3559
|
-
deviceId?: string;
|
|
3560
|
-
}) => Promise<OAuth2Tokens$1>;
|
|
3561
|
-
refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens$1>;
|
|
3562
|
-
getUserInfo(token: OAuth2Tokens$1 & {
|
|
3563
|
-
user?: {
|
|
3564
|
-
name?: {
|
|
3565
|
-
firstName?: string;
|
|
3566
|
-
lastName?: string;
|
|
3567
|
-
};
|
|
3568
|
-
email?: string;
|
|
3569
|
-
};
|
|
3570
|
-
}): Promise<{
|
|
3571
|
-
user: {
|
|
3572
|
-
id: string;
|
|
3573
|
-
name?: string;
|
|
3574
|
-
email?: string | null;
|
|
3575
|
-
image?: string;
|
|
3576
|
-
emailVerified: boolean;
|
|
3577
|
-
[key: string]: any;
|
|
3578
|
-
};
|
|
3579
|
-
data: any;
|
|
3580
|
-
} | null>;
|
|
3581
|
-
options: SlackOptions;
|
|
3582
|
-
};
|
|
3583
|
-
spotify: (options: SpotifyOptions) => {
|
|
3584
|
-
id: "spotify";
|
|
3585
|
-
name: string;
|
|
3586
|
-
createAuthorizationURL({
|
|
3587
|
-
state,
|
|
3588
|
-
scopes,
|
|
3589
|
-
codeVerifier,
|
|
3590
|
-
redirectURI
|
|
3591
|
-
}: {
|
|
3592
|
-
state: string;
|
|
3593
|
-
codeVerifier: string;
|
|
3594
|
-
scopes?: string[];
|
|
3595
|
-
redirectURI: string;
|
|
3596
|
-
display?: string;
|
|
3597
|
-
loginHint?: string;
|
|
3598
|
-
}): Promise<URL>;
|
|
3599
|
-
validateAuthorizationCode: ({
|
|
3600
|
-
code,
|
|
3601
|
-
codeVerifier,
|
|
3602
|
-
redirectURI
|
|
3603
|
-
}: {
|
|
3604
|
-
code: string;
|
|
3605
|
-
redirectURI: string;
|
|
3606
|
-
codeVerifier?: string;
|
|
3607
|
-
deviceId?: string;
|
|
3608
|
-
}) => Promise<OAuth2Tokens$1>;
|
|
3609
|
-
refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens$1>;
|
|
3610
|
-
getUserInfo(token: OAuth2Tokens$1 & {
|
|
3611
|
-
user?: {
|
|
3612
|
-
name?: {
|
|
3613
|
-
firstName?: string;
|
|
3614
|
-
lastName?: string;
|
|
3615
|
-
};
|
|
3616
|
-
email?: string;
|
|
3617
|
-
};
|
|
3618
|
-
}): Promise<{
|
|
3619
|
-
user: {
|
|
3620
|
-
id: string;
|
|
3621
|
-
name?: string;
|
|
3622
|
-
email?: string | null;
|
|
3623
|
-
image?: string;
|
|
3624
|
-
emailVerified: boolean;
|
|
3625
|
-
[key: string]: any;
|
|
3626
|
-
};
|
|
3627
|
-
data: any;
|
|
3628
|
-
} | null>;
|
|
3629
|
-
options: SpotifyOptions;
|
|
3630
|
-
};
|
|
3631
|
-
twitch: (options: TwitchOptions) => {
|
|
3632
|
-
id: "twitch";
|
|
3633
|
-
name: string;
|
|
3634
|
-
createAuthorizationURL({
|
|
3635
|
-
state,
|
|
3636
|
-
scopes,
|
|
3637
|
-
redirectURI
|
|
3638
|
-
}: {
|
|
3639
|
-
state: string;
|
|
3640
|
-
codeVerifier: string;
|
|
3641
|
-
scopes?: string[];
|
|
3642
|
-
redirectURI: string;
|
|
3643
|
-
display?: string;
|
|
3644
|
-
loginHint?: string;
|
|
3645
|
-
}): Promise<URL>;
|
|
3646
|
-
validateAuthorizationCode: ({
|
|
3647
|
-
code,
|
|
3648
|
-
redirectURI
|
|
3649
|
-
}: {
|
|
3650
|
-
code: string;
|
|
3651
|
-
redirectURI: string;
|
|
3652
|
-
codeVerifier?: string;
|
|
3653
|
-
deviceId?: string;
|
|
3654
|
-
}) => Promise<OAuth2Tokens$1>;
|
|
3655
|
-
refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens$1>;
|
|
3656
|
-
getUserInfo(token: OAuth2Tokens$1 & {
|
|
3657
|
-
user?: {
|
|
3658
|
-
name?: {
|
|
3659
|
-
firstName?: string;
|
|
3660
|
-
lastName?: string;
|
|
3661
|
-
};
|
|
3662
|
-
email?: string;
|
|
3663
|
-
};
|
|
3664
|
-
}): Promise<{
|
|
3665
|
-
user: {
|
|
3666
|
-
id: string;
|
|
3667
|
-
name?: string;
|
|
3668
|
-
email?: string | null;
|
|
3669
|
-
image?: string;
|
|
3670
|
-
emailVerified: boolean;
|
|
3671
|
-
[key: string]: any;
|
|
3672
|
-
};
|
|
3673
|
-
data: any;
|
|
3674
|
-
} | null>;
|
|
3675
|
-
options: TwitchOptions;
|
|
3676
|
-
};
|
|
3677
|
-
twitter: (options: TwitterOption) => {
|
|
3678
|
-
id: "twitter";
|
|
3679
|
-
name: string;
|
|
3680
|
-
createAuthorizationURL(data: {
|
|
3681
|
-
state: string;
|
|
3682
|
-
codeVerifier: string;
|
|
3683
|
-
scopes?: string[];
|
|
3684
|
-
redirectURI: string;
|
|
3685
|
-
display?: string;
|
|
3686
|
-
loginHint?: string;
|
|
3687
|
-
}): Promise<URL>;
|
|
3688
|
-
validateAuthorizationCode: ({
|
|
3689
|
-
code,
|
|
3690
|
-
codeVerifier,
|
|
3691
|
-
redirectURI
|
|
3692
|
-
}: {
|
|
3693
|
-
code: string;
|
|
3694
|
-
redirectURI: string;
|
|
3695
|
-
codeVerifier?: string;
|
|
3696
|
-
deviceId?: string;
|
|
3697
|
-
}) => Promise<OAuth2Tokens$1>;
|
|
3698
|
-
refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens$1>;
|
|
3699
|
-
getUserInfo(token: OAuth2Tokens$1 & {
|
|
3700
|
-
user?: {
|
|
3701
|
-
name?: {
|
|
3702
|
-
firstName?: string;
|
|
3703
|
-
lastName?: string;
|
|
3704
|
-
};
|
|
3705
|
-
email?: string;
|
|
3706
|
-
};
|
|
3707
|
-
}): Promise<{
|
|
3708
|
-
user: {
|
|
3709
|
-
id: string;
|
|
3710
|
-
name?: string;
|
|
3711
|
-
email?: string | null;
|
|
3712
|
-
image?: string;
|
|
3713
|
-
emailVerified: boolean;
|
|
3714
|
-
[key: string]: any;
|
|
3715
|
-
};
|
|
3716
|
-
data: any;
|
|
3717
|
-
} | null>;
|
|
3718
|
-
options: TwitterOption;
|
|
3719
|
-
};
|
|
3720
|
-
dropbox: (options: DropboxOptions) => {
|
|
3721
|
-
id: "dropbox";
|
|
3722
|
-
name: string;
|
|
3723
|
-
createAuthorizationURL: ({
|
|
3724
|
-
state,
|
|
3725
|
-
scopes,
|
|
3726
|
-
codeVerifier,
|
|
3727
|
-
redirectURI
|
|
3728
|
-
}: {
|
|
3729
|
-
state: string;
|
|
3730
|
-
codeVerifier: string;
|
|
3731
|
-
scopes?: string[];
|
|
3732
|
-
redirectURI: string;
|
|
3733
|
-
display?: string;
|
|
3734
|
-
loginHint?: string;
|
|
3735
|
-
}) => Promise<URL>;
|
|
3736
|
-
validateAuthorizationCode: ({
|
|
3737
|
-
code,
|
|
3738
|
-
codeVerifier,
|
|
3739
|
-
redirectURI
|
|
3740
|
-
}: {
|
|
3741
|
-
code: string;
|
|
3742
|
-
redirectURI: string;
|
|
3743
|
-
codeVerifier?: string;
|
|
3744
|
-
deviceId?: string;
|
|
3745
|
-
}) => Promise<OAuth2Tokens$1>;
|
|
3746
|
-
refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens$1>;
|
|
3747
|
-
getUserInfo(token: OAuth2Tokens$1 & {
|
|
3748
|
-
user?: {
|
|
3749
|
-
name?: {
|
|
3750
|
-
firstName?: string;
|
|
3751
|
-
lastName?: string;
|
|
3752
|
-
};
|
|
3753
|
-
email?: string;
|
|
3754
|
-
};
|
|
3755
|
-
}): Promise<{
|
|
3756
|
-
user: {
|
|
3757
|
-
id: string;
|
|
3758
|
-
name?: string;
|
|
3759
|
-
email?: string | null;
|
|
3760
|
-
image?: string;
|
|
3761
|
-
emailVerified: boolean;
|
|
3762
|
-
[key: string]: any;
|
|
3763
|
-
};
|
|
3764
|
-
data: any;
|
|
3765
|
-
} | null>;
|
|
3766
|
-
options: DropboxOptions;
|
|
3767
|
-
};
|
|
3768
|
-
kick: (options: KickOptions) => {
|
|
3769
|
-
id: "kick";
|
|
3770
|
-
name: string;
|
|
3771
|
-
createAuthorizationURL({
|
|
3772
|
-
state,
|
|
3773
|
-
scopes,
|
|
3774
|
-
redirectURI,
|
|
3775
|
-
codeVerifier
|
|
3776
|
-
}: {
|
|
3777
|
-
state: string;
|
|
3778
|
-
codeVerifier: string;
|
|
3779
|
-
scopes?: string[];
|
|
3780
|
-
redirectURI: string;
|
|
3781
|
-
display?: string;
|
|
3782
|
-
loginHint?: string;
|
|
3783
|
-
}): Promise<URL>;
|
|
3784
|
-
validateAuthorizationCode({
|
|
3785
|
-
code,
|
|
3786
|
-
redirectURI,
|
|
3787
|
-
codeVerifier
|
|
3788
|
-
}: {
|
|
3789
|
-
code: string;
|
|
3790
|
-
redirectURI: string;
|
|
3791
|
-
codeVerifier?: string;
|
|
3792
|
-
deviceId?: string;
|
|
3793
|
-
}): Promise<OAuth2Tokens$1>;
|
|
3794
|
-
getUserInfo(token: OAuth2Tokens$1 & {
|
|
3795
|
-
user?: {
|
|
3796
|
-
name?: {
|
|
3797
|
-
firstName?: string;
|
|
3798
|
-
lastName?: string;
|
|
3799
|
-
};
|
|
3800
|
-
email?: string;
|
|
3801
|
-
};
|
|
3802
|
-
}): Promise<{
|
|
3803
|
-
user: {
|
|
3804
|
-
id: string;
|
|
3805
|
-
name?: string;
|
|
3806
|
-
email?: string | null;
|
|
3807
|
-
image?: string;
|
|
3808
|
-
emailVerified: boolean;
|
|
3809
|
-
[key: string]: any;
|
|
3810
|
-
};
|
|
3811
|
-
data: any;
|
|
3812
|
-
} | null>;
|
|
3813
|
-
options: KickOptions;
|
|
3814
|
-
};
|
|
3815
|
-
linear: (options: LinearOptions) => {
|
|
3816
|
-
id: "linear";
|
|
3817
|
-
name: string;
|
|
3818
|
-
createAuthorizationURL({
|
|
3819
|
-
state,
|
|
3820
|
-
scopes,
|
|
3821
|
-
loginHint,
|
|
3822
|
-
redirectURI
|
|
3823
|
-
}: {
|
|
3824
|
-
state: string;
|
|
3825
|
-
codeVerifier: string;
|
|
3826
|
-
scopes?: string[];
|
|
3827
|
-
redirectURI: string;
|
|
3828
|
-
display?: string;
|
|
3829
|
-
loginHint?: string;
|
|
3830
|
-
}): Promise<URL>;
|
|
3831
|
-
validateAuthorizationCode: ({
|
|
3832
|
-
code,
|
|
3833
|
-
redirectURI
|
|
3834
|
-
}: {
|
|
3835
|
-
code: string;
|
|
3836
|
-
redirectURI: string;
|
|
3837
|
-
codeVerifier?: string;
|
|
3838
|
-
deviceId?: string;
|
|
3839
|
-
}) => Promise<OAuth2Tokens$1>;
|
|
3840
|
-
refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens$1>;
|
|
3841
|
-
getUserInfo(token: OAuth2Tokens$1 & {
|
|
3842
|
-
user?: {
|
|
3843
|
-
name?: {
|
|
3844
|
-
firstName?: string;
|
|
3845
|
-
lastName?: string;
|
|
3846
|
-
};
|
|
3847
|
-
email?: string;
|
|
3848
|
-
};
|
|
3849
|
-
}): Promise<{
|
|
3850
|
-
user: {
|
|
3851
|
-
id: string;
|
|
3852
|
-
name?: string;
|
|
3853
|
-
email?: string | null;
|
|
3854
|
-
image?: string;
|
|
3855
|
-
emailVerified: boolean;
|
|
3856
|
-
[key: string]: any;
|
|
3857
|
-
};
|
|
3858
|
-
data: any;
|
|
3859
|
-
} | null>;
|
|
3860
|
-
options: LinearOptions;
|
|
3861
|
-
};
|
|
3862
|
-
linkedin: (options: LinkedInOptions) => {
|
|
3863
|
-
id: "linkedin";
|
|
3864
|
-
name: string;
|
|
3865
|
-
createAuthorizationURL: ({
|
|
3866
|
-
state,
|
|
3867
|
-
scopes,
|
|
3868
|
-
redirectURI,
|
|
3869
|
-
loginHint
|
|
3870
|
-
}: {
|
|
3871
|
-
state: string;
|
|
3872
|
-
codeVerifier: string;
|
|
3873
|
-
scopes?: string[];
|
|
3874
|
-
redirectURI: string;
|
|
3875
|
-
display?: string;
|
|
3876
|
-
loginHint?: string;
|
|
3877
|
-
}) => Promise<URL>;
|
|
3878
|
-
validateAuthorizationCode: ({
|
|
3879
|
-
code,
|
|
3880
|
-
redirectURI
|
|
3881
|
-
}: {
|
|
3882
|
-
code: string;
|
|
3883
|
-
redirectURI: string;
|
|
3884
|
-
codeVerifier?: string;
|
|
3885
|
-
deviceId?: string;
|
|
3886
|
-
}) => Promise<OAuth2Tokens$1>;
|
|
3887
|
-
refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens$1>;
|
|
3888
|
-
getUserInfo(token: OAuth2Tokens$1 & {
|
|
3889
|
-
user?: {
|
|
3890
|
-
name?: {
|
|
3891
|
-
firstName?: string;
|
|
3892
|
-
lastName?: string;
|
|
3893
|
-
};
|
|
3894
|
-
email?: string;
|
|
3895
|
-
};
|
|
3896
|
-
}): Promise<{
|
|
3897
|
-
user: {
|
|
3898
|
-
id: string;
|
|
3899
|
-
name?: string;
|
|
3900
|
-
email?: string | null;
|
|
3901
|
-
image?: string;
|
|
3902
|
-
emailVerified: boolean;
|
|
3903
|
-
[key: string]: any;
|
|
3904
|
-
};
|
|
3905
|
-
data: any;
|
|
3906
|
-
} | null>;
|
|
3907
|
-
options: LinkedInOptions;
|
|
3908
|
-
};
|
|
3909
|
-
gitlab: (options: GitlabOptions) => {
|
|
3910
|
-
id: "gitlab";
|
|
3911
|
-
name: string;
|
|
3912
|
-
createAuthorizationURL: ({
|
|
3913
|
-
state,
|
|
3914
|
-
scopes,
|
|
3915
|
-
codeVerifier,
|
|
3916
|
-
loginHint,
|
|
3917
|
-
redirectURI
|
|
3918
|
-
}: {
|
|
3919
|
-
state: string;
|
|
3920
|
-
codeVerifier: string;
|
|
3921
|
-
scopes?: string[];
|
|
3922
|
-
redirectURI: string;
|
|
3923
|
-
display?: string;
|
|
3924
|
-
loginHint?: string;
|
|
3925
|
-
}) => Promise<URL>;
|
|
3926
|
-
validateAuthorizationCode: ({
|
|
3927
|
-
code,
|
|
3928
|
-
redirectURI,
|
|
3929
|
-
codeVerifier
|
|
3930
|
-
}: {
|
|
3931
|
-
code: string;
|
|
3932
|
-
redirectURI: string;
|
|
3933
|
-
codeVerifier?: string;
|
|
3934
|
-
deviceId?: string;
|
|
3935
|
-
}) => Promise<OAuth2Tokens$1>;
|
|
3936
|
-
refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens$1>;
|
|
3937
|
-
getUserInfo(token: OAuth2Tokens$1 & {
|
|
3938
|
-
user?: {
|
|
3939
|
-
name?: {
|
|
3940
|
-
firstName?: string;
|
|
3941
|
-
lastName?: string;
|
|
3942
|
-
};
|
|
3943
|
-
email?: string;
|
|
3944
|
-
};
|
|
3945
|
-
}): Promise<{
|
|
3946
|
-
user: {
|
|
3947
|
-
id: string;
|
|
3948
|
-
name?: string;
|
|
3949
|
-
email?: string | null;
|
|
3950
|
-
image?: string;
|
|
3951
|
-
emailVerified: boolean;
|
|
3952
|
-
[key: string]: any;
|
|
3953
|
-
};
|
|
3954
|
-
data: any;
|
|
3955
|
-
} | {
|
|
3956
|
-
user: {
|
|
3957
|
-
id: number;
|
|
3958
|
-
name: string;
|
|
3959
|
-
email: string;
|
|
3960
|
-
image: string;
|
|
3961
|
-
emailVerified: true;
|
|
3962
|
-
} | {
|
|
3963
|
-
id: string | number;
|
|
3964
|
-
name: string;
|
|
3965
|
-
email: string | null;
|
|
3966
|
-
image: string;
|
|
3967
|
-
emailVerified: boolean;
|
|
3968
|
-
} | {
|
|
3969
|
-
id: string | number;
|
|
3970
|
-
name: string;
|
|
3971
|
-
email: string | null;
|
|
3972
|
-
image: string;
|
|
3973
|
-
emailVerified: boolean;
|
|
3974
|
-
};
|
|
3975
|
-
data: GitlabProfile;
|
|
3976
|
-
} | null>;
|
|
3977
|
-
options: GitlabOptions;
|
|
3978
|
-
};
|
|
3979
|
-
tiktok: (options: TiktokOptions) => {
|
|
3980
|
-
id: "tiktok";
|
|
3981
|
-
name: string;
|
|
3982
|
-
createAuthorizationURL({
|
|
3983
|
-
state,
|
|
3984
|
-
scopes,
|
|
3985
|
-
redirectURI
|
|
3986
|
-
}: {
|
|
3987
|
-
state: string;
|
|
3988
|
-
codeVerifier: string;
|
|
3989
|
-
scopes?: string[];
|
|
3990
|
-
redirectURI: string;
|
|
3991
|
-
display?: string;
|
|
3992
|
-
loginHint?: string;
|
|
3993
|
-
}): URL;
|
|
3994
|
-
validateAuthorizationCode: ({
|
|
3995
|
-
code,
|
|
3996
|
-
redirectURI
|
|
3997
|
-
}: {
|
|
3998
|
-
code: string;
|
|
3999
|
-
redirectURI: string;
|
|
4000
|
-
codeVerifier?: string;
|
|
4001
|
-
deviceId?: string;
|
|
4002
|
-
}) => Promise<OAuth2Tokens$1>;
|
|
4003
|
-
refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens$1>;
|
|
4004
|
-
getUserInfo(token: OAuth2Tokens$1 & {
|
|
4005
|
-
user?: {
|
|
4006
|
-
name?: {
|
|
4007
|
-
firstName?: string;
|
|
4008
|
-
lastName?: string;
|
|
4009
|
-
};
|
|
4010
|
-
email?: string;
|
|
4011
|
-
};
|
|
4012
|
-
}): Promise<{
|
|
4013
|
-
user: {
|
|
4014
|
-
id: string;
|
|
4015
|
-
name?: string;
|
|
4016
|
-
email?: string | null;
|
|
4017
|
-
image?: string;
|
|
4018
|
-
emailVerified: boolean;
|
|
4019
|
-
[key: string]: any;
|
|
4020
|
-
};
|
|
4021
|
-
data: any;
|
|
4022
|
-
} | null>;
|
|
4023
|
-
options: TiktokOptions;
|
|
4024
|
-
};
|
|
4025
|
-
reddit: (options: RedditOptions) => {
|
|
4026
|
-
id: "reddit";
|
|
4027
|
-
name: string;
|
|
4028
|
-
createAuthorizationURL({
|
|
4029
|
-
state,
|
|
4030
|
-
scopes,
|
|
4031
|
-
redirectURI
|
|
4032
|
-
}: {
|
|
4033
|
-
state: string;
|
|
4034
|
-
codeVerifier: string;
|
|
4035
|
-
scopes?: string[];
|
|
4036
|
-
redirectURI: string;
|
|
4037
|
-
display?: string;
|
|
4038
|
-
loginHint?: string;
|
|
4039
|
-
}): Promise<URL>;
|
|
4040
|
-
validateAuthorizationCode: ({
|
|
4041
|
-
code,
|
|
4042
|
-
redirectURI
|
|
4043
|
-
}: {
|
|
4044
|
-
code: string;
|
|
4045
|
-
redirectURI: string;
|
|
4046
|
-
codeVerifier?: string;
|
|
4047
|
-
deviceId?: string;
|
|
4048
|
-
}) => Promise<OAuth2Tokens$1>;
|
|
4049
|
-
refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens$1>;
|
|
4050
|
-
getUserInfo(token: OAuth2Tokens$1 & {
|
|
4051
|
-
user?: {
|
|
4052
|
-
name?: {
|
|
4053
|
-
firstName?: string;
|
|
4054
|
-
lastName?: string;
|
|
4055
|
-
};
|
|
4056
|
-
email?: string;
|
|
4057
|
-
};
|
|
4058
|
-
}): Promise<{
|
|
4059
|
-
user: {
|
|
4060
|
-
id: string;
|
|
4061
|
-
name?: string;
|
|
4062
|
-
email?: string | null;
|
|
4063
|
-
image?: string;
|
|
4064
|
-
emailVerified: boolean;
|
|
4065
|
-
[key: string]: any;
|
|
4066
|
-
};
|
|
4067
|
-
data: any;
|
|
4068
|
-
} | null>;
|
|
4069
|
-
options: RedditOptions;
|
|
4070
|
-
};
|
|
4071
|
-
roblox: (options: RobloxOptions) => {
|
|
4072
|
-
id: "roblox";
|
|
4073
|
-
name: string;
|
|
4074
|
-
createAuthorizationURL({
|
|
4075
|
-
state,
|
|
4076
|
-
scopes,
|
|
4077
|
-
redirectURI
|
|
4078
|
-
}: {
|
|
4079
|
-
state: string;
|
|
4080
|
-
codeVerifier: string;
|
|
4081
|
-
scopes?: string[];
|
|
4082
|
-
redirectURI: string;
|
|
4083
|
-
display?: string;
|
|
4084
|
-
loginHint?: string;
|
|
4085
|
-
}): URL;
|
|
4086
|
-
validateAuthorizationCode: ({
|
|
4087
|
-
code,
|
|
4088
|
-
redirectURI
|
|
4089
|
-
}: {
|
|
4090
|
-
code: string;
|
|
4091
|
-
redirectURI: string;
|
|
4092
|
-
codeVerifier?: string;
|
|
4093
|
-
deviceId?: string;
|
|
4094
|
-
}) => Promise<OAuth2Tokens$1>;
|
|
4095
|
-
refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens$1>;
|
|
4096
|
-
getUserInfo(token: OAuth2Tokens$1 & {
|
|
4097
|
-
user?: {
|
|
4098
|
-
name?: {
|
|
4099
|
-
firstName?: string;
|
|
4100
|
-
lastName?: string;
|
|
4101
|
-
};
|
|
4102
|
-
email?: string;
|
|
4103
|
-
};
|
|
4104
|
-
}): Promise<{
|
|
4105
|
-
user: {
|
|
4106
|
-
id: string;
|
|
4107
|
-
name?: string;
|
|
4108
|
-
email?: string | null;
|
|
4109
|
-
image?: string;
|
|
4110
|
-
emailVerified: boolean;
|
|
4111
|
-
[key: string]: any;
|
|
4112
|
-
};
|
|
4113
|
-
data: any;
|
|
4114
|
-
} | null>;
|
|
4115
|
-
options: RobloxOptions;
|
|
4116
|
-
};
|
|
4117
|
-
salesforce: (options: SalesforceOptions) => {
|
|
4118
|
-
id: "salesforce";
|
|
4119
|
-
name: string;
|
|
4120
|
-
createAuthorizationURL({
|
|
4121
|
-
state,
|
|
4122
|
-
scopes,
|
|
4123
|
-
codeVerifier,
|
|
4124
|
-
redirectURI
|
|
4125
|
-
}: {
|
|
4126
|
-
state: string;
|
|
4127
|
-
codeVerifier: string;
|
|
4128
|
-
scopes?: string[];
|
|
4129
|
-
redirectURI: string;
|
|
4130
|
-
display?: string;
|
|
4131
|
-
loginHint?: string;
|
|
4132
|
-
}): Promise<URL>;
|
|
4133
|
-
validateAuthorizationCode: ({
|
|
4134
|
-
code,
|
|
4135
|
-
codeVerifier,
|
|
4136
|
-
redirectURI
|
|
4137
|
-
}: {
|
|
4138
|
-
code: string;
|
|
4139
|
-
redirectURI: string;
|
|
4140
|
-
codeVerifier?: string;
|
|
4141
|
-
deviceId?: string;
|
|
4142
|
-
}) => Promise<OAuth2Tokens$1>;
|
|
4143
|
-
refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens$1>;
|
|
4144
|
-
getUserInfo(token: OAuth2Tokens$1 & {
|
|
4145
|
-
user?: {
|
|
4146
|
-
name?: {
|
|
4147
|
-
firstName?: string;
|
|
4148
|
-
lastName?: string;
|
|
4149
|
-
};
|
|
4150
|
-
email?: string;
|
|
4151
|
-
};
|
|
4152
|
-
}): Promise<{
|
|
4153
|
-
user: {
|
|
4154
|
-
id: string;
|
|
4155
|
-
name?: string;
|
|
4156
|
-
email?: string | null;
|
|
4157
|
-
image?: string;
|
|
4158
|
-
emailVerified: boolean;
|
|
4159
|
-
[key: string]: any;
|
|
4160
|
-
};
|
|
4161
|
-
data: any;
|
|
4162
|
-
} | null>;
|
|
4163
|
-
options: SalesforceOptions;
|
|
4164
|
-
};
|
|
4165
|
-
vk: (options: VkOption) => {
|
|
4166
|
-
id: "vk";
|
|
4167
|
-
name: string;
|
|
4168
|
-
createAuthorizationURL({
|
|
4169
|
-
state,
|
|
4170
|
-
scopes,
|
|
4171
|
-
codeVerifier,
|
|
4172
|
-
redirectURI
|
|
4173
|
-
}: {
|
|
4174
|
-
state: string;
|
|
4175
|
-
codeVerifier: string;
|
|
4176
|
-
scopes?: string[];
|
|
4177
|
-
redirectURI: string;
|
|
4178
|
-
display?: string;
|
|
4179
|
-
loginHint?: string;
|
|
4180
|
-
}): Promise<URL>;
|
|
4181
|
-
validateAuthorizationCode: ({
|
|
4182
|
-
code,
|
|
4183
|
-
codeVerifier,
|
|
4184
|
-
redirectURI,
|
|
4185
|
-
deviceId
|
|
4186
|
-
}: {
|
|
4187
|
-
code: string;
|
|
4188
|
-
redirectURI: string;
|
|
4189
|
-
codeVerifier?: string;
|
|
4190
|
-
deviceId?: string;
|
|
4191
|
-
}) => Promise<OAuth2Tokens$1>;
|
|
4192
|
-
refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens$1>;
|
|
4193
|
-
getUserInfo(data: OAuth2Tokens$1 & {
|
|
4194
|
-
user?: {
|
|
4195
|
-
name?: {
|
|
4196
|
-
firstName?: string;
|
|
4197
|
-
lastName?: string;
|
|
4198
|
-
};
|
|
4199
|
-
email?: string;
|
|
4200
|
-
};
|
|
4201
|
-
}): Promise<{
|
|
4202
|
-
user: {
|
|
4203
|
-
id: string;
|
|
4204
|
-
name?: string;
|
|
4205
|
-
email?: string | null;
|
|
4206
|
-
image?: string;
|
|
4207
|
-
emailVerified: boolean;
|
|
4208
|
-
[key: string]: any;
|
|
4209
|
-
};
|
|
4210
|
-
data: any;
|
|
4211
|
-
} | null>;
|
|
4212
|
-
options: VkOption;
|
|
4213
|
-
};
|
|
4214
|
-
zoom: (userOptions: ZoomOptions) => {
|
|
4215
|
-
id: "zoom";
|
|
4216
|
-
name: string;
|
|
4217
|
-
createAuthorizationURL: ({
|
|
4218
|
-
state,
|
|
4219
|
-
redirectURI,
|
|
4220
|
-
codeVerifier
|
|
4221
|
-
}: {
|
|
4222
|
-
state: string;
|
|
4223
|
-
codeVerifier: string;
|
|
4224
|
-
scopes?: string[];
|
|
4225
|
-
redirectURI: string;
|
|
4226
|
-
display?: string;
|
|
4227
|
-
loginHint?: string;
|
|
4228
|
-
}) => Promise<URL>;
|
|
4229
|
-
validateAuthorizationCode: ({
|
|
4230
|
-
code,
|
|
4231
|
-
redirectURI,
|
|
4232
|
-
codeVerifier
|
|
4233
|
-
}: {
|
|
4234
|
-
code: string;
|
|
4235
|
-
redirectURI: string;
|
|
4236
|
-
codeVerifier?: string;
|
|
4237
|
-
deviceId?: string;
|
|
4238
|
-
}) => Promise<OAuth2Tokens$1>;
|
|
4239
|
-
getUserInfo(token: OAuth2Tokens$1 & {
|
|
4240
|
-
user?: {
|
|
4241
|
-
name?: {
|
|
4242
|
-
firstName?: string;
|
|
4243
|
-
lastName?: string;
|
|
4244
|
-
};
|
|
4245
|
-
email?: string;
|
|
4246
|
-
};
|
|
4247
|
-
}): Promise<{
|
|
4248
|
-
user: {
|
|
4249
|
-
id: string;
|
|
4250
|
-
name?: string;
|
|
4251
|
-
email?: string | null;
|
|
4252
|
-
image?: string;
|
|
4253
|
-
emailVerified: boolean;
|
|
4254
|
-
[key: string]: any;
|
|
4255
|
-
};
|
|
4256
|
-
data: any;
|
|
4257
|
-
} | null>;
|
|
4258
|
-
};
|
|
4259
|
-
notion: (options: NotionOptions) => {
|
|
4260
|
-
id: "notion";
|
|
4261
|
-
name: string;
|
|
4262
|
-
createAuthorizationURL({
|
|
4263
|
-
state,
|
|
4264
|
-
scopes,
|
|
4265
|
-
loginHint,
|
|
4266
|
-
redirectURI
|
|
4267
|
-
}: {
|
|
4268
|
-
state: string;
|
|
4269
|
-
codeVerifier: string;
|
|
4270
|
-
scopes?: string[];
|
|
4271
|
-
redirectURI: string;
|
|
4272
|
-
display?: string;
|
|
4273
|
-
loginHint?: string;
|
|
4274
|
-
}): Promise<URL>;
|
|
4275
|
-
validateAuthorizationCode: ({
|
|
4276
|
-
code,
|
|
4277
|
-
redirectURI
|
|
4278
|
-
}: {
|
|
4279
|
-
code: string;
|
|
4280
|
-
redirectURI: string;
|
|
4281
|
-
codeVerifier?: string;
|
|
4282
|
-
deviceId?: string;
|
|
4283
|
-
}) => Promise<OAuth2Tokens$1>;
|
|
4284
|
-
refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens$1>;
|
|
4285
|
-
getUserInfo(token: OAuth2Tokens$1 & {
|
|
4286
|
-
user?: {
|
|
4287
|
-
name?: {
|
|
4288
|
-
firstName?: string;
|
|
4289
|
-
lastName?: string;
|
|
4290
|
-
};
|
|
4291
|
-
email?: string;
|
|
4292
|
-
};
|
|
4293
|
-
}): Promise<{
|
|
4294
|
-
user: {
|
|
4295
|
-
id: string;
|
|
4296
|
-
name?: string;
|
|
4297
|
-
email?: string | null;
|
|
4298
|
-
image?: string;
|
|
4299
|
-
emailVerified: boolean;
|
|
4300
|
-
[key: string]: any;
|
|
4301
|
-
};
|
|
4302
|
-
data: any;
|
|
4303
|
-
} | null>;
|
|
4304
|
-
options: NotionOptions;
|
|
4305
|
-
};
|
|
4306
|
-
kakao: (options: KakaoOptions) => {
|
|
4307
|
-
id: "kakao";
|
|
4308
|
-
name: string;
|
|
4309
|
-
createAuthorizationURL({
|
|
4310
|
-
state,
|
|
4311
|
-
scopes,
|
|
4312
|
-
redirectURI
|
|
4313
|
-
}: {
|
|
4314
|
-
state: string;
|
|
4315
|
-
codeVerifier: string;
|
|
4316
|
-
scopes?: string[];
|
|
4317
|
-
redirectURI: string;
|
|
4318
|
-
display?: string;
|
|
4319
|
-
loginHint?: string;
|
|
4320
|
-
}): Promise<URL>;
|
|
4321
|
-
validateAuthorizationCode: ({
|
|
4322
|
-
code,
|
|
4323
|
-
redirectURI
|
|
4324
|
-
}: {
|
|
4325
|
-
code: string;
|
|
4326
|
-
redirectURI: string;
|
|
4327
|
-
codeVerifier?: string;
|
|
4328
|
-
deviceId?: string;
|
|
4329
|
-
}) => Promise<OAuth2Tokens$1>;
|
|
4330
|
-
refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens$1>;
|
|
4331
|
-
getUserInfo(token: OAuth2Tokens$1 & {
|
|
4332
|
-
user?: {
|
|
4333
|
-
name?: {
|
|
4334
|
-
firstName?: string;
|
|
4335
|
-
lastName?: string;
|
|
4336
|
-
};
|
|
4337
|
-
email?: string;
|
|
4338
|
-
};
|
|
4339
|
-
}): Promise<{
|
|
4340
|
-
user: {
|
|
4341
|
-
id: string;
|
|
4342
|
-
name?: string;
|
|
4343
|
-
email?: string | null;
|
|
4344
|
-
image?: string;
|
|
4345
|
-
emailVerified: boolean;
|
|
4346
|
-
[key: string]: any;
|
|
4347
|
-
};
|
|
4348
|
-
data: any;
|
|
4349
|
-
} | {
|
|
4350
|
-
user: {
|
|
4351
|
-
id: string;
|
|
4352
|
-
name: string | undefined;
|
|
4353
|
-
email: string | undefined;
|
|
4354
|
-
image: string | undefined;
|
|
4355
|
-
emailVerified: boolean;
|
|
4356
|
-
} | {
|
|
4357
|
-
id: string;
|
|
4358
|
-
name: string;
|
|
4359
|
-
email: string | null;
|
|
4360
|
-
image: string;
|
|
4361
|
-
emailVerified: boolean;
|
|
4362
|
-
} | {
|
|
4363
|
-
id: string;
|
|
4364
|
-
name: string;
|
|
4365
|
-
email: string | null;
|
|
4366
|
-
image: string;
|
|
4367
|
-
emailVerified: boolean;
|
|
4368
|
-
};
|
|
4369
|
-
data: KakaoProfile;
|
|
4370
|
-
} | null>;
|
|
4371
|
-
options: KakaoOptions;
|
|
4372
|
-
};
|
|
4373
|
-
naver: (options: NaverOptions) => {
|
|
4374
|
-
id: "naver";
|
|
4375
|
-
name: string;
|
|
4376
|
-
createAuthorizationURL({
|
|
4377
|
-
state,
|
|
4378
|
-
scopes,
|
|
4379
|
-
redirectURI
|
|
4380
|
-
}: {
|
|
4381
|
-
state: string;
|
|
4382
|
-
codeVerifier: string;
|
|
4383
|
-
scopes?: string[];
|
|
4384
|
-
redirectURI: string;
|
|
4385
|
-
display?: string;
|
|
4386
|
-
loginHint?: string;
|
|
4387
|
-
}): Promise<URL>;
|
|
4388
|
-
validateAuthorizationCode: ({
|
|
4389
|
-
code,
|
|
4390
|
-
redirectURI
|
|
4391
|
-
}: {
|
|
4392
|
-
code: string;
|
|
4393
|
-
redirectURI: string;
|
|
4394
|
-
codeVerifier?: string;
|
|
4395
|
-
deviceId?: string;
|
|
4396
|
-
}) => Promise<OAuth2Tokens$1>;
|
|
4397
|
-
refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens$1>;
|
|
4398
|
-
getUserInfo(token: OAuth2Tokens$1 & {
|
|
4399
|
-
user?: {
|
|
4400
|
-
name?: {
|
|
4401
|
-
firstName?: string;
|
|
4402
|
-
lastName?: string;
|
|
4403
|
-
};
|
|
4404
|
-
email?: string;
|
|
4405
|
-
};
|
|
4406
|
-
}): Promise<{
|
|
4407
|
-
user: {
|
|
4408
|
-
id: string;
|
|
4409
|
-
name?: string;
|
|
4410
|
-
email?: string | null;
|
|
4411
|
-
image?: string;
|
|
4412
|
-
emailVerified: boolean;
|
|
4413
|
-
[key: string]: any;
|
|
4414
|
-
};
|
|
4415
|
-
data: any;
|
|
4416
|
-
} | {
|
|
4417
|
-
user: {
|
|
4418
|
-
id: string;
|
|
4419
|
-
name: string;
|
|
4420
|
-
email: string;
|
|
4421
|
-
image: string;
|
|
4422
|
-
emailVerified: boolean;
|
|
4423
|
-
} | {
|
|
4424
|
-
id: string;
|
|
4425
|
-
name: string;
|
|
4426
|
-
email: string | null;
|
|
4427
|
-
image: string;
|
|
4428
|
-
emailVerified: boolean;
|
|
4429
|
-
} | {
|
|
4430
|
-
id: string;
|
|
4431
|
-
name: string;
|
|
4432
|
-
email: string | null;
|
|
4433
|
-
image: string;
|
|
4434
|
-
emailVerified: boolean;
|
|
4435
|
-
};
|
|
4436
|
-
data: NaverProfile;
|
|
4437
|
-
} | null>;
|
|
4438
|
-
options: NaverOptions;
|
|
4439
|
-
};
|
|
4440
|
-
line: (options: LineOptions) => {
|
|
4441
|
-
id: "line";
|
|
4442
|
-
name: string;
|
|
4443
|
-
createAuthorizationURL({
|
|
4444
|
-
state,
|
|
4445
|
-
scopes,
|
|
4446
|
-
codeVerifier,
|
|
4447
|
-
redirectURI,
|
|
4448
|
-
loginHint
|
|
4449
|
-
}: {
|
|
4450
|
-
state: string;
|
|
4451
|
-
codeVerifier: string;
|
|
4452
|
-
scopes?: string[];
|
|
4453
|
-
redirectURI: string;
|
|
4454
|
-
display?: string;
|
|
4455
|
-
loginHint?: string;
|
|
4456
|
-
}): Promise<URL>;
|
|
4457
|
-
validateAuthorizationCode: ({
|
|
4458
|
-
code,
|
|
4459
|
-
codeVerifier,
|
|
4460
|
-
redirectURI
|
|
4461
|
-
}: {
|
|
4462
|
-
code: string;
|
|
4463
|
-
redirectURI: string;
|
|
4464
|
-
codeVerifier?: string;
|
|
4465
|
-
deviceId?: string;
|
|
4466
|
-
}) => Promise<OAuth2Tokens$1>;
|
|
4467
|
-
refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens$1>;
|
|
4468
|
-
verifyIdToken(token: string, nonce: string | undefined): Promise<boolean>;
|
|
4469
|
-
getUserInfo(token: OAuth2Tokens$1 & {
|
|
4470
|
-
user?: {
|
|
4471
|
-
name?: {
|
|
4472
|
-
firstName?: string;
|
|
4473
|
-
lastName?: string;
|
|
4474
|
-
};
|
|
4475
|
-
email?: string;
|
|
4476
|
-
};
|
|
4477
|
-
}): Promise<{
|
|
4478
|
-
user: {
|
|
4479
|
-
id: string;
|
|
4480
|
-
name?: string;
|
|
4481
|
-
email?: string | null;
|
|
4482
|
-
image?: string;
|
|
4483
|
-
emailVerified: boolean;
|
|
4484
|
-
[key: string]: any;
|
|
4485
|
-
};
|
|
4486
|
-
data: any;
|
|
4487
|
-
} | {
|
|
4488
|
-
user: {
|
|
4489
|
-
id: any;
|
|
4490
|
-
name: any;
|
|
4491
|
-
email: any;
|
|
4492
|
-
image: any;
|
|
4493
|
-
emailVerified: false;
|
|
4494
|
-
} | {
|
|
4495
|
-
id: any;
|
|
4496
|
-
name: any;
|
|
4497
|
-
email: any;
|
|
4498
|
-
image: any;
|
|
4499
|
-
emailVerified: boolean;
|
|
4500
|
-
} | {
|
|
4501
|
-
id: any;
|
|
4502
|
-
name: any;
|
|
4503
|
-
email: any;
|
|
4504
|
-
image: any;
|
|
4505
|
-
emailVerified: boolean;
|
|
4506
|
-
};
|
|
4507
|
-
data: any;
|
|
4508
|
-
} | null>;
|
|
4509
|
-
options: LineOptions;
|
|
4510
|
-
};
|
|
4511
|
-
paypal: (options: PayPalOptions) => {
|
|
4512
|
-
id: "paypal";
|
|
4513
|
-
name: string;
|
|
4514
|
-
createAuthorizationURL({
|
|
4515
|
-
state,
|
|
4516
|
-
codeVerifier,
|
|
4517
|
-
redirectURI
|
|
4518
|
-
}: {
|
|
4519
|
-
state: string;
|
|
4520
|
-
codeVerifier: string;
|
|
4521
|
-
scopes?: string[];
|
|
4522
|
-
redirectURI: string;
|
|
4523
|
-
display?: string;
|
|
4524
|
-
loginHint?: string;
|
|
4525
|
-
}): Promise<URL>;
|
|
4526
|
-
validateAuthorizationCode: ({
|
|
4527
|
-
code,
|
|
4528
|
-
redirectURI
|
|
4529
|
-
}: {
|
|
4530
|
-
code: string;
|
|
4531
|
-
redirectURI: string;
|
|
4532
|
-
codeVerifier?: string;
|
|
4533
|
-
deviceId?: string;
|
|
4534
|
-
}) => Promise<{
|
|
4535
|
-
accessToken: string;
|
|
4536
|
-
refreshToken: string | undefined;
|
|
4537
|
-
accessTokenExpiresAt: Date | undefined;
|
|
4538
|
-
idToken: string | undefined;
|
|
4539
|
-
}>;
|
|
4540
|
-
refreshAccessToken: ((refreshToken: string) => Promise<OAuth2Tokens$1>) | ((refreshToken: string) => Promise<{
|
|
4541
|
-
accessToken: any;
|
|
4542
|
-
refreshToken: any;
|
|
4543
|
-
accessTokenExpiresAt: Date | undefined;
|
|
4544
|
-
}>);
|
|
4545
|
-
verifyIdToken(token: string, nonce: string | undefined): Promise<boolean>;
|
|
4546
|
-
getUserInfo(token: OAuth2Tokens$1 & {
|
|
4547
|
-
user?: {
|
|
4548
|
-
name?: {
|
|
4549
|
-
firstName?: string;
|
|
4550
|
-
lastName?: string;
|
|
4551
|
-
};
|
|
4552
|
-
email?: string;
|
|
4553
|
-
};
|
|
4554
|
-
}): Promise<{
|
|
4555
|
-
user: {
|
|
4556
|
-
id: string;
|
|
4557
|
-
name?: string;
|
|
4558
|
-
email?: string | null;
|
|
4559
|
-
image?: string;
|
|
4560
|
-
emailVerified: boolean;
|
|
4561
|
-
[key: string]: any;
|
|
4562
|
-
};
|
|
4563
|
-
data: any;
|
|
4564
|
-
} | {
|
|
4565
|
-
user: {
|
|
4566
|
-
id: string;
|
|
4567
|
-
name: string;
|
|
4568
|
-
email: string;
|
|
4569
|
-
image: string | undefined;
|
|
4570
|
-
emailVerified: boolean;
|
|
4571
|
-
} | {
|
|
4572
|
-
id: string;
|
|
4573
|
-
name: string;
|
|
4574
|
-
email: string | null;
|
|
4575
|
-
image: string;
|
|
4576
|
-
emailVerified: boolean;
|
|
4577
|
-
} | {
|
|
4578
|
-
id: string;
|
|
4579
|
-
name: string;
|
|
4580
|
-
email: string | null;
|
|
4581
|
-
image: string;
|
|
4582
|
-
emailVerified: boolean;
|
|
4583
|
-
};
|
|
4584
|
-
data: PayPalProfile;
|
|
4585
|
-
} | null>;
|
|
4586
|
-
options: PayPalOptions;
|
|
4587
|
-
};
|
|
4588
|
-
polar: (options: PolarOptions) => {
|
|
4589
|
-
id: "polar";
|
|
4590
|
-
name: string;
|
|
4591
|
-
createAuthorizationURL({
|
|
4592
|
-
state,
|
|
4593
|
-
scopes,
|
|
4594
|
-
codeVerifier,
|
|
4595
|
-
redirectURI
|
|
4596
|
-
}: {
|
|
4597
|
-
state: string;
|
|
4598
|
-
codeVerifier: string;
|
|
4599
|
-
scopes?: string[];
|
|
4600
|
-
redirectURI: string;
|
|
4601
|
-
display?: string;
|
|
4602
|
-
loginHint?: string;
|
|
4603
|
-
}): Promise<URL>;
|
|
4604
|
-
validateAuthorizationCode: ({
|
|
4605
|
-
code,
|
|
4606
|
-
codeVerifier,
|
|
4607
|
-
redirectURI
|
|
4608
|
-
}: {
|
|
4609
|
-
code: string;
|
|
4610
|
-
redirectURI: string;
|
|
4611
|
-
codeVerifier?: string;
|
|
4612
|
-
deviceId?: string;
|
|
4613
|
-
}) => Promise<OAuth2Tokens$1>;
|
|
4614
|
-
refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens$1>;
|
|
4615
|
-
getUserInfo(token: OAuth2Tokens$1 & {
|
|
4616
|
-
user?: {
|
|
4617
|
-
name?: {
|
|
4618
|
-
firstName?: string;
|
|
4619
|
-
lastName?: string;
|
|
4620
|
-
};
|
|
4621
|
-
email?: string;
|
|
4622
|
-
};
|
|
4623
|
-
}): Promise<{
|
|
4624
|
-
user: {
|
|
4625
|
-
id: string;
|
|
4626
|
-
name?: string;
|
|
4627
|
-
email?: string | null;
|
|
4628
|
-
image?: string;
|
|
4629
|
-
emailVerified: boolean;
|
|
4630
|
-
[key: string]: any;
|
|
4631
|
-
};
|
|
4632
|
-
data: any;
|
|
4633
|
-
} | null>;
|
|
4634
|
-
options: PolarOptions;
|
|
4635
|
-
};
|
|
4636
|
-
};
|
|
4637
|
-
declare const socialProviderList: ["github", ...(keyof typeof socialProviders)[]];
|
|
4638
|
-
declare const SocialProviderListEnum: z.ZodType<SocialProviderList[number] | (string & {})>;
|
|
4639
|
-
type SocialProvider = z.infer<typeof SocialProviderListEnum>;
|
|
4640
|
-
type SocialProviders = { [K in SocialProviderList[number]]?: Parameters<(typeof socialProviders)[K]>[0] & {
|
|
4641
|
-
enabled?: boolean;
|
|
4642
|
-
} };
|
|
4643
|
-
type SocialProviderList = typeof socialProviderList;
|
|
4644
|
-
//#endregion
|
|
4645
|
-
export { LinkedInProfile as $, apple as $t, PronounOption as A, microsoft as At, RobloxOptions as B, DiscordOptions as Bt, kakao as C, HuggingFaceProfile as Ct, AccountStatus as D, google as Dt, notion as E, GoogleProfile as Et, VkProfile as F, FigmaProfile as Ft, reddit as G, cognito as Gt, roblox as H, discord as Ht, vk as I, figma as It, tiktok as J, AtlassianProfile as Jt, TiktokOptions as K, getCognitoPublicKey as Kt, SalesforceOptions as L, FacebookOptions as Lt, ZoomProfile as M, GithubProfile as Mt, zoom as N, github as Nt, LoginType as O, MicrosoftEntraIDProfile as Ot, VkOption as P, FigmaOptions as Pt, LinkedInOptions as Q, AppleProfile as Qt, SalesforceProfile as R, FacebookProfile as Rt, KakaoProfile as S, HuggingFaceOptions as St, NotionProfile as T, GoogleOptions as Tt, RedditOptions as U, CognitoOptions as Ut, RobloxProfile as V, DiscordProfile as Vt, RedditProfile as W, CognitoProfile as Wt, GitlabProfile as X, AppleNonConformUser as Xt, GitlabOptions as Y, atlassian as Yt, gitlab as Z, AppleOptions as Zt, line as _, SpotifyProfile as _t, socialProviderList as a, KickProfile as at, naver as b, SlackProfile as bt, PolarProfile as c, DropboxProfile as ct, PayPalProfile as d, TwitterProfile as dt, getApplePublicKey as en, linkedin as et, PayPalTokenResponse as f, twitter as ft, LineUserInfo as g, SpotifyOptions as gt, LineOptions as h, twitch as ht, SocialProviders as i, KickOptions as it, ZoomOptions as j, GithubOptions as jt, PhoneNumber as k, MicrosoftOptions as kt, polar as l, dropbox as lt, LineIdTokenPayload as m, TwitchProfile as mt, SocialProviderList as n, LinearProfile as nt, socialProviders as o, kick as ot, paypal as p, TwitchOptions as pt, TiktokProfile as q, AtlassianOptions as qt, SocialProviderListEnum as r, linear as rt, PolarOptions as s, DropboxOptions as st, SocialProvider as t, LinearOptions as tt, PayPalOptions as u, TwitterOption as ut, NaverOptions as v, spotify as vt, NotionOptions as w, huggingface as wt, KakaoOptions as x, slack as xt, NaverProfile as y, SlackOptions as yt, salesforce as z, facebook as zt };
|