@descope/react-sdk 2.0.60 → 2.0.61

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -8,7 +8,7 @@ import AccessKeyManagementWidget from '@descope/access-key-management-widget';
8
8
  import AuditManagementWidget from '@descope/audit-management-widget';
9
9
  import UserProfileWidget from '@descope/user-profile-widget';
10
10
  import * as _descope_web_js_sdk from '@descope/web-js-sdk';
11
- import * as _descope_core_js_sdk from '@descope/core-js-sdk';
11
+ import * as _1 from '@descope/core-js-sdk';
12
12
 
13
13
  interface IAuthProviderProps {
14
14
  projectId: string;
@@ -44,18 +44,18 @@ declare const createSdkWrapper: <P extends Omit<{
44
44
  };
45
45
  baseUrl?: string;
46
46
  hooks?: {
47
- beforeRequest?: (config: _descope_core_js_sdk.RequestConfig) => _descope_core_js_sdk.RequestConfig;
48
- afterRequest?: (req: _descope_core_js_sdk.RequestConfig, res: Response) => void | Promise<void>;
49
- transformResponse?: (mutableResponse: _descope_core_js_sdk.ExtendedResponse) => Promise<_descope_core_js_sdk.ExtendedResponse>;
47
+ beforeRequest?: (config: _1.RequestConfig) => _1.RequestConfig;
48
+ afterRequest?: (req: _1.RequestConfig, res: Response) => void | Promise<void>;
49
+ transformResponse?: (mutableResponse: _1.ExtendedResponse) => Promise<_1.ExtendedResponse>;
50
50
  };
51
51
  cookiePolicy?: RequestCredentials;
52
52
  baseHeaders?: HeadersInit;
53
53
  fetch?: typeof fetch;
54
54
  }, "hooks"> & {
55
55
  hooks?: {
56
- beforeRequest?: ((config: _descope_core_js_sdk.RequestConfig) => _descope_core_js_sdk.RequestConfig) | ((config: _descope_core_js_sdk.RequestConfig) => _descope_core_js_sdk.RequestConfig)[];
57
- afterRequest?: ((req: _descope_core_js_sdk.RequestConfig, res: Response) => void | Promise<void>) | ((req: _descope_core_js_sdk.RequestConfig, res: Response) => void | Promise<void>)[];
58
- transformResponse?: (mutableResponse: _descope_core_js_sdk.ExtendedResponse) => Promise<_descope_core_js_sdk.ExtendedResponse>;
56
+ beforeRequest?: ((config: _1.RequestConfig) => _1.RequestConfig) | ((config: _1.RequestConfig) => _1.RequestConfig)[];
57
+ afterRequest?: ((req: _1.RequestConfig, res: Response) => void | Promise<void>) | ((req: _1.RequestConfig, res: Response) => void | Promise<void>)[];
58
+ transformResponse?: (mutableResponse: _1.ExtendedResponse) => Promise<_1.ExtendedResponse>;
59
59
  };
60
60
  } & {
61
61
  fpKey?: string;
@@ -110,42 +110,42 @@ declare const createSdkWrapper: <P extends Omit<{
110
110
  }, "loginId" | "name">;
111
111
  }, conditionInteractionId?: string, interactionId?: string, version?: number, componentsVersion?: string, input?: {
112
112
  [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[])[])[])[])[])[])[])[])[])[])[];
113
- }) => Promise<_descope_core_js_sdk.SdkResponse<_descope_core_js_sdk.FlowResponse>>;
113
+ }) => Promise<_1.SdkResponse<_1.FlowResponse>>;
114
114
  next: (executionId: string, stepId: string, interactionId: string, version?: number, componentsVersion?: string, input?: {
115
115
  [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[])[])[])[])[])[])[])[])[])[])[];
116
- }) => Promise<_descope_core_js_sdk.SdkResponse<_descope_core_js_sdk.FlowResponse>>;
116
+ }) => Promise<_1.SdkResponse<_1.FlowResponse>>;
117
117
  };
