@descope/react-sdk 2.0.60 → 2.0.62

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.
@@ -1,4 +1,4 @@
1
- import '@descope/core-js-sdk';
1
+ import type * as _1 from '@descope/core-js-sdk';
2
2
  declare const createSdkWrapper: <P extends Omit<{
3
3
  projectId: string;
4
4
  logger?: {
@@ -21,18 +21,18 @@ declare const createSdkWrapper: <P extends Omit<{
21
21
  };
22
22
  baseUrl?: string;
23
23
  hooks?: {
24
- beforeRequest?: (config: import("@descope/core-js-sdk").RequestConfig) => import("@descope/core-js-sdk").RequestConfig;
25
- afterRequest?: (req: import("@descope/core-js-sdk").RequestConfig, res: Response) => void | Promise<void>;
26
- transformResponse?: (mutableResponse: import("@descope/core-js-sdk").ExtendedResponse) => Promise<import("@descope/core-js-sdk").ExtendedResponse>;
24
+ beforeRequest?: (config: _1.RequestConfig) => _1.RequestConfig;
25
+ afterRequest?: (req: _1.RequestConfig, res: Response) => void | Promise<void>;
26
+ transformResponse?: (mutableResponse: _1.ExtendedResponse) => Promise<_1.ExtendedResponse>;
27
27
  };
28
28
  cookiePolicy?: RequestCredentials;
29
29
  baseHeaders?: HeadersInit;
30
30
  fetch?: typeof fetch;
31
31
  }, "hooks"> & {
32
32
  hooks?: {
33
- beforeRequest?: ((config: import("@descope/core-js-sdk").RequestConfig) => import("@descope/core-js-sdk").RequestConfig) | ((config: import("@descope/core-js-sdk").RequestConfig) => import("@descope/core-js-sdk").RequestConfig)[];
34
- afterRequest?: ((req: import("@descope/core-js-sdk").RequestConfig, res: Response) => void | Promise<void>) | ((req: import("@descope/core-js-sdk").RequestConfig, res: Response) => void | Promise<void>)[];
35
- transformResponse?: (mutableResponse: import("@descope/core-js-sdk").ExtendedResponse) => Promise<import("@descope/core-js-sdk").ExtendedResponse>;
33
+ beforeRequest?: ((config: _1.RequestConfig) => _1.RequestConfig) | ((config: _1.RequestConfig) => _1.RequestConfig)[];
34
+ afterRequest?: ((req: _1.RequestConfig, res: Response) => void | Promise<void>) | ((req: _1.RequestConfig, res: Response) => void | Promise<void>)[];
35
+ transformResponse?: (mutableResponse: _1.ExtendedResponse) => Promise<_1.ExtendedResponse>;
36
36
  };
37
37
  } & {
38
38
  fpKey?: string;
@@ -87,42 +87,42 @@ declare const createSdkWrapper: <P extends Omit<{
87
87
  }, "loginId" | "name">;
88
88
  }, conditionInteractionId?: string, interactionId?: string, version?: number, componentsVersion?: string, input?: {
89
89
  [x: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any[])[])[])[])[])[])[])[])[])[])[];
90
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").FlowResponse>>;
90
+ }) => Promise<_1.SdkResponse<_1.FlowResponse>>;
91
91
  next: (executionId: string, stepId: string, interactionId: string, version?: number, componentsVersion?: string, input?: {
92
92
  [x: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any[])[])[])[])[])[])[])[])[])[])[];
93
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").FlowResponse>>;
93
+ }) => Promise<_1.SdkResponse<_1.FlowResponse>>;
94
94
  };
