@descope/react-sdk 2.29.5 → 2.30.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. package/dist/cjs/components/AuthProvider/AuthProvider.js +1 -1
  2. package/dist/cjs/components/AuthProvider/AuthProvider.js.map +1 -1
  3. package/dist/cjs/components/OutboundApplications.js +1 -1
  4. package/dist/cjs/components/OutboundApplications.js.map +1 -1
  5. package/dist/cjs/components/TenantProfile.js +1 -1
  6. package/dist/cjs/components/TenantProfile.js.map +1 -1
  7. package/dist/cjs/components/UserManagement.js +1 -1
  8. package/dist/cjs/components/UserManagement.js.map +1 -1
  9. package/dist/cjs/components/UserProfile.js +1 -1
  10. package/dist/cjs/components/UserProfile.js.map +1 -1
  11. package/dist/cjs/constants.js +1 -1
  12. package/dist/esm/components/AuthProvider/AuthProvider.js +1 -1
  13. package/dist/esm/components/AuthProvider/AuthProvider.js.map +1 -1
  14. package/dist/esm/components/OutboundApplications.js +1 -1
  15. package/dist/esm/components/OutboundApplications.js.map +1 -1
  16. package/dist/esm/components/TenantProfile.js +1 -1
  17. package/dist/esm/components/TenantProfile.js.map +1 -1
  18. package/dist/esm/components/UserManagement.js +1 -1
  19. package/dist/esm/components/UserManagement.js.map +1 -1
  20. package/dist/esm/components/UserProfile.js +1 -1
  21. package/dist/esm/components/UserProfile.js.map +1 -1
  22. package/dist/esm/constants.js +1 -1
  23. package/dist/index.d.ts +39 -9
  24. package/dist/index.umd.js +2 -2
  25. package/dist/index.umd.js.map +1 -1
  26. package/dist/types/components/AccessKeyManagement.d.ts +2 -0
  27. package/dist/types/components/ApplicationsPortal.d.ts +2 -0
  28. package/dist/types/components/AuditManagement.d.ts +2 -0
  29. package/dist/types/components/OutboundApplications.d.ts +2 -0
  30. package/dist/types/components/RoleManagement.d.ts +2 -0
  31. package/dist/types/components/TenantProfile.d.ts +2 -0
  32. package/dist/types/components/UserManagement.d.ts +2 -0
  33. package/dist/types/components/UserProfile.d.ts +2 -0
  34. package/dist/types/sdk.d.ts +63 -27
  35. package/dist/types/types.d.ts +2 -0
  36. package/package.json +13 -13
package/dist/index.d.ts CHANGED
@@ -150,13 +150,17 @@ declare const createSdkWrapper: <P extends {
150
150
  create: boolean;
151
151
  }>>;
152
152
  };