118
118
  webauthn: {
119
- signUp: ((identifier: string, name: string) => Promise<_descope_core_js_sdk.SdkResponse<_descope_core_js_sdk.JWTResponse>>) & {
120
- start: (loginId: string, origin: string, name: string) => Promise<_descope_core_js_sdk.SdkResponse<{
119
+ signUp: ((identifier: string, name: string) => Promise<_1.SdkResponse<_1.JWTResponse>>) & {
120
+ start: (loginId: string, origin: string, name: 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<_descope_core_js_sdk.SdkResponse<_descope_core_js_sdk.JWTResponse>>;
125
+ finish: (transactionId: string, response: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
126
126
  };
127
- signIn: ((identifier: string) => Promise<_descope_core_js_sdk.SdkResponse<_descope_core_js_sdk.JWTResponse>>) & {
128
- start: (loginId: string, origin: string, loginOptions?: _descope_core_js_sdk.LoginOptions, token?: string) => Promise<_descope_core_js_sdk.SdkResponse<{
127
+ signIn: ((identifier: string) => Promise<_1.SdkResponse<_1.JWTResponse>>) & {
128
+ start: (loginId: string, origin: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
129
129
  transactionId: string;
130
130
  options: string;
131
131
  create: boolean;
132
132
  }>>;
133
- finish: (transactionId: string, response: string) => Promise<_descope_core_js_sdk.SdkResponse<_descope_core_js_sdk.JWTResponse>>;
133
+ finish: (transactionId: string, response: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
134
134
  };
135
- signUpOrIn: ((identifier: string) => Promise<_descope_core_js_sdk.SdkResponse<_descope_core_js_sdk.JWTResponse>>) & {
136
- start: (loginId: string, origin: string) => Promise<_descope_core_js_sdk.SdkResponse<{
135
+ signUpOrIn: ((identifier: string) => Promise<_1.SdkResponse<_1.JWTResponse>>) & {
136
+ start: (loginId: string, origin: string) => Promise<_1.SdkResponse<{
137
137
  transactionId: string;
138
138
  options: string;
139
139
  create: boolean;
140
140
  }>>;
141
141
  };
142
- update: ((identifier: string, token: string) => Promise<_descope_core_js_sdk.SdkResponse<_descope_core_js_sdk.ResponseData>>) & {
143
- start: (loginId: string, origin: string, token: string) => Promise<_descope_core_js_sdk.SdkResponse<{
142
+ update: ((identifier: string, token: string) => Promise<_1.SdkResponse<_1.ResponseData>>) & {
143
+ start: (loginId: string, origin: string, token: string) => Promise<_1.SdkResponse<{
144
144
  transactionId: string;
145
145
  options: string;
146
146
  create: boolean;
147
147
  }>>;
148
- finish: (transactionId: string, response: string) => Promise<_descope_core_js_sdk.SdkResponse<_descope_core_js_sdk.ResponseData>>;
148
+ finish: (transactionId: string, response: string) => Promise<_1.SdkResponse<_1.ResponseData>>;
149
149
  };
150
150
  helpers: {
151
151
  create: (options: string) => Promise<string>;
@@ -155,31 +155,31 @@ declare const createSdkWrapper: <P extends Omit<{
155
155
  };
156
156
  };
157
157
  fedcm: {
158
- oneTap(provider?: string, oneTapConfig?: _descope_web_js_sdk.OneTapConfig, loginOptions?: _descope_core_js_sdk.LoginOptions, onSkip?: () => void): Promise<unknown>;
159
- launch(context?: "signin" | "signup" | "use" | "continue"): Promise<_descope_core_js_sdk.SdkResponse<_descope_core_js_sdk.JWTResponse>>;
158
+ oneTap(provider?: string, oneTapConfig?: _descope_web_js_sdk.OneTapConfig, loginOptions?: _1.LoginOptions, onSkip?: () => void): Promise<unknown>;
159
+ launch(context?: "signin" | "signup" | "use" | "continue"): Promise<_1.SdkResponse<_1.JWTResponse>>;
160
160
  isSupported(): boolean;
161
161
  };
162
162
  accessKey: {
163
- exchange: (accessKey: string, loginOptions?: _descope_core_js_sdk.AccessKeyLoginOptions) => Promise<_descope_core_js_sdk.SdkResponse<_descope_core_js_sdk.ExchangeAccessKeyResponse>>;
163
+ exchange: (accessKey: string, loginOptions?: _1.AccessKeyLoginOptions) => Promise<_1.SdkResponse<_1.ExchangeAccessKeyResponse>>;
164
164
  };
165
165
  otp: {
166
166
  verify: {
167
- sms: (loginId: string, code: string) => Promise<_descope_core_js_sdk.SdkResponse<_descope_core_js_sdk.JWTResponse>>;
168
- voice: (loginId: string, code: string) => Promise<_descope_core_js_sdk.SdkResponse<_descope_core_js_sdk.JWTResponse>>;
169
- whatsapp: (loginId: string, code: string) => Promise<_descope_core_js_sdk.SdkResponse<_descope_core_js_sdk.JWTResponse>>;
170
- email: (loginId: string, code: string) => Promise<_descope_core_js_sdk.SdkResponse<_descope_core_js_sdk.JWTResponse>>;
167
+ sms: (loginId: string, code: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
168
+ voice: (loginId: string, code: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
169
+ whatsapp: (loginId: string, code: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
170
+ email: (loginId: string, code: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
171
171
  };
172
172
  signIn: {
173
- sms: (loginId: string, loginOptions?: _descope_core_js_sdk.LoginOptions, token?: string) => Promise<_descope_core_js_sdk.SdkResponse<{
173
+ sms: (loginId: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
174
174
  maskedPhone: string;
175
175
  }>>;
176
- voice: (loginId: string, loginOptions?: _descope_core_js_sdk.LoginOptions, token?: string) => Promise<_descope_core_js_sdk.SdkResponse<{
176
+ voice: (loginId: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
177
177
  maskedPhone: string;
178
178
  }>>;
179
- whatsapp: (loginId: string, loginOptions?: _descope_core_js_sdk.LoginOptions, token?: string) => Promise<_descope_core_js_sdk.SdkResponse<{
179
+ whatsapp: (loginId: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
180
180
  maskedPhone: string;
181
181
  }>>;
182
- email: (loginId: string, loginOptions?: _descope_core_js_sdk.LoginOptions, token?: string) => Promise<_descope_core_js_sdk.SdkResponse<{
182
+ email: (loginId: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
183
183
  maskedEmail: string;
184
184
  }>>;
185
185
  };
@@ -196,7 +196,7 @@ declare const createSdkWrapper: <P extends Omit<{
196
196
  templateOptions?: {
197
197
  [x: string]: string;
198
198
  };
199
- }) => Promise<_descope_core_js_sdk.SdkResponse<{
199
+ }) => Promise<_1.SdkResponse<{
200
200
  maskedPhone: string;
201
201
  }>>;
202
202
  voice: (loginId: string, user?: {
@@ -211,7 +211,7 @@ declare const createSdkWrapper: <P extends Omit<{
211
211
  templateOptions?: {
212
212
  [x: string]: string;
213
213
  };
214
- }) => Promise<_descope_core_js_sdk.SdkResponse<{
214
+ }) => Promise<_1.SdkResponse<{
215
215
  maskedPhone: string;
216
216
  }>>;
217
217
  whatsapp: (loginId: string, user?: {
@@ -226,7 +226,7 @@ declare const createSdkWrapper: <P extends Omit<{
226
226
  templateOptions?: {
227
227
  [x: string]: string;
228
228
  };
229
- }) => Promise<_descope_core_js_sdk.SdkResponse<{
229
+ }) => Promise<_1.SdkResponse<{
230
230
  maskedPhone: string;
231
231
  }>>;
232
232
  email: (loginId: string, user?: {
@@ -241,21 +241,21 @@ declare const createSdkWrapper: <P extends Omit<{
241
241
  templateOptions?: {
242
242
  [x: string]: string;
243
243
  };
244
- }) => Promise<_descope_core_js_sdk.SdkResponse<{
244
+ }) => Promise<_1.SdkResponse<{
245
245
  maskedEmail: string;
246
246
  }>>;
247
247
  };
248
248
  signUpOrIn: {
249
- sms: (loginId: string, loginOptions?: _descope_core_js_sdk.LoginOptions, token?: string) => Promise<_descope_core_js_sdk.SdkResponse<{
249
+ sms: (loginId: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
250
250
  maskedPhone: string;
251
251
  }>>;
252
- voice: (loginId: string, loginOptions?: _descope_core_js_sdk.LoginOptions, token?: string) => Promise<_descope_core_js_sdk.SdkResponse<{
252
+ voice: (loginId: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
253
253
  maskedPhone: string;
254
254
  }>>;
255
- whatsapp: (loginId: string, loginOptions?: _descope_core_js_sdk.LoginOptions, token?: string) => Promise<_descope_core_js_sdk.SdkResponse<{
255
+ whatsapp: (loginId: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
256
256
  maskedPhone: string;
257
257
  }>>;
258
- email: (loginId: string, loginOptions?: _descope_core_js_sdk.LoginOptions, token?: string) => Promise<_descope_core_js_sdk.SdkResponse<{
258
+ email: (loginId: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
259
259
  maskedEmail: string;
260
260
  }>>;
261
261
  };
@@ -266,7 +266,7 @@ declare const createSdkWrapper: <P extends Omit<{
266
266
  templateOptions?: {
267
267
  [x: string]: string;
268
268
  };
269
- }) => Promise<_descope_core_js_sdk.SdkResponse<{
269
+ }) => Promise<_1.SdkResponse<{
270
270
  maskedEmail: string;
271
271
  }>>;
272
272
  phone: {
@@ -276,7 +276,7 @@ declare const createSdkWrapper: <P extends Omit<{
276
276
  templateOptions?: {
277
277
  [x: string]: string;
278
278
  };
279
- }) => Promise<_descope_core_js_sdk.SdkResponse<{
279
+ }) => Promise<_1.SdkResponse<{
280
280
  maskedPhone: string;
281
281
  }>>;
282
282
  voice: <T_1_1 extends boolean>(loginId: string, phone: string, token?: string, updateOptions?: {
@@ -285,7 +285,7 @@ declare const createSdkWrapper: <P extends Omit<{
285
285
  templateOptions?: {
286
286
  [x: string]: string;
287
287
  };
288
- }) => Promise<_descope_core_js_sdk.SdkResponse<{
288
+ }) => Promise<_1.SdkResponse<{
289
289
  maskedPhone: string;
290
290
  }>>;
291
291
  whatsapp: <T_1_2 extends boolean>(loginId: string, phone: string, token?: string, updateOptions?: {
@@ -294,25 +294,25 @@ declare const createSdkWrapper: <P extends Omit<{
294
294
  templateOptions?: {
295
295
  [x: string]: string;
296
296
  };
297
- }) => Promise<_descope_core_js_sdk.SdkResponse<{
297
+ }) => Promise<_1.SdkResponse<{
298
298
  maskedPhone: string;
299
299
  }>>;
300
300
  };
301
301
  };
302
302
  };
303
303
  magicLink: {
304
- verify: (token: string) => Promise<_descope_core_js_sdk.SdkResponse<_descope_core_js_sdk.JWTResponse>>;
304
+ verify: (token: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
305
305
  signIn: {
306
- sms: (loginId: string, URI: string, loginOptions?: _descope_core_js_sdk.LoginOptions, token?: string) => Promise<_descope_core_js_sdk.SdkResponse<{
306
+ sms: (loginId: string, URI: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
307
307
  maskedPhone: string;
308
308
  }>>;
309
- voice: (loginId: string, URI: string, loginOptions?: _descope_core_js_sdk.LoginOptions, token?: string) => Promise<_descope_core_js_sdk.SdkResponse<{
309
+ voice: (loginId: string, URI: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
310
310
  maskedPhone: string;
311
311
  }>>;
312
- whatsapp: (loginId: string, URI: string, loginOptions?: _descope_core_js_sdk.LoginOptions, token?: string) => Promise<_descope_core_js_sdk.SdkResponse<{
312
+ whatsapp: (loginId: string, URI: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
313
313
  maskedPhone: string;
314
314
  }>>;
315
- email: (loginId: string, URI: string, loginOptions?: _descope_core_js_sdk.LoginOptions, token?: string) => Promise<_descope_core_js_sdk.SdkResponse<{
315
+ email: (loginId: string, URI: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
316
316
  maskedEmail: string;
317
317
  }>>;
318
318
  };
@@ -329,7 +329,7 @@ declare const createSdkWrapper: <P extends Omit<{
329
329
  templateOptions?: {
330
330
  [x: string]: string;
331
331
  };
332
- }) => Promise<_descope_core_js_sdk.SdkResponse<{
332
+ }) => Promise<_1.SdkResponse<{
333
333
  maskedPhone: string;
334
334
  }>>;
335
335
  voice: (loginId: string, URI: string, user?: {
@@ -344,7 +344,7 @@ declare const createSdkWrapper: <P extends Omit<{
344
344
  templateOptions?: {
345
345
  [x: string]: string;
346
346
  };
347
- }) => Promise<_descope_core_js_sdk.SdkResponse<{
347
+ }) => Promise<_1.SdkResponse<{
348
348
  maskedPhone: string;
349
349
  }>>;
350
350
  whatsapp: (loginId: string, URI: string, user?: {
@@ -359,7 +359,7 @@ declare const createSdkWrapper: <P extends Omit<{
359
359
  templateOptions?: {
360
360
  [x: string]: string;
361
361
  };
362
- }) => Promise<_descope_core_js_sdk.SdkResponse<{
362
+ }) => Promise<_1.SdkResponse<{
363
363
  maskedPhone: string;
364
364
  }>>;
365
365
  email: (loginId: string, URI: string, user?: {
@@ -374,7 +374,7 @@ declare const createSdkWrapper: <P extends Omit<{
374
374
  templateOptions?: {
375
375
  [x: string]: string;
376
376
  };
377
- }) => Promise<_descope_core_js_sdk.SdkResponse<{
377
+ }) => Promise<_1.SdkResponse<{
378
378
  maskedEmail: string;
379
379
  }>>;
380
380
  };
@@ -384,7 +384,7 @@ declare const createSdkWrapper: <P extends Omit<{
384
384
  templateOptions?: {
385
385
  [x: string]: string;
386
386
  };
387
- }) => Promise<_descope_core_js_sdk.SdkResponse<{
387
+ }) => Promise<_1.SdkResponse<{
388
388
  maskedPhone: string;
389
389
  }>>;
390
390
  voice: (loginId: string, URI?: string, signUpOptions?: {
@@ -392,7 +392,7 @@ declare const createSdkWrapper: <P extends Omit<{
392
392
  templateOptions?: {
393
393
  [x: string]: string;
394
394
  };
395
- }) => Promise<_descope_core_js_sdk.SdkResponse<{
395
+ }) => Promise<_1.SdkResponse<{
396
396
  maskedPhone: string;
397
397
  }>>;
398
398
  whatsapp: (loginId: string, URI?: string, signUpOptions?: {
@@ -400,7 +400,7 @@ declare const createSdkWrapper: <P extends Omit<{
400
400
  templateOptions?: {
401
401
  [x: string]: string;
402
402
  };
403
- }) => Promise<_descope_core_js_sdk.SdkResponse<{
403
+ }) => Promise<_1.SdkResponse<{
404
404
  maskedPhone: string;
405
405
  }>>;
406
406
  email: (loginId: string, URI?: string, signUpOptions?: {
@@ -408,7 +408,7 @@ declare const createSdkWrapper: <P extends Omit<{
408
408
  templateOptions?: {
409
409
  [x: string]: string;
410
410
  };
411
- }) => Promise<_descope_core_js_sdk.SdkResponse<{
411
+ }) => Promise<_1.SdkResponse<{
412
412
  maskedEmail: string;
413
413
  }>>;
414
414
  };
@@ -419,7 +419,7 @@ declare const createSdkWrapper: <P extends Omit<{
419
419
  templateOptions?: {
420
420
  [x: string]: string;
421
421
  };
422
- }) => Promise<_descope_core_js_sdk.SdkResponse<{
422
+ }) => Promise<_1.SdkResponse<{
423
423
  maskedEmail: string;
424
424
  }>>;
425
425
  phone: {
@@ -429,7 +429,7 @@ declare const createSdkWrapper: <P extends Omit<{
429
429
  templateOptions?: {
430
430
  [x: string]: string;
431
431
  };
432
- }) => Promise<_descope_core_js_sdk.SdkResponse<{
432
+ }) => Promise<_1.SdkResponse<{
433
433
  maskedPhone: string;
434
434
  }>>;
435
435
  voice: <T_3_1 extends boolean>(loginId: string, phone: string, URI?: string, token?: string, updateOptions?: {
@@ -438,7 +438,7 @@ declare const createSdkWrapper: <P extends Omit<{
438
438
  templateOptions?: {
439
439
  [x: string]: string;
440
440
  };
441
- }) => Promise<_descope_core_js_sdk.SdkResponse<{
441
+ }) => Promise<_1.SdkResponse<{
442
442
  maskedPhone: string;
443
443
  }>>;
444
444
  whatsapp: <T_3_2 extends boolean>(loginId: string, phone: string, URI?: string, token?: string, updateOptions?: {
@@ -447,21 +447,21 @@ declare const createSdkWrapper: <P extends Omit<{
447
447
  templateOptions?: {
448
448
  [x: string]: string;
449
449
  };
450
- }) => Promise<_descope_core_js_sdk.SdkResponse<{
450
+ }) => Promise<_1.SdkResponse<{
451
451
  maskedPhone: string;
452
452
  }>>;
453
453
  };
454
454
  };
455
455
  };
456
456
  enchantedLink: {
457
- verify: (token: string) => Promise<_descope_core_js_sdk.SdkResponse<never>>;
458
- signIn: (loginId: string, URI?: string, loginOptions?: _descope_core_js_sdk.LoginOptions, token?: string) => Promise<_descope_core_js_sdk.SdkResponse<_descope_core_js_sdk.EnchantedLinkResponse>>;
457
+ verify: (token: string) => Promise<_1.SdkResponse<never>>;
458
+ signIn: (loginId: string, URI?: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<_1.EnchantedLinkResponse>>;
459
459
  signUpOrIn: (loginId: string, URI?: string, signUpOptions?: {
460
460
  customClaims?: Record<string, any>;
461
461
  templateOptions?: {
462
462
  [x: string]: string;
463
463
  };
464
- }) => Promise<_descope_core_js_sdk.SdkResponse<_descope_core_js_sdk.EnchantedLinkResponse>>;
464
+ }) => Promise<_1.SdkResponse<_1.EnchantedLinkResponse>>;
465
465
  signUp: (loginId: string, URI?: string, user?: {
466
466
  email?: string;
467
467
  name?: string;
@@ -474,11 +474,11 @@ declare const createSdkWrapper: <P extends Omit<{
474
474
  templateOptions?: {
475
475
  [x: string]: string;
476
476
  };
477
- }) => Promise<_descope_core_js_sdk.SdkResponse<_descope_core_js_sdk.EnchantedLinkResponse>>;
477
+ }) => Promise<_1.SdkResponse<_1.EnchantedLinkResponse>>;
478
478
  waitForSession: (pendingRef: string, config?: {
479
479
  pollingIntervalMs: number;
480
480
  timeoutMs: number;
481
- }) => Promise<_descope_core_js_sdk.SdkResponse<_descope_core_js_sdk.JWTResponse>>;
481
+ }) => Promise<_1.SdkResponse<_1.JWTResponse>>;
482
482
  update: {
483
483
  email: <T_4 extends boolean>(loginId: string, email: string, URI?: string, token?: string, updateOptions?: {
484
484
  addToLoginIDs?: T_4;
@@ -486,28 +486,28 @@ declare const createSdkWrapper: <P extends Omit<{
486
486
  templateOptions?: {
487
487
  [x: string]: string;
488
488
  };
489
- }) => Promise<_descope_core_js_sdk.SdkResponse<_descope_core_js_sdk.EnchantedLinkResponse>>;
489
+ }) => Promise<_1.SdkResponse<_1.EnchantedLinkResponse>>;
490
490
  };
491
491
  };
492
492
  oauth: {
493
- start: ((provider: string, redirectUrl?: string, loginOptions?: _descope_core_js_sdk.LoginOptions, token?: string) => Promise<_descope_core_js_sdk.SdkResponse<_descope_core_js_sdk.ResponseData>>) & {
494
- google: (redirectURL?: string, loginOptions?: _descope_core_js_sdk.LoginOptions, token?: string) => Promise<_descope_core_js_sdk.SdkResponse<_descope_core_js_sdk.URLResponse>>;
495
- facebook: (redirectURL?: string, loginOptions?: _descope_core_js_sdk.LoginOptions, token?: string) => Promise<_descope_core_js_sdk.SdkResponse<_descope_core_js_sdk.URLResponse>>;
496
- github: (redirectURL?: string, loginOptions?: _descope_core_js_sdk.LoginOptions, token?: string) => Promise<_descope_core_js_sdk.SdkResponse<_descope_core_js_sdk.URLResponse>>;
497
- microsoft: (redirectURL?: string, loginOptions?: _descope_core_js_sdk.LoginOptions, token?: string) => Promise<_descope_core_js_sdk.SdkResponse<_descope_core_js_sdk.URLResponse>>;
498
- gitlab: (redirectURL?: string, loginOptions?: _descope_core_js_sdk.LoginOptions, token?: string) => Promise<_descope_core_js_sdk.SdkResponse<_descope_core_js_sdk.URLResponse>>;
499
- apple: (redirectURL?: string, loginOptions?: _descope_core_js_sdk.LoginOptions, token?: string) => Promise<_descope_core_js_sdk.SdkResponse<_descope_core_js_sdk.URLResponse>>;
500
- discord: (redirectURL?: string, loginOptions?: _descope_core_js_sdk.LoginOptions, token?: string) => Promise<_descope_core_js_sdk.SdkResponse<_descope_core_js_sdk.URLResponse>>;
501
- linkedin: (redirectURL?: string, loginOptions?: _descope_core_js_sdk.LoginOptions, token?: string) => Promise<_descope_core_js_sdk.SdkResponse<_descope_core_js_sdk.URLResponse>>;
502
- slack: (redirectURL?: string, loginOptions?: _descope_core_js_sdk.LoginOptions, token?: string) => Promise<_descope_core_js_sdk.SdkResponse<_descope_core_js_sdk.URLResponse>>;
493
+ start: ((provider: string, redirectUrl?: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<_1.ResponseData>>) & {
494
+ google: (redirectURL?: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
495
+ facebook: (redirectURL?: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
496
+ github: (redirectURL?: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
497
+ microsoft: (redirectURL?: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
498
+ gitlab: (redirectURL?: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
499
+ apple: (redirectURL?: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
500
+ discord: (redirectURL?: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
501
+ linkedin: (redirectURL?: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
502
+ slack: (redirectURL?: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
503
503
  };
504
- exchange: (code: string) => Promise<_descope_core_js_sdk.SdkResponse<_descope_core_js_sdk.JWTResponse>>;
505
- startNative: (provider: string, loginOptions?: _descope_core_js_sdk.LoginOptions, implicit?: boolean) => Promise<_descope_core_js_sdk.SdkResponse<_descope_core_js_sdk.ResponseData>>;
506
- finishNative: (provider: string, stateId: string, user?: string, code?: string, idToken?: string) => Promise<_descope_core_js_sdk.SdkResponse<_descope_core_js_sdk.ResponseData>>;
504
+ exchange: (code: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
505
+ startNative: (provider: string, loginOptions?: _1.LoginOptions, implicit?: boolean) => Promise<_1.SdkResponse<_1.ResponseData>>;
506
+ finishNative: (provider: string, stateId: string, user?: string, code?: string, idToken?: string) => Promise<_1.SdkResponse<_1.ResponseData>>;
507
507
  };
508
508
  saml: {
509
- start: (tenantIdOrEmail: string, redirectUrl?: string, loginOptions?: _descope_core_js_sdk.LoginOptions, token?: string) => Promise<_descope_core_js_sdk.SdkResponse<_descope_core_js_sdk.URLResponse>>;
510
- exchange: (code: string) => Promise<_descope_core_js_sdk.SdkResponse<_descope_core_js_sdk.JWTResponse>>;
509
+ start: (tenantIdOrEmail: string, redirectUrl?: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
510
+ exchange: (code: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
511
511
  };
512
512
  totp: {
513
513
  signUp: (loginId: string, user?: {
@@ -517,9 +517,9 @@ declare const createSdkWrapper: <P extends Omit<{
517
517
  middleName?: string;
518
518
  familyName?: string;
519
519
  phone?: string;
520
- }) => Promise<_descope_core_js_sdk.SdkResponse<_descope_core_js_sdk.TOTPResponse>>;
521
- verify: (loginId: string, code: string, loginOptions?: _descope_core_js_sdk.LoginOptions, token?: string) => Promise<_descope_core_js_sdk.SdkResponse<_descope_core_js_sdk.JWTResponse>>;
522
- update: (loginId: string, token?: string) => Promise<_descope_core_js_sdk.SdkResponse<_descope_core_js_sdk.TOTPResponse>>;
520
+ }) => Promise<_1.SdkResponse<_1.TOTPResponse>>;
521
+ verify: (loginId: string, code: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
522
+ update: (loginId: string, token?: string) => Promise<_1.SdkResponse<_1.TOTPResponse>>;
523
523
  };
524
524
  notp: {
525
525
  signUpOrIn: (loginId?: string, signUpOptions?: {
@@ -527,7 +527,7 @@ declare const createSdkWrapper: <P extends Omit<{
527
527
  templateOptions?: {
528
528
  [x: string]: string;
529
529
  };
530
- }) => Promise<_descope_core_js_sdk.SdkResponse<{
530
+ }) => Promise<_1.SdkResponse<{
531
531
  pendingRef: string;
532
532
  redirectUrl: string;
533
533
  image: string;
@@ -544,12 +544,12 @@ declare const createSdkWrapper: <P extends Omit<{
544
544
  templateOptions?: {
545
545
  [x: string]: string;
546
546
  };
547
- }) => Promise<_descope_core_js_sdk.SdkResponse<{
547
+ }) => Promise<_1.SdkResponse<{
548
548
  pendingRef: string;
549
549
  redirectUrl: string;
550
550
  image: string;
551
551
  }>>;
552
- signIn: (loginId?: string, loginOptions?: _descope_core_js_sdk.LoginOptions, token?: string) => Promise<_descope_core_js_sdk.SdkResponse<{
552
+ signIn: (loginId?: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
553
553
  pendingRef: string;
554
554
  redirectUrl: string;
555
555
  image: string;
@@ -557,7 +557,7 @@ declare const createSdkWrapper: <P extends Omit<{
557
557
  waitForSession: (pendingRef: string, config?: {
558
558
  pollingIntervalMs: number;
559
559
  timeoutMs: number;
560
- }) => Promise<_descope_core_js_sdk.SdkResponse<_descope_core_js_sdk.JWTResponse>>;
560
+ }) => Promise<_1.SdkResponse<_1.JWTResponse>>;
561
561
  };
562
562
  password: {
563
563
  signUp: (loginId: string, password: string, user?: {
@@ -572,19 +572,19 @@ declare const createSdkWrapper: <P extends Omit<{
572
572
  templateOptions?: {
573
573
  [x: string]: string;
574
574
  };
575
- }) => Promise<_descope_core_js_sdk.SdkResponse<_descope_core_js_sdk.JWTResponse>>;
576
- signIn: (loginId: string, password: string, loginOptions?: _descope_core_js_sdk.LoginOptions) => Promise<_descope_core_js_sdk.SdkResponse<_descope_core_js_sdk.JWTResponse>>;
575
+ }) => Promise<_1.SdkResponse<_1.JWTResponse>>;
576
+ signIn: (loginId: string, password: string, loginOptions?: _1.LoginOptions) => Promise<_1.SdkResponse<_1.JWTResponse>>;
577
577
  sendReset: (loginId: string, redirectUrl?: string, templateOptions?: {
578
578
  [x: string]: string;
579
- }) => Promise<_descope_core_js_sdk.SdkResponse<{
579
+ }) => Promise<_1.SdkResponse<{
580
580
  resetMethod: string;
581
581
  pendingRef?: string;
582
582
  linkId?: string;
583
583
  maskedEmail: string;
584
584
  }>>;
585
- update: (loginId: string, newPassword: string, token?: string) => Promise<_descope_core_js_sdk.SdkResponse<never>>;
586
- replace: (loginId: string, oldPassword: string, newPassword: string) => Promise<_descope_core_js_sdk.SdkResponse<_descope_core_js_sdk.JWTResponse>>;
587
- policy: () => Promise<_descope_core_js_sdk.SdkResponse<{
585
+ update: (loginId: string, newPassword: string, token?: string) => Promise<_1.SdkResponse<never>>;
586
+ replace: (loginId: string, oldPassword: string, newPassword: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
587
+ policy: () => Promise<_1.SdkResponse<{
588
588
  minLength: number;
589
589
  lowercase: boolean;
590
590
  uppercase: boolean;
@@ -592,12 +592,12 @@ declare const createSdkWrapper: <P extends Omit<{
592
592
  nonAlphanumeric: boolean;
593
593
  }>>;
594
594
  };
595
- refresh: (token?: string) => Promise<_descope_core_js_sdk.SdkResponse<_descope_core_js_sdk.JWTResponse>>;
596
- selectTenant: (tenantId: string, token?: string) => Promise<_descope_core_js_sdk.SdkResponse<_descope_core_js_sdk.JWTResponse>>;
597
- logout: (token?: string) => Promise<_descope_core_js_sdk.SdkResponse<never>>;
598
- logoutAll: (token?: string) => Promise<_descope_core_js_sdk.SdkResponse<never>>;
599
- me: (token?: string) => Promise<_descope_core_js_sdk.SdkResponse<_descope_core_js_sdk.UserResponse>>;
600
- history: (token?: string) => Promise<_descope_core_js_sdk.SdkResponse<_descope_core_js_sdk.UserHistoryResponse>>;
595
+ refresh: (token?: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
596
+ selectTenant: (tenantId: string, token?: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
597
+ logout: (token?: string) => Promise<_1.SdkResponse<never>>;
598
+ logoutAll: (token?: string) => Promise<_1.SdkResponse<never>>;
599
+ me: (token?: string) => Promise<_1.SdkResponse<_1.UserResponse>>;
600
+ history: (token?: string) => Promise<_1.SdkResponse<_1.UserHistoryResponse>>;
601
601
  isJwtExpired: (token: string) => boolean;
602
602
  getTenants: (token: string) => string[];
603
603
  getJwtPermissions: (token: string, tenant?: string) => string[];
@@ -639,9 +639,9 @@ declare const createSdkWrapper: <P extends Omit<{
639
639
  token?: string;
640
640
  }) => Promise<Response>;
641
641
  hooks?: {
642
- beforeRequest?: (config: _descope_core_js_sdk.RequestConfig) => _descope_core_js_sdk.RequestConfig;
643
- afterRequest?: (req: _descope_core_js_sdk.RequestConfig, res: Response) => void | Promise<void>;
644
- transformResponse?: (mutableResponse: _descope_core_js_sdk.ExtendedResponse) => Promise<_descope_core_js_sdk.ExtendedResponse>;
642
+ beforeRequest?: (config: _1.RequestConfig) => _1.RequestConfig;
643
+ afterRequest?: (req: _1.RequestConfig, res: Response) => void | Promise<void>;
644
+ transformResponse?: (mutableResponse: _1.ExtendedResponse) => Promise<_1.ExtendedResponse>;
645
645
  };
646
646
  buildUrl: (path: string, queryParams?: {
647
647
  [key: string]: string;
@@ -687,42 +687,42 @@ declare const createSdkWrapper: <P extends Omit<{
687
687
  }, "loginId" | "name">;
688
688
  }, conditionInteractionId?: string, interactionId?: string, version?: number, componentsVersion?: string, input?: {
689
689
  [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[])[])[])[])[])[])[])[])[])[])[];
690
- }) => Promise<_descope_core_js_sdk.SdkResponse<_descope_core_js_sdk.FlowResponse>>;
690
+ }) => Promise<_1.SdkResponse<_1.FlowResponse>>;
691
691
  next: (executionId: string, stepId: string, interactionId: string, version?: number, componentsVersion?: string, input?: {
692
692
  [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[])[])[])[])[])[])[])[])[])[])[];
693
- }) => Promise<_descope_core_js_sdk.SdkResponse<_descope_core_js_sdk.FlowResponse>>;
693
+ }) => Promise<_1.SdkResponse<_1.FlowResponse>>;
694
694
  };
