@descope/vue-sdk 2.9.11 → 2.9.13
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.cjs +1 -1
- package/dist/index.d.ts +216 -0
- package/dist/index.mjs +1 -1
- package/package.json +10 -10
package/dist/index.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("vue"),t=require("@descope/web-component"),r=require("@descope/web-js-sdk");require("@descope/user-management-widget"),require("@descope/role-management-widget"),require("@descope/access-key-management-widget"),require("@descope/audit-management-widget"),require("@descope/user-profile-widget"),require("@descope/applications-portal-widget");const n=Symbol("$descope"),s={"x-descope-sdk-name":"vue","x-descope-sdk-version":"2.9.
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("vue"),t=require("@descope/web-component"),r=require("@descope/web-js-sdk");require("@descope/user-management-widget"),require("@descope/role-management-widget"),require("@descope/access-key-management-widget"),require("@descope/audit-management-widget"),require("@descope/user-profile-widget"),require("@descope/applications-portal-widget");const n=Symbol("$descope"),s={"x-descope-sdk-name":"vue","x-descope-sdk-version":"2.9.13"},o="undefined"!=typeof window,a=()=>{const t=e.inject(n);if(!t)throw Error("Missing Descope context, make sure you are using the Descope plugin");return t},i=()=>a().options,u=()=>a().sdk,d=e=>(...t)=>{let r;try{r=e(...t)}catch(e){console.error(e)}return r};let l;const c=e=>{const t=r({persistTokens:o,storeLastAuthenticatedUser:o,...e,autoRefresh:o});return l=t,t};l=c({projectId:"temp pid"});const p=()=>o?l?.getSessionToken():(console.warn("Get session token is not supported in SSR"),""),g=()=>o?l?.getRefreshToken():(console.warn("Get refresh token is not supported in SSR"),""),m=d(((e=p(),t)=>l?.getJwtPermissions(e,t))),b=d(((e=p(),t)=>l?.getJwtRoles(e,t))),f=d(((e=p())=>l?.getCurrentTenant(e)));var y=e.defineComponent({__name:"Descope",props:{flowId:{type:String,required:!0},tenant:{type:String},theme:{type:String},locale:{type:String},debug:{type:Boolean},telemetryKey:{type:String},redirectUrl:{type:String},autoFocus:{type:Boolean||String},validateOnBlur:{type:Boolean},restartOnError:{type:Boolean},errorTransformer:{type:Function},onScreenUpdate:{type:Function},form:{type:Object},client:{type:Object},styleId:{type:String},nonce:{type:String},dismissScreenErrorOnInput:{type:Boolean}},emits:["success","error","ready"],setup(r,{emit:n}){(customElements?.get("descope-wc")||t).sdkConfigOverrides={baseHeaders:s,persistTokens:!1,hooks:{get beforeRequest(){return l.httpClient.hooks.beforeRequest},set beforeRequest(e){}}};const o=r,a=n,{projectId:d,baseUrl:c,baseStaticUrl:p,storeLastAuthenticatedUser:g,baseCdnUrl:m}=i(),b=u(),f=e.computed((()=>o.form?JSON.stringify(o.form):"")),y=e.computed((()=>o.client?JSON.stringify(o.client):"")),v=async e=>{await(b.httpClient.hooks?.afterRequest?.({},new Response(JSON.stringify(e.detail)))),a("success",e)},h=e=>a("error",e),w=e=>a("ready",e);return(t,n)=>{const s=e.resolveComponent("descope-wc");return e.openBlock(),e.createElementBlock("div",null,[e.createVNode(s,{"project-id":e.unref(d),"base-url":e.unref(c),"base-static-url":e.unref(p),"base-cdn-url":e.unref(m),"flow-id":r.flowId,"^theme":r.theme,"^locale":r.locale,"^tenant":r.tenant,"^debug":r.debug,"^telemetryKey":r.telemetryKey,"redirect-url":r.redirectUrl,"auto-focus":r.autoFocus,"style-id":r.styleId,"validate-on-blur":r.validateOnBlur,"restart-on-error":r.restartOnError,"store-last-authenticated-user":e.unref(g),".errorTransformer":r.errorTransformer,".onScreenUpdate":r.onScreenUpdate,"^form":f.value,"^client":y.value,"^nonce":r.nonce,"^dismiss-screen-error-on-input":r.dismissScreenErrorOnInput,onSuccess:v,onError:h,onReady:w},{default:e.withCtx((()=>[e.renderSlot(t.$slots,"default")])),_:3},40,["project-id","base-url","base-static-url","base-cdn-url","flow-id","^theme","^locale","^tenant","^debug","^telemetryKey","redirect-url","auto-focus","style-id","validate-on-blur","restart-on-error","store-last-authenticated-user",".errorTransformer",".onScreenUpdate","^form","^client","^nonce","^dismiss-screen-error-on-input"])])}}});y.__file="src/Descope.vue";var v=e.defineComponent({__name:"UserManagement",props:{tenant:{type:String,required:!0},widgetId:{type:String,required:!0},theme:{type:String},debug:{type:Boolean}},setup(t){const{projectId:r,baseUrl:n,baseStaticUrl:s,baseCdnUrl:o}=i();return(a,i)=>{const u=e.resolveComponent("descope-user-management-widget");return e.openBlock(),e.createElementBlock("div",null,[e.createVNode(u,{"project-id":e.unref(r),"base-url":e.unref(n),"base-static-url":e.unref(s),"base-cdn-url":e.unref(o),"^theme":t.theme,"^tenant":t.tenant,"^debug":t.debug,"widget-id":t.widgetId},null,8,["project-id","base-url","base-static-url","base-cdn-url","^theme","^tenant","^debug","widget-id"])])}}});v.__file="src/UserManagement.vue";var h=e.defineComponent({__name:"RoleManagement",props:{tenant:{type:String,required:!0},widgetId:{type:String,required:!0},theme:{type:String},debug:{type:Boolean}},setup(t){const{projectId:r,baseUrl:n,baseStaticUrl:s,baseCdnUrl:o}=i();return(a,i)=>{const u=e.resolveComponent("descope-role-management-widget");return e.openBlock(),e.createElementBlock("div",null,[e.createVNode(u,{"project-id":e.unref(r),"base-url":e.unref(n),"base-cdn-url":e.unref(o),"base-static-url":e.unref(s),"^theme":t.theme,"^tenant":t.tenant,"^debug":t.debug,"widget-id":t.widgetId},null,8,["project-id","base-url","base-cdn-url","base-static-url","^theme","^tenant","^debug","widget-id"])])}}});h.__file="src/RoleManagement.vue";var w=e.defineComponent({__name:"AccessKeyManagement",props:{tenant:{type:String,required:!0},widgetId:{type:String,required:!0},theme:{type:String},styleId:{type:String},debug:{type:Boolean}},setup(t){const{projectId:r,baseUrl:n,baseStaticUrl:s,baseCdnUrl:o}=i();return(a,i)=>{const u=e.resolveComponent("descope-access-key-management-widget");return e.openBlock(),e.createElementBlock("div",null,[e.createVNode(u,{"project-id":e.unref(r),"base-url":e.unref(n),"base-static-url":e.unref(s),"base-cdn-url":e.unref(o),"^theme":t.theme,"^tenant":t.tenant,"^debug":t.debug,"widget-id":t.widgetId,"style-id":t.styleId},null,8,["project-id","base-url","base-static-url","base-cdn-url","^theme","^tenant","^debug","widget-id","style-id"])])}}});w.__file="src/AccessKeyManagement.vue";var S=e.defineComponent({__name:"AuditManagement",props:{tenant:{type:String,required:!0},widgetId:{type:String,required:!0},theme:{type:String},styleId:{type:String},debug:{type:Boolean}},setup(t){const{projectId:r,baseUrl:n,baseStaticUrl:s,baseCdnUrl:o}=i();return(a,i)=>{const u=e.resolveComponent("descope-audit-management-widget");return e.openBlock(),e.createElementBlock("div",null,[e.createVNode(u,{"project-id":e.unref(r),"base-url":e.unref(n),"base-static-url":e.unref(s),"base-cdn-url":e.unref(o),"^theme":t.theme,"^tenant":t.tenant,"^debug":t.debug,"widget-id":t.widgetId,"style-id":t.styleId},null,8,["project-id","base-url","base-static-url","base-cdn-url","^theme","^tenant","^debug","widget-id","style-id"])])}}});S.__file="src/AuditManagement.vue";var U=e.defineComponent({__name:"UserProfile",props:{widgetId:{type:String,required:!0},theme:{type:String},debug:{type:Boolean}},emits:["logout"],setup(t,{emit:r}){const s=e.inject(n),o=r,a=e=>{s?.resetAuth(),o("logout",e)},{projectId:u,baseUrl:d,baseStaticUrl:l,baseCdnUrl:c}=i();return(r,n)=>{const s=e.resolveComponent("descope-user-profile-widget");return e.openBlock(),e.createElementBlock("div",null,[e.createVNode(s,{"project-id":e.unref(u),"base-url":e.unref(d),"base-static-url":e.unref(l),"base-cdn-url":e.unref(c),"^theme":t.theme,"^debug":t.debug,"widget-id":t.widgetId,onLogout:a},null,8,["project-id","base-url","base-static-url","base-cdn-url","^theme","^debug","widget-id"])])}}});U.__file="src/UserProfile.vue";var k=e.defineComponent({__name:"ApplicationsPortal",props:{widgetId:{type:String,required:!0},theme:{type:String},styleId:{type:String},debug:{type:Boolean}},setup(t){const{projectId:r,baseUrl:n,baseStaticUrl:s,baseCdnUrl:o}=i();return(a,i)=>{const u=e.resolveComponent("descope-applications-portal-widget");return e.openBlock(),e.createElementBlock("div",null,[e.createVNode(u,{"project-id":e.unref(r),"base-url":e.unref(n),"base-static-url":e.unref(s),"base-cdn-url":e.unref(o),"^theme":t.theme,"^debug":t.debug,"widget-id":t.widgetId,"style-id":t.styleId},null,8,["project-id","base-url","base-static-url","base-cdn-url","^theme","^debug","widget-id","style-id"])])}}});k.__file="src/ApplicationsPortal.vue";const C=e.ref(null);let I;var _={install:function(t,r){const o=c({persistTokens:!0,...r,autoRefresh:!0,baseHeaders:s});I=o;const a=e.ref(null),i=e.ref(""),u=e.ref(!1),d=e.ref(null),l=e.ref(null);o.onSessionTokenChange((e=>{i.value=e})),o.onIsAuthenticatedChange((e=>{u.value=e})),o.onUserChange((e=>{l.value=e}));const p=async()=>{a.value=!0,await o.refresh(),a.value=!1},g=e.computed((()=>null===a.value)),m=e.computed((()=>null===d.value));C.value=()=>new Promise(((t,r)=>{!u.value&&g.value&&p().catch(r),e.watch((()=>a.value),(()=>!a.value&&t(!!e.unref(u))),{immediate:!0})})),t.provide(n,{session:{fetchSession:p,isLoading:e.readonly(a),session:e.readonly(i),isAuthenticated:e.readonly(u),isFetchSessionWasNeverCalled:g},user:{fetchUser:async()=>{d.value=!0,await o.me(),d.value=!1},isLoading:e.readonly(d),user:e.readonly(l),isFetchUserWasNeverCalled:m},sdk:o,options:r,resetAuth:function(){i.value="",u.value=!1,l.value=null}})}};exports.AccessKeyManagement=w,exports.ApplicationsPortal=k,exports.AuditManagement=S,exports.Descope=y,exports.RoleManagement=h,exports.UserManagement=v,exports.UserProfile=U,exports.default=_,exports.getCurrentTenant=f,exports.getJwtPermissions=m,exports.getJwtRoles=b,exports.getRefreshToken=g,exports.getSdk=()=>I,exports.getSessionToken=p,exports.isRefreshTokenExpired=(e=g())=>l?.isJwtExpired(e),exports.isSessionTokenExpired=(e=p())=>l?.isJwtExpired(e),exports.routeGuard=()=>e.unref(C)?.(),exports.useDescope=u,exports.useSession=()=>{const{session:t}=a();return t.isFetchSessionWasNeverCalled.value&&t.fetchSession(),{isLoading:e.computed((()=>t.isLoading.value||t.isFetchSessionWasNeverCalled.value)),sessionToken:t.session,isAuthenticated:t.isAuthenticated}},exports.useUser=()=>{const{user:t,session:r}=a(),n=()=>{!t.user.value&&r.session.value&&t.fetchUser()};return n(),e.watch(r.session,n),{isLoading:e.computed((()=>t.isLoading.value||t.isFetchUserWasNeverCalled.value)),user:t.user}};
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
package/dist/index.d.ts
CHANGED
|
@@ -594,6 +594,8 @@ declare const useDescope: () => ((({
|
|
|
594
594
|
templateOptions?: {
|
|
595
595
|
[x: string]: string;
|
|
596
596
|
};
|
|
597
|
+
templateId?: string;
|
|
598
|
+
providerId?: string;
|
|
597
599
|
}) => Promise<_descope_core_js_sdk.SdkResponse<{
|
|
598
600
|
maskedEmail: string;
|
|
599
601
|
}>>;
|
|
@@ -604,6 +606,8 @@ declare const useDescope: () => ((({
|
|
|
604
606
|
templateOptions?: {
|
|
605
607
|
[x: string]: string;
|
|
606
608
|
};
|
|
609
|
+
templateId?: string;
|
|
610
|
+
providerId?: string;
|
|
607
611
|
}) => Promise<_descope_core_js_sdk.SdkResponse<{
|
|
608
612
|
maskedPhone: string;
|
|
609
613
|
}>>;
|
|
@@ -613,6 +617,8 @@ declare const useDescope: () => ((({
|
|
|
613
617
|
templateOptions?: {
|
|
614
618
|
[x: string]: string;
|
|
615
619
|
};
|
|
620
|
+
templateId?: string;
|
|
621
|
+
providerId?: string;
|
|
616
622
|
}) => Promise<_descope_core_js_sdk.SdkResponse<{
|
|
617
623
|
maskedPhone: string;
|
|
618
624
|
}>>;
|
|
@@ -622,6 +628,8 @@ declare const useDescope: () => ((({
|
|
|
622
628
|
templateOptions?: {
|
|
623
629
|
[x: string]: string;
|
|
624
630
|
};
|
|
631
|
+
templateId?: string;
|
|
632
|
+
providerId?: string;
|
|
625
633
|
}) => Promise<_descope_core_js_sdk.SdkResponse<{
|
|
626
634
|
maskedPhone: string;
|
|
627
635
|
}>>;
|
|
@@ -755,6 +763,8 @@ declare const useDescope: () => ((({
|
|
|
755
763
|
templateOptions?: {
|
|
756
764
|
[x: string]: string;
|
|
757
765
|
};
|
|
766
|
+
templateId?: string;
|
|
767
|
+
providerId?: string;
|
|
758
768
|
}) => Promise<_descope_core_js_sdk.SdkResponse<{
|
|
759
769
|
maskedEmail: string;
|
|
760
770
|
}>>;
|
|
@@ -765,6 +775,8 @@ declare const useDescope: () => ((({
|
|
|
765
775
|
templateOptions?: {
|
|
766
776
|
[x: string]: string;
|
|
767
777
|
};
|
|
778
|
+
templateId?: string;
|
|
779
|
+
providerId?: string;
|
|
768
780
|
}) => Promise<_descope_core_js_sdk.SdkResponse<{
|
|
769
781
|
maskedPhone: string;
|
|
770
782
|
}>>;
|
|
@@ -774,6 +786,8 @@ declare const useDescope: () => ((({
|
|
|
774
786
|
templateOptions?: {
|
|
775
787
|
[x: string]: string;
|
|
776
788
|
};
|
|
789
|
+
templateId?: string;
|
|
790
|
+
providerId?: string;
|
|
777
791
|
}) => Promise<_descope_core_js_sdk.SdkResponse<{
|
|
778
792
|
maskedPhone: string;
|
|
779
793
|
}>>;
|
|
@@ -783,6 +797,8 @@ declare const useDescope: () => ((({
|
|
|
783
797
|
templateOptions?: {
|
|
784
798
|
[x: string]: string;
|
|
785
799
|
};
|
|
800
|
+
templateId?: string;
|
|
801
|
+
providerId?: string;
|
|
786
802
|
}) => Promise<_descope_core_js_sdk.SdkResponse<{
|
|
787
803
|
maskedPhone: string;
|
|
788
804
|
}>>;
|
|
@@ -824,6 +840,8 @@ declare const useDescope: () => ((({
|
|
|
824
840
|
templateOptions?: {
|
|
825
841
|
[x: string]: string;
|
|
826
842
|
};
|
|
843
|
+
templateId?: string;
|
|
844
|
+
providerId?: string;
|
|
827
845
|
}) => Promise<_descope_core_js_sdk.SdkResponse<_descope_core_js_sdk.EnchantedLinkResponse>>;
|
|
828
846
|
};
|
|
829
847
|
};
|
|
@@ -1247,6 +1265,8 @@ declare const useDescope: () => ((({
|
|
|
1247
1265
|
templateOptions?: {
|
|
1248
1266
|
[x: string]: string;
|
|
1249
1267
|
};
|
|
1268
|
+
templateId?: string;
|
|
1269
|
+
providerId?: string;
|
|
1250
1270
|
}) => Promise<_descope_core_js_sdk.SdkResponse<{
|
|
1251
1271
|
maskedEmail: string;
|
|
1252
1272
|
}>>;
|
|
@@ -1257,6 +1277,8 @@ declare const useDescope: () => ((({
|
|
|
1257
1277
|
templateOptions?: {
|
|
1258
1278
|
[x: string]: string;
|
|
1259
1279
|
};
|
|
1280
|
+
templateId?: string;
|
|
1281
|
+
providerId?: string;
|
|
1260
1282
|
}) => Promise<_descope_core_js_sdk.SdkResponse<{
|
|
1261
1283
|
maskedPhone: string;
|
|
1262
1284
|
}>>;
|
|
@@ -1266,6 +1288,8 @@ declare const useDescope: () => ((({
|
|
|
1266
1288
|
templateOptions?: {
|
|
1267
1289
|
[x: string]: string;
|
|
1268
1290
|
};
|
|
1291
|
+
templateId?: string;
|
|
1292
|
+
providerId?: string;
|
|
1269
1293
|
}) => Promise<_descope_core_js_sdk.SdkResponse<{
|
|
1270
1294
|
maskedPhone: string;
|
|
1271
1295
|
}>>;
|
|
@@ -1275,6 +1299,8 @@ declare const useDescope: () => ((({
|
|
|
1275
1299
|
templateOptions?: {
|
|
1276
1300
|
[x: string]: string;
|
|
1277
1301
|
};
|
|
1302
|
+
templateId?: string;
|
|
1303
|
+
providerId?: string;
|
|
1278
1304
|
}) => Promise<_descope_core_js_sdk.SdkResponse<{
|
|
1279
1305
|
maskedPhone: string;
|
|
1280
1306
|
}>>;
|
|
@@ -1408,6 +1434,8 @@ declare const useDescope: () => ((({
|
|
|
1408
1434
|
templateOptions?: {
|
|
1409
1435
|
[x: string]: string;
|
|
1410
1436
|
};
|
|
1437
|
+
templateId?: string;
|
|
1438
|
+
providerId?: string;
|
|
1411
1439
|
}) => Promise<_descope_core_js_sdk.SdkResponse<{
|
|
1412
1440
|
maskedEmail: string;
|
|
1413
1441
|
}>>;
|
|
@@ -1418,6 +1446,8 @@ declare const useDescope: () => ((({
|
|
|
1418
1446
|
templateOptions?: {
|
|
1419
1447
|
[x: string]: string;
|
|
1420
1448
|
};
|
|
1449
|
+
templateId?: string;
|
|
1450
|
+
providerId?: string;
|
|
1421
1451
|
}) => Promise<_descope_core_js_sdk.SdkResponse<{
|
|
1422
1452
|
maskedPhone: string;
|
|
1423
1453
|
}>>;
|
|
@@ -1427,6 +1457,8 @@ declare const useDescope: () => ((({
|
|
|
1427
1457
|
templateOptions?: {
|
|
1428
1458
|
[x: string]: string;
|
|
1429
1459
|
};
|
|
1460
|
+
templateId?: string;
|
|
1461
|
+
providerId?: string;
|
|
1430
1462
|
}) => Promise<_descope_core_js_sdk.SdkResponse<{
|
|
1431
1463
|
maskedPhone: string;
|
|
1432
1464
|
}>>;
|
|
@@ -1436,6 +1468,8 @@ declare const useDescope: () => ((({
|
|
|
1436
1468
|
templateOptions?: {
|
|
1437
1469
|
[x: string]: string;
|
|
1438
1470
|
};
|
|
1471
|
+
templateId?: string;
|
|
1472
|
+
providerId?: string;
|
|
1439
1473
|
}) => Promise<_descope_core_js_sdk.SdkResponse<{
|
|
1440
1474
|
maskedPhone: string;
|
|
1441
1475
|
}>>;
|
|
@@ -1477,6 +1511,8 @@ declare const useDescope: () => ((({
|
|
|
1477
1511
|
templateOptions?: {
|
|
1478
1512
|
[x: string]: string;
|
|
1479
1513
|
};
|
|
1514
|
+
templateId?: string;
|
|
1515
|
+
providerId?: string;
|
|
1480
1516
|
}) => Promise<_descope_core_js_sdk.SdkResponse<_descope_core_js_sdk.EnchantedLinkResponse>>;
|
|
1481
1517
|
};
|
|
1482
1518
|
};
|
|
@@ -1900,6 +1936,8 @@ declare const useDescope: () => ((({
|
|
|
1900
1936
|
templateOptions?: {
|
|
1901
1937
|
[x: string]: string;
|
|
1902
1938
|
};
|
|
1939
|
+
templateId?: string;
|
|
1940
|
+
providerId?: string;
|
|
1903
1941
|
}) => Promise<_descope_core_js_sdk.SdkResponse<{
|
|
1904
1942
|
maskedEmail: string;
|
|
1905
1943
|
}>>;
|
|
@@ -1910,6 +1948,8 @@ declare const useDescope: () => ((({
|
|
|
1910
1948
|
templateOptions?: {
|
|
1911
1949
|
[x: string]: string;
|
|
1912
1950
|
};
|
|
1951
|
+
templateId?: string;
|
|
1952
|
+
providerId?: string;
|
|
1913
1953
|
}) => Promise<_descope_core_js_sdk.SdkResponse<{
|
|
1914
1954
|
maskedPhone: string;
|
|
1915
1955
|
}>>;
|
|
@@ -1919,6 +1959,8 @@ declare const useDescope: () => ((({
|
|
|
1919
1959
|
templateOptions?: {
|
|
1920
1960
|
[x: string]: string;
|
|
1921
1961
|
};
|
|
1962
|
+
templateId?: string;
|
|
1963
|
+
providerId?: string;
|
|
1922
1964
|
}) => Promise<_descope_core_js_sdk.SdkResponse<{
|
|
1923
1965
|
maskedPhone: string;
|
|
1924
1966
|
}>>;
|
|
@@ -1928,6 +1970,8 @@ declare const useDescope: () => ((({
|
|
|
1928
1970
|
templateOptions?: {
|
|
1929
1971
|
[x: string]: string;
|
|
1930
1972
|
};
|
|
1973
|
+
templateId?: string;
|
|
1974
|
+
providerId?: string;
|
|
1931
1975
|
}) => Promise<_descope_core_js_sdk.SdkResponse<{
|
|
1932
1976
|
maskedPhone: string;
|
|
1933
1977
|
}>>;
|
|
@@ -2061,6 +2105,8 @@ declare const useDescope: () => ((({
|
|
|
2061
2105
|
templateOptions?: {
|
|
2062
2106
|
[x: string]: string;
|
|
2063
2107
|
};
|
|
2108
|
+
templateId?: string;
|
|
2109
|
+
providerId?: string;
|
|
2064
2110
|
}) => Promise<_descope_core_js_sdk.SdkResponse<{
|
|
2065
2111
|
maskedEmail: string;
|
|
2066
2112
|
}>>;
|
|
@@ -2071,6 +2117,8 @@ declare const useDescope: () => ((({
|
|
|
2071
2117
|
templateOptions?: {
|
|
2072
2118
|
[x: string]: string;
|
|
2073
2119
|
};
|
|
2120
|
+
templateId?: string;
|
|
2121
|
+
providerId?: string;
|
|
2074
2122
|
}) => Promise<_descope_core_js_sdk.SdkResponse<{
|
|
2075
2123
|
maskedPhone: string;
|
|
2076
2124
|
}>>;
|
|
@@ -2080,6 +2128,8 @@ declare const useDescope: () => ((({
|
|
|
2080
2128
|
templateOptions?: {
|
|
2081
2129
|
[x: string]: string;
|
|
2082
2130
|
};
|
|
2131
|
+
templateId?: string;
|
|
2132
|
+
providerId?: string;
|
|
2083
2133
|
}) => Promise<_descope_core_js_sdk.SdkResponse<{
|
|
2084
2134
|
maskedPhone: string;
|
|
2085
2135
|
}>>;
|
|
@@ -2089,6 +2139,8 @@ declare const useDescope: () => ((({
|
|
|
2089
2139
|
templateOptions?: {
|
|
2090
2140
|
[x: string]: string;
|
|
2091
2141
|
};
|
|
2142
|
+
templateId?: string;
|
|
2143
|
+
providerId?: string;
|
|
2092
2144
|
}) => Promise<_descope_core_js_sdk.SdkResponse<{
|
|
2093
2145
|
maskedPhone: string;
|
|
2094
2146
|
}>>;
|
|
@@ -2130,6 +2182,8 @@ declare const useDescope: () => ((({
|
|
|
2130
2182
|
templateOptions?: {
|
|
2131
2183
|
[x: string]: string;
|
|
2132
2184
|
};
|
|
2185
|
+
templateId?: string;
|
|
2186
|
+
providerId?: string;
|
|
2133
2187
|
}) => Promise<_descope_core_js_sdk.SdkResponse<_descope_core_js_sdk.EnchantedLinkResponse>>;
|
|
2134
2188
|
};
|
|
2135
2189
|
};
|
|
@@ -2560,6 +2614,8 @@ declare const useDescope: () => ((({
|
|
|
2560
2614
|
templateOptions?: {
|
|
2561
2615
|
[x: string]: string;
|
|
2562
2616
|
};
|
|
2617
|
+
templateId?: string;
|
|
2618
|
+
providerId?: string;
|
|
2563
2619
|
}) => Promise<_descope_core_js_sdk.SdkResponse<{
|
|
2564
2620
|
maskedEmail: string;
|
|
2565
2621
|
}>>;
|
|
@@ -2570,6 +2626,8 @@ declare const useDescope: () => ((({
|
|
|
2570
2626
|
templateOptions?: {
|
|
2571
2627
|
[x: string]: string;
|
|
2572
2628
|
};
|
|
2629
|
+
templateId?: string;
|
|
2630
|
+
providerId?: string;
|
|
2573
2631
|
}) => Promise<_descope_core_js_sdk.SdkResponse<{
|
|
2574
2632
|
maskedPhone: string;
|
|
2575
2633
|
}>>;
|
|
@@ -2579,6 +2637,8 @@ declare const useDescope: () => ((({
|
|
|
2579
2637
|
templateOptions?: {
|
|
2580
2638
|
[x: string]: string;
|
|
2581
2639
|
};
|
|
2640
|
+
templateId?: string;
|
|
2641
|
+
providerId?: string;
|
|
2582
2642
|
}) => Promise<_descope_core_js_sdk.SdkResponse<{
|
|
2583
2643
|
maskedPhone: string;
|
|
2584
2644
|
}>>;
|
|
@@ -2588,6 +2648,8 @@ declare const useDescope: () => ((({
|
|
|
2588
2648
|
templateOptions?: {
|
|
2589
2649
|
[x: string]: string;
|
|
2590
2650
|
};
|
|
2651
|
+
templateId?: string;
|
|
2652
|
+
providerId?: string;
|
|
2591
2653
|
}) => Promise<_descope_core_js_sdk.SdkResponse<{
|
|
2592
2654
|
maskedPhone: string;
|
|
2593
2655
|
}>>;
|
|
@@ -2721,6 +2783,8 @@ declare const useDescope: () => ((({
|
|
|
2721
2783
|
templateOptions?: {
|
|
2722
2784
|
[x: string]: string;
|
|
2723
2785
|
};
|
|
2786
|
+
templateId?: string;
|
|
2787
|
+
providerId?: string;
|
|
2724
2788
|
}) => Promise<_descope_core_js_sdk.SdkResponse<{
|
|
2725
2789
|
maskedEmail: string;
|
|
2726
2790
|
}>>;
|
|
@@ -2731,6 +2795,8 @@ declare const useDescope: () => ((({
|
|
|
2731
2795
|
templateOptions?: {
|
|
2732
2796
|
[x: string]: string;
|
|
2733
2797
|
};
|
|
2798
|
+
templateId?: string;
|
|
2799
|
+
providerId?: string;
|
|
2734
2800
|
}) => Promise<_descope_core_js_sdk.SdkResponse<{
|
|
2735
2801
|
maskedPhone: string;
|
|
2736
2802
|
}>>;
|
|
@@ -2740,6 +2806,8 @@ declare const useDescope: () => ((({
|
|
|
2740
2806
|
templateOptions?: {
|
|
2741
2807
|
[x: string]: string;
|
|
2742
2808
|
};
|
|
2809
|
+
templateId?: string;
|
|
2810
|
+
providerId?: string;
|
|
2743
2811
|
}) => Promise<_descope_core_js_sdk.SdkResponse<{
|
|
2744
2812
|
maskedPhone: string;
|
|
2745
2813
|
}>>;
|
|
@@ -2749,6 +2817,8 @@ declare const useDescope: () => ((({
|
|
|
2749
2817
|
templateOptions?: {
|
|
2750
2818
|
[x: string]: string;
|
|
2751
2819
|
};
|
|
2820
|
+
templateId?: string;
|
|
2821
|
+
providerId?: string;
|
|
2752
2822
|
}) => Promise<_descope_core_js_sdk.SdkResponse<{
|
|
2753
2823
|
maskedPhone: string;
|
|
2754
2824
|
}>>;
|
|
@@ -2790,6 +2860,8 @@ declare const useDescope: () => ((({
|
|
|
2790
2860
|
templateOptions?: {
|
|
2791
2861
|
[x: string]: string;
|
|
2792
2862
|
};
|
|
2863
|
+
templateId?: string;
|
|
2864
|
+
providerId?: string;
|
|
2793
2865
|
}) => Promise<_descope_core_js_sdk.SdkResponse<_descope_core_js_sdk.EnchantedLinkResponse>>;
|
|
2794
2866
|
};
|
|
2795
2867
|
};
|
|
@@ -3213,6 +3285,8 @@ declare const useDescope: () => ((({
|
|
|
3213
3285
|
templateOptions?: {
|
|
3214
3286
|
[x: string]: string;
|
|
3215
3287
|
};
|
|
3288
|
+
templateId?: string;
|
|
3289
|
+
providerId?: string;
|
|
3216
3290
|
}) => Promise<_descope_core_js_sdk.SdkResponse<{
|
|
3217
3291
|
maskedEmail: string;
|
|
3218
3292
|
}>>;
|
|
@@ -3223,6 +3297,8 @@ declare const useDescope: () => ((({
|
|
|
3223
3297
|
templateOptions?: {
|
|
3224
3298
|
[x: string]: string;
|
|
3225
3299
|
};
|
|
3300
|
+
templateId?: string;
|
|
3301
|
+
providerId?: string;
|
|
3226
3302
|
}) => Promise<_descope_core_js_sdk.SdkResponse<{
|
|
3227
3303
|
maskedPhone: string;
|
|
3228
3304
|
}>>;
|
|
@@ -3232,6 +3308,8 @@ declare const useDescope: () => ((({
|
|
|
3232
3308
|
templateOptions?: {
|
|
3233
3309
|
[x: string]: string;
|
|
3234
3310
|
};
|
|
3311
|
+
templateId?: string;
|
|
3312
|
+
providerId?: string;
|
|
3235
3313
|
}) => Promise<_descope_core_js_sdk.SdkResponse<{
|
|
3236
3314
|
maskedPhone: string;
|
|
3237
3315
|
}>>;
|
|
@@ -3241,6 +3319,8 @@ declare const useDescope: () => ((({
|
|
|
3241
3319
|
templateOptions?: {
|
|
3242
3320
|
[x: string]: string;
|
|
3243
3321
|
};
|
|
3322
|
+
templateId?: string;
|
|
3323
|
+
providerId?: string;
|
|
3244
3324
|
}) => Promise<_descope_core_js_sdk.SdkResponse<{
|
|
3245
3325
|
maskedPhone: string;
|
|
3246
3326
|
}>>;
|
|
@@ -3374,6 +3454,8 @@ declare const useDescope: () => ((({
|
|
|
3374
3454
|
templateOptions?: {
|
|
3375
3455
|
[x: string]: string;
|
|
3376
3456
|
};
|
|
3457
|
+
templateId?: string;
|
|
3458
|
+
providerId?: string;
|
|
3377
3459
|
}) => Promise<_descope_core_js_sdk.SdkResponse<{
|
|
3378
3460
|
maskedEmail: string;
|
|
3379
3461
|
}>>;
|
|
@@ -3384,6 +3466,8 @@ declare const useDescope: () => ((({
|
|
|
3384
3466
|
templateOptions?: {
|
|
3385
3467
|
[x: string]: string;
|
|
3386
3468
|
};
|
|
3469
|
+
templateId?: string;
|
|
3470
|
+
providerId?: string;
|
|
3387
3471
|
}) => Promise<_descope_core_js_sdk.SdkResponse<{
|
|
3388
3472
|
maskedPhone: string;
|
|
3389
3473
|
}>>;
|
|
@@ -3393,6 +3477,8 @@ declare const useDescope: () => ((({
|
|
|
3393
3477
|
templateOptions?: {
|
|
3394
3478
|
[x: string]: string;
|
|
3395
3479
|
};
|
|
3480
|
+
templateId?: string;
|
|
3481
|
+
providerId?: string;
|
|
3396
3482
|
}) => Promise<_descope_core_js_sdk.SdkResponse<{
|
|
3397
3483
|
maskedPhone: string;
|
|
3398
3484
|
}>>;
|
|
@@ -3402,6 +3488,8 @@ declare const useDescope: () => ((({
|
|
|
3402
3488
|
templateOptions?: {
|
|
3403
3489
|
[x: string]: string;
|
|
3404
3490
|
};
|
|
3491
|
+
templateId?: string;
|
|
3492
|
+
providerId?: string;
|
|
3405
3493
|
}) => Promise<_descope_core_js_sdk.SdkResponse<{
|
|
3406
3494
|
maskedPhone: string;
|
|
3407
3495
|
}>>;
|
|
@@ -3443,6 +3531,8 @@ declare const useDescope: () => ((({
|
|
|
3443
3531
|
templateOptions?: {
|
|
3444
3532
|
[x: string]: string;
|
|
3445
3533
|
};
|
|
3534
|
+
templateId?: string;
|
|
3535
|
+
providerId?: string;
|
|
3446
3536
|
}) => Promise<_descope_core_js_sdk.SdkResponse<_descope_core_js_sdk.EnchantedLinkResponse>>;
|
|
3447
3537
|
};
|
|
3448
3538
|
};
|
|
@@ -3866,6 +3956,8 @@ declare const useDescope: () => ((({
|
|
|
3866
3956
|
templateOptions?: {
|
|
3867
3957
|
[x: string]: string;
|
|
3868
3958
|
};
|
|
3959
|
+
templateId?: string;
|
|
3960
|
+
providerId?: string;
|
|
3869
3961
|
}) => Promise<_descope_core_js_sdk.SdkResponse<{
|
|
3870
3962
|
maskedEmail: string;
|
|
3871
3963
|
}>>;
|
|
@@ -3876,6 +3968,8 @@ declare const useDescope: () => ((({
|
|
|
3876
3968
|
templateOptions?: {
|
|
3877
3969
|
[x: string]: string;
|
|
3878
3970
|
};
|
|
3971
|
+
templateId?: string;
|
|
3972
|
+
providerId?: string;
|
|
3879
3973
|
}) => Promise<_descope_core_js_sdk.SdkResponse<{
|
|
3880
3974
|
maskedPhone: string;
|
|
3881
3975
|
}>>;
|
|
@@ -3885,6 +3979,8 @@ declare const useDescope: () => ((({
|
|
|
3885
3979
|
templateOptions?: {
|
|
3886
3980
|
[x: string]: string;
|
|
3887
3981
|
};
|
|
3982
|
+
templateId?: string;
|
|
3983
|
+
providerId?: string;
|
|
3888
3984
|
}) => Promise<_descope_core_js_sdk.SdkResponse<{
|
|
3889
3985
|
maskedPhone: string;
|
|
3890
3986
|
}>>;
|
|
@@ -3894,6 +3990,8 @@ declare const useDescope: () => ((({
|
|
|
3894
3990
|
templateOptions?: {
|
|
3895
3991
|
[x: string]: string;
|
|
3896
3992
|
};
|
|
3993
|
+
templateId?: string;
|
|
3994
|
+
providerId?: string;
|
|
3897
3995
|
}) => Promise<_descope_core_js_sdk.SdkResponse<{
|
|
3898
3996
|
maskedPhone: string;
|
|
3899
3997
|
}>>;
|
|
@@ -4027,6 +4125,8 @@ declare const useDescope: () => ((({
|
|
|
4027
4125
|
templateOptions?: {
|
|
4028
4126
|
[x: string]: string;
|
|
4029
4127
|
};
|
|
4128
|
+
templateId?: string;
|
|
4129
|
+
providerId?: string;
|
|
4030
4130
|
}) => Promise<_descope_core_js_sdk.SdkResponse<{
|
|
4031
4131
|
maskedEmail: string;
|
|
4032
4132
|
}>>;
|
|
@@ -4037,6 +4137,8 @@ declare const useDescope: () => ((({
|
|
|
4037
4137
|
templateOptions?: {
|
|
4038
4138
|
[x: string]: string;
|
|
4039
4139
|
};
|
|
4140
|
+
templateId?: string;
|
|
4141
|
+
providerId?: string;
|
|
4040
4142
|
}) => Promise<_descope_core_js_sdk.SdkResponse<{
|
|
4041
4143
|
maskedPhone: string;
|
|
4042
4144
|
}>>;
|
|
@@ -4046,6 +4148,8 @@ declare const useDescope: () => ((({
|
|
|
4046
4148
|
templateOptions?: {
|
|
4047
4149
|
[x: string]: string;
|
|
4048
4150
|
};
|
|
4151
|
+
templateId?: string;
|
|
4152
|
+
providerId?: string;
|
|
4049
4153
|
}) => Promise<_descope_core_js_sdk.SdkResponse<{
|
|
4050
4154
|
maskedPhone: string;
|
|
4051
4155
|
}>>;
|
|
@@ -4055,6 +4159,8 @@ declare const useDescope: () => ((({
|
|
|
4055
4159
|
templateOptions?: {
|
|
4056
4160
|
[x: string]: string;
|
|
4057
4161
|
};
|
|
4162
|
+
templateId?: string;
|
|
4163
|
+
providerId?: string;
|
|
4058
4164
|
}) => Promise<_descope_core_js_sdk.SdkResponse<{
|
|
4059
4165
|
maskedPhone: string;
|
|
4060
4166
|
}>>;
|
|
@@ -4096,6 +4202,8 @@ declare const useDescope: () => ((({
|
|
|
4096
4202
|
templateOptions?: {
|
|
4097
4203
|
[x: string]: string;
|
|
4098
4204
|
};
|
|
4205
|
+
templateId?: string;
|
|
4206
|
+
providerId?: string;
|
|
4099
4207
|
}) => Promise<_descope_core_js_sdk.SdkResponse<_descope_core_js_sdk.EnchantedLinkResponse>>;
|
|
4100
4208
|
};
|
|
4101
4209
|
};
|
|
@@ -4547,6 +4655,8 @@ declare const getSdk: () => ((({
|
|
|
4547
4655
|
templateOptions?: {
|
|
4548
4656
|
[x: string]: string;
|
|
4549
4657
|
};
|
|
4658
|
+
templateId?: string;
|
|
4659
|
+
providerId?: string;
|
|
4550
4660
|
}) => Promise<_descope_core_js_sdk.SdkResponse<{
|
|
4551
4661
|
maskedEmail: string;
|
|
4552
4662
|
}>>;
|
|
@@ -4557,6 +4667,8 @@ declare const getSdk: () => ((({
|
|
|
4557
4667
|
templateOptions?: {
|
|
4558
4668
|
[x: string]: string;
|
|
4559
4669
|
};
|
|
4670
|
+
templateId?: string;
|
|
4671
|
+
providerId?: string;
|
|
4560
4672
|
}) => Promise<_descope_core_js_sdk.SdkResponse<{
|
|
4561
4673
|
maskedPhone: string;
|
|
4562
4674
|
}>>;
|
|
@@ -4566,6 +4678,8 @@ declare const getSdk: () => ((({
|
|
|
4566
4678
|
templateOptions?: {
|
|
4567
4679
|
[x: string]: string;
|
|
4568
4680
|
};
|
|
4681
|
+
templateId?: string;
|
|
4682
|
+
providerId?: string;
|
|
4569
4683
|
}) => Promise<_descope_core_js_sdk.SdkResponse<{
|
|
4570
4684
|
maskedPhone: string;
|
|
4571
4685
|
}>>;
|
|
@@ -4575,6 +4689,8 @@ declare const getSdk: () => ((({
|
|
|
4575
4689
|
templateOptions?: {
|
|
4576
4690
|
[x: string]: string;
|
|
4577
4691
|
};
|
|
4692
|
+
templateId?: string;
|
|
4693
|
+
providerId?: string;
|
|
4578
4694
|
}) => Promise<_descope_core_js_sdk.SdkResponse<{
|
|
4579
4695
|
maskedPhone: string;
|
|
4580
4696
|
}>>;
|
|
@@ -4708,6 +4824,8 @@ declare const getSdk: () => ((({
|
|
|
4708
4824
|
templateOptions?: {
|
|
4709
4825
|
[x: string]: string;
|
|
4710
4826
|
};
|
|
4827
|
+
templateId?: string;
|
|
4828
|
+
providerId?: string;
|
|
4711
4829
|
}) => Promise<_descope_core_js_sdk.SdkResponse<{
|
|
4712
4830
|
maskedEmail: string;
|
|
4713
4831
|
}>>;
|
|
@@ -4718,6 +4836,8 @@ declare const getSdk: () => ((({
|
|
|
4718
4836
|
templateOptions?: {
|
|
4719
4837
|
[x: string]: string;
|
|
4720
4838
|
};
|
|
4839
|
+
templateId?: string;
|
|
4840
|
+
providerId?: string;
|
|
4721
4841
|
}) => Promise<_descope_core_js_sdk.SdkResponse<{
|
|
4722
4842
|
maskedPhone: string;
|
|
4723
4843
|
}>>;
|
|
@@ -4727,6 +4847,8 @@ declare const getSdk: () => ((({
|
|
|
4727
4847
|
templateOptions?: {
|
|
4728
4848
|
[x: string]: string;
|
|
4729
4849
|
};
|
|
4850
|
+
templateId?: string;
|
|
4851
|
+
providerId?: string;
|
|
4730
4852
|
}) => Promise<_descope_core_js_sdk.SdkResponse<{
|
|
4731
4853
|
maskedPhone: string;
|
|
4732
4854
|
}>>;
|
|
@@ -4736,6 +4858,8 @@ declare const getSdk: () => ((({
|
|
|
4736
4858
|
templateOptions?: {
|
|
4737
4859
|
[x: string]: string;
|
|
4738
4860
|
};
|
|
4861
|
+
templateId?: string;
|
|
4862
|
+
providerId?: string;
|
|
4739
4863
|
}) => Promise<_descope_core_js_sdk.SdkResponse<{
|
|
4740
4864
|
maskedPhone: string;
|
|
4741
4865
|
}>>;
|
|
@@ -4777,6 +4901,8 @@ declare const getSdk: () => ((({
|
|
|
4777
4901
|
templateOptions?: {
|
|
4778
4902
|
[x: string]: string;
|
|
4779
4903
|
};
|
|
4904
|
+
templateId?: string;
|
|
4905
|
+
providerId?: string;
|
|
4780
4906
|
}) => Promise<_descope_core_js_sdk.SdkResponse<_descope_core_js_sdk.EnchantedLinkResponse>>;
|
|
4781
4907
|
};
|
|
4782
4908
|
};
|
|
@@ -5200,6 +5326,8 @@ declare const getSdk: () => ((({
|
|
|
5200
5326
|
templateOptions?: {
|
|
5201
5327
|
[x: string]: string;
|
|
5202
5328
|
};
|
|
5329
|
+
templateId?: string;
|
|
5330
|
+
providerId?: string;
|
|
5203
5331
|
}) => Promise<_descope_core_js_sdk.SdkResponse<{
|
|
5204
5332
|
maskedEmail: string;
|
|
5205
5333
|
}>>;
|
|
@@ -5210,6 +5338,8 @@ declare const getSdk: () => ((({
|
|
|
5210
5338
|
templateOptions?: {
|
|
5211
5339
|
[x: string]: string;
|
|
5212
5340
|
};
|
|
5341
|
+
templateId?: string;
|
|
5342
|
+
providerId?: string;
|
|
5213
5343
|
}) => Promise<_descope_core_js_sdk.SdkResponse<{
|
|
5214
5344
|
maskedPhone: string;
|
|
5215
5345
|
}>>;
|
|
@@ -5219,6 +5349,8 @@ declare const getSdk: () => ((({
|
|
|
5219
5349
|
templateOptions?: {
|
|
5220
5350
|
[x: string]: string;
|
|
5221
5351
|
};
|
|
5352
|
+
templateId?: string;
|
|
5353
|
+
providerId?: string;
|
|
5222
5354
|
}) => Promise<_descope_core_js_sdk.SdkResponse<{
|
|
5223
5355
|
maskedPhone: string;
|
|
5224
5356
|
}>>;
|
|
@@ -5228,6 +5360,8 @@ declare const getSdk: () => ((({
|
|
|
5228
5360
|
templateOptions?: {
|
|
5229
5361
|
[x: string]: string;
|
|
5230
5362
|
};
|
|
5363
|
+
templateId?: string;
|
|
5364
|
+
providerId?: string;
|
|
5231
5365
|
}) => Promise<_descope_core_js_sdk.SdkResponse<{
|
|
5232
5366
|
maskedPhone: string;
|
|
5233
5367
|
}>>;
|
|
@@ -5361,6 +5495,8 @@ declare const getSdk: () => ((({
|
|
|
5361
5495
|
templateOptions?: {
|
|
5362
5496
|
[x: string]: string;
|
|
5363
5497
|
};
|
|
5498
|
+
templateId?: string;
|
|
5499
|
+
providerId?: string;
|
|
5364
5500
|
}) => Promise<_descope_core_js_sdk.SdkResponse<{
|
|
5365
5501
|
maskedEmail: string;
|
|
5366
5502
|
}>>;
|
|
@@ -5371,6 +5507,8 @@ declare const getSdk: () => ((({
|
|
|
5371
5507
|
templateOptions?: {
|
|
5372
5508
|
[x: string]: string;
|
|
5373
5509
|
};
|
|
5510
|
+
templateId?: string;
|
|
5511
|
+
providerId?: string;
|
|
5374
5512
|
}) => Promise<_descope_core_js_sdk.SdkResponse<{
|
|
5375
5513
|
maskedPhone: string;
|
|
5376
5514
|
}>>;
|
|
@@ -5380,6 +5518,8 @@ declare const getSdk: () => ((({
|
|
|
5380
5518
|
templateOptions?: {
|
|
5381
5519
|
[x: string]: string;
|
|
5382
5520
|
};
|
|
5521
|
+
templateId?: string;
|
|
5522
|
+
providerId?: string;
|
|
5383
5523
|
}) => Promise<_descope_core_js_sdk.SdkResponse<{
|
|
5384
5524
|
maskedPhone: string;
|
|
5385
5525
|
}>>;
|
|
@@ -5389,6 +5529,8 @@ declare const getSdk: () => ((({
|
|
|
5389
5529
|
templateOptions?: {
|
|
5390
5530
|
[x: string]: string;
|
|
5391
5531
|
};
|
|
5532
|
+
templateId?: string;
|
|
5533
|
+
providerId?: string;
|
|
5392
5534
|
}) => Promise<_descope_core_js_sdk.SdkResponse<{
|
|
5393
5535
|
maskedPhone: string;
|
|
5394
5536
|
}>>;
|
|
@@ -5430,6 +5572,8 @@ declare const getSdk: () => ((({
|
|
|
5430
5572
|
templateOptions?: {
|
|
5431
5573
|
[x: string]: string;
|
|
5432
5574
|
};
|
|
5575
|
+
templateId?: string;
|
|
5576
|
+
providerId?: string;
|
|
5433
5577
|
}) => Promise<_descope_core_js_sdk.SdkResponse<_descope_core_js_sdk.EnchantedLinkResponse>>;
|
|
5434
5578
|
};
|
|
5435
5579
|
};
|
|
@@ -5853,6 +5997,8 @@ declare const getSdk: () => ((({
|
|
|
5853
5997
|
templateOptions?: {
|
|
5854
5998
|
[x: string]: string;
|
|
5855
5999
|
};
|
|
6000
|
+
templateId?: string;
|
|
6001
|
+
providerId?: string;
|
|
5856
6002
|
}) => Promise<_descope_core_js_sdk.SdkResponse<{
|
|
5857
6003
|
maskedEmail: string;
|
|
5858
6004
|
}>>;
|
|
@@ -5863,6 +6009,8 @@ declare const getSdk: () => ((({
|
|
|
5863
6009
|
templateOptions?: {
|
|
5864
6010
|
[x: string]: string;
|
|
5865
6011
|
};
|
|
6012
|
+
templateId?: string;
|
|
6013
|
+
providerId?: string;
|
|
5866
6014
|
}) => Promise<_descope_core_js_sdk.SdkResponse<{
|
|
5867
6015
|
maskedPhone: string;
|
|
5868
6016
|
}>>;
|
|
@@ -5872,6 +6020,8 @@ declare const getSdk: () => ((({
|
|
|
5872
6020
|
templateOptions?: {
|
|
5873
6021
|
[x: string]: string;
|
|
5874
6022
|
};
|
|
6023
|
+
templateId?: string;
|
|
6024
|
+
providerId?: string;
|
|
5875
6025
|
}) => Promise<_descope_core_js_sdk.SdkResponse<{
|
|
5876
6026
|
maskedPhone: string;
|
|
5877
6027
|
}>>;
|
|
@@ -5881,6 +6031,8 @@ declare const getSdk: () => ((({
|
|
|
5881
6031
|
templateOptions?: {
|
|
5882
6032
|
[x: string]: string;
|
|
5883
6033
|
};
|
|
6034
|
+
templateId?: string;
|
|
6035
|
+
providerId?: string;
|
|
5884
6036
|
}) => Promise<_descope_core_js_sdk.SdkResponse<{
|
|
5885
6037
|
maskedPhone: string;
|
|
5886
6038
|
}>>;
|
|
@@ -6014,6 +6166,8 @@ declare const getSdk: () => ((({
|
|
|
6014
6166
|
templateOptions?: {
|
|
6015
6167
|
[x: string]: string;
|
|
6016
6168
|
};
|
|
6169
|
+
templateId?: string;
|
|
6170
|
+
providerId?: string;
|
|
6017
6171
|
}) => Promise<_descope_core_js_sdk.SdkResponse<{
|
|
6018
6172
|
maskedEmail: string;
|
|
6019
6173
|
}>>;
|
|
@@ -6024,6 +6178,8 @@ declare const getSdk: () => ((({
|
|
|
6024
6178
|
templateOptions?: {
|
|
6025
6179
|
[x: string]: string;
|
|
6026
6180
|
};
|
|
6181
|
+
templateId?: string;
|
|
6182
|
+
providerId?: string;
|
|
6027
6183
|
}) => Promise<_descope_core_js_sdk.SdkResponse<{
|
|
6028
6184
|
maskedPhone: string;
|
|
6029
6185
|
}>>;
|
|
@@ -6033,6 +6189,8 @@ declare const getSdk: () => ((({
|
|
|
6033
6189
|
templateOptions?: {
|
|
6034
6190
|
[x: string]: string;
|
|
6035
6191
|
};
|
|
6192
|
+
templateId?: string;
|
|
6193
|
+
providerId?: string;
|
|
6036
6194
|
}) => Promise<_descope_core_js_sdk.SdkResponse<{
|
|
6037
6195
|
maskedPhone: string;
|
|
6038
6196
|
}>>;
|
|
@@ -6042,6 +6200,8 @@ declare const getSdk: () => ((({
|
|
|
6042
6200
|
templateOptions?: {
|
|
6043
6201
|
[x: string]: string;
|
|
6044
6202
|
};
|
|
6203
|
+
templateId?: string;
|
|
6204
|
+
providerId?: string;
|
|
6045
6205
|
}) => Promise<_descope_core_js_sdk.SdkResponse<{
|
|
6046
6206
|
maskedPhone: string;
|
|
6047
6207
|
}>>;
|
|
@@ -6083,6 +6243,8 @@ declare const getSdk: () => ((({
|
|
|
6083
6243
|
templateOptions?: {
|
|
6084
6244
|
[x: string]: string;
|
|
6085
6245
|
};
|
|
6246
|
+
templateId?: string;
|
|
6247
|
+
providerId?: string;
|
|
6086
6248
|
}) => Promise<_descope_core_js_sdk.SdkResponse<_descope_core_js_sdk.EnchantedLinkResponse>>;
|
|
6087
6249
|
};
|
|
6088
6250
|
};
|
|
@@ -6513,6 +6675,8 @@ declare const getSdk: () => ((({
|
|
|
6513
6675
|
templateOptions?: {
|
|
6514
6676
|
[x: string]: string;
|
|
6515
6677
|
};
|
|
6678
|
+
templateId?: string;
|
|
6679
|
+
providerId?: string;
|
|
6516
6680
|
}) => Promise<_descope_core_js_sdk.SdkResponse<{
|
|
6517
6681
|
maskedEmail: string;
|
|
6518
6682
|
}>>;
|
|
@@ -6523,6 +6687,8 @@ declare const getSdk: () => ((({
|
|
|
6523
6687
|
templateOptions?: {
|
|
6524
6688
|
[x: string]: string;
|
|
6525
6689
|
};
|
|
6690
|
+
templateId?: string;
|
|
6691
|
+
providerId?: string;
|
|
6526
6692
|
}) => Promise<_descope_core_js_sdk.SdkResponse<{
|
|
6527
6693
|
maskedPhone: string;
|
|
6528
6694
|
}>>;
|
|
@@ -6532,6 +6698,8 @@ declare const getSdk: () => ((({
|
|
|
6532
6698
|
templateOptions?: {
|
|
6533
6699
|
[x: string]: string;
|
|
6534
6700
|
};
|
|
6701
|
+
templateId?: string;
|
|
6702
|
+
providerId?: string;
|
|
6535
6703
|
}) => Promise<_descope_core_js_sdk.SdkResponse<{
|
|
6536
6704
|
maskedPhone: string;
|
|
6537
6705
|
}>>;
|
|
@@ -6541,6 +6709,8 @@ declare const getSdk: () => ((({
|
|
|
6541
6709
|
templateOptions?: {
|
|
6542
6710
|
[x: string]: string;
|
|
6543
6711
|
};
|
|
6712
|
+
templateId?: string;
|
|
6713
|
+
providerId?: string;
|
|
6544
6714
|
}) => Promise<_descope_core_js_sdk.SdkResponse<{
|
|
6545
6715
|
maskedPhone: string;
|
|
6546
6716
|
}>>;
|
|
@@ -6674,6 +6844,8 @@ declare const getSdk: () => ((({
|
|
|
6674
6844
|
templateOptions?: {
|
|
6675
6845
|
[x: string]: string;
|
|
6676
6846
|
};
|
|
6847
|
+
templateId?: string;
|
|
6848
|
+
providerId?: string;
|
|
6677
6849
|
}) => Promise<_descope_core_js_sdk.SdkResponse<{
|
|
6678
6850
|
maskedEmail: string;
|
|
6679
6851
|
}>>;
|
|
@@ -6684,6 +6856,8 @@ declare const getSdk: () => ((({
|
|
|
6684
6856
|
templateOptions?: {
|
|
6685
6857
|
[x: string]: string;
|
|
6686
6858
|
};
|
|
6859
|
+
templateId?: string;
|
|
6860
|
+
providerId?: string;
|
|
6687
6861
|
}) => Promise<_descope_core_js_sdk.SdkResponse<{
|
|
6688
6862
|
maskedPhone: string;
|
|
6689
6863
|
}>>;
|
|
@@ -6693,6 +6867,8 @@ declare const getSdk: () => ((({
|
|
|
6693
6867
|
templateOptions?: {
|
|
6694
6868
|
[x: string]: string;
|
|
6695
6869
|
};
|
|
6870
|
+
templateId?: string;
|
|
6871
|
+
providerId?: string;
|
|
6696
6872
|
}) => Promise<_descope_core_js_sdk.SdkResponse<{
|
|
6697
6873
|
maskedPhone: string;
|
|
6698
6874
|
}>>;
|
|
@@ -6702,6 +6878,8 @@ declare const getSdk: () => ((({
|
|
|
6702
6878
|
templateOptions?: {
|
|
6703
6879
|
[x: string]: string;
|
|
6704
6880
|
};
|
|
6881
|
+
templateId?: string;
|
|
6882
|
+
providerId?: string;
|
|
6705
6883
|
}) => Promise<_descope_core_js_sdk.SdkResponse<{
|
|
6706
6884
|
maskedPhone: string;
|
|
6707
6885
|
}>>;
|
|
@@ -6743,6 +6921,8 @@ declare const getSdk: () => ((({
|
|
|
6743
6921
|
templateOptions?: {
|
|
6744
6922
|
[x: string]: string;
|
|
6745
6923
|
};
|
|
6924
|
+
templateId?: string;
|
|
6925
|
+
providerId?: string;
|
|
6746
6926
|
}) => Promise<_descope_core_js_sdk.SdkResponse<_descope_core_js_sdk.EnchantedLinkResponse>>;
|
|
6747
6927
|
};
|
|
6748
6928
|
};
|
|
@@ -7166,6 +7346,8 @@ declare const getSdk: () => ((({
|
|
|
7166
7346
|
templateOptions?: {
|
|
7167
7347
|
[x: string]: string;
|
|
7168
7348
|
};
|
|
7349
|
+
templateId?: string;
|
|
7350
|
+
providerId?: string;
|
|
7169
7351
|
}) => Promise<_descope_core_js_sdk.SdkResponse<{
|
|
7170
7352
|
maskedEmail: string;
|
|
7171
7353
|
}>>;
|
|
@@ -7176,6 +7358,8 @@ declare const getSdk: () => ((({
|
|
|
7176
7358
|
templateOptions?: {
|
|
7177
7359
|
[x: string]: string;
|
|
7178
7360
|
};
|
|
7361
|
+
templateId?: string;
|
|
7362
|
+
providerId?: string;
|
|
7179
7363
|
}) => Promise<_descope_core_js_sdk.SdkResponse<{
|
|
7180
7364
|
maskedPhone: string;
|
|
7181
7365
|
}>>;
|
|
@@ -7185,6 +7369,8 @@ declare const getSdk: () => ((({
|
|
|
7185
7369
|
templateOptions?: {
|
|
7186
7370
|
[x: string]: string;
|
|
7187
7371
|
};
|
|
7372
|
+
templateId?: string;
|
|
7373
|
+
providerId?: string;
|
|
7188
7374
|
}) => Promise<_descope_core_js_sdk.SdkResponse<{
|
|
7189
7375
|
maskedPhone: string;
|
|
7190
7376
|
}>>;
|
|
@@ -7194,6 +7380,8 @@ declare const getSdk: () => ((({
|
|
|
7194
7380
|
templateOptions?: {
|
|
7195
7381
|
[x: string]: string;
|
|
7196
7382
|
};
|
|
7383
|
+
templateId?: string;
|
|
7384
|
+
providerId?: string;
|
|
7197
7385
|
}) => Promise<_descope_core_js_sdk.SdkResponse<{
|
|
7198
7386
|
maskedPhone: string;
|
|
7199
7387
|
}>>;
|
|
@@ -7327,6 +7515,8 @@ declare const getSdk: () => ((({
|
|
|
7327
7515
|
templateOptions?: {
|
|
7328
7516
|
[x: string]: string;
|
|
7329
7517
|
};
|
|
7518
|
+
templateId?: string;
|
|
7519
|
+
providerId?: string;
|
|
7330
7520
|
}) => Promise<_descope_core_js_sdk.SdkResponse<{
|
|
7331
7521
|
maskedEmail: string;
|
|
7332
7522
|
}>>;
|
|
@@ -7337,6 +7527,8 @@ declare const getSdk: () => ((({
|
|
|
7337
7527
|
templateOptions?: {
|
|
7338
7528
|
[x: string]: string;
|
|
7339
7529
|
};
|
|
7530
|
+
templateId?: string;
|
|
7531
|
+
providerId?: string;
|
|
7340
7532
|
}) => Promise<_descope_core_js_sdk.SdkResponse<{
|
|
7341
7533
|
maskedPhone: string;
|
|
7342
7534
|
}>>;
|
|
@@ -7346,6 +7538,8 @@ declare const getSdk: () => ((({
|
|
|
7346
7538
|
templateOptions?: {
|
|
7347
7539
|
[x: string]: string;
|
|
7348
7540
|
};
|
|
7541
|
+
templateId?: string;
|
|
7542
|
+
providerId?: string;
|
|
7349
7543
|
}) => Promise<_descope_core_js_sdk.SdkResponse<{
|
|
7350
7544
|
maskedPhone: string;
|
|
7351
7545
|
}>>;
|
|
@@ -7355,6 +7549,8 @@ declare const getSdk: () => ((({
|
|
|
7355
7549
|
templateOptions?: {
|
|
7356
7550
|
[x: string]: string;
|
|
7357
7551
|
};
|
|
7552
|
+
templateId?: string;
|
|
7553
|
+
providerId?: string;
|
|
7358
7554
|
}) => Promise<_descope_core_js_sdk.SdkResponse<{
|
|
7359
7555
|
maskedPhone: string;
|
|
7360
7556
|
}>>;
|
|
@@ -7396,6 +7592,8 @@ declare const getSdk: () => ((({
|
|
|
7396
7592
|
templateOptions?: {
|
|
7397
7593
|
[x: string]: string;
|
|
7398
7594
|
};
|
|
7595
|
+
templateId?: string;
|
|
7596
|
+
providerId?: string;
|
|
7399
7597
|
}) => Promise<_descope_core_js_sdk.SdkResponse<_descope_core_js_sdk.EnchantedLinkResponse>>;
|
|
7400
7598
|
};
|
|
7401
7599
|
};
|
|
@@ -7819,6 +8017,8 @@ declare const getSdk: () => ((({
|
|
|
7819
8017
|
templateOptions?: {
|
|
7820
8018
|
[x: string]: string;
|
|
7821
8019
|
};
|
|
8020
|
+
templateId?: string;
|
|
8021
|
+
providerId?: string;
|
|
7822
8022
|
}) => Promise<_descope_core_js_sdk.SdkResponse<{
|
|
7823
8023
|
maskedEmail: string;
|
|
7824
8024
|
}>>;
|
|
@@ -7829,6 +8029,8 @@ declare const getSdk: () => ((({
|
|
|
7829
8029
|
templateOptions?: {
|
|
7830
8030
|
[x: string]: string;
|
|
7831
8031
|
};
|
|
8032
|
+
templateId?: string;
|
|
8033
|
+
providerId?: string;
|
|
7832
8034
|
}) => Promise<_descope_core_js_sdk.SdkResponse<{
|
|
7833
8035
|
maskedPhone: string;
|
|
7834
8036
|
}>>;
|
|
@@ -7838,6 +8040,8 @@ declare const getSdk: () => ((({
|
|
|
7838
8040
|
templateOptions?: {
|
|
7839
8041
|
[x: string]: string;
|
|
7840
8042
|
};
|
|
8043
|
+
templateId?: string;
|
|
8044
|
+
providerId?: string;
|
|
7841
8045
|
}) => Promise<_descope_core_js_sdk.SdkResponse<{
|
|
7842
8046
|
maskedPhone: string;
|
|
7843
8047
|
}>>;
|
|
@@ -7847,6 +8051,8 @@ declare const getSdk: () => ((({
|
|
|
7847
8051
|
templateOptions?: {
|
|
7848
8052
|
[x: string]: string;
|
|
7849
8053
|
};
|
|
8054
|
+
templateId?: string;
|
|
8055
|
+
providerId?: string;
|
|
7850
8056
|
}) => Promise<_descope_core_js_sdk.SdkResponse<{
|
|
7851
8057
|
maskedPhone: string;
|
|
7852
8058
|
}>>;
|
|
@@ -7980,6 +8186,8 @@ declare const getSdk: () => ((({
|
|
|
7980
8186
|
templateOptions?: {
|
|
7981
8187
|
[x: string]: string;
|
|
7982
8188
|
};
|
|
8189
|
+
templateId?: string;
|
|
8190
|
+
providerId?: string;
|
|
7983
8191
|
}) => Promise<_descope_core_js_sdk.SdkResponse<{
|
|
7984
8192
|
maskedEmail: string;
|
|
7985
8193
|
}>>;
|
|
@@ -7990,6 +8198,8 @@ declare const getSdk: () => ((({
|
|
|
7990
8198
|
templateOptions?: {
|
|
7991
8199
|
[x: string]: string;
|
|
7992
8200
|
};
|
|
8201
|
+
templateId?: string;
|
|
8202
|
+
providerId?: string;
|
|
7993
8203
|
}) => Promise<_descope_core_js_sdk.SdkResponse<{
|
|
7994
8204
|
maskedPhone: string;
|
|
7995
8205
|
}>>;
|
|
@@ -7999,6 +8209,8 @@ declare const getSdk: () => ((({
|
|
|
7999
8209
|
templateOptions?: {
|
|
8000
8210
|
[x: string]: string;
|
|
8001
8211
|
};
|
|
8212
|
+
templateId?: string;
|
|
8213
|
+
providerId?: string;
|
|
8002
8214
|
}) => Promise<_descope_core_js_sdk.SdkResponse<{
|
|
8003
8215
|
maskedPhone: string;
|
|
8004
8216
|
}>>;
|
|
@@ -8008,6 +8220,8 @@ declare const getSdk: () => ((({
|
|
|
8008
8220
|
templateOptions?: {
|
|
8009
8221
|
[x: string]: string;
|
|
8010
8222
|
};
|
|
8223
|
+
templateId?: string;
|
|
8224
|
+
providerId?: string;
|
|
8011
8225
|
}) => Promise<_descope_core_js_sdk.SdkResponse<{
|
|
8012
8226
|
maskedPhone: string;
|
|
8013
8227
|
}>>;
|
|
@@ -8049,6 +8263,8 @@ declare const getSdk: () => ((({
|
|
|
8049
8263
|
templateOptions?: {
|
|
8050
8264
|
[x: string]: string;
|
|
8051
8265
|
};
|
|
8266
|
+
templateId?: string;
|
|
8267
|
+
providerId?: string;
|
|
8052
8268
|
}) => Promise<_descope_core_js_sdk.SdkResponse<_descope_core_js_sdk.EnchantedLinkResponse>>;
|
|
8053
8269
|
};
|
|
8054
8270
|
};
|
package/dist/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{computed as e,watch as t,inject as r,defineComponent as s,resolveComponent as n,openBlock as a,createElementBlock as i,createVNode as o,unref as d,withCtx as l,renderSlot as u,ref as c,readonly as p}from"vue";import g from"@descope/web-component";import m from"@descope/web-js-sdk";import"@descope/user-management-widget";import"@descope/role-management-widget";import"@descope/access-key-management-widget";import"@descope/audit-management-widget";import"@descope/user-profile-widget";import"@descope/applications-portal-widget";const b=Symbol("$descope"),y={"x-descope-sdk-name":"vue","x-descope-sdk-version":"2.9.
|
|
1
|
+
import{computed as e,watch as t,inject as r,defineComponent as s,resolveComponent as n,openBlock as a,createElementBlock as i,createVNode as o,unref as d,withCtx as l,renderSlot as u,ref as c,readonly as p}from"vue";import g from"@descope/web-component";import m from"@descope/web-js-sdk";import"@descope/user-management-widget";import"@descope/role-management-widget";import"@descope/access-key-management-widget";import"@descope/audit-management-widget";import"@descope/user-profile-widget";import"@descope/applications-portal-widget";const b=Symbol("$descope"),y={"x-descope-sdk-name":"vue","x-descope-sdk-version":"2.9.13"},h="undefined"!=typeof window,v=()=>{const e=r(b);if(!e)throw Error("Missing Descope context, make sure you are using the Descope plugin");return e},w=()=>v().options,S=()=>v().sdk,f=()=>{const{session:t}=v();return t.isFetchSessionWasNeverCalled.value&&t.fetchSession(),{isLoading:e((()=>t.isLoading.value||t.isFetchSessionWasNeverCalled.value)),sessionToken:t.session,isAuthenticated:t.isAuthenticated}},U=()=>{const{user:r,session:s}=v(),n=()=>{!r.user.value&&s.session.value&&r.fetchUser()};return n(),t(s.session,n),{isLoading:e((()=>r.isLoading.value||r.isFetchUserWasNeverCalled.value)),user:r.user}},I=e=>(...t)=>{let r;try{r=e(...t)}catch(e){console.error(e)}return r};let _;const j=e=>{const t=m({persistTokens:h,storeLastAuthenticatedUser:h,...e,autoRefresh:h});return _=t,t};_=j({projectId:"temp pid"});const k=()=>h?_?.getSessionToken():(console.warn("Get session token is not supported in SSR"),""),C=()=>h?_?.getRefreshToken():(console.warn("Get refresh token is not supported in SSR"),""),A=(e=k())=>_?.isJwtExpired(e),q=(e=C())=>_?.isJwtExpired(e),R=I(((e=k(),t)=>_?.getJwtPermissions(e,t))),B=I(((e=k(),t)=>_?.getJwtRoles(e,t))),M=I(((e=k())=>_?.getCurrentTenant(e)));var O=s({__name:"Descope",props:{flowId:{type:String,required:!0},tenant:{type:String},theme:{type:String},locale:{type:String},debug:{type:Boolean},telemetryKey:{type:String},redirectUrl:{type:String},autoFocus:{type:Boolean||String},validateOnBlur:{type:Boolean},restartOnError:{type:Boolean},errorTransformer:{type:Function},onScreenUpdate:{type:Function},form:{type:Object},client:{type:Object},styleId:{type:String},nonce:{type:String},dismissScreenErrorOnInput:{type:Boolean}},emits:["success","error","ready"],setup(t,{emit:r}){(customElements?.get("descope-wc")||g).sdkConfigOverrides={baseHeaders:y,persistTokens:!1,hooks:{get beforeRequest(){return _.httpClient.hooks.beforeRequest},set beforeRequest(e){}}};const s=t,c=r,{projectId:p,baseUrl:m,baseStaticUrl:b,storeLastAuthenticatedUser:h,baseCdnUrl:v}=w(),f=S(),U=e((()=>s.form?JSON.stringify(s.form):"")),I=e((()=>s.client?JSON.stringify(s.client):"")),j=async e=>{await(f.httpClient.hooks?.afterRequest?.({},new Response(JSON.stringify(e.detail)))),c("success",e)},k=e=>c("error",e),C=e=>c("ready",e);return(e,r)=>{const s=n("descope-wc");return a(),i("div",null,[o(s,{"project-id":d(p),"base-url":d(m),"base-static-url":d(b),"base-cdn-url":d(v),"flow-id":t.flowId,"^theme":t.theme,"^locale":t.locale,"^tenant":t.tenant,"^debug":t.debug,"^telemetryKey":t.telemetryKey,"redirect-url":t.redirectUrl,"auto-focus":t.autoFocus,"style-id":t.styleId,"validate-on-blur":t.validateOnBlur,"restart-on-error":t.restartOnError,"store-last-authenticated-user":d(h),".errorTransformer":t.errorTransformer,".onScreenUpdate":t.onScreenUpdate,"^form":U.value,"^client":I.value,"^nonce":t.nonce,"^dismiss-screen-error-on-input":t.dismissScreenErrorOnInput,onSuccess:j,onError:k,onReady:C},{default:l((()=>[u(e.$slots,"default")])),_:3},40,["project-id","base-url","base-static-url","base-cdn-url","flow-id","^theme","^locale","^tenant","^debug","^telemetryKey","redirect-url","auto-focus","style-id","validate-on-blur","restart-on-error","store-last-authenticated-user",".errorTransformer",".onScreenUpdate","^form","^client","^nonce","^dismiss-screen-error-on-input"])])}}});O.__file="src/Descope.vue";var T=s({__name:"UserManagement",props:{tenant:{type:String,required:!0},widgetId:{type:String,required:!0},theme:{type:String},debug:{type:Boolean}},setup(e){const{projectId:t,baseUrl:r,baseStaticUrl:s,baseCdnUrl:l}=w();return(u,c)=>{const p=n("descope-user-management-widget");return a(),i("div",null,[o(p,{"project-id":d(t),"base-url":d(r),"base-static-url":d(s),"base-cdn-url":d(l),"^theme":e.theme,"^tenant":e.tenant,"^debug":e.debug,"widget-id":e.widgetId},null,8,["project-id","base-url","base-static-url","base-cdn-url","^theme","^tenant","^debug","widget-id"])])}}});T.__file="src/UserManagement.vue";var E=s({__name:"RoleManagement",props:{tenant:{type:String,required:!0},widgetId:{type:String,required:!0},theme:{type:String},debug:{type:Boolean}},setup(e){const{projectId:t,baseUrl:r,baseStaticUrl:s,baseCdnUrl:l}=w();return(u,c)=>{const p=n("descope-role-management-widget");return a(),i("div",null,[o(p,{"project-id":d(t),"base-url":d(r),"base-cdn-url":d(l),"base-static-url":d(s),"^theme":e.theme,"^tenant":e.tenant,"^debug":e.debug,"widget-id":e.widgetId},null,8,["project-id","base-url","base-cdn-url","base-static-url","^theme","^tenant","^debug","widget-id"])])}}});E.__file="src/RoleManagement.vue";var F=s({__name:"AccessKeyManagement",props:{tenant:{type:String,required:!0},widgetId:{type:String,required:!0},theme:{type:String},styleId:{type:String},debug:{type:Boolean}},setup(e){const{projectId:t,baseUrl:r,baseStaticUrl:s,baseCdnUrl:l}=w();return(u,c)=>{const p=n("descope-access-key-management-widget");return a(),i("div",null,[o(p,{"project-id":d(t),"base-url":d(r),"base-static-url":d(s),"base-cdn-url":d(l),"^theme":e.theme,"^tenant":e.tenant,"^debug":e.debug,"widget-id":e.widgetId,"style-id":e.styleId},null,8,["project-id","base-url","base-static-url","base-cdn-url","^theme","^tenant","^debug","widget-id","style-id"])])}}});F.__file="src/AccessKeyManagement.vue";var L=s({__name:"AuditManagement",props:{tenant:{type:String,required:!0},widgetId:{type:String,required:!0},theme:{type:String},styleId:{type:String},debug:{type:Boolean}},setup(e){const{projectId:t,baseUrl:r,baseStaticUrl:s,baseCdnUrl:l}=w();return(u,c)=>{const p=n("descope-audit-management-widget");return a(),i("div",null,[o(p,{"project-id":d(t),"base-url":d(r),"base-static-url":d(s),"base-cdn-url":d(l),"^theme":e.theme,"^tenant":e.tenant,"^debug":e.debug,"widget-id":e.widgetId,"style-id":e.styleId},null,8,["project-id","base-url","base-static-url","base-cdn-url","^theme","^tenant","^debug","widget-id","style-id"])])}}});L.__file="src/AuditManagement.vue";var N=s({__name:"UserProfile",props:{widgetId:{type:String,required:!0},theme:{type:String},debug:{type:Boolean}},emits:["logout"],setup(e,{emit:t}){const s=r(b),l=t,u=e=>{s?.resetAuth(),l("logout",e)},{projectId:c,baseUrl:p,baseStaticUrl:g,baseCdnUrl:m}=w();return(t,r)=>{const s=n("descope-user-profile-widget");return a(),i("div",null,[o(s,{"project-id":d(c),"base-url":d(p),"base-static-url":d(g),"base-cdn-url":d(m),"^theme":e.theme,"^debug":e.debug,"widget-id":e.widgetId,onLogout:u},null,8,["project-id","base-url","base-static-url","base-cdn-url","^theme","^debug","widget-id"])])}}});N.__file="src/UserProfile.vue";var P=s({__name:"ApplicationsPortal",props:{widgetId:{type:String,required:!0},theme:{type:String},styleId:{type:String},debug:{type:Boolean}},setup(e){const{projectId:t,baseUrl:r,baseStaticUrl:s,baseCdnUrl:l}=w();return(u,c)=>{const p=n("descope-applications-portal-widget");return a(),i("div",null,[o(p,{"project-id":d(t),"base-url":d(r),"base-static-url":d(s),"base-cdn-url":d(l),"^theme":e.theme,"^debug":e.debug,"widget-id":e.widgetId,"style-id":e.styleId},null,8,["project-id","base-url","base-static-url","base-cdn-url","^theme","^debug","widget-id","style-id"])])}}});P.__file="src/ApplicationsPortal.vue";const J=c(null),K=()=>d(J)?.();let x;const D=()=>x;var W={install:function(r,s){const n=j({persistTokens:!0,...s,autoRefresh:!0,baseHeaders:y});x=n;const a=c(null),i=c(""),o=c(!1),l=c(null),u=c(null);n.onSessionTokenChange((e=>{i.value=e})),n.onIsAuthenticatedChange((e=>{o.value=e})),n.onUserChange((e=>{u.value=e}));const g=async()=>{a.value=!0,await n.refresh(),a.value=!1},m=e((()=>null===a.value)),h=e((()=>null===l.value));J.value=()=>new Promise(((e,r)=>{!o.value&&m.value&&g().catch(r),t((()=>a.value),(()=>!a.value&&e(!!d(o))),{immediate:!0})})),r.provide(b,{session:{fetchSession:g,isLoading:p(a),session:p(i),isAuthenticated:p(o),isFetchSessionWasNeverCalled:m},user:{fetchUser:async()=>{l.value=!0,await n.me(),l.value=!1},isLoading:p(l),user:p(u),isFetchUserWasNeverCalled:h},sdk:n,options:s,resetAuth:function(){i.value="",o.value=!1,u.value=null}})}};export{F as AccessKeyManagement,P as ApplicationsPortal,L as AuditManagement,O as Descope,E as RoleManagement,T as UserManagement,N as UserProfile,W as default,M as getCurrentTenant,R as getJwtPermissions,B as getJwtRoles,C as getRefreshToken,D as getSdk,k as getSessionToken,q as isRefreshTokenExpired,A as isSessionTokenExpired,K as routeGuard,S as useDescope,f as useSession,U as useUser};
|
|
2
2
|
//# sourceMappingURL=index.mjs.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@descope/vue-sdk",
|
|
3
|
-
"version": "2.9.
|
|
3
|
+
"version": "2.9.13",
|
|
4
4
|
"main": "dist/index.cjs",
|
|
5
5
|
"module": "dist/index.mjs",
|
|
6
6
|
"type": "module",
|
|
@@ -25,15 +25,15 @@
|
|
|
25
25
|
]
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@descope/access-key-management-widget": "0.4.
|
|
29
|
-
"@descope/audit-management-widget": "0.4.
|
|
30
|
-
"@descope/role-management-widget": "0.3.
|
|
31
|
-
"@descope/user-management-widget": "0.7.
|
|
32
|
-
"@descope/user-profile-widget": "0.4.
|
|
33
|
-
"@descope/web-component": "3.
|
|
34
|
-
"@descope/web-js-sdk": "1.31.
|
|
35
|
-
"@descope/applications-portal-widget": "0.3.
|
|
36
|
-
"@descope/core-js-sdk": "2.43.
|
|
28
|
+
"@descope/access-key-management-widget": "0.4.17",
|
|
29
|
+
"@descope/audit-management-widget": "0.4.17",
|
|
30
|
+
"@descope/role-management-widget": "0.3.18",
|
|
31
|
+
"@descope/user-management-widget": "0.7.17",
|
|
32
|
+
"@descope/user-profile-widget": "0.4.18",
|
|
33
|
+
"@descope/web-component": "3.42.1",
|
|
34
|
+
"@descope/web-js-sdk": "1.31.3",
|
|
35
|
+
"@descope/applications-portal-widget": "0.3.17",
|
|
36
|
+
"@descope/core-js-sdk": "2.43.1"
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|
|
39
39
|
"vue": ">=3"
|