153
- update: ((identifier: string, token?: string, passkeyOptions?: _1.PasskeyOptions) => Promise<_1.SdkResponse<_1.ResponseData>>) & {
154
- start: (loginId: string, origin: string, token?: string, passkeyOptions?: _1.PasskeyOptions) => Promise<_1.SdkResponse<{
153
+ update: ((identifier: string, token?: string, passkeyOptions?: _1.PasskeyOptions) => Promise<_1.SdkResponse<_1.ResponseData> | _1.SdkResponse<{
154
+ jwt?: _1.JWTResponse;
155
+ }>>) & {
156
+ start: (loginId: string, origin: string, token?: string, passkeyOptions?: _1.PasskeyOptions, mfa?: boolean) => Promise<_1.SdkResponse<{
155
157
  transactionId: string;
156
158
  options: string;
157
159
  create: boolean;
158
160
  }>>;
159
- finish: (transactionId: string, response: string) => Promise<_1.SdkResponse<_1.ResponseData>>;
161
+ finish: (transactionId: string, response: string) => Promise<_1.SdkResponse<{
162
+ jwt?: _1.JWTResponse;
163
+ }>>;
160
164
  };
161
165
  helpers: {
162
166
  create: (options: string) => Promise<string>;
@@ -908,13 +912,17 @@ declare const createSdkWrapper: <P extends {
908
912
  create: boolean;
909
913
  }>>;
910
914
  };
911
- update: ((identifier: string, token?: string, passkeyOptions?: _1.PasskeyOptions) => Promise<_1.SdkResponse<_1.ResponseData>>) & {
912
- start: (loginId: string, origin: string, token?: string, passkeyOptions?: _1.PasskeyOptions) => Promise<_1.SdkResponse<{
915
+ update: ((identifier: string, token?: string, passkeyOptions?: _1.PasskeyOptions) => Promise<_1.SdkResponse<_1.ResponseData> | _1.SdkResponse<{
916
+ jwt?: _1.JWTResponse;
917
+ }>>) & {
918
+ start: (loginId: string, origin: string, token?: string, passkeyOptions?: _1.PasskeyOptions, mfa?: boolean) => Promise<_1.SdkResponse<{
913
919
  transactionId: string;
914
920
  options: string;
915
921
  create: boolean;
916
922
  }>>;
917
- finish: (transactionId: string, response: string) => Promise<_1.SdkResponse<_1.ResponseData>>;
923
+ finish: (transactionId: string, response: string) => Promise<_1.SdkResponse<{
924
+ jwt?: _1.JWTResponse;
925
+ }>>;
918
926
  };
919
927
  helpers: {
920
928
  create: (options: string) => Promise<string>;
@@ -1666,13 +1674,17 @@ declare const createSdkWrapper: <P extends {
1666
1674
  create: boolean;
1667
1675
  }>>;
1668
1676
  };
1669
- update: ((identifier: string, token?: string, passkeyOptions?: _1.PasskeyOptions) => Promise<_1.SdkResponse<_1.ResponseData>>) & {
1670
- start: (loginId: string, origin: string, token?: string, passkeyOptions?: _1.PasskeyOptions) => Promise<_1.SdkResponse<{
1677
+ update: ((identifier: string, token?: string, passkeyOptions?: _1.PasskeyOptions) => Promise<_1.SdkResponse<_1.ResponseData> | _1.SdkResponse<{
1678
+ jwt?: _1.JWTResponse;
1679
+ }>>) & {
1680
+ start: (loginId: string, origin: string, token?: string, passkeyOptions?: _1.PasskeyOptions, mfa?: boolean) => Promise<_1.SdkResponse<{
1671
1681
  transactionId: string;
1672
1682
  options: string;
1673
1683
  create: boolean;
1674
1684
  }>>;
1675
- finish: (transactionId: string, response: string) => Promise<_1.SdkResponse<_1.ResponseData>>;
1685
+ finish: (transactionId: string, response: string) => Promise<_1.SdkResponse<{
1686
+ jwt?: _1.JWTResponse;
1687
+ }>>;
1676
1688
  };
1677
1689
  helpers: {
1678
1690
  create: (options: string) => Promise<string>;
@@ -2411,6 +2423,8 @@ type WidgetProps = {
2411
2423
  debug?: boolean;
2412
2424
  styleId?: string;
2413
2425
  onReady?: CustomEventCb<{}>;
2426
+ form?: Record<string, any>;
2427
+ client?: Record<string, any>;
2414
2428
  };
2415
2429
  type FlowResponse = Awaited<ReturnType<Sdk['flow']['next']>>;
2416
2430
  type ErrorResponse = Required<FlowResponse>['error'];
@@ -2510,6 +2524,8 @@ declare const AccessKeyManagement: React.ForwardRefExoticComponent<{
2510
2524
  debug?: boolean;
2511
2525
  styleId?: string;
2512
2526
  onReady?: (e: CustomEvent<{}>) => void;
2527
+ form?: Record<string, any>;
2528
+ client?: Record<string, any>;
2513
2529
  } & React.RefAttributes<HTMLElement>>;
2514
2530
 
2515
2531
  declare const ApplicationsPortal: React.ForwardRefExoticComponent<Omit<{
@@ -2521,6 +2537,8 @@ declare const ApplicationsPortal: React.ForwardRefExoticComponent<Omit<{
2521
2537
  debug?: boolean;
2522
2538
  styleId?: string;
2523
2539
  onReady?: (e: CustomEvent<{}>) => void;
2540
+ form?: Record<string, any>;
2541
+ client?: Record<string, any>;
2524
2542
  }, "tenant"> & {
2525
2543
  onLogout?: (e: CustomEvent<any>) => void;
2526
2544
  } & React.RefAttributes<HTMLElement>>;
@@ -2534,6 +2552,8 @@ declare const AuditManagement: React.ForwardRefExoticComponent<{
2534
2552
  debug?: boolean;
2535
2553
  styleId?: string;
2536
2554
  onReady?: (e: CustomEvent<{}>) => void;
2555
+ form?: Record<string, any>;
2556
+ client?: Record<string, any>;
2537
2557
  } & React.RefAttributes<HTMLElement>>;
2538
2558
 
2539
2559
  declare const OutboundApplications: React.ForwardRefExoticComponent<{
@@ -2545,6 +2565,8 @@ declare const OutboundApplications: React.ForwardRefExoticComponent<{
2545
2565
  debug?: boolean;
2546
2566
  styleId?: string;
2547
2567
  onReady?: (e: CustomEvent<{}>) => void;
2568
+ form?: Record<string, any>;
2569
+ client?: Record<string, any>;
2548
2570
  } & React.RefAttributes<HTMLElement>>;
2549
2571
 
2550
2572
  declare const RoleManagement: React.ForwardRefExoticComponent<{
@@ -2556,6 +2578,8 @@ declare const RoleManagement: React.ForwardRefExoticComponent<{
2556
2578
  debug?: boolean;
2557
2579
  styleId?: string;
2558
2580
  onReady?: (e: CustomEvent<{}>) => void;
2581
+ form?: Record<string, any>;
2582
+ client?: Record<string, any>;
2559
2583
  } & React.RefAttributes<HTMLElement>>;
2560
2584
 
2561
2585
  declare const TenantProfile: React.ForwardRefExoticComponent<{
@@ -2567,6 +2591,8 @@ declare const TenantProfile: React.ForwardRefExoticComponent<{
2567
2591
  debug?: boolean;
2568
2592
  styleId?: string;
2569
2593
  onReady?: (e: CustomEvent<{}>) => void;
2594
+ form?: Record<string, any>;
2595
+ client?: Record<string, any>;
2570
2596
  } & React.RefAttributes<HTMLElement>>;
2571
2597
 
2572
2598
  declare const UserManagement: React.ForwardRefExoticComponent<{
@@ -2578,6 +2604,8 @@ declare const UserManagement: React.ForwardRefExoticComponent<{
2578
2604
  debug?: boolean;
2579
2605
  styleId?: string;
2580
2606
  onReady?: (e: CustomEvent<{}>) => void;
2607
+ form?: Record<string, any>;
2608
+ client?: Record<string, any>;
2581
2609
  } & React.RefAttributes<HTMLElement>>;
2582
2610
 
2583
2611
  declare const UserProfile: React.ForwardRefExoticComponent<Omit<{
@@ -2589,6 +2617,8 @@ declare const UserProfile: React.ForwardRefExoticComponent<Omit<{
2589
2617
  debug?: boolean;
2590
2618
  styleId?: string;
2591
2619
  onReady?: (e: CustomEvent<{}>) => void;
2620
+ form?: Record<string, any>;
2621
+ client?: Record<string, any>;
2592
2622
  }, "tenant"> & {
2593
2623
  onLogout?: (e: CustomEvent<any>) => void;
2594
2624
  } & React.RefAttributes<HTMLElement>>;