@descope/react-sdk 2.29.4 → 2.30.0

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 (32) hide show
  1. package/dist/cjs/components/OutboundApplications.js +1 -1
  2. package/dist/cjs/components/OutboundApplications.js.map +1 -1
  3. package/dist/cjs/components/TenantProfile.js +1 -1
  4. package/dist/cjs/components/TenantProfile.js.map +1 -1
  5. package/dist/cjs/components/UserManagement.js +1 -1
  6. package/dist/cjs/components/UserManagement.js.map +1 -1
  7. package/dist/cjs/components/UserProfile.js +1 -1
  8. package/dist/cjs/components/UserProfile.js.map +1 -1
  9. package/dist/cjs/constants.js +1 -1
  10. package/dist/esm/components/OutboundApplications.js +1 -1
  11. package/dist/esm/components/OutboundApplications.js.map +1 -1
  12. package/dist/esm/components/TenantProfile.js +1 -1
  13. package/dist/esm/components/TenantProfile.js.map +1 -1
  14. package/dist/esm/components/UserManagement.js +1 -1
  15. package/dist/esm/components/UserManagement.js.map +1 -1
  16. package/dist/esm/components/UserProfile.js +1 -1
  17. package/dist/esm/components/UserProfile.js.map +1 -1
  18. package/dist/esm/constants.js +1 -1
  19. package/dist/index.d.ts +57 -15
  20. package/dist/index.umd.js +2 -2
  21. package/dist/index.umd.js.map +1 -1
  22. package/dist/types/components/AccessKeyManagement.d.ts +2 -0
  23. package/dist/types/components/ApplicationsPortal.d.ts +2 -0
  24. package/dist/types/components/AuditManagement.d.ts +2 -0
  25. package/dist/types/components/OutboundApplications.d.ts +2 -0
  26. package/dist/types/components/RoleManagement.d.ts +2 -0
  27. package/dist/types/components/TenantProfile.d.ts +2 -0
  28. package/dist/types/components/UserManagement.d.ts +2 -0
  29. package/dist/types/components/UserProfile.d.ts +2 -0
  30. package/dist/types/sdk.d.ts +117 -45
  31. package/dist/types/types.d.ts +2 -0
  32. package/package.json +13 -13
@@ -8,5 +8,7 @@ declare const AccessKeyManagement: React.ForwardRefExoticComponent<{
8
8
  debug?: boolean;
9
9
  styleId?: string;
10
10
  onReady?: (e: CustomEvent<{}>) => void;
11
+ form?: Record<string, any>;
12
+ client?: Record<string, any>;
11
13
  } & React.RefAttributes<HTMLElement>>;
12
14
  export default AccessKeyManagement;
@@ -8,6 +8,8 @@ declare const ApplicationsPortal: React.ForwardRefExoticComponent<Omit<{
8
8
  debug?: boolean;
9
9
  styleId?: string;
10
10
  onReady?: (e: CustomEvent<{}>) => void;
11
+ form?: Record<string, any>;
12
+ client?: Record<string, any>;
11
13
  }, "tenant"> & {
12
14
  onLogout?: (e: CustomEvent<any>) => void;
13
15
  } & React.RefAttributes<HTMLElement>>;
@@ -8,5 +8,7 @@ declare const AuditManagement: React.ForwardRefExoticComponent<{
8
8
  debug?: boolean;
9
9
  styleId?: string;
10
10
  onReady?: (e: CustomEvent<{}>) => void;
11
+ form?: Record<string, any>;
12
+ client?: Record<string, any>;
11
13
  } & React.RefAttributes<HTMLElement>>;
12
14
  export default AuditManagement;
@@ -8,5 +8,7 @@ declare const OutboundApplications: React.ForwardRefExoticComponent<{
8
8
  debug?: boolean;
9
9
  styleId?: string;
10
10
  onReady?: (e: CustomEvent<{}>) => void;
11
+ form?: Record<string, any>;
12
+ client?: Record<string, any>;
11
13
  } & React.RefAttributes<HTMLElement>>;
12
14
  export default OutboundApplications;
@@ -8,5 +8,7 @@ declare const RoleManagement: React.ForwardRefExoticComponent<{
8
8
  debug?: boolean;
9
9
  styleId?: string;
10
10
  onReady?: (e: CustomEvent<{}>) => void;
11
+ form?: Record<string, any>;
12
+ client?: Record<string, any>;
11
13
  } & React.RefAttributes<HTMLElement>>;
12
14
  export default RoleManagement;
@@ -8,5 +8,7 @@ declare const TenantProfile: React.ForwardRefExoticComponent<{
8
8
  debug?: boolean;
9
9
  styleId?: string;
10
10
  onReady?: (e: CustomEvent<{}>) => void;
11
+ form?: Record<string, any>;
12
+ client?: Record<string, any>;
11
13
  } & React.RefAttributes<HTMLElement>>;
12
14
  export default TenantProfile;
@@ -8,5 +8,7 @@ declare const UserManagement: React.ForwardRefExoticComponent<{
8
8
  debug?: boolean;
9
9
  styleId?: string;
10
10
  onReady?: (e: CustomEvent<{}>) => void;
11
+ form?: Record<string, any>;
12
+ client?: Record<string, any>;
11
13
  } & React.RefAttributes<HTMLElement>>;
12
14
  export default UserManagement;
@@ -8,6 +8,8 @@ declare const UserProfile: React.ForwardRefExoticComponent<Omit<{
8
8
  debug?: boolean;
9
9
  styleId?: string;
10
10
  onReady?: (e: CustomEvent<{}>) => void;
11
+ form?: Record<string, any>;
12
+ client?: Record<string, any>;
11
13
  }, "tenant"> & {
12
14
  onLogout?: (e: CustomEvent<any>) => void;
13
15
  } & React.RefAttributes<HTMLElement>>;
