@descope/react-sdk 2.2.0 → 2.3.0
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/dist/cjs/index.cjs.js +1 -1
- package/dist/dts/src/sdk.d.ts +1990 -139
- package/dist/index.d.ts +621 -4
- package/dist/index.esm.js +1 -1
- package/dist/index.umd.js +2 -2
- package/dist/index.umd.js.map +1 -1
- package/package.json +10 -10
package/dist/dts/src/sdk.d.ts
CHANGED
|
@@ -91,8 +91,12 @@ declare const createSdkWrapper: <P extends Omit<{
|
|
|
91
91
|
name?: string;
|
|
92
92
|
loginId?: string;
|
|
93
93
|
}, "loginId" | "name">;
|
|
94
|
-
}, conditionInteractionId?: string, interactionId?: string, componentsVersion?: string, flowVersions?: Record<string, number>, input?:
|
|
95
|
-
|
|
94
|
+
}, conditionInteractionId?: string, interactionId?: string, componentsVersion?: string, flowVersions?: Record<string, number>, input?: {
|
|
95
|
+
[x: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any[])[])[])[])[])[])[])[])[])[])[];
|
|
96
|
+
}) => Promise<_1.SdkResponse<_1.FlowResponse>>;
|
|
97
|
+
next: (executionId: string, stepId: string, interactionId: string, version?: number, componentsVersion?: string, input?: {
|
|
98
|
+
[x: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any[])[])[])[])[])[])[])[])[])[])[];
|
|
99
|
+
}) => Promise<_1.SdkResponse<_1.FlowResponse>>;
|
|
96
100
|
};
|
|
97
101
|
webauthn: {
|
|
98
102
|
signUp: ((identifier: string, name: string, passkeyOptions?: _1.PasskeyOptions) => Promise<_1.SdkResponse<_1.JWTResponse>>) & {
|
|
@@ -591,6 +595,7 @@ declare const createSdkWrapper: <P extends Omit<{
|
|
|
591
595
|
selectTenant: (tenantId: string, token?: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
|
|
592
596
|
logout: (token?: string) => Promise<_1.SdkResponse<never>>;
|
|
593
597
|
logoutAll: (token?: string) => Promise<_1.SdkResponse<never>>;
|
|
598
|
+
logoutPrevious: (token?: string) => Promise<_1.SdkResponse<never>>;
|
|
594
599
|
me: (token?: string) => Promise<_1.SdkResponse<_1.UserResponse>>;
|
|
595
600
|
myTenants: (tenants: true | string[], token?: string) => Promise<_1.SdkResponse<{
|
|
596
601
|
tenants: {
|
|
@@ -693,8 +698,12 @@ declare const createSdkWrapper: <P extends Omit<{
|
|
|
693
698
|
name?: string;
|
|
694
699
|
loginId?: string;
|
|
695
700
|
}, "loginId" | "name">;
|
|
696
|
-
}, conditionInteractionId?: string, interactionId?: string, componentsVersion?: string, flowVersions?: Record<string, number>, input?:
|
|
697
|
-
|
|
701
|
+
}, conditionInteractionId?: string, interactionId?: string, componentsVersion?: string, flowVersions?: Record<string, number>, input?: {
|
|
702
|
+
[x: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any[])[])[])[])[])[])[])[])[])[])[];
|
|
703
|
+
}) => Promise<_1.SdkResponse<_1.FlowResponse>>;
|
|
704
|
+
next: (executionId: string, stepId: string, interactionId: string, version?: number, componentsVersion?: string, input?: {
|
|
705
|
+
[x: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any[])[])[])[])[])[])[])[])[])[])[];
|
|
706
|
+
}) => Promise<_1.SdkResponse<_1.FlowResponse>>;
|
|
698
707
|
};
|
|
699
708
|
webauthn: {
|
|
700
709
|
signUp: ((identifier: string, name: string, passkeyOptions?: _1.PasskeyOptions) => Promise<_1.SdkResponse<_1.JWTResponse>>) & {
|
|
@@ -1193,6 +1202,614 @@ declare const createSdkWrapper: <P extends Omit<{
|
|
|
1193
1202
|
selectTenant: (tenantId: string, token?: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
|
|
1194
1203
|
logout: (token?: string) => Promise<_1.SdkResponse<never>>;
|
|
1195
1204
|
logoutAll: (token?: string) => Promise<_1.SdkResponse<never>>;
|
|
1205
|
+
logoutPrevious: (token?: string) => Promise<_1.SdkResponse<never>>;
|
|
1206
|
+
me: (token?: string) => Promise<_1.SdkResponse<_1.UserResponse>>;
|
|
1207
|
+
myTenants: (tenants: true | string[], token?: string) => Promise<_1.SdkResponse<{
|
|
1208
|
+
tenants: {
|
|
1209
|
+
id: string;
|
|
1210
|
+
name: string;
|
|
1211
|
+
customAttributes?: Record<string, any>;
|
|
1212
|
+
}[];
|
|
1213
|
+
}>>;
|
|
1214
|
+
history: (token?: string) => Promise<_1.SdkResponse<_1.UserHistoryResponse>>;
|
|
1215
|
+
isJwtExpired: (token: string) => boolean;
|
|
1216
|
+
getTenants: (token: string) => string[];
|
|
1217
|
+
getJwtPermissions: (token: string, tenant?: string) => string[];
|
|
1218
|
+
getJwtRoles: (token: string, tenant?: string) => string[];
|
|
1219
|
+
httpClient: {
|
|
1220
|
+
get: (path: string, config?: {
|
|
1221
|
+
headers?: HeadersInit;
|
|
1222
|
+
queryParams?: {
|
|
1223
|
+
[key: string]: string;
|
|
1224
|
+
};
|
|
1225
|
+
token?: string;
|
|
1226
|
+
}) => Promise<Response>;
|
|
1227
|
+
post: (path: string, body?: any, config?: {
|
|
1228
|
+
headers?: HeadersInit;
|
|
1229
|
+
queryParams?: {
|
|
1230
|
+
[key: string]: string;
|
|
1231
|
+
};
|
|
1232
|
+
token?: string;
|
|
1233
|
+
}) => Promise<Response>;
|
|
1234
|
+
patch: (path: string, body?: any, config?: {
|
|
1235
|
+
headers?: HeadersInit;
|
|
1236
|
+
queryParams?: {
|
|
1237
|
+
[key: string]: string;
|
|
1238
|
+
};
|
|
1239
|
+
token?: string;
|
|
1240
|
+
}) => Promise<Response>;
|
|
1241
|
+
put: (path: string, body?: any, config?: {
|
|
1242
|
+
headers?: HeadersInit;
|
|
1243
|
+
queryParams?: {
|
|
1244
|
+
[key: string]: string;
|
|
1245
|
+
};
|
|
1246
|
+
token?: string;
|
|
1247
|
+
}) => Promise<Response>;
|
|
1248
|
+
delete: (path: string, config?: {
|
|
1249
|
+
headers?: HeadersInit;
|
|
1250
|
+
queryParams?: {
|
|
1251
|
+
[key: string]: string;
|
|
1252
|
+
};
|
|
1253
|
+
token?: string;
|
|
1254
|
+
}) => Promise<Response>;
|
|
1255
|
+
hooks?: {
|
|
1256
|
+
beforeRequest?: (config: _1.RequestConfig) => _1.RequestConfig;
|
|
1257
|
+
afterRequest?: (req: _1.RequestConfig, res: Response) => void | Promise<void>;
|
|
1258
|
+
transformResponse?: (mutableResponse: _1.ExtendedResponse) => Promise<_1.ExtendedResponse>;
|
|
1259
|
+
};
|
|
1260
|
+
buildUrl: (path: string, queryParams?: {
|
|
1261
|
+
[key: string]: string;
|
|
1262
|
+
}) => string;
|
|
1263
|
+
};
|
|
1264
|
+
} | {
|
|
1265
|
+
refresh: (token?: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
|
|
1266
|
+
flow: {
|
|
1267
|
+
start: (flowId: string, options?: Pick<{
|
|
1268
|
+
redirectUrl?: string;
|
|
1269
|
+
location?: string;
|
|
1270
|
+
tenant?: string;
|
|
1271
|
+
deviceInfo?: {
|
|
1272
|
+
webAuthnSupport?: boolean;
|
|
1273
|
+
};
|
|
1274
|
+
lastAuth?: {
|
|
1275
|
+
authMethod?: "webauthn" | "otp" | "oauth" | "saml" | "totp" | "magiclink" | "enchantedlink";
|
|
1276
|
+
oauthProvider?: string;
|
|
1277
|
+
name?: string;
|
|
1278
|
+
loginId?: string;
|
|
1279
|
+
};
|
|
1280
|
+
redirectAuth?: {
|
|
1281
|
+
callbackUrl: string;
|
|
1282
|
+
codeChallenge: string;
|
|
1283
|
+
};
|
|
1284
|
+
oidcIdpStateId?: string;
|
|
1285
|
+
preview?: boolean;
|
|
1286
|
+
samlIdpStateId?: string;
|
|
1287
|
+
samlIdpUsername?: string;
|
|
1288
|
+
ssoAppId?: string;
|
|
1289
|
+
oidcLoginHint?: string;
|
|
1290
|
+
abTestingKey?: number;
|
|
1291
|
+
startOptionsVersion?: number;
|
|
1292
|
+
client?: Record<string, any>;
|
|
1293
|
+
locale?: string;
|
|
1294
|
+
oidcPrompt?: string;
|
|
1295
|
+
oidcErrorRedirectUri?: string;
|
|
1296
|
+
nativeOptions?: {
|
|
1297
|
+
platform: "ios" | "android";
|
|
1298
|
+
oauthProvider?: string;
|
|
1299
|
+
oauthRedirect?: string;
|
|
1300
|
+
};
|
|
1301
|
+
}, "tenant" | "redirectUrl" | "redirectAuth" | "oidcIdpStateId" | "samlIdpStateId" | "samlIdpUsername" | "ssoAppId" | "oidcLoginHint" | "preview" | "abTestingKey" | "client" | "locale" | "oidcPrompt" | "oidcErrorRedirectUri" | "nativeOptions"> & {
|
|
1302
|
+
lastAuth?: Omit<{
|
|
1303
|
+
authMethod?: "webauthn" | "otp" | "oauth" | "saml" | "totp" | "magiclink" | "enchantedlink";
|
|
1304
|
+
oauthProvider?: string;
|
|
1305
|
+
name?: string;
|
|
1306
|
+
loginId?: string;
|
|
1307
|
+
}, "loginId" | "name">;
|
|
1308
|
+
}, conditionInteractionId?: string, interactionId?: string, componentsVersion?: string, flowVersions?: Record<string, number>, input?: {
|
|
1309
|
+
[x: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any[])[])[])[])[])[])[])[])[])[])[];
|
|
1310
|
+
}) => Promise<_1.SdkResponse<_1.FlowResponse>>;
|
|
1311
|
+
next: (executionId: string, stepId: string, interactionId: string, version?: number, componentsVersion?: string, input?: {
|
|
1312
|
+
[x: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any[])[])[])[])[])[])[])[])[])[])[];
|
|
1313
|
+
}) => Promise<_1.SdkResponse<_1.FlowResponse>>;
|
|
1314
|
+
};
|
|
1315
|
+
webauthn: {
|
|
1316
|
+
signUp: ((identifier: string, name: string, passkeyOptions?: _1.PasskeyOptions) => Promise<_1.SdkResponse<_1.JWTResponse>>) & {
|
|
1317
|
+
start: (loginId: string, origin: string, name: string, passkeyOptions?: _1.PasskeyOptions) => Promise<_1.SdkResponse<{
|
|
1318
|
+
transactionId: string;
|
|
1319
|
+
options: string;
|
|
1320
|
+
create: boolean;
|
|
1321
|
+
}>>;
|
|
1322
|
+
finish: (transactionId: string, response: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
|
|
1323
|
+
};
|
|
1324
|
+
signIn: ((identifier: string, passkeyOptions?: _1.PasskeyOptions) => Promise<_1.SdkResponse<_1.JWTResponse>>) & {
|
|
1325
|
+
start: (loginId: string, origin: string, loginOptions?: _1.LoginOptions, token?: string, passkeyOptions?: _1.PasskeyOptions) => Promise<_1.SdkResponse<{
|
|
1326
|
+
transactionId: string;
|
|
1327
|
+
options: string;
|
|
1328
|
+
create: boolean;
|
|
1329
|
+
}>>;
|
|
1330
|
+
finish: (transactionId: string, response: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
|
|
1331
|
+
};
|
|
1332
|
+
signUpOrIn: ((identifier: string, passkeyOptions?: _1.PasskeyOptions) => Promise<_1.SdkResponse<_1.JWTResponse>>) & {
|
|
1333
|
+
start: (loginId: string, origin: string, passkeyOptions?: _1.PasskeyOptions) => Promise<_1.SdkResponse<{
|
|
1334
|
+
transactionId: string;
|
|
1335
|
+
options: string;
|
|
1336
|
+
create: boolean;
|
|
1337
|
+
}>>;
|
|
1338
|
+
};
|
|
1339
|
+
update: ((identifier: string, token: string, passkeyOptions?: _1.PasskeyOptions) => Promise<_1.SdkResponse<_1.ResponseData>>) & {
|
|
1340
|
+
start: (loginId: string, origin: string, token: string, passkeyOptions?: _1.PasskeyOptions) => Promise<_1.SdkResponse<{
|
|
1341
|
+
transactionId: string;
|
|
1342
|
+
options: string;
|
|
1343
|
+
create: boolean;
|
|
1344
|
+
}>>;
|
|
1345
|
+
finish: (transactionId: string, response: string) => Promise<_1.SdkResponse<_1.ResponseData>>;
|
|
1346
|
+
};
|
|
1347
|
+
helpers: {
|
|
1348
|
+
create: (options: string) => Promise<string>;
|
|
1349
|
+
get: (options: string) => Promise<string>;
|
|
1350
|
+
isSupported: (requirePlatformAuthenticator?: boolean) => Promise<boolean>;
|
|
1351
|
+
conditional: (options: string, abort: AbortController) => Promise<string>;
|
|
1352
|
+
};
|
|
1353
|
+
};
|
|
1354
|
+
fedcm: {
|
|
1355
|
+
oneTap(provider?: string, oneTapConfig?: import("@descope/web-js-sdk").OneTapConfig, loginOptions?: _1.LoginOptions, onSkip?: () => void): Promise<unknown>;
|
|
1356
|
+
launch(context?: "signin" | "signup" | "use" | "continue"): Promise<_1.SdkResponse<_1.JWTResponse>>;
|
|
1357
|
+
isSupported(): boolean;
|
|
1358
|
+
};
|
|
1359
|
+
accessKey: {
|
|
1360
|
+
exchange: (accessKey: string, loginOptions?: _1.AccessKeyLoginOptions) => Promise<_1.SdkResponse<_1.ExchangeAccessKeyResponse>>;
|
|
1361
|
+
};
|
|
1362
|
+
otp: {
|
|
1363
|
+
verify: {
|
|
1364
|
+
sms: (loginId: string, code: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
|
|
1365
|
+
voice: (loginId: string, code: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
|
|
1366
|
+
whatsapp: (loginId: string, code: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
|
|
1367
|
+
email: (loginId: string, code: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
|
|
1368
|
+
};
|
|
1369
|
+
signIn: {
|
|
1370
|
+
sms: (loginId: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
|
|
1371
|
+
maskedPhone: string;
|
|
1372
|
+
}>>;
|
|
1373
|
+
voice: (loginId: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
|
|
1374
|
+
maskedPhone: string;
|
|
1375
|
+
}>>;
|
|
1376
|
+
whatsapp: (loginId: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
|
|
1377
|
+
maskedPhone: string;
|
|
1378
|
+
}>>;
|
|
1379
|
+
email: (loginId: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
|
|
1380
|
+
maskedEmail: string;
|
|
1381
|
+
}>>;
|
|
1382
|
+
};
|
|
1383
|
+
signUp: {
|
|
1384
|
+
sms: (loginId: string, user?: {
|
|
1385
|
+
email?: string;
|
|
1386
|
+
name?: string;
|
|
1387
|
+
givenName?: string;
|
|
1388
|
+
middleName?: string;
|
|
1389
|
+
familyName?: string;
|
|
1390
|
+
phone?: string;
|
|
1391
|
+
}, signUpOptions?: {
|
|
1392
|
+
customClaims?: Record<string, any>;
|
|
1393
|
+
templateId?: string;
|
|
1394
|
+
templateOptions?: {
|
|
1395
|
+
[x: string]: string;
|
|
1396
|
+
};
|
|
1397
|
+
}) => Promise<_1.SdkResponse<{
|
|
1398
|
+
maskedPhone: string;
|
|
1399
|
+
}>>;
|
|
1400
|
+
voice: (loginId: string, user?: {
|
|
1401
|
+
email?: string;
|
|
1402
|
+
name?: string;
|
|
1403
|
+
givenName?: string;
|
|
1404
|
+
middleName?: string;
|
|
1405
|
+
familyName?: string;
|
|
1406
|
+
phone?: string;
|
|
1407
|
+
}, signUpOptions?: {
|
|
1408
|
+
customClaims?: Record<string, any>;
|
|
1409
|
+
templateId?: string;
|
|
1410
|
+
templateOptions?: {
|
|
1411
|
+
[x: string]: string;
|
|
1412
|
+
};
|
|
1413
|
+
}) => Promise<_1.SdkResponse<{
|
|
1414
|
+
maskedPhone: string;
|
|
1415
|
+
}>>;
|
|
1416
|
+
whatsapp: (loginId: string, user?: {
|
|
1417
|
+
email?: string;
|
|
1418
|
+
name?: string;
|
|
1419
|
+
givenName?: string;
|
|
1420
|
+
middleName?: string;
|
|
1421
|
+
familyName?: string;
|
|
1422
|
+
phone?: string;
|
|
1423
|
+
}, signUpOptions?: {
|
|
1424
|
+
customClaims?: Record<string, any>;
|
|
1425
|
+
templateId?: string;
|
|
1426
|
+
templateOptions?: {
|
|
1427
|
+
[x: string]: string;
|
|
1428
|
+
};
|
|
1429
|
+
}) => Promise<_1.SdkResponse<{
|
|
1430
|
+
maskedPhone: string;
|
|
1431
|
+
}>>;
|
|
1432
|
+
email: (loginId: string, user?: {
|
|
1433
|
+
email?: string;
|
|
1434
|
+
name?: string;
|
|
1435
|
+
givenName?: string;
|
|
1436
|
+
middleName?: string;
|
|
1437
|
+
familyName?: string;
|
|
1438
|
+
phone?: string;
|
|
1439
|
+
}, signUpOptions?: {
|
|
1440
|
+
customClaims?: Record<string, any>;
|
|
1441
|
+
templateId?: string;
|
|
1442
|
+
templateOptions?: {
|
|
1443
|
+
[x: string]: string;
|
|
1444
|
+
};
|
|
1445
|
+
}) => Promise<_1.SdkResponse<{
|
|
1446
|
+
maskedEmail: string;
|
|
1447
|
+
}>>;
|
|
1448
|
+
};
|
|
1449
|
+
signUpOrIn: {
|
|
1450
|
+
sms: (loginId: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
|
|
1451
|
+
maskedPhone: string;
|
|
1452
|
+
}>>;
|
|
1453
|
+
voice: (loginId: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
|
|
1454
|
+
maskedPhone: string;
|
|
1455
|
+
}>>;
|
|
1456
|
+
whatsapp: (loginId: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
|
|
1457
|
+
maskedPhone: string;
|
|
1458
|
+
}>>;
|
|
1459
|
+
email: (loginId: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
|
|
1460
|
+
maskedEmail: string;
|
|
1461
|
+
}>>;
|
|
1462
|
+
};
|
|
1463
|
+
update: {
|
|
1464
|
+
email: <T_6 extends boolean>(loginId: string, email: string, token?: string, updateOptions?: {
|
|
1465
|
+
addToLoginIDs?: T_6;
|
|
1466
|
+
onMergeUseExisting?: T_6 extends true ? boolean : never;
|
|
1467
|
+
templateOptions?: {
|
|
1468
|
+
[x: string]: string;
|
|
1469
|
+
};
|
|
1470
|
+
}) => Promise<_1.SdkResponse<{
|
|
1471
|
+
maskedEmail: string;
|
|
1472
|
+
}>>;
|
|
1473
|
+
phone: {
|
|
1474
|
+
sms: <T_1_6 extends boolean>(loginId: string, phone: string, token?: string, updateOptions?: {
|
|
1475
|
+
addToLoginIDs?: T_1_6;
|
|
1476
|
+
onMergeUseExisting?: T_1_6 extends true ? boolean : never;
|
|
1477
|
+
templateOptions?: {
|
|
1478
|
+
[x: string]: string;
|
|
1479
|
+
};
|
|
1480
|
+
}) => Promise<_1.SdkResponse<{
|
|
1481
|
+
maskedPhone: string;
|
|
1482
|
+
}>>;
|
|
1483
|
+
voice: <T_1_7 extends boolean>(loginId: string, phone: string, token?: string, updateOptions?: {
|
|
1484
|
+
addToLoginIDs?: T_1_7;
|
|
1485
|
+
onMergeUseExisting?: T_1_7 extends true ? boolean : never;
|
|
1486
|
+
templateOptions?: {
|
|
1487
|
+
[x: string]: string;
|
|
1488
|
+
};
|
|
1489
|
+
}) => Promise<_1.SdkResponse<{
|
|
1490
|
+
maskedPhone: string;
|
|
1491
|
+
}>>;
|
|
1492
|
+
whatsapp: <T_1_8 extends boolean>(loginId: string, phone: string, token?: string, updateOptions?: {
|
|
1493
|
+
addToLoginIDs?: T_1_8;
|
|
1494
|
+
onMergeUseExisting?: T_1_8 extends true ? boolean : never;
|
|
1495
|
+
templateOptions?: {
|
|
1496
|
+
[x: string]: string;
|
|
1497
|
+
};
|
|
1498
|
+
}) => Promise<_1.SdkResponse<{
|
|
1499
|
+
maskedPhone: string;
|
|
1500
|
+
}>>;
|
|
1501
|
+
};
|
|
1502
|
+
};
|
|
1503
|
+
};
|
|
1504
|
+
magicLink: {
|
|
1505
|
+
verify: (token: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
|
|
1506
|
+
signIn: {
|
|
1507
|
+
sms: (loginId: string, URI: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
|
|
1508
|
+
maskedPhone: string;
|
|
1509
|
+
}>>;
|
|
1510
|
+
voice: (loginId: string, URI: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
|
|
1511
|
+
maskedPhone: string;
|
|
1512
|
+
}>>;
|
|
1513
|
+
whatsapp: (loginId: string, URI: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
|
|
1514
|
+
maskedPhone: string;
|
|
1515
|
+
}>>;
|
|
1516
|
+
email: (loginId: string, URI: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
|
|
1517
|
+
maskedEmail: string;
|
|
1518
|
+
}>>;
|
|
1519
|
+
};
|
|
1520
|
+
signUp: {
|
|
1521
|
+
sms: (loginId: string, URI: string, user?: {
|
|
1522
|
+
email?: string;
|
|
1523
|
+
name?: string;
|
|
1524
|
+
givenName?: string;
|
|
1525
|
+
middleName?: string;
|
|
1526
|
+
familyName?: string;
|
|
1527
|
+
phone?: string;
|
|
1528
|
+
}, signUpOptions?: {
|
|
1529
|
+
customClaims?: Record<string, any>;
|
|
1530
|
+
templateId?: string;
|
|
1531
|
+
templateOptions?: {
|
|
1532
|
+
[x: string]: string;
|
|
1533
|
+
};
|
|
1534
|
+
}) => Promise<_1.SdkResponse<{
|
|
1535
|
+
maskedPhone: string;
|
|
1536
|
+
}>>;
|
|
1537
|
+
voice: (loginId: string, URI: string, user?: {
|
|
1538
|
+
email?: string;
|
|
1539
|
+
name?: string;
|
|
1540
|
+
givenName?: string;
|
|
1541
|
+
middleName?: string;
|
|
1542
|
+
familyName?: string;
|
|
1543
|
+
phone?: string;
|
|
1544
|
+
}, signUpOptions?: {
|
|
1545
|
+
customClaims?: Record<string, any>;
|
|
1546
|
+
templateId?: string;
|
|
1547
|
+
templateOptions?: {
|
|
1548
|
+
[x: string]: string;
|
|
1549
|
+
};
|
|
1550
|
+
}) => Promise<_1.SdkResponse<{
|
|
1551
|
+
maskedPhone: string;
|
|
1552
|
+
}>>;
|
|
1553
|
+
whatsapp: (loginId: string, URI: string, user?: {
|
|
1554
|
+
email?: string;
|
|
1555
|
+
name?: string;
|
|
1556
|
+
givenName?: string;
|
|
1557
|
+
middleName?: string;
|
|
1558
|
+
familyName?: string;
|
|
1559
|
+
phone?: string;
|
|
1560
|
+
}, signUpOptions?: {
|
|
1561
|
+
customClaims?: Record<string, any>;
|
|
1562
|
+
templateId?: string;
|
|
1563
|
+
templateOptions?: {
|
|
1564
|
+
[x: string]: string;
|
|
1565
|
+
};
|
|
1566
|
+
}) => Promise<_1.SdkResponse<{
|
|
1567
|
+
maskedPhone: string;
|
|
1568
|
+
}>>;
|
|
1569
|
+
email: (loginId: string, URI: string, user?: {
|
|
1570
|
+
email?: string;
|
|
1571
|
+
name?: string;
|
|
1572
|
+
givenName?: string;
|
|
1573
|
+
middleName?: string;
|
|
1574
|
+
familyName?: string;
|
|
1575
|
+
phone?: string;
|
|
1576
|
+
}, signUpOptions?: {
|
|
1577
|
+
customClaims?: Record<string, any>;
|
|
1578
|
+
templateId?: string;
|
|
1579
|
+
templateOptions?: {
|
|
1580
|
+
[x: string]: string;
|
|
1581
|
+
};
|
|
1582
|
+
}) => Promise<_1.SdkResponse<{
|
|
1583
|
+
maskedEmail: string;
|
|
1584
|
+
}>>;
|
|
1585
|
+
};
|
|
1586
|
+
signUpOrIn: {
|
|
1587
|
+
sms: (loginId: string, URI?: string, signUpOptions?: {
|
|
1588
|
+
customClaims?: Record<string, any>;
|
|
1589
|
+
templateId?: string;
|
|
1590
|
+
templateOptions?: {
|
|
1591
|
+
[x: string]: string;
|
|
1592
|
+
};
|
|
1593
|
+
}) => Promise<_1.SdkResponse<{
|
|
1594
|
+
maskedPhone: string;
|
|
1595
|
+
}>>;
|
|
1596
|
+
voice: (loginId: string, URI?: string, signUpOptions?: {
|
|
1597
|
+
customClaims?: Record<string, any>;
|
|
1598
|
+
templateId?: string;
|
|
1599
|
+
templateOptions?: {
|
|
1600
|
+
[x: string]: string;
|
|
1601
|
+
};
|
|
1602
|
+
}) => Promise<_1.SdkResponse<{
|
|
1603
|
+
maskedPhone: string;
|
|
1604
|
+
}>>;
|
|
1605
|
+
whatsapp: (loginId: string, URI?: string, signUpOptions?: {
|
|
1606
|
+
customClaims?: Record<string, any>;
|
|
1607
|
+
templateId?: string;
|
|
1608
|
+
templateOptions?: {
|
|
1609
|
+
[x: string]: string;
|
|
1610
|
+
};
|
|
1611
|
+
}) => Promise<_1.SdkResponse<{
|
|
1612
|
+
maskedPhone: string;
|
|
1613
|
+
}>>;
|
|
1614
|
+
email: (loginId: string, URI?: string, signUpOptions?: {
|
|
1615
|
+
customClaims?: Record<string, any>;
|
|
1616
|
+
templateId?: string;
|
|
1617
|
+
templateOptions?: {
|
|
1618
|
+
[x: string]: string;
|
|
1619
|
+
};
|
|
1620
|
+
}) => Promise<_1.SdkResponse<{
|
|
1621
|
+
maskedEmail: string;
|
|
1622
|
+
}>>;
|
|
1623
|
+
};
|
|
1624
|
+
update: {
|
|
1625
|
+
email: <T_2_2 extends boolean>(loginId: string, email: string, URI?: string, token?: string, updateOptions?: {
|
|
1626
|
+
addToLoginIDs?: T_2_2;
|
|
1627
|
+
onMergeUseExisting?: T_2_2 extends true ? boolean : never;
|
|
1628
|
+
templateOptions?: {
|
|
1629
|
+
[x: string]: string;
|
|
1630
|
+
};
|
|
1631
|
+
}) => Promise<_1.SdkResponse<{
|
|
1632
|
+
maskedEmail: string;
|
|
1633
|
+
}>>;
|
|
1634
|
+
phone: {
|
|
1635
|
+
sms: <T_3_6 extends boolean>(loginId: string, phone: string, URI?: string, token?: string, updateOptions?: {
|
|
1636
|
+
addToLoginIDs?: T_3_6;
|
|
1637
|
+
onMergeUseExisting?: T_3_6 extends true ? boolean : never;
|
|
1638
|
+
templateOptions?: {
|
|
1639
|
+
[x: string]: string;
|
|
1640
|
+
};
|
|
1641
|
+
}) => Promise<_1.SdkResponse<{
|
|
1642
|
+
maskedPhone: string;
|
|
1643
|
+
}>>;
|
|
1644
|
+
voice: <T_3_7 extends boolean>(loginId: string, phone: string, URI?: string, token?: string, updateOptions?: {
|
|
1645
|
+
addToLoginIDs?: T_3_7;
|
|
1646
|
+
onMergeUseExisting?: T_3_7 extends true ? boolean : never;
|
|
1647
|
+
templateOptions?: {
|
|
1648
|
+
[x: string]: string;
|
|
1649
|
+
};
|
|
1650
|
+
}) => Promise<_1.SdkResponse<{
|
|
1651
|
+
maskedPhone: string;
|
|
1652
|
+
}>>;
|
|
1653
|
+
whatsapp: <T_3_8 extends boolean>(loginId: string, phone: string, URI?: string, token?: string, updateOptions?: {
|
|
1654
|
+
addToLoginIDs?: T_3_8;
|
|
1655
|
+
onMergeUseExisting?: T_3_8 extends true ? boolean : never;
|
|
1656
|
+
templateOptions?: {
|
|
1657
|
+
[x: string]: string;
|
|
1658
|
+
};
|
|
1659
|
+
}) => Promise<_1.SdkResponse<{
|
|
1660
|
+
maskedPhone: string;
|
|
1661
|
+
}>>;
|
|
1662
|
+
};
|
|
1663
|
+
};
|
|
1664
|
+
};
|
|
1665
|
+
enchantedLink: {
|
|
1666
|
+
verify: (token: string) => Promise<_1.SdkResponse<never>>;
|
|
1667
|
+
signIn: (loginId: string, URI?: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<_1.EnchantedLinkResponse>>;
|
|
1668
|
+
signUpOrIn: (loginId: string, URI?: string, signUpOptions?: {
|
|
1669
|
+
customClaims?: Record<string, any>;
|
|
1670
|
+
templateId?: string;
|
|
1671
|
+
templateOptions?: {
|
|
1672
|
+
[x: string]: string;
|
|
1673
|
+
};
|
|
1674
|
+
}) => Promise<_1.SdkResponse<_1.EnchantedLinkResponse>>;
|
|
1675
|
+
signUp: (loginId: string, URI?: string, user?: {
|
|
1676
|
+
email?: string;
|
|
1677
|
+
name?: string;
|
|
1678
|
+
givenName?: string;
|
|
1679
|
+
middleName?: string;
|
|
1680
|
+
familyName?: string;
|
|
1681
|
+
phone?: string;
|
|
1682
|
+
}, signUpOptions?: {
|
|
1683
|
+
customClaims?: Record<string, any>;
|
|
1684
|
+
templateId?: string;
|
|
1685
|
+
templateOptions?: {
|
|
1686
|
+
[x: string]: string;
|
|
1687
|
+
};
|
|
1688
|
+
}) => Promise<_1.SdkResponse<_1.EnchantedLinkResponse>>;
|
|
1689
|
+
waitForSession: (pendingRef: string, config?: {
|
|
1690
|
+
pollingIntervalMs: number;
|
|
1691
|
+
timeoutMs: number;
|
|
1692
|
+
}) => Promise<_1.SdkResponse<_1.JWTResponse>>;
|
|
1693
|
+
update: {
|
|
1694
|
+
email: <T_4_2 extends boolean>(loginId: string, email: string, URI?: string, token?: string, updateOptions?: {
|
|
1695
|
+
addToLoginIDs?: T_4_2;
|
|
1696
|
+
onMergeUseExisting?: T_4_2 extends true ? boolean : never;
|
|
1697
|
+
templateOptions?: {
|
|
1698
|
+
[x: string]: string;
|
|
1699
|
+
};
|
|
1700
|
+
}) => Promise<_1.SdkResponse<_1.EnchantedLinkResponse>>;
|
|
1701
|
+
};
|
|
1702
|
+
};
|
|
1703
|
+
oauth: {
|
|
1704
|
+
start: ((provider: string, redirectUrl?: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<_1.ResponseData>>) & {
|
|
1705
|
+
google: (redirectURL?: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
|
|
1706
|
+
facebook: (redirectURL?: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
|
|
1707
|
+
github: (redirectURL?: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
|
|
1708
|
+
microsoft: (redirectURL?: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
|
|
1709
|
+
gitlab: (redirectURL?: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
|
|
1710
|
+
apple: (redirectURL?: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
|
|
1711
|
+
discord: (redirectURL?: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
|
|
1712
|
+
linkedin: (redirectURL?: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
|
|
1713
|
+
slack: (redirectURL?: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
|
|
1714
|
+
};
|
|
1715
|
+
exchange: (code: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
|
|
1716
|
+
startNative: (provider: string, loginOptions?: _1.LoginOptions, implicit?: boolean) => Promise<_1.SdkResponse<_1.ResponseData>>;
|
|
1717
|
+
finishNative: (provider: string, stateId: string, user?: string, code?: string, idToken?: string) => Promise<_1.SdkResponse<_1.ResponseData>>;
|
|
1718
|
+
};
|
|
1719
|
+
saml: {
|
|
1720
|
+
start: (tenantIdOrEmail: string, redirectUrl?: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
|
|
1721
|
+
exchange: (code: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
|
|
1722
|
+
};
|
|
1723
|
+
totp: {
|
|
1724
|
+
signUp: (loginId: string, user?: {
|
|
1725
|
+
email?: string;
|
|
1726
|
+
name?: string;
|
|
1727
|
+
givenName?: string;
|
|
1728
|
+
middleName?: string;
|
|
1729
|
+
familyName?: string;
|
|
1730
|
+
phone?: string;
|
|
1731
|
+
}) => Promise<_1.SdkResponse<_1.TOTPResponse>>;
|
|
1732
|
+
verify: (loginId: string, code: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
|
|
1733
|
+
update: (loginId: string, token?: string) => Promise<_1.SdkResponse<_1.TOTPResponse>>;
|
|
1734
|
+
};
|
|
1735
|
+
notp: {
|
|
1736
|
+
signUpOrIn: (loginId?: string, signUpOptions?: {
|
|
1737
|
+
customClaims?: Record<string, any>;
|
|
1738
|
+
templateId?: string;
|
|
1739
|
+
templateOptions?: {
|
|
1740
|
+
[x: string]: string;
|
|
1741
|
+
};
|
|
1742
|
+
}) => Promise<_1.SdkResponse<{
|
|
1743
|
+
pendingRef: string;
|
|
1744
|
+
redirectUrl: string;
|
|
1745
|
+
image: string;
|
|
1746
|
+
}>>;
|
|
1747
|
+
signUp: (loginId?: string, user?: {
|
|
1748
|
+
email?: string;
|
|
1749
|
+
name?: string;
|
|
1750
|
+
givenName?: string;
|
|
1751
|
+
middleName?: string;
|
|
1752
|
+
familyName?: string;
|
|
1753
|
+
phone?: string;
|
|
1754
|
+
}, signUpOptions?: {
|
|
1755
|
+
customClaims?: Record<string, any>;
|
|
1756
|
+
templateId?: string;
|
|
1757
|
+
templateOptions?: {
|
|
1758
|
+
[x: string]: string;
|
|
1759
|
+
};
|
|
1760
|
+
}) => Promise<_1.SdkResponse<{
|
|
1761
|
+
pendingRef: string;
|
|
1762
|
+
redirectUrl: string;
|
|
1763
|
+
image: string;
|
|
1764
|
+
}>>;
|
|
1765
|
+
signIn: (loginId?: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
|
|
1766
|
+
pendingRef: string;
|
|
1767
|
+
redirectUrl: string;
|
|
1768
|
+
image: string;
|
|
1769
|
+
}>>;
|
|
1770
|
+
waitForSession: (pendingRef: string, config?: {
|
|
1771
|
+
pollingIntervalMs: number;
|
|
1772
|
+
timeoutMs: number;
|
|
1773
|
+
}) => Promise<_1.SdkResponse<_1.JWTResponse>>;
|
|
1774
|
+
};
|
|
1775
|
+
password: {
|
|
1776
|
+
signUp: (loginId: string, password: string, user?: {
|
|
1777
|
+
email?: string;
|
|
1778
|
+
name?: string;
|
|
1779
|
+
givenName?: string;
|
|
1780
|
+
middleName?: string;
|
|
1781
|
+
familyName?: string;
|
|
1782
|
+
phone?: string;
|
|
1783
|
+
}, signUpOptions?: {
|
|
1784
|
+
customClaims?: Record<string, any>;
|
|
1785
|
+
templateId?: string;
|
|
1786
|
+
templateOptions?: {
|
|
1787
|
+
[x: string]: string;
|
|
1788
|
+
};
|
|
1789
|
+
}) => Promise<_1.SdkResponse<_1.JWTResponse>>;
|
|
1790
|
+
signIn: (loginId: string, password: string, loginOptions?: _1.LoginOptions) => Promise<_1.SdkResponse<_1.JWTResponse>>;
|
|
1791
|
+
sendReset: (loginId: string, redirectUrl?: string, templateOptions?: {
|
|
1792
|
+
[x: string]: string;
|
|
1793
|
+
}) => Promise<_1.SdkResponse<{
|
|
1794
|
+
resetMethod: string;
|
|
1795
|
+
pendingRef?: string;
|
|
1796
|
+
linkId?: string;
|
|
1797
|
+
maskedEmail: string;
|
|
1798
|
+
}>>;
|
|
1799
|
+
update: (loginId: string, newPassword: string, token?: string) => Promise<_1.SdkResponse<never>>;
|
|
1800
|
+
replace: (loginId: string, oldPassword: string, newPassword: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
|
|
1801
|
+
policy: () => Promise<_1.SdkResponse<{
|
|
1802
|
+
minLength: number;
|
|
1803
|
+
lowercase: boolean;
|
|
1804
|
+
uppercase: boolean;
|
|
1805
|
+
number: boolean;
|
|
1806
|
+
nonAlphanumeric: boolean;
|
|
1807
|
+
}>>;
|
|
1808
|
+
};
|
|
1809
|
+
selectTenant: (tenantId: string, token?: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
|
|
1810
|
+
logout: (token?: string) => Promise<_1.SdkResponse<never>>;
|
|
1811
|
+
logoutAll: (token?: string) => Promise<_1.SdkResponse<never>>;
|
|
1812
|
+
logoutPrevious: (token?: string) => Promise<_1.SdkResponse<never>>;
|
|
1196
1813
|
me: (token?: string) => Promise<_1.SdkResponse<_1.UserResponse>>;
|
|
1197
1814
|
myTenants: (tenants: true | string[], token?: string) => Promise<_1.SdkResponse<{
|
|
1198
1815
|
tenants: {
|
|
@@ -1305,8 +1922,1226 @@ export declare const createTempSdk: () => ((({
|
|
|
1305
1922
|
name?: string;
|
|
1306
1923
|
loginId?: string;
|
|
1307
1924
|
}, "loginId" | "name">;
|
|
1308
|
-
}, conditionInteractionId?: string, interactionId?: string, componentsVersion?: string, flowVersions?: Record<string, number>, input?:
|
|
1309
|
-
|
|
1925
|
+
}, conditionInteractionId?: string, interactionId?: string, componentsVersion?: string, flowVersions?: Record<string, number>, input?: {
|
|
1926
|
+
[x: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any[])[])[])[])[])[])[])[])[])[])[];
|
|
1927
|
+
}) => Promise<_1.SdkResponse<_1.FlowResponse>>;
|
|
1928
|
+
next: (executionId: string, stepId: string, interactionId: string, version?: number, componentsVersion?: string, input?: {
|
|
1929
|
+
[x: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any[])[])[])[])[])[])[])[])[])[])[];
|
|
1930
|
+
}) => Promise<_1.SdkResponse<_1.FlowResponse>>;
|
|
1931
|
+
};
|
|
1932
|
+
webauthn: {
|
|
1933
|
+
signUp: ((identifier: string, name: string, passkeyOptions?: _1.PasskeyOptions) => Promise<_1.SdkResponse<_1.JWTResponse>>) & {
|
|
1934
|
+
start: (loginId: string, origin: string, name: string, passkeyOptions?: _1.PasskeyOptions) => Promise<_1.SdkResponse<{
|
|
1935
|
+
transactionId: string;
|
|
1936
|
+
options: string;
|
|
1937
|
+
create: boolean;
|
|
1938
|
+
}>>;
|
|
1939
|
+
finish: (transactionId: string, response: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
|
|
1940
|
+
};
|
|
1941
|
+
signIn: ((identifier: string, passkeyOptions?: _1.PasskeyOptions) => Promise<_1.SdkResponse<_1.JWTResponse>>) & {
|
|
1942
|
+
start: (loginId: string, origin: string, loginOptions?: _1.LoginOptions, token?: string, passkeyOptions?: _1.PasskeyOptions) => Promise<_1.SdkResponse<{
|
|
1943
|
+
transactionId: string;
|
|
1944
|
+
options: string;
|
|
1945
|
+
create: boolean;
|
|
1946
|
+
}>>;
|
|
1947
|
+
finish: (transactionId: string, response: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
|
|
1948
|
+
};
|
|
1949
|
+
signUpOrIn: ((identifier: string, passkeyOptions?: _1.PasskeyOptions) => Promise<_1.SdkResponse<_1.JWTResponse>>) & {
|
|
1950
|
+
start: (loginId: string, origin: string, passkeyOptions?: _1.PasskeyOptions) => Promise<_1.SdkResponse<{
|
|
1951
|
+
transactionId: string;
|
|
1952
|
+
options: string;
|
|
1953
|
+
create: boolean;
|
|
1954
|
+
}>>;
|
|
1955
|
+
};
|
|
1956
|
+
update: ((identifier: string, token: string, passkeyOptions?: _1.PasskeyOptions) => Promise<_1.SdkResponse<_1.ResponseData>>) & {
|
|
1957
|
+
start: (loginId: string, origin: string, token: string, passkeyOptions?: _1.PasskeyOptions) => Promise<_1.SdkResponse<{
|
|
1958
|
+
transactionId: string;
|
|
1959
|
+
options: string;
|
|
1960
|
+
create: boolean;
|
|
1961
|
+
}>>;
|
|
1962
|
+
finish: (transactionId: string, response: string) => Promise<_1.SdkResponse<_1.ResponseData>>;
|
|
1963
|
+
};
|
|
1964
|
+
helpers: {
|
|
1965
|
+
create: (options: string) => Promise<string>;
|
|
1966
|
+
get: (options: string) => Promise<string>;
|
|
1967
|
+
isSupported: (requirePlatformAuthenticator?: boolean) => Promise<boolean>;
|
|
1968
|
+
conditional: (options: string, abort: AbortController) => Promise<string>;
|
|
1969
|
+
};
|
|
1970
|
+
};
|
|
1971
|
+
fedcm: {
|
|
1972
|
+
oneTap(provider?: string, oneTapConfig?: import("@descope/web-js-sdk").OneTapConfig, loginOptions?: _1.LoginOptions, onSkip?: () => void): Promise<unknown>;
|
|
1973
|
+
launch(context?: "signin" | "signup" | "use" | "continue"): Promise<_1.SdkResponse<_1.JWTResponse>>;
|
|
1974
|
+
isSupported(): boolean;
|
|
1975
|
+
};
|
|
1976
|
+
accessKey: {
|
|
1977
|
+
exchange: (accessKey: string, loginOptions?: _1.AccessKeyLoginOptions) => Promise<_1.SdkResponse<_1.ExchangeAccessKeyResponse>>;
|
|
1978
|
+
};
|
|
1979
|
+
otp: {
|
|
1980
|
+
verify: {
|
|
1981
|
+
sms: (loginId: string, code: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
|
|
1982
|
+
voice: (loginId: string, code: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
|
|
1983
|
+
whatsapp: (loginId: string, code: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
|
|
1984
|
+
email: (loginId: string, code: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
|
|
1985
|
+
};
|
|
1986
|
+
signIn: {
|
|
1987
|
+
sms: (loginId: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
|
|
1988
|
+
maskedPhone: string;
|
|
1989
|
+
}>>;
|
|
1990
|
+
voice: (loginId: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
|
|
1991
|
+
maskedPhone: string;
|
|
1992
|
+
}>>;
|
|
1993
|
+
whatsapp: (loginId: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
|
|
1994
|
+
maskedPhone: string;
|
|
1995
|
+
}>>;
|
|
1996
|
+
email: (loginId: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
|
|
1997
|
+
maskedEmail: string;
|
|
1998
|
+
}>>;
|
|
1999
|
+
};
|
|
2000
|
+
signUp: {
|
|
2001
|
+
sms: (loginId: string, user?: {
|
|
2002
|
+
email?: string;
|
|
2003
|
+
name?: string;
|
|
2004
|
+
givenName?: string;
|
|
2005
|
+
middleName?: string;
|
|
2006
|
+
familyName?: string;
|
|
2007
|
+
phone?: string;
|
|
2008
|
+
}, signUpOptions?: {
|
|
2009
|
+
customClaims?: Record<string, any>;
|
|
2010
|
+
templateId?: string;
|
|
2011
|
+
templateOptions?: {
|
|
2012
|
+
[x: string]: string;
|
|
2013
|
+
};
|
|
2014
|
+
}) => Promise<_1.SdkResponse<{
|
|
2015
|
+
maskedPhone: string;
|
|
2016
|
+
}>>;
|
|
2017
|
+
voice: (loginId: string, user?: {
|
|
2018
|
+
email?: string;
|
|
2019
|
+
name?: string;
|
|
2020
|
+
givenName?: string;
|
|
2021
|
+
middleName?: string;
|
|
2022
|
+
familyName?: string;
|
|
2023
|
+
phone?: string;
|
|
2024
|
+
}, signUpOptions?: {
|
|
2025
|
+
customClaims?: Record<string, any>;
|
|
2026
|
+
templateId?: string;
|
|
2027
|
+
templateOptions?: {
|
|
2028
|
+
[x: string]: string;
|
|
2029
|
+
};
|
|
2030
|
+
}) => Promise<_1.SdkResponse<{
|
|
2031
|
+
maskedPhone: string;
|
|
2032
|
+
}>>;
|
|
2033
|
+
whatsapp: (loginId: string, user?: {
|
|
2034
|
+
email?: string;
|
|
2035
|
+
name?: string;
|
|
2036
|
+
givenName?: string;
|
|
2037
|
+
middleName?: string;
|
|
2038
|
+
familyName?: string;
|
|
2039
|
+
phone?: string;
|
|
2040
|
+
}, signUpOptions?: {
|
|
2041
|
+
customClaims?: Record<string, any>;
|
|
2042
|
+
templateId?: string;
|
|
2043
|
+
templateOptions?: {
|
|
2044
|
+
[x: string]: string;
|
|
2045
|
+
};
|
|
2046
|
+
}) => Promise<_1.SdkResponse<{
|
|
2047
|
+
maskedPhone: string;
|
|
2048
|
+
}>>;
|
|
2049
|
+
email: (loginId: string, user?: {
|
|
2050
|
+
email?: string;
|
|
2051
|
+
name?: string;
|
|
2052
|
+
givenName?: string;
|
|
2053
|
+
middleName?: string;
|
|
2054
|
+
familyName?: string;
|
|
2055
|
+
phone?: string;
|
|
2056
|
+
}, signUpOptions?: {
|
|
2057
|
+
customClaims?: Record<string, any>;
|
|
2058
|
+
templateId?: string;
|
|
2059
|
+
templateOptions?: {
|
|
2060
|
+
[x: string]: string;
|
|
2061
|
+
};
|
|
2062
|
+
}) => Promise<_1.SdkResponse<{
|
|
2063
|
+
maskedEmail: string;
|
|
2064
|
+
}>>;
|
|
2065
|
+
};
|
|
2066
|
+
signUpOrIn: {
|
|
2067
|
+
sms: (loginId: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
|
|
2068
|
+
maskedPhone: string;
|
|
2069
|
+
}>>;
|
|
2070
|
+
voice: (loginId: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
|
|
2071
|
+
maskedPhone: string;
|
|
2072
|
+
}>>;
|
|
2073
|
+
whatsapp: (loginId: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
|
|
2074
|
+
maskedPhone: string;
|
|
2075
|
+
}>>;
|
|
2076
|
+
email: (loginId: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
|
|
2077
|
+
maskedEmail: string;
|
|
2078
|
+
}>>;
|
|
2079
|
+
};
|
|
2080
|
+
update: {
|
|
2081
|
+
email: <T extends boolean>(loginId: string, email: string, token?: string, updateOptions?: {
|
|
2082
|
+
addToLoginIDs?: T;
|
|
2083
|
+
onMergeUseExisting?: T extends true ? boolean : never;
|
|
2084
|
+
templateOptions?: {
|
|
2085
|
+
[x: string]: string;
|
|
2086
|
+
};
|
|
2087
|
+
}) => Promise<_1.SdkResponse<{
|
|
2088
|
+
maskedEmail: string;
|
|
2089
|
+
}>>;
|
|
2090
|
+
phone: {
|
|
2091
|
+
sms: <T_1 extends boolean>(loginId: string, phone: string, token?: string, updateOptions?: {
|
|
2092
|
+
addToLoginIDs?: T_1;
|
|
2093
|
+
onMergeUseExisting?: T_1 extends true ? boolean : never;
|
|
2094
|
+
templateOptions?: {
|
|
2095
|
+
[x: string]: string;
|
|
2096
|
+
};
|
|
2097
|
+
}) => Promise<_1.SdkResponse<{
|
|
2098
|
+
maskedPhone: string;
|
|
2099
|
+
}>>;
|
|
2100
|
+
voice: <T_1_1 extends boolean>(loginId: string, phone: string, token?: string, updateOptions?: {
|
|
2101
|
+
addToLoginIDs?: T_1_1;
|
|
2102
|
+
onMergeUseExisting?: T_1_1 extends true ? boolean : never;
|
|
2103
|
+
templateOptions?: {
|
|
2104
|
+
[x: string]: string;
|
|
2105
|
+
};
|
|
2106
|
+
}) => Promise<_1.SdkResponse<{
|
|
2107
|
+
maskedPhone: string;
|
|
2108
|
+
}>>;
|
|
2109
|
+
whatsapp: <T_1_2 extends boolean>(loginId: string, phone: string, token?: string, updateOptions?: {
|
|
2110
|
+
addToLoginIDs?: T_1_2;
|
|
2111
|
+
onMergeUseExisting?: T_1_2 extends true ? boolean : never;
|
|
2112
|
+
templateOptions?: {
|
|
2113
|
+
[x: string]: string;
|
|
2114
|
+
};
|
|
2115
|
+
}) => Promise<_1.SdkResponse<{
|
|
2116
|
+
maskedPhone: string;
|
|
2117
|
+
}>>;
|
|
2118
|
+
};
|
|
2119
|
+
};
|
|
2120
|
+
};
|
|
2121
|
+
magicLink: {
|
|
2122
|
+
verify: (token: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
|
|
2123
|
+
signIn: {
|
|
2124
|
+
sms: (loginId: string, URI: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
|
|
2125
|
+
maskedPhone: string;
|
|
2126
|
+
}>>;
|
|
2127
|
+
voice: (loginId: string, URI: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
|
|
2128
|
+
maskedPhone: string;
|
|
2129
|
+
}>>;
|
|
2130
|
+
whatsapp: (loginId: string, URI: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
|
|
2131
|
+
maskedPhone: string;
|
|
2132
|
+
}>>;
|
|
2133
|
+
email: (loginId: string, URI: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
|
|
2134
|
+
maskedEmail: string;
|
|
2135
|
+
}>>;
|
|
2136
|
+
};
|
|
2137
|
+
signUp: {
|
|
2138
|
+
sms: (loginId: string, URI: string, user?: {
|
|
2139
|
+
email?: string;
|
|
2140
|
+
name?: string;
|
|
2141
|
+
givenName?: string;
|
|
2142
|
+
middleName?: string;
|
|
2143
|
+
familyName?: string;
|
|
2144
|
+
phone?: string;
|
|
2145
|
+
}, signUpOptions?: {
|
|
2146
|
+
customClaims?: Record<string, any>;
|
|
2147
|
+
templateId?: string;
|
|
2148
|
+
templateOptions?: {
|
|
2149
|
+
[x: string]: string;
|
|
2150
|
+
};
|
|
2151
|
+
}) => Promise<_1.SdkResponse<{
|
|
2152
|
+
maskedPhone: string;
|
|
2153
|
+
}>>;
|
|
2154
|
+
voice: (loginId: string, URI: string, user?: {
|
|
2155
|
+
email?: string;
|
|
2156
|
+
name?: string;
|
|
2157
|
+
givenName?: string;
|
|
2158
|
+
middleName?: string;
|
|
2159
|
+
familyName?: string;
|
|
2160
|
+
phone?: string;
|
|
2161
|
+
}, signUpOptions?: {
|
|
2162
|
+
customClaims?: Record<string, any>;
|
|
2163
|
+
templateId?: string;
|
|
2164
|
+
templateOptions?: {
|
|
2165
|
+
[x: string]: string;
|
|
2166
|
+
};
|
|
2167
|
+
}) => Promise<_1.SdkResponse<{
|
|
2168
|
+
maskedPhone: string;
|
|
2169
|
+
}>>;
|
|
2170
|
+
whatsapp: (loginId: string, URI: string, user?: {
|
|
2171
|
+
email?: string;
|
|
2172
|
+
name?: string;
|
|
2173
|
+
givenName?: string;
|
|
2174
|
+
middleName?: string;
|
|
2175
|
+
familyName?: string;
|
|
2176
|
+
phone?: string;
|
|
2177
|
+
}, signUpOptions?: {
|
|
2178
|
+
customClaims?: Record<string, any>;
|
|
2179
|
+
templateId?: string;
|
|
2180
|
+
templateOptions?: {
|
|
2181
|
+
[x: string]: string;
|
|
2182
|
+
};
|
|
2183
|
+
}) => Promise<_1.SdkResponse<{
|
|
2184
|
+
maskedPhone: string;
|
|
2185
|
+
}>>;
|
|
2186
|
+
email: (loginId: string, URI: string, user?: {
|
|
2187
|
+
email?: string;
|
|
2188
|
+
name?: string;
|
|
2189
|
+
givenName?: string;
|
|
2190
|
+
middleName?: string;
|
|
2191
|
+
familyName?: string;
|
|
2192
|
+
phone?: string;
|
|
2193
|
+
}, signUpOptions?: {
|
|
2194
|
+
customClaims?: Record<string, any>;
|
|
2195
|
+
templateId?: string;
|
|
2196
|
+
templateOptions?: {
|
|
2197
|
+
[x: string]: string;
|
|
2198
|
+
};
|
|
2199
|
+
}) => Promise<_1.SdkResponse<{
|
|
2200
|
+
maskedEmail: string;
|
|
2201
|
+
}>>;
|
|
2202
|
+
};
|
|
2203
|
+
signUpOrIn: {
|
|
2204
|
+
sms: (loginId: string, URI?: string, signUpOptions?: {
|
|
2205
|
+
customClaims?: Record<string, any>;
|
|
2206
|
+
templateId?: string;
|
|
2207
|
+
templateOptions?: {
|
|
2208
|
+
[x: string]: string;
|
|
2209
|
+
};
|
|
2210
|
+
}) => Promise<_1.SdkResponse<{
|
|
2211
|
+
maskedPhone: string;
|
|
2212
|
+
}>>;
|
|
2213
|
+
voice: (loginId: string, URI?: string, signUpOptions?: {
|
|
2214
|
+
customClaims?: Record<string, any>;
|
|
2215
|
+
templateId?: string;
|
|
2216
|
+
templateOptions?: {
|
|
2217
|
+
[x: string]: string;
|
|
2218
|
+
};
|
|
2219
|
+
}) => Promise<_1.SdkResponse<{
|
|
2220
|
+
maskedPhone: string;
|
|
2221
|
+
}>>;
|
|
2222
|
+
whatsapp: (loginId: string, URI?: string, signUpOptions?: {
|
|
2223
|
+
customClaims?: Record<string, any>;
|
|
2224
|
+
templateId?: string;
|
|
2225
|
+
templateOptions?: {
|
|
2226
|
+
[x: string]: string;
|
|
2227
|
+
};
|
|
2228
|
+
}) => Promise<_1.SdkResponse<{
|
|
2229
|
+
maskedPhone: string;
|
|
2230
|
+
}>>;
|
|
2231
|
+
email: (loginId: string, URI?: string, signUpOptions?: {
|
|
2232
|
+
customClaims?: Record<string, any>;
|
|
2233
|
+
templateId?: string;
|
|
2234
|
+
templateOptions?: {
|
|
2235
|
+
[x: string]: string;
|
|
2236
|
+
};
|
|
2237
|
+
}) => Promise<_1.SdkResponse<{
|
|
2238
|
+
maskedEmail: string;
|
|
2239
|
+
}>>;
|
|
2240
|
+
};
|
|
2241
|
+
update: {
|
|
2242
|
+
email: <T_2 extends boolean>(loginId: string, email: string, URI?: string, token?: string, updateOptions?: {
|
|
2243
|
+
addToLoginIDs?: T_2;
|
|
2244
|
+
onMergeUseExisting?: T_2 extends true ? boolean : never;
|
|
2245
|
+
templateOptions?: {
|
|
2246
|
+
[x: string]: string;
|
|
2247
|
+
};
|
|
2248
|
+
}) => Promise<_1.SdkResponse<{
|
|
2249
|
+
maskedEmail: string;
|
|
2250
|
+
}>>;
|
|
2251
|
+
phone: {
|
|
2252
|
+
sms: <T_3 extends boolean>(loginId: string, phone: string, URI?: string, token?: string, updateOptions?: {
|
|
2253
|
+
addToLoginIDs?: T_3;
|
|
2254
|
+
onMergeUseExisting?: T_3 extends true ? boolean : never;
|
|
2255
|
+
templateOptions?: {
|
|
2256
|
+
[x: string]: string;
|
|
2257
|
+
};
|
|
2258
|
+
}) => Promise<_1.SdkResponse<{
|
|
2259
|
+
maskedPhone: string;
|
|
2260
|
+
}>>;
|
|
2261
|
+
voice: <T_3_1 extends boolean>(loginId: string, phone: string, URI?: string, token?: string, updateOptions?: {
|
|
2262
|
+
addToLoginIDs?: T_3_1;
|
|
2263
|
+
onMergeUseExisting?: T_3_1 extends true ? boolean : never;
|
|
2264
|
+
templateOptions?: {
|
|
2265
|
+
[x: string]: string;
|
|
2266
|
+
};
|
|
2267
|
+
}) => Promise<_1.SdkResponse<{
|
|
2268
|
+
maskedPhone: string;
|
|
2269
|
+
}>>;
|
|
2270
|
+
whatsapp: <T_3_2 extends boolean>(loginId: string, phone: string, URI?: string, token?: string, updateOptions?: {
|
|
2271
|
+
addToLoginIDs?: T_3_2;
|
|
2272
|
+
onMergeUseExisting?: T_3_2 extends true ? boolean : never;
|
|
2273
|
+
templateOptions?: {
|
|
2274
|
+
[x: string]: string;
|
|
2275
|
+
};
|
|
2276
|
+
}) => Promise<_1.SdkResponse<{
|
|
2277
|
+
maskedPhone: string;
|
|
2278
|
+
}>>;
|
|
2279
|
+
};
|
|
2280
|
+
};
|
|
2281
|
+
};
|
|
2282
|
+
enchantedLink: {
|
|
2283
|
+
verify: (token: string) => Promise<_1.SdkResponse<never>>;
|
|
2284
|
+
signIn: (loginId: string, URI?: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<_1.EnchantedLinkResponse>>;
|
|
2285
|
+
signUpOrIn: (loginId: string, URI?: string, signUpOptions?: {
|
|
2286
|
+
customClaims?: Record<string, any>;
|
|
2287
|
+
templateId?: string;
|
|
2288
|
+
templateOptions?: {
|
|
2289
|
+
[x: string]: string;
|
|
2290
|
+
};
|
|
2291
|
+
}) => Promise<_1.SdkResponse<_1.EnchantedLinkResponse>>;
|
|
2292
|
+
signUp: (loginId: string, URI?: string, user?: {
|
|
2293
|
+
email?: string;
|
|
2294
|
+
name?: string;
|
|
2295
|
+
givenName?: string;
|
|
2296
|
+
middleName?: string;
|
|
2297
|
+
familyName?: string;
|
|
2298
|
+
phone?: string;
|
|
2299
|
+
}, signUpOptions?: {
|
|
2300
|
+
customClaims?: Record<string, any>;
|
|
2301
|
+
templateId?: string;
|
|
2302
|
+
templateOptions?: {
|
|
2303
|
+
[x: string]: string;
|
|
2304
|
+
};
|
|
2305
|
+
}) => Promise<_1.SdkResponse<_1.EnchantedLinkResponse>>;
|
|
2306
|
+
waitForSession: (pendingRef: string, config?: {
|
|
2307
|
+
pollingIntervalMs: number;
|
|
2308
|
+
timeoutMs: number;
|
|
2309
|
+
}) => Promise<_1.SdkResponse<_1.JWTResponse>>;
|
|
2310
|
+
update: {
|
|
2311
|
+
email: <T_4 extends boolean>(loginId: string, email: string, URI?: string, token?: string, updateOptions?: {
|
|
2312
|
+
addToLoginIDs?: T_4;
|
|
2313
|
+
onMergeUseExisting?: T_4 extends true ? boolean : never;
|
|
2314
|
+
templateOptions?: {
|
|
2315
|
+
[x: string]: string;
|
|
2316
|
+
};
|
|
2317
|
+
}) => Promise<_1.SdkResponse<_1.EnchantedLinkResponse>>;
|
|
2318
|
+
};
|
|
2319
|
+
};
|
|
2320
|
+
oauth: {
|
|
2321
|
+
start: ((provider: string, redirectUrl?: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<_1.ResponseData>>) & {
|
|
2322
|
+
google: (redirectURL?: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
|
|
2323
|
+
facebook: (redirectURL?: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
|
|
2324
|
+
github: (redirectURL?: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
|
|
2325
|
+
microsoft: (redirectURL?: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
|
|
2326
|
+
gitlab: (redirectURL?: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
|
|
2327
|
+
apple: (redirectURL?: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
|
|
2328
|
+
discord: (redirectURL?: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
|
|
2329
|
+
linkedin: (redirectURL?: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
|
|
2330
|
+
slack: (redirectURL?: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
|
|
2331
|
+
};
|
|
2332
|
+
exchange: (code: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
|
|
2333
|
+
startNative: (provider: string, loginOptions?: _1.LoginOptions, implicit?: boolean) => Promise<_1.SdkResponse<_1.ResponseData>>;
|
|
2334
|
+
finishNative: (provider: string, stateId: string, user?: string, code?: string, idToken?: string) => Promise<_1.SdkResponse<_1.ResponseData>>;
|
|
2335
|
+
};
|
|
2336
|
+
saml: {
|
|
2337
|
+
start: (tenantIdOrEmail: string, redirectUrl?: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
|
|
2338
|
+
exchange: (code: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
|
|
2339
|
+
};
|
|
2340
|
+
totp: {
|
|
2341
|
+
signUp: (loginId: string, user?: {
|
|
2342
|
+
email?: string;
|
|
2343
|
+
name?: string;
|
|
2344
|
+
givenName?: string;
|
|
2345
|
+
middleName?: string;
|
|
2346
|
+
familyName?: string;
|
|
2347
|
+
phone?: string;
|
|
2348
|
+
}) => Promise<_1.SdkResponse<_1.TOTPResponse>>;
|
|
2349
|
+
verify: (loginId: string, code: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
|
|
2350
|
+
update: (loginId: string, token?: string) => Promise<_1.SdkResponse<_1.TOTPResponse>>;
|
|
2351
|
+
};
|
|
2352
|
+
notp: {
|
|
2353
|
+
signUpOrIn: (loginId?: string, signUpOptions?: {
|
|
2354
|
+
customClaims?: Record<string, any>;
|
|
2355
|
+
templateId?: string;
|
|
2356
|
+
templateOptions?: {
|
|
2357
|
+
[x: string]: string;
|
|
2358
|
+
};
|
|
2359
|
+
}) => Promise<_1.SdkResponse<{
|
|
2360
|
+
pendingRef: string;
|
|
2361
|
+
redirectUrl: string;
|
|
2362
|
+
image: string;
|
|
2363
|
+
}>>;
|
|
2364
|
+
signUp: (loginId?: string, user?: {
|
|
2365
|
+
email?: string;
|
|
2366
|
+
name?: string;
|
|
2367
|
+
givenName?: string;
|
|
2368
|
+
middleName?: string;
|
|
2369
|
+
familyName?: string;
|
|
2370
|
+
phone?: string;
|
|
2371
|
+
}, signUpOptions?: {
|
|
2372
|
+
customClaims?: Record<string, any>;
|
|
2373
|
+
templateId?: string;
|
|
2374
|
+
templateOptions?: {
|
|
2375
|
+
[x: string]: string;
|
|
2376
|
+
};
|
|
2377
|
+
}) => Promise<_1.SdkResponse<{
|
|
2378
|
+
pendingRef: string;
|
|
2379
|
+
redirectUrl: string;
|
|
2380
|
+
image: string;
|
|
2381
|
+
}>>;
|
|
2382
|
+
signIn: (loginId?: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
|
|
2383
|
+
pendingRef: string;
|
|
2384
|
+
redirectUrl: string;
|
|
2385
|
+
image: string;
|
|
2386
|
+
}>>;
|
|
2387
|
+
waitForSession: (pendingRef: string, config?: {
|
|
2388
|
+
pollingIntervalMs: number;
|
|
2389
|
+
timeoutMs: number;
|
|
2390
|
+
}) => Promise<_1.SdkResponse<_1.JWTResponse>>;
|
|
2391
|
+
};
|
|
2392
|
+
password: {
|
|
2393
|
+
signUp: (loginId: string, password: string, user?: {
|
|
2394
|
+
email?: string;
|
|
2395
|
+
name?: string;
|
|
2396
|
+
givenName?: string;
|
|
2397
|
+
middleName?: string;
|
|
2398
|
+
familyName?: string;
|
|
2399
|
+
phone?: string;
|
|
2400
|
+
}, signUpOptions?: {
|
|
2401
|
+
customClaims?: Record<string, any>;
|
|
2402
|
+
templateId?: string;
|
|
2403
|
+
templateOptions?: {
|
|
2404
|
+
[x: string]: string;
|
|
2405
|
+
};
|
|
2406
|
+
}) => Promise<_1.SdkResponse<_1.JWTResponse>>;
|
|
2407
|
+
signIn: (loginId: string, password: string, loginOptions?: _1.LoginOptions) => Promise<_1.SdkResponse<_1.JWTResponse>>;
|
|
2408
|
+
sendReset: (loginId: string, redirectUrl?: string, templateOptions?: {
|
|
2409
|
+
[x: string]: string;
|
|
2410
|
+
}) => Promise<_1.SdkResponse<{
|
|
2411
|
+
resetMethod: string;
|
|
2412
|
+
pendingRef?: string;
|
|
2413
|
+
linkId?: string;
|
|
2414
|
+
maskedEmail: string;
|
|
2415
|
+
}>>;
|
|
2416
|
+
update: (loginId: string, newPassword: string, token?: string) => Promise<_1.SdkResponse<never>>;
|
|
2417
|
+
replace: (loginId: string, oldPassword: string, newPassword: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
|
|
2418
|
+
policy: () => Promise<_1.SdkResponse<{
|
|
2419
|
+
minLength: number;
|
|
2420
|
+
lowercase: boolean;
|
|
2421
|
+
uppercase: boolean;
|
|
2422
|
+
number: boolean;
|
|
2423
|
+
nonAlphanumeric: boolean;
|
|
2424
|
+
}>>;
|
|
2425
|
+
};
|
|
2426
|
+
selectTenant: (tenantId: string, token?: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
|
|
2427
|
+
logout: (token?: string) => Promise<_1.SdkResponse<never>>;
|
|
2428
|
+
logoutAll: (token?: string) => Promise<_1.SdkResponse<never>>;
|
|
2429
|
+
logoutPrevious: (token?: string) => Promise<_1.SdkResponse<never>>;
|
|
2430
|
+
me: (token?: string) => Promise<_1.SdkResponse<_1.UserResponse>>;
|
|
2431
|
+
myTenants: (tenants: true | string[], token?: string) => Promise<_1.SdkResponse<{
|
|
2432
|
+
tenants: {
|
|
2433
|
+
id: string;
|
|
2434
|
+
name: string;
|
|
2435
|
+
customAttributes?: Record<string, any>;
|
|
2436
|
+
}[];
|
|
2437
|
+
}>>;
|
|
2438
|
+
history: (token?: string) => Promise<_1.SdkResponse<_1.UserHistoryResponse>>;
|
|
2439
|
+
isJwtExpired: (token: string) => boolean;
|
|
2440
|
+
getTenants: (token: string) => string[];
|
|
2441
|
+
getJwtPermissions: (token: string, tenant?: string) => string[];
|
|
2442
|
+
getJwtRoles: (token: string, tenant?: string) => string[];
|
|
2443
|
+
httpClient: {
|
|
2444
|
+
get: (path: string, config?: {
|
|
2445
|
+
headers?: HeadersInit;
|
|
2446
|
+
queryParams?: {
|
|
2447
|
+
[key: string]: string;
|
|
2448
|
+
};
|
|
2449
|
+
token?: string;
|
|
2450
|
+
}) => Promise<Response>;
|
|
2451
|
+
post: (path: string, body?: any, config?: {
|
|
2452
|
+
headers?: HeadersInit;
|
|
2453
|
+
queryParams?: {
|
|
2454
|
+
[key: string]: string;
|
|
2455
|
+
};
|
|
2456
|
+
token?: string;
|
|
2457
|
+
}) => Promise<Response>;
|
|
2458
|
+
patch: (path: string, body?: any, config?: {
|
|
2459
|
+
headers?: HeadersInit;
|
|
2460
|
+
queryParams?: {
|
|
2461
|
+
[key: string]: string;
|
|
2462
|
+
};
|
|
2463
|
+
token?: string;
|
|
2464
|
+
}) => Promise<Response>;
|
|
2465
|
+
put: (path: string, body?: any, config?: {
|
|
2466
|
+
headers?: HeadersInit;
|
|
2467
|
+
queryParams?: {
|
|
2468
|
+
[key: string]: string;
|
|
2469
|
+
};
|
|
2470
|
+
token?: string;
|
|
2471
|
+
}) => Promise<Response>;
|
|
2472
|
+
delete: (path: string, config?: {
|
|
2473
|
+
headers?: HeadersInit;
|
|
2474
|
+
queryParams?: {
|
|
2475
|
+
[key: string]: string;
|
|
2476
|
+
};
|
|
2477
|
+
token?: string;
|
|
2478
|
+
}) => Promise<Response>;
|
|
2479
|
+
hooks?: {
|
|
2480
|
+
beforeRequest?: (config: _1.RequestConfig) => _1.RequestConfig;
|
|
2481
|
+
afterRequest?: (req: _1.RequestConfig, res: Response) => void | Promise<void>;
|
|
2482
|
+
transformResponse?: (mutableResponse: _1.ExtendedResponse) => Promise<_1.ExtendedResponse>;
|
|
2483
|
+
};
|
|
2484
|
+
buildUrl: (path: string, queryParams?: {
|
|
2485
|
+
[key: string]: string;
|
|
2486
|
+
}) => string;
|
|
2487
|
+
};
|
|
2488
|
+
} | {
|
|
2489
|
+
refresh: (token?: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
|
|
2490
|
+
flow: {
|
|
2491
|
+
start: (flowId: string, options?: Pick<{
|
|
2492
|
+
redirectUrl?: string;
|
|
2493
|
+
location?: string;
|
|
2494
|
+
tenant?: string;
|
|
2495
|
+
deviceInfo?: {
|
|
2496
|
+
webAuthnSupport?: boolean;
|
|
2497
|
+
};
|
|
2498
|
+
lastAuth?: {
|
|
2499
|
+
authMethod?: "webauthn" | "otp" | "oauth" | "saml" | "totp" | "magiclink" | "enchantedlink";
|
|
2500
|
+
oauthProvider?: string;
|
|
2501
|
+
name?: string;
|
|
2502
|
+
loginId?: string;
|
|
2503
|
+
};
|
|
2504
|
+
redirectAuth?: {
|
|
2505
|
+
callbackUrl: string;
|
|
2506
|
+
codeChallenge: string;
|
|
2507
|
+
};
|
|
2508
|
+
oidcIdpStateId?: string;
|
|
2509
|
+
preview?: boolean;
|
|
2510
|
+
samlIdpStateId?: string;
|
|
2511
|
+
samlIdpUsername?: string;
|
|
2512
|
+
ssoAppId?: string;
|
|
2513
|
+
oidcLoginHint?: string;
|
|
2514
|
+
abTestingKey?: number;
|
|
2515
|
+
startOptionsVersion?: number;
|
|
2516
|
+
client?: Record<string, any>;
|
|
2517
|
+
locale?: string;
|
|
2518
|
+
oidcPrompt?: string;
|
|
2519
|
+
oidcErrorRedirectUri?: string;
|
|
2520
|
+
nativeOptions?: {
|
|
2521
|
+
platform: "ios" | "android";
|
|
2522
|
+
oauthProvider?: string;
|
|
2523
|
+
oauthRedirect?: string;
|
|
2524
|
+
};
|
|
2525
|
+
}, "tenant" | "redirectUrl" | "redirectAuth" | "oidcIdpStateId" | "samlIdpStateId" | "samlIdpUsername" | "ssoAppId" | "oidcLoginHint" | "preview" | "abTestingKey" | "client" | "locale" | "oidcPrompt" | "oidcErrorRedirectUri" | "nativeOptions"> & {
|
|
2526
|
+
lastAuth?: Omit<{
|
|
2527
|
+
authMethod?: "webauthn" | "otp" | "oauth" | "saml" | "totp" | "magiclink" | "enchantedlink";
|
|
2528
|
+
oauthProvider?: string;
|
|
2529
|
+
name?: string;
|
|
2530
|
+
loginId?: string;
|
|
2531
|
+
}, "loginId" | "name">;
|
|
2532
|
+
}, conditionInteractionId?: string, interactionId?: string, componentsVersion?: string, flowVersions?: Record<string, number>, input?: {
|
|
2533
|
+
[x: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any[])[])[])[])[])[])[])[])[])[])[];
|
|
2534
|
+
}) => Promise<_1.SdkResponse<_1.FlowResponse>>;
|
|
2535
|
+
next: (executionId: string, stepId: string, interactionId: string, version?: number, componentsVersion?: string, input?: {
|
|
2536
|
+
[x: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any[])[])[])[])[])[])[])[])[])[])[];
|
|
2537
|
+
}) => Promise<_1.SdkResponse<_1.FlowResponse>>;
|
|
2538
|
+
};
|
|
2539
|
+
webauthn: {
|
|
2540
|
+
signUp: ((identifier: string, name: string, passkeyOptions?: _1.PasskeyOptions) => Promise<_1.SdkResponse<_1.JWTResponse>>) & {
|
|
2541
|
+
start: (loginId: string, origin: string, name: string, passkeyOptions?: _1.PasskeyOptions) => Promise<_1.SdkResponse<{
|
|
2542
|
+
transactionId: string;
|
|
2543
|
+
options: string;
|
|
2544
|
+
create: boolean;
|
|
2545
|
+
}>>;
|
|
2546
|
+
finish: (transactionId: string, response: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
|
|
2547
|
+
};
|
|
2548
|
+
signIn: ((identifier: string, passkeyOptions?: _1.PasskeyOptions) => Promise<_1.SdkResponse<_1.JWTResponse>>) & {
|
|
2549
|
+
start: (loginId: string, origin: string, loginOptions?: _1.LoginOptions, token?: string, passkeyOptions?: _1.PasskeyOptions) => Promise<_1.SdkResponse<{
|
|
2550
|
+
transactionId: string;
|
|
2551
|
+
options: string;
|
|
2552
|
+
create: boolean;
|
|
2553
|
+
}>>;
|
|
2554
|
+
finish: (transactionId: string, response: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
|
|
2555
|
+
};
|
|
2556
|
+
signUpOrIn: ((identifier: string, passkeyOptions?: _1.PasskeyOptions) => Promise<_1.SdkResponse<_1.JWTResponse>>) & {
|
|
2557
|
+
start: (loginId: string, origin: string, passkeyOptions?: _1.PasskeyOptions) => Promise<_1.SdkResponse<{
|
|
2558
|
+
transactionId: string;
|
|
2559
|
+
options: string;
|
|
2560
|
+
create: boolean;
|
|
2561
|
+
}>>;
|
|
2562
|
+
};
|
|
2563
|
+
update: ((identifier: string, token: string, passkeyOptions?: _1.PasskeyOptions) => Promise<_1.SdkResponse<_1.ResponseData>>) & {
|
|
2564
|
+
start: (loginId: string, origin: string, token: string, passkeyOptions?: _1.PasskeyOptions) => Promise<_1.SdkResponse<{
|
|
2565
|
+
transactionId: string;
|
|
2566
|
+
options: string;
|
|
2567
|
+
create: boolean;
|
|
2568
|
+
}>>;
|
|
2569
|
+
finish: (transactionId: string, response: string) => Promise<_1.SdkResponse<_1.ResponseData>>;
|
|
2570
|
+
};
|
|
2571
|
+
helpers: {
|
|
2572
|
+
create: (options: string) => Promise<string>;
|
|
2573
|
+
get: (options: string) => Promise<string>;
|
|
2574
|
+
isSupported: (requirePlatformAuthenticator?: boolean) => Promise<boolean>;
|
|
2575
|
+
conditional: (options: string, abort: AbortController) => Promise<string>;
|
|
2576
|
+
};
|
|
2577
|
+
};
|
|
2578
|
+
fedcm: {
|
|
2579
|
+
oneTap(provider?: string, oneTapConfig?: import("@descope/web-js-sdk").OneTapConfig, loginOptions?: _1.LoginOptions, onSkip?: () => void): Promise<unknown>;
|
|
2580
|
+
launch(context?: "signin" | "signup" | "use" | "continue"): Promise<_1.SdkResponse<_1.JWTResponse>>;
|
|
2581
|
+
isSupported(): boolean;
|
|
2582
|
+
};
|
|
2583
|
+
accessKey: {
|
|
2584
|
+
exchange: (accessKey: string, loginOptions?: _1.AccessKeyLoginOptions) => Promise<_1.SdkResponse<_1.ExchangeAccessKeyResponse>>;
|
|
2585
|
+
};
|
|
2586
|
+
otp: {
|
|
2587
|
+
verify: {
|
|
2588
|
+
sms: (loginId: string, code: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
|
|
2589
|
+
voice: (loginId: string, code: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
|
|
2590
|
+
whatsapp: (loginId: string, code: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
|
|
2591
|
+
email: (loginId: string, code: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
|
|
2592
|
+
};
|
|
2593
|
+
signIn: {
|
|
2594
|
+
sms: (loginId: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
|
|
2595
|
+
maskedPhone: string;
|
|
2596
|
+
}>>;
|
|
2597
|
+
voice: (loginId: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
|
|
2598
|
+
maskedPhone: string;
|
|
2599
|
+
}>>;
|
|
2600
|
+
whatsapp: (loginId: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
|
|
2601
|
+
maskedPhone: string;
|
|
2602
|
+
}>>;
|
|
2603
|
+
email: (loginId: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
|
|
2604
|
+
maskedEmail: string;
|
|
2605
|
+
}>>;
|
|
2606
|
+
};
|
|
2607
|
+
signUp: {
|
|
2608
|
+
sms: (loginId: string, user?: {
|
|
2609
|
+
email?: string;
|
|
2610
|
+
name?: string;
|
|
2611
|
+
givenName?: string;
|
|
2612
|
+
middleName?: string;
|
|
2613
|
+
familyName?: string;
|
|
2614
|
+
phone?: string;
|
|
2615
|
+
}, signUpOptions?: {
|
|
2616
|
+
customClaims?: Record<string, any>;
|
|
2617
|
+
templateId?: string;
|
|
2618
|
+
templateOptions?: {
|
|
2619
|
+
[x: string]: string;
|
|
2620
|
+
};
|
|
2621
|
+
}) => Promise<_1.SdkResponse<{
|
|
2622
|
+
maskedPhone: string;
|
|
2623
|
+
}>>;
|
|
2624
|
+
voice: (loginId: string, user?: {
|
|
2625
|
+
email?: string;
|
|
2626
|
+
name?: string;
|
|
2627
|
+
givenName?: string;
|
|
2628
|
+
middleName?: string;
|
|
2629
|
+
familyName?: string;
|
|
2630
|
+
phone?: string;
|
|
2631
|
+
}, signUpOptions?: {
|
|
2632
|
+
customClaims?: Record<string, any>;
|
|
2633
|
+
templateId?: string;
|
|
2634
|
+
templateOptions?: {
|
|
2635
|
+
[x: string]: string;
|
|
2636
|
+
};
|
|
2637
|
+
}) => Promise<_1.SdkResponse<{
|
|
2638
|
+
maskedPhone: string;
|
|
2639
|
+
}>>;
|
|
2640
|
+
whatsapp: (loginId: string, user?: {
|
|
2641
|
+
email?: string;
|
|
2642
|
+
name?: string;
|
|
2643
|
+
givenName?: string;
|
|
2644
|
+
middleName?: string;
|
|
2645
|
+
familyName?: string;
|
|
2646
|
+
phone?: string;
|
|
2647
|
+
}, signUpOptions?: {
|
|
2648
|
+
customClaims?: Record<string, any>;
|
|
2649
|
+
templateId?: string;
|
|
2650
|
+
templateOptions?: {
|
|
2651
|
+
[x: string]: string;
|
|
2652
|
+
};
|
|
2653
|
+
}) => Promise<_1.SdkResponse<{
|
|
2654
|
+
maskedPhone: string;
|
|
2655
|
+
}>>;
|
|
2656
|
+
email: (loginId: string, user?: {
|
|
2657
|
+
email?: string;
|
|
2658
|
+
name?: string;
|
|
2659
|
+
givenName?: string;
|
|
2660
|
+
middleName?: string;
|
|
2661
|
+
familyName?: string;
|
|
2662
|
+
phone?: string;
|
|
2663
|
+
}, signUpOptions?: {
|
|
2664
|
+
customClaims?: Record<string, any>;
|
|
2665
|
+
templateId?: string;
|
|
2666
|
+
templateOptions?: {
|
|
2667
|
+
[x: string]: string;
|
|
2668
|
+
};
|
|
2669
|
+
}) => Promise<_1.SdkResponse<{
|
|
2670
|
+
maskedEmail: string;
|
|
2671
|
+
}>>;
|
|
2672
|
+
};
|
|
2673
|
+
signUpOrIn: {
|
|
2674
|
+
sms: (loginId: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
|
|
2675
|
+
maskedPhone: string;
|
|
2676
|
+
}>>;
|
|
2677
|
+
voice: (loginId: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
|
|
2678
|
+
maskedPhone: string;
|
|
2679
|
+
}>>;
|
|
2680
|
+
whatsapp: (loginId: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
|
|
2681
|
+
maskedPhone: string;
|
|
2682
|
+
}>>;
|
|
2683
|
+
email: (loginId: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
|
|
2684
|
+
maskedEmail: string;
|
|
2685
|
+
}>>;
|
|
2686
|
+
};
|
|
2687
|
+
update: {
|
|
2688
|
+
email: <T_5 extends boolean>(loginId: string, email: string, token?: string, updateOptions?: {
|
|
2689
|
+
addToLoginIDs?: T_5;
|
|
2690
|
+
onMergeUseExisting?: T_5 extends true ? boolean : never;
|
|
2691
|
+
templateOptions?: {
|
|
2692
|
+
[x: string]: string;
|
|
2693
|
+
};
|
|
2694
|
+
}) => Promise<_1.SdkResponse<{
|
|
2695
|
+
maskedEmail: string;
|
|
2696
|
+
}>>;
|
|
2697
|
+
phone: {
|
|
2698
|
+
sms: <T_1_3 extends boolean>(loginId: string, phone: string, token?: string, updateOptions?: {
|
|
2699
|
+
addToLoginIDs?: T_1_3;
|
|
2700
|
+
onMergeUseExisting?: T_1_3 extends true ? boolean : never;
|
|
2701
|
+
templateOptions?: {
|
|
2702
|
+
[x: string]: string;
|
|
2703
|
+
};
|
|
2704
|
+
}) => Promise<_1.SdkResponse<{
|
|
2705
|
+
maskedPhone: string;
|
|
2706
|
+
}>>;
|
|
2707
|
+
voice: <T_1_4 extends boolean>(loginId: string, phone: string, token?: string, updateOptions?: {
|
|
2708
|
+
addToLoginIDs?: T_1_4;
|
|
2709
|
+
onMergeUseExisting?: T_1_4 extends true ? boolean : never;
|
|
2710
|
+
templateOptions?: {
|
|
2711
|
+
[x: string]: string;
|
|
2712
|
+
};
|
|
2713
|
+
}) => Promise<_1.SdkResponse<{
|
|
2714
|
+
maskedPhone: string;
|
|
2715
|
+
}>>;
|
|
2716
|
+
whatsapp: <T_1_5 extends boolean>(loginId: string, phone: string, token?: string, updateOptions?: {
|
|
2717
|
+
addToLoginIDs?: T_1_5;
|
|
2718
|
+
onMergeUseExisting?: T_1_5 extends true ? boolean : never;
|
|
2719
|
+
templateOptions?: {
|
|
2720
|
+
[x: string]: string;
|
|
2721
|
+
};
|
|
2722
|
+
}) => Promise<_1.SdkResponse<{
|
|
2723
|
+
maskedPhone: string;
|
|
2724
|
+
}>>;
|
|
2725
|
+
};
|
|
2726
|
+
};
|
|
2727
|
+
};
|
|
2728
|
+
magicLink: {
|
|
2729
|
+
verify: (token: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
|
|
2730
|
+
signIn: {
|
|
2731
|
+
sms: (loginId: string, URI: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
|
|
2732
|
+
maskedPhone: string;
|
|
2733
|
+
}>>;
|
|
2734
|
+
voice: (loginId: string, URI: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
|
|
2735
|
+
maskedPhone: string;
|
|
2736
|
+
}>>;
|
|
2737
|
+
whatsapp: (loginId: string, URI: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
|
|
2738
|
+
maskedPhone: string;
|
|
2739
|
+
}>>;
|
|
2740
|
+
email: (loginId: string, URI: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
|
|
2741
|
+
maskedEmail: string;
|
|
2742
|
+
}>>;
|
|
2743
|
+
};
|
|
2744
|
+
signUp: {
|
|
2745
|
+
sms: (loginId: string, URI: string, user?: {
|
|
2746
|
+
email?: string;
|
|
2747
|
+
name?: string;
|
|
2748
|
+
givenName?: string;
|
|
2749
|
+
middleName?: string;
|
|
2750
|
+
familyName?: string;
|
|
2751
|
+
phone?: string;
|
|
2752
|
+
}, signUpOptions?: {
|
|
2753
|
+
customClaims?: Record<string, any>;
|
|
2754
|
+
templateId?: string;
|
|
2755
|
+
templateOptions?: {
|
|
2756
|
+
[x: string]: string;
|
|
2757
|
+
};
|
|
2758
|
+
}) => Promise<_1.SdkResponse<{
|
|
2759
|
+
maskedPhone: string;
|
|
2760
|
+
}>>;
|
|
2761
|
+
voice: (loginId: string, URI: string, user?: {
|
|
2762
|
+
email?: string;
|
|
2763
|
+
name?: string;
|
|
2764
|
+
givenName?: string;
|
|
2765
|
+
middleName?: string;
|
|
2766
|
+
familyName?: string;
|
|
2767
|
+
phone?: string;
|
|
2768
|
+
}, signUpOptions?: {
|
|
2769
|
+
customClaims?: Record<string, any>;
|
|
2770
|
+
templateId?: string;
|
|
2771
|
+
templateOptions?: {
|
|
2772
|
+
[x: string]: string;
|
|
2773
|
+
};
|
|
2774
|
+
}) => Promise<_1.SdkResponse<{
|
|
2775
|
+
maskedPhone: string;
|
|
2776
|
+
}>>;
|
|
2777
|
+
whatsapp: (loginId: string, URI: string, user?: {
|
|
2778
|
+
email?: string;
|
|
2779
|
+
name?: string;
|
|
2780
|
+
givenName?: string;
|
|
2781
|
+
middleName?: string;
|
|
2782
|
+
familyName?: string;
|
|
2783
|
+
phone?: string;
|
|
2784
|
+
}, signUpOptions?: {
|
|
2785
|
+
customClaims?: Record<string, any>;
|
|
2786
|
+
templateId?: string;
|
|
2787
|
+
templateOptions?: {
|
|
2788
|
+
[x: string]: string;
|
|
2789
|
+
};
|
|
2790
|
+
}) => Promise<_1.SdkResponse<{
|
|
2791
|
+
maskedPhone: string;
|
|
2792
|
+
}>>;
|
|
2793
|
+
email: (loginId: string, URI: string, user?: {
|
|
2794
|
+
email?: string;
|
|
2795
|
+
name?: string;
|
|
2796
|
+
givenName?: string;
|
|
2797
|
+
middleName?: string;
|
|
2798
|
+
familyName?: string;
|
|
2799
|
+
phone?: string;
|
|
2800
|
+
}, signUpOptions?: {
|
|
2801
|
+
customClaims?: Record<string, any>;
|
|
2802
|
+
templateId?: string;
|
|
2803
|
+
templateOptions?: {
|
|
2804
|
+
[x: string]: string;
|
|
2805
|
+
};
|
|
2806
|
+
}) => Promise<_1.SdkResponse<{
|
|
2807
|
+
maskedEmail: string;
|
|
2808
|
+
}>>;
|
|
2809
|
+
};
|
|
2810
|
+
signUpOrIn: {
|
|
2811
|
+
sms: (loginId: string, URI?: string, signUpOptions?: {
|
|
2812
|
+
customClaims?: Record<string, any>;
|
|
2813
|
+
templateId?: string;
|
|
2814
|
+
templateOptions?: {
|
|
2815
|
+
[x: string]: string;
|
|
2816
|
+
};
|
|
2817
|
+
}) => Promise<_1.SdkResponse<{
|
|
2818
|
+
maskedPhone: string;
|
|
2819
|
+
}>>;
|
|
2820
|
+
voice: (loginId: string, URI?: string, signUpOptions?: {
|
|
2821
|
+
customClaims?: Record<string, any>;
|
|
2822
|
+
templateId?: string;
|
|
2823
|
+
templateOptions?: {
|
|
2824
|
+
[x: string]: string;
|
|
2825
|
+
};
|
|
2826
|
+
}) => Promise<_1.SdkResponse<{
|
|
2827
|
+
maskedPhone: string;
|
|
2828
|
+
}>>;
|
|
2829
|
+
whatsapp: (loginId: string, URI?: string, signUpOptions?: {
|
|
2830
|
+
customClaims?: Record<string, any>;
|
|
2831
|
+
templateId?: string;
|
|
2832
|
+
templateOptions?: {
|
|
2833
|
+
[x: string]: string;
|
|
2834
|
+
};
|
|
2835
|
+
}) => Promise<_1.SdkResponse<{
|
|
2836
|
+
maskedPhone: string;
|
|
2837
|
+
}>>;
|
|
2838
|
+
email: (loginId: string, URI?: string, signUpOptions?: {
|
|
2839
|
+
customClaims?: Record<string, any>;
|
|
2840
|
+
templateId?: string;
|
|
2841
|
+
templateOptions?: {
|
|
2842
|
+
[x: string]: string;
|
|
2843
|
+
};
|
|
2844
|
+
}) => Promise<_1.SdkResponse<{
|
|
2845
|
+
maskedEmail: string;
|
|
2846
|
+
}>>;
|
|
2847
|
+
};
|
|
2848
|
+
update: {
|
|
2849
|
+
email: <T_2_1 extends boolean>(loginId: string, email: string, URI?: string, token?: string, updateOptions?: {
|
|
2850
|
+
addToLoginIDs?: T_2_1;
|
|
2851
|
+
onMergeUseExisting?: T_2_1 extends true ? boolean : never;
|
|
2852
|
+
templateOptions?: {
|
|
2853
|
+
[x: string]: string;
|
|
2854
|
+
};
|
|
2855
|
+
}) => Promise<_1.SdkResponse<{
|
|
2856
|
+
maskedEmail: string;
|
|
2857
|
+
}>>;
|
|
2858
|
+
phone: {
|
|
2859
|
+
sms: <T_3_3 extends boolean>(loginId: string, phone: string, URI?: string, token?: string, updateOptions?: {
|
|
2860
|
+
addToLoginIDs?: T_3_3;
|
|
2861
|
+
onMergeUseExisting?: T_3_3 extends true ? boolean : never;
|
|
2862
|
+
templateOptions?: {
|
|
2863
|
+
[x: string]: string;
|
|
2864
|
+
};
|
|
2865
|
+
}) => Promise<_1.SdkResponse<{
|
|
2866
|
+
maskedPhone: string;
|
|
2867
|
+
}>>;
|
|
2868
|
+
voice: <T_3_4 extends boolean>(loginId: string, phone: string, URI?: string, token?: string, updateOptions?: {
|
|
2869
|
+
addToLoginIDs?: T_3_4;
|
|
2870
|
+
onMergeUseExisting?: T_3_4 extends true ? boolean : never;
|
|
2871
|
+
templateOptions?: {
|
|
2872
|
+
[x: string]: string;
|
|
2873
|
+
};
|
|
2874
|
+
}) => Promise<_1.SdkResponse<{
|
|
2875
|
+
maskedPhone: string;
|
|
2876
|
+
}>>;
|
|
2877
|
+
whatsapp: <T_3_5 extends boolean>(loginId: string, phone: string, URI?: string, token?: string, updateOptions?: {
|
|
2878
|
+
addToLoginIDs?: T_3_5;
|
|
2879
|
+
onMergeUseExisting?: T_3_5 extends true ? boolean : never;
|
|
2880
|
+
templateOptions?: {
|
|
2881
|
+
[x: string]: string;
|
|
2882
|
+
};
|
|
2883
|
+
}) => Promise<_1.SdkResponse<{
|
|
2884
|
+
maskedPhone: string;
|
|
2885
|
+
}>>;
|
|
2886
|
+
};
|
|
2887
|
+
};
|
|
2888
|
+
};
|
|
2889
|
+
enchantedLink: {
|
|
2890
|
+
verify: (token: string) => Promise<_1.SdkResponse<never>>;
|
|
2891
|
+
signIn: (loginId: string, URI?: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<_1.EnchantedLinkResponse>>;
|
|
2892
|
+
signUpOrIn: (loginId: string, URI?: string, signUpOptions?: {
|
|
2893
|
+
customClaims?: Record<string, any>;
|
|
2894
|
+
templateId?: string;
|
|
2895
|
+
templateOptions?: {
|
|
2896
|
+
[x: string]: string;
|
|
2897
|
+
};
|
|
2898
|
+
}) => Promise<_1.SdkResponse<_1.EnchantedLinkResponse>>;
|
|
2899
|
+
signUp: (loginId: string, URI?: string, user?: {
|
|
2900
|
+
email?: string;
|
|
2901
|
+
name?: string;
|
|
2902
|
+
givenName?: string;
|
|
2903
|
+
middleName?: string;
|
|
2904
|
+
familyName?: string;
|
|
2905
|
+
phone?: string;
|
|
2906
|
+
}, signUpOptions?: {
|
|
2907
|
+
customClaims?: Record<string, any>;
|
|
2908
|
+
templateId?: string;
|
|
2909
|
+
templateOptions?: {
|
|
2910
|
+
[x: string]: string;
|
|
2911
|
+
};
|
|
2912
|
+
}) => Promise<_1.SdkResponse<_1.EnchantedLinkResponse>>;
|
|
2913
|
+
waitForSession: (pendingRef: string, config?: {
|
|
2914
|
+
pollingIntervalMs: number;
|
|
2915
|
+
timeoutMs: number;
|
|
2916
|
+
}) => Promise<_1.SdkResponse<_1.JWTResponse>>;
|
|
2917
|
+
update: {
|
|
2918
|
+
email: <T_4_1 extends boolean>(loginId: string, email: string, URI?: string, token?: string, updateOptions?: {
|
|
2919
|
+
addToLoginIDs?: T_4_1;
|
|
2920
|
+
onMergeUseExisting?: T_4_1 extends true ? boolean : never;
|
|
2921
|
+
templateOptions?: {
|
|
2922
|
+
[x: string]: string;
|
|
2923
|
+
};
|
|
2924
|
+
}) => Promise<_1.SdkResponse<_1.EnchantedLinkResponse>>;
|
|
2925
|
+
};
|
|
2926
|
+
};
|
|
2927
|
+
oauth: {
|
|
2928
|
+
start: ((provider: string, redirectUrl?: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<_1.ResponseData>>) & {
|
|
2929
|
+
google: (redirectURL?: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
|
|
2930
|
+
facebook: (redirectURL?: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
|
|
2931
|
+
github: (redirectURL?: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
|
|
2932
|
+
microsoft: (redirectURL?: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
|
|
2933
|
+
gitlab: (redirectURL?: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
|
|
2934
|
+
apple: (redirectURL?: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
|
|
2935
|
+
discord: (redirectURL?: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
|
|
2936
|
+
linkedin: (redirectURL?: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
|
|
2937
|
+
slack: (redirectURL?: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
|
|
2938
|
+
};
|
|
2939
|
+
exchange: (code: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
|
|
2940
|
+
startNative: (provider: string, loginOptions?: _1.LoginOptions, implicit?: boolean) => Promise<_1.SdkResponse<_1.ResponseData>>;
|
|
2941
|
+
finishNative: (provider: string, stateId: string, user?: string, code?: string, idToken?: string) => Promise<_1.SdkResponse<_1.ResponseData>>;
|
|
2942
|
+
};
|
|
2943
|
+
saml: {
|
|
2944
|
+
start: (tenantIdOrEmail: string, redirectUrl?: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
|
|
2945
|
+
exchange: (code: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
|
|
2946
|
+
};
|
|
2947
|
+
totp: {
|
|
2948
|
+
signUp: (loginId: string, user?: {
|
|
2949
|
+
email?: string;
|
|
2950
|
+
name?: string;
|
|
2951
|
+
givenName?: string;
|
|
2952
|
+
middleName?: string;
|
|
2953
|
+
familyName?: string;
|
|
2954
|
+
phone?: string;
|
|
2955
|
+
}) => Promise<_1.SdkResponse<_1.TOTPResponse>>;
|
|
2956
|
+
verify: (loginId: string, code: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
|
|
2957
|
+
update: (loginId: string, token?: string) => Promise<_1.SdkResponse<_1.TOTPResponse>>;
|
|
2958
|
+
};
|
|
2959
|
+
notp: {
|
|
2960
|
+
signUpOrIn: (loginId?: string, signUpOptions?: {
|
|
2961
|
+
customClaims?: Record<string, any>;
|
|
2962
|
+
templateId?: string;
|
|
2963
|
+
templateOptions?: {
|
|
2964
|
+
[x: string]: string;
|
|
2965
|
+
};
|
|
2966
|
+
}) => Promise<_1.SdkResponse<{
|
|
2967
|
+
pendingRef: string;
|
|
2968
|
+
redirectUrl: string;
|
|
2969
|
+
image: string;
|
|
2970
|
+
}>>;
|
|
2971
|
+
signUp: (loginId?: string, user?: {
|
|
2972
|
+
email?: string;
|
|
2973
|
+
name?: string;
|
|
2974
|
+
givenName?: string;
|
|
2975
|
+
middleName?: string;
|
|
2976
|
+
familyName?: string;
|
|
2977
|
+
phone?: string;
|
|
2978
|
+
}, signUpOptions?: {
|
|
2979
|
+
customClaims?: Record<string, any>;
|
|
2980
|
+
templateId?: string;
|
|
2981
|
+
templateOptions?: {
|
|
2982
|
+
[x: string]: string;
|
|
2983
|
+
};
|
|
2984
|
+
}) => Promise<_1.SdkResponse<{
|
|
2985
|
+
pendingRef: string;
|
|
2986
|
+
redirectUrl: string;
|
|
2987
|
+
image: string;
|
|
2988
|
+
}>>;
|
|
2989
|
+
signIn: (loginId?: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
|
|
2990
|
+
pendingRef: string;
|
|
2991
|
+
redirectUrl: string;
|
|
2992
|
+
image: string;
|
|
2993
|
+
}>>;
|
|
2994
|
+
waitForSession: (pendingRef: string, config?: {
|
|
2995
|
+
pollingIntervalMs: number;
|
|
2996
|
+
timeoutMs: number;
|
|
2997
|
+
}) => Promise<_1.SdkResponse<_1.JWTResponse>>;
|
|
2998
|
+
};
|
|
2999
|
+
password: {
|
|
3000
|
+
signUp: (loginId: string, password: string, user?: {
|
|
3001
|
+
email?: string;
|
|
3002
|
+
name?: string;
|
|
3003
|
+
givenName?: string;
|
|
3004
|
+
middleName?: string;
|
|
3005
|
+
familyName?: string;
|
|
3006
|
+
phone?: string;
|
|
3007
|
+
}, signUpOptions?: {
|
|
3008
|
+
customClaims?: Record<string, any>;
|
|
3009
|
+
templateId?: string;
|
|
3010
|
+
templateOptions?: {
|
|
3011
|
+
[x: string]: string;
|
|
3012
|
+
};
|
|
3013
|
+
}) => Promise<_1.SdkResponse<_1.JWTResponse>>;
|
|
3014
|
+
signIn: (loginId: string, password: string, loginOptions?: _1.LoginOptions) => Promise<_1.SdkResponse<_1.JWTResponse>>;
|
|
3015
|
+
sendReset: (loginId: string, redirectUrl?: string, templateOptions?: {
|
|
3016
|
+
[x: string]: string;
|
|
3017
|
+
}) => Promise<_1.SdkResponse<{
|
|
3018
|
+
resetMethod: string;
|
|
3019
|
+
pendingRef?: string;
|
|
3020
|
+
linkId?: string;
|
|
3021
|
+
maskedEmail: string;
|
|
3022
|
+
}>>;
|
|
3023
|
+
update: (loginId: string, newPassword: string, token?: string) => Promise<_1.SdkResponse<never>>;
|
|
3024
|
+
replace: (loginId: string, oldPassword: string, newPassword: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
|
|
3025
|
+
policy: () => Promise<_1.SdkResponse<{
|
|
3026
|
+
minLength: number;
|
|
3027
|
+
lowercase: boolean;
|
|
3028
|
+
uppercase: boolean;
|
|
3029
|
+
number: boolean;
|
|
3030
|
+
nonAlphanumeric: boolean;
|
|
3031
|
+
}>>;
|
|
3032
|
+
};
|
|
3033
|
+
selectTenant: (tenantId: string, token?: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
|
|
3034
|
+
logout: (token?: string) => Promise<_1.SdkResponse<never>>;
|
|
3035
|
+
logoutAll: (token?: string) => Promise<_1.SdkResponse<never>>;
|
|
3036
|
+
logoutPrevious: (token?: string) => Promise<_1.SdkResponse<never>>;
|
|
3037
|
+
me: (token?: string) => Promise<_1.SdkResponse<_1.UserResponse>>;
|
|
3038
|
+
myTenants: (tenants: true | string[], token?: string) => Promise<_1.SdkResponse<{
|
|
3039
|
+
tenants: {
|
|
3040
|
+
id: string;
|
|
3041
|
+
name: string;
|
|
3042
|
+
customAttributes?: Record<string, any>;
|
|
3043
|
+
}[];
|
|
3044
|
+
}>>;
|
|
3045
|
+
history: (token?: string) => Promise<_1.SdkResponse<_1.UserHistoryResponse>>;
|
|
3046
|
+
isJwtExpired: (token: string) => boolean;
|
|
3047
|
+
getTenants: (token: string) => string[];
|
|
3048
|
+
getJwtPermissions: (token: string, tenant?: string) => string[];
|
|
3049
|
+
getJwtRoles: (token: string, tenant?: string) => string[];
|
|
3050
|
+
httpClient: {
|
|
3051
|
+
get: (path: string, config?: {
|
|
3052
|
+
headers?: HeadersInit;
|
|
3053
|
+
queryParams?: {
|
|
3054
|
+
[key: string]: string;
|
|
3055
|
+
};
|
|
3056
|
+
token?: string;
|
|
3057
|
+
}) => Promise<Response>;
|
|
3058
|
+
post: (path: string, body?: any, config?: {
|
|
3059
|
+
headers?: HeadersInit;
|
|
3060
|
+
queryParams?: {
|
|
3061
|
+
[key: string]: string;
|
|
3062
|
+
};
|
|
3063
|
+
token?: string;
|
|
3064
|
+
}) => Promise<Response>;
|
|
3065
|
+
patch: (path: string, body?: any, config?: {
|
|
3066
|
+
headers?: HeadersInit;
|
|
3067
|
+
queryParams?: {
|
|
3068
|
+
[key: string]: string;
|
|
3069
|
+
};
|
|
3070
|
+
token?: string;
|
|
3071
|
+
}) => Promise<Response>;
|
|
3072
|
+
put: (path: string, body?: any, config?: {
|
|
3073
|
+
headers?: HeadersInit;
|
|
3074
|
+
queryParams?: {
|
|
3075
|
+
[key: string]: string;
|
|
3076
|
+
};
|
|
3077
|
+
token?: string;
|
|
3078
|
+
}) => Promise<Response>;
|
|
3079
|
+
delete: (path: string, config?: {
|
|
3080
|
+
headers?: HeadersInit;
|
|
3081
|
+
queryParams?: {
|
|
3082
|
+
[key: string]: string;
|
|
3083
|
+
};
|
|
3084
|
+
token?: string;
|
|
3085
|
+
}) => Promise<Response>;
|
|
3086
|
+
hooks?: {
|
|
3087
|
+
beforeRequest?: (config: _1.RequestConfig) => _1.RequestConfig;
|
|
3088
|
+
afterRequest?: (req: _1.RequestConfig, res: Response) => void | Promise<void>;
|
|
3089
|
+
transformResponse?: (mutableResponse: _1.ExtendedResponse) => Promise<_1.ExtendedResponse>;
|
|
3090
|
+
};
|
|
3091
|
+
buildUrl: (path: string, queryParams?: {
|
|
3092
|
+
[key: string]: string;
|
|
3093
|
+
}) => string;
|
|
3094
|
+
};
|
|
3095
|
+
} | {
|
|
3096
|
+
refresh: (token?: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
|
|
3097
|
+
flow: {
|
|
3098
|
+
start: (flowId: string, options?: Pick<{
|
|
3099
|
+
redirectUrl?: string;
|
|
3100
|
+
location?: string;
|
|
3101
|
+
tenant?: string;
|
|
3102
|
+
deviceInfo?: {
|
|
3103
|
+
webAuthnSupport?: boolean;
|
|
3104
|
+
};
|
|
3105
|
+
lastAuth?: {
|
|
3106
|
+
authMethod?: "webauthn" | "otp" | "oauth" | "saml" | "totp" | "magiclink" | "enchantedlink";
|
|
3107
|
+
oauthProvider?: string;
|
|
3108
|
+
name?: string;
|
|
3109
|
+
loginId?: string;
|
|
3110
|
+
};
|
|
3111
|
+
redirectAuth?: {
|
|
3112
|
+
callbackUrl: string;
|
|
3113
|
+
codeChallenge: string;
|
|
3114
|
+
};
|
|
3115
|
+
oidcIdpStateId?: string;
|
|
3116
|
+
preview?: boolean;
|
|
3117
|
+
samlIdpStateId?: string;
|
|
3118
|
+
samlIdpUsername?: string;
|
|
3119
|
+
ssoAppId?: string;
|
|
3120
|
+
oidcLoginHint?: string;
|
|
3121
|
+
abTestingKey?: number;
|
|
3122
|
+
startOptionsVersion?: number;
|
|
3123
|
+
client?: Record<string, any>;
|
|
3124
|
+
locale?: string;
|
|
3125
|
+
oidcPrompt?: string;
|
|
3126
|
+
oidcErrorRedirectUri?: string;
|
|
3127
|
+
nativeOptions?: {
|
|
3128
|
+
platform: "ios" | "android";
|
|
3129
|
+
oauthProvider?: string;
|
|
3130
|
+
oauthRedirect?: string;
|
|
3131
|
+
};
|
|
3132
|
+
}, "tenant" | "redirectUrl" | "redirectAuth" | "oidcIdpStateId" | "samlIdpStateId" | "samlIdpUsername" | "ssoAppId" | "oidcLoginHint" | "preview" | "abTestingKey" | "client" | "locale" | "oidcPrompt" | "oidcErrorRedirectUri" | "nativeOptions"> & {
|
|
3133
|
+
lastAuth?: Omit<{
|
|
3134
|
+
authMethod?: "webauthn" | "otp" | "oauth" | "saml" | "totp" | "magiclink" | "enchantedlink";
|
|
3135
|
+
oauthProvider?: string;
|
|
3136
|
+
name?: string;
|
|
3137
|
+
loginId?: string;
|
|
3138
|
+
}, "loginId" | "name">;
|
|
3139
|
+
}, conditionInteractionId?: string, interactionId?: string, componentsVersion?: string, flowVersions?: Record<string, number>, input?: {
|
|
3140
|
+
[x: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any[])[])[])[])[])[])[])[])[])[])[];
|
|
3141
|
+
}) => Promise<_1.SdkResponse<_1.FlowResponse>>;
|
|
3142
|
+
next: (executionId: string, stepId: string, interactionId: string, version?: number, componentsVersion?: string, input?: {
|
|
3143
|
+
[x: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any[])[])[])[])[])[])[])[])[])[])[];
|
|
3144
|
+
}) => Promise<_1.SdkResponse<_1.FlowResponse>>;
|
|
1310
3145
|
};
|
|
1311
3146
|
webauthn: {
|
|
1312
3147
|
signUp: ((identifier: string, name: string, passkeyOptions?: _1.PasskeyOptions) => Promise<_1.SdkResponse<_1.JWTResponse>>) & {
|
|
@@ -1457,9 +3292,9 @@ export declare const createTempSdk: () => ((({
|
|
|
1457
3292
|
}>>;
|
|
1458
3293
|
};
|
|
1459
3294
|
update: {
|
|
1460
|
-
email: <
|
|
1461
|
-
addToLoginIDs?:
|
|
1462
|
-
onMergeUseExisting?:
|
|
3295
|
+
email: <T_6 extends boolean>(loginId: string, email: string, token?: string, updateOptions?: {
|
|
3296
|
+
addToLoginIDs?: T_6;
|
|
3297
|
+
onMergeUseExisting?: T_6 extends true ? boolean : never;
|
|
1463
3298
|
templateOptions?: {
|
|
1464
3299
|
[x: string]: string;
|
|
1465
3300
|
};
|
|
@@ -1467,27 +3302,27 @@ export declare const createTempSdk: () => ((({
|
|
|
1467
3302
|
maskedEmail: string;
|
|
1468
3303
|
}>>;
|
|
1469
3304
|
phone: {
|
|
1470
|
-
sms: <
|
|
1471
|
-
addToLoginIDs?:
|
|
1472
|
-
onMergeUseExisting?:
|
|
3305
|
+
sms: <T_1_6 extends boolean>(loginId: string, phone: string, token?: string, updateOptions?: {
|
|
3306
|
+
addToLoginIDs?: T_1_6;
|
|
3307
|
+
onMergeUseExisting?: T_1_6 extends true ? boolean : never;
|
|
1473
3308
|
templateOptions?: {
|
|
1474
3309
|
[x: string]: string;
|
|
1475
3310
|
};
|
|
1476
3311
|
}) => Promise<_1.SdkResponse<{
|
|
1477
3312
|
maskedPhone: string;
|
|
1478
3313
|
}>>;
|
|
1479
|
-
voice: <
|
|
1480
|
-
addToLoginIDs?:
|
|
1481
|
-
onMergeUseExisting?:
|
|
3314
|
+
voice: <T_1_7 extends boolean>(loginId: string, phone: string, token?: string, updateOptions?: {
|
|
3315
|
+
addToLoginIDs?: T_1_7;
|
|
3316
|
+
onMergeUseExisting?: T_1_7 extends true ? boolean : never;
|
|
1482
3317
|
templateOptions?: {
|
|
1483
3318
|
[x: string]: string;
|
|
1484
3319
|
};
|
|
1485
3320
|
}) => Promise<_1.SdkResponse<{
|
|
1486
3321
|
maskedPhone: string;
|
|
1487
3322
|
}>>;
|
|
1488
|
-
whatsapp: <
|
|
1489
|
-
addToLoginIDs?:
|
|
1490
|
-
onMergeUseExisting?:
|
|
3323
|
+
whatsapp: <T_1_8 extends boolean>(loginId: string, phone: string, token?: string, updateOptions?: {
|
|
3324
|
+
addToLoginIDs?: T_1_8;
|
|
3325
|
+
onMergeUseExisting?: T_1_8 extends true ? boolean : never;
|
|
1491
3326
|
templateOptions?: {
|
|
1492
3327
|
[x: string]: string;
|
|
1493
3328
|
};
|
|
@@ -1618,9 +3453,9 @@ export declare const createTempSdk: () => ((({
|
|
|
1618
3453
|
}>>;
|
|
1619
3454
|
};
|
|
1620
3455
|
update: {
|
|
1621
|
-
email: <
|
|
1622
|
-
addToLoginIDs?:
|
|
1623
|
-
onMergeUseExisting?:
|
|
3456
|
+
email: <T_2_2 extends boolean>(loginId: string, email: string, URI?: string, token?: string, updateOptions?: {
|
|
3457
|
+
addToLoginIDs?: T_2_2;
|
|
3458
|
+
onMergeUseExisting?: T_2_2 extends true ? boolean : never;
|
|
1624
3459
|
templateOptions?: {
|
|
1625
3460
|
[x: string]: string;
|
|
1626
3461
|
};
|
|
@@ -1628,27 +3463,27 @@ export declare const createTempSdk: () => ((({
|
|
|
1628
3463
|
maskedEmail: string;
|
|
1629
3464
|
}>>;
|
|
1630
3465
|
phone: {
|
|
1631
|
-
sms: <
|
|
1632
|
-
addToLoginIDs?:
|
|
1633
|
-
onMergeUseExisting?:
|
|
3466
|
+
sms: <T_3_6 extends boolean>(loginId: string, phone: string, URI?: string, token?: string, updateOptions?: {
|
|
3467
|
+
addToLoginIDs?: T_3_6;
|
|
3468
|
+
onMergeUseExisting?: T_3_6 extends true ? boolean : never;
|
|
1634
3469
|
templateOptions?: {
|
|
1635
3470
|
[x: string]: string;
|
|
1636
3471
|
};
|
|
1637
3472
|
}) => Promise<_1.SdkResponse<{
|
|
1638
3473
|
maskedPhone: string;
|
|
1639
3474
|
}>>;
|
|
1640
|
-
voice: <
|
|
1641
|
-
addToLoginIDs?:
|
|
1642
|
-
onMergeUseExisting?:
|
|
3475
|
+
voice: <T_3_7 extends boolean>(loginId: string, phone: string, URI?: string, token?: string, updateOptions?: {
|
|
3476
|
+
addToLoginIDs?: T_3_7;
|
|
3477
|
+
onMergeUseExisting?: T_3_7 extends true ? boolean : never;
|
|
1643
3478
|
templateOptions?: {
|
|
1644
3479
|
[x: string]: string;
|
|
1645
3480
|
};
|
|
1646
3481
|
}) => Promise<_1.SdkResponse<{
|
|
1647
3482
|
maskedPhone: string;
|
|
1648
3483
|
}>>;
|
|
1649
|
-
whatsapp: <
|
|
1650
|
-
addToLoginIDs?:
|
|
1651
|
-
onMergeUseExisting?:
|
|
3484
|
+
whatsapp: <T_3_8 extends boolean>(loginId: string, phone: string, URI?: string, token?: string, updateOptions?: {
|
|
3485
|
+
addToLoginIDs?: T_3_8;
|
|
3486
|
+
onMergeUseExisting?: T_3_8 extends true ? boolean : never;
|
|
1652
3487
|
templateOptions?: {
|
|
1653
3488
|
[x: string]: string;
|
|
1654
3489
|
};
|
|
@@ -1687,9 +3522,9 @@ export declare const createTempSdk: () => ((({
|
|
|
1687
3522
|
timeoutMs: number;
|
|
1688
3523
|
}) => Promise<_1.SdkResponse<_1.JWTResponse>>;
|
|
1689
3524
|
update: {
|
|
1690
|
-
email: <
|
|
1691
|
-
addToLoginIDs?:
|
|
1692
|
-
onMergeUseExisting?:
|
|
3525
|
+
email: <T_4_2 extends boolean>(loginId: string, email: string, URI?: string, token?: string, updateOptions?: {
|
|
3526
|
+
addToLoginIDs?: T_4_2;
|
|
3527
|
+
onMergeUseExisting?: T_4_2 extends true ? boolean : never;
|
|
1693
3528
|
templateOptions?: {
|
|
1694
3529
|
[x: string]: string;
|
|
1695
3530
|
};
|
|
@@ -1805,6 +3640,7 @@ export declare const createTempSdk: () => ((({
|
|
|
1805
3640
|
selectTenant: (tenantId: string, token?: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
|
|
1806
3641
|
logout: (token?: string) => Promise<_1.SdkResponse<never>>;
|
|
1807
3642
|
logoutAll: (token?: string) => Promise<_1.SdkResponse<never>>;
|
|
3643
|
+
logoutPrevious: (token?: string) => Promise<_1.SdkResponse<never>>;
|
|
1808
3644
|
me: (token?: string) => Promise<_1.SdkResponse<_1.UserResponse>>;
|
|
1809
3645
|
myTenants: (tenants: true | string[], token?: string) => Promise<_1.SdkResponse<{
|
|
1810
3646
|
tenants: {
|
|
@@ -1863,7 +3699,24 @@ export declare const createTempSdk: () => ((({
|
|
|
1863
3699
|
[key: string]: string;
|
|
1864
3700
|
}) => string;
|
|
1865
3701
|
};
|
|
1866
|
-
}
|
|
3702
|
+
}) & {
|
|
3703
|
+
onSessionTokenChange: (cb: (data: string) => void) => () => any[];
|
|
3704
|
+
onUserChange: (cb: (data: _1.UserResponse) => void) => () => any[];
|
|
3705
|
+
}) & {
|
|
3706
|
+
getLastUserLoginId: () => string;
|
|
3707
|
+
getLastUserDisplayName: () => string;
|
|
3708
|
+
}) & {
|
|
3709
|
+
getRefreshToken: () => string;
|
|
3710
|
+
getSessionToken: () => string;
|
|
3711
|
+
};
|
|
3712
|
+
export declare const getSessionToken: () => string;
|
|
3713
|
+
export declare const getRefreshToken: () => string;
|
|
3714
|
+
export declare const isSessionTokenExpired: (token?: string) => boolean;
|
|
3715
|
+
export declare const isRefreshTokenExpired: (token?: string) => boolean;
|
|
3716
|
+
export declare const getJwtPermissions: (token?: any, tenant?: string) => string[];
|
|
3717
|
+
export declare const getJwtRoles: (token?: any, tenant?: string) => string[];
|
|
3718
|
+
export declare const refresh: (token?: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
|
|
3719
|
+
export declare const getGlobalSdk: () => ((({
|
|
1867
3720
|
refresh: (token?: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
|
|
1868
3721
|
flow: {
|
|
1869
3722
|
start: (flowId: string, options?: Pick<{
|
|
@@ -1907,8 +3760,12 @@ export declare const createTempSdk: () => ((({
|
|
|
1907
3760
|
name?: string;
|
|
1908
3761
|
loginId?: string;
|
|
1909
3762
|
}, "loginId" | "name">;
|
|
1910
|
-
}, conditionInteractionId?: string, interactionId?: string, componentsVersion?: string, flowVersions?: Record<string, number>, input?:
|
|
1911
|
-
|
|
3763
|
+
}, conditionInteractionId?: string, interactionId?: string, componentsVersion?: string, flowVersions?: Record<string, number>, input?: {
|
|
3764
|
+
[x: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any[])[])[])[])[])[])[])[])[])[])[];
|
|
3765
|
+
}) => Promise<_1.SdkResponse<_1.FlowResponse>>;
|
|
3766
|
+
next: (executionId: string, stepId: string, interactionId: string, version?: number, componentsVersion?: string, input?: {
|
|
3767
|
+
[x: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any[])[])[])[])[])[])[])[])[])[])[];
|
|
3768
|
+
}) => Promise<_1.SdkResponse<_1.FlowResponse>>;
|
|
1912
3769
|
};
|
|
1913
3770
|
webauthn: {
|
|
1914
3771
|
signUp: ((identifier: string, name: string, passkeyOptions?: _1.PasskeyOptions) => Promise<_1.SdkResponse<_1.JWTResponse>>) & {
|
|
@@ -2059,9 +3916,9 @@ export declare const createTempSdk: () => ((({
|
|
|
2059
3916
|
}>>;
|
|
2060
3917
|
};
|
|
2061
3918
|
update: {
|
|
2062
|
-
email: <
|
|
2063
|
-
addToLoginIDs?:
|
|
2064
|
-
onMergeUseExisting?:
|
|
3919
|
+
email: <T extends boolean>(loginId: string, email: string, token?: string, updateOptions?: {
|
|
3920
|
+
addToLoginIDs?: T;
|
|
3921
|
+
onMergeUseExisting?: T extends true ? boolean : never;
|
|
2065
3922
|
templateOptions?: {
|
|
2066
3923
|
[x: string]: string;
|
|
2067
3924
|
};
|
|
@@ -2069,27 +3926,27 @@ export declare const createTempSdk: () => ((({
|
|
|
2069
3926
|
maskedEmail: string;
|
|
2070
3927
|
}>>;
|
|
2071
3928
|
phone: {
|
|
2072
|
-
sms: <
|
|
2073
|
-
addToLoginIDs?:
|
|
2074
|
-
onMergeUseExisting?:
|
|
3929
|
+
sms: <T_1 extends boolean>(loginId: string, phone: string, token?: string, updateOptions?: {
|
|
3930
|
+
addToLoginIDs?: T_1;
|
|
3931
|
+
onMergeUseExisting?: T_1 extends true ? boolean : never;
|
|
2075
3932
|
templateOptions?: {
|
|
2076
3933
|
[x: string]: string;
|
|
2077
3934
|
};
|
|
2078
3935
|
}) => Promise<_1.SdkResponse<{
|
|
2079
3936
|
maskedPhone: string;
|
|
2080
3937
|
}>>;
|
|
2081
|
-
voice: <
|
|
2082
|
-
addToLoginIDs?:
|
|
2083
|
-
onMergeUseExisting?:
|
|
3938
|
+
voice: <T_1_1 extends boolean>(loginId: string, phone: string, token?: string, updateOptions?: {
|
|
3939
|
+
addToLoginIDs?: T_1_1;
|
|
3940
|
+
onMergeUseExisting?: T_1_1 extends true ? boolean : never;
|
|
2084
3941
|
templateOptions?: {
|
|
2085
3942
|
[x: string]: string;
|
|
2086
3943
|
};
|
|
2087
3944
|
}) => Promise<_1.SdkResponse<{
|
|
2088
3945
|
maskedPhone: string;
|
|
2089
3946
|
}>>;
|
|
2090
|
-
whatsapp: <
|
|
2091
|
-
addToLoginIDs?:
|
|
2092
|
-
onMergeUseExisting?:
|
|
3947
|
+
whatsapp: <T_1_2 extends boolean>(loginId: string, phone: string, token?: string, updateOptions?: {
|
|
3948
|
+
addToLoginIDs?: T_1_2;
|
|
3949
|
+
onMergeUseExisting?: T_1_2 extends true ? boolean : never;
|
|
2093
3950
|
templateOptions?: {
|
|
2094
3951
|
[x: string]: string;
|
|
2095
3952
|
};
|
|
@@ -2220,9 +4077,9 @@ export declare const createTempSdk: () => ((({
|
|
|
2220
4077
|
}>>;
|
|
2221
4078
|
};
|
|
2222
4079
|
update: {
|
|
2223
|
-
email: <
|
|
2224
|
-
addToLoginIDs?:
|
|
2225
|
-
onMergeUseExisting?:
|
|
4080
|
+
email: <T_2 extends boolean>(loginId: string, email: string, URI?: string, token?: string, updateOptions?: {
|
|
4081
|
+
addToLoginIDs?: T_2;
|
|
4082
|
+
onMergeUseExisting?: T_2 extends true ? boolean : never;
|
|
2226
4083
|
templateOptions?: {
|
|
2227
4084
|
[x: string]: string;
|
|
2228
4085
|
};
|
|
@@ -2230,27 +4087,27 @@ export declare const createTempSdk: () => ((({
|
|
|
2230
4087
|
maskedEmail: string;
|
|
2231
4088
|
}>>;
|
|
2232
4089
|
phone: {
|
|
2233
|
-
sms: <
|
|
2234
|
-
addToLoginIDs?:
|
|
2235
|
-
onMergeUseExisting?:
|
|
4090
|
+
sms: <T_3 extends boolean>(loginId: string, phone: string, URI?: string, token?: string, updateOptions?: {
|
|
4091
|
+
addToLoginIDs?: T_3;
|
|
4092
|
+
onMergeUseExisting?: T_3 extends true ? boolean : never;
|
|
2236
4093
|
templateOptions?: {
|
|
2237
4094
|
[x: string]: string;
|
|
2238
4095
|
};
|
|
2239
4096
|
}) => Promise<_1.SdkResponse<{
|
|
2240
4097
|
maskedPhone: string;
|
|
2241
4098
|
}>>;
|
|
2242
|
-
voice: <
|
|
2243
|
-
addToLoginIDs?:
|
|
2244
|
-
onMergeUseExisting?:
|
|
4099
|
+
voice: <T_3_1 extends boolean>(loginId: string, phone: string, URI?: string, token?: string, updateOptions?: {
|
|
4100
|
+
addToLoginIDs?: T_3_1;
|
|
4101
|
+
onMergeUseExisting?: T_3_1 extends true ? boolean : never;
|
|
2245
4102
|
templateOptions?: {
|
|
2246
4103
|
[x: string]: string;
|
|
2247
4104
|
};
|
|
2248
4105
|
}) => Promise<_1.SdkResponse<{
|
|
2249
4106
|
maskedPhone: string;
|
|
2250
4107
|
}>>;
|
|
2251
|
-
whatsapp: <
|
|
2252
|
-
addToLoginIDs?:
|
|
2253
|
-
onMergeUseExisting?:
|
|
4108
|
+
whatsapp: <T_3_2 extends boolean>(loginId: string, phone: string, URI?: string, token?: string, updateOptions?: {
|
|
4109
|
+
addToLoginIDs?: T_3_2;
|
|
4110
|
+
onMergeUseExisting?: T_3_2 extends true ? boolean : never;
|
|
2254
4111
|
templateOptions?: {
|
|
2255
4112
|
[x: string]: string;
|
|
2256
4113
|
};
|
|
@@ -2289,9 +4146,9 @@ export declare const createTempSdk: () => ((({
|
|
|
2289
4146
|
timeoutMs: number;
|
|
2290
4147
|
}) => Promise<_1.SdkResponse<_1.JWTResponse>>;
|
|
2291
4148
|
update: {
|
|
2292
|
-
email: <
|
|
2293
|
-
addToLoginIDs?:
|
|
2294
|
-
onMergeUseExisting?:
|
|
4149
|
+
email: <T_4 extends boolean>(loginId: string, email: string, URI?: string, token?: string, updateOptions?: {
|
|
4150
|
+
addToLoginIDs?: T_4;
|
|
4151
|
+
onMergeUseExisting?: T_4 extends true ? boolean : never;
|
|
2295
4152
|
templateOptions?: {
|
|
2296
4153
|
[x: string]: string;
|
|
2297
4154
|
};
|
|
@@ -2407,6 +4264,7 @@ export declare const createTempSdk: () => ((({
|
|
|
2407
4264
|
selectTenant: (tenantId: string, token?: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
|
|
2408
4265
|
logout: (token?: string) => Promise<_1.SdkResponse<never>>;
|
|
2409
4266
|
logoutAll: (token?: string) => Promise<_1.SdkResponse<never>>;
|
|
4267
|
+
logoutPrevious: (token?: string) => Promise<_1.SdkResponse<never>>;
|
|
2410
4268
|
me: (token?: string) => Promise<_1.SdkResponse<_1.UserResponse>>;
|
|
2411
4269
|
myTenants: (tenants: true | string[], token?: string) => Promise<_1.SdkResponse<{
|
|
2412
4270
|
tenants: {
|
|
@@ -2465,24 +4323,7 @@ export declare const createTempSdk: () => ((({
|
|
|
2465
4323
|
[key: string]: string;
|
|
2466
4324
|
}) => string;
|
|
2467
4325
|
};
|
|
2468
|
-
}
|
|
2469
|
-
onSessionTokenChange: (cb: (data: string) => void) => () => any[];
|
|
2470
|
-
onUserChange: (cb: (data: _1.UserResponse) => void) => () => any[];
|
|
2471
|
-
}) & {
|
|
2472
|
-
getLastUserLoginId: () => string;
|
|
2473
|
-
getLastUserDisplayName: () => string;
|
|
2474
|
-
}) & {
|
|
2475
|
-
getRefreshToken: () => string;
|
|
2476
|
-
getSessionToken: () => string;
|
|
2477
|
-
};
|
|
2478
|
-
export declare const getSessionToken: () => string;
|
|
2479
|
-
export declare const getRefreshToken: () => string;
|
|
2480
|
-
export declare const isSessionTokenExpired: (token?: string) => boolean;
|
|
2481
|
-
export declare const isRefreshTokenExpired: (token?: string) => boolean;
|
|
2482
|
-
export declare const getJwtPermissions: (token?: any, tenant?: string) => string[];
|
|
2483
|
-
export declare const getJwtRoles: (token?: any, tenant?: string) => string[];
|
|
2484
|
-
export declare const refresh: (token?: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
|
|
2485
|
-
export declare const getGlobalSdk: () => ((({
|
|
4326
|
+
} | {
|
|
2486
4327
|
refresh: (token?: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
|
|
2487
4328
|
flow: {
|
|
2488
4329
|
start: (flowId: string, options?: Pick<{
|
|
@@ -2526,8 +4367,12 @@ export declare const getGlobalSdk: () => ((({
|
|
|
2526
4367
|
name?: string;
|
|
2527
4368
|
loginId?: string;
|
|
2528
4369
|
}, "loginId" | "name">;
|
|
2529
|
-
}, conditionInteractionId?: string, interactionId?: string, componentsVersion?: string, flowVersions?: Record<string, number>, input?:
|
|
2530
|
-
|
|
4370
|
+
}, conditionInteractionId?: string, interactionId?: string, componentsVersion?: string, flowVersions?: Record<string, number>, input?: {
|
|
4371
|
+
[x: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any[])[])[])[])[])[])[])[])[])[])[];
|
|
4372
|
+
}) => Promise<_1.SdkResponse<_1.FlowResponse>>;
|
|
4373
|
+
next: (executionId: string, stepId: string, interactionId: string, version?: number, componentsVersion?: string, input?: {
|
|
4374
|
+
[x: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any[])[])[])[])[])[])[])[])[])[])[];
|
|
4375
|
+
}) => Promise<_1.SdkResponse<_1.FlowResponse>>;
|
|
2531
4376
|
};
|
|
2532
4377
|
webauthn: {
|
|
2533
4378
|
signUp: ((identifier: string, name: string, passkeyOptions?: _1.PasskeyOptions) => Promise<_1.SdkResponse<_1.JWTResponse>>) & {
|
|
@@ -2678,9 +4523,9 @@ export declare const getGlobalSdk: () => ((({
|
|
|
2678
4523
|
}>>;
|
|
2679
4524
|
};
|
|
2680
4525
|
update: {
|
|
2681
|
-
email: <
|
|
2682
|
-
addToLoginIDs?:
|
|
2683
|
-
onMergeUseExisting?:
|
|
4526
|
+
email: <T_5 extends boolean>(loginId: string, email: string, token?: string, updateOptions?: {
|
|
4527
|
+
addToLoginIDs?: T_5;
|
|
4528
|
+
onMergeUseExisting?: T_5 extends true ? boolean : never;
|
|
2684
4529
|
templateOptions?: {
|
|
2685
4530
|
[x: string]: string;
|
|
2686
4531
|
};
|
|
@@ -2688,27 +4533,27 @@ export declare const getGlobalSdk: () => ((({
|
|
|
2688
4533
|
maskedEmail: string;
|
|
2689
4534
|
}>>;
|
|
2690
4535
|
phone: {
|
|
2691
|
-
sms: <
|
|
2692
|
-
addToLoginIDs?:
|
|
2693
|
-
onMergeUseExisting?:
|
|
4536
|
+
sms: <T_1_3 extends boolean>(loginId: string, phone: string, token?: string, updateOptions?: {
|
|
4537
|
+
addToLoginIDs?: T_1_3;
|
|
4538
|
+
onMergeUseExisting?: T_1_3 extends true ? boolean : never;
|
|
2694
4539
|
templateOptions?: {
|
|
2695
4540
|
[x: string]: string;
|
|
2696
4541
|
};
|
|
2697
4542
|
}) => Promise<_1.SdkResponse<{
|
|
2698
4543
|
maskedPhone: string;
|
|
2699
4544
|
}>>;
|
|
2700
|
-
voice: <
|
|
2701
|
-
addToLoginIDs?:
|
|
2702
|
-
onMergeUseExisting?:
|
|
4545
|
+
voice: <T_1_4 extends boolean>(loginId: string, phone: string, token?: string, updateOptions?: {
|
|
4546
|
+
addToLoginIDs?: T_1_4;
|
|
4547
|
+
onMergeUseExisting?: T_1_4 extends true ? boolean : never;
|
|
2703
4548
|
templateOptions?: {
|
|
2704
4549
|
[x: string]: string;
|
|
2705
4550
|
};
|
|
2706
4551
|
}) => Promise<_1.SdkResponse<{
|
|
2707
4552
|
maskedPhone: string;
|
|
2708
4553
|
}>>;
|
|
2709
|
-
whatsapp: <
|
|
2710
|
-
addToLoginIDs?:
|
|
2711
|
-
onMergeUseExisting?:
|
|
4554
|
+
whatsapp: <T_1_5 extends boolean>(loginId: string, phone: string, token?: string, updateOptions?: {
|
|
4555
|
+
addToLoginIDs?: T_1_5;
|
|
4556
|
+
onMergeUseExisting?: T_1_5 extends true ? boolean : never;
|
|
2712
4557
|
templateOptions?: {
|
|
2713
4558
|
[x: string]: string;
|
|
2714
4559
|
};
|
|
@@ -2839,9 +4684,9 @@ export declare const getGlobalSdk: () => ((({
|
|
|
2839
4684
|
}>>;
|
|
2840
4685
|
};
|
|
2841
4686
|
update: {
|
|
2842
|
-
email: <
|
|
2843
|
-
addToLoginIDs?:
|
|
2844
|
-
onMergeUseExisting?:
|
|
4687
|
+
email: <T_2_1 extends boolean>(loginId: string, email: string, URI?: string, token?: string, updateOptions?: {
|
|
4688
|
+
addToLoginIDs?: T_2_1;
|
|
4689
|
+
onMergeUseExisting?: T_2_1 extends true ? boolean : never;
|
|
2845
4690
|
templateOptions?: {
|
|
2846
4691
|
[x: string]: string;
|
|
2847
4692
|
};
|
|
@@ -2849,27 +4694,27 @@ export declare const getGlobalSdk: () => ((({
|
|
|
2849
4694
|
maskedEmail: string;
|
|
2850
4695
|
}>>;
|
|
2851
4696
|
phone: {
|
|
2852
|
-
sms: <
|
|
2853
|
-
addToLoginIDs?:
|
|
2854
|
-
onMergeUseExisting?:
|
|
4697
|
+
sms: <T_3_3 extends boolean>(loginId: string, phone: string, URI?: string, token?: string, updateOptions?: {
|
|
4698
|
+
addToLoginIDs?: T_3_3;
|
|
4699
|
+
onMergeUseExisting?: T_3_3 extends true ? boolean : never;
|
|
2855
4700
|
templateOptions?: {
|
|
2856
4701
|
[x: string]: string;
|
|
2857
4702
|
};
|
|
2858
4703
|
}) => Promise<_1.SdkResponse<{
|
|
2859
4704
|
maskedPhone: string;
|
|
2860
4705
|
}>>;
|
|
2861
|
-
voice: <
|
|
2862
|
-
addToLoginIDs?:
|
|
2863
|
-
onMergeUseExisting?:
|
|
4706
|
+
voice: <T_3_4 extends boolean>(loginId: string, phone: string, URI?: string, token?: string, updateOptions?: {
|
|
4707
|
+
addToLoginIDs?: T_3_4;
|
|
4708
|
+
onMergeUseExisting?: T_3_4 extends true ? boolean : never;
|
|
2864
4709
|
templateOptions?: {
|
|
2865
4710
|
[x: string]: string;
|
|
2866
4711
|
};
|
|
2867
4712
|
}) => Promise<_1.SdkResponse<{
|
|
2868
4713
|
maskedPhone: string;
|
|
2869
4714
|
}>>;
|
|
2870
|
-
whatsapp: <
|
|
2871
|
-
addToLoginIDs?:
|
|
2872
|
-
onMergeUseExisting?:
|
|
4715
|
+
whatsapp: <T_3_5 extends boolean>(loginId: string, phone: string, URI?: string, token?: string, updateOptions?: {
|
|
4716
|
+
addToLoginIDs?: T_3_5;
|
|
4717
|
+
onMergeUseExisting?: T_3_5 extends true ? boolean : never;
|
|
2873
4718
|
templateOptions?: {
|
|
2874
4719
|
[x: string]: string;
|
|
2875
4720
|
};
|
|
@@ -2908,9 +4753,9 @@ export declare const getGlobalSdk: () => ((({
|
|
|
2908
4753
|
timeoutMs: number;
|
|
2909
4754
|
}) => Promise<_1.SdkResponse<_1.JWTResponse>>;
|
|
2910
4755
|
update: {
|
|
2911
|
-
email: <
|
|
2912
|
-
addToLoginIDs?:
|
|
2913
|
-
onMergeUseExisting?:
|
|
4756
|
+
email: <T_4_1 extends boolean>(loginId: string, email: string, URI?: string, token?: string, updateOptions?: {
|
|
4757
|
+
addToLoginIDs?: T_4_1;
|
|
4758
|
+
onMergeUseExisting?: T_4_1 extends true ? boolean : never;
|
|
2914
4759
|
templateOptions?: {
|
|
2915
4760
|
[x: string]: string;
|
|
2916
4761
|
};
|
|
@@ -3026,6 +4871,7 @@ export declare const getGlobalSdk: () => ((({
|
|
|
3026
4871
|
selectTenant: (tenantId: string, token?: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
|
|
3027
4872
|
logout: (token?: string) => Promise<_1.SdkResponse<never>>;
|
|
3028
4873
|
logoutAll: (token?: string) => Promise<_1.SdkResponse<never>>;
|
|
4874
|
+
logoutPrevious: (token?: string) => Promise<_1.SdkResponse<never>>;
|
|
3029
4875
|
me: (token?: string) => Promise<_1.SdkResponse<_1.UserResponse>>;
|
|
3030
4876
|
myTenants: (tenants: true | string[], token?: string) => Promise<_1.SdkResponse<{
|
|
3031
4877
|
tenants: {
|
|
@@ -3128,8 +4974,12 @@ export declare const getGlobalSdk: () => ((({
|
|
|
3128
4974
|
name?: string;
|
|
3129
4975
|
loginId?: string;
|
|
3130
4976
|
}, "loginId" | "name">;
|
|
3131
|
-
}, conditionInteractionId?: string, interactionId?: string, componentsVersion?: string, flowVersions?: Record<string, number>, input?:
|
|
3132
|
-
|
|
4977
|
+
}, conditionInteractionId?: string, interactionId?: string, componentsVersion?: string, flowVersions?: Record<string, number>, input?: {
|
|
4978
|
+
[x: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any[])[])[])[])[])[])[])[])[])[])[];
|
|
4979
|
+
}) => Promise<_1.SdkResponse<_1.FlowResponse>>;
|
|
4980
|
+
next: (executionId: string, stepId: string, interactionId: string, version?: number, componentsVersion?: string, input?: {
|
|
4981
|
+
[x: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any[])[])[])[])[])[])[])[])[])[])[];
|
|
4982
|
+
}) => Promise<_1.SdkResponse<_1.FlowResponse>>;
|
|
3133
4983
|
};
|
|
3134
4984
|
webauthn: {
|
|
3135
4985
|
signUp: ((identifier: string, name: string, passkeyOptions?: _1.PasskeyOptions) => Promise<_1.SdkResponse<_1.JWTResponse>>) & {
|
|
@@ -3280,9 +5130,9 @@ export declare const getGlobalSdk: () => ((({
|
|
|
3280
5130
|
}>>;
|
|
3281
5131
|
};
|
|
3282
5132
|
update: {
|
|
3283
|
-
email: <
|
|
3284
|
-
addToLoginIDs?:
|
|
3285
|
-
onMergeUseExisting?:
|
|
5133
|
+
email: <T_6 extends boolean>(loginId: string, email: string, token?: string, updateOptions?: {
|
|
5134
|
+
addToLoginIDs?: T_6;
|
|
5135
|
+
onMergeUseExisting?: T_6 extends true ? boolean : never;
|
|
3286
5136
|
templateOptions?: {
|
|
3287
5137
|
[x: string]: string;
|
|
3288
5138
|
};
|
|
@@ -3290,27 +5140,27 @@ export declare const getGlobalSdk: () => ((({
|
|
|
3290
5140
|
maskedEmail: string;
|
|
3291
5141
|
}>>;
|
|
3292
5142
|
phone: {
|
|
3293
|
-
sms: <
|
|
3294
|
-
addToLoginIDs?:
|
|
3295
|
-
onMergeUseExisting?:
|
|
5143
|
+
sms: <T_1_6 extends boolean>(loginId: string, phone: string, token?: string, updateOptions?: {
|
|
5144
|
+
addToLoginIDs?: T_1_6;
|
|
5145
|
+
onMergeUseExisting?: T_1_6 extends true ? boolean : never;
|
|
3296
5146
|
templateOptions?: {
|
|
3297
5147
|
[x: string]: string;
|
|
3298
5148
|
};
|
|
3299
5149
|
}) => Promise<_1.SdkResponse<{
|
|
3300
5150
|
maskedPhone: string;
|
|
3301
5151
|
}>>;
|
|
3302
|
-
voice: <
|
|
3303
|
-
addToLoginIDs?:
|
|
3304
|
-
onMergeUseExisting?:
|
|
5152
|
+
voice: <T_1_7 extends boolean>(loginId: string, phone: string, token?: string, updateOptions?: {
|
|
5153
|
+
addToLoginIDs?: T_1_7;
|
|
5154
|
+
onMergeUseExisting?: T_1_7 extends true ? boolean : never;
|
|
3305
5155
|
templateOptions?: {
|
|
3306
5156
|
[x: string]: string;
|
|
3307
5157
|
};
|
|
3308
5158
|
}) => Promise<_1.SdkResponse<{
|
|
3309
5159
|
maskedPhone: string;
|
|
3310
5160
|
}>>;
|
|
3311
|
-
whatsapp: <
|
|
3312
|
-
addToLoginIDs?:
|
|
3313
|
-
onMergeUseExisting?:
|
|
5161
|
+
whatsapp: <T_1_8 extends boolean>(loginId: string, phone: string, token?: string, updateOptions?: {
|
|
5162
|
+
addToLoginIDs?: T_1_8;
|
|
5163
|
+
onMergeUseExisting?: T_1_8 extends true ? boolean : never;
|
|
3314
5164
|
templateOptions?: {
|
|
3315
5165
|
[x: string]: string;
|
|
3316
5166
|
};
|
|
@@ -3441,9 +5291,9 @@ export declare const getGlobalSdk: () => ((({
|
|
|
3441
5291
|
}>>;
|
|
3442
5292
|
};
|
|
3443
5293
|
update: {
|
|
3444
|
-
email: <
|
|
3445
|
-
addToLoginIDs?:
|
|
3446
|
-
onMergeUseExisting?:
|
|
5294
|
+
email: <T_2_2 extends boolean>(loginId: string, email: string, URI?: string, token?: string, updateOptions?: {
|
|
5295
|
+
addToLoginIDs?: T_2_2;
|
|
5296
|
+
onMergeUseExisting?: T_2_2 extends true ? boolean : never;
|
|
3447
5297
|
templateOptions?: {
|
|
3448
5298
|
[x: string]: string;
|
|
3449
5299
|
};
|
|
@@ -3451,27 +5301,27 @@ export declare const getGlobalSdk: () => ((({
|
|
|
3451
5301
|
maskedEmail: string;
|
|
3452
5302
|
}>>;
|
|
3453
5303
|
phone: {
|
|
3454
|
-
sms: <
|
|
3455
|
-
addToLoginIDs?:
|
|
3456
|
-
onMergeUseExisting?:
|
|
5304
|
+
sms: <T_3_6 extends boolean>(loginId: string, phone: string, URI?: string, token?: string, updateOptions?: {
|
|
5305
|
+
addToLoginIDs?: T_3_6;
|
|
5306
|
+
onMergeUseExisting?: T_3_6 extends true ? boolean : never;
|
|
3457
5307
|
templateOptions?: {
|
|
3458
5308
|
[x: string]: string;
|
|
3459
5309
|
};
|
|
3460
5310
|
}) => Promise<_1.SdkResponse<{
|
|
3461
5311
|
maskedPhone: string;
|
|
3462
5312
|
}>>;
|
|
3463
|
-
voice: <
|
|
3464
|
-
addToLoginIDs?:
|
|
3465
|
-
onMergeUseExisting?:
|
|
5313
|
+
voice: <T_3_7 extends boolean>(loginId: string, phone: string, URI?: string, token?: string, updateOptions?: {
|
|
5314
|
+
addToLoginIDs?: T_3_7;
|
|
5315
|
+
onMergeUseExisting?: T_3_7 extends true ? boolean : never;
|
|
3466
5316
|
templateOptions?: {
|
|
3467
5317
|
[x: string]: string;
|
|
3468
5318
|
};
|
|
3469
5319
|
}) => Promise<_1.SdkResponse<{
|
|
3470
5320
|
maskedPhone: string;
|
|
3471
5321
|
}>>;
|
|
3472
|
-
whatsapp: <
|
|
3473
|
-
addToLoginIDs?:
|
|
3474
|
-
onMergeUseExisting?:
|
|
5322
|
+
whatsapp: <T_3_8 extends boolean>(loginId: string, phone: string, URI?: string, token?: string, updateOptions?: {
|
|
5323
|
+
addToLoginIDs?: T_3_8;
|
|
5324
|
+
onMergeUseExisting?: T_3_8 extends true ? boolean : never;
|
|
3475
5325
|
templateOptions?: {
|
|
3476
5326
|
[x: string]: string;
|
|
3477
5327
|
};
|
|
@@ -3510,9 +5360,9 @@ export declare const getGlobalSdk: () => ((({
|
|
|
3510
5360
|
timeoutMs: number;
|
|
3511
5361
|
}) => Promise<_1.SdkResponse<_1.JWTResponse>>;
|
|
3512
5362
|
update: {
|
|
3513
|
-
email: <
|
|
3514
|
-
addToLoginIDs?:
|
|
3515
|
-
onMergeUseExisting?:
|
|
5363
|
+
email: <T_4_2 extends boolean>(loginId: string, email: string, URI?: string, token?: string, updateOptions?: {
|
|
5364
|
+
addToLoginIDs?: T_4_2;
|
|
5365
|
+
onMergeUseExisting?: T_4_2 extends true ? boolean : never;
|
|
3516
5366
|
templateOptions?: {
|
|
3517
5367
|
[x: string]: string;
|
|
3518
5368
|
};
|
|
@@ -3628,6 +5478,7 @@ export declare const getGlobalSdk: () => ((({
|
|
|
3628
5478
|
selectTenant: (tenantId: string, token?: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
|
|
3629
5479
|
logout: (token?: string) => Promise<_1.SdkResponse<never>>;
|
|
3630
5480
|
logoutAll: (token?: string) => Promise<_1.SdkResponse<never>>;
|
|
5481
|
+
logoutPrevious: (token?: string) => Promise<_1.SdkResponse<never>>;
|
|
3631
5482
|
me: (token?: string) => Promise<_1.SdkResponse<_1.UserResponse>>;
|
|
3632
5483
|
myTenants: (tenants: true | string[], token?: string) => Promise<_1.SdkResponse<{
|
|
3633
5484
|
tenants: {
|