695
695
  webauthn: {
696
- signUp: ((identifier: string, name: string) => Promise<_descope_core_js_sdk.SdkResponse<_descope_core_js_sdk.JWTResponse>>) & {
697
- start: (loginId: string, origin: string, name: string) => Promise<_descope_core_js_sdk.SdkResponse<{
696
+ signUp: ((identifier: string, name: string) => Promise<_1.SdkResponse<_1.JWTResponse>>) & {
697
+ start: (loginId: string, origin: string, name: 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<_descope_core_js_sdk.SdkResponse<_descope_core_js_sdk.JWTResponse>>;
702
+ finish: (transactionId: string, response: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
703
703
  };
704
- signIn: ((identifier: string) => Promise<_descope_core_js_sdk.SdkResponse<_descope_core_js_sdk.JWTResponse>>) & {
705
- start: (loginId: string, origin: string, loginOptions?: _descope_core_js_sdk.LoginOptions, token?: string) => Promise<_descope_core_js_sdk.SdkResponse<{
704
+ signIn: ((identifier: string) => Promise<_1.SdkResponse<_1.JWTResponse>>) & {
705
+ start: (loginId: string, origin: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
706
706
  transactionId: string;
707
707
  options: string;
708
708
  create: boolean;
709
709
  }>>;
710
- finish: (transactionId: string, response: string) => Promise<_descope_core_js_sdk.SdkResponse<_descope_core_js_sdk.JWTResponse>>;
710
+ finish: (transactionId: string, response: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
711
711
  };
712
- signUpOrIn: ((identifier: string) => Promise<_descope_core_js_sdk.SdkResponse<_descope_core_js_sdk.JWTResponse>>) & {
713
- start: (loginId: string, origin: string) => Promise<_descope_core_js_sdk.SdkResponse<{
712
+ signUpOrIn: ((identifier: string) => Promise<_1.SdkResponse<_1.JWTResponse>>) & {
713
+ start: (loginId: string, origin: string) => Promise<_1.SdkResponse<{
714
714
  transactionId: string;
715
715
  options: string;
716
716
  create: boolean;
717
717
  }>>;
718
718
  };
719
- update: ((identifier: string, token: string) => Promise<_descope_core_js_sdk.SdkResponse<_descope_core_js_sdk.ResponseData>>) & {
720
- start: (loginId: string, origin: string, token: string) => Promise<_descope_core_js_sdk.SdkResponse<{
719
+ update: ((identifier: string, token: string) => Promise<_1.SdkResponse<_1.ResponseData>>) & {
720
+ start: (loginId: string, origin: string, token: string) => Promise<_1.SdkResponse<{
721
721
  transactionId: string;
722
722
  options: string;
723
723
  create: boolean;
724
724
  }>>;
725
- finish: (transactionId: string, response: string) => Promise<_descope_core_js_sdk.SdkResponse<_descope_core_js_sdk.ResponseData>>;
725
+ finish: (transactionId: string, response: string) => Promise<_1.SdkResponse<_1.ResponseData>>;
726
726
  };
727
727
  helpers: {
728
728
  create: (options: string) => Promise<string>;
@@ -732,31 +732,31 @@ declare const createSdkWrapper: <P extends Omit<{
732
732
  };
733
733
  };
734
734
  fedcm: {
735
- oneTap(provider?: string, oneTapConfig?: _descope_web_js_sdk.OneTapConfig, loginOptions?: _descope_core_js_sdk.LoginOptions, onSkip?: () => void): Promise<unknown>;
736
- launch(context?: "signin" | "signup" | "use" | "continue"): Promise<_descope_core_js_sdk.SdkResponse<_descope_core_js_sdk.JWTResponse>>;
735
+ oneTap(provider?: string, oneTapConfig?: _descope_web_js_sdk.OneTapConfig, loginOptions?: _1.LoginOptions, onSkip?: () => void): Promise<unknown>;
736
+ launch(context?: "signin" | "signup" | "use" | "continue"): Promise<_1.SdkResponse<_1.JWTResponse>>;
737
737
  isSupported(): boolean;
738
738
  };
739
739
  accessKey: {
740
- exchange: (accessKey: string, loginOptions?: _descope_core_js_sdk.AccessKeyLoginOptions) => Promise<_descope_core_js_sdk.SdkResponse<_descope_core_js_sdk.ExchangeAccessKeyResponse>>;
740
+ exchange: (accessKey: string, loginOptions?: _1.AccessKeyLoginOptions) => Promise<_1.SdkResponse<_1.ExchangeAccessKeyResponse>>;
741
741
  };
742
742
  otp: {
743
743
  verify: {
744
- sms: (loginId: string, code: string) => Promise<_descope_core_js_sdk.SdkResponse<_descope_core_js_sdk.JWTResponse>>;
745
- voice: (loginId: string, code: string) => Promise<_descope_core_js_sdk.SdkResponse<_descope_core_js_sdk.JWTResponse>>;
746
- whatsapp: (loginId: string, code: string) => Promise<_descope_core_js_sdk.SdkResponse<_descope_core_js_sdk.JWTResponse>>;
747
- email: (loginId: string, code: string) => Promise<_descope_core_js_sdk.SdkResponse<_descope_core_js_sdk.JWTResponse>>;
744
+ sms: (loginId: string, code: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
745
+ voice: (loginId: string, code: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
746
+ whatsapp: (loginId: string, code: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
747
+ email: (loginId: string, code: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
748
748
  };
749
749
  signIn: {
750
- sms: (loginId: string, loginOptions?: _descope_core_js_sdk.LoginOptions, token?: string) => Promise<_descope_core_js_sdk.SdkResponse<{
750
+ sms: (loginId: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
751
751
  maskedPhone: string;
752
752
  }>>;
753
- voice: (loginId: string, loginOptions?: _descope_core_js_sdk.LoginOptions, token?: string) => Promise<_descope_core_js_sdk.SdkResponse<{
753
+ voice: (loginId: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
754
754
  maskedPhone: string;
755
755
  }>>;
756
- whatsapp: (loginId: string, loginOptions?: _descope_core_js_sdk.LoginOptions, token?: string) => Promise<_descope_core_js_sdk.SdkResponse<{
756
+ whatsapp: (loginId: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
757
757
  maskedPhone: string;
758
758
  }>>;
759
- email: (loginId: string, loginOptions?: _descope_core_js_sdk.LoginOptions, token?: string) => Promise<_descope_core_js_sdk.SdkResponse<{
759
+ email: (loginId: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
760
760
  maskedEmail: string;
761
761
  }>>;
762
762
  };
@@ -773,7 +773,7 @@ declare const createSdkWrapper: <P extends Omit<{
773
773
  templateOptions?: {
774
774
  [x: string]: string;
775
775
  };
776
- }) => Promise<_descope_core_js_sdk.SdkResponse<{
776
+ }) => Promise<_1.SdkResponse<{
777
777
  maskedPhone: string;
778
778
  }>>;
779
779
  voice: (loginId: string, user?: {
@@ -788,7 +788,7 @@ declare const createSdkWrapper: <P extends Omit<{
788
788
  templateOptions?: {
789
789
  [x: string]: string;
790
790
  };
791
- }) => Promise<_descope_core_js_sdk.SdkResponse<{
791
+ }) => Promise<_1.SdkResponse<{
792
792
  maskedPhone: string;
793
793
  }>>;
794
794
  whatsapp: (loginId: string, user?: {
@@ -803,7 +803,7 @@ declare const createSdkWrapper: <P extends Omit<{
803
803
  templateOptions?: {
804
804
  [x: string]: string;
805
805
  };
806
- }) => Promise<_descope_core_js_sdk.SdkResponse<{
806
+ }) => Promise<_1.SdkResponse<{
807
807
  maskedPhone: string;
808
808
  }>>;
809
809
  email: (loginId: string, user?: {
@@ -818,21 +818,21 @@ declare const createSdkWrapper: <P extends Omit<{
818
818
  templateOptions?: {
819
819
  [x: string]: string;
820
820
  };
821
- }) => Promise<_descope_core_js_sdk.SdkResponse<{
821
+ }) => Promise<_1.SdkResponse<{
822
822
  maskedEmail: string;
823
823
  }>>;
824
824
  };
825
825
  signUpOrIn: {
826
- sms: (loginId: string, loginOptions?: _descope_core_js_sdk.LoginOptions, token?: string) => Promise<_descope_core_js_sdk.SdkResponse<{
826
+ sms: (loginId: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
827
827
  maskedPhone: string;
828
828
  }>>;
829
- voice: (loginId: string, loginOptions?: _descope_core_js_sdk.LoginOptions, token?: string) => Promise<_descope_core_js_sdk.SdkResponse<{
829
+ voice: (loginId: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
830
830
  maskedPhone: string;
831
831
  }>>;
832
- whatsapp: (loginId: string, loginOptions?: _descope_core_js_sdk.LoginOptions, token?: string) => Promise<_descope_core_js_sdk.SdkResponse<{
832
+ whatsapp: (loginId: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
833
833
  maskedPhone: string;
834
834
  }>>;
835
- email: (loginId: string, loginOptions?: _descope_core_js_sdk.LoginOptions, token?: string) => Promise<_descope_core_js_sdk.SdkResponse<{
835
+ email: (loginId: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
836
836
  maskedEmail: string;
837
837
  }>>;
838
838
  };
@@ -843,7 +843,7 @@ declare const createSdkWrapper: <P extends Omit<{
843
843
  templateOptions?: {
844
844
  [x: string]: string;
845
845
  };
846
- }) => Promise<_descope_core_js_sdk.SdkResponse<{
846
+ }) => Promise<_1.SdkResponse<{
847
847
  maskedEmail: string;
848
848
  }>>;
849
849
  phone: {
@@ -853,7 +853,7 @@ declare const createSdkWrapper: <P extends Omit<{
853
853
  templateOptions?: {
854
854
  [x: string]: string;
855
855
  };
856
- }) => Promise<_descope_core_js_sdk.SdkResponse<{
856
+ }) => Promise<_1.SdkResponse<{
857
857
  maskedPhone: string;
858
858
  }>>;
859
859
  voice: <T_1_4 extends boolean>(loginId: string, phone: string, token?: string, updateOptions?: {
@@ -862,7 +862,7 @@ declare const createSdkWrapper: <P extends Omit<{
862
862
  templateOptions?: {
863
863
  [x: string]: string;
864
864
  };
865
- }) => Promise<_descope_core_js_sdk.SdkResponse<{
865
+ }) => Promise<_1.SdkResponse<{
866
866
  maskedPhone: string;
867
867
  }>>;
868
868
  whatsapp: <T_1_5 extends boolean>(loginId: string, phone: string, token?: string, updateOptions?: {
@@ -871,25 +871,25 @@ declare const createSdkWrapper: <P extends Omit<{
871
871
  templateOptions?: {
872
872
  [x: string]: string;
873
873
  };
874
- }) => Promise<_descope_core_js_sdk.SdkResponse<{
874
+ }) => Promise<_1.SdkResponse<{
875
875
  maskedPhone: string;
876
876
  }>>;
877
877
  };
878
878
  };
879
879
  };
880
880
  magicLink: {
881
- verify: (token: string) => Promise<_descope_core_js_sdk.SdkResponse<_descope_core_js_sdk.JWTResponse>>;
881
+ verify: (token: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
882
882
  signIn: {
883
- sms: (loginId: string, URI: string, loginOptions?: _descope_core_js_sdk.LoginOptions, token?: string) => Promise<_descope_core_js_sdk.SdkResponse<{
883
+ sms: (loginId: string, URI: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
884
884
  maskedPhone: string;
885
885
  }>>;
886
- voice: (loginId: string, URI: string, loginOptions?: _descope_core_js_sdk.LoginOptions, token?: string) => Promise<_descope_core_js_sdk.SdkResponse<{
886
+ voice: (loginId: string, URI: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
887
887
  maskedPhone: string;
888
888
  }>>;
889
- whatsapp: (loginId: string, URI: string, loginOptions?: _descope_core_js_sdk.LoginOptions, token?: string) => Promise<_descope_core_js_sdk.SdkResponse<{
889
+ whatsapp: (loginId: string, URI: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
890
890
  maskedPhone: string;
891
891
  }>>;
892
- email: (loginId: string, URI: string, loginOptions?: _descope_core_js_sdk.LoginOptions, token?: string) => Promise<_descope_core_js_sdk.SdkResponse<{
892
+ email: (loginId: string, URI: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
893
893
  maskedEmail: string;
894
894
  }>>;
895
895
  };
@@ -906,7 +906,7 @@ declare const createSdkWrapper: <P extends Omit<{
906
906
  templateOptions?: {
907
907
  [x: string]: string;
908
908
  };
909
- }) => Promise<_descope_core_js_sdk.SdkResponse<{
909
+ }) => Promise<_1.SdkResponse<{
910
910
  maskedPhone: string;
911
911
  }>>;
912
912
  voice: (loginId: string, URI: string, user?: {
@@ -921,7 +921,7 @@ declare const createSdkWrapper: <P extends Omit<{
921
921
  templateOptions?: {
922
922
  [x: string]: string;
923
923
  };
924
- }) => Promise<_descope_core_js_sdk.SdkResponse<{
924
+ }) => Promise<_1.SdkResponse<{
925
925
  maskedPhone: string;
926
926
  }>>;
927
927
  whatsapp: (loginId: string, URI: string, user?: {
@@ -936,7 +936,7 @@ declare const createSdkWrapper: <P extends Omit<{
936
936
  templateOptions?: {
937
937
  [x: string]: string;
938
938
  };
939
- }) => Promise<_descope_core_js_sdk.SdkResponse<{
939
+ }) => Promise<_1.SdkResponse<{
940
940
  maskedPhone: string;
941
941
  }>>;
942
942
  email: (loginId: string, URI: string, user?: {
@@ -951,7 +951,7 @@ declare const createSdkWrapper: <P extends Omit<{
951
951
  templateOptions?: {
952
952
  [x: string]: string;
953
953
  };
954
- }) => Promise<_descope_core_js_sdk.SdkResponse<{
954
+ }) => Promise<_1.SdkResponse<{
955
955
  maskedEmail: string;
956
956
  }>>;
957
957
  };
@@ -961,7 +961,7 @@ declare const createSdkWrapper: <P extends Omit<{
961
961
  templateOptions?: {
962
962
  [x: string]: string;
963
963
  };
964
- }) => Promise<_descope_core_js_sdk.SdkResponse<{
964
+ }) => Promise<_1.SdkResponse<{
965
965
  maskedPhone: string;
966
966
  }>>;
967
967
  voice: (loginId: string, URI?: string, signUpOptions?: {
@@ -969,7 +969,7 @@ declare const createSdkWrapper: <P extends Omit<{
969
969
  templateOptions?: {
970
970
  [x: string]: string;
971
971
  };
972
- }) => Promise<_descope_core_js_sdk.SdkResponse<{
972
+ }) => Promise<_1.SdkResponse<{
973
973
  maskedPhone: string;
974
974
  }>>;
975
975
  whatsapp: (loginId: string, URI?: string, signUpOptions?: {
@@ -977,7 +977,7 @@ declare const createSdkWrapper: <P extends Omit<{
977
977
  templateOptions?: {
978
978
  [x: string]: string;
979
979
  };
980
- }) => Promise<_descope_core_js_sdk.SdkResponse<{
980
+ }) => Promise<_1.SdkResponse<{
981
981
  maskedPhone: string;
982
982
  }>>;
983
983
  email: (loginId: string, URI?: string, signUpOptions?: {
@@ -985,7 +985,7 @@ declare const createSdkWrapper: <P extends Omit<{
985
985
  templateOptions?: {
986
986
  [x: string]: string;
987
987
  };
988
- }) => Promise<_descope_core_js_sdk.SdkResponse<{
988
+ }) => Promise<_1.SdkResponse<{
989
989
  maskedEmail: string;
990
990
  }>>;
991
991
  };
@@ -996,7 +996,7 @@ declare const createSdkWrapper: <P extends Omit<{
996
996
  templateOptions?: {
997
997
  [x: string]: string;
998
998
  };
999
- }) => Promise<_descope_core_js_sdk.SdkResponse<{
999
+ }) => Promise<_1.SdkResponse<{
1000
1000
  maskedEmail: string;
1001
1001
  }>>;
1002
1002
  phone: {
@@ -1006,7 +1006,7 @@ declare const createSdkWrapper: <P extends Omit<{
1006
1006
  templateOptions?: {
1007
1007
  [x: string]: string;
1008
1008
  };
1009
- }) => Promise<_descope_core_js_sdk.SdkResponse<{
1009
+ }) => Promise<_1.SdkResponse<{
1010
1010
  maskedPhone: string;
1011
1011
  }>>;
1012
1012
  voice: <T_3_4 extends boolean>(loginId: string, phone: string, URI?: string, token?: string, updateOptions?: {
@@ -1015,7 +1015,7 @@ declare const createSdkWrapper: <P extends Omit<{
1015
1015
  templateOptions?: {
1016
1016
  [x: string]: string;
1017
1017
  };
1018
- }) => Promise<_descope_core_js_sdk.SdkResponse<{
1018
+ }) => Promise<_1.SdkResponse<{
1019
1019
  maskedPhone: string;
1020
1020
  }>>;
1021
1021
  whatsapp: <T_3_5 extends boolean>(loginId: string, phone: string, URI?: string, token?: string, updateOptions?: {
@@ -1024,21 +1024,21 @@ declare const createSdkWrapper: <P extends Omit<{
1024
1024
  templateOptions?: {
1025
1025
  [x: string]: string;
1026
1026
  };
1027
- }) => Promise<_descope_core_js_sdk.SdkResponse<{
1027
+ }) => Promise<_1.SdkResponse<{
1028
1028
  maskedPhone: string;
1029
1029
  }>>;
1030
1030
  };
1031
1031
  };
1032
1032
  };
1033
1033
  enchantedLink: {
1034
- verify: (token: string) => Promise<_descope_core_js_sdk.SdkResponse<never>>;
1035
- signIn: (loginId: string, URI?: string, loginOptions?: _descope_core_js_sdk.LoginOptions, token?: string) => Promise<_descope_core_js_sdk.SdkResponse<_descope_core_js_sdk.EnchantedLinkResponse>>;
1034
+ verify: (token: string) => Promise<_1.SdkResponse<never>>;
1035
+ signIn: (loginId: string, URI?: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<_1.EnchantedLinkResponse>>;
1036
1036
  signUpOrIn: (loginId: string, URI?: string, signUpOptions?: {
1037
1037
  customClaims?: Record<string, any>;
1038
1038
  templateOptions?: {
1039
1039
  [x: string]: string;
1040
1040
  };
1041
- }) => Promise<_descope_core_js_sdk.SdkResponse<_descope_core_js_sdk.EnchantedLinkResponse>>;
1041
+ }) => Promise<_1.SdkResponse<_1.EnchantedLinkResponse>>;
1042
1042
  signUp: (loginId: string, URI?: string, user?: {
1043
1043
  email?: string;
1044
1044
  name?: string;
@@ -1051,11 +1051,11 @@ declare const createSdkWrapper: <P extends Omit<{
1051
1051
  templateOptions?: {
1052
1052
  [x: string]: string;
1053
1053
  };
1054
- }) => Promise<_descope_core_js_sdk.SdkResponse<_descope_core_js_sdk.EnchantedLinkResponse>>;
1054
+ }) => Promise<_1.SdkResponse<_1.EnchantedLinkResponse>>;
1055
1055
  waitForSession: (pendingRef: string, config?: {
1056
1056
  pollingIntervalMs: number;
1057
1057
  timeoutMs: number;
1058
- }) => Promise<_descope_core_js_sdk.SdkResponse<_descope_core_js_sdk.JWTResponse>>;
1058
+ }) => Promise<_1.SdkResponse<_1.JWTResponse>>;
1059
1059
  update: {
1060
1060
  email: <T_4_1 extends boolean>(loginId: string, email: string, URI?: string, token?: string, updateOptions?: {
1061
1061
  addToLoginIDs?: T_4_1;
@@ -1063,28 +1063,28 @@ declare const createSdkWrapper: <P extends Omit<{
1063
1063
  templateOptions?: {
1064
1064
  [x: string]: string;
1065
1065
  };
1066
- }) => Promise<_descope_core_js_sdk.SdkResponse<_descope_core_js_sdk.EnchantedLinkResponse>>;
1066
+ }) => Promise<_1.SdkResponse<_1.EnchantedLinkResponse>>;
1067
1067
  };
1068
1068
  };
1069
1069
  oauth: {
1070
- start: ((provider: string, redirectUrl?: string, loginOptions?: _descope_core_js_sdk.LoginOptions, token?: string) => Promise<_descope_core_js_sdk.SdkResponse<_descope_core_js_sdk.ResponseData>>) & {
1071
- google: (redirectURL?: string, loginOptions?: _descope_core_js_sdk.LoginOptions, token?: string) => Promise<_descope_core_js_sdk.SdkResponse<_descope_core_js_sdk.URLResponse>>;
1072
- facebook: (redirectURL?: string, loginOptions?: _descope_core_js_sdk.LoginOptions, token?: string) => Promise<_descope_core_js_sdk.SdkResponse<_descope_core_js_sdk.URLResponse>>;
1073
- github: (redirectURL?: string, loginOptions?: _descope_core_js_sdk.LoginOptions, token?: string) => Promise<_descope_core_js_sdk.SdkResponse<_descope_core_js_sdk.URLResponse>>;
1074
- microsoft: (redirectURL?: string, loginOptions?: _descope_core_js_sdk.LoginOptions, token?: string) => Promise<_descope_core_js_sdk.SdkResponse<_descope_core_js_sdk.URLResponse>>;
1075
- gitlab: (redirectURL?: string, loginOptions?: _descope_core_js_sdk.LoginOptions, token?: string) => Promise<_descope_core_js_sdk.SdkResponse<_descope_core_js_sdk.URLResponse>>;
1076
- apple: (redirectURL?: string, loginOptions?: _descope_core_js_sdk.LoginOptions, token?: string) => Promise<_descope_core_js_sdk.SdkResponse<_descope_core_js_sdk.URLResponse>>;
1077
- discord: (redirectURL?: string, loginOptions?: _descope_core_js_sdk.LoginOptions, token?: string) => Promise<_descope_core_js_sdk.SdkResponse<_descope_core_js_sdk.URLResponse>>;
1078
- linkedin: (redirectURL?: string, loginOptions?: _descope_core_js_sdk.LoginOptions, token?: string) => Promise<_descope_core_js_sdk.SdkResponse<_descope_core_js_sdk.URLResponse>>;
1079
- slack: (redirectURL?: string, loginOptions?: _descope_core_js_sdk.LoginOptions, token?: string) => Promise<_descope_core_js_sdk.SdkResponse<_descope_core_js_sdk.URLResponse>>;
1070
+ start: ((provider: string, redirectUrl?: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<_1.ResponseData>>) & {
1071
+ google: (redirectURL?: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
1072
+ facebook: (redirectURL?: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
1073
+ github: (redirectURL?: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
1074
+ microsoft: (redirectURL?: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
1075
+ gitlab: (redirectURL?: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
1076
+ apple: (redirectURL?: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
1077
+ discord: (redirectURL?: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
1078
+ linkedin: (redirectURL?: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
1079
+ slack: (redirectURL?: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
1080
1080
  };
1081
- exchange: (code: string) => Promise<_descope_core_js_sdk.SdkResponse<_descope_core_js_sdk.JWTResponse>>;
1082
- startNative: (provider: string, loginOptions?: _descope_core_js_sdk.LoginOptions, implicit?: boolean) => Promise<_descope_core_js_sdk.SdkResponse<_descope_core_js_sdk.ResponseData>>;
1083
- finishNative: (provider: string, stateId: string, user?: string, code?: string, idToken?: string) => Promise<_descope_core_js_sdk.SdkResponse<_descope_core_js_sdk.ResponseData>>;
1081
+ exchange: (code: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
1082
+ startNative: (provider: string, loginOptions?: _1.LoginOptions, implicit?: boolean) => Promise<_1.SdkResponse<_1.ResponseData>>;
1083
+ finishNative: (provider: string, stateId: string, user?: string, code?: string, idToken?: string) => Promise<_1.SdkResponse<_1.ResponseData>>;
1084
1084
  };
1085
1085
  saml: {
1086
- start: (tenantIdOrEmail: string, redirectUrl?: string, loginOptions?: _descope_core_js_sdk.LoginOptions, token?: string) => Promise<_descope_core_js_sdk.SdkResponse<_descope_core_js_sdk.URLResponse>>;
1087
- exchange: (code: string) => Promise<_descope_core_js_sdk.SdkResponse<_descope_core_js_sdk.JWTResponse>>;
1086
+ start: (tenantIdOrEmail: string, redirectUrl?: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
1087
+ exchange: (code: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
1088
1088
  };
1089
1089
  totp: {
1090
1090
  signUp: (loginId: string, user?: {
@@ -1094,9 +1094,9 @@ declare const createSdkWrapper: <P extends Omit<{
1094
1094
  middleName?: string;
1095
1095
  familyName?: string;
1096
1096
  phone?: string;
1097
- }) => Promise<_descope_core_js_sdk.SdkResponse<_descope_core_js_sdk.TOTPResponse>>;
1098
- verify: (loginId: string, code: string, loginOptions?: _descope_core_js_sdk.LoginOptions, token?: string) => Promise<_descope_core_js_sdk.SdkResponse<_descope_core_js_sdk.JWTResponse>>;
1099
- update: (loginId: string, token?: string) => Promise<_descope_core_js_sdk.SdkResponse<_descope_core_js_sdk.TOTPResponse>>;
1097
+ }) => Promise<_1.SdkResponse<_1.TOTPResponse>>;
1098
+ verify: (loginId: string, code: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
1099
+ update: (loginId: string, token?: string) => Promise<_1.SdkResponse<_1.TOTPResponse>>;
1100
1100
  };
1101
1101
  notp: {
1102
1102
  signUpOrIn: (loginId?: string, signUpOptions?: {
@@ -1104,7 +1104,7 @@ declare const createSdkWrapper: <P extends Omit<{
1104
1104
  templateOptions?: {
1105
1105
  [x: string]: string;
1106
1106
  };
1107
- }) => Promise<_descope_core_js_sdk.SdkResponse<{
1107
+ }) => Promise<_1.SdkResponse<{
1108
1108
  pendingRef: string;
1109
1109
  redirectUrl: string;
1110
1110
  image: string;
@@ -1121,12 +1121,12 @@ declare const createSdkWrapper: <P extends Omit<{
1121
1121
  templateOptions?: {
1122
1122
  [x: string]: string;
1123
1123
  };
1124
- }) => Promise<_descope_core_js_sdk.SdkResponse<{
1124
+ }) => Promise<_1.SdkResponse<{
1125
1125
  pendingRef: string;
1126
1126
  redirectUrl: string;
1127
1127
  image: string;
1128
1128
  }>>;
1129
- signIn: (loginId?: string, loginOptions?: _descope_core_js_sdk.LoginOptions, token?: string) => Promise<_descope_core_js_sdk.SdkResponse<{
1129
+ signIn: (loginId?: string, loginOptions?: _1.LoginOptions, token?: string) => Promise<_1.SdkResponse<{
1130
1130
  pendingRef: string;
1131
1131
  redirectUrl: string;
1132
1132
  image: string;
@@ -1134,7 +1134,7 @@ declare const createSdkWrapper: <P extends Omit<{
1134
1134
  waitForSession: (pendingRef: string, config?: {
1135
1135
  pollingIntervalMs: number;
1136
1136
  timeoutMs: number;
1137
- }) => Promise<_descope_core_js_sdk.SdkResponse<_descope_core_js_sdk.JWTResponse>>;
1137
+ }) => Promise<_1.SdkResponse<_1.JWTResponse>>;
1138
1138
  };
1139
1139
  password: {
1140
1140
  signUp: (loginId: string, password: string, user?: {
@@ -1149,19 +1149,19 @@ declare const createSdkWrapper: <P extends Omit<{
1149
1149
  templateOptions?: {
1150
1150
  [x: string]: string;
1151
1151
  };
1152
- }) => Promise<_descope_core_js_sdk.SdkResponse<_descope_core_js_sdk.JWTResponse>>;
1153
- signIn: (loginId: string, password: string, loginOptions?: _descope_core_js_sdk.LoginOptions) => Promise<_descope_core_js_sdk.SdkResponse<_descope_core_js_sdk.JWTResponse>>;
1152
+ }) => Promise<_1.SdkResponse<_1.JWTResponse>>;
1153
+ signIn: (loginId: string, password: string, loginOptions?: _1.LoginOptions) => Promise<_1.SdkResponse<_1.JWTResponse>>;
1154
1154
  sendReset: (loginId: string, redirectUrl?: string, templateOptions?: {
1155
1155
  [x: string]: string;
1156
- }) => Promise<_descope_core_js_sdk.SdkResponse<{
1156
+ }) => Promise<_1.SdkResponse<{
1157
1157
  resetMethod: string;
1158
1158
  pendingRef?: string;
1159
1159
  linkId?: string;
1160
1160
  maskedEmail: string;
1161
1161
  }>>;
1162
- update: (loginId: string, newPassword: string, token?: string) => Promise<_descope_core_js_sdk.SdkResponse<never>>;
1163
- replace: (loginId: string, oldPassword: string, newPassword: string) => Promise<_descope_core_js_sdk.SdkResponse<_descope_core_js_sdk.JWTResponse>>;
1164
- policy: () => Promise<_descope_core_js_sdk.SdkResponse<{
1162
+ update: (loginId: string, newPassword: string, token?: string) => Promise<_1.SdkResponse<never>>;
1163
+ replace: (loginId: string, oldPassword: string, newPassword: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
1164
+ policy: () => Promise<_1.SdkResponse<{
1165
1165
  minLength: number;
1166
1166
  lowercase: boolean;
1167
1167
  uppercase: boolean;
@@ -1169,12 +1169,12 @@ declare const createSdkWrapper: <P extends Omit<{
1169
1169
  nonAlphanumeric: boolean;
1170
1170
  }>>;
1171
1171
  };
1172
- refresh: (token?: string) => Promise<_descope_core_js_sdk.SdkResponse<_descope_core_js_sdk.JWTResponse>>;
1173
- selectTenant: (tenantId: string, token?: string) => Promise<_descope_core_js_sdk.SdkResponse<_descope_core_js_sdk.JWTResponse>>;
1174
- logout: (token?: string) => Promise<_descope_core_js_sdk.SdkResponse<never>>;
1175
- logoutAll: (token?: string) => Promise<_descope_core_js_sdk.SdkResponse<never>>;
1176
- me: (token?: string) => Promise<_descope_core_js_sdk.SdkResponse<_descope_core_js_sdk.UserResponse>>;
1177
- history: (token?: string) => Promise<_descope_core_js_sdk.SdkResponse<_descope_core_js_sdk.UserHistoryResponse>>;
1172
+ refresh: (token?: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
1173
+ selectTenant: (tenantId: string, token?: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
1174
+ logout: (token?: string) => Promise<_1.SdkResponse<never>>;
1175
+ logoutAll: (token?: string) => Promise<_1.SdkResponse<never>>;
1176
+ me: (token?: string) => Promise<_1.SdkResponse<_1.UserResponse>>;
1177
+ history: (token?: string) => Promise<_1.SdkResponse<_1.UserHistoryResponse>>;
1178
1178
  isJwtExpired: (token: string) => boolean;
1179
1179
  getTenants: (token: string) => string[];
1180
1180
  getJwtPermissions: (token: string, tenant?: string) => string[];
@@ -1216,9 +1216,9 @@ declare const createSdkWrapper: <P extends Omit<{
1216
1216
  token?: string;
1217
1217
  }) => Promise<Response>;
1218
1218
  hooks?: {
1219
- beforeRequest?: (config: _descope_core_js_sdk.RequestConfig) => _descope_core_js_sdk.RequestConfig;
1220
- afterRequest?: (req: _descope_core_js_sdk.RequestConfig, res: Response) => void | Promise<void>;
1221
- transformResponse?: (mutableResponse: _descope_core_js_sdk.ExtendedResponse) => Promise<_descope_core_js_sdk.ExtendedResponse>;
1219
+ beforeRequest?: (config: _1.RequestConfig) => _1.RequestConfig;
1220
+ afterRequest?: (req: _1.RequestConfig, res: Response) => void | Promise<void>;
1221
+ transformResponse?: (mutableResponse: _1.ExtendedResponse) => Promise<_1.ExtendedResponse>;
1222
1222
  };
1223
1223
  buildUrl: (path: string, queryParams?: {
1224
1224
  [key: string]: string;
@@ -1226,7 +1226,7 @@ declare const createSdkWrapper: <P extends Omit<{
1226
1226
  };
1227
1227
  }) & {
1228
1228
  onSessionTokenChange: (cb: (data: string) => void) => () => any[];
1229
- onUserChange: (cb: (data: _descope_core_js_sdk.UserResponse) => void) => () => any[];
1229
+ onUserChange: (cb: (data: _1.UserResponse) => void) => () => any[];
1230
1230
  }) & {
1231
1231
  getLastUserLoginId: () => string;
1232
1232
  getLastUserDisplayName: () => string;
@@ -1240,7 +1240,7 @@ declare const isSessionTokenExpired: (token?: string) => boolean;
1240
1240
  declare const isRefreshTokenExpired: (token?: string) => boolean;
1241
1241
  declare const getJwtPermissions: (token?: any, tenant?: string) => string[];
1242
1242
  declare const getJwtRoles: (token?: any, tenant?: string) => string[];
1243
- declare const refresh: (token?: string) => Promise<_descope_core_js_sdk.SdkResponse<_descope_core_js_sdk.JWTResponse>>;
1243
+ declare const refresh: (token?: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
1244
1244
 
1245
1245
  declare global {
1246
1246
  namespace JSX {
@@ -1365,7 +1365,7 @@ declare const useSession: () => {
1365
1365
 
1366
1366
  declare const useUser: () => {
1367
1367
  isUserLoading: boolean;
1368
- user: _descope_core_js_sdk.UserResponse;
1368
+ user: _1.UserResponse;
1369
1369
  };
1370
1370
 
1371
1371
  declare const baseHeaders: {