@descope/react-sdk 2.3.0 → 2.3.1
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/README.md +3 -1
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/dts/src/sdk.d.ts +138 -1965
- package/dist/dts/src/types.d.ts +1 -0
- package/dist/index.d.ts +1 -609
- package/dist/index.esm.js +1 -1
- package/dist/index.esm.js.map +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
|
@@ -595,7 +595,6 @@ declare const createSdkWrapper: <P extends Omit<{
|
|
|
595
595
|
selectTenant: (tenantId: string, token?: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
|
|
596
596
|
logout: (token?: string) => Promise<_1.SdkResponse<never>>;
|
|
597
597
|
logoutAll: (token?: string) => Promise<_1.SdkResponse<never>>;
|
|
598
|
-
logoutPrevious: (token?: string) => Promise<_1.SdkResponse<never>>;
|
|
599
598
|
me: (token?: string) => Promise<_1.SdkResponse<_1.UserResponse>>;
|
|
600
599
|
myTenants: (tenants: true | string[], token?: string) => Promise<_1.SdkResponse<{
|
|
601
600
|
tenants: {
|
|
@@ -1202,7 +1201,6 @@ declare const createSdkWrapper: <P extends Omit<{
|
|
|
1202
1201
|
selectTenant: (tenantId: string, token?: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
|
|
1203
1202
|
logout: (token?: string) => Promise<_1.SdkResponse<never>>;
|
|
1204
1203
|
logoutAll: (token?: string) => Promise<_1.SdkResponse<never>>;
|
|
1205
|
-
logoutPrevious: (token?: string) => Promise<_1.SdkResponse<never>>;
|
|
1206
1204
|
me: (token?: string) => Promise<_1.SdkResponse<_1.UserResponse>>;
|
|
1207
1205
|
myTenants: (tenants: true | string[], token?: string) => Promise<_1.SdkResponse<{
|
|
1208
1206
|
tenants: {
|
|
@@ -1261,1838 +1259,17 @@ declare const createSdkWrapper: <P extends Omit<{
|
|
|
1261
1259
|
[key: string]: string;
|
|
1262
1260
|
}) => string;
|
|
1263
1261
|
};
|
|
1264
|
-
}
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
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>>;
|
|
1813
|
-
me: (token?: string) => Promise<_1.SdkResponse<_1.UserResponse>>;
|
|
1814
|
-
myTenants: (tenants: true | string[], token?: string) => Promise<_1.SdkResponse<{
|
|
1815
|
-
tenants: {
|
|
1816
|
-
id: string;
|
|
1817
|
-
name: string;
|
|
1818
|
-
customAttributes?: Record<string, any>;
|
|
1819
|
-
}[];
|
|
1820
|
-
}>>;
|
|
1821
|
-
history: (token?: string) => Promise<_1.SdkResponse<_1.UserHistoryResponse>>;
|
|
1822
|
-
isJwtExpired: (token: string) => boolean;
|
|
1823
|
-
getTenants: (token: string) => string[];
|
|
1824
|
-
getJwtPermissions: (token: string, tenant?: string) => string[];
|
|
1825
|
-
getJwtRoles: (token: string, tenant?: string) => string[];
|
|
1826
|
-
httpClient: {
|
|
1827
|
-
get: (path: string, config?: {
|
|
1828
|
-
headers?: HeadersInit;
|
|
1829
|
-
queryParams?: {
|
|
1830
|
-
[key: string]: string;
|
|
1831
|
-
};
|
|
1832
|
-
token?: string;
|
|
1833
|
-
}) => Promise<Response>;
|
|
1834
|
-
post: (path: string, body?: any, config?: {
|
|
1835
|
-
headers?: HeadersInit;
|
|
1836
|
-
queryParams?: {
|
|
1837
|
-
[key: string]: string;
|
|
1838
|
-
};
|
|
1839
|
-
token?: string;
|
|
1840
|
-
}) => Promise<Response>;
|
|
1841
|
-
patch: (path: string, body?: any, config?: {
|
|
1842
|
-
headers?: HeadersInit;
|
|
1843
|
-
queryParams?: {
|
|
1844
|
-
[key: string]: string;
|
|
1845
|
-
};
|
|
1846
|
-
token?: string;
|
|
1847
|
-
}) => Promise<Response>;
|
|
1848
|
-
put: (path: string, body?: any, config?: {
|
|
1849
|
-
headers?: HeadersInit;
|
|
1850
|
-
queryParams?: {
|
|
1851
|
-
[key: string]: string;
|
|
1852
|
-
};
|
|
1853
|
-
token?: string;
|
|
1854
|
-
}) => Promise<Response>;
|
|
1855
|
-
delete: (path: string, config?: {
|
|
1856
|
-
headers?: HeadersInit;
|
|
1857
|
-
queryParams?: {
|
|
1858
|
-
[key: string]: string;
|
|
1859
|
-
};
|
|
1860
|
-
token?: string;
|
|
1861
|
-
}) => Promise<Response>;
|
|
1862
|
-
hooks?: {
|
|
1863
|
-
beforeRequest?: (config: _1.RequestConfig) => _1.RequestConfig;
|
|
1864
|
-
afterRequest?: (req: _1.RequestConfig, res: Response) => void | Promise<void>;
|
|
1865
|
-
transformResponse?: (mutableResponse: _1.ExtendedResponse) => Promise<_1.ExtendedResponse>;
|
|
1866
|
-
};
|
|
1867
|
-
buildUrl: (path: string, queryParams?: {
|
|
1868
|
-
[key: string]: string;
|
|
1869
|
-
}) => string;
|
|
1870
|
-
};
|
|
1871
|
-
}) & {
|
|
1872
|
-
onSessionTokenChange: (cb: (data: string) => void) => () => any[];
|
|
1873
|
-
onUserChange: (cb: (data: _1.UserResponse) => void) => () => any[];
|
|
1874
|
-
}) & {
|
|
1875
|
-
getLastUserLoginId: () => string;
|
|
1876
|
-
getLastUserDisplayName: () => string;
|
|
1877
|
-
}) & {
|
|
1878
|
-
getRefreshToken: () => string;
|
|
1879
|
-
getSessionToken: () => string;
|
|
1880
|
-
};
|
|
1881
|
-
export declare const createTempSdk: () => ((({
|
|
1882
|
-
refresh: (token?: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
|
|
1883
|
-
flow: {
|
|
1884
|
-
start: (flowId: string, options?: Pick<{
|
|
1885
|
-
redirectUrl?: string;
|
|
1886
|
-
location?: string;
|
|
1887
|
-
tenant?: string;
|
|
1888
|
-
deviceInfo?: {
|
|
1889
|
-
webAuthnSupport?: boolean;
|
|
1890
|
-
};
|
|
1891
|
-
lastAuth?: {
|
|
1892
|
-
authMethod?: "webauthn" | "otp" | "oauth" | "saml" | "totp" | "magiclink" | "enchantedlink";
|
|
1893
|
-
oauthProvider?: string;
|
|
1894
|
-
name?: string;
|
|
1895
|
-
loginId?: string;
|
|
1896
|
-
};
|
|
1897
|
-
redirectAuth?: {
|
|
1898
|
-
callbackUrl: string;
|
|
1899
|
-
codeChallenge: string;
|
|
1900
|
-
};
|
|
1901
|
-
oidcIdpStateId?: string;
|
|
1902
|
-
preview?: boolean;
|
|
1903
|
-
samlIdpStateId?: string;
|
|
1904
|
-
samlIdpUsername?: string;
|
|
1905
|
-
ssoAppId?: string;
|
|
1906
|
-
oidcLoginHint?: string;
|
|
1907
|
-
abTestingKey?: number;
|
|
1908
|
-
startOptionsVersion?: number;
|
|
1909
|
-
client?: Record<string, any>;
|
|
1910
|
-
locale?: string;
|
|
1911
|
-
oidcPrompt?: string;
|
|
1912
|
-
oidcErrorRedirectUri?: string;
|
|
1913
|
-
nativeOptions?: {
|
|
1914
|
-
platform: "ios" | "android";
|
|
1915
|
-
oauthProvider?: string;
|
|
1916
|
-
oauthRedirect?: string;
|
|
1917
|
-
};
|
|
1918
|
-
}, "tenant" | "redirectUrl" | "redirectAuth" | "oidcIdpStateId" | "samlIdpStateId" | "samlIdpUsername" | "ssoAppId" | "oidcLoginHint" | "preview" | "abTestingKey" | "client" | "locale" | "oidcPrompt" | "oidcErrorRedirectUri" | "nativeOptions"> & {
|
|
1919
|
-
lastAuth?: Omit<{
|
|
1920
|
-
authMethod?: "webauthn" | "otp" | "oauth" | "saml" | "totp" | "magiclink" | "enchantedlink";
|
|
1921
|
-
oauthProvider?: string;
|
|
1922
|
-
name?: string;
|
|
1923
|
-
loginId?: string;
|
|
1924
|
-
}, "loginId" | "name">;
|
|
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
|
-
} | {
|
|
1262
|
+
}) & {
|
|
1263
|
+
onSessionTokenChange: (cb: (data: string) => void) => () => any[];
|
|
1264
|
+
onUserChange: (cb: (data: _1.UserResponse) => void) => () => any[];
|
|
1265
|
+
}) & {
|
|
1266
|
+
getLastUserLoginId: () => string;
|
|
1267
|
+
getLastUserDisplayName: () => string;
|
|
1268
|
+
}) & {
|
|
1269
|
+
getRefreshToken: () => string;
|
|
1270
|
+
getSessionToken: () => string;
|
|
1271
|
+
};
|
|
1272
|
+
export declare const createTempSdk: () => ((({
|
|
3096
1273
|
refresh: (token?: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
|
|
3097
1274
|
flow: {
|
|
3098
1275
|
start: (flowId: string, options?: Pick<{
|
|
@@ -3292,9 +1469,9 @@ export declare const createTempSdk: () => ((({
|
|
|
3292
1469
|
}>>;
|
|
3293
1470
|
};
|
|
3294
1471
|
update: {
|
|
3295
|
-
email: <
|
|
3296
|
-
addToLoginIDs?:
|
|
3297
|
-
onMergeUseExisting?:
|
|
1472
|
+
email: <T extends boolean>(loginId: string, email: string, token?: string, updateOptions?: {
|
|
1473
|
+
addToLoginIDs?: T;
|
|
1474
|
+
onMergeUseExisting?: T extends true ? boolean : never;
|
|
3298
1475
|
templateOptions?: {
|
|
3299
1476
|
[x: string]: string;
|
|
3300
1477
|
};
|
|
@@ -3302,27 +1479,27 @@ export declare const createTempSdk: () => ((({
|
|
|
3302
1479
|
maskedEmail: string;
|
|
3303
1480
|
}>>;
|
|
3304
1481
|
phone: {
|
|
3305
|
-
sms: <
|
|
3306
|
-
addToLoginIDs?:
|
|
3307
|
-
onMergeUseExisting?:
|
|
1482
|
+
sms: <T_1 extends boolean>(loginId: string, phone: string, token?: string, updateOptions?: {
|
|
1483
|
+
addToLoginIDs?: T_1;
|
|
1484
|
+
onMergeUseExisting?: T_1 extends true ? boolean : never;
|
|
3308
1485
|
templateOptions?: {
|
|
3309
1486
|
[x: string]: string;
|
|
3310
1487
|
};
|
|
3311
1488
|
}) => Promise<_1.SdkResponse<{
|
|
3312
1489
|
maskedPhone: string;
|
|
3313
1490
|
}>>;
|
|
3314
|
-
voice: <
|
|
3315
|
-
addToLoginIDs?:
|
|
3316
|
-
onMergeUseExisting?:
|
|
1491
|
+
voice: <T_1_1 extends boolean>(loginId: string, phone: string, token?: string, updateOptions?: {
|
|
1492
|
+
addToLoginIDs?: T_1_1;
|
|
1493
|
+
onMergeUseExisting?: T_1_1 extends true ? boolean : never;
|
|
3317
1494
|
templateOptions?: {
|
|
3318
1495
|
[x: string]: string;
|
|
3319
1496
|
};
|
|
3320
1497
|
}) => Promise<_1.SdkResponse<{
|
|
3321
1498
|
maskedPhone: string;
|
|
3322
1499
|
}>>;
|
|
3323
|
-
whatsapp: <
|
|
3324
|
-
addToLoginIDs?:
|
|
3325
|
-
onMergeUseExisting?:
|
|
1500
|
+
whatsapp: <T_1_2 extends boolean>(loginId: string, phone: string, token?: string, updateOptions?: {
|
|
1501
|
+
addToLoginIDs?: T_1_2;
|
|
1502
|
+
onMergeUseExisting?: T_1_2 extends true ? boolean : never;
|
|
3326
1503
|
templateOptions?: {
|
|
3327
1504
|
[x: string]: string;
|
|
3328
1505
|
};
|
|
@@ -3453,9 +1630,9 @@ export declare const createTempSdk: () => ((({
|
|
|
3453
1630
|
}>>;
|
|
3454
1631
|
};
|
|
3455
1632
|
update: {
|
|
3456
|
-
email: <
|
|
3457
|
-
addToLoginIDs?:
|
|
3458
|
-
onMergeUseExisting?:
|
|
1633
|
+
email: <T_2 extends boolean>(loginId: string, email: string, URI?: string, token?: string, updateOptions?: {
|
|
1634
|
+
addToLoginIDs?: T_2;
|
|
1635
|
+
onMergeUseExisting?: T_2 extends true ? boolean : never;
|
|
3459
1636
|
templateOptions?: {
|
|
3460
1637
|
[x: string]: string;
|
|
3461
1638
|
};
|
|
@@ -3463,27 +1640,27 @@ export declare const createTempSdk: () => ((({
|
|
|
3463
1640
|
maskedEmail: string;
|
|
3464
1641
|
}>>;
|
|
3465
1642
|
phone: {
|
|
3466
|
-
sms: <
|
|
3467
|
-
addToLoginIDs?:
|
|
3468
|
-
onMergeUseExisting?:
|
|
1643
|
+
sms: <T_3 extends boolean>(loginId: string, phone: string, URI?: string, token?: string, updateOptions?: {
|
|
1644
|
+
addToLoginIDs?: T_3;
|
|
1645
|
+
onMergeUseExisting?: T_3 extends true ? boolean : never;
|
|
3469
1646
|
templateOptions?: {
|
|
3470
1647
|
[x: string]: string;
|
|
3471
1648
|
};
|
|
3472
1649
|
}) => Promise<_1.SdkResponse<{
|
|
3473
1650
|
maskedPhone: string;
|
|
3474
1651
|
}>>;
|
|
3475
|
-
voice: <
|
|
3476
|
-
addToLoginIDs?:
|
|
3477
|
-
onMergeUseExisting?:
|
|
1652
|
+
voice: <T_3_1 extends boolean>(loginId: string, phone: string, URI?: string, token?: string, updateOptions?: {
|
|
1653
|
+
addToLoginIDs?: T_3_1;
|
|
1654
|
+
onMergeUseExisting?: T_3_1 extends true ? boolean : never;
|
|
3478
1655
|
templateOptions?: {
|
|
3479
1656
|
[x: string]: string;
|
|
3480
1657
|
};
|
|
3481
1658
|
}) => Promise<_1.SdkResponse<{
|
|
3482
1659
|
maskedPhone: string;
|
|
3483
1660
|
}>>;
|
|
3484
|
-
whatsapp: <
|
|
3485
|
-
addToLoginIDs?:
|
|
3486
|
-
onMergeUseExisting?:
|
|
1661
|
+
whatsapp: <T_3_2 extends boolean>(loginId: string, phone: string, URI?: string, token?: string, updateOptions?: {
|
|
1662
|
+
addToLoginIDs?: T_3_2;
|
|
1663
|
+
onMergeUseExisting?: T_3_2 extends true ? boolean : never;
|
|
3487
1664
|
templateOptions?: {
|
|
3488
1665
|
[x: string]: string;
|
|
3489
1666
|
};
|
|
@@ -3522,9 +1699,9 @@ export declare const createTempSdk: () => ((({
|
|
|
3522
1699
|
timeoutMs: number;
|
|
3523
1700
|
}) => Promise<_1.SdkResponse<_1.JWTResponse>>;
|
|
3524
1701
|
update: {
|
|
3525
|
-
email: <
|
|
3526
|
-
addToLoginIDs?:
|
|
3527
|
-
onMergeUseExisting?:
|
|
1702
|
+
email: <T_4 extends boolean>(loginId: string, email: string, URI?: string, token?: string, updateOptions?: {
|
|
1703
|
+
addToLoginIDs?: T_4;
|
|
1704
|
+
onMergeUseExisting?: T_4 extends true ? boolean : never;
|
|
3528
1705
|
templateOptions?: {
|
|
3529
1706
|
[x: string]: string;
|
|
3530
1707
|
};
|
|
@@ -3640,7 +1817,6 @@ export declare const createTempSdk: () => ((({
|
|
|
3640
1817
|
selectTenant: (tenantId: string, token?: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
|
|
3641
1818
|
logout: (token?: string) => Promise<_1.SdkResponse<never>>;
|
|
3642
1819
|
logoutAll: (token?: string) => Promise<_1.SdkResponse<never>>;
|
|
3643
|
-
logoutPrevious: (token?: string) => Promise<_1.SdkResponse<never>>;
|
|
3644
1820
|
me: (token?: string) => Promise<_1.SdkResponse<_1.UserResponse>>;
|
|
3645
1821
|
myTenants: (tenants: true | string[], token?: string) => Promise<_1.SdkResponse<{
|
|
3646
1822
|
tenants: {
|
|
@@ -3699,24 +1875,7 @@ export declare const createTempSdk: () => ((({
|
|
|
3699
1875
|
[key: string]: string;
|
|
3700
1876
|
}) => string;
|
|
3701
1877
|
};
|
|
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: () => ((({
|
|
1878
|
+
} | {
|
|
3720
1879
|
refresh: (token?: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
|
|
3721
1880
|
flow: {
|
|
3722
1881
|
start: (flowId: string, options?: Pick<{
|
|
@@ -3916,9 +2075,9 @@ export declare const getGlobalSdk: () => ((({
|
|
|
3916
2075
|
}>>;
|
|
3917
2076
|
};
|
|
3918
2077
|
update: {
|
|
3919
|
-
email: <
|
|
3920
|
-
addToLoginIDs?:
|
|
3921
|
-
onMergeUseExisting?:
|
|
2078
|
+
email: <T_5 extends boolean>(loginId: string, email: string, token?: string, updateOptions?: {
|
|
2079
|
+
addToLoginIDs?: T_5;
|
|
2080
|
+
onMergeUseExisting?: T_5 extends true ? boolean : never;
|
|
3922
2081
|
templateOptions?: {
|
|
3923
2082
|
[x: string]: string;
|
|
3924
2083
|
};
|
|
@@ -3926,27 +2085,27 @@ export declare const getGlobalSdk: () => ((({
|
|
|
3926
2085
|
maskedEmail: string;
|
|
3927
2086
|
}>>;
|
|
3928
2087
|
phone: {
|
|
3929
|
-
sms: <
|
|
3930
|
-
addToLoginIDs?:
|
|
3931
|
-
onMergeUseExisting?:
|
|
2088
|
+
sms: <T_1_3 extends boolean>(loginId: string, phone: string, token?: string, updateOptions?: {
|
|
2089
|
+
addToLoginIDs?: T_1_3;
|
|
2090
|
+
onMergeUseExisting?: T_1_3 extends true ? boolean : never;
|
|
3932
2091
|
templateOptions?: {
|
|
3933
2092
|
[x: string]: string;
|
|
3934
2093
|
};
|
|
3935
2094
|
}) => Promise<_1.SdkResponse<{
|
|
3936
2095
|
maskedPhone: string;
|
|
3937
2096
|
}>>;
|
|
3938
|
-
voice: <
|
|
3939
|
-
addToLoginIDs?:
|
|
3940
|
-
onMergeUseExisting?:
|
|
2097
|
+
voice: <T_1_4 extends boolean>(loginId: string, phone: string, token?: string, updateOptions?: {
|
|
2098
|
+
addToLoginIDs?: T_1_4;
|
|
2099
|
+
onMergeUseExisting?: T_1_4 extends true ? boolean : never;
|
|
3941
2100
|
templateOptions?: {
|
|
3942
2101
|
[x: string]: string;
|
|
3943
2102
|
};
|
|
3944
2103
|
}) => Promise<_1.SdkResponse<{
|
|
3945
2104
|
maskedPhone: string;
|
|
3946
2105
|
}>>;
|
|
3947
|
-
whatsapp: <
|
|
3948
|
-
addToLoginIDs?:
|
|
3949
|
-
onMergeUseExisting?:
|
|
2106
|
+
whatsapp: <T_1_5 extends boolean>(loginId: string, phone: string, token?: string, updateOptions?: {
|
|
2107
|
+
addToLoginIDs?: T_1_5;
|
|
2108
|
+
onMergeUseExisting?: T_1_5 extends true ? boolean : never;
|
|
3950
2109
|
templateOptions?: {
|
|
3951
2110
|
[x: string]: string;
|
|
3952
2111
|
};
|
|
@@ -4077,9 +2236,9 @@ export declare const getGlobalSdk: () => ((({
|
|
|
4077
2236
|
}>>;
|
|
4078
2237
|
};
|
|
4079
2238
|
update: {
|
|
4080
|
-
email: <
|
|
4081
|
-
addToLoginIDs?:
|
|
4082
|
-
onMergeUseExisting?:
|
|
2239
|
+
email: <T_2_1 extends boolean>(loginId: string, email: string, URI?: string, token?: string, updateOptions?: {
|
|
2240
|
+
addToLoginIDs?: T_2_1;
|
|
2241
|
+
onMergeUseExisting?: T_2_1 extends true ? boolean : never;
|
|
4083
2242
|
templateOptions?: {
|
|
4084
2243
|
[x: string]: string;
|
|
4085
2244
|
};
|
|
@@ -4087,27 +2246,27 @@ export declare const getGlobalSdk: () => ((({
|
|
|
4087
2246
|
maskedEmail: string;
|
|
4088
2247
|
}>>;
|
|
4089
2248
|
phone: {
|
|
4090
|
-
sms: <
|
|
4091
|
-
addToLoginIDs?:
|
|
4092
|
-
onMergeUseExisting?:
|
|
2249
|
+
sms: <T_3_3 extends boolean>(loginId: string, phone: string, URI?: string, token?: string, updateOptions?: {
|
|
2250
|
+
addToLoginIDs?: T_3_3;
|
|
2251
|
+
onMergeUseExisting?: T_3_3 extends true ? boolean : never;
|
|
4093
2252
|
templateOptions?: {
|
|
4094
2253
|
[x: string]: string;
|
|
4095
2254
|
};
|
|
4096
2255
|
}) => Promise<_1.SdkResponse<{
|
|
4097
2256
|
maskedPhone: string;
|
|
4098
2257
|
}>>;
|
|
4099
|
-
voice: <
|
|
4100
|
-
addToLoginIDs?:
|
|
4101
|
-
onMergeUseExisting?:
|
|
2258
|
+
voice: <T_3_4 extends boolean>(loginId: string, phone: string, URI?: string, token?: string, updateOptions?: {
|
|
2259
|
+
addToLoginIDs?: T_3_4;
|
|
2260
|
+
onMergeUseExisting?: T_3_4 extends true ? boolean : never;
|
|
4102
2261
|
templateOptions?: {
|
|
4103
2262
|
[x: string]: string;
|
|
4104
2263
|
};
|
|
4105
2264
|
}) => Promise<_1.SdkResponse<{
|
|
4106
2265
|
maskedPhone: string;
|
|
4107
2266
|
}>>;
|
|
4108
|
-
whatsapp: <
|
|
4109
|
-
addToLoginIDs?:
|
|
4110
|
-
onMergeUseExisting?:
|
|
2267
|
+
whatsapp: <T_3_5 extends boolean>(loginId: string, phone: string, URI?: string, token?: string, updateOptions?: {
|
|
2268
|
+
addToLoginIDs?: T_3_5;
|
|
2269
|
+
onMergeUseExisting?: T_3_5 extends true ? boolean : never;
|
|
4111
2270
|
templateOptions?: {
|
|
4112
2271
|
[x: string]: string;
|
|
4113
2272
|
};
|
|
@@ -4146,9 +2305,9 @@ export declare const getGlobalSdk: () => ((({
|
|
|
4146
2305
|
timeoutMs: number;
|
|
4147
2306
|
}) => Promise<_1.SdkResponse<_1.JWTResponse>>;
|
|
4148
2307
|
update: {
|
|
4149
|
-
email: <
|
|
4150
|
-
addToLoginIDs?:
|
|
4151
|
-
onMergeUseExisting?:
|
|
2308
|
+
email: <T_4_1 extends boolean>(loginId: string, email: string, URI?: string, token?: string, updateOptions?: {
|
|
2309
|
+
addToLoginIDs?: T_4_1;
|
|
2310
|
+
onMergeUseExisting?: T_4_1 extends true ? boolean : never;
|
|
4152
2311
|
templateOptions?: {
|
|
4153
2312
|
[x: string]: string;
|
|
4154
2313
|
};
|
|
@@ -4264,7 +2423,6 @@ export declare const getGlobalSdk: () => ((({
|
|
|
4264
2423
|
selectTenant: (tenantId: string, token?: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
|
|
4265
2424
|
logout: (token?: string) => Promise<_1.SdkResponse<never>>;
|
|
4266
2425
|
logoutAll: (token?: string) => Promise<_1.SdkResponse<never>>;
|
|
4267
|
-
logoutPrevious: (token?: string) => Promise<_1.SdkResponse<never>>;
|
|
4268
2426
|
me: (token?: string) => Promise<_1.SdkResponse<_1.UserResponse>>;
|
|
4269
2427
|
myTenants: (tenants: true | string[], token?: string) => Promise<_1.SdkResponse<{
|
|
4270
2428
|
tenants: {
|
|
@@ -4323,7 +2481,24 @@ export declare const getGlobalSdk: () => ((({
|
|
|
4323
2481
|
[key: string]: string;
|
|
4324
2482
|
}) => string;
|
|
4325
2483
|
};
|
|
4326
|
-
}
|
|
2484
|
+
}) & {
|
|
2485
|
+
onSessionTokenChange: (cb: (data: string) => void) => () => any[];
|
|
2486
|
+
onUserChange: (cb: (data: _1.UserResponse) => void) => () => any[];
|
|
2487
|
+
}) & {
|
|
2488
|
+
getLastUserLoginId: () => string;
|
|
2489
|
+
getLastUserDisplayName: () => string;
|
|
2490
|
+
}) & {
|
|
2491
|
+
getRefreshToken: () => string;
|
|
2492
|
+
getSessionToken: () => string;
|
|
2493
|
+
};
|
|
2494
|
+
export declare const getSessionToken: () => string;
|
|
2495
|
+
export declare const getRefreshToken: () => string;
|
|
2496
|
+
export declare const isSessionTokenExpired: (token?: string) => boolean;
|
|
2497
|
+
export declare const isRefreshTokenExpired: (token?: string) => boolean;
|
|
2498
|
+
export declare const getJwtPermissions: (token?: any, tenant?: string) => string[];
|
|
2499
|
+
export declare const getJwtRoles: (token?: any, tenant?: string) => string[];
|
|
2500
|
+
export declare const refresh: (token?: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
|
|
2501
|
+
export declare const getGlobalSdk: () => ((({
|
|
4327
2502
|
refresh: (token?: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
|
|
4328
2503
|
flow: {
|
|
4329
2504
|
start: (flowId: string, options?: Pick<{
|
|
@@ -4523,9 +2698,9 @@ export declare const getGlobalSdk: () => ((({
|
|
|
4523
2698
|
}>>;
|
|
4524
2699
|
};
|
|
4525
2700
|
update: {
|
|
4526
|
-
email: <
|
|
4527
|
-
addToLoginIDs?:
|
|
4528
|
-
onMergeUseExisting?:
|
|
2701
|
+
email: <T extends boolean>(loginId: string, email: string, token?: string, updateOptions?: {
|
|
2702
|
+
addToLoginIDs?: T;
|
|
2703
|
+
onMergeUseExisting?: T extends true ? boolean : never;
|
|
4529
2704
|
templateOptions?: {
|
|
4530
2705
|
[x: string]: string;
|
|
4531
2706
|
};
|
|
@@ -4533,27 +2708,27 @@ export declare const getGlobalSdk: () => ((({
|
|
|
4533
2708
|
maskedEmail: string;
|
|
4534
2709
|
}>>;
|
|
4535
2710
|
phone: {
|
|
4536
|
-
sms: <
|
|
4537
|
-
addToLoginIDs?:
|
|
4538
|
-
onMergeUseExisting?:
|
|
2711
|
+
sms: <T_1 extends boolean>(loginId: string, phone: string, token?: string, updateOptions?: {
|
|
2712
|
+
addToLoginIDs?: T_1;
|
|
2713
|
+
onMergeUseExisting?: T_1 extends true ? boolean : never;
|
|
4539
2714
|
templateOptions?: {
|
|
4540
2715
|
[x: string]: string;
|
|
4541
2716
|
};
|
|
4542
2717
|
}) => Promise<_1.SdkResponse<{
|
|
4543
2718
|
maskedPhone: string;
|
|
4544
2719
|
}>>;
|
|
4545
|
-
voice: <
|
|
4546
|
-
addToLoginIDs?:
|
|
4547
|
-
onMergeUseExisting?:
|
|
2720
|
+
voice: <T_1_1 extends boolean>(loginId: string, phone: string, token?: string, updateOptions?: {
|
|
2721
|
+
addToLoginIDs?: T_1_1;
|
|
2722
|
+
onMergeUseExisting?: T_1_1 extends true ? boolean : never;
|
|
4548
2723
|
templateOptions?: {
|
|
4549
2724
|
[x: string]: string;
|
|
4550
2725
|
};
|
|
4551
2726
|
}) => Promise<_1.SdkResponse<{
|
|
4552
2727
|
maskedPhone: string;
|
|
4553
2728
|
}>>;
|
|
4554
|
-
whatsapp: <
|
|
4555
|
-
addToLoginIDs?:
|
|
4556
|
-
onMergeUseExisting?:
|
|
2729
|
+
whatsapp: <T_1_2 extends boolean>(loginId: string, phone: string, token?: string, updateOptions?: {
|
|
2730
|
+
addToLoginIDs?: T_1_2;
|
|
2731
|
+
onMergeUseExisting?: T_1_2 extends true ? boolean : never;
|
|
4557
2732
|
templateOptions?: {
|
|
4558
2733
|
[x: string]: string;
|
|
4559
2734
|
};
|
|
@@ -4684,9 +2859,9 @@ export declare const getGlobalSdk: () => ((({
|
|
|
4684
2859
|
}>>;
|
|
4685
2860
|
};
|
|
4686
2861
|
update: {
|
|
4687
|
-
email: <
|
|
4688
|
-
addToLoginIDs?:
|
|
4689
|
-
onMergeUseExisting?:
|
|
2862
|
+
email: <T_2 extends boolean>(loginId: string, email: string, URI?: string, token?: string, updateOptions?: {
|
|
2863
|
+
addToLoginIDs?: T_2;
|
|
2864
|
+
onMergeUseExisting?: T_2 extends true ? boolean : never;
|
|
4690
2865
|
templateOptions?: {
|
|
4691
2866
|
[x: string]: string;
|
|
4692
2867
|
};
|
|
@@ -4694,27 +2869,27 @@ export declare const getGlobalSdk: () => ((({
|
|
|
4694
2869
|
maskedEmail: string;
|
|
4695
2870
|
}>>;
|
|
4696
2871
|
phone: {
|
|
4697
|
-
sms: <
|
|
4698
|
-
addToLoginIDs?:
|
|
4699
|
-
onMergeUseExisting?:
|
|
2872
|
+
sms: <T_3 extends boolean>(loginId: string, phone: string, URI?: string, token?: string, updateOptions?: {
|
|
2873
|
+
addToLoginIDs?: T_3;
|
|
2874
|
+
onMergeUseExisting?: T_3 extends true ? boolean : never;
|
|
4700
2875
|
templateOptions?: {
|
|
4701
2876
|
[x: string]: string;
|
|
4702
2877
|
};
|
|
4703
2878
|
}) => Promise<_1.SdkResponse<{
|
|
4704
2879
|
maskedPhone: string;
|
|
4705
2880
|
}>>;
|
|
4706
|
-
voice: <
|
|
4707
|
-
addToLoginIDs?:
|
|
4708
|
-
onMergeUseExisting?:
|
|
2881
|
+
voice: <T_3_1 extends boolean>(loginId: string, phone: string, URI?: string, token?: string, updateOptions?: {
|
|
2882
|
+
addToLoginIDs?: T_3_1;
|
|
2883
|
+
onMergeUseExisting?: T_3_1 extends true ? boolean : never;
|
|
4709
2884
|
templateOptions?: {
|
|
4710
2885
|
[x: string]: string;
|
|
4711
2886
|
};
|
|
4712
2887
|
}) => Promise<_1.SdkResponse<{
|
|
4713
2888
|
maskedPhone: string;
|
|
4714
2889
|
}>>;
|
|
4715
|
-
whatsapp: <
|
|
4716
|
-
addToLoginIDs?:
|
|
4717
|
-
onMergeUseExisting?:
|
|
2890
|
+
whatsapp: <T_3_2 extends boolean>(loginId: string, phone: string, URI?: string, token?: string, updateOptions?: {
|
|
2891
|
+
addToLoginIDs?: T_3_2;
|
|
2892
|
+
onMergeUseExisting?: T_3_2 extends true ? boolean : never;
|
|
4718
2893
|
templateOptions?: {
|
|
4719
2894
|
[x: string]: string;
|
|
4720
2895
|
};
|
|
@@ -4753,9 +2928,9 @@ export declare const getGlobalSdk: () => ((({
|
|
|
4753
2928
|
timeoutMs: number;
|
|
4754
2929
|
}) => Promise<_1.SdkResponse<_1.JWTResponse>>;
|
|
4755
2930
|
update: {
|
|
4756
|
-
email: <
|
|
4757
|
-
addToLoginIDs?:
|
|
4758
|
-
onMergeUseExisting?:
|
|
2931
|
+
email: <T_4 extends boolean>(loginId: string, email: string, URI?: string, token?: string, updateOptions?: {
|
|
2932
|
+
addToLoginIDs?: T_4;
|
|
2933
|
+
onMergeUseExisting?: T_4 extends true ? boolean : never;
|
|
4759
2934
|
templateOptions?: {
|
|
4760
2935
|
[x: string]: string;
|
|
4761
2936
|
};
|
|
@@ -4871,7 +3046,6 @@ export declare const getGlobalSdk: () => ((({
|
|
|
4871
3046
|
selectTenant: (tenantId: string, token?: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
|
|
4872
3047
|
logout: (token?: string) => Promise<_1.SdkResponse<never>>;
|
|
4873
3048
|
logoutAll: (token?: string) => Promise<_1.SdkResponse<never>>;
|
|
4874
|
-
logoutPrevious: (token?: string) => Promise<_1.SdkResponse<never>>;
|
|
4875
3049
|
me: (token?: string) => Promise<_1.SdkResponse<_1.UserResponse>>;
|
|
4876
3050
|
myTenants: (tenants: true | string[], token?: string) => Promise<_1.SdkResponse<{
|
|
4877
3051
|
tenants: {
|
|
@@ -5130,9 +3304,9 @@ export declare const getGlobalSdk: () => ((({
|
|
|
5130
3304
|
}>>;
|
|
5131
3305
|
};
|
|
5132
3306
|
update: {
|
|
5133
|
-
email: <
|
|
5134
|
-
addToLoginIDs?:
|
|
5135
|
-
onMergeUseExisting?:
|
|
3307
|
+
email: <T_5 extends boolean>(loginId: string, email: string, token?: string, updateOptions?: {
|
|
3308
|
+
addToLoginIDs?: T_5;
|
|
3309
|
+
onMergeUseExisting?: T_5 extends true ? boolean : never;
|
|
5136
3310
|
templateOptions?: {
|
|
5137
3311
|
[x: string]: string;
|
|
5138
3312
|
};
|
|
@@ -5140,27 +3314,27 @@ export declare const getGlobalSdk: () => ((({
|
|
|
5140
3314
|
maskedEmail: string;
|
|
5141
3315
|
}>>;
|
|
5142
3316
|
phone: {
|
|
5143
|
-
sms: <
|
|
5144
|
-
addToLoginIDs?:
|
|
5145
|
-
onMergeUseExisting?:
|
|
3317
|
+
sms: <T_1_3 extends boolean>(loginId: string, phone: string, token?: string, updateOptions?: {
|
|
3318
|
+
addToLoginIDs?: T_1_3;
|
|
3319
|
+
onMergeUseExisting?: T_1_3 extends true ? boolean : never;
|
|
5146
3320
|
templateOptions?: {
|
|
5147
3321
|
[x: string]: string;
|
|
5148
3322
|
};
|
|
5149
3323
|
}) => Promise<_1.SdkResponse<{
|
|
5150
3324
|
maskedPhone: string;
|
|
5151
3325
|
}>>;
|
|
5152
|
-
voice: <
|
|
5153
|
-
addToLoginIDs?:
|
|
5154
|
-
onMergeUseExisting?:
|
|
3326
|
+
voice: <T_1_4 extends boolean>(loginId: string, phone: string, token?: string, updateOptions?: {
|
|
3327
|
+
addToLoginIDs?: T_1_4;
|
|
3328
|
+
onMergeUseExisting?: T_1_4 extends true ? boolean : never;
|
|
5155
3329
|
templateOptions?: {
|
|
5156
3330
|
[x: string]: string;
|
|
5157
3331
|
};
|
|
5158
3332
|
}) => Promise<_1.SdkResponse<{
|
|
5159
3333
|
maskedPhone: string;
|
|
5160
3334
|
}>>;
|
|
5161
|
-
whatsapp: <
|
|
5162
|
-
addToLoginIDs?:
|
|
5163
|
-
onMergeUseExisting?:
|
|
3335
|
+
whatsapp: <T_1_5 extends boolean>(loginId: string, phone: string, token?: string, updateOptions?: {
|
|
3336
|
+
addToLoginIDs?: T_1_5;
|
|
3337
|
+
onMergeUseExisting?: T_1_5 extends true ? boolean : never;
|
|
5164
3338
|
templateOptions?: {
|
|
5165
3339
|
[x: string]: string;
|
|
5166
3340
|
};
|
|
@@ -5291,9 +3465,9 @@ export declare const getGlobalSdk: () => ((({
|
|
|
5291
3465
|
}>>;
|
|
5292
3466
|
};
|
|
5293
3467
|
update: {
|
|
5294
|
-
email: <
|
|
5295
|
-
addToLoginIDs?:
|
|
5296
|
-
onMergeUseExisting?:
|
|
3468
|
+
email: <T_2_1 extends boolean>(loginId: string, email: string, URI?: string, token?: string, updateOptions?: {
|
|
3469
|
+
addToLoginIDs?: T_2_1;
|
|
3470
|
+
onMergeUseExisting?: T_2_1 extends true ? boolean : never;
|
|
5297
3471
|
templateOptions?: {
|
|
5298
3472
|
[x: string]: string;
|
|
5299
3473
|
};
|
|
@@ -5301,27 +3475,27 @@ export declare const getGlobalSdk: () => ((({
|
|
|
5301
3475
|
maskedEmail: string;
|
|
5302
3476
|
}>>;
|
|
5303
3477
|
phone: {
|
|
5304
|
-
sms: <
|
|
5305
|
-
addToLoginIDs?:
|
|
5306
|
-
onMergeUseExisting?:
|
|
3478
|
+
sms: <T_3_3 extends boolean>(loginId: string, phone: string, URI?: string, token?: string, updateOptions?: {
|
|
3479
|
+
addToLoginIDs?: T_3_3;
|
|
3480
|
+
onMergeUseExisting?: T_3_3 extends true ? boolean : never;
|
|
5307
3481
|
templateOptions?: {
|
|
5308
3482
|
[x: string]: string;
|
|
5309
3483
|
};
|
|
5310
3484
|
}) => Promise<_1.SdkResponse<{
|
|
5311
3485
|
maskedPhone: string;
|
|
5312
3486
|
}>>;
|
|
5313
|
-
voice: <
|
|
5314
|
-
addToLoginIDs?:
|
|
5315
|
-
onMergeUseExisting?:
|
|
3487
|
+
voice: <T_3_4 extends boolean>(loginId: string, phone: string, URI?: string, token?: string, updateOptions?: {
|
|
3488
|
+
addToLoginIDs?: T_3_4;
|
|
3489
|
+
onMergeUseExisting?: T_3_4 extends true ? boolean : never;
|
|
5316
3490
|
templateOptions?: {
|
|
5317
3491
|
[x: string]: string;
|
|
5318
3492
|
};
|
|
5319
3493
|
}) => Promise<_1.SdkResponse<{
|
|
5320
3494
|
maskedPhone: string;
|
|
5321
3495
|
}>>;
|
|
5322
|
-
whatsapp: <
|
|
5323
|
-
addToLoginIDs?:
|
|
5324
|
-
onMergeUseExisting?:
|
|
3496
|
+
whatsapp: <T_3_5 extends boolean>(loginId: string, phone: string, URI?: string, token?: string, updateOptions?: {
|
|
3497
|
+
addToLoginIDs?: T_3_5;
|
|
3498
|
+
onMergeUseExisting?: T_3_5 extends true ? boolean : never;
|
|
5325
3499
|
templateOptions?: {
|
|
5326
3500
|
[x: string]: string;
|
|
5327
3501
|
};
|
|
@@ -5360,9 +3534,9 @@ export declare const getGlobalSdk: () => ((({
|
|
|
5360
3534
|
timeoutMs: number;
|
|
5361
3535
|
}) => Promise<_1.SdkResponse<_1.JWTResponse>>;
|
|
5362
3536
|
update: {
|
|
5363
|
-
email: <
|
|
5364
|
-
addToLoginIDs?:
|
|
5365
|
-
onMergeUseExisting?:
|
|
3537
|
+
email: <T_4_1 extends boolean>(loginId: string, email: string, URI?: string, token?: string, updateOptions?: {
|
|
3538
|
+
addToLoginIDs?: T_4_1;
|
|
3539
|
+
onMergeUseExisting?: T_4_1 extends true ? boolean : never;
|
|
5366
3540
|
templateOptions?: {
|
|
5367
3541
|
[x: string]: string;
|
|
5368
3542
|
};
|
|
@@ -5478,7 +3652,6 @@ export declare const getGlobalSdk: () => ((({
|
|
|
5478
3652
|
selectTenant: (tenantId: string, token?: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
|
|
5479
3653
|
logout: (token?: string) => Promise<_1.SdkResponse<never>>;
|
|
5480
3654
|
logoutAll: (token?: string) => Promise<_1.SdkResponse<never>>;
|
|
5481
|
-
logoutPrevious: (token?: string) => Promise<_1.SdkResponse<never>>;
|
|
5482
3655
|
me: (token?: string) => Promise<_1.SdkResponse<_1.UserResponse>>;
|
|
5483
3656
|
myTenants: (tenants: true | string[], token?: string) => Promise<_1.SdkResponse<{
|
|
5484
3657
|
tenants: {
|