95
95
  webauthn: {
96
- signUp: ((identifier: string, name: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").JWTResponse>>) & {
97
- start: (loginId: string, origin: string, name: string) => Promise<import("@descope/core-js-sdk").SdkResponse<{
96
+ signUp: ((identifier: string, name: string) => Promise<_1.SdkResponse<_1.JWTResponse>>) & {
97
+ start: (loginId: string, origin: string, name: string) => Promise<_1.SdkResponse<{
98
98
  transactionId: string;
99
99
  options: string;
100
100
  create: boolean;
101
101
  }>>;
102
- finish: (transactionId: string, response: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").JWTResponse>>;
102
+ finish: (transactionId: string, response: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
103
103
  };
104
- signIn: ((identifier: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").JWTResponse>>) & {
105
- start: (loginId: string, origin: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<{
104
+ signIn: ((identifier: string) => Promise<_1.SdkResponse<_1.JWTResponse>>) & {
105
+ start: (loginId: string, origin: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
106
106
  transactionId: string;
107
107
  options: string;
108
108
  create: boolean;
109
109
  }>>;
110
- finish: (transactionId: string, response: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").JWTResponse>>;
110
+ finish: (transactionId: string, response: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
111
111
  };
112
- signUpOrIn: ((identifier: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").JWTResponse>>) & {
113
- start: (loginId: string, origin: string) => Promise<import("@descope/core-js-sdk").SdkResponse<{
112
+ signUpOrIn: ((identifier: string) => Promise<_1.SdkResponse<_1.JWTResponse>>) & {
113
+ start: (loginId: string, origin: string) => Promise<_1.SdkResponse<{
114
114
  transactionId: string;
115
115
  options: string;
116
116
  create: boolean;
117
117
  }>>;
118
118
  };
119
- update: ((identifier: string, token: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").ResponseData>>) & {
120
- start: (loginId: string, origin: string, token: string) => Promise<import("@descope/core-js-sdk").SdkResponse<{
119
+ update: ((identifier: string, token: string) => Promise<_1.SdkResponse<_1.ResponseData>>) & {
120
+ start: (loginId: string, origin: string, token: string) => Promise<_1.SdkResponse<{
121
121
  transactionId: string;
122
122
  options: string;
123
123
  create: boolean;
124
124
  }>>;
125
- finish: (transactionId: string, response: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").ResponseData>>;
125
+ finish: (transactionId: string, response: string) => Promise<_1.SdkResponse<_1.ResponseData>>;
126
126
  };
127
127
  helpers: {
128
128
  create: (options: string) => Promise<string>;
@@ -132,31 +132,31 @@ declare const createSdkWrapper: <P extends Omit<{
132
132
  };
133
133
  };
134
134
  fedcm: {
135
- oneTap(provider?: string, oneTapConfig?: import("@descope/web-js-sdk").OneTapConfig, loginOptions?: import("@descope/core-js-sdk").LoginOptions, onSkip?: () => void): Promise<unknown>;
136
- launch(context?: "signin" | "signup" | "use" | "continue"): Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").JWTResponse>>;
135
+ oneTap(provider?: string, oneTapConfig?: import("@descope/web-js-sdk").OneTapConfig, loginOptions?: _1.LoginOptions, onSkip?: () => void): Promise<unknown>;
136
+ launch(context?: "signin" | "signup" | "use" | "continue"): Promise<_1.SdkResponse<_1.JWTResponse>>;
137
137
  isSupported(): boolean;
138
138
  };
139
139
  accessKey: {
140
- exchange: (accessKey: string, loginOptions?: import("@descope/core-js-sdk").AccessKeyLoginOptions) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").ExchangeAccessKeyResponse>>;
140
+ exchange: (accessKey: string, loginOptions?: _1.AccessKeyLoginOptions) => Promise<_1.SdkResponse<_1.ExchangeAccessKeyResponse>>;
141
141
  };
142
142
  otp: {
143
143
  verify: {
144
- sms: (loginId: string, code: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").JWTResponse>>;
145
- voice: (loginId: string, code: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").JWTResponse>>;
146
- whatsapp: (loginId: string, code: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").JWTResponse>>;
147
- email: (loginId: string, code: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").JWTResponse>>;
144
+ sms: (loginId: string, code: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
145
+ voice: (loginId: string, code: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
146
+ whatsapp: (loginId: string, code: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
147
+ email: (loginId: string, code: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
148
148
  };
149
149
  signIn: {
150
- sms: (loginId: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<{
150
+ sms: (loginId: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
151
151
  maskedPhone: string;
152
152
  }>>;
153
- voice: (loginId: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<{
153
+ voice: (loginId: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
154
154
  maskedPhone: string;
155
155
  }>>;
156
- whatsapp: (loginId: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<{
156
+ whatsapp: (loginId: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
157
157
  maskedPhone: string;
158
158
  }>>;
159
- email: (loginId: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<{
159
+ email: (loginId: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
160
160
  maskedEmail: string;
161
161
  }>>;
162
162
  };
@@ -173,7 +173,7 @@ declare const createSdkWrapper: <P extends Omit<{
173
173
  templateOptions?: {
174
174
  [x: string]: string;
175
175
  };
176
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<{
176
+ }) => Promise<_1.SdkResponse<{
177
177
  maskedPhone: string;
178
178
  }>>;
179
179
  voice: (loginId: string, user?: {
@@ -188,7 +188,7 @@ declare const createSdkWrapper: <P extends Omit<{
188
188
  templateOptions?: {
189
189
  [x: string]: string;
190
190
  };
191
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<{
191
+ }) => Promise<_1.SdkResponse<{
192
192
  maskedPhone: string;
193
193
  }>>;
194
194
  whatsapp: (loginId: string, user?: {
@@ -203,7 +203,7 @@ declare const createSdkWrapper: <P extends Omit<{
203
203
  templateOptions?: {
204
204
  [x: string]: string;
205
205
  };
206
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<{
206
+ }) => Promise<_1.SdkResponse<{
207
207
  maskedPhone: string;
208
208
  }>>;
209
209
  email: (loginId: string, user?: {
@@ -218,21 +218,21 @@ declare const createSdkWrapper: <P extends Omit<{
218
218
  templateOptions?: {
219
219
  [x: string]: string;
220
220
  };
221
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<{
221
+ }) => Promise<_1.SdkResponse<{
222
222
  maskedEmail: string;
223
223
  }>>;
224
224
  };
225
225
  signUpOrIn: {
226
- sms: (loginId: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<{
226
+ sms: (loginId: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
227
227
  maskedPhone: string;
228
228
  }>>;
229
- voice: (loginId: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<{
229
+ voice: (loginId: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
230
230
  maskedPhone: string;
231
231
  }>>;
232
- whatsapp: (loginId: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<{
232
+ whatsapp: (loginId: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
233
233
  maskedPhone: string;
234
234
  }>>;
235
- email: (loginId: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<{
235
+ email: (loginId: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
236
236
  maskedEmail: string;
237
237
  }>>;
238
238
  };
@@ -243,7 +243,7 @@ declare const createSdkWrapper: <P extends Omit<{
243
243
  templateOptions?: {
244
244
  [x: string]: string;
245
245
  };
246
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<{
246
+ }) => Promise<_1.SdkResponse<{
247
247
  maskedEmail: string;
248
248
  }>>;
249
249
  phone: {
@@ -253,7 +253,7 @@ declare const createSdkWrapper: <P extends Omit<{
253
253
  templateOptions?: {
254
254
  [x: string]: string;
255
255
  };
256
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<{
256
+ }) => Promise<_1.SdkResponse<{
257
257
  maskedPhone: string;
258
258
  }>>;
259
259
  voice: <T_1_1 extends boolean>(loginId: string, phone: string, token?: string, updateOptions?: {
@@ -262,7 +262,7 @@ declare const createSdkWrapper: <P extends Omit<{
262
262
  templateOptions?: {
263
263
  [x: string]: string;
264
264
  };
265
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<{
265
+ }) => Promise<_1.SdkResponse<{
266
266
  maskedPhone: string;
267
267
  }>>;
268
268
  whatsapp: <T_1_2 extends boolean>(loginId: string, phone: string, token?: string, updateOptions?: {
@@ -271,25 +271,25 @@ declare const createSdkWrapper: <P extends Omit<{
271
271
  templateOptions?: {
272
272
  [x: string]: string;
273
273
  };
274
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<{
274
+ }) => Promise<_1.SdkResponse<{
275
275
  maskedPhone: string;
276
276
  }>>;
277
277
  };
278
278
  };
279
279
  };
280
280
  magicLink: {
281
- verify: (token: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").JWTResponse>>;
281
+ verify: (token: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
282
282
  signIn: {
283
- sms: (loginId: string, URI: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<{
283
+ sms: (loginId: string, URI: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
284
284
  maskedPhone: string;
285
285
  }>>;
286
- voice: (loginId: string, URI: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<{
286
+ voice: (loginId: string, URI: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
287
287
  maskedPhone: string;
288
288
  }>>;
289
- whatsapp: (loginId: string, URI: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<{
289
+ whatsapp: (loginId: string, URI: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
290
290
  maskedPhone: string;
291
291
  }>>;
292
- email: (loginId: string, URI: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<{
292
+ email: (loginId: string, URI: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
293
293
  maskedEmail: string;
294
294
  }>>;
295
295
  };
@@ -306,7 +306,7 @@ declare const createSdkWrapper: <P extends Omit<{
306
306
  templateOptions?: {
307
307
  [x: string]: string;
308
308
  };
309
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<{
309
+ }) => Promise<_1.SdkResponse<{
310
310
  maskedPhone: string;
311
311
  }>>;
312
312
  voice: (loginId: string, URI: string, user?: {
@@ -321,7 +321,7 @@ declare const createSdkWrapper: <P extends Omit<{
321
321
  templateOptions?: {
322
322
  [x: string]: string;
323
323
  };
324
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<{
324
+ }) => Promise<_1.SdkResponse<{
325
325
  maskedPhone: string;
326
326
  }>>;
327
327
  whatsapp: (loginId: string, URI: string, user?: {
@@ -336,7 +336,7 @@ declare const createSdkWrapper: <P extends Omit<{
336
336
  templateOptions?: {
337
337
  [x: string]: string;
338
338
  };
339
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<{
339
+ }) => Promise<_1.SdkResponse<{
340
340
  maskedPhone: string;
341
341
  }>>;
342
342
  email: (loginId: string, URI: string, user?: {
@@ -351,7 +351,7 @@ declare const createSdkWrapper: <P extends Omit<{
351
351
  templateOptions?: {
352
352
  [x: string]: string;
353
353
  };
354
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<{
354
+ }) => Promise<_1.SdkResponse<{
355
355
  maskedEmail: string;
356
356
  }>>;
357
357
  };
@@ -361,7 +361,7 @@ declare const createSdkWrapper: <P extends Omit<{
361
361
  templateOptions?: {
362
362
  [x: string]: string;
363
363
  };
364
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<{
364
+ }) => Promise<_1.SdkResponse<{
365
365
  maskedPhone: string;
366
366
  }>>;
367
367
  voice: (loginId: string, URI?: string, signUpOptions?: {
@@ -369,7 +369,7 @@ declare const createSdkWrapper: <P extends Omit<{
369
369
  templateOptions?: {
370
370
  [x: string]: string;
371
371
  };
372
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<{
372
+ }) => Promise<_1.SdkResponse<{
373
373
  maskedPhone: string;
374
374
  }>>;
375
375
  whatsapp: (loginId: string, URI?: string, signUpOptions?: {
@@ -377,7 +377,7 @@ declare const createSdkWrapper: <P extends Omit<{
377
377
  templateOptions?: {
378
378
  [x: string]: string;
379
379
  };
380
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<{
380
+ }) => Promise<_1.SdkResponse<{
381
381
  maskedPhone: string;
382
382
  }>>;
383
383
  email: (loginId: string, URI?: string, signUpOptions?: {
@@ -385,7 +385,7 @@ declare const createSdkWrapper: <P extends Omit<{
385
385
  templateOptions?: {
386
386
  [x: string]: string;
387
387
  };
388
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<{
388
+ }) => Promise<_1.SdkResponse<{
389
389
  maskedEmail: string;
390
390
  }>>;
391
391
  };
@@ -396,7 +396,7 @@ declare const createSdkWrapper: <P extends Omit<{
396
396
  templateOptions?: {
397
397
  [x: string]: string;
398
398
  };
399
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<{
399
+ }) => Promise<_1.SdkResponse<{
400
400
  maskedEmail: string;
401
401
  }>>;
402
402
  phone: {
@@ -406,7 +406,7 @@ declare const createSdkWrapper: <P extends Omit<{
406
406
  templateOptions?: {
407
407
  [x: string]: string;
408
408
  };
409
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<{
409
+ }) => Promise<_1.SdkResponse<{
410
410
  maskedPhone: string;
411
411
  }>>;
412
412
  voice: <T_3_1 extends boolean>(loginId: string, phone: string, URI?: string, token?: string, updateOptions?: {
@@ -415,7 +415,7 @@ declare const createSdkWrapper: <P extends Omit<{
415
415
  templateOptions?: {
416
416
  [x: string]: string;
417
417
  };
418
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<{
418
+ }) => Promise<_1.SdkResponse<{
419
419
  maskedPhone: string;
420
420
  }>>;
421
421
  whatsapp: <T_3_2 extends boolean>(loginId: string, phone: string, URI?: string, token?: string, updateOptions?: {
@@ -424,21 +424,21 @@ declare const createSdkWrapper: <P extends Omit<{
424
424
  templateOptions?: {
425
425
  [x: string]: string;
426
426
  };
427
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<{
427
+ }) => Promise<_1.SdkResponse<{
428
428
  maskedPhone: string;
429
429
  }>>;
430
430
  };
431
431
  };
432
432
  };
433
433
  enchantedLink: {
434
- verify: (token: string) => Promise<import("@descope/core-js-sdk").SdkResponse<never>>;
435
- signIn: (loginId: string, URI?: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").EnchantedLinkResponse>>;
434
+ verify: (token: string) => Promise<_1.SdkResponse<never>>;
435
+ signIn: (loginId: string, URI?: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<_1.EnchantedLinkResponse>>;
436
436
  signUpOrIn: (loginId: string, URI?: string, signUpOptions?: {
437
437
  customClaims?: Record<string, any>;
438
438
  templateOptions?: {
439
439
  [x: string]: string;
440
440
  };
441
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").EnchantedLinkResponse>>;
441
+ }) => Promise<_1.SdkResponse<_1.EnchantedLinkResponse>>;
442
442
  signUp: (loginId: string, URI?: string, user?: {
443
443
  email?: string;
444
444
  name?: string;
@@ -451,11 +451,11 @@ declare const createSdkWrapper: <P extends Omit<{
451
451
  templateOptions?: {
452
452
  [x: string]: string;
453
453
  };
454
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").EnchantedLinkResponse>>;
454
+ }) => Promise<_1.SdkResponse<_1.EnchantedLinkResponse>>;
455
455
  waitForSession: (pendingRef: string, config?: {
456
456
  pollingIntervalMs: number;
457
457
  timeoutMs: number;
458
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").JWTResponse>>;
458
+ }) => Promise<_1.SdkResponse<_1.JWTResponse>>;
459
459
  update: {
460
460
  email: <T_4 extends boolean>(loginId: string, email: string, URI?: string, token?: string, updateOptions?: {
461
461
  addToLoginIDs?: T_4;
@@ -463,28 +463,28 @@ declare const createSdkWrapper: <P extends Omit<{
463
463
  templateOptions?: {
464
464
  [x: string]: string;
465
465
  };
466
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").EnchantedLinkResponse>>;
466
+ }) => Promise<_1.SdkResponse<_1.EnchantedLinkResponse>>;
467
467
  };
468
468
  };
469
469
  oauth: {
470
- start: ((provider: string, redirectUrl?: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").ResponseData>>) & {
471
- google: (redirectURL?: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").URLResponse>>;
472
- facebook: (redirectURL?: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").URLResponse>>;
473
- github: (redirectURL?: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").URLResponse>>;
474
- microsoft: (redirectURL?: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").URLResponse>>;
475
- gitlab: (redirectURL?: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").URLResponse>>;
476
- apple: (redirectURL?: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").URLResponse>>;
477
- discord: (redirectURL?: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").URLResponse>>;
478
- linkedin: (redirectURL?: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").URLResponse>>;
479
- slack: (redirectURL?: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").URLResponse>>;
480
- };
481
- exchange: (code: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").JWTResponse>>;
482
- startNative: (provider: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, implicit?: boolean) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").ResponseData>>;
483
- finishNative: (provider: string, stateId: string, user?: string, code?: string, idToken?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").ResponseData>>;
470
+ start: ((provider: string, redirectUrl?: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<_1.ResponseData>>) & {
471
+ google: (redirectURL?: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
472
+ facebook: (redirectURL?: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
473
+ github: (redirectURL?: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
474
+ microsoft: (redirectURL?: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
475
+ gitlab: (redirectURL?: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
476
+ apple: (redirectURL?: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
477
+ discord: (redirectURL?: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
478
+ linkedin: (redirectURL?: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
479
+ slack: (redirectURL?: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
480
+ };
481
+ exchange: (code: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
482
+ startNative: (provider: string, loginOptions?: _1.LoginOptions, implicit?: boolean) => Promise<_1.SdkResponse<_1.ResponseData>>;
483
+ finishNative: (provider: string, stateId: string, user?: string, code?: string, idToken?: string) => Promise<_1.SdkResponse<_1.ResponseData>>;
484
484
  };
485
485
  saml: {
486
- start: (tenantIdOrEmail: string, redirectUrl?: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").URLResponse>>;
487
- exchange: (code: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").JWTResponse>>;
486
+ start: (tenantIdOrEmail: string, redirectUrl?: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
487
+ exchange: (code: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
488
488
  };
489
489
  totp: {
490
490
  signUp: (loginId: string, user?: {
@@ -494,9 +494,9 @@ declare const createSdkWrapper: <P extends Omit<{
494
494
  middleName?: string;
495
495
  familyName?: string;
496
496
  phone?: string;
497
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").TOTPResponse>>;
498
- verify: (loginId: string, code: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").JWTResponse>>;
499
- update: (loginId: string, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").TOTPResponse>>;
497
+ }) => Promise<_1.SdkResponse<_1.TOTPResponse>>;
498
+ verify: (loginId: string, code: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
499
+ update: (loginId: string, token?: string) => Promise<_1.SdkResponse<_1.TOTPResponse>>;
500
500
  };
501
501
  notp: {
502
502
  signUpOrIn: (loginId?: string, signUpOptions?: {
@@ -504,7 +504,7 @@ declare const createSdkWrapper: <P extends Omit<{
504
504
  templateOptions?: {
505
505
  [x: string]: string;
506
506
  };
507
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<{
507
+ }) => Promise<_1.SdkResponse<{
508
508
  pendingRef: string;
509
509
  redirectUrl: string;
510
510
  image: string;
@@ -521,12 +521,12 @@ declare const createSdkWrapper: <P extends Omit<{
521
521
  templateOptions?: {
522
522
  [x: string]: string;
523
523
  };
524
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<{
524
+ }) => Promise<_1.SdkResponse<{
525
525
  pendingRef: string;
526
526
  redirectUrl: string;
527
527
  image: string;
528
528
  }>>;
529
- signIn: (loginId?: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<{
529
+ signIn: (loginId?: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
530
530
  pendingRef: string;
531
531
  redirectUrl: string;
532
532
  image: string;
@@ -534,7 +534,7 @@ declare const createSdkWrapper: <P extends Omit<{
534
534
  waitForSession: (pendingRef: string, config?: {
535
535
  pollingIntervalMs: number;
536
536
  timeoutMs: number;
537
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").JWTResponse>>;
537
+ }) => Promise<_1.SdkResponse<_1.JWTResponse>>;
538
538
  };
539
539
  password: {
540
540
  signUp: (loginId: string, password: string, user?: {
@@ -549,19 +549,19 @@ declare const createSdkWrapper: <P extends Omit<{
549
549
  templateOptions?: {
550
550
  [x: string]: string;
551
551
  };
552
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").JWTResponse>>;
553
- signIn: (loginId: string, password: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").JWTResponse>>;
552
+ }) => Promise<_1.SdkResponse<_1.JWTResponse>>;
553
+ signIn: (loginId: string, password: string, loginOptions?: _1.LoginOptions) => Promise<_1.SdkResponse<_1.JWTResponse>>;
554
554
  sendReset: (loginId: string, redirectUrl?: string, templateOptions?: {
555
555
  [x: string]: string;
556
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<{
556
+ }) => Promise<_1.SdkResponse<{
557
557
  resetMethod: string;
558
558
  pendingRef?: string;
559
559
  linkId?: string;
560
560
  maskedEmail: string;
561
561
  }>>;
562
- update: (loginId: string, newPassword: string, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<never>>;
563
- replace: (loginId: string, oldPassword: string, newPassword: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").JWTResponse>>;
564
- policy: () => Promise<import("@descope/core-js-sdk").SdkResponse<{
562
+ update: (loginId: string, newPassword: string, token?: string) => Promise<_1.SdkResponse<never>>;
563
+ replace: (loginId: string, oldPassword: string, newPassword: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
564
+ policy: () => Promise<_1.SdkResponse<{
565
565
  minLength: number;
566
566
  lowercase: boolean;
567
567
  uppercase: boolean;
@@ -569,12 +569,12 @@ declare const createSdkWrapper: <P extends Omit<{
569
569
  nonAlphanumeric: boolean;
570
570
  }>>;
571
571
  };
572
- refresh: (token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").JWTResponse>>;
573
- selectTenant: (tenantId: string, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").JWTResponse>>;
574
- logout: (token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<never>>;
575
- logoutAll: (token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<never>>;
576
- me: (token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").UserResponse>>;
577
- history: (token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").UserHistoryResponse>>;
572
+ refresh: (token?: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
573
+ selectTenant: (tenantId: string, token?: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
574
+ logout: (token?: string) => Promise<_1.SdkResponse<never>>;
575
+ logoutAll: (token?: string) => Promise<_1.SdkResponse<never>>;
576
+ me: (token?: string) => Promise<_1.SdkResponse<_1.UserResponse>>;
577
+ history: (token?: string) => Promise<_1.SdkResponse<_1.UserHistoryResponse>>;
578
578
  isJwtExpired: (token: string) => boolean;
579
579
  getTenants: (token: string) => string[];
580
580
  getJwtPermissions: (token: string, tenant?: string) => string[];
@@ -616,9 +616,9 @@ declare const createSdkWrapper: <P extends Omit<{
616
616
  token?: string;
617
617
  }) => Promise<Response>;
618
618
  hooks?: {
619
- beforeRequest?: (config: import("@descope/core-js-sdk").RequestConfig) => import("@descope/core-js-sdk").RequestConfig;
620
- afterRequest?: (req: import("@descope/core-js-sdk").RequestConfig, res: Response) => void | Promise<void>;
621
- transformResponse?: (mutableResponse: import("@descope/core-js-sdk").ExtendedResponse) => Promise<import("@descope/core-js-sdk").ExtendedResponse>;
619
+ beforeRequest?: (config: _1.RequestConfig) => _1.RequestConfig;
620
+ afterRequest?: (req: _1.RequestConfig, res: Response) => void | Promise<void>;
621
+ transformResponse?: (mutableResponse: _1.ExtendedResponse) => Promise<_1.ExtendedResponse>;
622
622
  };
623
623
  buildUrl: (path: string, queryParams?: {
624
624
  [key: string]: string;
@@ -664,42 +664,42 @@ declare const createSdkWrapper: <P extends Omit<{
664
664
  }, "loginId" | "name">;
665
665
  }, conditionInteractionId?: string, interactionId?: string, version?: number, componentsVersion?: string, input?: {
666
666
  [x: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any[])[])[])[])[])[])[])[])[])[])[];
667
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").FlowResponse>>;
667
+ }) => Promise<_1.SdkResponse<_1.FlowResponse>>;
668
668
  next: (executionId: string, stepId: string, interactionId: string, version?: number, componentsVersion?: string, input?: {
669
669
  [x: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any[])[])[])[])[])[])[])[])[])[])[];
670
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").FlowResponse>>;
670
+ }) => Promise<_1.SdkResponse<_1.FlowResponse>>;
671
671
  };
672
672
  webauthn: {
673
- signUp: ((identifier: string, name: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").JWTResponse>>) & {
674
- start: (loginId: string, origin: string, name: string) => Promise<import("@descope/core-js-sdk").SdkResponse<{
673
+ signUp: ((identifier: string, name: string) => Promise<_1.SdkResponse<_1.JWTResponse>>) & {
674
+ start: (loginId: string, origin: string, name: string) => Promise<_1.SdkResponse<{
675
675
  transactionId: string;
676
676
  options: string;
677
677
  create: boolean;
678
678
  }>>;
679
- finish: (transactionId: string, response: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").JWTResponse>>;
679
+ finish: (transactionId: string, response: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
680
680
  };
681
- signIn: ((identifier: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").JWTResponse>>) & {
682
- start: (loginId: string, origin: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<{
681
+ signIn: ((identifier: string) => Promise<_1.SdkResponse<_1.JWTResponse>>) & {
682
+ start: (loginId: string, origin: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
683
683
  transactionId: string;
684
684
  options: string;
685
685
  create: boolean;
686
686
  }>>;
687
- finish: (transactionId: string, response: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").JWTResponse>>;
687
+ finish: (transactionId: string, response: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
688
688
  };
689
- signUpOrIn: ((identifier: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").JWTResponse>>) & {
690
- start: (loginId: string, origin: string) => Promise<import("@descope/core-js-sdk").SdkResponse<{
689
+ signUpOrIn: ((identifier: string) => Promise<_1.SdkResponse<_1.JWTResponse>>) & {
690
+ start: (loginId: string, origin: string) => Promise<_1.SdkResponse<{
691
691
  transactionId: string;
692
692
  options: string;
693
693
  create: boolean;
694
694
  }>>;
695
695
  };
696
- update: ((identifier: string, token: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").ResponseData>>) & {
697
- start: (loginId: string, origin: string, token: string) => Promise<import("@descope/core-js-sdk").SdkResponse<{
696
+ update: ((identifier: string, token: string) => Promise<_1.SdkResponse<_1.ResponseData>>) & {
697
+ start: (loginId: string, origin: string, token: string) => Promise<_1.SdkResponse<{
698
698
  transactionId: string;
699
699
  options: string;
700
700
  create: boolean;
701
701
  }>>;
702
- finish: (transactionId: string, response: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").ResponseData>>;
702
+ finish: (transactionId: string, response: string) => Promise<_1.SdkResponse<_1.ResponseData>>;
703
703
  };
704
704
  helpers: {
705
705
  create: (options: string) => Promise<string>;
@@ -709,31 +709,31 @@ declare const createSdkWrapper: <P extends Omit<{
709
709
  };
710
710
  };
711
711
  fedcm: {
712
- oneTap(provider?: string, oneTapConfig?: import("@descope/web-js-sdk").OneTapConfig, loginOptions?: import("@descope/core-js-sdk").LoginOptions, onSkip?: () => void): Promise<unknown>;
713
- launch(context?: "signin" | "signup" | "use" | "continue"): Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").JWTResponse>>;
712
+ oneTap(provider?: string, oneTapConfig?: import("@descope/web-js-sdk").OneTapConfig, loginOptions?: _1.LoginOptions, onSkip?: () => void): Promise<unknown>;
713
+ launch(context?: "signin" | "signup" | "use" | "continue"): Promise<_1.SdkResponse<_1.JWTResponse>>;
714
714
  isSupported(): boolean;
715
715
  };
716
716
  accessKey: {
717
- exchange: (accessKey: string, loginOptions?: import("@descope/core-js-sdk").AccessKeyLoginOptions) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").ExchangeAccessKeyResponse>>;
717
+ exchange: (accessKey: string, loginOptions?: _1.AccessKeyLoginOptions) => Promise<_1.SdkResponse<_1.ExchangeAccessKeyResponse>>;
718
718
  };
719
719
  otp: {
720
720
  verify: {
721
- sms: (loginId: string, code: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").JWTResponse>>;
722
- voice: (loginId: string, code: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").JWTResponse>>;
723
- whatsapp: (loginId: string, code: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").JWTResponse>>;
724
- email: (loginId: string, code: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").JWTResponse>>;
721
+ sms: (loginId: string, code: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
722
+ voice: (loginId: string, code: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
723
+ whatsapp: (loginId: string, code: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
724
+ email: (loginId: string, code: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
725
725
  };
726
726
  signIn: {
727
- sms: (loginId: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<{
727
+ sms: (loginId: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
728
728
  maskedPhone: string;
729
729
  }>>;
730
- voice: (loginId: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<{
730
+ voice: (loginId: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
731
731
  maskedPhone: string;
732
732
  }>>;
733
- whatsapp: (loginId: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<{
733
+ whatsapp: (loginId: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
734
734
  maskedPhone: string;
735
735
  }>>;
736
- email: (loginId: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<{
736
+ email: (loginId: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
737
737
  maskedEmail: string;
738
738
  }>>;
739
739
  };
@@ -750,7 +750,7 @@ declare const createSdkWrapper: <P extends Omit<{
750
750
  templateOptions?: {
751
751
  [x: string]: string;
752
752
  };
753
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<{
753
+ }) => Promise<_1.SdkResponse<{
754
754
  maskedPhone: string;
755
755
  }>>;
756
756
  voice: (loginId: string, user?: {
@@ -765,7 +765,7 @@ declare const createSdkWrapper: <P extends Omit<{
765
765
  templateOptions?: {
766
766
  [x: string]: string;
767
767
  };
768
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<{
768
+ }) => Promise<_1.SdkResponse<{
769
769
  maskedPhone: string;
770
770
  }>>;
771
771
  whatsapp: (loginId: string, user?: {
@@ -780,7 +780,7 @@ declare const createSdkWrapper: <P extends Omit<{
780
780
  templateOptions?: {
781
781
  [x: string]: string;
782
782
  };
783
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<{
783
+ }) => Promise<_1.SdkResponse<{
784
784
  maskedPhone: string;
785
785
  }>>;
786
786
  email: (loginId: string, user?: {
@@ -795,21 +795,21 @@ declare const createSdkWrapper: <P extends Omit<{
795
795
  templateOptions?: {
796
796
  [x: string]: string;
797
797
  };
798
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<{
798
+ }) => Promise<_1.SdkResponse<{
799
799
  maskedEmail: string;
800
800
  }>>;
801
801
  };
802
802
  signUpOrIn: {
803
- sms: (loginId: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<{
803
+ sms: (loginId: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
804
804
  maskedPhone: string;
805
805
  }>>;
806
- voice: (loginId: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<{
806
+ voice: (loginId: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
807
807
  maskedPhone: string;
808
808
  }>>;
809
- whatsapp: (loginId: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<{
809
+ whatsapp: (loginId: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
810
810
  maskedPhone: string;
811
811
  }>>;
812
- email: (loginId: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<{
812
+ email: (loginId: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
813
813
  maskedEmail: string;
814
814
  }>>;
815
815
  };
@@ -820,7 +820,7 @@ declare const createSdkWrapper: <P extends Omit<{
820
820
  templateOptions?: {
821
821
  [x: string]: string;
822
822
  };
823
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<{
823
+ }) => Promise<_1.SdkResponse<{
824
824
  maskedEmail: string;
825
825
  }>>;
826
826
  phone: {
@@ -830,7 +830,7 @@ declare const createSdkWrapper: <P extends Omit<{
830
830
  templateOptions?: {
831
831
  [x: string]: string;
832
832
  };
833
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<{
833
+ }) => Promise<_1.SdkResponse<{
834
834
  maskedPhone: string;
835
835
  }>>;
836
836
  voice: <T_1_4 extends boolean>(loginId: string, phone: string, token?: string, updateOptions?: {
@@ -839,7 +839,7 @@ declare const createSdkWrapper: <P extends Omit<{
839
839
  templateOptions?: {
840
840
  [x: string]: string;
841
841
  };
842
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<{
842
+ }) => Promise<_1.SdkResponse<{
843
843
  maskedPhone: string;
844
844
  }>>;
845
845
  whatsapp: <T_1_5 extends boolean>(loginId: string, phone: string, token?: string, updateOptions?: {
@@ -848,25 +848,25 @@ declare const createSdkWrapper: <P extends Omit<{
848
848
  templateOptions?: {
849
849
  [x: string]: string;
850
850
  };
851
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<{
851
+ }) => Promise<_1.SdkResponse<{
852
852
  maskedPhone: string;
853
853
  }>>;
854
854
  };
855
855
  };
856
856
  };
857
857
  magicLink: {
858
- verify: (token: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").JWTResponse>>;
858
+ verify: (token: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
859
859
  signIn: {
860
- sms: (loginId: string, URI: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<{
860
+ sms: (loginId: string, URI: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
861
861
  maskedPhone: string;
862
862
  }>>;
863
- voice: (loginId: string, URI: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<{
863
+ voice: (loginId: string, URI: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
864
864
  maskedPhone: string;
865
865
  }>>;
866
- whatsapp: (loginId: string, URI: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<{
866
+ whatsapp: (loginId: string, URI: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
867
867
  maskedPhone: string;
868
868
  }>>;
869
- email: (loginId: string, URI: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<{
869
+ email: (loginId: string, URI: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
870
870
  maskedEmail: string;
871
871
  }>>;
872
872
  };
@@ -883,7 +883,7 @@ declare const createSdkWrapper: <P extends Omit<{
883
883
  templateOptions?: {
884
884
  [x: string]: string;
885
885
  };
886
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<{
886
+ }) => Promise<_1.SdkResponse<{
887
887
  maskedPhone: string;
888
888
  }>>;
889
889
  voice: (loginId: string, URI: string, user?: {
@@ -898,7 +898,7 @@ declare const createSdkWrapper: <P extends Omit<{
898
898
  templateOptions?: {
899
899
  [x: string]: string;
900
900
  };
901
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<{
901
+ }) => Promise<_1.SdkResponse<{
902
902
  maskedPhone: string;
903
903
  }>>;
904
904
  whatsapp: (loginId: string, URI: string, user?: {
@@ -913,7 +913,7 @@ declare const createSdkWrapper: <P extends Omit<{
913
913
  templateOptions?: {
914
914
  [x: string]: string;
915
915
  };
916
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<{
916
+ }) => Promise<_1.SdkResponse<{
917
917
  maskedPhone: string;
918
918
  }>>;
919
919
  email: (loginId: string, URI: string, user?: {
@@ -928,7 +928,7 @@ declare const createSdkWrapper: <P extends Omit<{
928
928
  templateOptions?: {
929
929
  [x: string]: string;
930
930
  };
931
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<{
931
+ }) => Promise<_1.SdkResponse<{
932
932
  maskedEmail: string;
933
933
  }>>;
934
934
  };
@@ -938,7 +938,7 @@ declare const createSdkWrapper: <P extends Omit<{
938
938
  templateOptions?: {
939
939
  [x: string]: string;
940
940
  };
941
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<{
941
+ }) => Promise<_1.SdkResponse<{
942
942
  maskedPhone: string;
943
943
  }>>;
944
944
  voice: (loginId: string, URI?: string, signUpOptions?: {
@@ -946,7 +946,7 @@ declare const createSdkWrapper: <P extends Omit<{
946
946
  templateOptions?: {
947
947
  [x: string]: string;
948
948
  };
949
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<{
949
+ }) => Promise<_1.SdkResponse<{
950
950
  maskedPhone: string;
951
951
  }>>;
952
952
  whatsapp: (loginId: string, URI?: string, signUpOptions?: {
@@ -954,7 +954,7 @@ declare const createSdkWrapper: <P extends Omit<{
954
954
  templateOptions?: {
955
955
  [x: string]: string;
956
956
  };
957
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<{
957
+ }) => Promise<_1.SdkResponse<{
958
958
  maskedPhone: string;
959
959
  }>>;
960
960
  email: (loginId: string, URI?: string, signUpOptions?: {
@@ -962,7 +962,7 @@ declare const createSdkWrapper: <P extends Omit<{
962
962
  templateOptions?: {
963
963
  [x: string]: string;
964
964
  };
965
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<{
965
+ }) => Promise<_1.SdkResponse<{
966
966
  maskedEmail: string;
967
967
  }>>;
968
968
  };
@@ -973,7 +973,7 @@ declare const createSdkWrapper: <P extends Omit<{
973
973
  templateOptions?: {
974
974
  [x: string]: string;
975
975
  };
976
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<{
976
+ }) => Promise<_1.SdkResponse<{
977
977
  maskedEmail: string;
978
978
  }>>;
979
979
  phone: {
@@ -983,7 +983,7 @@ declare const createSdkWrapper: <P extends Omit<{
983
983
  templateOptions?: {
984
984
  [x: string]: string;
985
985
  };
986
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<{
986
+ }) => Promise<_1.SdkResponse<{
987
987
  maskedPhone: string;
988
988
  }>>;
989
989
  voice: <T_3_4 extends boolean>(loginId: string, phone: string, URI?: string, token?: string, updateOptions?: {
@@ -992,7 +992,7 @@ declare const createSdkWrapper: <P extends Omit<{
992
992
  templateOptions?: {
993
993
  [x: string]: string;
994
994
  };
995
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<{
995
+ }) => Promise<_1.SdkResponse<{
996
996
  maskedPhone: string;
997
997
  }>>;
998
998
  whatsapp: <T_3_5 extends boolean>(loginId: string, phone: string, URI?: string, token?: string, updateOptions?: {
@@ -1001,21 +1001,21 @@ declare const createSdkWrapper: <P extends Omit<{
1001
1001
  templateOptions?: {
1002
1002
  [x: string]: string;
1003
1003
  };
1004
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<{
1004
+ }) => Promise<_1.SdkResponse<{
1005
1005
  maskedPhone: string;
1006
1006
  }>>;
1007
1007
  };
1008
1008
  };
1009
1009
  };
1010
1010
  enchantedLink: {
1011
- verify: (token: string) => Promise<import("@descope/core-js-sdk").SdkResponse<never>>;
1012
- signIn: (loginId: string, URI?: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").EnchantedLinkResponse>>;
1011
+ verify: (token: string) => Promise<_1.SdkResponse<never>>;
1012
+ signIn: (loginId: string, URI?: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<_1.EnchantedLinkResponse>>;
1013
1013
  signUpOrIn: (loginId: string, URI?: string, signUpOptions?: {
1014
1014
  customClaims?: Record<string, any>;
1015
1015
  templateOptions?: {
1016
1016
  [x: string]: string;
1017
1017
  };
1018
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").EnchantedLinkResponse>>;
1018
+ }) => Promise<_1.SdkResponse<_1.EnchantedLinkResponse>>;
1019
1019
  signUp: (loginId: string, URI?: string, user?: {
1020
1020
  email?: string;
1021
1021
  name?: string;
@@ -1028,11 +1028,11 @@ declare const createSdkWrapper: <P extends Omit<{
1028
1028
  templateOptions?: {
1029
1029
  [x: string]: string;
1030
1030
  };
1031
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").EnchantedLinkResponse>>;
1031
+ }) => Promise<_1.SdkResponse<_1.EnchantedLinkResponse>>;
1032
1032
  waitForSession: (pendingRef: string, config?: {
1033
1033
  pollingIntervalMs: number;
1034
1034
  timeoutMs: number;
1035
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").JWTResponse>>;
1035
+ }) => Promise<_1.SdkResponse<_1.JWTResponse>>;
1036
1036
  update: {
1037
1037
  email: <T_4_1 extends boolean>(loginId: string, email: string, URI?: string, token?: string, updateOptions?: {
1038
1038
  addToLoginIDs?: T_4_1;
@@ -1040,28 +1040,28 @@ declare const createSdkWrapper: <P extends Omit<{
1040
1040
  templateOptions?: {
1041
1041
  [x: string]: string;
1042
1042
  };
1043
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").EnchantedLinkResponse>>;
1043
+ }) => Promise<_1.SdkResponse<_1.EnchantedLinkResponse>>;
1044
1044
  };
1045
1045
  };
1046
1046
  oauth: {
1047
- start: ((provider: string, redirectUrl?: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").ResponseData>>) & {
1048
- google: (redirectURL?: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").URLResponse>>;
1049
- facebook: (redirectURL?: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").URLResponse>>;
1050
- github: (redirectURL?: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").URLResponse>>;
1051
- microsoft: (redirectURL?: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").URLResponse>>;
1052
- gitlab: (redirectURL?: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").URLResponse>>;
1053
- apple: (redirectURL?: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").URLResponse>>;
1054
- discord: (redirectURL?: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").URLResponse>>;
1055
- linkedin: (redirectURL?: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").URLResponse>>;
1056
- slack: (redirectURL?: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").URLResponse>>;
1057
- };
1058
- exchange: (code: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").JWTResponse>>;
1059
- startNative: (provider: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, implicit?: boolean) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").ResponseData>>;
1060
- finishNative: (provider: string, stateId: string, user?: string, code?: string, idToken?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").ResponseData>>;
1047
+ start: ((provider: string, redirectUrl?: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<_1.ResponseData>>) & {
1048
+ google: (redirectURL?: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
1049
+ facebook: (redirectURL?: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
1050
+ github: (redirectURL?: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
1051
+ microsoft: (redirectURL?: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
1052
+ gitlab: (redirectURL?: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
1053
+ apple: (redirectURL?: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
1054
+ discord: (redirectURL?: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
1055
+ linkedin: (redirectURL?: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
1056
+ slack: (redirectURL?: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
1057
+ };
1058
+ exchange: (code: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
1059
+ startNative: (provider: string, loginOptions?: _1.LoginOptions, implicit?: boolean) => Promise<_1.SdkResponse<_1.ResponseData>>;
1060
+ finishNative: (provider: string, stateId: string, user?: string, code?: string, idToken?: string) => Promise<_1.SdkResponse<_1.ResponseData>>;
1061
1061
  };
1062
1062
  saml: {
1063
- start: (tenantIdOrEmail: string, redirectUrl?: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").URLResponse>>;
1064
- exchange: (code: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").JWTResponse>>;
1063
+ start: (tenantIdOrEmail: string, redirectUrl?: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
1064
+ exchange: (code: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
1065
1065
  };
1066
1066
  totp: {
1067
1067
  signUp: (loginId: string, user?: {
@@ -1071,9 +1071,9 @@ declare const createSdkWrapper: <P extends Omit<{
1071
1071
  middleName?: string;
1072
1072
  familyName?: string;
1073
1073
  phone?: string;
1074
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").TOTPResponse>>;
1075
- verify: (loginId: string, code: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").JWTResponse>>;
1076
- update: (loginId: string, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").TOTPResponse>>;
1074
+ }) => Promise<_1.SdkResponse<_1.TOTPResponse>>;
1075
+ verify: (loginId: string, code: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
1076
+ update: (loginId: string, token?: string) => Promise<_1.SdkResponse<_1.TOTPResponse>>;
1077
1077
  };
1078
1078
  notp: {
1079
1079
  signUpOrIn: (loginId?: string, signUpOptions?: {
@@ -1081,7 +1081,7 @@ declare const createSdkWrapper: <P extends Omit<{
1081
1081
  templateOptions?: {
1082
1082
  [x: string]: string;
1083
1083
  };
1084
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<{
1084
+ }) => Promise<_1.SdkResponse<{
1085
1085
  pendingRef: string;
1086
1086
  redirectUrl: string;
1087
1087
  image: string;
@@ -1098,12 +1098,12 @@ declare const createSdkWrapper: <P extends Omit<{
1098
1098
  templateOptions?: {
1099
1099
  [x: string]: string;
1100
1100
  };
1101
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<{
1101
+ }) => Promise<_1.SdkResponse<{
1102
1102
  pendingRef: string;
1103
1103
  redirectUrl: string;
1104
1104
  image: string;
1105
1105
  }>>;
1106
- signIn: (loginId?: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<{
1106
+ signIn: (loginId?: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
1107
1107
  pendingRef: string;
1108
1108
  redirectUrl: string;
1109
1109
  image: string;
@@ -1111,7 +1111,7 @@ declare const createSdkWrapper: <P extends Omit<{
1111
1111
  waitForSession: (pendingRef: string, config?: {
1112
1112
  pollingIntervalMs: number;
1113
1113
  timeoutMs: number;
1114
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").JWTResponse>>;
1114
+ }) => Promise<_1.SdkResponse<_1.JWTResponse>>;
1115
1115
  };
1116
1116
  password: {
1117
1117
  signUp: (loginId: string, password: string, user?: {
@@ -1126,19 +1126,19 @@ declare const createSdkWrapper: <P extends Omit<{
1126
1126
  templateOptions?: {
1127
1127
  [x: string]: string;
1128
1128
  };
1129
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").JWTResponse>>;
1130
- signIn: (loginId: string, password: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").JWTResponse>>;
1129
+ }) => Promise<_1.SdkResponse<_1.JWTResponse>>;
1130
+ signIn: (loginId: string, password: string, loginOptions?: _1.LoginOptions) => Promise<_1.SdkResponse<_1.JWTResponse>>;
1131
1131
  sendReset: (loginId: string, redirectUrl?: string, templateOptions?: {
1132
1132
  [x: string]: string;
1133
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<{
1133
+ }) => Promise<_1.SdkResponse<{
1134
1134
  resetMethod: string;
1135
1135
  pendingRef?: string;
1136
1136
  linkId?: string;
1137
1137
  maskedEmail: string;
1138
1138
  }>>;
1139
- update: (loginId: string, newPassword: string, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<never>>;
1140
- replace: (loginId: string, oldPassword: string, newPassword: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").JWTResponse>>;
1141
- policy: () => Promise<import("@descope/core-js-sdk").SdkResponse<{
1139
+ update: (loginId: string, newPassword: string, token?: string) => Promise<_1.SdkResponse<never>>;
1140
+ replace: (loginId: string, oldPassword: string, newPassword: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
1141
+ policy: () => Promise<_1.SdkResponse<{
1142
1142
  minLength: number;
1143
1143
  lowercase: boolean;
1144
1144
  uppercase: boolean;
@@ -1146,12 +1146,12 @@ declare const createSdkWrapper: <P extends Omit<{
1146
1146
  nonAlphanumeric: boolean;
1147
1147
  }>>;
1148
1148
  };
1149
- refresh: (token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").JWTResponse>>;
1150
- selectTenant: (tenantId: string, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").JWTResponse>>;
1151
- logout: (token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<never>>;
1152
- logoutAll: (token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<never>>;
1153
- me: (token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").UserResponse>>;
1154
- history: (token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").UserHistoryResponse>>;
1149
+ refresh: (token?: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
1150
+ selectTenant: (tenantId: string, token?: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
1151
+ logout: (token?: string) => Promise<_1.SdkResponse<never>>;
1152
+ logoutAll: (token?: string) => Promise<_1.SdkResponse<never>>;
1153
+ me: (token?: string) => Promise<_1.SdkResponse<_1.UserResponse>>;
1154
+ history: (token?: string) => Promise<_1.SdkResponse<_1.UserHistoryResponse>>;
1155
1155
  isJwtExpired: (token: string) => boolean;
1156
1156
  getTenants: (token: string) => string[];
1157
1157
  getJwtPermissions: (token: string, tenant?: string) => string[];
@@ -1193,9 +1193,9 @@ declare const createSdkWrapper: <P extends Omit<{
1193
1193
  token?: string;
1194
1194
  }) => Promise<Response>;
1195
1195
  hooks?: {
1196
- beforeRequest?: (config: import("@descope/core-js-sdk").RequestConfig) => import("@descope/core-js-sdk").RequestConfig;
1197
- afterRequest?: (req: import("@descope/core-js-sdk").RequestConfig, res: Response) => void | Promise<void>;
1198
- transformResponse?: (mutableResponse: import("@descope/core-js-sdk").ExtendedResponse) => Promise<import("@descope/core-js-sdk").ExtendedResponse>;
1196
+ beforeRequest?: (config: _1.RequestConfig) => _1.RequestConfig;
1197
+ afterRequest?: (req: _1.RequestConfig, res: Response) => void | Promise<void>;
1198
+ transformResponse?: (mutableResponse: _1.ExtendedResponse) => Promise<_1.ExtendedResponse>;
1199
1199
  };
1200
1200
  buildUrl: (path: string, queryParams?: {
1201
1201
  [key: string]: string;
@@ -1203,7 +1203,7 @@ declare const createSdkWrapper: <P extends Omit<{
1203
1203
  };
1204
1204
  }) & {
1205
1205
  onSessionTokenChange: (cb: (data: string) => void) => () => any[];
1206
- onUserChange: (cb: (data: import("@descope/core-js-sdk").UserResponse) => void) => () => any[];
1206
+ onUserChange: (cb: (data: _1.UserResponse) => void) => () => any[];
1207
1207
  }) & {
1208
1208
  getLastUserLoginId: () => string;
1209
1209
  getLastUserDisplayName: () => string;
@@ -1251,42 +1251,42 @@ export declare const createTempSdk: () => ((({
1251
1251
  }, "loginId" | "name">;
1252
1252
  }, conditionInteractionId?: string, interactionId?: string, version?: number, componentsVersion?: string, input?: {
1253
1253
  [x: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any[])[])[])[])[])[])[])[])[])[])[];
1254
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").FlowResponse>>;
1254
+ }) => Promise<_1.SdkResponse<_1.FlowResponse>>;
1255
1255
  next: (executionId: string, stepId: string, interactionId: string, version?: number, componentsVersion?: string, input?: {
1256
1256
  [x: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any[])[])[])[])[])[])[])[])[])[])[];
1257
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").FlowResponse>>;
1257
+ }) => Promise<_1.SdkResponse<_1.FlowResponse>>;
1258
1258
  };
1259
1259
  webauthn: {
1260
- signUp: ((identifier: string, name: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").JWTResponse>>) & {
1261
- start: (loginId: string, origin: string, name: string) => Promise<import("@descope/core-js-sdk").SdkResponse<{
1260
+ signUp: ((identifier: string, name: string) => Promise<_1.SdkResponse<_1.JWTResponse>>) & {
1261
+ start: (loginId: string, origin: string, name: string) => Promise<_1.SdkResponse<{
1262
1262
  transactionId: string;
1263
1263
  options: string;
1264
1264
  create: boolean;
1265
1265
  }>>;
1266
- finish: (transactionId: string, response: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").JWTResponse>>;
1266
+ finish: (transactionId: string, response: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
1267
1267
  };
1268
- signIn: ((identifier: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").JWTResponse>>) & {
1269
- start: (loginId: string, origin: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<{
1268
+ signIn: ((identifier: string) => Promise<_1.SdkResponse<_1.JWTResponse>>) & {
1269
+ start: (loginId: string, origin: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
1270
1270
  transactionId: string;
1271
1271
  options: string;
1272
1272
  create: boolean;
1273
1273
  }>>;
1274
- finish: (transactionId: string, response: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").JWTResponse>>;
1274
+ finish: (transactionId: string, response: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
1275
1275
  };
1276
- signUpOrIn: ((identifier: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").JWTResponse>>) & {
1277
- start: (loginId: string, origin: string) => Promise<import("@descope/core-js-sdk").SdkResponse<{
1276
+ signUpOrIn: ((identifier: string) => Promise<_1.SdkResponse<_1.JWTResponse>>) & {
1277
+ start: (loginId: string, origin: string) => Promise<_1.SdkResponse<{
1278
1278
  transactionId: string;
1279
1279
  options: string;
1280
1280
  create: boolean;
1281
1281
  }>>;
1282
1282
  };
1283
- update: ((identifier: string, token: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").ResponseData>>) & {
1284
- start: (loginId: string, origin: string, token: string) => Promise<import("@descope/core-js-sdk").SdkResponse<{
1283
+ update: ((identifier: string, token: string) => Promise<_1.SdkResponse<_1.ResponseData>>) & {
1284
+ start: (loginId: string, origin: string, token: string) => Promise<_1.SdkResponse<{
1285
1285
  transactionId: string;
1286
1286
  options: string;
1287
1287
  create: boolean;
1288
1288
  }>>;
1289
- finish: (transactionId: string, response: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").ResponseData>>;
1289
+ finish: (transactionId: string, response: string) => Promise<_1.SdkResponse<_1.ResponseData>>;
1290
1290
  };
1291
1291
  helpers: {
1292
1292
  create: (options: string) => Promise<string>;
@@ -1296,31 +1296,31 @@ export declare const createTempSdk: () => ((({
1296
1296
  };
1297
1297
  };
1298
1298
  fedcm: {
1299
- oneTap(provider?: string, oneTapConfig?: import("@descope/web-js-sdk").OneTapConfig, loginOptions?: import("@descope/core-js-sdk").LoginOptions, onSkip?: () => void): Promise<unknown>;
1300
- launch(context?: "signin" | "signup" | "use" | "continue"): Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").JWTResponse>>;
1299
+ oneTap(provider?: string, oneTapConfig?: import("@descope/web-js-sdk").OneTapConfig, loginOptions?: _1.LoginOptions, onSkip?: () => void): Promise<unknown>;
1300
+ launch(context?: "signin" | "signup" | "use" | "continue"): Promise<_1.SdkResponse<_1.JWTResponse>>;
1301
1301
  isSupported(): boolean;
1302
1302
  };
1303
1303
  accessKey: {
1304
- exchange: (accessKey: string, loginOptions?: import("@descope/core-js-sdk").AccessKeyLoginOptions) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").ExchangeAccessKeyResponse>>;
1304
+ exchange: (accessKey: string, loginOptions?: _1.AccessKeyLoginOptions) => Promise<_1.SdkResponse<_1.ExchangeAccessKeyResponse>>;
1305
1305
  };
1306
1306
  otp: {
1307
1307
  verify: {
1308
- sms: (loginId: string, code: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").JWTResponse>>;
1309
- voice: (loginId: string, code: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").JWTResponse>>;
1310
- whatsapp: (loginId: string, code: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").JWTResponse>>;
1311
- email: (loginId: string, code: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").JWTResponse>>;
1308
+ sms: (loginId: string, code: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
1309
+ voice: (loginId: string, code: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
1310
+ whatsapp: (loginId: string, code: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
1311
+ email: (loginId: string, code: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
1312
1312
  };
1313
1313
  signIn: {
1314
- sms: (loginId: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<{
1314
+ sms: (loginId: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
1315
1315
  maskedPhone: string;
1316
1316
  }>>;
1317
- voice: (loginId: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<{
1317
+ voice: (loginId: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
1318
1318
  maskedPhone: string;
1319
1319
  }>>;
1320
- whatsapp: (loginId: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<{
1320
+ whatsapp: (loginId: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
1321
1321
  maskedPhone: string;
1322
1322
  }>>;
1323
- email: (loginId: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<{
1323
+ email: (loginId: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
1324
1324
  maskedEmail: string;
1325
1325
  }>>;
1326
1326
  };
@@ -1337,7 +1337,7 @@ export declare const createTempSdk: () => ((({
1337
1337
  templateOptions?: {
1338
1338
  [x: string]: string;
1339
1339
  };
1340
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<{
1340
+ }) => Promise<_1.SdkResponse<{
1341
1341
  maskedPhone: string;
1342
1342
  }>>;
1343
1343
  voice: (loginId: string, user?: {
@@ -1352,7 +1352,7 @@ export declare const createTempSdk: () => ((({
1352
1352
  templateOptions?: {
1353
1353
  [x: string]: string;
1354
1354
  };
1355
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<{
1355
+ }) => Promise<_1.SdkResponse<{
1356
1356
  maskedPhone: string;
1357
1357
  }>>;
1358
1358
  whatsapp: (loginId: string, user?: {
@@ -1367,7 +1367,7 @@ export declare const createTempSdk: () => ((({
1367
1367
  templateOptions?: {
1368
1368
  [x: string]: string;
1369
1369
  };
1370
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<{
1370
+ }) => Promise<_1.SdkResponse<{
1371
1371
  maskedPhone: string;
1372
1372
  }>>;
1373
1373
  email: (loginId: string, user?: {
@@ -1382,21 +1382,21 @@ export declare const createTempSdk: () => ((({
1382
1382
  templateOptions?: {
1383
1383
  [x: string]: string;
1384
1384
  };
1385
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<{
1385
+ }) => Promise<_1.SdkResponse<{
1386
1386
  maskedEmail: string;
1387
1387
  }>>;
1388
1388
  };
1389
1389
  signUpOrIn: {
1390
- sms: (loginId: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<{
1390
+ sms: (loginId: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
1391
1391
  maskedPhone: string;
1392
1392
  }>>;
1393
- voice: (loginId: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<{
1393
+ voice: (loginId: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
1394
1394
  maskedPhone: string;
1395
1395
  }>>;
1396
- whatsapp: (loginId: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<{
1396
+ whatsapp: (loginId: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
1397
1397
  maskedPhone: string;
1398
1398
  }>>;
1399
- email: (loginId: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<{
1399
+ email: (loginId: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
1400
1400
  maskedEmail: string;
1401
1401
  }>>;
1402
1402
  };
@@ -1407,7 +1407,7 @@ export declare const createTempSdk: () => ((({
1407
1407
  templateOptions?: {
1408
1408
  [x: string]: string;
1409
1409
  };
1410
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<{
1410
+ }) => Promise<_1.SdkResponse<{
1411
1411
  maskedEmail: string;
1412
1412
  }>>;
1413
1413
  phone: {
@@ -1417,7 +1417,7 @@ export declare const createTempSdk: () => ((({
1417
1417
  templateOptions?: {
1418
1418
  [x: string]: string;
1419
1419
  };
1420
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<{
1420
+ }) => Promise<_1.SdkResponse<{
1421
1421
  maskedPhone: string;
1422
1422
  }>>;
1423
1423
  voice: <T_1_1 extends boolean>(loginId: string, phone: string, token?: string, updateOptions?: {
@@ -1426,7 +1426,7 @@ export declare const createTempSdk: () => ((({
1426
1426
  templateOptions?: {
1427
1427
  [x: string]: string;
1428
1428
  };
1429
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<{
1429
+ }) => Promise<_1.SdkResponse<{
1430
1430
  maskedPhone: string;
1431
1431
  }>>;
1432
1432
  whatsapp: <T_1_2 extends boolean>(loginId: string, phone: string, token?: string, updateOptions?: {
@@ -1435,25 +1435,25 @@ export declare const createTempSdk: () => ((({
1435
1435
  templateOptions?: {
1436
1436
  [x: string]: string;
1437
1437
  };
1438
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<{
1438
+ }) => Promise<_1.SdkResponse<{
1439
1439
  maskedPhone: string;
1440
1440
  }>>;
1441
1441
  };
1442
1442
  };
1443
1443
  };
1444
1444
  magicLink: {
1445
- verify: (token: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").JWTResponse>>;
1445
+ verify: (token: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
1446
1446
  signIn: {
1447
- sms: (loginId: string, URI: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<{
1447
+ sms: (loginId: string, URI: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
1448
1448
  maskedPhone: string;
1449
1449
  }>>;
1450
- voice: (loginId: string, URI: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<{
1450
+ voice: (loginId: string, URI: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
1451
1451
  maskedPhone: string;
1452
1452
  }>>;
1453
- whatsapp: (loginId: string, URI: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<{
1453
+ whatsapp: (loginId: string, URI: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
1454
1454
  maskedPhone: string;
1455
1455
  }>>;
1456
- email: (loginId: string, URI: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<{
1456
+ email: (loginId: string, URI: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
1457
1457
  maskedEmail: string;
1458
1458
  }>>;
1459
1459
  };
@@ -1470,7 +1470,7 @@ export declare const createTempSdk: () => ((({
1470
1470
  templateOptions?: {
1471
1471
  [x: string]: string;
1472
1472
  };
1473
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<{
1473
+ }) => Promise<_1.SdkResponse<{
1474
1474
  maskedPhone: string;
1475
1475
  }>>;
1476
1476
  voice: (loginId: string, URI: string, user?: {
@@ -1485,7 +1485,7 @@ export declare const createTempSdk: () => ((({
1485
1485
  templateOptions?: {
1486
1486
  [x: string]: string;
1487
1487
  };
1488
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<{
1488
+ }) => Promise<_1.SdkResponse<{
1489
1489
  maskedPhone: string;
1490
1490
  }>>;
1491
1491
  whatsapp: (loginId: string, URI: string, user?: {
@@ -1500,7 +1500,7 @@ export declare const createTempSdk: () => ((({
1500
1500
  templateOptions?: {
1501
1501
  [x: string]: string;
1502
1502
  };
1503
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<{
1503
+ }) => Promise<_1.SdkResponse<{
1504
1504
  maskedPhone: string;
1505
1505
  }>>;
1506
1506
  email: (loginId: string, URI: string, user?: {
@@ -1515,7 +1515,7 @@ export declare const createTempSdk: () => ((({
1515
1515
  templateOptions?: {
1516
1516
  [x: string]: string;
1517
1517
  };
1518
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<{
1518
+ }) => Promise<_1.SdkResponse<{
1519
1519
  maskedEmail: string;
1520
1520
  }>>;
1521
1521
  };
@@ -1525,7 +1525,7 @@ export declare const createTempSdk: () => ((({
1525
1525
  templateOptions?: {
1526
1526
  [x: string]: string;
1527
1527
  };
1528
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<{
1528
+ }) => Promise<_1.SdkResponse<{
1529
1529
  maskedPhone: string;
1530
1530
  }>>;
1531
1531
  voice: (loginId: string, URI?: string, signUpOptions?: {
@@ -1533,7 +1533,7 @@ export declare const createTempSdk: () => ((({
1533
1533
  templateOptions?: {
1534
1534
  [x: string]: string;
1535
1535
  };
1536
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<{
1536
+ }) => Promise<_1.SdkResponse<{
1537
1537
  maskedPhone: string;
1538
1538
  }>>;
1539
1539
  whatsapp: (loginId: string, URI?: string, signUpOptions?: {
@@ -1541,7 +1541,7 @@ export declare const createTempSdk: () => ((({
1541
1541
  templateOptions?: {
1542
1542
  [x: string]: string;
1543
1543
  };
1544
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<{
1544
+ }) => Promise<_1.SdkResponse<{
1545
1545
  maskedPhone: string;
1546
1546
  }>>;
1547
1547
  email: (loginId: string, URI?: string, signUpOptions?: {
@@ -1549,7 +1549,7 @@ export declare const createTempSdk: () => ((({
1549
1549
  templateOptions?: {
1550
1550
  [x: string]: string;
1551
1551
  };
1552
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<{
1552
+ }) => Promise<_1.SdkResponse<{
1553
1553
  maskedEmail: string;
1554
1554
  }>>;
1555
1555
  };
@@ -1560,7 +1560,7 @@ export declare const createTempSdk: () => ((({
1560
1560
  templateOptions?: {
1561
1561
  [x: string]: string;
1562
1562
  };
1563
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<{
1563
+ }) => Promise<_1.SdkResponse<{
1564
1564
  maskedEmail: string;
1565
1565
  }>>;
1566
1566
  phone: {
@@ -1570,7 +1570,7 @@ export declare const createTempSdk: () => ((({
1570
1570
  templateOptions?: {
1571
1571
  [x: string]: string;
1572
1572
  };
1573
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<{
1573
+ }) => Promise<_1.SdkResponse<{
1574
1574
  maskedPhone: string;
1575
1575
  }>>;
1576
1576
  voice: <T_3_1 extends boolean>(loginId: string, phone: string, URI?: string, token?: string, updateOptions?: {
@@ -1579,7 +1579,7 @@ export declare const createTempSdk: () => ((({
1579
1579
  templateOptions?: {
1580
1580
  [x: string]: string;
1581
1581
  };
1582
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<{
1582
+ }) => Promise<_1.SdkResponse<{
1583
1583
  maskedPhone: string;
1584
1584
  }>>;
1585
1585
  whatsapp: <T_3_2 extends boolean>(loginId: string, phone: string, URI?: string, token?: string, updateOptions?: {
@@ -1588,21 +1588,21 @@ export declare const createTempSdk: () => ((({
1588
1588
  templateOptions?: {
1589
1589
  [x: string]: string;
1590
1590
  };
1591
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<{
1591
+ }) => Promise<_1.SdkResponse<{
1592
1592
  maskedPhone: string;
1593
1593
  }>>;
1594
1594
  };
1595
1595
  };
1596
1596
  };
1597
1597
  enchantedLink: {
1598
- verify: (token: string) => Promise<import("@descope/core-js-sdk").SdkResponse<never>>;
1599
- signIn: (loginId: string, URI?: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").EnchantedLinkResponse>>;
1598
+ verify: (token: string) => Promise<_1.SdkResponse<never>>;
1599
+ signIn: (loginId: string, URI?: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<_1.EnchantedLinkResponse>>;
1600
1600
  signUpOrIn: (loginId: string, URI?: string, signUpOptions?: {
1601
1601
  customClaims?: Record<string, any>;
1602
1602
  templateOptions?: {
1603
1603
  [x: string]: string;
1604
1604
  };
1605
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").EnchantedLinkResponse>>;
1605
+ }) => Promise<_1.SdkResponse<_1.EnchantedLinkResponse>>;
1606
1606
  signUp: (loginId: string, URI?: string, user?: {
1607
1607
  email?: string;
1608
1608
  name?: string;
@@ -1615,11 +1615,11 @@ export declare const createTempSdk: () => ((({
1615
1615
  templateOptions?: {
1616
1616
  [x: string]: string;
1617
1617
  };
1618
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").EnchantedLinkResponse>>;
1618
+ }) => Promise<_1.SdkResponse<_1.EnchantedLinkResponse>>;
1619
1619
  waitForSession: (pendingRef: string, config?: {
1620
1620
  pollingIntervalMs: number;
1621
1621
  timeoutMs: number;
1622
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").JWTResponse>>;
1622
+ }) => Promise<_1.SdkResponse<_1.JWTResponse>>;
1623
1623
  update: {
1624
1624
  email: <T_4 extends boolean>(loginId: string, email: string, URI?: string, token?: string, updateOptions?: {
1625
1625
  addToLoginIDs?: T_4;
@@ -1627,28 +1627,28 @@ export declare const createTempSdk: () => ((({
1627
1627
  templateOptions?: {
1628
1628
  [x: string]: string;
1629
1629
  };
1630
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").EnchantedLinkResponse>>;
1630
+ }) => Promise<_1.SdkResponse<_1.EnchantedLinkResponse>>;
1631
1631
  };
1632
1632
  };
1633
1633
  oauth: {
1634
- start: ((provider: string, redirectUrl?: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").ResponseData>>) & {
1635
- google: (redirectURL?: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").URLResponse>>;
1636
- facebook: (redirectURL?: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").URLResponse>>;
1637
- github: (redirectURL?: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").URLResponse>>;
1638
- microsoft: (redirectURL?: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").URLResponse>>;
1639
- gitlab: (redirectURL?: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").URLResponse>>;
1640
- apple: (redirectURL?: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").URLResponse>>;
1641
- discord: (redirectURL?: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").URLResponse>>;
1642
- linkedin: (redirectURL?: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").URLResponse>>;
1643
- slack: (redirectURL?: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").URLResponse>>;
1644
- };
1645
- exchange: (code: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").JWTResponse>>;
1646
- startNative: (provider: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, implicit?: boolean) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").ResponseData>>;
1647
- finishNative: (provider: string, stateId: string, user?: string, code?: string, idToken?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").ResponseData>>;
1634
+ start: ((provider: string, redirectUrl?: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<_1.ResponseData>>) & {
1635
+ google: (redirectURL?: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
1636
+ facebook: (redirectURL?: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
1637
+ github: (redirectURL?: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
1638
+ microsoft: (redirectURL?: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
1639
+ gitlab: (redirectURL?: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
1640
+ apple: (redirectURL?: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
1641
+ discord: (redirectURL?: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
1642
+ linkedin: (redirectURL?: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
1643
+ slack: (redirectURL?: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
1644
+ };
1645
+ exchange: (code: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
1646
+ startNative: (provider: string, loginOptions?: _1.LoginOptions, implicit?: boolean) => Promise<_1.SdkResponse<_1.ResponseData>>;
1647
+ finishNative: (provider: string, stateId: string, user?: string, code?: string, idToken?: string) => Promise<_1.SdkResponse<_1.ResponseData>>;
1648
1648
  };
1649
1649
  saml: {
1650
- start: (tenantIdOrEmail: string, redirectUrl?: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").URLResponse>>;
1651
- exchange: (code: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").JWTResponse>>;
1650
+ start: (tenantIdOrEmail: string, redirectUrl?: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
1651
+ exchange: (code: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
1652
1652
  };
1653
1653
  totp: {
1654
1654
  signUp: (loginId: string, user?: {
@@ -1658,9 +1658,9 @@ export declare const createTempSdk: () => ((({
1658
1658
  middleName?: string;
1659
1659
  familyName?: string;
1660
1660
  phone?: string;
1661
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").TOTPResponse>>;
1662
- verify: (loginId: string, code: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").JWTResponse>>;
1663
- update: (loginId: string, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").TOTPResponse>>;
1661
+ }) => Promise<_1.SdkResponse<_1.TOTPResponse>>;
1662
+ verify: (loginId: string, code: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
1663
+ update: (loginId: string, token?: string) => Promise<_1.SdkResponse<_1.TOTPResponse>>;
1664
1664
  };
1665
1665
  notp: {
1666
1666
  signUpOrIn: (loginId?: string, signUpOptions?: {
@@ -1668,7 +1668,7 @@ export declare const createTempSdk: () => ((({
1668
1668
  templateOptions?: {
1669
1669
  [x: string]: string;
1670
1670
  };
1671
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<{
1671
+ }) => Promise<_1.SdkResponse<{
1672
1672
  pendingRef: string;
1673
1673
  redirectUrl: string;
1674
1674
  image: string;
@@ -1685,12 +1685,12 @@ export declare const createTempSdk: () => ((({
1685
1685
  templateOptions?: {
1686
1686
  [x: string]: string;
1687
1687
  };
1688
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<{
1688
+ }) => Promise<_1.SdkResponse<{
1689
1689
  pendingRef: string;
1690
1690
  redirectUrl: string;
1691
1691
  image: string;
1692
1692
  }>>;
1693
- signIn: (loginId?: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<{
1693
+ signIn: (loginId?: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
1694
1694
  pendingRef: string;
1695
1695
  redirectUrl: string;
1696
1696
  image: string;
@@ -1698,7 +1698,7 @@ export declare const createTempSdk: () => ((({
1698
1698
  waitForSession: (pendingRef: string, config?: {
1699
1699
  pollingIntervalMs: number;
1700
1700
  timeoutMs: number;
1701
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").JWTResponse>>;
1701
+ }) => Promise<_1.SdkResponse<_1.JWTResponse>>;
1702
1702
  };
1703
1703
  password: {
1704
1704
  signUp: (loginId: string, password: string, user?: {
@@ -1713,19 +1713,19 @@ export declare const createTempSdk: () => ((({
1713
1713
  templateOptions?: {
1714
1714
  [x: string]: string;
1715
1715
  };
1716
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").JWTResponse>>;
1717
- signIn: (loginId: string, password: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").JWTResponse>>;
1716
+ }) => Promise<_1.SdkResponse<_1.JWTResponse>>;
1717
+ signIn: (loginId: string, password: string, loginOptions?: _1.LoginOptions) => Promise<_1.SdkResponse<_1.JWTResponse>>;
1718
1718
  sendReset: (loginId: string, redirectUrl?: string, templateOptions?: {
1719
1719
  [x: string]: string;
1720
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<{
1720
+ }) => Promise<_1.SdkResponse<{
1721
1721
  resetMethod: string;
1722
1722
  pendingRef?: string;
1723
1723
  linkId?: string;
1724
1724
  maskedEmail: string;
1725
1725
  }>>;
1726
- update: (loginId: string, newPassword: string, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<never>>;
1727
- replace: (loginId: string, oldPassword: string, newPassword: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").JWTResponse>>;
1728
- policy: () => Promise<import("@descope/core-js-sdk").SdkResponse<{
1726
+ update: (loginId: string, newPassword: string, token?: string) => Promise<_1.SdkResponse<never>>;
1727
+ replace: (loginId: string, oldPassword: string, newPassword: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
1728
+ policy: () => Promise<_1.SdkResponse<{
1729
1729
  minLength: number;
1730
1730
  lowercase: boolean;
1731
1731
  uppercase: boolean;
@@ -1733,12 +1733,12 @@ export declare const createTempSdk: () => ((({
1733
1733
  nonAlphanumeric: boolean;
1734
1734
  }>>;
1735
1735
  };
1736
- refresh: (token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").JWTResponse>>;
1737
- selectTenant: (tenantId: string, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").JWTResponse>>;
1738
- logout: (token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<never>>;
1739
- logoutAll: (token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<never>>;
1740
- me: (token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").UserResponse>>;
1741
- history: (token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").UserHistoryResponse>>;
1736
+ refresh: (token?: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
1737
+ selectTenant: (tenantId: string, token?: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
1738
+ logout: (token?: string) => Promise<_1.SdkResponse<never>>;
1739
+ logoutAll: (token?: string) => Promise<_1.SdkResponse<never>>;
1740
+ me: (token?: string) => Promise<_1.SdkResponse<_1.UserResponse>>;
1741
+ history: (token?: string) => Promise<_1.SdkResponse<_1.UserHistoryResponse>>;
1742
1742
  isJwtExpired: (token: string) => boolean;
1743
1743
  getTenants: (token: string) => string[];
1744
1744
  getJwtPermissions: (token: string, tenant?: string) => string[];
@@ -1780,9 +1780,9 @@ export declare const createTempSdk: () => ((({
1780
1780
  token?: string;
1781
1781
  }) => Promise<Response>;
1782
1782
  hooks?: {
1783
- beforeRequest?: (config: import("@descope/core-js-sdk").RequestConfig) => import("@descope/core-js-sdk").RequestConfig;
1784
- afterRequest?: (req: import("@descope/core-js-sdk").RequestConfig, res: Response) => void | Promise<void>;
1785
- transformResponse?: (mutableResponse: import("@descope/core-js-sdk").ExtendedResponse) => Promise<import("@descope/core-js-sdk").ExtendedResponse>;
1783
+ beforeRequest?: (config: _1.RequestConfig) => _1.RequestConfig;
1784
+ afterRequest?: (req: _1.RequestConfig, res: Response) => void | Promise<void>;
1785
+ transformResponse?: (mutableResponse: _1.ExtendedResponse) => Promise<_1.ExtendedResponse>;
1786
1786
  };
1787
1787
  buildUrl: (path: string, queryParams?: {
1788
1788
  [key: string]: string;
@@ -1828,42 +1828,42 @@ export declare const createTempSdk: () => ((({
1828
1828
  }, "loginId" | "name">;
1829
1829
  }, conditionInteractionId?: string, interactionId?: string, version?: number, componentsVersion?: string, input?: {
1830
1830
  [x: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any[])[])[])[])[])[])[])[])[])[])[];
1831
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").FlowResponse>>;
1831
+ }) => Promise<_1.SdkResponse<_1.FlowResponse>>;
1832
1832
  next: (executionId: string, stepId: string, interactionId: string, version?: number, componentsVersion?: string, input?: {
1833
1833
  [x: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any[])[])[])[])[])[])[])[])[])[])[];
1834
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").FlowResponse>>;
1834
+ }) => Promise<_1.SdkResponse<_1.FlowResponse>>;
1835
1835
  };
1836
1836
  webauthn: {
1837
- signUp: ((identifier: string, name: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").JWTResponse>>) & {
1838
- start: (loginId: string, origin: string, name: string) => Promise<import("@descope/core-js-sdk").SdkResponse<{
1837
+ signUp: ((identifier: string, name: string) => Promise<_1.SdkResponse<_1.JWTResponse>>) & {
1838
+ start: (loginId: string, origin: string, name: string) => Promise<_1.SdkResponse<{
1839
1839
  transactionId: string;
1840
1840
  options: string;
1841
1841
  create: boolean;
1842
1842
  }>>;
1843
- finish: (transactionId: string, response: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").JWTResponse>>;
1843
+ finish: (transactionId: string, response: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
1844
1844
  };
1845
- signIn: ((identifier: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").JWTResponse>>) & {
1846
- start: (loginId: string, origin: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<{
1845
+ signIn: ((identifier: string) => Promise<_1.SdkResponse<_1.JWTResponse>>) & {
1846
+ start: (loginId: string, origin: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
1847
1847
  transactionId: string;
1848
1848
  options: string;
1849
1849
  create: boolean;
1850
1850
  }>>;
1851
- finish: (transactionId: string, response: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").JWTResponse>>;
1851
+ finish: (transactionId: string, response: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
1852
1852
  };
1853
- signUpOrIn: ((identifier: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").JWTResponse>>) & {
1854
- start: (loginId: string, origin: string) => Promise<import("@descope/core-js-sdk").SdkResponse<{
1853
+ signUpOrIn: ((identifier: string) => Promise<_1.SdkResponse<_1.JWTResponse>>) & {
1854
+ start: (loginId: string, origin: string) => Promise<_1.SdkResponse<{
1855
1855
  transactionId: string;
1856
1856
  options: string;
1857
1857
  create: boolean;
1858
1858
  }>>;
1859
1859
  };
1860
- update: ((identifier: string, token: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").ResponseData>>) & {
1861
- start: (loginId: string, origin: string, token: string) => Promise<import("@descope/core-js-sdk").SdkResponse<{
1860
+ update: ((identifier: string, token: string) => Promise<_1.SdkResponse<_1.ResponseData>>) & {
1861
+ start: (loginId: string, origin: string, token: string) => Promise<_1.SdkResponse<{
1862
1862
  transactionId: string;
1863
1863
  options: string;
1864
1864
  create: boolean;
1865
1865
  }>>;
1866
- finish: (transactionId: string, response: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").ResponseData>>;
1866
+ finish: (transactionId: string, response: string) => Promise<_1.SdkResponse<_1.ResponseData>>;
1867
1867
  };
1868
1868
  helpers: {
1869
1869
  create: (options: string) => Promise<string>;
@@ -1873,31 +1873,31 @@ export declare const createTempSdk: () => ((({
1873
1873
  };
1874
1874
  };
1875
1875
  fedcm: {
1876
- oneTap(provider?: string, oneTapConfig?: import("@descope/web-js-sdk").OneTapConfig, loginOptions?: import("@descope/core-js-sdk").LoginOptions, onSkip?: () => void): Promise<unknown>;
1877
- launch(context?: "signin" | "signup" | "use" | "continue"): Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").JWTResponse>>;
1876
+ oneTap(provider?: string, oneTapConfig?: import("@descope/web-js-sdk").OneTapConfig, loginOptions?: _1.LoginOptions, onSkip?: () => void): Promise<unknown>;
1877
+ launch(context?: "signin" | "signup" | "use" | "continue"): Promise<_1.SdkResponse<_1.JWTResponse>>;
1878
1878
  isSupported(): boolean;
1879
1879
  };
1880
1880
  accessKey: {
1881
- exchange: (accessKey: string, loginOptions?: import("@descope/core-js-sdk").AccessKeyLoginOptions) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").ExchangeAccessKeyResponse>>;
1881
+ exchange: (accessKey: string, loginOptions?: _1.AccessKeyLoginOptions) => Promise<_1.SdkResponse<_1.ExchangeAccessKeyResponse>>;
1882
1882
  };
1883
1883
  otp: {
1884
1884
  verify: {
1885
- sms: (loginId: string, code: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").JWTResponse>>;
1886
- voice: (loginId: string, code: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").JWTResponse>>;
1887
- whatsapp: (loginId: string, code: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").JWTResponse>>;
1888
- email: (loginId: string, code: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").JWTResponse>>;
1885
+ sms: (loginId: string, code: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
1886
+ voice: (loginId: string, code: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
1887
+ whatsapp: (loginId: string, code: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
1888
+ email: (loginId: string, code: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
1889
1889
  };
1890
1890
  signIn: {
1891
- sms: (loginId: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<{
1891
+ sms: (loginId: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
1892
1892
  maskedPhone: string;
1893
1893
  }>>;
1894
- voice: (loginId: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<{
1894
+ voice: (loginId: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
1895
1895
  maskedPhone: string;
1896
1896
  }>>;
1897
- whatsapp: (loginId: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<{
1897
+ whatsapp: (loginId: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
1898
1898
  maskedPhone: string;
1899
1899
  }>>;
1900
- email: (loginId: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<{
1900
+ email: (loginId: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
1901
1901
  maskedEmail: string;
1902
1902
  }>>;
1903
1903
  };
@@ -1914,7 +1914,7 @@ export declare const createTempSdk: () => ((({
1914
1914
  templateOptions?: {
1915
1915
  [x: string]: string;
1916
1916
  };
1917
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<{
1917
+ }) => Promise<_1.SdkResponse<{
1918
1918
  maskedPhone: string;
1919
1919
  }>>;
1920
1920
  voice: (loginId: string, user?: {
@@ -1929,7 +1929,7 @@ export declare const createTempSdk: () => ((({
1929
1929
  templateOptions?: {
1930
1930
  [x: string]: string;
1931
1931
  };
1932
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<{
1932
+ }) => Promise<_1.SdkResponse<{
1933
1933
  maskedPhone: string;
1934
1934
  }>>;
1935
1935
  whatsapp: (loginId: string, user?: {
@@ -1944,7 +1944,7 @@ export declare const createTempSdk: () => ((({
1944
1944
  templateOptions?: {
1945
1945
  [x: string]: string;
1946
1946
  };
1947
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<{
1947
+ }) => Promise<_1.SdkResponse<{
1948
1948
  maskedPhone: string;
1949
1949
  }>>;
1950
1950
  email: (loginId: string, user?: {
@@ -1959,21 +1959,21 @@ export declare const createTempSdk: () => ((({
1959
1959
  templateOptions?: {
1960
1960
  [x: string]: string;
1961
1961
  };
1962
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<{
1962
+ }) => Promise<_1.SdkResponse<{
1963
1963
  maskedEmail: string;
1964
1964
  }>>;
1965
1965
  };
1966
1966
  signUpOrIn: {
1967
- sms: (loginId: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<{
1967
+ sms: (loginId: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
1968
1968
  maskedPhone: string;
1969
1969
  }>>;
1970
- voice: (loginId: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<{
1970
+ voice: (loginId: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
1971
1971
  maskedPhone: string;
1972
1972
  }>>;
1973
- whatsapp: (loginId: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<{
1973
+ whatsapp: (loginId: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
1974
1974
  maskedPhone: string;
1975
1975
  }>>;
1976
- email: (loginId: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<{
1976
+ email: (loginId: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
1977
1977
  maskedEmail: string;
1978
1978
  }>>;
1979
1979
  };
@@ -1984,7 +1984,7 @@ export declare const createTempSdk: () => ((({
1984
1984
  templateOptions?: {
1985
1985
  [x: string]: string;
1986
1986
  };
1987
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<{
1987
+ }) => Promise<_1.SdkResponse<{
1988
1988
  maskedEmail: string;
1989
1989
  }>>;
1990
1990
  phone: {
@@ -1994,7 +1994,7 @@ export declare const createTempSdk: () => ((({
1994
1994
  templateOptions?: {
1995
1995
  [x: string]: string;
1996
1996
  };
1997
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<{
1997
+ }) => Promise<_1.SdkResponse<{
1998
1998
  maskedPhone: string;
1999
1999
  }>>;
2000
2000
  voice: <T_1_4 extends boolean>(loginId: string, phone: string, token?: string, updateOptions?: {
@@ -2003,7 +2003,7 @@ export declare const createTempSdk: () => ((({
2003
2003
  templateOptions?: {
2004
2004
  [x: string]: string;
2005
2005
  };
2006
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<{
2006
+ }) => Promise<_1.SdkResponse<{
2007
2007
  maskedPhone: string;
2008
2008
  }>>;
2009
2009
  whatsapp: <T_1_5 extends boolean>(loginId: string, phone: string, token?: string, updateOptions?: {
@@ -2012,25 +2012,25 @@ export declare const createTempSdk: () => ((({
2012
2012
  templateOptions?: {
2013
2013
  [x: string]: string;
2014
2014
  };
2015
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<{
2015
+ }) => Promise<_1.SdkResponse<{
2016
2016
  maskedPhone: string;
2017
2017
  }>>;
2018
2018
  };
2019
2019
  };
2020
2020
  };
2021
2021
  magicLink: {
2022
- verify: (token: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").JWTResponse>>;
2022
+ verify: (token: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
2023
2023
  signIn: {
2024
- sms: (loginId: string, URI: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<{
2024
+ sms: (loginId: string, URI: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
2025
2025
  maskedPhone: string;
2026
2026
  }>>;
2027
- voice: (loginId: string, URI: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<{
2027
+ voice: (loginId: string, URI: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
2028
2028
  maskedPhone: string;
2029
2029
  }>>;
2030
- whatsapp: (loginId: string, URI: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<{
2030
+ whatsapp: (loginId: string, URI: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
2031
2031
  maskedPhone: string;
2032
2032
  }>>;
2033
- email: (loginId: string, URI: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<{
2033
+ email: (loginId: string, URI: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
2034
2034
  maskedEmail: string;
2035
2035
  }>>;
2036
2036
  };
@@ -2047,7 +2047,7 @@ export declare const createTempSdk: () => ((({
2047
2047
  templateOptions?: {
2048
2048
  [x: string]: string;
2049
2049
  };
2050
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<{
2050
+ }) => Promise<_1.SdkResponse<{
2051
2051
  maskedPhone: string;
2052
2052
  }>>;
2053
2053
  voice: (loginId: string, URI: string, user?: {
@@ -2062,7 +2062,7 @@ export declare const createTempSdk: () => ((({
2062
2062
  templateOptions?: {
2063
2063
  [x: string]: string;
2064
2064
  };
2065
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<{
2065
+ }) => Promise<_1.SdkResponse<{
2066
2066
  maskedPhone: string;
2067
2067
  }>>;
2068
2068
  whatsapp: (loginId: string, URI: string, user?: {
@@ -2077,7 +2077,7 @@ export declare const createTempSdk: () => ((({
2077
2077
  templateOptions?: {
2078
2078
  [x: string]: string;
2079
2079
  };
2080
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<{
2080
+ }) => Promise<_1.SdkResponse<{
2081
2081
  maskedPhone: string;
2082
2082
  }>>;
2083
2083
  email: (loginId: string, URI: string, user?: {
@@ -2092,7 +2092,7 @@ export declare const createTempSdk: () => ((({
2092
2092
  templateOptions?: {
2093
2093
  [x: string]: string;
2094
2094
  };
2095
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<{
2095
+ }) => Promise<_1.SdkResponse<{
2096
2096
  maskedEmail: string;
2097
2097
  }>>;
2098
2098
  };
@@ -2102,7 +2102,7 @@ export declare const createTempSdk: () => ((({
2102
2102
  templateOptions?: {
2103
2103
  [x: string]: string;
2104
2104
  };
2105
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<{
2105
+ }) => Promise<_1.SdkResponse<{
2106
2106
  maskedPhone: string;
2107
2107
  }>>;
2108
2108
  voice: (loginId: string, URI?: string, signUpOptions?: {
@@ -2110,7 +2110,7 @@ export declare const createTempSdk: () => ((({
2110
2110
  templateOptions?: {
2111
2111
  [x: string]: string;
2112
2112
  };
2113
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<{
2113
+ }) => Promise<_1.SdkResponse<{
2114
2114
  maskedPhone: string;
2115
2115
  }>>;
2116
2116
  whatsapp: (loginId: string, URI?: string, signUpOptions?: {
@@ -2118,7 +2118,7 @@ export declare const createTempSdk: () => ((({
2118
2118
  templateOptions?: {
2119
2119
  [x: string]: string;
2120
2120
  };
2121
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<{
2121
+ }) => Promise<_1.SdkResponse<{
2122
2122
  maskedPhone: string;
2123
2123
  }>>;
2124
2124
  email: (loginId: string, URI?: string, signUpOptions?: {
@@ -2126,7 +2126,7 @@ export declare const createTempSdk: () => ((({
2126
2126
  templateOptions?: {
2127
2127
  [x: string]: string;
2128
2128
  };
2129
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<{
2129
+ }) => Promise<_1.SdkResponse<{
2130
2130
  maskedEmail: string;
2131
2131
  }>>;
2132
2132
  };
@@ -2137,7 +2137,7 @@ export declare const createTempSdk: () => ((({
2137
2137
  templateOptions?: {
2138
2138
  [x: string]: string;
2139
2139
  };
2140
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<{
2140
+ }) => Promise<_1.SdkResponse<{
2141
2141
  maskedEmail: string;
2142
2142
  }>>;
2143
2143
  phone: {
@@ -2147,7 +2147,7 @@ export declare const createTempSdk: () => ((({
2147
2147
  templateOptions?: {
2148
2148
  [x: string]: string;
2149
2149
  };
2150
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<{
2150
+ }) => Promise<_1.SdkResponse<{
2151
2151
  maskedPhone: string;
2152
2152
  }>>;
2153
2153
  voice: <T_3_4 extends boolean>(loginId: string, phone: string, URI?: string, token?: string, updateOptions?: {
@@ -2156,7 +2156,7 @@ export declare const createTempSdk: () => ((({
2156
2156
  templateOptions?: {
2157
2157
  [x: string]: string;
2158
2158
  };
2159
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<{
2159
+ }) => Promise<_1.SdkResponse<{
2160
2160
  maskedPhone: string;
2161
2161
  }>>;
2162
2162
  whatsapp: <T_3_5 extends boolean>(loginId: string, phone: string, URI?: string, token?: string, updateOptions?: {
@@ -2165,21 +2165,21 @@ export declare const createTempSdk: () => ((({
2165
2165
  templateOptions?: {
2166
2166
  [x: string]: string;
2167
2167
  };
2168
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<{
2168
+ }) => Promise<_1.SdkResponse<{
2169
2169
  maskedPhone: string;
2170
2170
  }>>;
2171
2171
  };
2172
2172
  };
2173
2173
  };
2174
2174
  enchantedLink: {
2175
- verify: (token: string) => Promise<import("@descope/core-js-sdk").SdkResponse<never>>;
2176
- signIn: (loginId: string, URI?: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").EnchantedLinkResponse>>;
2175
+ verify: (token: string) => Promise<_1.SdkResponse<never>>;
2176
+ signIn: (loginId: string, URI?: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<_1.EnchantedLinkResponse>>;
2177
2177
  signUpOrIn: (loginId: string, URI?: string, signUpOptions?: {
2178
2178
  customClaims?: Record<string, any>;
2179
2179
  templateOptions?: {
2180
2180
  [x: string]: string;
2181
2181
  };
2182
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").EnchantedLinkResponse>>;
2182
+ }) => Promise<_1.SdkResponse<_1.EnchantedLinkResponse>>;
2183
2183
  signUp: (loginId: string, URI?: string, user?: {
2184
2184
  email?: string;
2185
2185
  name?: string;
@@ -2192,11 +2192,11 @@ export declare const createTempSdk: () => ((({
2192
2192
  templateOptions?: {
2193
2193
  [x: string]: string;
2194
2194
  };
2195
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").EnchantedLinkResponse>>;
2195
+ }) => Promise<_1.SdkResponse<_1.EnchantedLinkResponse>>;
2196
2196
  waitForSession: (pendingRef: string, config?: {
2197
2197
  pollingIntervalMs: number;
2198
2198
  timeoutMs: number;
2199
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").JWTResponse>>;
2199
+ }) => Promise<_1.SdkResponse<_1.JWTResponse>>;
2200
2200
  update: {
2201
2201
  email: <T_4_1 extends boolean>(loginId: string, email: string, URI?: string, token?: string, updateOptions?: {
2202
2202
  addToLoginIDs?: T_4_1;
@@ -2204,28 +2204,28 @@ export declare const createTempSdk: () => ((({
2204
2204
  templateOptions?: {
2205
2205
  [x: string]: string;
2206
2206
  };
2207
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").EnchantedLinkResponse>>;
2207
+ }) => Promise<_1.SdkResponse<_1.EnchantedLinkResponse>>;
2208
2208
  };
2209
2209
  };
2210
2210
  oauth: {
2211
- start: ((provider: string, redirectUrl?: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").ResponseData>>) & {
2212
- google: (redirectURL?: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").URLResponse>>;
2213
- facebook: (redirectURL?: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").URLResponse>>;
2214
- github: (redirectURL?: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").URLResponse>>;
2215
- microsoft: (redirectURL?: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").URLResponse>>;
2216
- gitlab: (redirectURL?: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").URLResponse>>;
2217
- apple: (redirectURL?: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").URLResponse>>;
2218
- discord: (redirectURL?: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").URLResponse>>;
2219
- linkedin: (redirectURL?: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").URLResponse>>;
2220
- slack: (redirectURL?: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").URLResponse>>;
2221
- };
2222
- exchange: (code: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").JWTResponse>>;
2223
- startNative: (provider: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, implicit?: boolean) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").ResponseData>>;
2224
- finishNative: (provider: string, stateId: string, user?: string, code?: string, idToken?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").ResponseData>>;
2211
+ start: ((provider: string, redirectUrl?: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<_1.ResponseData>>) & {
2212
+ google: (redirectURL?: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
2213
+ facebook: (redirectURL?: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
2214
+ github: (redirectURL?: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
2215
+ microsoft: (redirectURL?: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
2216
+ gitlab: (redirectURL?: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
2217
+ apple: (redirectURL?: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
2218
+ discord: (redirectURL?: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
2219
+ linkedin: (redirectURL?: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
2220
+ slack: (redirectURL?: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
2221
+ };
2222
+ exchange: (code: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
2223
+ startNative: (provider: string, loginOptions?: _1.LoginOptions, implicit?: boolean) => Promise<_1.SdkResponse<_1.ResponseData>>;
2224
+ finishNative: (provider: string, stateId: string, user?: string, code?: string, idToken?: string) => Promise<_1.SdkResponse<_1.ResponseData>>;
2225
2225
  };
2226
2226
  saml: {
2227
- start: (tenantIdOrEmail: string, redirectUrl?: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").URLResponse>>;
2228
- exchange: (code: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").JWTResponse>>;
2227
+ start: (tenantIdOrEmail: string, redirectUrl?: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
2228
+ exchange: (code: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
2229
2229
  };
2230
2230
  totp: {
2231
2231
  signUp: (loginId: string, user?: {
@@ -2235,9 +2235,9 @@ export declare const createTempSdk: () => ((({
2235
2235
  middleName?: string;
2236
2236
  familyName?: string;
2237
2237
  phone?: string;
2238
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").TOTPResponse>>;
2239
- verify: (loginId: string, code: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").JWTResponse>>;
2240
- update: (loginId: string, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").TOTPResponse>>;
2238
+ }) => Promise<_1.SdkResponse<_1.TOTPResponse>>;
2239
+ verify: (loginId: string, code: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
2240
+ update: (loginId: string, token?: string) => Promise<_1.SdkResponse<_1.TOTPResponse>>;
2241
2241
  };
2242
2242
  notp: {
2243
2243
  signUpOrIn: (loginId?: string, signUpOptions?: {
@@ -2245,7 +2245,7 @@ export declare const createTempSdk: () => ((({
2245
2245
  templateOptions?: {
2246
2246
  [x: string]: string;
2247
2247
  };
2248
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<{
2248
+ }) => Promise<_1.SdkResponse<{
2249
2249
  pendingRef: string;
2250
2250
  redirectUrl: string;
2251
2251
  image: string;
@@ -2262,12 +2262,12 @@ export declare const createTempSdk: () => ((({
2262
2262
  templateOptions?: {
2263
2263
  [x: string]: string;
2264
2264
  };
2265
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<{
2265
+ }) => Promise<_1.SdkResponse<{
2266
2266
  pendingRef: string;
2267
2267
  redirectUrl: string;
2268
2268
  image: string;
2269
2269
  }>>;
2270
- signIn: (loginId?: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<{
2270
+ signIn: (loginId?: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
2271
2271
  pendingRef: string;
2272
2272
  redirectUrl: string;
2273
2273
  image: string;
@@ -2275,7 +2275,7 @@ export declare const createTempSdk: () => ((({
2275
2275
  waitForSession: (pendingRef: string, config?: {
2276
2276
  pollingIntervalMs: number;
2277
2277
  timeoutMs: number;
2278
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").JWTResponse>>;
2278
+ }) => Promise<_1.SdkResponse<_1.JWTResponse>>;
2279
2279
  };
2280
2280
  password: {
2281
2281
  signUp: (loginId: string, password: string, user?: {
@@ -2290,19 +2290,19 @@ export declare const createTempSdk: () => ((({
2290
2290
  templateOptions?: {
2291
2291
  [x: string]: string;
2292
2292
  };
2293
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").JWTResponse>>;
2294
- signIn: (loginId: string, password: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").JWTResponse>>;
2293
+ }) => Promise<_1.SdkResponse<_1.JWTResponse>>;
2294
+ signIn: (loginId: string, password: string, loginOptions?: _1.LoginOptions) => Promise<_1.SdkResponse<_1.JWTResponse>>;
2295
2295
  sendReset: (loginId: string, redirectUrl?: string, templateOptions?: {
2296
2296
  [x: string]: string;
2297
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<{
2297
+ }) => Promise<_1.SdkResponse<{
2298
2298
  resetMethod: string;
2299
2299
  pendingRef?: string;
2300
2300
  linkId?: string;
2301
2301
  maskedEmail: string;
2302
2302
  }>>;
2303
- update: (loginId: string, newPassword: string, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<never>>;
2304
- replace: (loginId: string, oldPassword: string, newPassword: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").JWTResponse>>;
2305
- policy: () => Promise<import("@descope/core-js-sdk").SdkResponse<{
2303
+ update: (loginId: string, newPassword: string, token?: string) => Promise<_1.SdkResponse<never>>;
2304
+ replace: (loginId: string, oldPassword: string, newPassword: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
2305
+ policy: () => Promise<_1.SdkResponse<{
2306
2306
  minLength: number;
2307
2307
  lowercase: boolean;
2308
2308
  uppercase: boolean;
@@ -2310,12 +2310,12 @@ export declare const createTempSdk: () => ((({
2310
2310
  nonAlphanumeric: boolean;
2311
2311
  }>>;
2312
2312
  };
2313
- refresh: (token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").JWTResponse>>;
2314
- selectTenant: (tenantId: string, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").JWTResponse>>;
2315
- logout: (token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<never>>;
2316
- logoutAll: (token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<never>>;
2317
- me: (token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").UserResponse>>;
2318
- history: (token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").UserHistoryResponse>>;
2313
+ refresh: (token?: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
2314
+ selectTenant: (tenantId: string, token?: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
2315
+ logout: (token?: string) => Promise<_1.SdkResponse<never>>;
2316
+ logoutAll: (token?: string) => Promise<_1.SdkResponse<never>>;
2317
+ me: (token?: string) => Promise<_1.SdkResponse<_1.UserResponse>>;
2318
+ history: (token?: string) => Promise<_1.SdkResponse<_1.UserHistoryResponse>>;
2319
2319
  isJwtExpired: (token: string) => boolean;
2320
2320
  getTenants: (token: string) => string[];
2321
2321
  getJwtPermissions: (token: string, tenant?: string) => string[];
@@ -2357,9 +2357,9 @@ export declare const createTempSdk: () => ((({
2357
2357
  token?: string;
2358
2358
  }) => Promise<Response>;
2359
2359
  hooks?: {
2360
- beforeRequest?: (config: import("@descope/core-js-sdk").RequestConfig) => import("@descope/core-js-sdk").RequestConfig;
2361
- afterRequest?: (req: import("@descope/core-js-sdk").RequestConfig, res: Response) => void | Promise<void>;
2362
- transformResponse?: (mutableResponse: import("@descope/core-js-sdk").ExtendedResponse) => Promise<import("@descope/core-js-sdk").ExtendedResponse>;
2360
+ beforeRequest?: (config: _1.RequestConfig) => _1.RequestConfig;
2361
+ afterRequest?: (req: _1.RequestConfig, res: Response) => void | Promise<void>;
2362
+ transformResponse?: (mutableResponse: _1.ExtendedResponse) => Promise<_1.ExtendedResponse>;
2363
2363
  };
2364
2364
  buildUrl: (path: string, queryParams?: {
2365
2365
  [key: string]: string;
@@ -2367,7 +2367,7 @@ export declare const createTempSdk: () => ((({
2367
2367
  };
2368
2368
  }) & {
2369
2369
  onSessionTokenChange: (cb: (data: string) => void) => () => any[];
2370
- onUserChange: (cb: (data: import("@descope/core-js-sdk").UserResponse) => void) => () => any[];
2370
+ onUserChange: (cb: (data: _1.UserResponse) => void) => () => any[];
2371
2371
  }) & {
2372
2372
  getLastUserLoginId: () => string;
2373
2373
  getLastUserDisplayName: () => string;
@@ -2381,7 +2381,7 @@ export declare const isSessionTokenExpired: (token?: string) => boolean;
2381
2381
  export declare const isRefreshTokenExpired: (token?: string) => boolean;
2382
2382
  export declare const getJwtPermissions: (token?: any, tenant?: string) => string[];
2383
2383
  export declare const getJwtRoles: (token?: any, tenant?: string) => string[];
2384
- export declare const refresh: (token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").JWTResponse>>;
2384
+ export declare const refresh: (token?: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
2385
2385
  export declare const getGlobalSdk: () => ((({
2386
2386
  flow: {
2387
2387
  start: (flowId: string, options?: Pick<{
@@ -2422,42 +2422,42 @@ export declare const getGlobalSdk: () => ((({
2422
2422
  }, "loginId" | "name">;
2423
2423
  }, conditionInteractionId?: string, interactionId?: string, version?: number, componentsVersion?: string, input?: {
2424
2424
  [x: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any[])[])[])[])[])[])[])[])[])[])[];
2425
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").FlowResponse>>;
2425
+ }) => Promise<_1.SdkResponse<_1.FlowResponse>>;
2426
2426
  next: (executionId: string, stepId: string, interactionId: string, version?: number, componentsVersion?: string, input?: {
2427
2427
  [x: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any[])[])[])[])[])[])[])[])[])[])[];
2428
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").FlowResponse>>;
2428
+ }) => Promise<_1.SdkResponse<_1.FlowResponse>>;
2429
2429
  };
2430
2430
  webauthn: {
2431
- signUp: ((identifier: string, name: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").JWTResponse>>) & {
2432
- start: (loginId: string, origin: string, name: string) => Promise<import("@descope/core-js-sdk").SdkResponse<{
2431
+ signUp: ((identifier: string, name: string) => Promise<_1.SdkResponse<_1.JWTResponse>>) & {
2432
+ start: (loginId: string, origin: string, name: string) => Promise<_1.SdkResponse<{
2433
2433
  transactionId: string;
2434
2434
  options: string;
2435
2435
  create: boolean;
2436
2436
  }>>;
2437
- finish: (transactionId: string, response: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").JWTResponse>>;
2437
+ finish: (transactionId: string, response: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
2438
2438
  };
2439
- signIn: ((identifier: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").JWTResponse>>) & {
2440
- start: (loginId: string, origin: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<{
2439
+ signIn: ((identifier: string) => Promise<_1.SdkResponse<_1.JWTResponse>>) & {
2440
+ start: (loginId: string, origin: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
2441
2441
  transactionId: string;
2442
2442
  options: string;
2443
2443
  create: boolean;
2444
2444
  }>>;
2445
- finish: (transactionId: string, response: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").JWTResponse>>;
2445
+ finish: (transactionId: string, response: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
2446
2446
  };
2447
- signUpOrIn: ((identifier: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").JWTResponse>>) & {
2448
- start: (loginId: string, origin: string) => Promise<import("@descope/core-js-sdk").SdkResponse<{
2447
+ signUpOrIn: ((identifier: string) => Promise<_1.SdkResponse<_1.JWTResponse>>) & {
2448
+ start: (loginId: string, origin: string) => Promise<_1.SdkResponse<{
2449
2449
  transactionId: string;
2450
2450
  options: string;
2451
2451
  create: boolean;
2452
2452
  }>>;
2453
2453
  };
2454
- update: ((identifier: string, token: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").ResponseData>>) & {
2455
- start: (loginId: string, origin: string, token: string) => Promise<import("@descope/core-js-sdk").SdkResponse<{
2454
+ update: ((identifier: string, token: string) => Promise<_1.SdkResponse<_1.ResponseData>>) & {
2455
+ start: (loginId: string, origin: string, token: string) => Promise<_1.SdkResponse<{
2456
2456
  transactionId: string;
2457
2457
  options: string;
2458
2458
  create: boolean;
2459
2459
  }>>;
2460
- finish: (transactionId: string, response: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").ResponseData>>;
2460
+ finish: (transactionId: string, response: string) => Promise<_1.SdkResponse<_1.ResponseData>>;
2461
2461
  };
2462
2462
  helpers: {
2463
2463
  create: (options: string) => Promise<string>;
@@ -2467,31 +2467,31 @@ export declare const getGlobalSdk: () => ((({
2467
2467
  };
2468
2468
  };
2469
2469
  fedcm: {
2470
- oneTap(provider?: string, oneTapConfig?: import("@descope/web-js-sdk").OneTapConfig, loginOptions?: import("@descope/core-js-sdk").LoginOptions, onSkip?: () => void): Promise<unknown>;
2471
- launch(context?: "signin" | "signup" | "use" | "continue"): Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").JWTResponse>>;
2470
+ oneTap(provider?: string, oneTapConfig?: import("@descope/web-js-sdk").OneTapConfig, loginOptions?: _1.LoginOptions, onSkip?: () => void): Promise<unknown>;
2471
+ launch(context?: "signin" | "signup" | "use" | "continue"): Promise<_1.SdkResponse<_1.JWTResponse>>;
2472
2472
  isSupported(): boolean;
2473
2473
  };
2474
2474
  accessKey: {
2475
- exchange: (accessKey: string, loginOptions?: import("@descope/core-js-sdk").AccessKeyLoginOptions) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").ExchangeAccessKeyResponse>>;
2475
+ exchange: (accessKey: string, loginOptions?: _1.AccessKeyLoginOptions) => Promise<_1.SdkResponse<_1.ExchangeAccessKeyResponse>>;
2476
2476
  };
2477
2477
  otp: {
2478
2478
  verify: {
2479
- sms: (loginId: string, code: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").JWTResponse>>;
2480
- voice: (loginId: string, code: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").JWTResponse>>;
2481
- whatsapp: (loginId: string, code: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").JWTResponse>>;
2482
- email: (loginId: string, code: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").JWTResponse>>;
2479
+ sms: (loginId: string, code: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
2480
+ voice: (loginId: string, code: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
2481
+ whatsapp: (loginId: string, code: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
2482
+ email: (loginId: string, code: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
2483
2483
  };
2484
2484
  signIn: {
2485
- sms: (loginId: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<{
2485
+ sms: (loginId: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
2486
2486
  maskedPhone: string;
2487
2487
  }>>;
2488
- voice: (loginId: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<{
2488
+ voice: (loginId: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
2489
2489
  maskedPhone: string;
2490
2490
  }>>;
2491
- whatsapp: (loginId: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<{
2491
+ whatsapp: (loginId: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
2492
2492
  maskedPhone: string;
2493
2493
  }>>;
2494
- email: (loginId: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<{
2494
+ email: (loginId: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
2495
2495
  maskedEmail: string;
2496
2496
  }>>;
2497
2497
  };
@@ -2508,7 +2508,7 @@ export declare const getGlobalSdk: () => ((({
2508
2508
  templateOptions?: {
2509
2509
  [x: string]: string;
2510
2510
  };
2511
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<{
2511
+ }) => Promise<_1.SdkResponse<{
2512
2512
  maskedPhone: string;
2513
2513
  }>>;
2514
2514
  voice: (loginId: string, user?: {
@@ -2523,7 +2523,7 @@ export declare const getGlobalSdk: () => ((({
2523
2523
  templateOptions?: {
2524
2524
  [x: string]: string;
2525
2525
  };
2526
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<{
2526
+ }) => Promise<_1.SdkResponse<{
2527
2527
  maskedPhone: string;
2528
2528
  }>>;
2529
2529
  whatsapp: (loginId: string, user?: {
@@ -2538,7 +2538,7 @@ export declare const getGlobalSdk: () => ((({
2538
2538
  templateOptions?: {
2539
2539
  [x: string]: string;
2540
2540
  };
2541
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<{
2541
+ }) => Promise<_1.SdkResponse<{
2542
2542
  maskedPhone: string;
2543
2543
  }>>;
2544
2544
  email: (loginId: string, user?: {
@@ -2553,21 +2553,21 @@ export declare const getGlobalSdk: () => ((({
2553
2553
  templateOptions?: {
2554
2554
  [x: string]: string;
2555
2555
  };
2556
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<{
2556
+ }) => Promise<_1.SdkResponse<{
2557
2557
  maskedEmail: string;
2558
2558
  }>>;
2559
2559
  };
2560
2560
  signUpOrIn: {
2561
- sms: (loginId: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<{
2561
+ sms: (loginId: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
2562
2562
  maskedPhone: string;
2563
2563
  }>>;
2564
- voice: (loginId: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<{
2564
+ voice: (loginId: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
2565
2565
  maskedPhone: string;
2566
2566
  }>>;
2567
- whatsapp: (loginId: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<{
2567
+ whatsapp: (loginId: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
2568
2568
  maskedPhone: string;
2569
2569
  }>>;
2570
- email: (loginId: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<{
2570
+ email: (loginId: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
2571
2571
  maskedEmail: string;
2572
2572
  }>>;
2573
2573
  };
@@ -2578,7 +2578,7 @@ export declare const getGlobalSdk: () => ((({
2578
2578
  templateOptions?: {
2579
2579
  [x: string]: string;
2580
2580
  };
2581
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<{
2581
+ }) => Promise<_1.SdkResponse<{
2582
2582
  maskedEmail: string;
2583
2583
  }>>;
2584
2584
  phone: {
@@ -2588,7 +2588,7 @@ export declare const getGlobalSdk: () => ((({
2588
2588
  templateOptions?: {
2589
2589
  [x: string]: string;
2590
2590
  };
2591
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<{
2591
+ }) => Promise<_1.SdkResponse<{
2592
2592
  maskedPhone: string;
2593
2593
  }>>;
2594
2594
  voice: <T_1_1 extends boolean>(loginId: string, phone: string, token?: string, updateOptions?: {
@@ -2597,7 +2597,7 @@ export declare const getGlobalSdk: () => ((({
2597
2597
  templateOptions?: {
2598
2598
  [x: string]: string;
2599
2599
  };
2600
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<{
2600
+ }) => Promise<_1.SdkResponse<{
2601
2601
  maskedPhone: string;
2602
2602
  }>>;
2603
2603
  whatsapp: <T_1_2 extends boolean>(loginId: string, phone: string, token?: string, updateOptions?: {
@@ -2606,25 +2606,25 @@ export declare const getGlobalSdk: () => ((({
2606
2606
  templateOptions?: {
2607
2607
  [x: string]: string;
2608
2608
  };
2609
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<{
2609
+ }) => Promise<_1.SdkResponse<{
2610
2610
  maskedPhone: string;
2611
2611
  }>>;
2612
2612
  };
2613
2613
  };
2614
2614
  };
2615
2615
  magicLink: {
2616
- verify: (token: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").JWTResponse>>;
2616
+ verify: (token: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
2617
2617
  signIn: {
2618
- sms: (loginId: string, URI: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<{
2618
+ sms: (loginId: string, URI: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
2619
2619
  maskedPhone: string;
2620
2620
  }>>;
2621
- voice: (loginId: string, URI: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<{
2621
+ voice: (loginId: string, URI: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
2622
2622
  maskedPhone: string;
2623
2623
  }>>;
2624
- whatsapp: (loginId: string, URI: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<{
2624
+ whatsapp: (loginId: string, URI: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
2625
2625
  maskedPhone: string;
2626
2626
  }>>;
2627
- email: (loginId: string, URI: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<{
2627
+ email: (loginId: string, URI: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
2628
2628
  maskedEmail: string;
2629
2629
  }>>;
2630
2630
  };
@@ -2641,7 +2641,7 @@ export declare const getGlobalSdk: () => ((({
2641
2641
  templateOptions?: {
2642
2642
  [x: string]: string;
2643
2643
  };
2644
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<{
2644
+ }) => Promise<_1.SdkResponse<{
2645
2645
  maskedPhone: string;
2646
2646
  }>>;
2647
2647
  voice: (loginId: string, URI: string, user?: {
@@ -2656,7 +2656,7 @@ export declare const getGlobalSdk: () => ((({
2656
2656
  templateOptions?: {
2657
2657
  [x: string]: string;
2658
2658
  };
2659
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<{
2659
+ }) => Promise<_1.SdkResponse<{
2660
2660
  maskedPhone: string;
2661
2661
  }>>;
2662
2662
  whatsapp: (loginId: string, URI: string, user?: {
@@ -2671,7 +2671,7 @@ export declare const getGlobalSdk: () => ((({
2671
2671
  templateOptions?: {
2672
2672
  [x: string]: string;
2673
2673
  };
2674
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<{
2674
+ }) => Promise<_1.SdkResponse<{
2675
2675
  maskedPhone: string;
2676
2676
  }>>;
2677
2677
  email: (loginId: string, URI: string, user?: {
@@ -2686,7 +2686,7 @@ export declare const getGlobalSdk: () => ((({
2686
2686
  templateOptions?: {
2687
2687
  [x: string]: string;
2688
2688
  };
2689
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<{
2689
+ }) => Promise<_1.SdkResponse<{
2690
2690
  maskedEmail: string;
2691
2691
  }>>;
2692
2692
  };
@@ -2696,7 +2696,7 @@ export declare const getGlobalSdk: () => ((({
2696
2696
  templateOptions?: {
2697
2697
  [x: string]: string;
2698
2698
  };
2699
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<{
2699
+ }) => Promise<_1.SdkResponse<{
2700
2700
  maskedPhone: string;
2701
2701
  }>>;
2702
2702
  voice: (loginId: string, URI?: string, signUpOptions?: {
@@ -2704,7 +2704,7 @@ export declare const getGlobalSdk: () => ((({
2704
2704
  templateOptions?: {
2705
2705
  [x: string]: string;
2706
2706
  };
2707
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<{
2707
+ }) => Promise<_1.SdkResponse<{
2708
2708
  maskedPhone: string;
2709
2709
  }>>;
2710
2710
  whatsapp: (loginId: string, URI?: string, signUpOptions?: {
@@ -2712,7 +2712,7 @@ export declare const getGlobalSdk: () => ((({
2712
2712
  templateOptions?: {
2713
2713
  [x: string]: string;
2714
2714
  };
2715
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<{
2715
+ }) => Promise<_1.SdkResponse<{
2716
2716
  maskedPhone: string;
2717
2717
  }>>;
2718
2718
  email: (loginId: string, URI?: string, signUpOptions?: {
@@ -2720,7 +2720,7 @@ export declare const getGlobalSdk: () => ((({
2720
2720
  templateOptions?: {
2721
2721
  [x: string]: string;
2722
2722
  };
2723
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<{
2723
+ }) => Promise<_1.SdkResponse<{
2724
2724
  maskedEmail: string;
2725
2725
  }>>;
2726
2726
  };
@@ -2731,7 +2731,7 @@ export declare const getGlobalSdk: () => ((({
2731
2731
  templateOptions?: {
2732
2732
  [x: string]: string;
2733
2733
  };
2734
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<{
2734
+ }) => Promise<_1.SdkResponse<{
2735
2735
  maskedEmail: string;
2736
2736
  }>>;
2737
2737
  phone: {
@@ -2741,7 +2741,7 @@ export declare const getGlobalSdk: () => ((({
2741
2741
  templateOptions?: {
2742
2742
  [x: string]: string;
2743
2743
  };
2744
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<{
2744
+ }) => Promise<_1.SdkResponse<{
2745
2745
  maskedPhone: string;
2746
2746
  }>>;
2747
2747
  voice: <T_3_1 extends boolean>(loginId: string, phone: string, URI?: string, token?: string, updateOptions?: {
@@ -2750,7 +2750,7 @@ export declare const getGlobalSdk: () => ((({
2750
2750
  templateOptions?: {
2751
2751
  [x: string]: string;
2752
2752
  };
2753
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<{
2753
+ }) => Promise<_1.SdkResponse<{
2754
2754
  maskedPhone: string;
2755
2755
  }>>;
2756
2756
  whatsapp: <T_3_2 extends boolean>(loginId: string, phone: string, URI?: string, token?: string, updateOptions?: {
@@ -2759,21 +2759,21 @@ export declare const getGlobalSdk: () => ((({
2759
2759
  templateOptions?: {
2760
2760
  [x: string]: string;
2761
2761
  };
2762
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<{
2762
+ }) => Promise<_1.SdkResponse<{
2763
2763
  maskedPhone: string;
2764
2764
  }>>;
2765
2765
  };
2766
2766
  };
2767
2767
  };
2768
2768
  enchantedLink: {
2769
- verify: (token: string) => Promise<import("@descope/core-js-sdk").SdkResponse<never>>;
2770
- signIn: (loginId: string, URI?: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").EnchantedLinkResponse>>;
2769
+ verify: (token: string) => Promise<_1.SdkResponse<never>>;
2770
+ signIn: (loginId: string, URI?: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<_1.EnchantedLinkResponse>>;
2771
2771
  signUpOrIn: (loginId: string, URI?: string, signUpOptions?: {
2772
2772
  customClaims?: Record<string, any>;
2773
2773
  templateOptions?: {
2774
2774
  [x: string]: string;
2775
2775
  };
2776
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").EnchantedLinkResponse>>;
2776
+ }) => Promise<_1.SdkResponse<_1.EnchantedLinkResponse>>;
2777
2777
  signUp: (loginId: string, URI?: string, user?: {
2778
2778
  email?: string;
2779
2779
  name?: string;
@@ -2786,11 +2786,11 @@ export declare const getGlobalSdk: () => ((({
2786
2786
  templateOptions?: {
2787
2787
  [x: string]: string;
2788
2788
  };
2789
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").EnchantedLinkResponse>>;
2789
+ }) => Promise<_1.SdkResponse<_1.EnchantedLinkResponse>>;
2790
2790
  waitForSession: (pendingRef: string, config?: {
2791
2791
  pollingIntervalMs: number;
2792
2792
  timeoutMs: number;
2793
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").JWTResponse>>;
2793
+ }) => Promise<_1.SdkResponse<_1.JWTResponse>>;
2794
2794
  update: {
2795
2795
  email: <T_4 extends boolean>(loginId: string, email: string, URI?: string, token?: string, updateOptions?: {
2796
2796
  addToLoginIDs?: T_4;
@@ -2798,28 +2798,28 @@ export declare const getGlobalSdk: () => ((({
2798
2798
  templateOptions?: {
2799
2799
  [x: string]: string;
2800
2800
  };
2801
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").EnchantedLinkResponse>>;
2801
+ }) => Promise<_1.SdkResponse<_1.EnchantedLinkResponse>>;
2802
2802
  };
2803
2803
  };
2804
2804
  oauth: {
2805
- start: ((provider: string, redirectUrl?: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").ResponseData>>) & {
2806
- google: (redirectURL?: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").URLResponse>>;
2807
- facebook: (redirectURL?: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").URLResponse>>;
2808
- github: (redirectURL?: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").URLResponse>>;
2809
- microsoft: (redirectURL?: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").URLResponse>>;
2810
- gitlab: (redirectURL?: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").URLResponse>>;
2811
- apple: (redirectURL?: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").URLResponse>>;
2812
- discord: (redirectURL?: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").URLResponse>>;
2813
- linkedin: (redirectURL?: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").URLResponse>>;
2814
- slack: (redirectURL?: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").URLResponse>>;
2815
- };
2816
- exchange: (code: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").JWTResponse>>;
2817
- startNative: (provider: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, implicit?: boolean) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").ResponseData>>;
2818
- finishNative: (provider: string, stateId: string, user?: string, code?: string, idToken?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").ResponseData>>;
2805
+ start: ((provider: string, redirectUrl?: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<_1.ResponseData>>) & {
2806
+ google: (redirectURL?: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
2807
+ facebook: (redirectURL?: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
2808
+ github: (redirectURL?: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
2809
+ microsoft: (redirectURL?: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
2810
+ gitlab: (redirectURL?: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
2811
+ apple: (redirectURL?: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
2812
+ discord: (redirectURL?: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
2813
+ linkedin: (redirectURL?: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
2814
+ slack: (redirectURL?: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
2815
+ };
2816
+ exchange: (code: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
2817
+ startNative: (provider: string, loginOptions?: _1.LoginOptions, implicit?: boolean) => Promise<_1.SdkResponse<_1.ResponseData>>;
2818
+ finishNative: (provider: string, stateId: string, user?: string, code?: string, idToken?: string) => Promise<_1.SdkResponse<_1.ResponseData>>;
2819
2819
  };
2820
2820
  saml: {
2821
- start: (tenantIdOrEmail: string, redirectUrl?: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").URLResponse>>;
2822
- exchange: (code: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").JWTResponse>>;
2821
+ start: (tenantIdOrEmail: string, redirectUrl?: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
2822
+ exchange: (code: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
2823
2823
  };
2824
2824
  totp: {
2825
2825
  signUp: (loginId: string, user?: {
@@ -2829,9 +2829,9 @@ export declare const getGlobalSdk: () => ((({
2829
2829
  middleName?: string;
2830
2830
  familyName?: string;
2831
2831
  phone?: string;
2832
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").TOTPResponse>>;
2833
- verify: (loginId: string, code: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").JWTResponse>>;
2834
- update: (loginId: string, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").TOTPResponse>>;
2832
+ }) => Promise<_1.SdkResponse<_1.TOTPResponse>>;
2833
+ verify: (loginId: string, code: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
2834
+ update: (loginId: string, token?: string) => Promise<_1.SdkResponse<_1.TOTPResponse>>;
2835
2835
  };
2836
2836
  notp: {
2837
2837
  signUpOrIn: (loginId?: string, signUpOptions?: {
@@ -2839,7 +2839,7 @@ export declare const getGlobalSdk: () => ((({
2839
2839
  templateOptions?: {
2840
2840
  [x: string]: string;
2841
2841
  };
2842
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<{
2842
+ }) => Promise<_1.SdkResponse<{
2843
2843
  pendingRef: string;
2844
2844
  redirectUrl: string;
2845
2845
  image: string;
@@ -2856,12 +2856,12 @@ export declare const getGlobalSdk: () => ((({
2856
2856
  templateOptions?: {
2857
2857
  [x: string]: string;
2858
2858
  };
2859
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<{
2859
+ }) => Promise<_1.SdkResponse<{
2860
2860
  pendingRef: string;
2861
2861
  redirectUrl: string;
2862
2862
  image: string;
2863
2863
  }>>;
2864
- signIn: (loginId?: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<{
2864
+ signIn: (loginId?: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
2865
2865
  pendingRef: string;
2866
2866
  redirectUrl: string;
2867
2867
  image: string;
@@ -2869,7 +2869,7 @@ export declare const getGlobalSdk: () => ((({
2869
2869
  waitForSession: (pendingRef: string, config?: {
2870
2870
  pollingIntervalMs: number;
2871
2871
  timeoutMs: number;
2872
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").JWTResponse>>;
2872
+ }) => Promise<_1.SdkResponse<_1.JWTResponse>>;
2873
2873
  };
2874
2874
  password: {
2875
2875
  signUp: (loginId: string, password: string, user?: {
@@ -2884,19 +2884,19 @@ export declare const getGlobalSdk: () => ((({
2884
2884
  templateOptions?: {
2885
2885
  [x: string]: string;
2886
2886
  };
2887
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").JWTResponse>>;
2888
- signIn: (loginId: string, password: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").JWTResponse>>;
2887
+ }) => Promise<_1.SdkResponse<_1.JWTResponse>>;
2888
+ signIn: (loginId: string, password: string, loginOptions?: _1.LoginOptions) => Promise<_1.SdkResponse<_1.JWTResponse>>;
2889
2889
  sendReset: (loginId: string, redirectUrl?: string, templateOptions?: {
2890
2890
  [x: string]: string;
2891
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<{
2891
+ }) => Promise<_1.SdkResponse<{
2892
2892
  resetMethod: string;
2893
2893
  pendingRef?: string;
2894
2894
  linkId?: string;
2895
2895
  maskedEmail: string;
2896
2896
  }>>;
2897
- update: (loginId: string, newPassword: string, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<never>>;
2898
- replace: (loginId: string, oldPassword: string, newPassword: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").JWTResponse>>;
2899
- policy: () => Promise<import("@descope/core-js-sdk").SdkResponse<{
2897
+ update: (loginId: string, newPassword: string, token?: string) => Promise<_1.SdkResponse<never>>;
2898
+ replace: (loginId: string, oldPassword: string, newPassword: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
2899
+ policy: () => Promise<_1.SdkResponse<{
2900
2900
  minLength: number;
2901
2901
  lowercase: boolean;
2902
2902
  uppercase: boolean;
@@ -2904,12 +2904,12 @@ export declare const getGlobalSdk: () => ((({
2904
2904
  nonAlphanumeric: boolean;
2905
2905
  }>>;
2906
2906
  };
2907
- refresh: (token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").JWTResponse>>;
2908
- selectTenant: (tenantId: string, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").JWTResponse>>;
2909
- logout: (token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<never>>;
2910
- logoutAll: (token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<never>>;
2911
- me: (token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").UserResponse>>;
2912
- history: (token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").UserHistoryResponse>>;
2907
+ refresh: (token?: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
2908
+ selectTenant: (tenantId: string, token?: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
2909
+ logout: (token?: string) => Promise<_1.SdkResponse<never>>;
2910
+ logoutAll: (token?: string) => Promise<_1.SdkResponse<never>>;
2911
+ me: (token?: string) => Promise<_1.SdkResponse<_1.UserResponse>>;
2912
+ history: (token?: string) => Promise<_1.SdkResponse<_1.UserHistoryResponse>>;
2913
2913
  isJwtExpired: (token: string) => boolean;
2914
2914
  getTenants: (token: string) => string[];
2915
2915
  getJwtPermissions: (token: string, tenant?: string) => string[];
@@ -2951,9 +2951,9 @@ export declare const getGlobalSdk: () => ((({
2951
2951
  token?: string;
2952
2952
  }) => Promise<Response>;
2953
2953
  hooks?: {
2954
- beforeRequest?: (config: import("@descope/core-js-sdk").RequestConfig) => import("@descope/core-js-sdk").RequestConfig;
2955
- afterRequest?: (req: import("@descope/core-js-sdk").RequestConfig, res: Response) => void | Promise<void>;
2956
- transformResponse?: (mutableResponse: import("@descope/core-js-sdk").ExtendedResponse) => Promise<import("@descope/core-js-sdk").ExtendedResponse>;
2954
+ beforeRequest?: (config: _1.RequestConfig) => _1.RequestConfig;
2955
+ afterRequest?: (req: _1.RequestConfig, res: Response) => void | Promise<void>;
2956
+ transformResponse?: (mutableResponse: _1.ExtendedResponse) => Promise<_1.ExtendedResponse>;
2957
2957
  };
2958
2958
  buildUrl: (path: string, queryParams?: {
2959
2959
  [key: string]: string;
@@ -2999,42 +2999,42 @@ export declare const getGlobalSdk: () => ((({
2999
2999
  }, "loginId" | "name">;
3000
3000
  }, conditionInteractionId?: string, interactionId?: string, version?: number, componentsVersion?: string, input?: {
3001
3001
  [x: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any[])[])[])[])[])[])[])[])[])[])[];
3002
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").FlowResponse>>;
3002
+ }) => Promise<_1.SdkResponse<_1.FlowResponse>>;
3003
3003
  next: (executionId: string, stepId: string, interactionId: string, version?: number, componentsVersion?: string, input?: {
3004
3004
  [x: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any[])[])[])[])[])[])[])[])[])[])[];
3005
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").FlowResponse>>;
3005
+ }) => Promise<_1.SdkResponse<_1.FlowResponse>>;
3006
3006
  };
3007
3007
  webauthn: {
3008
- signUp: ((identifier: string, name: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").JWTResponse>>) & {
3009
- start: (loginId: string, origin: string, name: string) => Promise<import("@descope/core-js-sdk").SdkResponse<{
3008
+ signUp: ((identifier: string, name: string) => Promise<_1.SdkResponse<_1.JWTResponse>>) & {
3009
+ start: (loginId: string, origin: string, name: string) => Promise<_1.SdkResponse<{
3010
3010
  transactionId: string;
3011
3011
  options: string;
3012
3012
  create: boolean;
3013
3013
  }>>;
3014
- finish: (transactionId: string, response: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").JWTResponse>>;
3014
+ finish: (transactionId: string, response: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
3015
3015
  };
3016
- signIn: ((identifier: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").JWTResponse>>) & {
3017
- start: (loginId: string, origin: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<{
3016
+ signIn: ((identifier: string) => Promise<_1.SdkResponse<_1.JWTResponse>>) & {
3017
+ start: (loginId: string, origin: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
3018
3018
  transactionId: string;
3019
3019
  options: string;
3020
3020
  create: boolean;
3021
3021
  }>>;
3022
- finish: (transactionId: string, response: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").JWTResponse>>;
3022
+ finish: (transactionId: string, response: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
3023
3023
  };
3024
- signUpOrIn: ((identifier: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").JWTResponse>>) & {
3025
- start: (loginId: string, origin: string) => Promise<import("@descope/core-js-sdk").SdkResponse<{
3024
+ signUpOrIn: ((identifier: string) => Promise<_1.SdkResponse<_1.JWTResponse>>) & {
3025
+ start: (loginId: string, origin: string) => Promise<_1.SdkResponse<{
3026
3026
  transactionId: string;
3027
3027
  options: string;
3028
3028
  create: boolean;
3029
3029
  }>>;
3030
3030
  };
3031
- update: ((identifier: string, token: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").ResponseData>>) & {
3032
- start: (loginId: string, origin: string, token: string) => Promise<import("@descope/core-js-sdk").SdkResponse<{
3031
+ update: ((identifier: string, token: string) => Promise<_1.SdkResponse<_1.ResponseData>>) & {
3032
+ start: (loginId: string, origin: string, token: string) => Promise<_1.SdkResponse<{
3033
3033
  transactionId: string;
3034
3034
  options: string;
3035
3035
  create: boolean;
3036
3036
  }>>;
3037
- finish: (transactionId: string, response: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").ResponseData>>;
3037
+ finish: (transactionId: string, response: string) => Promise<_1.SdkResponse<_1.ResponseData>>;
3038
3038
  };
3039
3039
  helpers: {
3040
3040
  create: (options: string) => Promise<string>;
@@ -3044,31 +3044,31 @@ export declare const getGlobalSdk: () => ((({
3044
3044
  };
3045
3045
  };
3046
3046
  fedcm: {
3047
- oneTap(provider?: string, oneTapConfig?: import("@descope/web-js-sdk").OneTapConfig, loginOptions?: import("@descope/core-js-sdk").LoginOptions, onSkip?: () => void): Promise<unknown>;
3048
- launch(context?: "signin" | "signup" | "use" | "continue"): Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").JWTResponse>>;
3047
+ oneTap(provider?: string, oneTapConfig?: import("@descope/web-js-sdk").OneTapConfig, loginOptions?: _1.LoginOptions, onSkip?: () => void): Promise<unknown>;
3048
+ launch(context?: "signin" | "signup" | "use" | "continue"): Promise<_1.SdkResponse<_1.JWTResponse>>;
3049
3049
  isSupported(): boolean;
3050
3050
  };
3051
3051
  accessKey: {
3052
- exchange: (accessKey: string, loginOptions?: import("@descope/core-js-sdk").AccessKeyLoginOptions) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").ExchangeAccessKeyResponse>>;
3052
+ exchange: (accessKey: string, loginOptions?: _1.AccessKeyLoginOptions) => Promise<_1.SdkResponse<_1.ExchangeAccessKeyResponse>>;
3053
3053
  };
3054
3054
  otp: {
3055
3055
  verify: {
3056
- sms: (loginId: string, code: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").JWTResponse>>;
3057
- voice: (loginId: string, code: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").JWTResponse>>;
3058
- whatsapp: (loginId: string, code: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").JWTResponse>>;
3059
- email: (loginId: string, code: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").JWTResponse>>;
3056
+ sms: (loginId: string, code: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
3057
+ voice: (loginId: string, code: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
3058
+ whatsapp: (loginId: string, code: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
3059
+ email: (loginId: string, code: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
3060
3060
  };
3061
3061
  signIn: {
3062
- sms: (loginId: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<{
3062
+ sms: (loginId: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
3063
3063
  maskedPhone: string;
3064
3064
  }>>;
3065
- voice: (loginId: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<{
3065
+ voice: (loginId: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
3066
3066
  maskedPhone: string;
3067
3067
  }>>;
3068
- whatsapp: (loginId: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<{
3068
+ whatsapp: (loginId: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
3069
3069
  maskedPhone: string;
3070
3070
  }>>;
3071
- email: (loginId: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<{
3071
+ email: (loginId: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
3072
3072
  maskedEmail: string;
3073
3073
  }>>;
3074
3074
  };
@@ -3085,7 +3085,7 @@ export declare const getGlobalSdk: () => ((({
3085
3085
  templateOptions?: {
3086
3086
  [x: string]: string;
3087
3087
  };
3088
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<{
3088
+ }) => Promise<_1.SdkResponse<{
3089
3089
  maskedPhone: string;
3090
3090
  }>>;
3091
3091
  voice: (loginId: string, user?: {
@@ -3100,7 +3100,7 @@ export declare const getGlobalSdk: () => ((({
3100
3100
  templateOptions?: {
3101
3101
  [x: string]: string;
3102
3102
  };
3103
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<{
3103
+ }) => Promise<_1.SdkResponse<{
3104
3104
  maskedPhone: string;
3105
3105
  }>>;
3106
3106
  whatsapp: (loginId: string, user?: {
@@ -3115,7 +3115,7 @@ export declare const getGlobalSdk: () => ((({
3115
3115
  templateOptions?: {
3116
3116
  [x: string]: string;
3117
3117
  };
3118
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<{
3118
+ }) => Promise<_1.SdkResponse<{
3119
3119
  maskedPhone: string;
3120
3120
  }>>;
3121
3121
  email: (loginId: string, user?: {
@@ -3130,21 +3130,21 @@ export declare const getGlobalSdk: () => ((({
3130
3130
  templateOptions?: {
3131
3131
  [x: string]: string;
3132
3132
  };
3133
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<{
3133
+ }) => Promise<_1.SdkResponse<{
3134
3134
  maskedEmail: string;
3135
3135
  }>>;
3136
3136
  };
3137
3137
  signUpOrIn: {
3138
- sms: (loginId: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<{
3138
+ sms: (loginId: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
3139
3139
  maskedPhone: string;
3140
3140
  }>>;
3141
- voice: (loginId: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<{
3141
+ voice: (loginId: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
3142
3142
  maskedPhone: string;
3143
3143
  }>>;
3144
- whatsapp: (loginId: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<{
3144
+ whatsapp: (loginId: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
3145
3145
  maskedPhone: string;
3146
3146
  }>>;
3147
- email: (loginId: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<{
3147
+ email: (loginId: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
3148
3148
  maskedEmail: string;
3149
3149
  }>>;
3150
3150
  };
@@ -3155,7 +3155,7 @@ export declare const getGlobalSdk: () => ((({
3155
3155
  templateOptions?: {
3156
3156
  [x: string]: string;
3157
3157
  };
3158
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<{
3158
+ }) => Promise<_1.SdkResponse<{
3159
3159
  maskedEmail: string;
3160
3160
  }>>;
3161
3161
  phone: {
@@ -3165,7 +3165,7 @@ export declare const getGlobalSdk: () => ((({
3165
3165
  templateOptions?: {
3166
3166
  [x: string]: string;
3167
3167
  };
3168
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<{
3168
+ }) => Promise<_1.SdkResponse<{
3169
3169
  maskedPhone: string;
3170
3170
  }>>;
3171
3171
  voice: <T_1_4 extends boolean>(loginId: string, phone: string, token?: string, updateOptions?: {
@@ -3174,7 +3174,7 @@ export declare const getGlobalSdk: () => ((({
3174
3174
  templateOptions?: {
3175
3175
  [x: string]: string;
3176
3176
  };
3177
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<{
3177
+ }) => Promise<_1.SdkResponse<{
3178
3178
  maskedPhone: string;
3179
3179
  }>>;
3180
3180
  whatsapp: <T_1_5 extends boolean>(loginId: string, phone: string, token?: string, updateOptions?: {
@@ -3183,25 +3183,25 @@ export declare const getGlobalSdk: () => ((({
3183
3183
  templateOptions?: {
3184
3184
  [x: string]: string;
3185
3185
  };
3186
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<{
3186
+ }) => Promise<_1.SdkResponse<{
3187
3187
  maskedPhone: string;
3188
3188
  }>>;
3189
3189
  };
3190
3190
  };
3191
3191
  };
3192
3192
  magicLink: {
3193
- verify: (token: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").JWTResponse>>;
3193
+ verify: (token: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
3194
3194
  signIn: {
3195
- sms: (loginId: string, URI: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<{
3195
+ sms: (loginId: string, URI: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
3196
3196
  maskedPhone: string;
3197
3197
  }>>;
3198
- voice: (loginId: string, URI: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<{
3198
+ voice: (loginId: string, URI: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
3199
3199
  maskedPhone: string;
3200
3200
  }>>;
3201
- whatsapp: (loginId: string, URI: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<{
3201
+ whatsapp: (loginId: string, URI: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
3202
3202
  maskedPhone: string;
3203
3203
  }>>;
3204
- email: (loginId: string, URI: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<{
3204
+ email: (loginId: string, URI: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
3205
3205
  maskedEmail: string;
3206
3206
  }>>;
3207
3207
  };
@@ -3218,7 +3218,7 @@ export declare const getGlobalSdk: () => ((({
3218
3218
  templateOptions?: {
3219
3219
  [x: string]: string;
3220
3220
  };
3221
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<{
3221
+ }) => Promise<_1.SdkResponse<{
3222
3222
  maskedPhone: string;
3223
3223
  }>>;
3224
3224
  voice: (loginId: string, URI: string, user?: {
@@ -3233,7 +3233,7 @@ export declare const getGlobalSdk: () => ((({
3233
3233
  templateOptions?: {
3234
3234
  [x: string]: string;
3235
3235
  };
3236
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<{
3236
+ }) => Promise<_1.SdkResponse<{
3237
3237
  maskedPhone: string;
3238
3238
  }>>;
3239
3239
  whatsapp: (loginId: string, URI: string, user?: {
@@ -3248,7 +3248,7 @@ export declare const getGlobalSdk: () => ((({
3248
3248
  templateOptions?: {
3249
3249
  [x: string]: string;
3250
3250
  };
3251
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<{
3251
+ }) => Promise<_1.SdkResponse<{
3252
3252
  maskedPhone: string;
3253
3253
  }>>;
3254
3254
  email: (loginId: string, URI: string, user?: {
@@ -3263,7 +3263,7 @@ export declare const getGlobalSdk: () => ((({
3263
3263
  templateOptions?: {
3264
3264
  [x: string]: string;
3265
3265
  };
3266
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<{
3266
+ }) => Promise<_1.SdkResponse<{
3267
3267
  maskedEmail: string;
3268
3268
  }>>;
3269
3269
  };
@@ -3273,7 +3273,7 @@ export declare const getGlobalSdk: () => ((({
3273
3273
  templateOptions?: {
3274
3274
  [x: string]: string;
3275
3275
  };
3276
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<{
3276
+ }) => Promise<_1.SdkResponse<{
3277
3277
  maskedPhone: string;
3278
3278
  }>>;
3279
3279
  voice: (loginId: string, URI?: string, signUpOptions?: {
@@ -3281,7 +3281,7 @@ export declare const getGlobalSdk: () => ((({
3281
3281
  templateOptions?: {
3282
3282
  [x: string]: string;
3283
3283
  };
3284
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<{
3284
+ }) => Promise<_1.SdkResponse<{
3285
3285
  maskedPhone: string;
3286
3286
  }>>;
3287
3287
  whatsapp: (loginId: string, URI?: string, signUpOptions?: {
@@ -3289,7 +3289,7 @@ export declare const getGlobalSdk: () => ((({
3289
3289
  templateOptions?: {
3290
3290
  [x: string]: string;
3291
3291
  };
3292
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<{
3292
+ }) => Promise<_1.SdkResponse<{
3293
3293
  maskedPhone: string;
3294
3294
  }>>;
3295
3295
  email: (loginId: string, URI?: string, signUpOptions?: {
@@ -3297,7 +3297,7 @@ export declare const getGlobalSdk: () => ((({
3297
3297
  templateOptions?: {
3298
3298
  [x: string]: string;
3299
3299
  };
3300
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<{
3300
+ }) => Promise<_1.SdkResponse<{
3301
3301
  maskedEmail: string;
3302
3302
  }>>;
3303
3303
  };
@@ -3308,7 +3308,7 @@ export declare const getGlobalSdk: () => ((({
3308
3308
  templateOptions?: {
3309
3309
  [x: string]: string;
3310
3310
  };
3311
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<{
3311
+ }) => Promise<_1.SdkResponse<{
3312
3312
  maskedEmail: string;
3313
3313
  }>>;
3314
3314
  phone: {
@@ -3318,7 +3318,7 @@ export declare const getGlobalSdk: () => ((({
3318
3318
  templateOptions?: {
3319
3319
  [x: string]: string;
3320
3320
  };
3321
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<{
3321
+ }) => Promise<_1.SdkResponse<{
3322
3322
  maskedPhone: string;
3323
3323
  }>>;
3324
3324
  voice: <T_3_4 extends boolean>(loginId: string, phone: string, URI?: string, token?: string, updateOptions?: {
@@ -3327,7 +3327,7 @@ export declare const getGlobalSdk: () => ((({
3327
3327
  templateOptions?: {
3328
3328
  [x: string]: string;
3329
3329
  };
3330
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<{
3330
+ }) => Promise<_1.SdkResponse<{
3331
3331
  maskedPhone: string;
3332
3332
  }>>;
3333
3333
  whatsapp: <T_3_5 extends boolean>(loginId: string, phone: string, URI?: string, token?: string, updateOptions?: {
@@ -3336,21 +3336,21 @@ export declare const getGlobalSdk: () => ((({
3336
3336
  templateOptions?: {
3337
3337
  [x: string]: string;
3338
3338
  };
3339
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<{
3339
+ }) => Promise<_1.SdkResponse<{
3340
3340
  maskedPhone: string;
3341
3341
  }>>;
3342
3342
  };
3343
3343
  };
3344
3344
  };
3345
3345
  enchantedLink: {
3346
- verify: (token: string) => Promise<import("@descope/core-js-sdk").SdkResponse<never>>;
3347
- signIn: (loginId: string, URI?: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").EnchantedLinkResponse>>;
3346
+ verify: (token: string) => Promise<_1.SdkResponse<never>>;
3347
+ signIn: (loginId: string, URI?: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<_1.EnchantedLinkResponse>>;
3348
3348
  signUpOrIn: (loginId: string, URI?: string, signUpOptions?: {
3349
3349
  customClaims?: Record<string, any>;
3350
3350
  templateOptions?: {
3351
3351
  [x: string]: string;
3352
3352
  };
3353
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").EnchantedLinkResponse>>;
3353
+ }) => Promise<_1.SdkResponse<_1.EnchantedLinkResponse>>;
3354
3354
  signUp: (loginId: string, URI?: string, user?: {
3355
3355
  email?: string;
3356
3356
  name?: string;
@@ -3363,11 +3363,11 @@ export declare const getGlobalSdk: () => ((({
3363
3363
  templateOptions?: {
3364
3364
  [x: string]: string;
3365
3365
  };
3366
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").EnchantedLinkResponse>>;
3366
+ }) => Promise<_1.SdkResponse<_1.EnchantedLinkResponse>>;
3367
3367
  waitForSession: (pendingRef: string, config?: {
3368
3368
  pollingIntervalMs: number;
3369
3369
  timeoutMs: number;
3370
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").JWTResponse>>;
3370
+ }) => Promise<_1.SdkResponse<_1.JWTResponse>>;
3371
3371
  update: {
3372
3372
  email: <T_4_1 extends boolean>(loginId: string, email: string, URI?: string, token?: string, updateOptions?: {
3373
3373
  addToLoginIDs?: T_4_1;
@@ -3375,28 +3375,28 @@ export declare const getGlobalSdk: () => ((({
3375
3375
  templateOptions?: {
3376
3376
  [x: string]: string;
3377
3377
  };
3378
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").EnchantedLinkResponse>>;
3378
+ }) => Promise<_1.SdkResponse<_1.EnchantedLinkResponse>>;
3379
3379
  };
3380
3380
  };
3381
3381
  oauth: {
3382
- start: ((provider: string, redirectUrl?: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").ResponseData>>) & {
3383
- google: (redirectURL?: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").URLResponse>>;
3384
- facebook: (redirectURL?: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").URLResponse>>;
3385
- github: (redirectURL?: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").URLResponse>>;
3386
- microsoft: (redirectURL?: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").URLResponse>>;
3387
- gitlab: (redirectURL?: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").URLResponse>>;
3388
- apple: (redirectURL?: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").URLResponse>>;
3389
- discord: (redirectURL?: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").URLResponse>>;
3390
- linkedin: (redirectURL?: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").URLResponse>>;
3391
- slack: (redirectURL?: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").URLResponse>>;
3392
- };
3393
- exchange: (code: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").JWTResponse>>;
3394
- startNative: (provider: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, implicit?: boolean) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").ResponseData>>;
3395
- finishNative: (provider: string, stateId: string, user?: string, code?: string, idToken?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").ResponseData>>;
3382
+ start: ((provider: string, redirectUrl?: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<_1.ResponseData>>) & {
3383
+ google: (redirectURL?: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
3384
+ facebook: (redirectURL?: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
3385
+ github: (redirectURL?: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
3386
+ microsoft: (redirectURL?: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
3387
+ gitlab: (redirectURL?: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
3388
+ apple: (redirectURL?: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
3389
+ discord: (redirectURL?: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
3390
+ linkedin: (redirectURL?: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
3391
+ slack: (redirectURL?: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
3392
+ };
3393
+ exchange: (code: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
3394
+ startNative: (provider: string, loginOptions?: _1.LoginOptions, implicit?: boolean) => Promise<_1.SdkResponse<_1.ResponseData>>;
3395
+ finishNative: (provider: string, stateId: string, user?: string, code?: string, idToken?: string) => Promise<_1.SdkResponse<_1.ResponseData>>;
3396
3396
  };
3397
3397
  saml: {
3398
- start: (tenantIdOrEmail: string, redirectUrl?: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").URLResponse>>;
3399
- exchange: (code: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").JWTResponse>>;
3398
+ start: (tenantIdOrEmail: string, redirectUrl?: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
3399
+ exchange: (code: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
3400
3400
  };
3401
3401
  totp: {
3402
3402
  signUp: (loginId: string, user?: {
@@ -3406,9 +3406,9 @@ export declare const getGlobalSdk: () => ((({
3406
3406
  middleName?: string;
3407
3407
  familyName?: string;
3408
3408
  phone?: string;
3409
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").TOTPResponse>>;
3410
- verify: (loginId: string, code: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").JWTResponse>>;
3411
- update: (loginId: string, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").TOTPResponse>>;
3409
+ }) => Promise<_1.SdkResponse<_1.TOTPResponse>>;
3410
+ verify: (loginId: string, code: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
3411
+ update: (loginId: string, token?: string) => Promise<_1.SdkResponse<_1.TOTPResponse>>;
3412
3412
  };
3413
3413
  notp: {
3414
3414
  signUpOrIn: (loginId?: string, signUpOptions?: {
@@ -3416,7 +3416,7 @@ export declare const getGlobalSdk: () => ((({
3416
3416
  templateOptions?: {
3417
3417
  [x: string]: string;
3418
3418
  };
3419
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<{
3419
+ }) => Promise<_1.SdkResponse<{
3420
3420
  pendingRef: string;
3421
3421
  redirectUrl: string;
3422
3422
  image: string;
@@ -3433,12 +3433,12 @@ export declare const getGlobalSdk: () => ((({
3433
3433
  templateOptions?: {
3434
3434
  [x: string]: string;
3435
3435
  };
3436
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<{
3436
+ }) => Promise<_1.SdkResponse<{
3437
3437
  pendingRef: string;
3438
3438
  redirectUrl: string;
3439
3439
  image: string;
3440
3440
  }>>;
3441
- signIn: (loginId?: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<{
3441
+ signIn: (loginId?: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
3442
3442
  pendingRef: string;
3443
3443
  redirectUrl: string;
3444
3444
  image: string;
@@ -3446,7 +3446,7 @@ export declare const getGlobalSdk: () => ((({
3446
3446
  waitForSession: (pendingRef: string, config?: {
3447
3447
  pollingIntervalMs: number;
3448
3448
  timeoutMs: number;
3449
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").JWTResponse>>;
3449
+ }) => Promise<_1.SdkResponse<_1.JWTResponse>>;
3450
3450
  };
3451
3451
  password: {
3452
3452
  signUp: (loginId: string, password: string, user?: {
@@ -3461,19 +3461,19 @@ export declare const getGlobalSdk: () => ((({
3461
3461
  templateOptions?: {
3462
3462
  [x: string]: string;
3463
3463
  };
3464
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").JWTResponse>>;
3465
- signIn: (loginId: string, password: string, loginOptions?: import("@descope/core-js-sdk").LoginOptions) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").JWTResponse>>;
3464
+ }) => Promise<_1.SdkResponse<_1.JWTResponse>>;
3465
+ signIn: (loginId: string, password: string, loginOptions?: _1.LoginOptions) => Promise<_1.SdkResponse<_1.JWTResponse>>;
3466
3466
  sendReset: (loginId: string, redirectUrl?: string, templateOptions?: {
3467
3467
  [x: string]: string;
3468
- }) => Promise<import("@descope/core-js-sdk").SdkResponse<{
3468
+ }) => Promise<_1.SdkResponse<{
3469
3469
  resetMethod: string;
3470
3470
  pendingRef?: string;
3471
3471
  linkId?: string;
3472
3472
  maskedEmail: string;
3473
3473
  }>>;
3474
- update: (loginId: string, newPassword: string, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<never>>;
3475
- replace: (loginId: string, oldPassword: string, newPassword: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").JWTResponse>>;
3476
- policy: () => Promise<import("@descope/core-js-sdk").SdkResponse<{
3474
+ update: (loginId: string, newPassword: string, token?: string) => Promise<_1.SdkResponse<never>>;
3475
+ replace: (loginId: string, oldPassword: string, newPassword: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
3476
+ policy: () => Promise<_1.SdkResponse<{
3477
3477
  minLength: number;
3478
3478
  lowercase: boolean;
3479
3479
  uppercase: boolean;
@@ -3481,12 +3481,12 @@ export declare const getGlobalSdk: () => ((({
3481
3481
  nonAlphanumeric: boolean;
3482
3482
  }>>;
3483
3483
  };
3484
- refresh: (token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").JWTResponse>>;
3485
- selectTenant: (tenantId: string, token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").JWTResponse>>;
3486
- logout: (token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<never>>;
3487
- logoutAll: (token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<never>>;
3488
- me: (token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").UserResponse>>;
3489
- history: (token?: string) => Promise<import("@descope/core-js-sdk").SdkResponse<import("@descope/core-js-sdk").UserHistoryResponse>>;
3484
+ refresh: (token?: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
3485
+ selectTenant: (tenantId: string, token?: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
3486
+ logout: (token?: string) => Promise<_1.SdkResponse<never>>;
3487
+ logoutAll: (token?: string) => Promise<_1.SdkResponse<never>>;
3488
+ me: (token?: string) => Promise<_1.SdkResponse<_1.UserResponse>>;
3489
+ history: (token?: string) => Promise<_1.SdkResponse<_1.UserHistoryResponse>>;
3490
3490
  isJwtExpired: (token: string) => boolean;
3491
3491
  getTenants: (token: string) => string[];
3492
3492
  getJwtPermissions: (token: string, tenant?: string) => string[];
@@ -3528,9 +3528,9 @@ export declare const getGlobalSdk: () => ((({
3528
3528
  token?: string;
3529
3529
  }) => Promise<Response>;
3530
3530
  hooks?: {
3531
- beforeRequest?: (config: import("@descope/core-js-sdk").RequestConfig) => import("@descope/core-js-sdk").RequestConfig;
3532
- afterRequest?: (req: import("@descope/core-js-sdk").RequestConfig, res: Response) => void | Promise<void>;
3533
- transformResponse?: (mutableResponse: import("@descope/core-js-sdk").ExtendedResponse) => Promise<import("@descope/core-js-sdk").ExtendedResponse>;
3531
+ beforeRequest?: (config: _1.RequestConfig) => _1.RequestConfig;
3532
+ afterRequest?: (req: _1.RequestConfig, res: Response) => void | Promise<void>;
3533
+ transformResponse?: (mutableResponse: _1.ExtendedResponse) => Promise<_1.ExtendedResponse>;
3534
3534
  };
3535
3535
  buildUrl: (path: string, queryParams?: {
3536
3536
  [key: string]: string;
@@ -3538,7 +3538,7 @@ export declare const getGlobalSdk: () => ((({
3538
3538
  };
3539
3539
  }) & {
3540
3540
  onSessionTokenChange: (cb: (data: string) => void) => () => any[];
3541
- onUserChange: (cb: (data: import("@descope/core-js-sdk").UserResponse) => void) => () => any[];
3541
+ onUserChange: (cb: (data: _1.UserResponse) => void) => () => any[];
3542
3542
  }) & {
3543
3543
  getLastUserLoginId: () => string;
3544
3544
  getLastUserDisplayName: () => string;