@@ -62,7 +62,7 @@ declare const createSdkWrapper: <P extends {
62
62
  webAuthnSupport?: boolean;
63
63
  };
64
64
  lastAuth?: {
65
- authMethod?: "webauthn" | "otp" | "oauth" | "saml" | "totp" | "magiclink" | "enchantedlink";
65
+ authMethod?: "webauthn" | "otp" | "oauth" | "sso" | "saml" | "totp" | "magiclink" | "enchantedlink";
66
66
  oauthProvider?: string;
67
67
  name?: string;
68
68
  loginId?: string;
@@ -99,7 +99,7 @@ declare const createSdkWrapper: <P extends {
99
99
  outboundAppScopes?: string[];
100
100
  }, "tenant" | "redirectUrl" | "redirectAuth" | "oidcIdpStateId" | "samlIdpStateId" | "wsfedIdpStateId" | "samlIdpUsername" | "ssoAppId" | "thirdPartyAppId" | "oidcLoginHint" | "preview" | "abTestingKey" | "client" | "locale" | "oidcPrompt" | "oidcErrorRedirectUri" | "oidcResource" | "nativeOptions" | "thirdPartyAppStateId" | "applicationScopes" | "outboundAppId" | "outboundAppScopes"> & {
101
101
  lastAuth?: Omit<{
102
- authMethod?: "webauthn" | "otp" | "oauth" | "saml" | "totp" | "magiclink" | "enchantedlink";
102
+ authMethod?: "webauthn" | "otp" | "oauth" | "sso" | "saml" | "totp" | "magiclink" | "enchantedlink";
103
103
  oauthProvider?: string;
104
104
  name?: string;
105
105
  loginId?: string;
@@ -135,13 +135,17 @@ declare const createSdkWrapper: <P extends {
135
135
  create: boolean;
136
136
  }>>;
137
137
  };
138
- update: ((identifier: string, token?: string, passkeyOptions?: _1.PasskeyOptions) => Promise<_1.SdkResponse<_1.ResponseData>>) & {
139
- start: (loginId: string, origin: string, token?: string, passkeyOptions?: _1.PasskeyOptions) => Promise<_1.SdkResponse<{
138
+ update: ((identifier: string, token?: string, passkeyOptions?: _1.PasskeyOptions) => Promise<_1.SdkResponse<_1.ResponseData> | _1.SdkResponse<{
139
+ jwt?: _1.JWTResponse;
140
+ }>>) & {
141
+ start: (loginId: string, origin: string, token?: string, passkeyOptions?: _1.PasskeyOptions, mfa?: boolean) => Promise<_1.SdkResponse<{
140
142
  transactionId: string;
141
143
  options: string;
142
144
  create: boolean;
143
145
  }>>;
144
- finish: (transactionId: string, response: string) => Promise<_1.SdkResponse<_1.ResponseData>>;
146
+ finish: (transactionId: string, response: string) => Promise<_1.SdkResponse<{
147
+ jwt?: _1.JWTResponse;
148
+ }>>;
145
149
  };
146
150
  helpers: {
147
151
  create: (options: string) => Promise<string>;
@@ -684,6 +688,10 @@ declare const createSdkWrapper: <P extends {
684
688
  externalIdentifier?: string;
685
689
  }, token?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
686
690
  };
691
+ sso: {
692
+ start: (tenantIdOrEmail: string, redirectUrl?: string, loginOptions?: _1.LoginOptions, token?: string, ssoId?: string, forceAuthn?: boolean, loginHint?: string, enforceInitiatedEmail?: boolean) => Promise<_1.SdkResponse<_1.URLResponse>>;
693
+ exchange: (code: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
694
+ };
687
695
  saml: {
688
696
  start: (tenantIdOrEmail: string, redirectUrl?: string, loginOptions?: _1.LoginOptions, token?: string, ssoId?: string, forceAuthn?: boolean, loginHint?: string, enforceInitiatedEmail?: boolean) => Promise<_1.SdkResponse<_1.URLResponse>>;
689
697
  exchange: (code: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
@@ -816,7 +824,7 @@ declare const createSdkWrapper: <P extends {
816
824
  webAuthnSupport?: boolean;
817
825
  };
818
826
  lastAuth?: {
819
- authMethod?: "webauthn" | "otp" | "oauth" | "saml" | "totp" | "magiclink" | "enchantedlink";
827
+ authMethod?: "webauthn" | "otp" | "oauth" | "sso" | "saml" | "totp" | "magiclink" | "enchantedlink";
820
828
  oauthProvider?: string;
821
829
  name?: string;
822
830
  loginId?: string;
@@ -853,7 +861,7 @@ declare const createSdkWrapper: <P extends {
853
861
  outboundAppScopes?: string[];
854
862
  }, "tenant" | "redirectUrl" | "redirectAuth" | "oidcIdpStateId" | "samlIdpStateId" | "wsfedIdpStateId" | "samlIdpUsername" | "ssoAppId" | "thirdPartyAppId" | "oidcLoginHint" | "preview" | "abTestingKey" | "client" | "locale" | "oidcPrompt" | "oidcErrorRedirectUri" | "oidcResource" | "nativeOptions" | "thirdPartyAppStateId" | "applicationScopes" | "outboundAppId" | "outboundAppScopes"> & {
855
863
  lastAuth?: Omit<{
856
- authMethod?: "webauthn" | "otp" | "oauth" | "saml" | "totp" | "magiclink" | "enchantedlink";
864
+ authMethod?: "webauthn" | "otp" | "oauth" | "sso" | "saml" | "totp" | "magiclink" | "enchantedlink";
857
865
  oauthProvider?: string;
858
866
  name?: string;
859
867
  loginId?: string;
@@ -889,13 +897,17 @@ declare const createSdkWrapper: <P extends {
889
897
  create: boolean;
890
898
  }>>;
891
899
  };
892
- update: ((identifier: string, token?: string, passkeyOptions?: _1.PasskeyOptions) => Promise<_1.SdkResponse<_1.ResponseData>>) & {
893
- start: (loginId: string, origin: string, token?: string, passkeyOptions?: _1.PasskeyOptions) => Promise<_1.SdkResponse<{
900
+ update: ((identifier: string, token?: string, passkeyOptions?: _1.PasskeyOptions) => Promise<_1.SdkResponse<_1.ResponseData> | _1.SdkResponse<{
901
+ jwt?: _1.JWTResponse;
902
+ }>>) & {
903
+ start: (loginId: string, origin: string, token?: string, passkeyOptions?: _1.PasskeyOptions, mfa?: boolean) => Promise<_1.SdkResponse<{
894
904
  transactionId: string;
895
905
  options: string;
896
906
  create: boolean;
897
907
  }>>;
898
- finish: (transactionId: string, response: string) => Promise<_1.SdkResponse<_1.ResponseData>>;
908
+ finish: (transactionId: string, response: string) => Promise<_1.SdkResponse<{
909
+ jwt?: _1.JWTResponse;
910
+ }>>;
899
911
  };
900
912
  helpers: {
901
913
  create: (options: string) => Promise<string>;
@@ -1438,6 +1450,10 @@ declare const createSdkWrapper: <P extends {
1438
1450
  externalIdentifier?: string;
1439
1451
  }, token?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
1440
1452
  };
1453
+ sso: {
1454
+ start: (tenantIdOrEmail: string, redirectUrl?: string, loginOptions?: _1.LoginOptions, token?: string, ssoId?: string, forceAuthn?: boolean, loginHint?: string, enforceInitiatedEmail?: boolean) => Promise<_1.SdkResponse<_1.URLResponse>>;
1455
+ exchange: (code: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
1456
+ };
1441
1457
  saml: {
1442
1458
  start: (tenantIdOrEmail: string, redirectUrl?: string, loginOptions?: _1.LoginOptions, token?: string, ssoId?: string, forceAuthn?: boolean, loginHint?: string, enforceInitiatedEmail?: boolean) => Promise<_1.SdkResponse<_1.URLResponse>>;
1443
1459
  exchange: (code: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
@@ -1570,7 +1586,7 @@ declare const createSdkWrapper: <P extends {
1570
1586
  webAuthnSupport?: boolean;
1571
1587
  };
1572
1588
  lastAuth?: {
1573
- authMethod?: "webauthn" | "otp" | "oauth" | "saml" | "totp" | "magiclink" | "enchantedlink";
1589
+ authMethod?: "webauthn" | "otp" | "oauth" | "sso" | "saml" | "totp" | "magiclink" | "enchantedlink";
1574
1590
  oauthProvider?: string;
1575
1591
  name?: string;
1576
1592
  loginId?: string;
@@ -1607,7 +1623,7 @@ declare const createSdkWrapper: <P extends {
1607
1623
  outboundAppScopes?: string[];
1608
1624
  }, "tenant" | "redirectUrl" | "redirectAuth" | "oidcIdpStateId" | "samlIdpStateId" | "wsfedIdpStateId" | "samlIdpUsername" | "ssoAppId" | "thirdPartyAppId" | "oidcLoginHint" | "preview" | "abTestingKey" | "client" | "locale" | "oidcPrompt" | "oidcErrorRedirectUri" | "oidcResource" | "nativeOptions" | "thirdPartyAppStateId" | "applicationScopes" | "outboundAppId" | "outboundAppScopes"> & {
1609
1625
  lastAuth?: Omit<{
1610
- authMethod?: "webauthn" | "otp" | "oauth" | "saml" | "totp" | "magiclink" | "enchantedlink";
1626
+ authMethod?: "webauthn" | "otp" | "oauth" | "sso" | "saml" | "totp" | "magiclink" | "enchantedlink";
1611
1627
  oauthProvider?: string;
1612
1628
  name?: string;
1613
1629
  loginId?: string;
@@ -1643,13 +1659,17 @@ declare const createSdkWrapper: <P extends {
1643
1659
  create: boolean;
1644
1660
  }>>;
1645
1661
  };
1646
- update: ((identifier: string, token?: string, passkeyOptions?: _1.PasskeyOptions) => Promise<_1.SdkResponse<_1.ResponseData>>) & {
1647
- start: (loginId: string, origin: string, token?: string, passkeyOptions?: _1.PasskeyOptions) => Promise<_1.SdkResponse<{
1662
+ update: ((identifier: string, token?: string, passkeyOptions?: _1.PasskeyOptions) => Promise<_1.SdkResponse<_1.ResponseData> | _1.SdkResponse<{
1663
+ jwt?: _1.JWTResponse;
1664
+ }>>) & {
1665
+ start: (loginId: string, origin: string, token?: string, passkeyOptions?: _1.PasskeyOptions, mfa?: boolean) => Promise<_1.SdkResponse<{
1648
1666
  transactionId: string;
1649
1667
  options: string;
1650
1668
  create: boolean;
1651
1669
  }>>;
1652
- finish: (transactionId: string, response: string) => Promise<_1.SdkResponse<_1.ResponseData>>;
1670
+ finish: (transactionId: string, response: string) => Promise<_1.SdkResponse<{
1671
+ jwt?: _1.JWTResponse;
1672
+ }>>;
1653
1673
  };
1654
1674
  helpers: {
1655
1675
  create: (options: string) => Promise<string>;
@@ -2192,6 +2212,10 @@ declare const createSdkWrapper: <P extends {
2192
2212
  externalIdentifier?: string;
2193
2213
  }, token?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
2194
2214
  };
2215
+ sso: {
2216
+ start: (tenantIdOrEmail: string, redirectUrl?: string, loginOptions?: _1.LoginOptions, token?: string, ssoId?: string, forceAuthn?: boolean, loginHint?: string, enforceInitiatedEmail?: boolean) => Promise<_1.SdkResponse<_1.URLResponse>>;
2217
+ exchange: (code: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
2218
+ };
2195
2219
  saml: {
2196
2220
  start: (tenantIdOrEmail: string, redirectUrl?: string, loginOptions?: _1.LoginOptions, token?: string, ssoId?: string, forceAuthn?: boolean, loginHint?: string, enforceInitiatedEmail?: boolean) => Promise<_1.SdkResponse<_1.URLResponse>>;
2197
2221
  exchange: (code: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
@@ -2339,7 +2363,7 @@ export declare const createTempSdk: () => (((({
2339
2363
  webAuthnSupport?: boolean;
2340
2364
  };
2341
2365
  lastAuth?: {
2342
- authMethod?: "webauthn" | "otp" | "oauth" | "saml" | "totp" | "magiclink" | "enchantedlink";
2366
+ authMethod?: "webauthn" | "otp" | "oauth" | "sso" | "saml" | "totp" | "magiclink" | "enchantedlink";
2343
2367
  oauthProvider?: string;
2344
2368
  name?: string;
2345
2369
  loginId?: string;
@@ -2376,7 +2400,7 @@ export declare const createTempSdk: () => (((({
2376
2400
  outboundAppScopes?: string[];
2377
2401
  }, "tenant" | "redirectUrl" | "redirectAuth" | "oidcIdpStateId" | "samlIdpStateId" | "wsfedIdpStateId" | "samlIdpUsername" | "ssoAppId" | "thirdPartyAppId" | "oidcLoginHint" | "preview" | "abTestingKey" | "client" | "locale" | "oidcPrompt" | "oidcErrorRedirectUri" | "oidcResource" | "nativeOptions" | "thirdPartyAppStateId" | "applicationScopes" | "outboundAppId" | "outboundAppScopes"> & {
2378
2402
  lastAuth?: Omit<{
2379
- authMethod?: "webauthn" | "otp" | "oauth" | "saml" | "totp" | "magiclink" | "enchantedlink";
2403
+ authMethod?: "webauthn" | "otp" | "oauth" | "sso" | "saml" | "totp" | "magiclink" | "enchantedlink";
2380
2404
  oauthProvider?: string;
2381
2405
  name?: string;
2382
2406
  loginId?: string;
@@ -2412,13 +2436,17 @@ export declare const createTempSdk: () => (((({
2412
2436
  create: boolean;
2413
2437
  }>>;
2414
2438
  };
2415
- update: ((identifier: string, token?: string, passkeyOptions?: _1.PasskeyOptions) => Promise<_1.SdkResponse<_1.ResponseData>>) & {
2416
- start: (loginId: string, origin: string, token?: string, passkeyOptions?: _1.PasskeyOptions) => Promise<_1.SdkResponse<{
2439
+ update: ((identifier: string, token?: string, passkeyOptions?: _1.PasskeyOptions) => Promise<_1.SdkResponse<_1.ResponseData> | _1.SdkResponse<{
2440
+ jwt?: _1.JWTResponse;
2441
+ }>>) & {
2442
+ start: (loginId: string, origin: string, token?: string, passkeyOptions?: _1.PasskeyOptions, mfa?: boolean) => Promise<_1.SdkResponse<{
2417
2443
  transactionId: string;
2418
2444
  options: string;
2419
2445
  create: boolean;
2420
2446
  }>>;
2421
- finish: (transactionId: string, response: string) => Promise<_1.SdkResponse<_1.ResponseData>>;
2447
+ finish: (transactionId: string, response: string) => Promise<_1.SdkResponse<{
2448
+ jwt?: _1.JWTResponse;
2449
+ }>>;
2422
2450
  };
2423
2451
  helpers: {
2424
2452
  create: (options: string) => Promise<string>;
@@ -2961,6 +2989,10 @@ export declare const createTempSdk: () => (((({
2961
2989
  externalIdentifier?: string;
2962
2990
  }, token?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
2963
2991
  };
2992
+ sso: {
2993
+ start: (tenantIdOrEmail: string, redirectUrl?: string, loginOptions?: _1.LoginOptions, token?: string, ssoId?: string, forceAuthn?: boolean, loginHint?: string, enforceInitiatedEmail?: boolean) => Promise<_1.SdkResponse<_1.URLResponse>>;
2994
+ exchange: (code: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
2995
+ };
2964
2996
  saml: {
2965
2997
  start: (tenantIdOrEmail: string, redirectUrl?: string, loginOptions?: _1.LoginOptions, token?: string, ssoId?: string, forceAuthn?: boolean, loginHint?: string, enforceInitiatedEmail?: boolean) => Promise<_1.SdkResponse<_1.URLResponse>>;
2966
2998
  exchange: (code: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
@@ -3093,7 +3125,7 @@ export declare const createTempSdk: () => (((({
3093
3125
  webAuthnSupport?: boolean;
3094
3126
  };
3095
3127
  lastAuth?: {
3096
- authMethod?: "webauthn" | "otp" | "oauth" | "saml" | "totp" | "magiclink" | "enchantedlink";
3128
+ authMethod?: "webauthn" | "otp" | "oauth" | "sso" | "saml" | "totp" | "magiclink" | "enchantedlink";
3097
3129
  oauthProvider?: string;
3098
3130
  name?: string;
3099
3131
  loginId?: string;
@@ -3130,7 +3162,7 @@ export declare const createTempSdk: () => (((({
3130
3162
  outboundAppScopes?: string[];
3131
3163
  }, "tenant" | "redirectUrl" | "redirectAuth" | "oidcIdpStateId" | "samlIdpStateId" | "wsfedIdpStateId" | "samlIdpUsername" | "ssoAppId" | "thirdPartyAppId" | "oidcLoginHint" | "preview" | "abTestingKey" | "client" | "locale" | "oidcPrompt" | "oidcErrorRedirectUri" | "oidcResource" | "nativeOptions" | "thirdPartyAppStateId" | "applicationScopes" | "outboundAppId" | "outboundAppScopes"> & {
3132
3164
  lastAuth?: Omit<{
3133
- authMethod?: "webauthn" | "otp" | "oauth" | "saml" | "totp" | "magiclink" | "enchantedlink";
3165
+ authMethod?: "webauthn" | "otp" | "oauth" | "sso" | "saml" | "totp" | "magiclink" | "enchantedlink";
3134
3166
  oauthProvider?: string;
3135
3167
  name?: string;
3136
3168
  loginId?: string;
@@ -3166,13 +3198,17 @@ export declare const createTempSdk: () => (((({
3166
3198
  create: boolean;
3167
3199
  }>>;
3168
3200
  };
3169
- update: ((identifier: string, token?: string, passkeyOptions?: _1.PasskeyOptions) => Promise<_1.SdkResponse<_1.ResponseData>>) & {
3170
- start: (loginId: string, origin: string, token?: string, passkeyOptions?: _1.PasskeyOptions) => Promise<_1.SdkResponse<{
3201
+ update: ((identifier: string, token?: string, passkeyOptions?: _1.PasskeyOptions) => Promise<_1.SdkResponse<_1.ResponseData> | _1.SdkResponse<{
3202
+ jwt?: _1.JWTResponse;
3203
+ }>>) & {
3204
+ start: (loginId: string, origin: string, token?: string, passkeyOptions?: _1.PasskeyOptions, mfa?: boolean) => Promise<_1.SdkResponse<{
3171
3205
  transactionId: string;
3172
3206
  options: string;
3173
3207
  create: boolean;
3174
3208
  }>>;
3175
- finish: (transactionId: string, response: string) => Promise<_1.SdkResponse<_1.ResponseData>>;
3209
+ finish: (transactionId: string, response: string) => Promise<_1.SdkResponse<{
3210
+ jwt?: _1.JWTResponse;
3211
+ }>>;
3176
3212
  };
3177
3213
  helpers: {
3178
3214
  create: (options: string) => Promise<string>;
@@ -3715,6 +3751,10 @@ export declare const createTempSdk: () => (((({
3715
3751
  externalIdentifier?: string;
3716
3752
  }, token?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
3717
3753
  };
3754
+ sso: {
3755
+ start: (tenantIdOrEmail: string, redirectUrl?: string, loginOptions?: _1.LoginOptions, token?: string, ssoId?: string, forceAuthn?: boolean, loginHint?: string, enforceInitiatedEmail?: boolean) => Promise<_1.SdkResponse<_1.URLResponse>>;
3756
+ exchange: (code: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
3757
+ };
3718
3758
  saml: {
3719
3759
  start: (tenantIdOrEmail: string, redirectUrl?: string, loginOptions?: _1.LoginOptions, token?: string, ssoId?: string, forceAuthn?: boolean, loginHint?: string, enforceInitiatedEmail?: boolean) => Promise<_1.SdkResponse<_1.URLResponse>>;
3720
3760
  exchange: (code: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
@@ -3847,7 +3887,7 @@ export declare const createTempSdk: () => (((({
3847
3887
  webAuthnSupport?: boolean;
3848
3888
  };
3849
3889
  lastAuth?: {
3850
- authMethod?: "webauthn" | "otp" | "oauth" | "saml" | "totp" | "magiclink" | "enchantedlink";
3890
+ authMethod?: "webauthn" | "otp" | "oauth" | "sso" | "saml" | "totp" | "magiclink" | "enchantedlink";
3851
3891
  oauthProvider?: string;
3852
3892
  name?: string;
3853
3893
  loginId?: string;
@@ -3884,7 +3924,7 @@ export declare const createTempSdk: () => (((({
3884
3924
  outboundAppScopes?: string[];
3885
3925
  }, "tenant" | "redirectUrl" | "redirectAuth" | "oidcIdpStateId" | "samlIdpStateId" | "wsfedIdpStateId" | "samlIdpUsername" | "ssoAppId" | "thirdPartyAppId" | "oidcLoginHint" | "preview" | "abTestingKey" | "client" | "locale" | "oidcPrompt" | "oidcErrorRedirectUri" | "oidcResource" | "nativeOptions" | "thirdPartyAppStateId" | "applicationScopes" | "outboundAppId" | "outboundAppScopes"> & {
3886
3926
  lastAuth?: Omit<{
3887
- authMethod?: "webauthn" | "otp" | "oauth" | "saml" | "totp" | "magiclink" | "enchantedlink";
3927
+ authMethod?: "webauthn" | "otp" | "oauth" | "sso" | "saml" | "totp" | "magiclink" | "enchantedlink";
3888
3928
  oauthProvider?: string;
3889
3929
  name?: string;
3890
3930
  loginId?: string;
@@ -3920,13 +3960,17 @@ export declare const createTempSdk: () => (((({
3920
3960
  create: boolean;
3921
3961
  }>>;
3922
3962
  };
3923
- update: ((identifier: string, token?: string, passkeyOptions?: _1.PasskeyOptions) => Promise<_1.SdkResponse<_1.ResponseData>>) & {
3924
- start: (loginId: string, origin: string, token?: string, passkeyOptions?: _1.PasskeyOptions) => Promise<_1.SdkResponse<{
3963
+ update: ((identifier: string, token?: string, passkeyOptions?: _1.PasskeyOptions) => Promise<_1.SdkResponse<_1.ResponseData> | _1.SdkResponse<{
3964
+ jwt?: _1.JWTResponse;
3965
+ }>>) & {
3966
+ start: (loginId: string, origin: string, token?: string, passkeyOptions?: _1.PasskeyOptions, mfa?: boolean) => Promise<_1.SdkResponse<{
3925
3967
  transactionId: string;
3926
3968
  options: string;
3927
3969
  create: boolean;
3928
3970
  }>>;
3929
- finish: (transactionId: string, response: string) => Promise<_1.SdkResponse<_1.ResponseData>>;
3971
+ finish: (transactionId: string, response: string) => Promise<_1.SdkResponse<{
3972
+ jwt?: _1.JWTResponse;
3973
+ }>>;
3930
3974
  };
3931
3975
  helpers: {
3932
3976
  create: (options: string) => Promise<string>;
@@ -4469,6 +4513,10 @@ export declare const createTempSdk: () => (((({
4469
4513
  externalIdentifier?: string;
4470
4514
  }, token?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
4471
4515
  };
4516
+ sso: {
4517
+ start: (tenantIdOrEmail: string, redirectUrl?: string, loginOptions?: _1.LoginOptions, token?: string, ssoId?: string, forceAuthn?: boolean, loginHint?: string, enforceInitiatedEmail?: boolean) => Promise<_1.SdkResponse<_1.URLResponse>>;
4518
+ exchange: (code: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
4519
+ };
4472
4520
  saml: {
4473
4521
  start: (tenantIdOrEmail: string, redirectUrl?: string, loginOptions?: _1.LoginOptions, token?: string, ssoId?: string, forceAuthn?: boolean, loginHint?: string, enforceInitiatedEmail?: boolean) => Promise<_1.SdkResponse<_1.URLResponse>>;
4474
4522
  exchange: (code: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
@@ -4624,7 +4672,7 @@ export declare const getGlobalSdk: () => (((({
4624
4672
  webAuthnSupport?: boolean;
4625
4673
  };
4626
4674
  lastAuth?: {
4627
- authMethod?: "webauthn" | "otp" | "oauth" | "saml" | "totp" | "magiclink" | "enchantedlink";
4675
+ authMethod?: "webauthn" | "otp" | "oauth" | "sso" | "saml" | "totp" | "magiclink" | "enchantedlink";
4628
4676
  oauthProvider?: string;
4629
4677
  name?: string;
4630
4678
  loginId?: string;
@@ -4661,7 +4709,7 @@ export declare const getGlobalSdk: () => (((({
4661
4709
  outboundAppScopes?: string[];
4662
4710
  }, "tenant" | "redirectUrl" | "redirectAuth" | "oidcIdpStateId" | "samlIdpStateId" | "wsfedIdpStateId" | "samlIdpUsername" | "ssoAppId" | "thirdPartyAppId" | "oidcLoginHint" | "preview" | "abTestingKey" | "client" | "locale" | "oidcPrompt" | "oidcErrorRedirectUri" | "oidcResource" | "nativeOptions" | "thirdPartyAppStateId" | "applicationScopes" | "outboundAppId" | "outboundAppScopes"> & {
4663
4711
  lastAuth?: Omit<{
4664
- authMethod?: "webauthn" | "otp" | "oauth" | "saml" | "totp" | "magiclink" | "enchantedlink";
4712
+ authMethod?: "webauthn" | "otp" | "oauth" | "sso" | "saml" | "totp" | "magiclink" | "enchantedlink";
4665
4713
  oauthProvider?: string;
4666
4714
  name?: string;
4667
4715
  loginId?: string;
@@ -4697,13 +4745,17 @@ export declare const getGlobalSdk: () => (((({
4697
4745
  create: boolean;
4698
4746
  }>>;
4699
4747
  };
4700
- update: ((identifier: string, token?: string, passkeyOptions?: _1.PasskeyOptions) => Promise<_1.SdkResponse<_1.ResponseData>>) & {
4701
- start: (loginId: string, origin: string, token?: string, passkeyOptions?: _1.PasskeyOptions) => Promise<_1.SdkResponse<{
4748
+ update: ((identifier: string, token?: string, passkeyOptions?: _1.PasskeyOptions) => Promise<_1.SdkResponse<_1.ResponseData> | _1.SdkResponse<{
4749
+ jwt?: _1.JWTResponse;
4750
+ }>>) & {
4751
+ start: (loginId: string, origin: string, token?: string, passkeyOptions?: _1.PasskeyOptions, mfa?: boolean) => Promise<_1.SdkResponse<{
4702
4752
  transactionId: string;
4703
4753
  options: string;
4704
4754
  create: boolean;
4705
4755
  }>>;
4706
- finish: (transactionId: string, response: string) => Promise<_1.SdkResponse<_1.ResponseData>>;
4756
+ finish: (transactionId: string, response: string) => Promise<_1.SdkResponse<{
4757
+ jwt?: _1.JWTResponse;
4758
+ }>>;
4707
4759
  };
4708
4760
  helpers: {
4709
4761
  create: (options: string) => Promise<string>;
@@ -5246,6 +5298,10 @@ export declare const getGlobalSdk: () => (((({
5246
5298
  externalIdentifier?: string;
5247
5299
  }, token?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
5248
5300
  };
5301
+ sso: {
5302
+ start: (tenantIdOrEmail: string, redirectUrl?: string, loginOptions?: _1.LoginOptions, token?: string, ssoId?: string, forceAuthn?: boolean, loginHint?: string, enforceInitiatedEmail?: boolean) => Promise<_1.SdkResponse<_1.URLResponse>>;
5303
+ exchange: (code: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
5304
+ };
5249
5305
  saml: {
5250
5306
  start: (tenantIdOrEmail: string, redirectUrl?: string, loginOptions?: _1.LoginOptions, token?: string, ssoId?: string, forceAuthn?: boolean, loginHint?: string, enforceInitiatedEmail?: boolean) => Promise<_1.SdkResponse<_1.URLResponse>>;
5251
5307
  exchange: (code: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
@@ -5378,7 +5434,7 @@ export declare const getGlobalSdk: () => (((({
5378
5434
  webAuthnSupport?: boolean;
5379
5435
  };
5380
5436
  lastAuth?: {
5381
- authMethod?: "webauthn" | "otp" | "oauth" | "saml" | "totp" | "magiclink" | "enchantedlink";
5437
+ authMethod?: "webauthn" | "otp" | "oauth" | "sso" | "saml" | "totp" | "magiclink" | "enchantedlink";
5382
5438
  oauthProvider?: string;
5383
5439
  name?: string;
5384
5440
  loginId?: string;
@@ -5415,7 +5471,7 @@ export declare const getGlobalSdk: () => (((({
5415
5471
  outboundAppScopes?: string[];
5416
5472
  }, "tenant" | "redirectUrl" | "redirectAuth" | "oidcIdpStateId" | "samlIdpStateId" | "wsfedIdpStateId" | "samlIdpUsername" | "ssoAppId" | "thirdPartyAppId" | "oidcLoginHint" | "preview" | "abTestingKey" | "client" | "locale" | "oidcPrompt" | "oidcErrorRedirectUri" | "oidcResource" | "nativeOptions" | "thirdPartyAppStateId" | "applicationScopes" | "outboundAppId" | "outboundAppScopes"> & {
5417
5473
  lastAuth?: Omit<{
5418
- authMethod?: "webauthn" | "otp" | "oauth" | "saml" | "totp" | "magiclink" | "enchantedlink";
5474
+ authMethod?: "webauthn" | "otp" | "oauth" | "sso" | "saml" | "totp" | "magiclink" | "enchantedlink";
5419
5475
  oauthProvider?: string;
5420
5476
  name?: string;
5421
5477
  loginId?: string;
@@ -5451,13 +5507,17 @@ export declare const getGlobalSdk: () => (((({
5451
5507
  create: boolean;
5452
5508
  }>>;
5453
5509
  };
5454
- update: ((identifier: string, token?: string, passkeyOptions?: _1.PasskeyOptions) => Promise<_1.SdkResponse<_1.ResponseData>>) & {
5455
- start: (loginId: string, origin: string, token?: string, passkeyOptions?: _1.PasskeyOptions) => Promise<_1.SdkResponse<{
5510
+ update: ((identifier: string, token?: string, passkeyOptions?: _1.PasskeyOptions) => Promise<_1.SdkResponse<_1.ResponseData> | _1.SdkResponse<{
5511
+ jwt?: _1.JWTResponse;
5512
+ }>>) & {
5513
+ start: (loginId: string, origin: string, token?: string, passkeyOptions?: _1.PasskeyOptions, mfa?: boolean) => Promise<_1.SdkResponse<{
5456
5514
  transactionId: string;
5457
5515
  options: string;
5458
5516
  create: boolean;
5459
5517
  }>>;
5460
- finish: (transactionId: string, response: string) => Promise<_1.SdkResponse<_1.ResponseData>>;
5518
+ finish: (transactionId: string, response: string) => Promise<_1.SdkResponse<{
5519
+ jwt?: _1.JWTResponse;
5520
+ }>>;
5461
5521
  };
5462
5522
  helpers: {
5463
5523
  create: (options: string) => Promise<string>;
@@ -6000,6 +6060,10 @@ export declare const getGlobalSdk: () => (((({
6000
6060
  externalIdentifier?: string;
6001
6061
  }, token?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
6002
6062
  };
6063
+ sso: {
6064
+ start: (tenantIdOrEmail: string, redirectUrl?: string, loginOptions?: _1.LoginOptions, token?: string, ssoId?: string, forceAuthn?: boolean, loginHint?: string, enforceInitiatedEmail?: boolean) => Promise<_1.SdkResponse<_1.URLResponse>>;
6065
+ exchange: (code: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
6066
+ };
6003
6067
  saml: {
6004
6068
  start: (tenantIdOrEmail: string, redirectUrl?: string, loginOptions?: _1.LoginOptions, token?: string, ssoId?: string, forceAuthn?: boolean, loginHint?: string, enforceInitiatedEmail?: boolean) => Promise<_1.SdkResponse<_1.URLResponse>>;
6005
6069
  exchange: (code: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
@@ -6132,7 +6196,7 @@ export declare const getGlobalSdk: () => (((({
6132
6196
  webAuthnSupport?: boolean;
6133
6197
  };
6134
6198
  lastAuth?: {
6135
- authMethod?: "webauthn" | "otp" | "oauth" | "saml" | "totp" | "magiclink" | "enchantedlink";
6199
+ authMethod?: "webauthn" | "otp" | "oauth" | "sso" | "saml" | "totp" | "magiclink" | "enchantedlink";
6136
6200
  oauthProvider?: string;
6137
6201
  name?: string;
6138
6202
  loginId?: string;
@@ -6169,7 +6233,7 @@ export declare const getGlobalSdk: () => (((({
6169
6233
  outboundAppScopes?: string[];
6170
6234
  }, "tenant" | "redirectUrl" | "redirectAuth" | "oidcIdpStateId" | "samlIdpStateId" | "wsfedIdpStateId" | "samlIdpUsername" | "ssoAppId" | "thirdPartyAppId" | "oidcLoginHint" | "preview" | "abTestingKey" | "client" | "locale" | "oidcPrompt" | "oidcErrorRedirectUri" | "oidcResource" | "nativeOptions" | "thirdPartyAppStateId" | "applicationScopes" | "outboundAppId" | "outboundAppScopes"> & {
6171
6235
  lastAuth?: Omit<{
6172
- authMethod?: "webauthn" | "otp" | "oauth" | "saml" | "totp" | "magiclink" | "enchantedlink";
6236
+ authMethod?: "webauthn" | "otp" | "oauth" | "sso" | "saml" | "totp" | "magiclink" | "enchantedlink";
6173
6237
  oauthProvider?: string;
6174
6238
  name?: string;
6175
6239
  loginId?: string;
@@ -6205,13 +6269,17 @@ export declare const getGlobalSdk: () => (((({
6205
6269
  create: boolean;
6206
6270
  }>>;
6207
6271
  };
6208
- update: ((identifier: string, token?: string, passkeyOptions?: _1.PasskeyOptions) => Promise<_1.SdkResponse<_1.ResponseData>>) & {
6209
- start: (loginId: string, origin: string, token?: string, passkeyOptions?: _1.PasskeyOptions) => Promise<_1.SdkResponse<{
6272
+ update: ((identifier: string, token?: string, passkeyOptions?: _1.PasskeyOptions) => Promise<_1.SdkResponse<_1.ResponseData> | _1.SdkResponse<{
6273
+ jwt?: _1.JWTResponse;
6274
+ }>>) & {
6275
+ start: (loginId: string, origin: string, token?: string, passkeyOptions?: _1.PasskeyOptions, mfa?: boolean) => Promise<_1.SdkResponse<{
6210
6276
  transactionId: string;
6211
6277
  options: string;
6212
6278
  create: boolean;
6213
6279
  }>>;
6214
- finish: (transactionId: string, response: string) => Promise<_1.SdkResponse<_1.ResponseData>>;
6280
+ finish: (transactionId: string, response: string) => Promise<_1.SdkResponse<{
6281
+ jwt?: _1.JWTResponse;
6282
+ }>>;
6215
6283
  };
6216
6284
  helpers: {
6217
6285
  create: (options: string) => Promise<string>;
@@ -6754,6 +6822,10 @@ export declare const getGlobalSdk: () => (((({
6754
6822
  externalIdentifier?: string;
6755
6823
  }, token?: string) => Promise<_1.SdkResponse<_1.URLResponse>>;
6756
6824
  };
6825
+ sso: {
6826
+ start: (tenantIdOrEmail: string, redirectUrl?: string, loginOptions?: _1.LoginOptions, token?: string, ssoId?: string, forceAuthn?: boolean, loginHint?: string, enforceInitiatedEmail?: boolean) => Promise<_1.SdkResponse<_1.URLResponse>>;
6827
+ exchange: (code: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
6828
+ };
6757
6829
  saml: {
6758
6830
  start: (tenantIdOrEmail: string, redirectUrl?: string, loginOptions?: _1.LoginOptions, token?: string, ssoId?: string, forceAuthn?: boolean, loginHint?: string, enforceInitiatedEmail?: boolean) => Promise<_1.SdkResponse<_1.URLResponse>>;
6759
6831
  exchange: (code: string) => Promise<_1.SdkResponse<_1.JWTResponse>>;
@@ -36,6 +36,8 @@ type WidgetProps = {
36
36
  debug?: boolean;
37
37
  styleId?: string;
38
38
  onReady?: CustomEventCb<{}>;
39
+ form?: Record<string, any>;
40
+ client?: Record<string, any>;
39
41
  };
40
42
  type FlowResponse = Awaited<ReturnType<Sdk['flow']['next']>>;
41
43
  type ErrorResponse = Required<FlowResponse>['error'];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@descope/react-sdk",
3
- "version": "2.29.4",
3
+ "version": "2.30.0",
4
4
  "description": "Descope React SDK",
5
5
  "author": "Descope Team <info@descope.com>",
6
6
  "homepage": "https://github.com/descope/descope-js",
@@ -49,18 +49,18 @@
49
49
  ]
50
50
  },
51
51
  "dependencies": {
52
- "@descope/sdk-helpers": "0.8.0",
53
- "@descope/access-key-management-widget": "0.9.2",
54
- "@descope/audit-management-widget": "0.8.2",
55
- "@descope/role-management-widget": "0.9.2",
56
- "@descope/user-management-widget": "0.14.3",
57
- "@descope/applications-portal-widget": "0.8.2",
58
- "@descope/web-component": "3.69.2",
59
- "@descope/outbound-applications-widget": "0.4.3",
60
- "@descope/user-profile-widget": "0.12.4",
61
- "@descope/web-js-sdk": "1.50.6",
62
- "@descope/core-js-sdk": "2.64.0",
63
- "@descope/tenant-profile-widget": "0.7.3"
52
+ "@descope/sdk-helpers": "0.9.0",
53
+ "@descope/audit-management-widget": "0.8.4",
54
+ "@descope/role-management-widget": "0.9.4",
55
+ "@descope/user-management-widget": "0.15.0",
56
+ "@descope/access-key-management-widget": "0.9.4",
57
+ "@descope/applications-portal-widget": "0.8.4",
58
+ "@descope/user-profile-widget": "0.13.0",
59
+ "@descope/outbound-applications-widget": "0.5.0",
60
+ "@descope/web-component": "3.69.4",
61
+ "@descope/core-js-sdk": "2.66.0",
62
+ "@descope/web-js-sdk": "1.51.1",
63
+ "@descope/tenant-profile-widget": "0.8.0"
64
64
  },
65
65
  "devDependencies": {
66
66
  "@babel/core": "7.26.0",