@descope/web-js-sdk 1.18.0 → 1.19.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/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/index.d.ts +96 -8
- 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 +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -130,14 +130,19 @@ declare const decoratedCreateSdk: <A extends boolean>({ persistTokens: isPersist
|
|
|
130
130
|
locale?: string;
|
|
131
131
|
oidcPrompt?: string;
|
|
132
132
|
oidcErrorRedirectUri?: string;
|
|
133
|
-
|
|
133
|
+
nativeOptions?: {
|
|
134
|
+
platform: "ios" | "android";
|
|
135
|
+
oauthProvider?: string;
|
|
136
|
+
oauthRedirect?: string;
|
|
137
|
+
};
|
|
138
|
+
}, "tenant" | "redirectUrl" | "redirectAuth" | "oidcIdpStateId" | "samlIdpStateId" | "samlIdpUsername" | "ssoAppId" | "oidcLoginHint" | "preview" | "abTestingKey" | "client" | "locale" | "oidcPrompt" | "oidcErrorRedirectUri" | "nativeOptions"> & {
|
|
134
139
|
lastAuth?: Omit<{
|
|
135
140
|
authMethod?: "webauthn" | "otp" | "oauth" | "saml" | "totp" | "magiclink" | "enchantedlink";
|
|
136
141
|
oauthProvider?: string;
|
|
137
142
|
name?: string;
|
|
138
143
|
loginId?: string;
|
|
139
144
|
}, "loginId" | "name">;
|
|
140
|
-
}, conditionInteractionId?: string, interactionId?: string,
|
|
145
|
+
}, conditionInteractionId?: string, interactionId?: string, componentsVersion?: string, flowVersions?: Record<string, number>, input?: {
|
|
141
146
|
[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 | (string | number | boolean | any)[])[])[])[])[])[])[])[])[])[])[];
|
|
142
147
|
}) => Promise<_descope_core_js_sdk.SdkResponse<_descope_core_js_sdk.FlowResponse>>;
|
|
143
148
|
next: (executionId: string, stepId: string, interactionId: string, version?: number, componentsVersion?: string, input?: {
|
|
@@ -222,6 +227,7 @@ declare const decoratedCreateSdk: <A extends boolean>({ persistTokens: isPersist
|
|
|
222
227
|
phone?: string;
|
|
223
228
|
}, signUpOptions?: {
|
|
224
229
|
customClaims?: Record<string, any>;
|
|
230
|
+
templateId?: string;
|
|
225
231
|
templateOptions?: {
|
|
226
232
|
[x: string]: string;
|
|
227
233
|
};
|
|
@@ -237,6 +243,7 @@ declare const decoratedCreateSdk: <A extends boolean>({ persistTokens: isPersist
|
|
|
237
243
|
phone?: string;
|
|
238
244
|
}, signUpOptions?: {
|
|
239
245
|
customClaims?: Record<string, any>;
|
|
246
|
+
templateId?: string;
|
|
240
247
|
templateOptions?: {
|
|
241
248
|
[x: string]: string;
|
|
242
249
|
};
|
|
@@ -252,6 +259,7 @@ declare const decoratedCreateSdk: <A extends boolean>({ persistTokens: isPersist
|
|
|
252
259
|
phone?: string;
|
|
253
260
|
}, signUpOptions?: {
|
|
254
261
|
customClaims?: Record<string, any>;
|
|
262
|
+
templateId?: string;
|
|
255
263
|
templateOptions?: {
|
|
256
264
|
[x: string]: string;
|
|
257
265
|
};
|
|
@@ -267,6 +275,7 @@ declare const decoratedCreateSdk: <A extends boolean>({ persistTokens: isPersist
|
|
|
267
275
|
phone?: string;
|
|
268
276
|
}, signUpOptions?: {
|
|
269
277
|
customClaims?: Record<string, any>;
|
|
278
|
+
templateId?: string;
|
|
270
279
|
templateOptions?: {
|
|
271
280
|
[x: string]: string;
|
|
272
281
|
};
|
|
@@ -355,6 +364,7 @@ declare const decoratedCreateSdk: <A extends boolean>({ persistTokens: isPersist
|
|
|
355
364
|
phone?: string;
|
|
356
365
|
}, signUpOptions?: {
|
|
357
366
|
customClaims?: Record<string, any>;
|
|
367
|
+
templateId?: string;
|
|
358
368
|
templateOptions?: {
|
|
359
369
|
[x: string]: string;
|
|
360
370
|
};
|
|
@@ -370,6 +380,7 @@ declare const decoratedCreateSdk: <A extends boolean>({ persistTokens: isPersist
|
|
|
370
380
|
phone?: string;
|
|
371
381
|
}, signUpOptions?: {
|
|
372
382
|
customClaims?: Record<string, any>;
|
|
383
|
+
templateId?: string;
|
|
373
384
|
templateOptions?: {
|
|
374
385
|
[x: string]: string;
|
|
375
386
|
};
|
|
@@ -385,6 +396,7 @@ declare const decoratedCreateSdk: <A extends boolean>({ persistTokens: isPersist
|
|
|
385
396
|
phone?: string;
|
|
386
397
|
}, signUpOptions?: {
|
|
387
398
|
customClaims?: Record<string, any>;
|
|
399
|
+
templateId?: string;
|
|
388
400
|
templateOptions?: {
|
|
389
401
|
[x: string]: string;
|
|
390
402
|
};
|
|
@@ -400,6 +412,7 @@ declare const decoratedCreateSdk: <A extends boolean>({ persistTokens: isPersist
|
|
|
400
412
|
phone?: string;
|
|
401
413
|
}, signUpOptions?: {
|
|
402
414
|
customClaims?: Record<string, any>;
|
|
415
|
+
templateId?: string;
|
|
403
416
|
templateOptions?: {
|
|
404
417
|
[x: string]: string;
|
|
405
418
|
};
|
|
@@ -410,6 +423,7 @@ declare const decoratedCreateSdk: <A extends boolean>({ persistTokens: isPersist
|
|
|
410
423
|
signUpOrIn: {
|
|
411
424
|
sms: (loginId: string, URI?: string, signUpOptions?: {
|
|
412
425
|
customClaims?: Record<string, any>;
|
|
426
|
+
templateId?: string;
|
|
413
427
|
templateOptions?: {
|
|
414
428
|
[x: string]: string;
|
|
415
429
|
};
|
|
@@ -418,6 +432,7 @@ declare const decoratedCreateSdk: <A extends boolean>({ persistTokens: isPersist
|
|
|
418
432
|
}>>;
|
|
419
433
|
voice: (loginId: string, URI?: string, signUpOptions?: {
|
|
420
434
|
customClaims?: Record<string, any>;
|
|
435
|
+
templateId?: string;
|
|
421
436
|
templateOptions?: {
|
|
422
437
|
[x: string]: string;
|
|
423
438
|
};
|
|
@@ -426,6 +441,7 @@ declare const decoratedCreateSdk: <A extends boolean>({ persistTokens: isPersist
|
|
|
426
441
|
}>>;
|
|
427
442
|
whatsapp: (loginId: string, URI?: string, signUpOptions?: {
|
|
428
443
|
customClaims?: Record<string, any>;
|
|
444
|
+
templateId?: string;
|
|
429
445
|
templateOptions?: {
|
|
430
446
|
[x: string]: string;
|
|
431
447
|
};
|
|
@@ -434,6 +450,7 @@ declare const decoratedCreateSdk: <A extends boolean>({ persistTokens: isPersist
|
|
|
434
450
|
}>>;
|
|
435
451
|
email: (loginId: string, URI?: string, signUpOptions?: {
|
|
436
452
|
customClaims?: Record<string, any>;
|
|
453
|
+
templateId?: string;
|
|
437
454
|
templateOptions?: {
|
|
438
455
|
[x: string]: string;
|
|
439
456
|
};
|
|
@@ -487,6 +504,7 @@ declare const decoratedCreateSdk: <A extends boolean>({ persistTokens: isPersist
|
|
|
487
504
|
signIn: (loginId: string, URI?: string, loginOptions?: _descope_core_js_sdk.LoginOptions, token?: string) => Promise<_descope_core_js_sdk.SdkResponse<_descope_core_js_sdk.EnchantedLinkResponse>>;
|
|
488
505
|
signUpOrIn: (loginId: string, URI?: string, signUpOptions?: {
|
|
489
506
|
customClaims?: Record<string, any>;
|
|
507
|
+
templateId?: string;
|
|
490
508
|
templateOptions?: {
|
|
491
509
|
[x: string]: string;
|
|
492
510
|
};
|
|
@@ -500,6 +518,7 @@ declare const decoratedCreateSdk: <A extends boolean>({ persistTokens: isPersist
|
|
|
500
518
|
phone?: string;
|
|
501
519
|
}, signUpOptions?: {
|
|
502
520
|
customClaims?: Record<string, any>;
|
|
521
|
+
templateId?: string;
|
|
503
522
|
templateOptions?: {
|
|
504
523
|
[x: string]: string;
|
|
505
524
|
};
|
|
@@ -553,6 +572,7 @@ declare const decoratedCreateSdk: <A extends boolean>({ persistTokens: isPersist
|
|
|
553
572
|
notp: {
|
|
554
573
|
signUpOrIn: (loginId?: string, signUpOptions?: {
|
|
555
574
|
customClaims?: Record<string, any>;
|
|
575
|
+
templateId?: string;
|
|
556
576
|
templateOptions?: {
|
|
557
577
|
[x: string]: string;
|
|
558
578
|
};
|
|
@@ -570,6 +590,7 @@ declare const decoratedCreateSdk: <A extends boolean>({ persistTokens: isPersist
|
|
|
570
590
|
phone?: string;
|
|
571
591
|
}, signUpOptions?: {
|
|
572
592
|
customClaims?: Record<string, any>;
|
|
593
|
+
templateId?: string;
|
|
573
594
|
templateOptions?: {
|
|
574
595
|
[x: string]: string;
|
|
575
596
|
};
|
|
@@ -598,6 +619,7 @@ declare const decoratedCreateSdk: <A extends boolean>({ persistTokens: isPersist
|
|
|
598
619
|
phone?: string;
|
|
599
620
|
}, signUpOptions?: {
|
|
600
621
|
customClaims?: Record<string, any>;
|
|
622
|
+
templateId?: string;
|
|
601
623
|
templateOptions?: {
|
|
602
624
|
[x: string]: string;
|
|
603
625
|
};
|
|
@@ -714,14 +736,19 @@ declare const decoratedCreateSdk: <A extends boolean>({ persistTokens: isPersist
|
|
|
714
736
|
locale?: string;
|
|
715
737
|
oidcPrompt?: string;
|
|
716
738
|
oidcErrorRedirectUri?: string;
|
|
717
|
-
|
|
739
|
+
nativeOptions?: {
|
|
740
|
+
platform: "ios" | "android";
|
|
741
|
+
oauthProvider?: string;
|
|
742
|
+
oauthRedirect?: string;
|
|
743
|
+
};
|
|
744
|
+
}, "tenant" | "redirectUrl" | "redirectAuth" | "oidcIdpStateId" | "samlIdpStateId" | "samlIdpUsername" | "ssoAppId" | "oidcLoginHint" | "preview" | "abTestingKey" | "client" | "locale" | "oidcPrompt" | "oidcErrorRedirectUri" | "nativeOptions"> & {
|
|
718
745
|
lastAuth?: Omit<{
|
|
719
746
|
authMethod?: "webauthn" | "otp" | "oauth" | "saml" | "totp" | "magiclink" | "enchantedlink";
|
|
720
747
|
oauthProvider?: string;
|
|
721
748
|
name?: string;
|
|
722
749
|
loginId?: string;
|
|
723
750
|
}, "loginId" | "name">;
|
|
724
|
-
}, conditionInteractionId?: string, interactionId?: string,
|
|
751
|
+
}, conditionInteractionId?: string, interactionId?: string, componentsVersion?: string, flowVersions?: Record<string, number>, input?: {
|
|
725
752
|
[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 | (string | number | boolean | any)[])[])[])[])[])[])[])[])[])[])[];
|
|
726
753
|
}) => Promise<_descope_core_js_sdk.SdkResponse<_descope_core_js_sdk.FlowResponse>>;
|
|
727
754
|
next: (executionId: string, stepId: string, interactionId: string, version?: number, componentsVersion?: string, input?: {
|
|
@@ -806,6 +833,7 @@ declare const decoratedCreateSdk: <A extends boolean>({ persistTokens: isPersist
|
|
|
806
833
|
phone?: string;
|
|
807
834
|
}, signUpOptions?: {
|
|
808
835
|
customClaims?: Record<string, any>;
|
|
836
|
+
templateId?: string;
|
|
809
837
|
templateOptions?: {
|
|
810
838
|
[x: string]: string;
|
|
811
839
|
};
|
|
@@ -821,6 +849,7 @@ declare const decoratedCreateSdk: <A extends boolean>({ persistTokens: isPersist
|
|
|
821
849
|
phone?: string;
|
|
822
850
|
}, signUpOptions?: {
|
|
823
851
|
customClaims?: Record<string, any>;
|
|
852
|
+
templateId?: string;
|
|
824
853
|
templateOptions?: {
|
|
825
854
|
[x: string]: string;
|
|
826
855
|
};
|
|
@@ -836,6 +865,7 @@ declare const decoratedCreateSdk: <A extends boolean>({ persistTokens: isPersist
|
|
|
836
865
|
phone?: string;
|
|
837
866
|
}, signUpOptions?: {
|
|
838
867
|
customClaims?: Record<string, any>;
|
|
868
|
+
templateId?: string;
|
|
839
869
|
templateOptions?: {
|
|
840
870
|
[x: string]: string;
|
|
841
871
|
};
|
|
@@ -851,6 +881,7 @@ declare const decoratedCreateSdk: <A extends boolean>({ persistTokens: isPersist
|
|
|
851
881
|
phone?: string;
|
|
852
882
|
}, signUpOptions?: {
|
|
853
883
|
customClaims?: Record<string, any>;
|
|
884
|
+
templateId?: string;
|
|
854
885
|
templateOptions?: {
|
|
855
886
|
[x: string]: string;
|
|
856
887
|
};
|
|
@@ -939,6 +970,7 @@ declare const decoratedCreateSdk: <A extends boolean>({ persistTokens: isPersist
|
|
|
939
970
|
phone?: string;
|
|
940
971
|
}, signUpOptions?: {
|
|
941
972
|
customClaims?: Record<string, any>;
|
|
973
|
+
templateId?: string;
|
|
942
974
|
templateOptions?: {
|
|
943
975
|
[x: string]: string;
|
|
944
976
|
};
|
|
@@ -954,6 +986,7 @@ declare const decoratedCreateSdk: <A extends boolean>({ persistTokens: isPersist
|
|
|
954
986
|
phone?: string;
|
|
955
987
|
}, signUpOptions?: {
|
|
956
988
|
customClaims?: Record<string, any>;
|
|
989
|
+
templateId?: string;
|
|
957
990
|
templateOptions?: {
|
|
958
991
|
[x: string]: string;
|
|
959
992
|
};
|
|
@@ -969,6 +1002,7 @@ declare const decoratedCreateSdk: <A extends boolean>({ persistTokens: isPersist
|
|
|
969
1002
|
phone?: string;
|
|
970
1003
|
}, signUpOptions?: {
|
|
971
1004
|
customClaims?: Record<string, any>;
|
|
1005
|
+
templateId?: string;
|
|
972
1006
|
templateOptions?: {
|
|
973
1007
|
[x: string]: string;
|
|
974
1008
|
};
|
|
@@ -984,6 +1018,7 @@ declare const decoratedCreateSdk: <A extends boolean>({ persistTokens: isPersist
|
|
|
984
1018
|
phone?: string;
|
|
985
1019
|
}, signUpOptions?: {
|
|
986
1020
|
customClaims?: Record<string, any>;
|
|
1021
|
+
templateId?: string;
|
|
987
1022
|
templateOptions?: {
|
|
988
1023
|
[x: string]: string;
|
|
989
1024
|
};
|
|
@@ -994,6 +1029,7 @@ declare const decoratedCreateSdk: <A extends boolean>({ persistTokens: isPersist
|
|
|
994
1029
|
signUpOrIn: {
|
|
995
1030
|
sms: (loginId: string, URI?: string, signUpOptions?: {
|
|
996
1031
|
customClaims?: Record<string, any>;
|
|
1032
|
+
templateId?: string;
|
|
997
1033
|
templateOptions?: {
|
|
998
1034
|
[x: string]: string;
|
|
999
1035
|
};
|
|
@@ -1002,6 +1038,7 @@ declare const decoratedCreateSdk: <A extends boolean>({ persistTokens: isPersist
|
|
|
1002
1038
|
}>>;
|
|
1003
1039
|
voice: (loginId: string, URI?: string, signUpOptions?: {
|
|
1004
1040
|
customClaims?: Record<string, any>;
|
|
1041
|
+
templateId?: string;
|
|
1005
1042
|
templateOptions?: {
|
|
1006
1043
|
[x: string]: string;
|
|
1007
1044
|
};
|
|
@@ -1010,6 +1047,7 @@ declare const decoratedCreateSdk: <A extends boolean>({ persistTokens: isPersist
|
|
|
1010
1047
|
}>>;
|
|
1011
1048
|
whatsapp: (loginId: string, URI?: string, signUpOptions?: {
|
|
1012
1049
|
customClaims?: Record<string, any>;
|
|
1050
|
+
templateId?: string;
|
|
1013
1051
|
templateOptions?: {
|
|
1014
1052
|
[x: string]: string;
|
|
1015
1053
|
};
|
|
@@ -1018,6 +1056,7 @@ declare const decoratedCreateSdk: <A extends boolean>({ persistTokens: isPersist
|
|
|
1018
1056
|
}>>;
|
|
1019
1057
|
email: (loginId: string, URI?: string, signUpOptions?: {
|
|
1020
1058
|
customClaims?: Record<string, any>;
|
|
1059
|
+
templateId?: string;
|
|
1021
1060
|
templateOptions?: {
|
|
1022
1061
|
[x: string]: string;
|
|
1023
1062
|
};
|
|
@@ -1071,6 +1110,7 @@ declare const decoratedCreateSdk: <A extends boolean>({ persistTokens: isPersist
|
|
|
1071
1110
|
signIn: (loginId: string, URI?: string, loginOptions?: _descope_core_js_sdk.LoginOptions, token?: string) => Promise<_descope_core_js_sdk.SdkResponse<_descope_core_js_sdk.EnchantedLinkResponse>>;
|
|
1072
1111
|
signUpOrIn: (loginId: string, URI?: string, signUpOptions?: {
|
|
1073
1112
|
customClaims?: Record<string, any>;
|
|
1113
|
+
templateId?: string;
|
|
1074
1114
|
templateOptions?: {
|
|
1075
1115
|
[x: string]: string;
|
|
1076
1116
|
};
|
|
@@ -1084,6 +1124,7 @@ declare const decoratedCreateSdk: <A extends boolean>({ persistTokens: isPersist
|
|
|
1084
1124
|
phone?: string;
|
|
1085
1125
|
}, signUpOptions?: {
|
|
1086
1126
|
customClaims?: Record<string, any>;
|
|
1127
|
+
templateId?: string;
|
|
1087
1128
|
templateOptions?: {
|
|
1088
1129
|
[x: string]: string;
|
|
1089
1130
|
};
|
|
@@ -1137,6 +1178,7 @@ declare const decoratedCreateSdk: <A extends boolean>({ persistTokens: isPersist
|
|
|
1137
1178
|
notp: {
|
|
1138
1179
|
signUpOrIn: (loginId?: string, signUpOptions?: {
|
|
1139
1180
|
customClaims?: Record<string, any>;
|
|
1181
|
+
templateId?: string;
|
|
1140
1182
|
templateOptions?: {
|
|
1141
1183
|
[x: string]: string;
|
|
1142
1184
|
};
|
|
@@ -1154,6 +1196,7 @@ declare const decoratedCreateSdk: <A extends boolean>({ persistTokens: isPersist
|
|
|
1154
1196
|
phone?: string;
|
|
1155
1197
|
}, signUpOptions?: {
|
|
1156
1198
|
customClaims?: Record<string, any>;
|
|
1199
|
+
templateId?: string;
|
|
1157
1200
|
templateOptions?: {
|
|
1158
1201
|
[x: string]: string;
|
|
1159
1202
|
};
|
|
@@ -1182,6 +1225,7 @@ declare const decoratedCreateSdk: <A extends boolean>({ persistTokens: isPersist
|
|
|
1182
1225
|
phone?: string;
|
|
1183
1226
|
}, signUpOptions?: {
|
|
1184
1227
|
customClaims?: Record<string, any>;
|
|
1228
|
+
templateId?: string;
|
|
1185
1229
|
templateOptions?: {
|
|
1186
1230
|
[x: string]: string;
|
|
1187
1231
|
};
|
|
@@ -1307,14 +1351,19 @@ declare const decoratedCreateSdk: <A extends boolean>({ persistTokens: isPersist
|
|
|
1307
1351
|
locale?: string;
|
|
1308
1352
|
oidcPrompt?: string;
|
|
1309
1353
|
oidcErrorRedirectUri?: string;
|
|
1310
|
-
|
|
1354
|
+
nativeOptions?: {
|
|
1355
|
+
platform: "ios" | "android";
|
|
1356
|
+
oauthProvider?: string;
|
|
1357
|
+
oauthRedirect?: string;
|
|
1358
|
+
};
|
|
1359
|
+
}, "tenant" | "redirectUrl" | "redirectAuth" | "oidcIdpStateId" | "samlIdpStateId" | "samlIdpUsername" | "ssoAppId" | "oidcLoginHint" | "preview" | "abTestingKey" | "client" | "locale" | "oidcPrompt" | "oidcErrorRedirectUri" | "nativeOptions"> & {
|
|
1311
1360
|
lastAuth?: Omit<{
|
|
1312
1361
|
authMethod?: "webauthn" | "otp" | "oauth" | "saml" | "totp" | "magiclink" | "enchantedlink";
|
|
1313
1362
|
oauthProvider?: string;
|
|
1314
1363
|
name?: string;
|
|
1315
1364
|
loginId?: string;
|
|
1316
1365
|
}, "loginId" | "name">;
|
|
1317
|
-
}, conditionInteractionId?: string, interactionId?: string,
|
|
1366
|
+
}, conditionInteractionId?: string, interactionId?: string, componentsVersion?: string, flowVersions?: Record<string, number>, input?: {
|
|
1318
1367
|
[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 | (string | number | boolean | any)[])[])[])[])[])[])[])[])[])[])[];
|
|
1319
1368
|
}) => Promise<_descope_core_js_sdk.SdkResponse<_descope_core_js_sdk.FlowResponse>>;
|
|
1320
1369
|
next: (executionId: string, stepId: string, interactionId: string, version?: number, componentsVersion?: string, input?: {
|
|
@@ -1399,6 +1448,7 @@ declare const decoratedCreateSdk: <A extends boolean>({ persistTokens: isPersist
|
|
|
1399
1448
|
phone?: string;
|
|
1400
1449
|
}, signUpOptions?: {
|
|
1401
1450
|
customClaims?: Record<string, any>;
|
|
1451
|
+
templateId?: string;
|
|
1402
1452
|
templateOptions?: {
|
|
1403
1453
|
[x: string]: string;
|
|
1404
1454
|
};
|
|
@@ -1414,6 +1464,7 @@ declare const decoratedCreateSdk: <A extends boolean>({ persistTokens: isPersist
|
|
|
1414
1464
|
phone?: string;
|
|
1415
1465
|
}, signUpOptions?: {
|
|
1416
1466
|
customClaims?: Record<string, any>;
|
|
1467
|
+
templateId?: string;
|
|
1417
1468
|
templateOptions?: {
|
|
1418
1469
|
[x: string]: string;
|
|
1419
1470
|
};
|
|
@@ -1429,6 +1480,7 @@ declare const decoratedCreateSdk: <A extends boolean>({ persistTokens: isPersist
|
|
|
1429
1480
|
phone?: string;
|
|
1430
1481
|
}, signUpOptions?: {
|
|
1431
1482
|
customClaims?: Record<string, any>;
|
|
1483
|
+
templateId?: string;
|
|
1432
1484
|
templateOptions?: {
|
|
1433
1485
|
[x: string]: string;
|
|
1434
1486
|
};
|
|
@@ -1444,6 +1496,7 @@ declare const decoratedCreateSdk: <A extends boolean>({ persistTokens: isPersist
|
|
|
1444
1496
|
phone?: string;
|
|
1445
1497
|
}, signUpOptions?: {
|
|
1446
1498
|
customClaims?: Record<string, any>;
|
|
1499
|
+
templateId?: string;
|
|
1447
1500
|
templateOptions?: {
|
|
1448
1501
|
[x: string]: string;
|
|
1449
1502
|
};
|
|
@@ -1532,6 +1585,7 @@ declare const decoratedCreateSdk: <A extends boolean>({ persistTokens: isPersist
|
|
|
1532
1585
|
phone?: string;
|
|
1533
1586
|
}, signUpOptions?: {
|
|
1534
1587
|
customClaims?: Record<string, any>;
|
|
1588
|
+
templateId?: string;
|
|
1535
1589
|
templateOptions?: {
|
|
1536
1590
|
[x: string]: string;
|
|
1537
1591
|
};
|
|
@@ -1547,6 +1601,7 @@ declare const decoratedCreateSdk: <A extends boolean>({ persistTokens: isPersist
|
|
|
1547
1601
|
phone?: string;
|
|
1548
1602
|
}, signUpOptions?: {
|
|
1549
1603
|
customClaims?: Record<string, any>;
|
|
1604
|
+
templateId?: string;
|
|
1550
1605
|
templateOptions?: {
|
|
1551
1606
|
[x: string]: string;
|
|
1552
1607
|
};
|
|
@@ -1562,6 +1617,7 @@ declare const decoratedCreateSdk: <A extends boolean>({ persistTokens: isPersist
|
|
|
1562
1617
|
phone?: string;
|
|
1563
1618
|
}, signUpOptions?: {
|
|
1564
1619
|
customClaims?: Record<string, any>;
|
|
1620
|
+
templateId?: string;
|
|
1565
1621
|
templateOptions?: {
|
|
1566
1622
|
[x: string]: string;
|
|
1567
1623
|
};
|
|
@@ -1577,6 +1633,7 @@ declare const decoratedCreateSdk: <A extends boolean>({ persistTokens: isPersist
|
|
|
1577
1633
|
phone?: string;
|
|
1578
1634
|
}, signUpOptions?: {
|
|
1579
1635
|
customClaims?: Record<string, any>;
|
|
1636
|
+
templateId?: string;
|
|
1580
1637
|
templateOptions?: {
|
|
1581
1638
|
[x: string]: string;
|
|
1582
1639
|
};
|
|
@@ -1587,6 +1644,7 @@ declare const decoratedCreateSdk: <A extends boolean>({ persistTokens: isPersist
|
|
|
1587
1644
|
signUpOrIn: {
|
|
1588
1645
|
sms: (loginId: string, URI?: string, signUpOptions?: {
|
|
1589
1646
|
customClaims?: Record<string, any>;
|
|
1647
|
+
templateId?: string;
|
|
1590
1648
|
templateOptions?: {
|
|
1591
1649
|
[x: string]: string;
|
|
1592
1650
|
};
|
|
@@ -1595,6 +1653,7 @@ declare const decoratedCreateSdk: <A extends boolean>({ persistTokens: isPersist
|
|
|
1595
1653
|
}>>;
|
|
1596
1654
|
voice: (loginId: string, URI?: string, signUpOptions?: {
|
|
1597
1655
|
customClaims?: Record<string, any>;
|
|
1656
|
+
templateId?: string;
|
|
1598
1657
|
templateOptions?: {
|
|
1599
1658
|
[x: string]: string;
|
|
1600
1659
|
};
|
|
@@ -1603,6 +1662,7 @@ declare const decoratedCreateSdk: <A extends boolean>({ persistTokens: isPersist
|
|
|
1603
1662
|
}>>;
|
|
1604
1663
|
whatsapp: (loginId: string, URI?: string, signUpOptions?: {
|
|
1605
1664
|
customClaims?: Record<string, any>;
|
|
1665
|
+
templateId?: string;
|
|
1606
1666
|
templateOptions?: {
|
|
1607
1667
|
[x: string]: string;
|
|
1608
1668
|
};
|
|
@@ -1611,6 +1671,7 @@ declare const decoratedCreateSdk: <A extends boolean>({ persistTokens: isPersist
|
|
|
1611
1671
|
}>>;
|
|
1612
1672
|
email: (loginId: string, URI?: string, signUpOptions?: {
|
|
1613
1673
|
customClaims?: Record<string, any>;
|
|
1674
|
+
templateId?: string;
|
|
1614
1675
|
templateOptions?: {
|
|
1615
1676
|
[x: string]: string;
|
|
1616
1677
|
};
|
|
@@ -1664,6 +1725,7 @@ declare const decoratedCreateSdk: <A extends boolean>({ persistTokens: isPersist
|
|
|
1664
1725
|
signIn: (loginId: string, URI?: string, loginOptions?: _descope_core_js_sdk.LoginOptions, token?: string) => Promise<_descope_core_js_sdk.SdkResponse<_descope_core_js_sdk.EnchantedLinkResponse>>;
|
|
1665
1726
|
signUpOrIn: (loginId: string, URI?: string, signUpOptions?: {
|
|
1666
1727
|
customClaims?: Record<string, any>;
|
|
1728
|
+
templateId?: string;
|
|
1667
1729
|
templateOptions?: {
|
|
1668
1730
|
[x: string]: string;
|
|
1669
1731
|
};
|
|
@@ -1677,6 +1739,7 @@ declare const decoratedCreateSdk: <A extends boolean>({ persistTokens: isPersist
|
|
|
1677
1739
|
phone?: string;
|
|
1678
1740
|
}, signUpOptions?: {
|
|
1679
1741
|
customClaims?: Record<string, any>;
|
|
1742
|
+
templateId?: string;
|
|
1680
1743
|
templateOptions?: {
|
|
1681
1744
|
[x: string]: string;
|
|
1682
1745
|
};
|
|
@@ -1730,6 +1793,7 @@ declare const decoratedCreateSdk: <A extends boolean>({ persistTokens: isPersist
|
|
|
1730
1793
|
notp: {
|
|
1731
1794
|
signUpOrIn: (loginId?: string, signUpOptions?: {
|
|
1732
1795
|
customClaims?: Record<string, any>;
|
|
1796
|
+
templateId?: string;
|
|
1733
1797
|
templateOptions?: {
|
|
1734
1798
|
[x: string]: string;
|
|
1735
1799
|
};
|
|
@@ -1747,6 +1811,7 @@ declare const decoratedCreateSdk: <A extends boolean>({ persistTokens: isPersist
|
|
|
1747
1811
|
phone?: string;
|
|
1748
1812
|
}, signUpOptions?: {
|
|
1749
1813
|
customClaims?: Record<string, any>;
|
|
1814
|
+
templateId?: string;
|
|
1750
1815
|
templateOptions?: {
|
|
1751
1816
|
[x: string]: string;
|
|
1752
1817
|
};
|
|
@@ -1775,6 +1840,7 @@ declare const decoratedCreateSdk: <A extends boolean>({ persistTokens: isPersist
|
|
|
1775
1840
|
phone?: string;
|
|
1776
1841
|
}, signUpOptions?: {
|
|
1777
1842
|
customClaims?: Record<string, any>;
|
|
1843
|
+
templateId?: string;
|
|
1778
1844
|
templateOptions?: {
|
|
1779
1845
|
[x: string]: string;
|
|
1780
1846
|
};
|
|
@@ -1891,14 +1957,19 @@ declare const decoratedCreateSdk: <A extends boolean>({ persistTokens: isPersist
|
|
|
1891
1957
|
locale?: string;
|
|
1892
1958
|
oidcPrompt?: string;
|
|
1893
1959
|
oidcErrorRedirectUri?: string;
|
|
1894
|
-
|
|
1960
|
+
nativeOptions?: {
|
|
1961
|
+
platform: "ios" | "android";
|
|
1962
|
+
oauthProvider?: string;
|
|
1963
|
+
oauthRedirect?: string;
|
|
1964
|
+
};
|
|
1965
|
+
}, "tenant" | "redirectUrl" | "redirectAuth" | "oidcIdpStateId" | "samlIdpStateId" | "samlIdpUsername" | "ssoAppId" | "oidcLoginHint" | "preview" | "abTestingKey" | "client" | "locale" | "oidcPrompt" | "oidcErrorRedirectUri" | "nativeOptions"> & {
|
|
1895
1966
|
lastAuth?: Omit<{
|
|
1896
1967
|
authMethod?: "webauthn" | "otp" | "oauth" | "saml" | "totp" | "magiclink" | "enchantedlink";
|
|
1897
1968
|
oauthProvider?: string;
|
|
1898
1969
|
name?: string;
|
|
1899
1970
|
loginId?: string;
|
|
1900
1971
|
}, "loginId" | "name">;
|
|
1901
|
-
}, conditionInteractionId?: string, interactionId?: string,
|
|
1972
|
+
}, conditionInteractionId?: string, interactionId?: string, componentsVersion?: string, flowVersions?: Record<string, number>, input?: {
|
|
1902
1973
|
[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 | (string | number | boolean | any)[])[])[])[])[])[])[])[])[])[])[];
|
|
1903
1974
|
}) => Promise<_descope_core_js_sdk.SdkResponse<_descope_core_js_sdk.FlowResponse>>;
|
|
1904
1975
|
next: (executionId: string, stepId: string, interactionId: string, version?: number, componentsVersion?: string, input?: {
|
|
@@ -1983,6 +2054,7 @@ declare const decoratedCreateSdk: <A extends boolean>({ persistTokens: isPersist
|
|
|
1983
2054
|
phone?: string;
|
|
1984
2055
|
}, signUpOptions?: {
|
|
1985
2056
|
customClaims?: Record<string, any>;
|
|
2057
|
+
templateId?: string;
|
|
1986
2058
|
templateOptions?: {
|
|
1987
2059
|
[x: string]: string;
|
|
1988
2060
|
};
|
|
@@ -1998,6 +2070,7 @@ declare const decoratedCreateSdk: <A extends boolean>({ persistTokens: isPersist
|
|
|
1998
2070
|
phone?: string;
|
|
1999
2071
|
}, signUpOptions?: {
|
|
2000
2072
|
customClaims?: Record<string, any>;
|
|
2073
|
+
templateId?: string;
|
|
2001
2074
|
templateOptions?: {
|
|
2002
2075
|
[x: string]: string;
|
|
2003
2076
|
};
|
|
@@ -2013,6 +2086,7 @@ declare const decoratedCreateSdk: <A extends boolean>({ persistTokens: isPersist
|
|
|
2013
2086
|
phone?: string;
|
|
2014
2087
|
}, signUpOptions?: {
|
|
2015
2088
|
customClaims?: Record<string, any>;
|
|
2089
|
+
templateId?: string;
|
|
2016
2090
|
templateOptions?: {
|
|
2017
2091
|
[x: string]: string;
|
|
2018
2092
|
};
|
|
@@ -2028,6 +2102,7 @@ declare const decoratedCreateSdk: <A extends boolean>({ persistTokens: isPersist
|
|
|
2028
2102
|
phone?: string;
|
|
2029
2103
|
}, signUpOptions?: {
|
|
2030
2104
|
customClaims?: Record<string, any>;
|
|
2105
|
+
templateId?: string;
|
|
2031
2106
|
templateOptions?: {
|
|
2032
2107
|
[x: string]: string;
|
|
2033
2108
|
};
|
|
@@ -2116,6 +2191,7 @@ declare const decoratedCreateSdk: <A extends boolean>({ persistTokens: isPersist
|
|
|
2116
2191
|
phone?: string;
|
|
2117
2192
|
}, signUpOptions?: {
|
|
2118
2193
|
customClaims?: Record<string, any>;
|
|
2194
|
+
templateId?: string;
|
|
2119
2195
|
templateOptions?: {
|
|
2120
2196
|
[x: string]: string;
|
|
2121
2197
|
};
|
|
@@ -2131,6 +2207,7 @@ declare const decoratedCreateSdk: <A extends boolean>({ persistTokens: isPersist
|
|
|
2131
2207
|
phone?: string;
|
|
2132
2208
|
}, signUpOptions?: {
|
|
2133
2209
|
customClaims?: Record<string, any>;
|
|
2210
|
+
templateId?: string;
|
|
2134
2211
|
templateOptions?: {
|
|
2135
2212
|
[x: string]: string;
|
|
2136
2213
|
};
|
|
@@ -2146,6 +2223,7 @@ declare const decoratedCreateSdk: <A extends boolean>({ persistTokens: isPersist
|
|
|
2146
2223
|
phone?: string;
|
|
2147
2224
|
}, signUpOptions?: {
|
|
2148
2225
|
customClaims?: Record<string, any>;
|
|
2226
|
+
templateId?: string;
|
|
2149
2227
|
templateOptions?: {
|
|
2150
2228
|
[x: string]: string;
|
|
2151
2229
|
};
|
|
@@ -2161,6 +2239,7 @@ declare const decoratedCreateSdk: <A extends boolean>({ persistTokens: isPersist
|
|
|
2161
2239
|
phone?: string;
|
|
2162
2240
|
}, signUpOptions?: {
|
|
2163
2241
|
customClaims?: Record<string, any>;
|
|
2242
|
+
templateId?: string;
|
|
2164
2243
|
templateOptions?: {
|
|
2165
2244
|
[x: string]: string;
|
|
2166
2245
|
};
|
|
@@ -2171,6 +2250,7 @@ declare const decoratedCreateSdk: <A extends boolean>({ persistTokens: isPersist
|
|
|
2171
2250
|
signUpOrIn: {
|
|
2172
2251
|
sms: (loginId: string, URI?: string, signUpOptions?: {
|
|
2173
2252
|
customClaims?: Record<string, any>;
|
|
2253
|
+
templateId?: string;
|
|
2174
2254
|
templateOptions?: {
|
|
2175
2255
|
[x: string]: string;
|
|
2176
2256
|
};
|
|
@@ -2179,6 +2259,7 @@ declare const decoratedCreateSdk: <A extends boolean>({ persistTokens: isPersist
|
|
|
2179
2259
|
}>>;
|
|
2180
2260
|
voice: (loginId: string, URI?: string, signUpOptions?: {
|
|
2181
2261
|
customClaims?: Record<string, any>;
|
|
2262
|
+
templateId?: string;
|
|
2182
2263
|
templateOptions?: {
|
|
2183
2264
|
[x: string]: string;
|
|
2184
2265
|
};
|
|
@@ -2187,6 +2268,7 @@ declare const decoratedCreateSdk: <A extends boolean>({ persistTokens: isPersist
|
|
|
2187
2268
|
}>>;
|
|
2188
2269
|
whatsapp: (loginId: string, URI?: string, signUpOptions?: {
|
|
2189
2270
|
customClaims?: Record<string, any>;
|
|
2271
|
+
templateId?: string;
|
|
2190
2272
|
templateOptions?: {
|
|
2191
2273
|
[x: string]: string;
|
|
2192
2274
|
};
|
|
@@ -2195,6 +2277,7 @@ declare const decoratedCreateSdk: <A extends boolean>({ persistTokens: isPersist
|
|
|
2195
2277
|
}>>;
|
|
2196
2278
|
email: (loginId: string, URI?: string, signUpOptions?: {
|
|
2197
2279
|
customClaims?: Record<string, any>;
|
|
2280
|
+
templateId?: string;
|
|
2198
2281
|
templateOptions?: {
|
|
2199
2282
|
[x: string]: string;
|
|
2200
2283
|
};
|
|
@@ -2248,6 +2331,7 @@ declare const decoratedCreateSdk: <A extends boolean>({ persistTokens: isPersist
|
|
|
2248
2331
|
signIn: (loginId: string, URI?: string, loginOptions?: _descope_core_js_sdk.LoginOptions, token?: string) => Promise<_descope_core_js_sdk.SdkResponse<_descope_core_js_sdk.EnchantedLinkResponse>>;
|
|
2249
2332
|
signUpOrIn: (loginId: string, URI?: string, signUpOptions?: {
|
|
2250
2333
|
customClaims?: Record<string, any>;
|
|
2334
|
+
templateId?: string;
|
|
2251
2335
|
templateOptions?: {
|
|
2252
2336
|
[x: string]: string;
|
|
2253
2337
|
};
|
|
@@ -2261,6 +2345,7 @@ declare const decoratedCreateSdk: <A extends boolean>({ persistTokens: isPersist
|
|
|
2261
2345
|
phone?: string;
|
|
2262
2346
|
}, signUpOptions?: {
|
|
2263
2347
|
customClaims?: Record<string, any>;
|
|
2348
|
+
templateId?: string;
|
|
2264
2349
|
templateOptions?: {
|
|
2265
2350
|
[x: string]: string;
|
|
2266
2351
|
};
|
|
@@ -2314,6 +2399,7 @@ declare const decoratedCreateSdk: <A extends boolean>({ persistTokens: isPersist
|
|
|
2314
2399
|
notp: {
|
|
2315
2400
|
signUpOrIn: (loginId?: string, signUpOptions?: {
|
|
2316
2401
|
customClaims?: Record<string, any>;
|
|
2402
|
+
templateId?: string;
|
|
2317
2403
|
templateOptions?: {
|
|
2318
2404
|
[x: string]: string;
|
|
2319
2405
|
};
|
|
@@ -2331,6 +2417,7 @@ declare const decoratedCreateSdk: <A extends boolean>({ persistTokens: isPersist
|
|
|
2331
2417
|
phone?: string;
|
|
2332
2418
|
}, signUpOptions?: {
|
|
2333
2419
|
customClaims?: Record<string, any>;
|
|
2420
|
+
templateId?: string;
|
|
2334
2421
|
templateOptions?: {
|
|
2335
2422
|
[x: string]: string;
|
|
2336
2423
|
};
|
|
@@ -2359,6 +2446,7 @@ declare const decoratedCreateSdk: <A extends boolean>({ persistTokens: isPersist
|
|
|
2359
2446
|
phone?: string;
|
|
2360
2447
|
}, signUpOptions?: {
|
|
2361
2448
|
customClaims?: Record<string, any>;
|
|
2449
|
+
templateId?: string;
|
|
2362
2450
|
templateOptions?: {
|
|
2363
2451
|
[x: string]: string;
|
|
2364
2452
|
};
|