@descope/react-sdk 2.25.2 → 2.25.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/constants.js +1 -1
- package/dist/esm/constants.js +1 -1
- package/dist/index.d.ts +255 -36
- package/dist/index.umd.js +2 -2
- package/dist/index.umd.js.map +1 -1
- package/dist/types/sdk.d.ts +767 -110
- package/package.json +12 -12
package/dist/cjs/constants.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const e="undefined"!=typeof window;exports.IS_BROWSER=e,exports.baseHeaders={"x-descope-sdk-name":"react","x-descope-sdk-version":"2.25.
|
|
1
|
+
"use strict";const e="undefined"!=typeof window;exports.IS_BROWSER=e,exports.baseHeaders={"x-descope-sdk-name":"react","x-descope-sdk-version":"2.25.4"};
|
|
2
2
|
//# sourceMappingURL=constants.js.map
|
package/dist/esm/constants.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const e={"x-descope-sdk-name":"react","x-descope-sdk-version":"2.25.
|
|
1
|
+
const e={"x-descope-sdk-name":"react","x-descope-sdk-version":"2.25.4"},d="undefined"!=typeof window;export{d as IS_BROWSER,e as baseHeaders};
|
|
2
2
|
//# sourceMappingURL=constants.js.map
|
package/dist/index.d.ts
CHANGED
|
@@ -203,6 +203,7 @@ declare const createSdkWrapper: <P extends {
|
|
|
203
203
|
sms: (loginId: string, code: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
|
|
204
204
|
voice: (loginId: string, code: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
|
|
205
205
|
whatsapp: (loginId: string, code: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
|
|
206
|
+
im: (loginId: string, code: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
|
|
206
207
|
email: (loginId: string, code: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
|
|
207
208
|
};
|
|
208
209
|
signIn: {
|
|
@@ -215,6 +216,9 @@ declare const createSdkWrapper: <P extends {
|
|
|
215
216
|
whatsapp: (loginId: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
|
|
216
217
|
maskedPhone: string;
|
|
217
218
|
}>>;
|
|
219
|
+
im: (loginId: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
|
|
220
|
+
maskedPhone: string;
|
|
221
|
+
}>>;
|
|
218
222
|
email: (loginId: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
|
|
219
223
|
maskedEmail: string;
|
|
220
224
|
}>>;
|
|
@@ -268,6 +272,22 @@ declare const createSdkWrapper: <P extends {
|
|
|
268
272
|
}) => Promise<_1.SdkResponse<{
|
|
269
273
|
maskedPhone: string;
|
|
270
274
|
}>>;
|
|
275
|
+
im: (loginId: string, user?: {
|
|
276
|
+
email?: string;
|
|
277
|
+
name?: string;
|
|
278
|
+
givenName?: string;
|
|
279
|
+
middleName?: string;
|
|
280
|
+
familyName?: string;
|
|
281
|
+
phone?: string;
|
|
282
|
+
}, signUpOptions?: {
|
|
283
|
+
customClaims?: Record<string, any>;
|
|
284
|
+
templateId?: string;
|
|
285
|
+
templateOptions?: {
|
|
286
|
+
[x: string]: string;
|
|
287
|
+
};
|
|
288
|
+
}) => Promise<_1.SdkResponse<{
|
|
289
|
+
maskedPhone: string;
|
|
290
|
+
}>>;
|
|
271
291
|
email: (loginId: string, user?: {
|
|
272
292
|
email?: string;
|
|
273
293
|
name?: string;
|
|
@@ -295,6 +315,9 @@ declare const createSdkWrapper: <P extends {
|
|
|
295
315
|
whatsapp: (loginId: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
|
|
296
316
|
maskedPhone: string;
|
|
297
317
|
}>>;
|
|
318
|
+
im: (loginId: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
|
|
319
|
+
maskedPhone: string;
|
|
320
|
+
}>>;
|
|
298
321
|
email: (loginId: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
|
|
299
322
|
maskedEmail: string;
|
|
300
323
|
}>>;
|
|
@@ -345,6 +368,17 @@ declare const createSdkWrapper: <P extends {
|
|
|
345
368
|
}) => Promise<_1.SdkResponse<{
|
|
346
369
|
maskedPhone: string;
|
|
347
370
|
}>>;
|
|
371
|
+
im: <T_1_3 extends boolean>(loginId: string, phone: string, token?: string, updateOptions?: {
|
|
372
|
+
addToLoginIDs?: T_1_3;
|
|
373
|
+
onMergeUseExisting?: T_1_3 extends true ? boolean : never;
|
|
374
|
+
templateOptions?: {
|
|
375
|
+
[x: string]: string;
|
|
376
|
+
};
|
|
377
|
+
templateId?: string;
|
|
378
|
+
providerId?: string;
|
|
379
|
+
}) => Promise<_1.SdkResponse<{
|
|
380
|
+
maskedPhone: string;
|
|
381
|
+
}>>;
|
|
348
382
|
};
|
|
349
383
|
};
|
|
350
384
|
};
|
|
@@ -360,6 +394,9 @@ declare const createSdkWrapper: <P extends {
|
|
|
360
394
|
whatsapp: (loginId: string, URI: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
|
|
361
395
|
maskedPhone: string;
|
|
362
396
|
}>>;
|
|
397
|
+
im: (loginId: string, URI: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
|
|
398
|
+
maskedPhone: string;
|
|
399
|
+
}>>;
|
|
363
400
|
email: (loginId: string, URI: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
|
|
364
401
|
maskedEmail: string;
|
|
365
402
|
}>>;
|
|
@@ -413,6 +450,22 @@ declare const createSdkWrapper: <P extends {
|
|
|
413
450
|
}) => Promise<_1.SdkResponse<{
|
|
414
451
|
maskedPhone: string;
|
|
415
452
|
}>>;
|
|
453
|
+
im: (loginId: string, URI: string, user?: {
|
|
454
|
+
email?: string;
|
|
455
|
+
name?: string;
|
|
456
|
+
givenName?: string;
|
|
457
|
+
middleName?: string;
|
|
458
|
+
familyName?: string;
|
|
459
|
+
phone?: string;
|
|
460
|
+
}, signUpOptions?: {
|
|
461
|
+
customClaims?: Record<string, any>;
|
|
462
|
+
templateId?: string;
|
|
463
|
+
templateOptions?: {
|
|
464
|
+
[x: string]: string;
|
|
465
|
+
};
|
|
466
|
+
}) => Promise<_1.SdkResponse<{
|
|
467
|
+
maskedPhone: string;
|
|
468
|
+
}>>;
|
|
416
469
|
email: (loginId: string, URI: string, user?: {
|
|
417
470
|
email?: string;
|
|
418
471
|
name?: string;
|
|
@@ -458,6 +511,15 @@ declare const createSdkWrapper: <P extends {
|
|
|
458
511
|
}) => Promise<_1.SdkResponse<{
|
|
459
512
|
maskedPhone: string;
|
|
460
513
|
}>>;
|
|
514
|
+
im: (loginId: string, URI?: string, signUpOptions?: {
|
|
515
|
+
customClaims?: Record<string, any>;
|
|
516
|
+
templateId?: string;
|
|
517
|
+
templateOptions?: {
|
|
518
|
+
[x: string]: string;
|
|
519
|
+
};
|
|
520
|
+
}) => Promise<_1.SdkResponse<{
|
|
521
|
+
maskedPhone: string;
|
|
522
|
+
}>>;
|
|
461
523
|
email: (loginId: string, URI?: string, signUpOptions?: {
|
|
462
524
|
customClaims?: Record<string, any>;
|
|
463
525
|
templateId?: string;
|
|
@@ -514,6 +576,17 @@ declare const createSdkWrapper: <P extends {
|
|
|
514
576
|
}) => Promise<_1.SdkResponse<{
|
|
515
577
|
maskedPhone: string;
|
|
516
578
|
}>>;
|
|
579
|
+
im: <T_3_3 extends boolean>(loginId: string, phone: string, URI?: string, token?: string, updateOptions?: {
|
|
580
|
+
addToLoginIDs?: T_3_3;
|
|
581
|
+
onMergeUseExisting?: T_3_3 extends true ? boolean : never;
|
|
582
|
+
templateOptions?: {
|
|
583
|
+
[x: string]: string;
|
|
584
|
+
};
|
|
585
|
+
templateId?: string;
|
|
586
|
+
providerId?: string;
|
|
587
|
+
}) => Promise<_1.SdkResponse<{
|
|
588
|
+
maskedPhone: string;
|
|
589
|
+
}>>;
|
|
517
590
|
};
|
|
518
591
|
};
|
|
519
592
|
};
|
|
@@ -849,6 +922,7 @@ declare const createSdkWrapper: <P extends {
|
|
|
849
922
|
sms: (loginId: string, code: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
|
|
850
923
|
voice: (loginId: string, code: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
|
|
851
924
|
whatsapp: (loginId: string, code: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
|
|
925
|
+
im: (loginId: string, code: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
|
|
852
926
|
email: (loginId: string, code: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
|
|
853
927
|
};
|
|
854
928
|
signIn: {
|
|
@@ -861,6 +935,9 @@ declare const createSdkWrapper: <P extends {
|
|
|
861
935
|
whatsapp: (loginId: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
|
|
862
936
|
maskedPhone: string;
|
|
863
937
|
}>>;
|
|
938
|
+
im: (loginId: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
|
|
939
|
+
maskedPhone: string;
|
|
940
|
+
}>>;
|
|
864
941
|
email: (loginId: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
|
|
865
942
|
maskedEmail: string;
|
|
866
943
|
}>>;
|
|
@@ -914,6 +991,22 @@ declare const createSdkWrapper: <P extends {
|
|
|
914
991
|
}) => Promise<_1.SdkResponse<{
|
|
915
992
|
maskedPhone: string;
|
|
916
993
|
}>>;
|
|
994
|
+
im: (loginId: string, user?: {
|
|
995
|
+
email?: string;
|
|
996
|
+
name?: string;
|
|
997
|
+
givenName?: string;
|
|
998
|
+
middleName?: string;
|
|
999
|
+
familyName?: string;
|
|
1000
|
+
phone?: string;
|
|
1001
|
+
}, signUpOptions?: {
|
|
1002
|
+
customClaims?: Record<string, any>;
|
|
1003
|
+
templateId?: string;
|
|
1004
|
+
templateOptions?: {
|
|
1005
|
+
[x: string]: string;
|
|
1006
|
+
};
|
|
1007
|
+
}) => Promise<_1.SdkResponse<{
|
|
1008
|
+
maskedPhone: string;
|
|
1009
|
+
}>>;
|
|
917
1010
|
email: (loginId: string, user?: {
|
|
918
1011
|
email?: string;
|
|
919
1012
|
name?: string;
|
|
@@ -941,6 +1034,9 @@ declare const createSdkWrapper: <P extends {
|
|
|
941
1034
|
whatsapp: (loginId: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
|
|
942
1035
|
maskedPhone: string;
|
|
943
1036
|
}>>;
|
|
1037
|
+
im: (loginId: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
|
|
1038
|
+
maskedPhone: string;
|
|
1039
|
+
}>>;
|
|
944
1040
|
email: (loginId: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
|
|
945
1041
|
maskedEmail: string;
|
|
946
1042
|
}>>;
|
|
@@ -958,9 +1054,9 @@ declare const createSdkWrapper: <P extends {
|
|
|
958
1054
|
maskedEmail: string;
|
|
959
1055
|
}>>;
|
|
960
1056
|
phone: {
|
|
961
|
-
sms: <
|
|
962
|
-
addToLoginIDs?:
|
|
963
|
-
onMergeUseExisting?:
|
|
1057
|
+
sms: <T_1_4 extends boolean>(loginId: string, phone: string, token?: string, updateOptions?: {
|
|
1058
|
+
addToLoginIDs?: T_1_4;
|
|
1059
|
+
onMergeUseExisting?: T_1_4 extends true ? boolean : never;
|
|
964
1060
|
templateOptions?: {
|
|
965
1061
|
[x: string]: string;
|
|
966
1062
|
};
|
|
@@ -969,9 +1065,9 @@ declare const createSdkWrapper: <P extends {
|
|
|
969
1065
|
}) => Promise<_1.SdkResponse<{
|
|
970
1066
|
maskedPhone: string;
|
|
971
1067
|
}>>;
|
|
972
|
-
voice: <
|
|
973
|
-
addToLoginIDs?:
|
|
974
|
-
onMergeUseExisting?:
|
|
1068
|
+
voice: <T_1_5 extends boolean>(loginId: string, phone: string, token?: string, updateOptions?: {
|
|
1069
|
+
addToLoginIDs?: T_1_5;
|
|
1070
|
+
onMergeUseExisting?: T_1_5 extends true ? boolean : never;
|
|
975
1071
|
templateOptions?: {
|
|
976
1072
|
[x: string]: string;
|
|
977
1073
|
};
|
|
@@ -980,9 +1076,20 @@ declare const createSdkWrapper: <P extends {
|
|
|
980
1076
|
}) => Promise<_1.SdkResponse<{
|
|
981
1077
|
maskedPhone: string;
|
|
982
1078
|
}>>;
|
|
983
|
-
whatsapp: <
|
|
984
|
-
addToLoginIDs?:
|
|
985
|
-
onMergeUseExisting?:
|
|
1079
|
+
whatsapp: <T_1_6 extends boolean>(loginId: string, phone: string, token?: string, updateOptions?: {
|
|
1080
|
+
addToLoginIDs?: T_1_6;
|
|
1081
|
+
onMergeUseExisting?: T_1_6 extends true ? boolean : never;
|
|
1082
|
+
templateOptions?: {
|
|
1083
|
+
[x: string]: string;
|
|
1084
|
+
};
|
|
1085
|
+
templateId?: string;
|
|
1086
|
+
providerId?: string;
|
|
1087
|
+
}) => Promise<_1.SdkResponse<{
|
|
1088
|
+
maskedPhone: string;
|
|
1089
|
+
}>>;
|
|
1090
|
+
im: <T_1_7 extends boolean>(loginId: string, phone: string, token?: string, updateOptions?: {
|
|
1091
|
+
addToLoginIDs?: T_1_7;
|
|
1092
|
+
onMergeUseExisting?: T_1_7 extends true ? boolean : never;
|
|
986
1093
|
templateOptions?: {
|
|
987
1094
|
[x: string]: string;
|
|
988
1095
|
};
|
|
@@ -1006,6 +1113,9 @@ declare const createSdkWrapper: <P extends {
|
|
|
1006
1113
|
whatsapp: (loginId: string, URI: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
|
|
1007
1114
|
maskedPhone: string;
|
|
1008
1115
|
}>>;
|
|
1116
|
+
im: (loginId: string, URI: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
|
|
1117
|
+
maskedPhone: string;
|
|
1118
|
+
}>>;
|
|
1009
1119
|
email: (loginId: string, URI: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
|
|
1010
1120
|
maskedEmail: string;
|
|
1011
1121
|
}>>;
|
|
@@ -1059,6 +1169,22 @@ declare const createSdkWrapper: <P extends {
|
|
|
1059
1169
|
}) => Promise<_1.SdkResponse<{
|
|
1060
1170
|
maskedPhone: string;
|
|
1061
1171
|
}>>;
|
|
1172
|
+
im: (loginId: string, URI: string, user?: {
|
|
1173
|
+
email?: string;
|
|
1174
|
+
name?: string;
|
|
1175
|
+
givenName?: string;
|
|
1176
|
+
middleName?: string;
|
|
1177
|
+
familyName?: string;
|
|
1178
|
+
phone?: string;
|
|
1179
|
+
}, signUpOptions?: {
|
|
1180
|
+
customClaims?: Record<string, any>;
|
|
1181
|
+
templateId?: string;
|
|
1182
|
+
templateOptions?: {
|
|
1183
|
+
[x: string]: string;
|
|
1184
|
+
};
|
|
1185
|
+
}) => Promise<_1.SdkResponse<{
|
|
1186
|
+
maskedPhone: string;
|
|
1187
|
+
}>>;
|
|
1062
1188
|
email: (loginId: string, URI: string, user?: {
|
|
1063
1189
|
email?: string;
|
|
1064
1190
|
name?: string;
|
|
@@ -1104,6 +1230,15 @@ declare const createSdkWrapper: <P extends {
|
|
|
1104
1230
|
}) => Promise<_1.SdkResponse<{
|
|
1105
1231
|
maskedPhone: string;
|
|
1106
1232
|
}>>;
|
|
1233
|
+
im: (loginId: string, URI?: string, signUpOptions?: {
|
|
1234
|
+
customClaims?: Record<string, any>;
|
|
1235
|
+
templateId?: string;
|
|
1236
|
+
templateOptions?: {
|
|
1237
|
+
[x: string]: string;
|
|
1238
|
+
};
|
|
1239
|
+
}) => Promise<_1.SdkResponse<{
|
|
1240
|
+
maskedPhone: string;
|
|
1241
|
+
}>>;
|
|
1107
1242
|
email: (loginId: string, URI?: string, signUpOptions?: {
|
|
1108
1243
|
customClaims?: Record<string, any>;
|
|
1109
1244
|
templateId?: string;
|
|
@@ -1127,9 +1262,9 @@ declare const createSdkWrapper: <P extends {
|
|
|
1127
1262
|
maskedEmail: string;
|
|
1128
1263
|
}>>;
|
|
1129
1264
|
phone: {
|
|
1130
|
-
sms: <
|
|
1131
|
-
addToLoginIDs?:
|
|
1132
|
-
onMergeUseExisting?:
|
|
1265
|
+
sms: <T_3_4 extends boolean>(loginId: string, phone: string, URI?: string, token?: string, updateOptions?: {
|
|
1266
|
+
addToLoginIDs?: T_3_4;
|
|
1267
|
+
onMergeUseExisting?: T_3_4 extends true ? boolean : never;
|
|
1133
1268
|
templateOptions?: {
|
|
1134
1269
|
[x: string]: string;
|
|
1135
1270
|
};
|
|
@@ -1138,9 +1273,9 @@ declare const createSdkWrapper: <P extends {
|
|
|
1138
1273
|
}) => Promise<_1.SdkResponse<{
|
|
1139
1274
|
maskedPhone: string;
|
|
1140
1275
|
}>>;
|
|
1141
|
-
voice: <
|
|
1142
|
-
addToLoginIDs?:
|
|
1143
|
-
onMergeUseExisting?:
|
|
1276
|
+
voice: <T_3_5 extends boolean>(loginId: string, phone: string, URI?: string, token?: string, updateOptions?: {
|
|
1277
|
+
addToLoginIDs?: T_3_5;
|
|
1278
|
+
onMergeUseExisting?: T_3_5 extends true ? boolean : never;
|
|
1144
1279
|
templateOptions?: {
|
|
1145
1280
|
[x: string]: string;
|
|
1146
1281
|
};
|
|
@@ -1149,9 +1284,20 @@ declare const createSdkWrapper: <P extends {
|
|
|
1149
1284
|
}) => Promise<_1.SdkResponse<{
|
|
1150
1285
|
maskedPhone: string;
|
|
1151
1286
|
}>>;
|
|
1152
|
-
whatsapp: <
|
|
1153
|
-
addToLoginIDs?:
|
|
1154
|
-
onMergeUseExisting?:
|
|
1287
|
+
whatsapp: <T_3_6 extends boolean>(loginId: string, phone: string, URI?: string, token?: string, updateOptions?: {
|
|
1288
|
+
addToLoginIDs?: T_3_6;
|
|
1289
|
+
onMergeUseExisting?: T_3_6 extends true ? boolean : never;
|
|
1290
|
+
templateOptions?: {
|
|
1291
|
+
[x: string]: string;
|
|
1292
|
+
};
|
|
1293
|
+
templateId?: string;
|
|
1294
|
+
providerId?: string;
|
|
1295
|
+
}) => Promise<_1.SdkResponse<{
|
|
1296
|
+
maskedPhone: string;
|
|
1297
|
+
}>>;
|
|
1298
|
+
im: <T_3_7 extends boolean>(loginId: string, phone: string, URI?: string, token?: string, updateOptions?: {
|
|
1299
|
+
addToLoginIDs?: T_3_7;
|
|
1300
|
+
onMergeUseExisting?: T_3_7 extends true ? boolean : never;
|
|
1155
1301
|
templateOptions?: {
|
|
1156
1302
|
[x: string]: string;
|
|
1157
1303
|
};
|
|
@@ -1495,6 +1641,7 @@ declare const createSdkWrapper: <P extends {
|
|
|
1495
1641
|
sms: (loginId: string, code: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
|
|
1496
1642
|
voice: (loginId: string, code: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
|
|
1497
1643
|
whatsapp: (loginId: string, code: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
|
|
1644
|
+
im: (loginId: string, code: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
|
|
1498
1645
|
email: (loginId: string, code: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
|
|
1499
1646
|
};
|
|
1500
1647
|
signIn: {
|
|
@@ -1507,6 +1654,9 @@ declare const createSdkWrapper: <P extends {
|
|
|
1507
1654
|
whatsapp: (loginId: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
|
|
1508
1655
|
maskedPhone: string;
|
|
1509
1656
|
}>>;
|
|
1657
|
+
im: (loginId: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
|
|
1658
|
+
maskedPhone: string;
|
|
1659
|
+
}>>;
|
|
1510
1660
|
email: (loginId: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
|
|
1511
1661
|
maskedEmail: string;
|
|
1512
1662
|
}>>;
|
|
@@ -1560,6 +1710,22 @@ declare const createSdkWrapper: <P extends {
|
|
|
1560
1710
|
}) => Promise<_1.SdkResponse<{
|
|
1561
1711
|
maskedPhone: string;
|
|
1562
1712
|
}>>;
|
|
1713
|
+
im: (loginId: string, user?: {
|
|
1714
|
+
email?: string;
|
|
1715
|
+
name?: string;
|
|
1716
|
+
givenName?: string;
|
|
1717
|
+
middleName?: string;
|
|
1718
|
+
familyName?: string;
|
|
1719
|
+
phone?: string;
|
|
1720
|
+
}, signUpOptions?: {
|
|
1721
|
+
customClaims?: Record<string, any>;
|
|
1722
|
+
templateId?: string;
|
|
1723
|
+
templateOptions?: {
|
|
1724
|
+
[x: string]: string;
|
|
1725
|
+
};
|
|
1726
|
+
}) => Promise<_1.SdkResponse<{
|
|
1727
|
+
maskedPhone: string;
|
|
1728
|
+
}>>;
|
|
1563
1729
|
email: (loginId: string, user?: {
|
|
1564
1730
|
email?: string;
|
|
1565
1731
|
name?: string;
|
|
@@ -1587,6 +1753,9 @@ declare const createSdkWrapper: <P extends {
|
|
|
1587
1753
|
whatsapp: (loginId: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
|
|
1588
1754
|
maskedPhone: string;
|
|
1589
1755
|
}>>;
|
|
1756
|
+
im: (loginId: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
|
|
1757
|
+
maskedPhone: string;
|
|
1758
|
+
}>>;
|
|
1590
1759
|
email: (loginId: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
|
|
1591
1760
|
maskedEmail: string;
|
|
1592
1761
|
}>>;
|
|
@@ -1604,9 +1773,9 @@ declare const createSdkWrapper: <P extends {
|
|
|
1604
1773
|
maskedEmail: string;
|
|
1605
1774
|
}>>;
|
|
1606
1775
|
phone: {
|
|
1607
|
-
sms: <
|
|
1608
|
-
addToLoginIDs?:
|
|
1609
|
-
onMergeUseExisting?:
|
|
1776
|
+
sms: <T_1_8 extends boolean>(loginId: string, phone: string, token?: string, updateOptions?: {
|
|
1777
|
+
addToLoginIDs?: T_1_8;
|
|
1778
|
+
onMergeUseExisting?: T_1_8 extends true ? boolean : never;
|
|
1610
1779
|
templateOptions?: {
|
|
1611
1780
|
[x: string]: string;
|
|
1612
1781
|
};
|
|
@@ -1615,9 +1784,9 @@ declare const createSdkWrapper: <P extends {
|
|
|
1615
1784
|
}) => Promise<_1.SdkResponse<{
|
|
1616
1785
|
maskedPhone: string;
|
|
1617
1786
|
}>>;
|
|
1618
|
-
voice: <
|
|
1619
|
-
addToLoginIDs?:
|
|
1620
|
-
onMergeUseExisting?:
|
|
1787
|
+
voice: <T_1_9 extends boolean>(loginId: string, phone: string, token?: string, updateOptions?: {
|
|
1788
|
+
addToLoginIDs?: T_1_9;
|
|
1789
|
+
onMergeUseExisting?: T_1_9 extends true ? boolean : never;
|
|
1621
1790
|
templateOptions?: {
|
|
1622
1791
|
[x: string]: string;
|
|
1623
1792
|
};
|
|
@@ -1626,9 +1795,20 @@ declare const createSdkWrapper: <P extends {
|
|
|
1626
1795
|
}) => Promise<_1.SdkResponse<{
|
|
1627
1796
|
maskedPhone: string;
|
|
1628
1797
|
}>>;
|
|
1629
|
-
whatsapp: <
|
|
1630
|
-
addToLoginIDs?:
|
|
1631
|
-
onMergeUseExisting?:
|
|
1798
|
+
whatsapp: <T_1_10 extends boolean>(loginId: string, phone: string, token?: string, updateOptions?: {
|
|
1799
|
+
addToLoginIDs?: T_1_10;
|
|
1800
|
+
onMergeUseExisting?: T_1_10 extends true ? boolean : never;
|
|
1801
|
+
templateOptions?: {
|
|
1802
|
+
[x: string]: string;
|
|
1803
|
+
};
|
|
1804
|
+
templateId?: string;
|
|
1805
|
+
providerId?: string;
|
|
1806
|
+
}) => Promise<_1.SdkResponse<{
|
|
1807
|
+
maskedPhone: string;
|
|
1808
|
+
}>>;
|
|
1809
|
+
im: <T_1_11 extends boolean>(loginId: string, phone: string, token?: string, updateOptions?: {
|
|
1810
|
+
addToLoginIDs?: T_1_11;
|
|
1811
|
+
onMergeUseExisting?: T_1_11 extends true ? boolean : never;
|
|
1632
1812
|
templateOptions?: {
|
|
1633
1813
|
[x: string]: string;
|
|
1634
1814
|
};
|
|
@@ -1652,6 +1832,9 @@ declare const createSdkWrapper: <P extends {
|
|
|
1652
1832
|
whatsapp: (loginId: string, URI: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
|
|
1653
1833
|
maskedPhone: string;
|
|
1654
1834
|
}>>;
|
|
1835
|
+
im: (loginId: string, URI: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
|
|
1836
|
+
maskedPhone: string;
|
|
1837
|
+
}>>;
|
|
1655
1838
|
email: (loginId: string, URI: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
|
|
1656
1839
|
maskedEmail: string;
|
|
1657
1840
|
}>>;
|
|
@@ -1705,6 +1888,22 @@ declare const createSdkWrapper: <P extends {
|
|
|
1705
1888
|
}) => Promise<_1.SdkResponse<{
|
|
1706
1889
|
maskedPhone: string;
|
|
1707
1890
|
}>>;
|
|
1891
|
+
im: (loginId: string, URI: string, user?: {
|
|
1892
|
+
email?: string;
|
|
1893
|
+
name?: string;
|
|
1894
|
+
givenName?: string;
|
|
1895
|
+
middleName?: string;
|
|
1896
|
+
familyName?: string;
|
|
1897
|
+
phone?: string;
|
|
1898
|
+
}, signUpOptions?: {
|
|
1899
|
+
customClaims?: Record<string, any>;
|
|
1900
|
+
templateId?: string;
|
|
1901
|
+
templateOptions?: {
|
|
1902
|
+
[x: string]: string;
|
|
1903
|
+
};
|
|
1904
|
+
}) => Promise<_1.SdkResponse<{
|
|
1905
|
+
maskedPhone: string;
|
|
1906
|
+
}>>;
|
|
1708
1907
|
email: (loginId: string, URI: string, user?: {
|
|
1709
1908
|
email?: string;
|
|
1710
1909
|
name?: string;
|
|
@@ -1750,6 +1949,15 @@ declare const createSdkWrapper: <P extends {
|
|
|
1750
1949
|
}) => Promise<_1.SdkResponse<{
|
|
1751
1950
|
maskedPhone: string;
|
|
1752
1951
|
}>>;
|
|
1952
|
+
im: (loginId: string, URI?: string, signUpOptions?: {
|
|
1953
|
+
customClaims?: Record<string, any>;
|
|
1954
|
+
templateId?: string;
|
|
1955
|
+
templateOptions?: {
|
|
1956
|
+
[x: string]: string;
|
|
1957
|
+
};
|
|
1958
|
+
}) => Promise<_1.SdkResponse<{
|
|
1959
|
+
maskedPhone: string;
|
|
1960
|
+
}>>;
|
|
1753
1961
|
email: (loginId: string, URI?: string, signUpOptions?: {
|
|
1754
1962
|
customClaims?: Record<string, any>;
|
|
1755
1963
|
templateId?: string;
|
|
@@ -1773,9 +1981,9 @@ declare const createSdkWrapper: <P extends {
|
|
|
1773
1981
|
maskedEmail: string;
|
|
1774
1982
|
}>>;
|
|
1775
1983
|
phone: {
|
|
1776
|
-
sms: <
|
|
1777
|
-
addToLoginIDs?:
|
|
1778
|
-
onMergeUseExisting?:
|
|
1984
|
+
sms: <T_3_8 extends boolean>(loginId: string, phone: string, URI?: string, token?: string, updateOptions?: {
|
|
1985
|
+
addToLoginIDs?: T_3_8;
|
|
1986
|
+
onMergeUseExisting?: T_3_8 extends true ? boolean : never;
|
|
1779
1987
|
templateOptions?: {
|
|
1780
1988
|
[x: string]: string;
|
|
1781
1989
|
};
|
|
@@ -1784,9 +1992,9 @@ declare const createSdkWrapper: <P extends {
|
|
|
1784
1992
|
}) => Promise<_1.SdkResponse<{
|
|
1785
1993
|
maskedPhone: string;
|
|
1786
1994
|
}>>;
|
|
1787
|
-
voice: <
|
|
1788
|
-
addToLoginIDs?:
|
|
1789
|
-
onMergeUseExisting?:
|
|
1995
|
+
voice: <T_3_9 extends boolean>(loginId: string, phone: string, URI?: string, token?: string, updateOptions?: {
|
|
1996
|
+
addToLoginIDs?: T_3_9;
|
|
1997
|
+
onMergeUseExisting?: T_3_9 extends true ? boolean : never;
|
|
1790
1998
|
templateOptions?: {
|
|
1791
1999
|
[x: string]: string;
|
|
1792
2000
|
};
|
|
@@ -1795,9 +2003,20 @@ declare const createSdkWrapper: <P extends {
|
|
|
1795
2003
|
}) => Promise<_1.SdkResponse<{
|
|
1796
2004
|
maskedPhone: string;
|
|
1797
2005
|
}>>;
|
|
1798
|
-
whatsapp: <
|
|
1799
|
-
addToLoginIDs?:
|
|
1800
|
-
onMergeUseExisting?:
|
|
2006
|
+
whatsapp: <T_3_10 extends boolean>(loginId: string, phone: string, URI?: string, token?: string, updateOptions?: {
|
|
2007
|
+
addToLoginIDs?: T_3_10;
|
|
2008
|
+
onMergeUseExisting?: T_3_10 extends true ? boolean : never;
|
|
2009
|
+
templateOptions?: {
|
|
2010
|
+
[x: string]: string;
|
|
2011
|
+
};
|
|
2012
|
+
templateId?: string;
|
|
2013
|
+
providerId?: string;
|
|
2014
|
+
}) => Promise<_1.SdkResponse<{
|
|
2015
|
+
maskedPhone: string;
|
|
2016
|
+
}>>;
|
|
2017
|
+
im: <T_3_11 extends boolean>(loginId: string, phone: string, URI?: string, token?: string, updateOptions?: {
|
|
2018
|
+
addToLoginIDs?: T_3_11;
|
|
2019
|
+
onMergeUseExisting?: T_3_11 extends true ? boolean : never;
|
|
1801
2020
|
templateOptions?: {
|
|
1802
2021
|
[x: string]: string;
|
|
1803
2022
|
};
|