@descope/react-sdk 3.3.5 → 3.3.7

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.
@@ -114,8 +114,8 @@ declare const createSdkWrapper: <P extends {
114
114
  }>>;
115
115
  };
116
116
  helpers: {
117
- create: (options: string) => Promise<string>;
118
- get: (options: string) => Promise<string>;
117
+ create: (options: string, abort?: AbortController) => Promise<string>;
118
+ get: (options: string, abort?: AbortController) => Promise<string>;
119
119
  isSupported: (requirePlatformAuthenticator?: boolean) => Promise<boolean>;
120
120
  conditional: (options: string, abort: AbortController) => Promise<string>;
121
121
  };
@@ -578,6 +578,9 @@ declare const createSdkWrapper: <P extends {
578
578
  signIn: (loginId: string, URI?: string, args_2?: _1.LoginOptions & {
579
579
  providerId?: string;
580
580
  }, token?: string) => Promise<_1.SdkResponse<_1.EnchantedLinkResponse>>;
581
+ signInWithPhone: (loginId: string, URI?: string, args_2?: _1.LoginOptions & {
582
+ providerId?: string;
583
+ }, token?: string) => Promise<_1.SdkResponse<_1.PhoneEnchantedLinkResponse>>;
581
584
  signUpOrIn: (loginId: string, URI?: string, args_2?: {
582
585
  customClaims?: Record<string, any>;
583
586
  templateId?: string;
@@ -588,6 +591,16 @@ declare const createSdkWrapper: <P extends {
588
591
  } & {
589
592
  providerId?: string;
590
593
  }) => Promise<_1.SdkResponse<_1.EnchantedLinkResponse>>;
594
+ signUpOrInWithPhone: (loginId: string, URI?: string, args_2?: {
595
+ customClaims?: Record<string, any>;
596
+ templateId?: string;
597
+ templateOptions?: {
598
+ [x: string]: string;
599
+ };
600
+ tenantId?: string;
601
+ } & {
602
+ providerId?: string;
603
+ }) => Promise<_1.SdkResponse<_1.PhoneEnchantedLinkResponse>>;
591
604
  signUp: (loginId: string, URI?: string, user?: {
592
605
  email?: string;
593
606
  name?: string;
@@ -605,6 +618,23 @@ declare const createSdkWrapper: <P extends {
605
618
  } & {
606
619
  providerId?: string;
607
620
  }) => Promise<_1.SdkResponse<_1.EnchantedLinkResponse>>;
621
+ signUpWithPhone: (loginId: string, URI?: string, user?: {
622
+ email?: string;
623
+ name?: string;
624
+ givenName?: string;
625
+ middleName?: string;
626
+ familyName?: string;
627
+ phone?: string;
628
+ }, args_3?: {
629
+ customClaims?: Record<string, any>;
630
+ templateId?: string;
631
+ templateOptions?: {
632
+ [x: string]: string;
633
+ };
634
+ tenantId?: string;
635
+ } & {
636
+ providerId?: string;
637
+ }) => Promise<_1.SdkResponse<_1.PhoneEnchantedLinkResponse>>;
608
638
  waitForSession: (pendingRef: string, config?: {
609
639
  pollingIntervalMs: number;
610
640
  timeoutMs: number;
@@ -620,6 +650,18 @@ declare const createSdkWrapper: <P extends {
620
650
  providerId?: string;
621
651
  mfa?: boolean;
622
652
  }) => Promise<_1.SdkResponse<_1.EnchantedLinkResponse>>;
653
+ phone: {
654
+ sms: <T_5 extends boolean>(loginId: string, phone: string, URI?: string, token?: string, updateOptions?: {
655
+ addToLoginIDs?: T_5;
656
+ onMergeUseExisting?: T_5 extends true ? boolean : never;
657
+ templateOptions?: {
658
+ [x: string]: string;
659
+ };
660
+ templateId?: string;
661
+ providerId?: string;
662
+ mfa?: boolean;
663
+ }) => Promise<_1.SdkResponse<_1.PhoneEnchantedLinkResponse>>;
664
+ };
623
665
  };
624
666
  };
625
667
  oauth: {
@@ -842,8 +884,8 @@ declare const createSdkWrapper: <P extends {
842
884
  }>>;
843
885
  };
844
886
  helpers: {
845
- create: (options: string) => Promise<string>;
846
- get: (options: string) => Promise<string>;
887
+ create: (options: string, abort?: AbortController) => Promise<string>;
888
+ get: (options: string, abort?: AbortController) => Promise<string>;
847
889
  isSupported: (requirePlatformAuthenticator?: boolean) => Promise<boolean>;
848
890
  conditional: (options: string, abort: AbortController) => Promise<string>;
849
891
  };
@@ -1014,9 +1056,9 @@ declare const createSdkWrapper: <P extends {
1014
1056
  }>>;
1015
1057
  };
1016
1058
  update: {
1017
- email: <T_5 extends boolean>(loginId: string, email: string, token?: string, updateOptions?: {
1018
- addToLoginIDs?: T_5;
1019
- onMergeUseExisting?: T_5 extends true ? boolean : never;
1059
+ email: <T_6 extends boolean>(loginId: string, email: string, token?: string, updateOptions?: {
1060
+ addToLoginIDs?: T_6;
1061
+ onMergeUseExisting?: T_6 extends true ? boolean : never;
1020
1062
  templateOptions?: {
1021
1063
  [x: string]: string;
1022
1064
  };
@@ -1306,6 +1348,9 @@ declare const createSdkWrapper: <P extends {
1306
1348
  signIn: (loginId: string, URI?: string, args_2?: _1.LoginOptions & {
1307
1349
  providerId?: string;
1308
1350
  }, token?: string) => Promise<_1.SdkResponse<_1.EnchantedLinkResponse>>;
1351
+ signInWithPhone: (loginId: string, URI?: string, args_2?: _1.LoginOptions & {
1352
+ providerId?: string;
1353
+ }, token?: string) => Promise<_1.SdkResponse<_1.PhoneEnchantedLinkResponse>>;
1309
1354
  signUpOrIn: (loginId: string, URI?: string, args_2?: {
1310
1355
  customClaims?: Record<string, any>;
1311
1356
  templateId?: string;
@@ -1316,6 +1361,16 @@ declare const createSdkWrapper: <P extends {
1316
1361
  } & {
1317
1362
  providerId?: string;
1318
1363
  }) => Promise<_1.SdkResponse<_1.EnchantedLinkResponse>>;
1364
+ signUpOrInWithPhone: (loginId: string, URI?: string, args_2?: {
1365
+ customClaims?: Record<string, any>;
1366
+ templateId?: string;
1367
+ templateOptions?: {
1368
+ [x: string]: string;
1369
+ };
1370
+ tenantId?: string;
1371
+ } & {
1372
+ providerId?: string;
1373
+ }) => Promise<_1.SdkResponse<_1.PhoneEnchantedLinkResponse>>;
1319
1374
  signUp: (loginId: string, URI?: string, user?: {
1320
1375
  email?: string;
1321
1376
  name?: string;
@@ -1333,6 +1388,23 @@ declare const createSdkWrapper: <P extends {
1333
1388
  } & {
1334
1389
  providerId?: string;
1335
1390
  }) => Promise<_1.SdkResponse<_1.EnchantedLinkResponse>>;
1391
+ signUpWithPhone: (loginId: string, URI?: string, user?: {
1392
+ email?: string;
1393
+ name?: string;
1394
+ givenName?: string;
1395
+ middleName?: string;
1396
+ familyName?: string;
1397
+ phone?: string;
1398
+ }, args_3?: {
1399
+ customClaims?: Record<string, any>;
1400
+ templateId?: string;
1401
+ templateOptions?: {
1402
+ [x: string]: string;
1403
+ };
1404
+ tenantId?: string;
1405
+ } & {
1406
+ providerId?: string;
1407
+ }) => Promise<_1.SdkResponse<_1.PhoneEnchantedLinkResponse>>;
1336
1408
  waitForSession: (pendingRef: string, config?: {
1337
1409
  pollingIntervalMs: number;
1338
1410
  timeoutMs: number;
@@ -1348,6 +1420,18 @@ declare const createSdkWrapper: <P extends {
1348
1420
  providerId?: string;
1349
1421
  mfa?: boolean;
1350
1422
  }) => Promise<_1.SdkResponse<_1.EnchantedLinkResponse>>;
1423
+ phone: {
1424
+ sms: <T_5_1 extends boolean>(loginId: string, phone: string, URI?: string, token?: string, updateOptions?: {
1425
+ addToLoginIDs?: T_5_1;
1426
+ onMergeUseExisting?: T_5_1 extends true ? boolean : never;
1427
+ templateOptions?: {
1428
+ [x: string]: string;
1429
+ };
1430
+ templateId?: string;
1431
+ providerId?: string;
1432
+ mfa?: boolean;
1433
+ }) => Promise<_1.SdkResponse<_1.PhoneEnchantedLinkResponse>>;
1434
+ };
1351
1435
  };
1352
1436
  };
1353
1437
  oauth: {
@@ -1570,8 +1654,8 @@ declare const createSdkWrapper: <P extends {
1570
1654
  }>>;
1571
1655
  };
1572
1656
  helpers: {
1573
- create: (options: string) => Promise<string>;
1574
- get: (options: string) => Promise<string>;
1657
+ create: (options: string, abort?: AbortController) => Promise<string>;
1658
+ get: (options: string, abort?: AbortController) => Promise<string>;
1575
1659
  isSupported: (requirePlatformAuthenticator?: boolean) => Promise<boolean>;
1576
1660
  conditional: (options: string, abort: AbortController) => Promise<string>;
1577
1661
  };
@@ -1742,9 +1826,9 @@ declare const createSdkWrapper: <P extends {
1742
1826
  }>>;
1743
1827
  };
1744
1828
  update: {
1745
- email: <T_6 extends boolean>(loginId: string, email: string, token?: string, updateOptions?: {
1746
- addToLoginIDs?: T_6;
1747
- onMergeUseExisting?: T_6 extends true ? boolean : never;
1829
+ email: <T_7 extends boolean>(loginId: string, email: string, token?: string, updateOptions?: {
1830
+ addToLoginIDs?: T_7;
1831
+ onMergeUseExisting?: T_7 extends true ? boolean : never;
1748
1832
  templateOptions?: {
1749
1833
  [x: string]: string;
1750
1834
  };
@@ -2034,6 +2118,9 @@ declare const createSdkWrapper: <P extends {
2034
2118
  signIn: (loginId: string, URI?: string, args_2?: _1.LoginOptions & {
2035
2119
  providerId?: string;
2036
2120
  }, token?: string) => Promise<_1.SdkResponse<_1.EnchantedLinkResponse>>;
2121
+ signInWithPhone: (loginId: string, URI?: string, args_2?: _1.LoginOptions & {
2122
+ providerId?: string;
2123
+ }, token?: string) => Promise<_1.SdkResponse<_1.PhoneEnchantedLinkResponse>>;
2037
2124
  signUpOrIn: (loginId: string, URI?: string, args_2?: {
2038
2125
  customClaims?: Record<string, any>;
2039
2126
  templateId?: string;
@@ -2044,6 +2131,16 @@ declare const createSdkWrapper: <P extends {
2044
2131
  } & {
2045
2132
  providerId?: string;
2046
2133
  }) => Promise<_1.SdkResponse<_1.EnchantedLinkResponse>>;
2134
+ signUpOrInWithPhone: (loginId: string, URI?: string, args_2?: {
2135
+ customClaims?: Record<string, any>;
2136
+ templateId?: string;
2137
+ templateOptions?: {
2138
+ [x: string]: string;
2139
+ };
2140
+ tenantId?: string;
2141
+ } & {
2142
+ providerId?: string;
2143
+ }) => Promise<_1.SdkResponse<_1.PhoneEnchantedLinkResponse>>;
2047
2144
  signUp: (loginId: string, URI?: string, user?: {
2048
2145
  email?: string;
2049
2146
  name?: string;
@@ -2061,6 +2158,23 @@ declare const createSdkWrapper: <P extends {
2061
2158
  } & {
2062
2159
  providerId?: string;
2063
2160
  }) => Promise<_1.SdkResponse<_1.EnchantedLinkResponse>>;
2161
+ signUpWithPhone: (loginId: string, URI?: string, user?: {
2162
+ email?: string;
2163
+ name?: string;
2164
+ givenName?: string;
2165
+ middleName?: string;
2166
+ familyName?: string;
2167
+ phone?: string;
2168
+ }, args_3?: {
2169
+ customClaims?: Record<string, any>;
2170
+ templateId?: string;
2171
+ templateOptions?: {
2172
+ [x: string]: string;
2173
+ };
2174
+ tenantId?: string;
2175
+ } & {
2176
+ providerId?: string;
2177
+ }) => Promise<_1.SdkResponse<_1.PhoneEnchantedLinkResponse>>;
2064
2178
  waitForSession: (pendingRef: string, config?: {
2065
2179
  pollingIntervalMs: number;
2066
2180
  timeoutMs: number;
@@ -2076,6 +2190,18 @@ declare const createSdkWrapper: <P extends {
2076
2190
  providerId?: string;
2077
2191
  mfa?: boolean;
2078
2192
  }) => Promise<_1.SdkResponse<_1.EnchantedLinkResponse>>;
2193
+ phone: {
2194
+ sms: <T_5_2 extends boolean>(loginId: string, phone: string, URI?: string, token?: string, updateOptions?: {
2195
+ addToLoginIDs?: T_5_2;
2196
+ onMergeUseExisting?: T_5_2 extends true ? boolean : never;
2197
+ templateOptions?: {
2198
+ [x: string]: string;
2199
+ };
2200
+ templateId?: string;
2201
+ providerId?: string;
2202
+ mfa?: boolean;
2203
+ }) => Promise<_1.SdkResponse<_1.PhoneEnchantedLinkResponse>>;
2204
+ };
2079
2205
  };
2080
2206
  };
2081
2207
  oauth: {
@@ -2313,8 +2439,8 @@ export declare const createTempSdk: () => (((({
2313
2439
  }>>;
2314
2440
  };
2315
2441
  helpers: {
2316
- create: (options: string) => Promise<string>;
2317
- get: (options: string) => Promise<string>;
2442
+ create: (options: string, abort?: AbortController) => Promise<string>;
2443
+ get: (options: string, abort?: AbortController) => Promise<string>;
2318
2444
  isSupported: (requirePlatformAuthenticator?: boolean) => Promise<boolean>;
2319
2445
  conditional: (options: string, abort: AbortController) => Promise<string>;
2320
2446
  };
@@ -2777,6 +2903,9 @@ export declare const createTempSdk: () => (((({
2777
2903
  signIn: (loginId: string, URI?: string, args_2?: _1.LoginOptions & {
2778
2904
  providerId?: string;
2779
2905
  }, token?: string) => Promise<_1.SdkResponse<_1.EnchantedLinkResponse>>;
2906
+ signInWithPhone: (loginId: string, URI?: string, args_2?: _1.LoginOptions & {
2907
+ providerId?: string;
2908
+ }, token?: string) => Promise<_1.SdkResponse<_1.PhoneEnchantedLinkResponse>>;
2780
2909
  signUpOrIn: (loginId: string, URI?: string, args_2?: {
2781
2910
  customClaims?: Record<string, any>;
2782
2911
  templateId?: string;
@@ -2787,6 +2916,16 @@ export declare const createTempSdk: () => (((({
2787
2916
  } & {
2788
2917
  providerId?: string;
2789
2918
  }) => Promise<_1.SdkResponse<_1.EnchantedLinkResponse>>;
2919
+ signUpOrInWithPhone: (loginId: string, URI?: string, args_2?: {
2920
+ customClaims?: Record<string, any>;
2921
+ templateId?: string;
2922
+ templateOptions?: {
2923
+ [x: string]: string;
2924
+ };
2925
+ tenantId?: string;
2926
+ } & {
2927
+ providerId?: string;
2928
+ }) => Promise<_1.SdkResponse<_1.PhoneEnchantedLinkResponse>>;
2790
2929
  signUp: (loginId: string, URI?: string, user?: {
2791
2930
  email?: string;
2792
2931
  name?: string;
@@ -2804,6 +2943,23 @@ export declare const createTempSdk: () => (((({
2804
2943
  } & {
2805
2944
  providerId?: string;
2806
2945
  }) => Promise<_1.SdkResponse<_1.EnchantedLinkResponse>>;
2946
+ signUpWithPhone: (loginId: string, URI?: string, user?: {
2947
+ email?: string;
2948
+ name?: string;
2949
+ givenName?: string;
2950
+ middleName?: string;
2951
+ familyName?: string;
2952
+ phone?: string;
2953
+ }, args_3?: {
2954
+ customClaims?: Record<string, any>;
2955
+ templateId?: string;
2956
+ templateOptions?: {
2957
+ [x: string]: string;
2958
+ };
2959
+ tenantId?: string;
2960
+ } & {
2961
+ providerId?: string;
2962
+ }) => Promise<_1.SdkResponse<_1.PhoneEnchantedLinkResponse>>;
2807
2963
  waitForSession: (pendingRef: string, config?: {
2808
2964
  pollingIntervalMs: number;
2809
2965
  timeoutMs: number;
@@ -2819,6 +2975,18 @@ export declare const createTempSdk: () => (((({
2819
2975
  providerId?: string;
2820
2976
  mfa?: boolean;
2821
2977
  }) => Promise<_1.SdkResponse<_1.EnchantedLinkResponse>>;
2978
+ phone: {
2979
+ sms: <T_5 extends boolean>(loginId: string, phone: string, URI?: string, token?: string, updateOptions?: {
2980
+ addToLoginIDs?: T_5;
2981
+ onMergeUseExisting?: T_5 extends true ? boolean : never;
2982
+ templateOptions?: {
2983
+ [x: string]: string;
2984
+ };
2985
+ templateId?: string;
2986
+ providerId?: string;
2987
+ mfa?: boolean;
2988
+ }) => Promise<_1.SdkResponse<_1.PhoneEnchantedLinkResponse>>;
2989
+ };
2822
2990
  };
2823
2991
  };
2824
2992
  oauth: {
@@ -3041,8 +3209,8 @@ export declare const createTempSdk: () => (((({
3041
3209
  }>>;
3042
3210
  };
3043
3211
  helpers: {
3044
- create: (options: string) => Promise<string>;
3045
- get: (options: string) => Promise<string>;
3212
+ create: (options: string, abort?: AbortController) => Promise<string>;
3213
+ get: (options: string, abort?: AbortController) => Promise<string>;
3046
3214
  isSupported: (requirePlatformAuthenticator?: boolean) => Promise<boolean>;
3047
3215
  conditional: (options: string, abort: AbortController) => Promise<string>;
3048
3216
  };
@@ -3213,9 +3381,9 @@ export declare const createTempSdk: () => (((({
3213
3381
  }>>;
3214
3382
  };
3215
3383
  update: {
3216
- email: <T_5 extends boolean>(loginId: string, email: string, token?: string, updateOptions?: {
3217
- addToLoginIDs?: T_5;
3218
- onMergeUseExisting?: T_5 extends true ? boolean : never;
3384
+ email: <T_6 extends boolean>(loginId: string, email: string, token?: string, updateOptions?: {
3385
+ addToLoginIDs?: T_6;
3386
+ onMergeUseExisting?: T_6 extends true ? boolean : never;
3219
3387
  templateOptions?: {
3220
3388
  [x: string]: string;
3221
3389
  };
@@ -3505,6 +3673,9 @@ export declare const createTempSdk: () => (((({
3505
3673
  signIn: (loginId: string, URI?: string, args_2?: _1.LoginOptions & {
3506
3674
  providerId?: string;
3507
3675
  }, token?: string) => Promise<_1.SdkResponse<_1.EnchantedLinkResponse>>;
3676
+ signInWithPhone: (loginId: string, URI?: string, args_2?: _1.LoginOptions & {
3677
+ providerId?: string;
3678
+ }, token?: string) => Promise<_1.SdkResponse<_1.PhoneEnchantedLinkResponse>>;
3508
3679
  signUpOrIn: (loginId: string, URI?: string, args_2?: {
3509
3680
  customClaims?: Record<string, any>;
3510
3681
  templateId?: string;
@@ -3515,6 +3686,16 @@ export declare const createTempSdk: () => (((({
3515
3686
  } & {
3516
3687
  providerId?: string;
3517
3688
  }) => Promise<_1.SdkResponse<_1.EnchantedLinkResponse>>;
3689
+ signUpOrInWithPhone: (loginId: string, URI?: string, args_2?: {
3690
+ customClaims?: Record<string, any>;
3691
+ templateId?: string;
3692
+ templateOptions?: {
3693
+ [x: string]: string;
3694
+ };
3695
+ tenantId?: string;
3696
+ } & {
3697
+ providerId?: string;
3698
+ }) => Promise<_1.SdkResponse<_1.PhoneEnchantedLinkResponse>>;
3518
3699
  signUp: (loginId: string, URI?: string, user?: {
3519
3700
  email?: string;
3520
3701
  name?: string;
@@ -3532,6 +3713,23 @@ export declare const createTempSdk: () => (((({
3532
3713
  } & {
3533
3714
  providerId?: string;
3534
3715
  }) => Promise<_1.SdkResponse<_1.EnchantedLinkResponse>>;
3716
+ signUpWithPhone: (loginId: string, URI?: string, user?: {
3717
+ email?: string;
3718
+ name?: string;
3719
+ givenName?: string;
3720
+ middleName?: string;
3721
+ familyName?: string;
3722
+ phone?: string;
3723
+ }, args_3?: {
3724
+ customClaims?: Record<string, any>;
3725
+ templateId?: string;
3726
+ templateOptions?: {
3727
+ [x: string]: string;
3728
+ };
3729
+ tenantId?: string;
3730
+ } & {
3731
+ providerId?: string;
3732
+ }) => Promise<_1.SdkResponse<_1.PhoneEnchantedLinkResponse>>;
3535
3733
  waitForSession: (pendingRef: string, config?: {
3536
3734
  pollingIntervalMs: number;
3537
3735
  timeoutMs: number;
@@ -3547,6 +3745,18 @@ export declare const createTempSdk: () => (((({
3547
3745
  providerId?: string;
3548
3746
  mfa?: boolean;
3549
3747
  }) => Promise<_1.SdkResponse<_1.EnchantedLinkResponse>>;
3748
+ phone: {
3749
+ sms: <T_5_1 extends boolean>(loginId: string, phone: string, URI?: string, token?: string, updateOptions?: {
3750
+ addToLoginIDs?: T_5_1;
3751
+ onMergeUseExisting?: T_5_1 extends true ? boolean : never;
3752
+ templateOptions?: {
3753
+ [x: string]: string;
3754
+ };
3755
+ templateId?: string;
3756
+ providerId?: string;
3757
+ mfa?: boolean;
3758
+ }) => Promise<_1.SdkResponse<_1.PhoneEnchantedLinkResponse>>;
3759
+ };
3550
3760
  };
3551
3761
  };
3552
3762
  oauth: {
@@ -3769,8 +3979,8 @@ export declare const createTempSdk: () => (((({
3769
3979
  }>>;
3770
3980
  };
3771
3981
  helpers: {
3772
- create: (options: string) => Promise<string>;
3773
- get: (options: string) => Promise<string>;
3982
+ create: (options: string, abort?: AbortController) => Promise<string>;
3983
+ get: (options: string, abort?: AbortController) => Promise<string>;
3774
3984
  isSupported: (requirePlatformAuthenticator?: boolean) => Promise<boolean>;
3775
3985
  conditional: (options: string, abort: AbortController) => Promise<string>;
3776
3986
  };
@@ -3941,9 +4151,9 @@ export declare const createTempSdk: () => (((({
3941
4151
  }>>;
3942
4152
  };
3943
4153
  update: {
3944
- email: <T_6 extends boolean>(loginId: string, email: string, token?: string, updateOptions?: {
3945
- addToLoginIDs?: T_6;
3946
- onMergeUseExisting?: T_6 extends true ? boolean : never;
4154
+ email: <T_7 extends boolean>(loginId: string, email: string, token?: string, updateOptions?: {
4155
+ addToLoginIDs?: T_7;
4156
+ onMergeUseExisting?: T_7 extends true ? boolean : never;
3947
4157
  templateOptions?: {
3948
4158
  [x: string]: string;
3949
4159
  };
@@ -4233,6 +4443,9 @@ export declare const createTempSdk: () => (((({
4233
4443
  signIn: (loginId: string, URI?: string, args_2?: _1.LoginOptions & {
4234
4444
  providerId?: string;
4235
4445
  }, token?: string) => Promise<_1.SdkResponse<_1.EnchantedLinkResponse>>;
4446
+ signInWithPhone: (loginId: string, URI?: string, args_2?: _1.LoginOptions & {
4447
+ providerId?: string;
4448
+ }, token?: string) => Promise<_1.SdkResponse<_1.PhoneEnchantedLinkResponse>>;
4236
4449
  signUpOrIn: (loginId: string, URI?: string, args_2?: {
4237
4450
  customClaims?: Record<string, any>;
4238
4451
  templateId?: string;
@@ -4243,6 +4456,16 @@ export declare const createTempSdk: () => (((({
4243
4456
  } & {
4244
4457
  providerId?: string;
4245
4458
  }) => Promise<_1.SdkResponse<_1.EnchantedLinkResponse>>;
4459
+ signUpOrInWithPhone: (loginId: string, URI?: string, args_2?: {
4460
+ customClaims?: Record<string, any>;
4461
+ templateId?: string;
4462
+ templateOptions?: {
4463
+ [x: string]: string;
4464
+ };
4465
+ tenantId?: string;
4466
+ } & {
4467
+ providerId?: string;
4468
+ }) => Promise<_1.SdkResponse<_1.PhoneEnchantedLinkResponse>>;
4246
4469
  signUp: (loginId: string, URI?: string, user?: {
4247
4470
  email?: string;
4248
4471
  name?: string;
@@ -4260,6 +4483,23 @@ export declare const createTempSdk: () => (((({
4260
4483
  } & {
4261
4484
  providerId?: string;
4262
4485
  }) => Promise<_1.SdkResponse<_1.EnchantedLinkResponse>>;
4486
+ signUpWithPhone: (loginId: string, URI?: string, user?: {
4487
+ email?: string;
4488
+ name?: string;
4489
+ givenName?: string;
4490
+ middleName?: string;
4491
+ familyName?: string;
4492
+ phone?: string;
4493
+ }, args_3?: {
4494
+ customClaims?: Record<string, any>;
4495
+ templateId?: string;
4496
+ templateOptions?: {
4497
+ [x: string]: string;
4498
+ };
4499
+ tenantId?: string;
4500
+ } & {
4501
+ providerId?: string;
4502
+ }) => Promise<_1.SdkResponse<_1.PhoneEnchantedLinkResponse>>;
4263
4503
  waitForSession: (pendingRef: string, config?: {
4264
4504
  pollingIntervalMs: number;
4265
4505
  timeoutMs: number;
@@ -4275,6 +4515,18 @@ export declare const createTempSdk: () => (((({
4275
4515
  providerId?: string;
4276
4516
  mfa?: boolean;
4277
4517
  }) => Promise<_1.SdkResponse<_1.EnchantedLinkResponse>>;
4518
+ phone: {
4519
+ sms: <T_5_2 extends boolean>(loginId: string, phone: string, URI?: string, token?: string, updateOptions?: {
4520
+ addToLoginIDs?: T_5_2;
4521
+ onMergeUseExisting?: T_5_2 extends true ? boolean : never;
4522
+ templateOptions?: {
4523
+ [x: string]: string;
4524
+ };
4525
+ templateId?: string;
4526
+ providerId?: string;
4527
+ mfa?: boolean;
4528
+ }) => Promise<_1.SdkResponse<_1.PhoneEnchantedLinkResponse>>;
4529
+ };
4278
4530
  };
4279
4531
  };
4280
4532
  oauth: {
@@ -4520,8 +4772,8 @@ export declare const getGlobalSdk: () => (((({
4520
4772
  }>>;
4521
4773
  };
4522
4774
  helpers: {
4523
- create: (options: string) => Promise<string>;
4524
- get: (options: string) => Promise<string>;
4775
+ create: (options: string, abort?: AbortController) => Promise<string>;
4776
+ get: (options: string, abort?: AbortController) => Promise<string>;
4525
4777
  isSupported: (requirePlatformAuthenticator?: boolean) => Promise<boolean>;
4526
4778
  conditional: (options: string, abort: AbortController) => Promise<string>;
4527
4779
  };
@@ -4984,6 +5236,9 @@ export declare const getGlobalSdk: () => (((({
4984
5236
  signIn: (loginId: string, URI?: string, args_2?: _1.LoginOptions & {
4985
5237
  providerId?: string;
4986
5238
  }, token?: string) => Promise<_1.SdkResponse<_1.EnchantedLinkResponse>>;
5239
+ signInWithPhone: (loginId: string, URI?: string, args_2?: _1.LoginOptions & {
5240
+ providerId?: string;
5241
+ }, token?: string) => Promise<_1.SdkResponse<_1.PhoneEnchantedLinkResponse>>;
4987
5242
  signUpOrIn: (loginId: string, URI?: string, args_2?: {
4988
5243
  customClaims?: Record<string, any>;
4989
5244
  templateId?: string;
@@ -4994,6 +5249,16 @@ export declare const getGlobalSdk: () => (((({
4994
5249
  } & {
4995
5250
  providerId?: string;
4996
5251
  }) => Promise<_1.SdkResponse<_1.EnchantedLinkResponse>>;
5252
+ signUpOrInWithPhone: (loginId: string, URI?: string, args_2?: {
5253
+ customClaims?: Record<string, any>;
5254
+ templateId?: string;
5255
+ templateOptions?: {
5256
+ [x: string]: string;
5257
+ };
5258
+ tenantId?: string;
5259
+ } & {
5260
+ providerId?: string;
5261
+ }) => Promise<_1.SdkResponse<_1.PhoneEnchantedLinkResponse>>;
4997
5262
  signUp: (loginId: string, URI?: string, user?: {
4998
5263
  email?: string;
4999
5264
  name?: string;
@@ -5011,6 +5276,23 @@ export declare const getGlobalSdk: () => (((({
5011
5276
  } & {
5012
5277
  providerId?: string;
5013
5278
  }) => Promise<_1.SdkResponse<_1.EnchantedLinkResponse>>;
5279
+ signUpWithPhone: (loginId: string, URI?: string, user?: {
5280
+ email?: string;
5281
+ name?: string;
5282
+ givenName?: string;
5283
+ middleName?: string;
5284
+ familyName?: string;
5285
+ phone?: string;
5286
+ }, args_3?: {
5287
+ customClaims?: Record<string, any>;
5288
+ templateId?: string;
5289
+ templateOptions?: {
5290
+ [x: string]: string;
5291
+ };
5292
+ tenantId?: string;
5293
+ } & {
5294
+ providerId?: string;
5295
+ }) => Promise<_1.SdkResponse<_1.PhoneEnchantedLinkResponse>>;
5014
5296
  waitForSession: (pendingRef: string, config?: {
5015
5297
  pollingIntervalMs: number;
5016
5298
  timeoutMs: number;
@@ -5026,6 +5308,18 @@ export declare const getGlobalSdk: () => (((({
5026
5308
  providerId?: string;
5027
5309
  mfa?: boolean;
5028
5310
  }) => Promise<_1.SdkResponse<_1.EnchantedLinkResponse>>;
5311
+ phone: {
5312
+ sms: <T_5 extends boolean>(loginId: string, phone: string, URI?: string, token?: string, updateOptions?: {
5313
+ addToLoginIDs?: T_5;
5314
+ onMergeUseExisting?: T_5 extends true ? boolean : never;
5315
+ templateOptions?: {
5316
+ [x: string]: string;
5317
+ };
5318
+ templateId?: string;
5319
+ providerId?: string;
5320
+ mfa?: boolean;
5321
+ }) => Promise<_1.SdkResponse<_1.PhoneEnchantedLinkResponse>>;
5322
+ };
5029
5323
  };
5030
5324
  };
5031
5325
  oauth: {
@@ -5248,8 +5542,8 @@ export declare const getGlobalSdk: () => (((({
5248
5542
  }>>;
5249
5543
  };
5250
5544
  helpers: {
5251
- create: (options: string) => Promise<string>;
5252
- get: (options: string) => Promise<string>;
5545
+ create: (options: string, abort?: AbortController) => Promise<string>;
5546
+ get: (options: string, abort?: AbortController) => Promise<string>;
5253
5547
  isSupported: (requirePlatformAuthenticator?: boolean) => Promise<boolean>;
5254
5548
  conditional: (options: string, abort: AbortController) => Promise<string>;
5255
5549
  };
@@ -5420,9 +5714,9 @@ export declare const getGlobalSdk: () => (((({
5420
5714
  }>>;
5421
5715
  };
5422
5716
  update: {
5423
- email: <T_5 extends boolean>(loginId: string, email: string, token?: string, updateOptions?: {
5424
- addToLoginIDs?: T_5;
5425
- onMergeUseExisting?: T_5 extends true ? boolean : never;
5717
+ email: <T_6 extends boolean>(loginId: string, email: string, token?: string, updateOptions?: {
5718
+ addToLoginIDs?: T_6;
5719
+ onMergeUseExisting?: T_6 extends true ? boolean : never;
5426
5720
  templateOptions?: {
5427
5721
  [x: string]: string;
5428
5722
  };
@@ -5712,6 +6006,9 @@ export declare const getGlobalSdk: () => (((({
5712
6006
  signIn: (loginId: string, URI?: string, args_2?: _1.LoginOptions & {
5713
6007
  providerId?: string;
5714
6008
  }, token?: string) => Promise<_1.SdkResponse<_1.EnchantedLinkResponse>>;
6009
+ signInWithPhone: (loginId: string, URI?: string, args_2?: _1.LoginOptions & {
6010
+ providerId?: string;
6011
+ }, token?: string) => Promise<_1.SdkResponse<_1.PhoneEnchantedLinkResponse>>;
5715
6012
  signUpOrIn: (loginId: string, URI?: string, args_2?: {
5716
6013
  customClaims?: Record<string, any>;
5717
6014
  templateId?: string;
@@ -5722,6 +6019,16 @@ export declare const getGlobalSdk: () => (((({
5722
6019
  } & {
5723
6020
  providerId?: string;
5724
6021
  }) => Promise<_1.SdkResponse<_1.EnchantedLinkResponse>>;
6022
+ signUpOrInWithPhone: (loginId: string, URI?: string, args_2?: {
6023
+ customClaims?: Record<string, any>;
6024
+ templateId?: string;
6025
+ templateOptions?: {
6026
+ [x: string]: string;
6027
+ };
6028
+ tenantId?: string;
6029
+ } & {
6030
+ providerId?: string;
6031
+ }) => Promise<_1.SdkResponse<_1.PhoneEnchantedLinkResponse>>;
5725
6032
  signUp: (loginId: string, URI?: string, user?: {
5726
6033
  email?: string;
5727
6034
  name?: string;
@@ -5739,6 +6046,23 @@ export declare const getGlobalSdk: () => (((({
5739
6046
  } & {
5740
6047
  providerId?: string;
5741
6048
  }) => Promise<_1.SdkResponse<_1.EnchantedLinkResponse>>;
6049
+ signUpWithPhone: (loginId: string, URI?: string, user?: {
6050
+ email?: string;
6051
+ name?: string;
6052
+ givenName?: string;
6053
+ middleName?: string;
6054
+ familyName?: string;
6055
+ phone?: string;
6056
+ }, args_3?: {
6057
+ customClaims?: Record<string, any>;
6058
+ templateId?: string;
6059
+ templateOptions?: {
6060
+ [x: string]: string;
6061
+ };
6062
+ tenantId?: string;
6063
+ } & {
6064
+ providerId?: string;
6065
+ }) => Promise<_1.SdkResponse<_1.PhoneEnchantedLinkResponse>>;
5742
6066
  waitForSession: (pendingRef: string, config?: {
5743
6067
  pollingIntervalMs: number;
5744
6068
  timeoutMs: number;
@@ -5754,6 +6078,18 @@ export declare const getGlobalSdk: () => (((({
5754
6078
  providerId?: string;
5755
6079
  mfa?: boolean;
5756
6080
  }) => Promise<_1.SdkResponse<_1.EnchantedLinkResponse>>;
6081
+ phone: {
6082
+ sms: <T_5_1 extends boolean>(loginId: string, phone: string, URI?: string, token?: string, updateOptions?: {
6083
+ addToLoginIDs?: T_5_1;
6084
+ onMergeUseExisting?: T_5_1 extends true ? boolean : never;
6085
+ templateOptions?: {
6086
+ [x: string]: string;
6087
+ };
6088
+ templateId?: string;
6089
+ providerId?: string;
6090
+ mfa?: boolean;
6091
+ }) => Promise<_1.SdkResponse<_1.PhoneEnchantedLinkResponse>>;
6092
+ };
5757
6093
  };
5758
6094
  };
5759
6095
  oauth: {
@@ -5976,8 +6312,8 @@ export declare const getGlobalSdk: () => (((({
5976
6312
  }>>;
5977
6313
  };
5978
6314
  helpers: {
5979
- create: (options: string) => Promise<string>;
5980
- get: (options: string) => Promise<string>;
6315
+ create: (options: string, abort?: AbortController) => Promise<string>;
6316
+ get: (options: string, abort?: AbortController) => Promise<string>;
5981
6317
  isSupported: (requirePlatformAuthenticator?: boolean) => Promise<boolean>;
5982
6318
  conditional: (options: string, abort: AbortController) => Promise<string>;
5983
6319
  };
@@ -6148,9 +6484,9 @@ export declare const getGlobalSdk: () => (((({
6148
6484
  }>>;
6149
6485
  };
6150
6486
  update: {
6151
- email: <T_6 extends boolean>(loginId: string, email: string, token?: string, updateOptions?: {
6152
- addToLoginIDs?: T_6;
6153
- onMergeUseExisting?: T_6 extends true ? boolean : never;
6487
+ email: <T_7 extends boolean>(loginId: string, email: string, token?: string, updateOptions?: {
6488
+ addToLoginIDs?: T_7;
6489
+ onMergeUseExisting?: T_7 extends true ? boolean : never;
6154
6490
  templateOptions?: {
6155
6491
  [x: string]: string;
6156
6492
  };
@@ -6440,6 +6776,9 @@ export declare const getGlobalSdk: () => (((({
6440
6776
  signIn: (loginId: string, URI?: string, args_2?: _1.LoginOptions & {
6441
6777
  providerId?: string;
6442
6778
  }, token?: string) => Promise<_1.SdkResponse<_1.EnchantedLinkResponse>>;
6779
+ signInWithPhone: (loginId: string, URI?: string, args_2?: _1.LoginOptions & {
6780
+ providerId?: string;
6781
+ }, token?: string) => Promise<_1.SdkResponse<_1.PhoneEnchantedLinkResponse>>;
6443
6782
  signUpOrIn: (loginId: string, URI?: string, args_2?: {
6444
6783
  customClaims?: Record<string, any>;
6445
6784
  templateId?: string;
@@ -6450,6 +6789,16 @@ export declare const getGlobalSdk: () => (((({
6450
6789
  } & {
6451
6790
  providerId?: string;
6452
6791
  }) => Promise<_1.SdkResponse<_1.EnchantedLinkResponse>>;
6792
+ signUpOrInWithPhone: (loginId: string, URI?: string, args_2?: {
6793
+ customClaims?: Record<string, any>;
6794
+ templateId?: string;
6795
+ templateOptions?: {
6796
+ [x: string]: string;
6797
+ };
6798
+ tenantId?: string;
6799
+ } & {
6800
+ providerId?: string;
6801
+ }) => Promise<_1.SdkResponse<_1.PhoneEnchantedLinkResponse>>;
6453
6802
  signUp: (loginId: string, URI?: string, user?: {
6454
6803
  email?: string;
6455
6804
  name?: string;
@@ -6467,6 +6816,23 @@ export declare const getGlobalSdk: () => (((({
6467
6816
  } & {
6468
6817
  providerId?: string;
6469
6818
  }) => Promise<_1.SdkResponse<_1.EnchantedLinkResponse>>;
6819
+ signUpWithPhone: (loginId: string, URI?: string, user?: {
6820
+ email?: string;
6821
+ name?: string;
6822
+ givenName?: string;
6823
+ middleName?: string;
6824
+ familyName?: string;
6825
+ phone?: string;
6826
+ }, args_3?: {
6827
+ customClaims?: Record<string, any>;
6828
+ templateId?: string;
6829
+ templateOptions?: {
6830
+ [x: string]: string;
6831
+ };
6832
+ tenantId?: string;
6833
+ } & {
6834
+ providerId?: string;
6835
+ }) => Promise<_1.SdkResponse<_1.PhoneEnchantedLinkResponse>>;
6470
6836
  waitForSession: (pendingRef: string, config?: {
6471
6837
  pollingIntervalMs: number;
6472
6838
  timeoutMs: number;
@@ -6482,6 +6848,18 @@ export declare const getGlobalSdk: () => (((({
6482
6848
  providerId?: string;
6483
6849
  mfa?: boolean;
6484
6850
  }) => Promise<_1.SdkResponse<_1.EnchantedLinkResponse>>;
6851
+ phone: {
6852
+ sms: <T_5_2 extends boolean>(loginId: string, phone: string, URI?: string, token?: string, updateOptions?: {
6853
+ addToLoginIDs?: T_5_2;
6854
+ onMergeUseExisting?: T_5_2 extends true ? boolean : never;
6855
+ templateOptions?: {
6856
+ [x: string]: string;
6857
+ };
6858
+ templateId?: string;
6859
+ providerId?: string;
6860
+ mfa?: boolean;
6861
+ }) => Promise<_1.SdkResponse<_1.PhoneEnchantedLinkResponse>>;
6862
+ };
6485
6863
  };
6486
6864
  };
6487
6865
  oauth: {