@asgardeo/javascript 0.20.0 → 0.20.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- {"version":3,"file":"createOrganization.d.ts","sourceRoot":"","sources":["../../src/api/createOrganization.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAGH,OAAO,EAAC,YAAY,EAAC,MAAM,wBAAwB,CAAC;AAEpD;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,IAAI,EAAE,QAAQ,CAAC;CAChB;AAED;;GAEG;AACH,MAAM,WAAW,wBAAyB,SAAQ,IAAI,CAAC,WAAW,EAAE,QAAQ,GAAG,MAAM,CAAC;IACpF;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;OAGG;IACH,OAAO,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,WAAW,KAAK,OAAO,CAAC,QAAQ,CAAC,CAAC;IAClE;;OAEG;IACH,OAAO,EAAE,yBAAyB,CAAC;CACpC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiEG;AACH,QAAA,MAAM,kBAAkB,oDAKrB,wBAAwB,KAAG,OAAO,CAAC,YAAY,CAyEjD,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
1
+ {"version":3,"file":"createOrganization.d.ts","sourceRoot":"","sources":["../../src/api/createOrganization.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAGH,OAAO,EAAC,YAAY,EAAC,MAAM,wBAAwB,CAAC;AAEpD;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,IAAI,EAAE,QAAQ,CAAC;CAChB;AAED;;GAEG;AACH,MAAM,WAAW,wBAAyB,SAAQ,IAAI,CAAC,WAAW,EAAE,QAAQ,GAAG,MAAM,CAAC;IACpF;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;OAGG;IACH,OAAO,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,WAAW,KAAK,OAAO,CAAC,QAAQ,CAAC,CAAC;IAClE;;OAEG;IACH,OAAO,EAAE,yBAAyB,CAAC;CACpC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiEG;AACH,QAAA,MAAM,kBAAkB,oDAKrB,wBAAwB,KAAG,OAAO,CAAC,YAAY,CA0EjD,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"executeEmbeddedSignInFlow.d.ts","sourceRoot":"","sources":["../../src/api/executeEmbeddedSignInFlow.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAGH,OAAO,EAAC,gCAAgC,EAAC,MAAM,yBAAyB,CAAC;AACzE,OAAO,EAAC,gCAAgC,EAAC,MAAM,gCAAgC,CAAC;AAEhF,QAAA,MAAM,yBAAyB,gDAK5B,gCAAgC,KAAG,OAAO,CAAC,gCAAgC,CA8D7E,CAAC;AAEF,eAAe,yBAAyB,CAAC"}
1
+ {"version":3,"file":"executeEmbeddedSignInFlow.d.ts","sourceRoot":"","sources":["../../src/api/executeEmbeddedSignInFlow.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAGH,OAAO,EAAC,gCAAgC,EAAC,MAAM,yBAAyB,CAAC;AACzE,OAAO,EAAC,gCAAgC,EAAC,MAAM,gCAAgC,CAAC;AAEhF,QAAA,MAAM,yBAAyB,gDAK5B,gCAAgC,KAAG,OAAO,CAAC,gCAAgC,CA+D7E,CAAC;AAEF,eAAe,yBAAyB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"executeEmbeddedSignUpFlow.d.ts","sourceRoot":"","sources":["../../src/api/executeEmbeddedSignUpFlow.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAGH,OAAO,EAAmB,2BAA2B,EAAE,gCAAgC,EAAC,MAAM,yBAAyB,CAAC;AAExH;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,QAAA,MAAM,yBAAyB,gDAK5B,gCAAgC,KAAG,OAAO,CAAC,2BAA2B,CAiExE,CAAC;AAEF,eAAe,yBAAyB,CAAC"}
1
+ {"version":3,"file":"executeEmbeddedSignUpFlow.d.ts","sourceRoot":"","sources":["../../src/api/executeEmbeddedSignUpFlow.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAGH,OAAO,EAAmB,2BAA2B,EAAE,gCAAgC,EAAC,MAAM,yBAAyB,CAAC;AAExH;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,QAAA,MAAM,yBAAyB,gDAK5B,gCAAgC,KAAG,OAAO,CAAC,2BAA2B,CAkExE,CAAC;AAEF,eAAe,yBAAyB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"getAllOrganizations.d.ts","sourceRoot":"","sources":["../../src/api/getAllOrganizations.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAGH,OAAO,EAAC,2BAA2B,EAAC,MAAM,wBAAwB,CAAC;AAEnE;;GAEG;AACH,MAAM,WAAW,yBAA0B,SAAQ,IAAI,CAAC,WAAW,EAAE,QAAQ,CAAC;IAC5E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EF,eAAe,mBAAmB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"getBrandingPreference.d.ts","sourceRoot":"","sources":["../../src/api/getBrandingPreference.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAGH,OAAO,EAAC,kBAAkB,EAAC,MAAM,+BAA+B,CAAC;AAEjE;;GAEG;AACH,MAAM,WAAW,2BAA4B,SAAQ,IAAI,CAAC,WAAW,EAAE,QAAQ,CAAC;IAC9E;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;OAGG;IACH,OAAO,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,WAAW,KAAK,OAAO,CAAC,QAAQ,CAAC,CAAC;IAClE;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwDG;AACH,QAAA,MAAM,qBAAqB,+DAOxB,2BAA2B,KAAG,OAAO,CAAC,kBAAkB,CAqE1D,CAAC;AAEF,eAAe,qBAAqB,CAAC"}
1
+ {"version":3,"file":"getBrandingPreference.d.ts","sourceRoot":"","sources":["../../src/api/getBrandingPreference.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAGH,OAAO,EAAC,kBAAkB,EAAC,MAAM,+BAA+B,CAAC;AAEjE;;GAEG;AACH,MAAM,WAAW,2BAA4B,SAAQ,IAAI,CAAC,WAAW,EAAE,QAAQ,CAAC;IAC9E;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;OAGG;IACH,OAAO,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,WAAW,KAAK,OAAO,CAAC,QAAQ,CAAC,CAAC;IAClE;;OAEG;I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kBAAkB,CAAC"}
1
+ {"version":3,"file":"getMeOrganizations.d.ts","sourceRoot":"","sources":["../../src/api/getMeOrganizations.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAGH,OAAO,EAAC,YAAY,EAAC,MAAM,wBAAwB,CAAC;AAEpD;;GAEG;AACH,MAAM,WAAW,wBAAyB,SAAQ,IAAI,CAAC,WAAW,EAAE,QAAQ,CAAC;IAC3E;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;OAGG;IACH,OAAO,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,WAAW,KAAK,OAAO,CAAC,QAAQ,CAAC,CAAC;IAClE;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4DG;AACH,QAAA,MAAM,kBAAkB,uGAUrB,wBAAwB,KAAG,OAAO,CAAC,YAAY,EAAE,CAuEnD,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"getOrganization.d.ts","sourceRoot":"","sources":["../../src/api/getOrganization.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAIH;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACjC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;IACr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AAM,UAAU,gDAAqD,gBAAgB,KAAG,OAAO,CAAC,MAAM,EAAE,CAwDvG,CAAC;AAEF,eAAe,UAAU,CAAC"}
1
+ {"version":3,"file":"getSchemas.d.ts","sourceRoot":"","sources":["../../src/api/getSchemas.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAGH,OAAO,EAAC,MAAM,EAAC,MAAM,wBAAwB,CAAC;AAE9C;;GAEG;AACH,MAAM,WAAW,gBAAiB,SAAQ,IAAI,CAAC,WAAW,EAAE,QAAQ,CAAC;IACnE;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;OAGG;IACH,OAAO,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,WAAW,KAAK,OAAO,CAAC,QAAQ,CAAC,CAAC;IAClE;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkDG;AACH,QAAA,MAAM,UAAU,gDAAqD,gBAAgB,KAAG,OAAO,CAAC,MAAM,EAAE,CAyDvG,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"getScim2Me.d.ts","sourceRoot":"","sources":["../../src/api/getScim2Me.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAGH,OAAO,EAAC,IAAI,EAAC,MAAM,gBAAgB,CAAC;AAGpC;;GAEG;AACH,MAAM,WAAW,gBAAiB,SAAQ,IAAI,CAAC,WAAW,EAAE,QAAQ,CAAC;IACnE;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;OAGG;IACH,OAAO,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,WAAW,KAAK,OAAO,CAAC,QAAQ,CAAC,CAAC;IAClE;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkDG;AACH,QAAA,MAAM,UAAU,gDAAqD,gBAAgB,KAAG,OAAO,CAAC,IAAI,CA0DnG,CAAC;AAEF,eAAe,UAAU,CAAC"}
1
+ {"version":3,"file":"getScim2Me.d.ts","sourceRoot":"","sources":["../../src/api/getScim2Me.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAGH,OAAO,EAAC,IAAI,EAAC,MAAM,gBAAgB,CAAC;AAGpC;;GAEG;AACH,MAAM,WAAW,gBAAiB,SAAQ,IAAI,CAAC,WAAW,EAAE,QAAQ,CAAC;IACnE;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;OAGG;IACH,OAAO,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,WAAW,KAAK,OAAO,CAAC,QAAQ,CAAC,CAAC;IAClE;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkDG;AACH,QAAA,MAAM,UAAU,gDAAqD,gBAAgB,KAAG,OAAO,CAAC,IAAI,CA2DnG,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"getUserInfo.d.ts","sourceRoot":"","sources":["../../src/api/getUserInfo.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAGH,OAAO,EAAC,IAAI,EAAC,MAAM,gBAAgB,CAAC;AAEpC;;;;;;;;;;;;;;;;GAgBG;AACH,QAAA,MAAM,WAAW,8BAAmC,OAAO,CAAC,OAAO,CAAC,KAAG,OAAO,CAAC,IAAI,CAkDlF,CAAC;AAEF,eAAe,WAAW,CAAC"}
1
+ {"version":3,"file":"getUserInfo.d.ts","sourceRoot":"","sources":["../../src/api/getUserInfo.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAGH,OAAO,EAAC,IAAI,EAAC,MAAM,gBAAgB,CAAC;AAEpC;;;;;;;;;;;;;;;;GAgBG;AACH,QAAA,MAAM,WAAW,8BAAmC,OAAO,CAAC,OAAO,CAAC,KAAG,OAAO,CAAC,IAAI,CAmDlF,CAAC;AAEF,eAAe,WAAW,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"initializeEmbeddedSignInFlow.d.ts","sourceRoot":"","sources":["../../src/api/initializeEmbeddedSignInFlow.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAGH,OAAO,EAAC,gCAAgC,EAAC,MAAM,yBAAyB,CAAC;AACzE,OAAO,EAAC,kCAAkC,EAAC,MAAM,gCAAgC,CAAC;AAElF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,QAAA,MAAM,4BAA4B,gDAK/B,gCAAgC,KAAG,OAAO,CAAC,kCAAkC,CAqE/E,CAAC;AAEF,eAAe,4BAA4B,CAAC"}
1
+ {"version":3,"file":"initializeEmbeddedSignInFlow.d.ts","sourceRoot":"","sources":["../../src/api/initializeEmbeddedSignInFlow.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAGH,OAAO,EAAC,gCAAgC,EAAC,MAAM,yBAAyB,CAAC;AACzE,OAAO,EAAC,kCAAkC,EAAC,MAAM,gCAAgC,CAAC;AAElF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,QAAA,MAAM,4BAA4B,gDAK/B,gCAAgC,KAAG,OAAO,CAAC,kCAAkC,CAsE/E,CAAC;AAEF,eAAe,4BAA4B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"updateMeProfile.d.ts","sourceRoot":"","sources":["../../src/api/updateMeProfile.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAGH,OAAO,EAAC,IAAI,EAAC,MAAM,gBAAgB,CAAC;AAGpC;;GA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ateOrganization.d.ts","sourceRoot":"","sources":["../../src/api/updateOrganization.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,mBAAmB,EAAC,MAAM,mBAAmB,CAAC;AAItD;;GAEG;AACH,MAAM,WAAW,wBAAyB,SAAQ,IAAI,CAAC,WAAW,EAAE,QAAQ,GAAG,MAAM,CAAC;IACpF;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;OAGG;IACH,OAAO,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,WAAW,KAAK,OAAO,CAAC,QAAQ,CAAC,CAAC;IAClE;;OAEG;IACH,UAAU,EAAE,KAAK,CAAC;QAChB,SAAS,EAAE,SAAS,GAAG,KAAK,GAAG,QAAQ,CAAC;QACxC,IAAI,EAAE,MAAM,CAAC;QACb,KAAK,CAAC,EAAE,GAAG,CAAC;KACb,CAAC,CAAC;IACH;;OAEG;IACH,cAAc,EAAE,MAAM,CAAC;CACxB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2DG;AACH,QAAA,MAAM,kBAAkB,uEAMrB,wBAAwB,KAAG,OAAO,CAAC,mBAAmB,CA6ExD,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,qBAAqB,YACvB,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAC3B,KAAK,CAAC;IACP,SAAS,EAAE,SAAS,GAAG,QAAQ,CAAC;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,GAAG,CAAC;CACb,CAcG,CAAC;AAEL,eAAe,kBAAkB,CAAC"}
1
+ {"version":3,"file":"updateOrganization.d.ts","sourceRoot":"","sources":["../../src/api/updateOrganization.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,mBAAmB,EAAC,MAAM,mBAAmB,CAAC;AAItD;;GAEG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AG,OAAO,CAAC,4BAA4B,CA+G3E,CAAC;AAEF,eAAe,2BAA2B,CAAC"}
1
+ {"version":3,"file":"executeEmbeddedSignInFlowV2.d.ts","sourceRoot":"","sources":["../../../src/api/v2/executeEmbeddedSignInFlowV2.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAGH,OAAO,EAAC,gCAAgC,IAAI,kCAAkC,EAAC,MAAM,kCAAkC,CAAC;AACxH,OAAO,EACL,0BAA0B,IAAI,4BAA4B,EAE3D,MAAM,yCAAyC,CAAC;AAEjD,QAAA,MAAM,2BAA2B,wDAM9B,kCAAkC,KAAG,OAAO,CAAC,4BAA4B,CAgH3E,CAAC;AAEF,eAAe,2BAA2B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"executeEmbeddedSignUpFlowV2.d.ts","sourceRoot":"","sources":["../../../src/api/v2/executeEmbeddedSignUpFlowV2.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAGH,OAAO,EAAC,gCAAgC,IAAI,kCAAkC,EAAC,MAAM,kCAAkC,CAAC;AACxH,OAAO,EACL,0BAA0B,IAAI,4BAA4B,EAE3D,MAAM,yCAAyC,CAAC;AAEjD,QAAA,MAAM,2BAA2B,wDAM9B,kCAAkC,KAAG,OAAO,CAAC,4BAA4B,CA+G3E,CAAC;AAEF,eAAe,2BAA2B,CAAC"}
1
+ {"version":3,"file":"executeEmbeddedSignUpFlowV2.d.ts","sourceRoot":"","sources":["../../../src/api/v2/executeEmbeddedSignUpFlowV2.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAGH,OAAO,EAAC,gCAAgC,IAAI,kCAAkC,EAAC,MAAM,kCAAkC,CAAC;AACxH,OAAO,EACL,0BAA0B,IAAI,4BAA4B,EAE3D,MAAM,yCAAyC,CAAC;AAEjD,QAAA,MAAM,2BAA2B,wDAM9B,kCAAkC,KAAG,OAAO,CAAC,4BAA4B,CAgH3E,CAAC;AAEF,eAAe,2BAA2B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"executeEmbeddedUserOnboardingFlowV2.d.ts","sourceRoot":"","sources":["../../../src/api/v2/executeEmbeddedUserOnboardingFlowV2.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAIH,OAAO,EAAC,gCAAgC,IAAI,kCAAkC,EAAC,MAAM,kCAAkC,CAAC;AAExH;;GAEG;AACH,MAAM,WAAW,kCAAkC;IACjD;;OAEG;IACH,IAAI,CAAC,EAAE;QACL;;WAEG;QACH,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;QAExC;;WAEG;QACH,UAAU,CAAC,EAAE,GAAG,EAAE,CAAC;KACpB,CAAC;IAEF;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;OAEG;IACH,UAAU,EAAE,YAAY,GAAG,UAAU,GAAG,OAAO,CAAC;IAEhD;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,aAAa,CAAC;CAC/B;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,QAAA,MAAM,mCAAmC,gDAKtC,kCAAkC,KAAG,OAAO,CAAC,kCAAkC,CAwEjF,CAAC;AAEF,eAAe,mCAAmC,CAAC"}
1
+ {"version":3,"file":"executeEmbeddedUserOnboardingFlowV2.d.ts","sourceRoot":"","sources":["../../../src/api/v2/executeEmbeddedUserOnboardingFlowV2.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAIH,OAAO,EAAC,gCAAgC,IAAI,kCAAkC,EAAC,MAAM,kCAAkC,CAAC;AAExH;;GAEG;AACH,MAAM,WAAW,kCAAkC;IACjD;;OAEG;IACH,IAAI,CAAC,EAAE;QACL;;WAEG;QACH,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;QAExC;;WAEG;QACH,UAAU,CAAC,EAAE,GAAG,EAAE,CAAC;KACpB,CAAC;IAEF;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;OAEG;IACH,UAAU,EAAE,YAAY,GAAG,UAAU,GAAG,OAAO,CAAC;IAEhD;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,aAAa,CAAC;CAC/B;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,QAAA,MAAM,mCAAmC,gDAKtC,kCAAkC,KAAG,OAAO,CAAC,kCAAkC,CAyEjF,CAAC;AAEF,eAAe,mCAAmC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"getFlowMetaV2.d.ts","sourceRoot":"","sources":["../../../src/api/v2/getFlowMetaV2.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAGH,OAAO,EAAC,oBAAoB,EAAE,wBAAwB,EAAC,MAAM,8BAA8B,CAAC;AAE5F;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,QAAA,MAAM,aAAa,sEAQhB,wBAAwB,KAAG,OAAO,CAAC,oBAAoB,CAmCzD,CAAC;AAEF,eAAe,aAAa,CAAC"}
1
+ {"version":3,"file":"getFlowMetaV2.d.ts","sourceRoot":"","sources":["../../../src/api/v2/getFlowMetaV2.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAGH,OAAO,EAAC,oBAAoB,EAAE,wBAAwB,EAAC,MAAM,8BAA8B,CAAC;AAE5F;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,QAAA,MAAM,aAAa,sEAQhB,wBAAwB,KAAG,OAAO,CAAC,oBAAoB,CAoCzD,CAAC;AAEF,eAAe,aAAa,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"getOrganizationUnitChildren.d.ts","sourceRoot":"","sources":["../../../src/api/v2/getOrganizationUnitChildren.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAGH,OAAO,EAAC,iCAAiC,EAAE,4BAA4B,EAAC,MAAM,mCAAmC,CAAC;AAElH;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,QAAA,MAAM,2BAA2B,0EAO9B,iCAAiC,KAAG,OAAO,CAAC,4BAA4B,CA0C1E,CAAC;AAEF,eAAe,2BAA2B,CAAC"}
1
+ {"version":3,"file":"getOrganizationUnitChildren.d.ts","sourceRoot":"","sources":["../../../src/api/v2/getOrganizationUnitChildren.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAGH,OAAO,EAAC,iCAAiC,EAAE,4BAA4B,EAAC,MAAM,mCAAmC,CAAC;AAElH;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,QAAA,MAAM,2BAA2B,0EAO9B,iCAAiC,KAAG,OAAO,CAAC,4BAA4B,CA2C1E,CAAC;AAEF,eAAe,2BAA2B,CAAC"}
package/dist/cjs/index.js CHANGED
@@ -2157,20 +2157,37 @@ var _AsgardeoAuthClient = class _AsgardeoAuthClient {
2157
2157
  __publicField(_AsgardeoAuthClient, "authHelperInstance");
2158
2158
  var AsgardeoAuthClient = _AsgardeoAuthClient;
2159
2159
 
2160
+ // src/utils/parseApiErrorMessage.ts
2161
+ var parseApiErrorMessage = (errorText) => {
2162
+ try {
2163
+ const parsed = JSON.parse(errorText);
2164
+ const description = parsed["description"];
2165
+ const message = parsed["message"];
2166
+ if (description?.defaultValue) return description.defaultValue;
2167
+ if (message?.defaultValue) return message.defaultValue;
2168
+ } catch {
2169
+ }
2170
+ return errorText;
2171
+ };
2172
+ var parseApiErrorMessage_default = parseApiErrorMessage;
2173
+
2160
2174
  // src/errors/AsgardeoAPIError.ts
2161
2175
  var AsgardeoAPIError = class extends AsgardeoError {
2162
2176
  /**
2163
2177
  * Creates an instance of AsgardeoAPIError.
2164
2178
  *
2165
- * @param message - Human-readable description of the error
2179
+ * @param message - Human-readable description or raw API error response body
2166
2180
  * @param code - A unique error code that identifies the error type
2181
+ * @param origin - The SDK origin (e.g. 'react', 'vue')
2167
2182
  * @param statusCode - HTTP status code of the failed request
2168
2183
  * @param statusText - HTTP status text of the failed request
2169
- * @param origin - Optional. The SDK origin (e.g. 'react', 'vue'). Defaults to generic 'Asgardeo'
2184
+ * @param prefix - Optional prefix prepended to the resolved message
2170
2185
  * @constructor
2171
2186
  */
2172
- constructor(message, code, origin, statusCode, statusText) {
2173
- super(message, code, origin);
2187
+ constructor(message, code, origin, statusCode, statusText, prefix) {
2188
+ const parsed = parseApiErrorMessage_default(message);
2189
+ const resolvedMessage = prefix ? `${prefix}: ${parsed}` : parsed;
2190
+ super(resolvedMessage, code, origin);
2174
2191
  this.statusCode = statusCode;
2175
2192
  this.statusText = statusText;
2176
2193
  Object.defineProperty(this, "name", {
@@ -2237,11 +2254,12 @@ var initializeEmbeddedSignInFlow = async ({
2237
2254
  if (!response.ok) {
2238
2255
  const errorText = await response.text();
2239
2256
  throw new AsgardeoAPIError(
2240
- `Authorization request failed: ${errorText}`,
2257
+ errorText,
2241
2258
  "initializeEmbeddedSignInFlow-ResponseError-001",
2242
2259
  "javascript",
2243
2260
  response.status,
2244
- response.statusText
2261
+ response.statusText,
2262
+ "Authorization request failed"
2245
2263
  );
2246
2264
  }
2247
2265
  return await response.json();
@@ -2301,11 +2319,12 @@ var executeEmbeddedSignInFlow = async ({
2301
2319
  if (!response.ok) {
2302
2320
  const errorText = await response.text();
2303
2321
  throw new AsgardeoAPIError(
2304
- `Authorization request failed: ${errorText}`,
2322
+ errorText,
2305
2323
  "initializeEmbeddedSignInFlow-ResponseError-001",
2306
2324
  "javascript",
2307
2325
  response.status,
2308
- response.statusText
2326
+ response.statusText,
2327
+ "Authorization request failed"
2309
2328
  );
2310
2329
  }
2311
2330
  return await response.json();
@@ -2399,11 +2418,12 @@ var executeEmbeddedSignUpFlow = async ({
2399
2418
  if (!response.ok) {
2400
2419
  const errorText = await response.text();
2401
2420
  throw new AsgardeoAPIError(
2402
- `Embedded SignUp flow execution failed: ${errorText}`,
2421
+ errorText,
2403
2422
  "javascript-executeEmbeddedSignUpFlow-ResponseError-100",
2404
2423
  "javascript",
2405
2424
  response.status,
2406
- response.statusText
2425
+ response.statusText,
2426
+ "Embedded SignUp flow execution failed"
2407
2427
  );
2408
2428
  }
2409
2429
  return await response.json();
@@ -2448,11 +2468,12 @@ var getUserInfo = async ({ url, ...requestConfig }) => {
2448
2468
  if (!response.ok) {
2449
2469
  const errorText = await response.text();
2450
2470
  throw new AsgardeoAPIError(
2451
- `Failed to fetch user info: ${errorText}`,
2471
+ errorText,
2452
2472
  "getUserInfo-ResponseError-001",
2453
2473
  "javascript",
2454
2474
  response.status,
2455
- response.statusText
2475
+ response.statusText,
2476
+ "Failed to fetch user info"
2456
2477
  );
2457
2478
  }
2458
2479
  return await response.json();
@@ -2526,11 +2547,12 @@ var getScim2Me = async ({ url, baseUrl, fetcher, ...requestConfig }) => {
2526
2547
  if (!response?.ok) {
2527
2548
  const errorText = await response.text();
2528
2549
  throw new AsgardeoAPIError(
2529
- `Failed to fetch user profile: ${errorText}`,
2550
+ errorText,
2530
2551
  "getScim2Me-ResponseError-001",
2531
2552
  "javascript",
2532
2553
  response.status,
2533
- response.statusText
2554
+ response.statusText,
2555
+ "Failed to fetch user profile"
2534
2556
  );
2535
2557
  }
2536
2558
  const user = await response.json();
@@ -2579,11 +2601,12 @@ var getSchemas = async ({ url, baseUrl, fetcher, ...requestConfig }) => {
2579
2601
  if (!response?.ok) {
2580
2602
  const errorText = await response.text();
2581
2603
  throw new AsgardeoAPIError(
2582
- `Failed to fetch SCIM2 schemas: ${errorText}`,
2604
+ errorText,
2583
2605
  "getSchemas-ResponseError-001",
2584
2606
  "javascript",
2585
2607
  response.status,
2586
- response.statusText
2608
+ response.statusText,
2609
+ "Failed to fetch SCIM2 schemas"
2587
2610
  );
2588
2611
  }
2589
2612
  return await response.json();
@@ -2647,11 +2670,12 @@ var getAllOrganizations = async ({
2647
2670
  if (!response?.ok) {
2648
2671
  const errorText = await response.text();
2649
2672
  throw new AsgardeoAPIError(
2650
- `Failed to get organizations: ${errorText}`,
2673
+ errorText,
2651
2674
  "getAllOrganizations-ResponseError-001",
2652
2675
  "javascript",
2653
2676
  response.status,
2654
- response.statusText
2677
+ response.statusText,
2678
+ "Failed to get organizations"
2655
2679
  );
2656
2680
  }
2657
2681
  const data = await response.json();
@@ -2724,11 +2748,12 @@ var createOrganization = async ({
2724
2748
  if (!response?.ok) {
2725
2749
  const errorText = await response.text();
2726
2750
  throw new AsgardeoAPIError(
2727
- `Failed to create organization: ${errorText}`,
2751
+ errorText,
2728
2752
  "createOrganization-ResponseError-001",
2729
2753
  "javascript",
2730
2754
  response.status,
2731
- response.statusText
2755
+ response.statusText,
2756
+ "Failed to create organization"
2732
2757
  );
2733
2758
  }
2734
2759
  return await response.json();
@@ -2798,11 +2823,12 @@ var getMeOrganizations = async ({
2798
2823
  if (!response?.ok) {
2799
2824
  const errorText = await response.text();
2800
2825
  throw new AsgardeoAPIError(
2801
- `Failed to fetch associated organizations of the user: ${errorText}`,
2826
+ errorText,
2802
2827
  "getMeOrganizations-ResponseError-001",
2803
2828
  "javascript",
2804
2829
  response.status,
2805
- response.statusText
2830
+ response.statusText,
2831
+ "Failed to fetch associated organizations of the user"
2806
2832
  );
2807
2833
  }
2808
2834
  const data = await response.json();
@@ -2865,11 +2891,12 @@ var getOrganization = async ({
2865
2891
  if (!response?.ok) {
2866
2892
  const errorText = await response.text();
2867
2893
  throw new AsgardeoAPIError(
2868
- `Failed to fetch organization details: ${errorText}`,
2894
+ errorText,
2869
2895
  "getOrganization-ResponseError-001",
2870
2896
  "javascript",
2871
2897
  response.status,
2872
- response.statusText
2898
+ response.statusText,
2899
+ "Failed to fetch organization details"
2873
2900
  );
2874
2901
  }
2875
2902
  return await response.json();
@@ -2960,11 +2987,12 @@ var updateOrganization = async ({
2960
2987
  if (!response?.ok) {
2961
2988
  const errorText = await response.text();
2962
2989
  throw new AsgardeoAPIError(
2963
- `Failed to update organization: ${errorText}`,
2990
+ errorText,
2964
2991
  "updateOrganization-ResponseError-001",
2965
2992
  "javascript",
2966
2993
  response.status,
2967
- response.statusText
2994
+ response.statusText,
2995
+ "Failed to update organization"
2968
2996
  );
2969
2997
  }
2970
2998
  return await response.json();
@@ -3041,11 +3069,12 @@ var updateMeProfile = async ({
3041
3069
  if (!response?.ok) {
3042
3070
  const errorText = await response.text();
3043
3071
  throw new AsgardeoAPIError(
3044
- `Failed to update user profile: ${errorText}`,
3072
+ errorText,
3045
3073
  "updateMeProfile-ResponseError-001",
3046
3074
  "javascript",
3047
3075
  response.status,
3048
- response.statusText
3076
+ response.statusText,
3077
+ "Failed to update user profile"
3049
3078
  );
3050
3079
  }
3051
3080
  return processUsername_default(await response.json());
@@ -3109,11 +3138,12 @@ var getBrandingPreference = async ({
3109
3138
  if (!response?.ok) {
3110
3139
  const errorText = await response.text();
3111
3140
  throw new AsgardeoAPIError(
3112
- `Failed to get branding preference: ${errorText}`,
3141
+ errorText,
3113
3142
  "getBrandingPreference-ResponseError-001",
3114
3143
  "javascript",
3115
3144
  response.status,
3116
- response.statusText
3145
+ response.statusText,
3146
+ "Failed to get branding preference"
3117
3147
  );
3118
3148
  }
3119
3149
  const data = await response.json();
@@ -3181,11 +3211,12 @@ var executeEmbeddedSignInFlowV2 = async ({
3181
3211
  if (!response.ok) {
3182
3212
  const errorText = await response.text();
3183
3213
  throw new AsgardeoAPIError(
3184
- `Authorization request failed: ${errorText}`,
3214
+ errorText,
3185
3215
  "executeEmbeddedSignInFlow-ResponseError-001",
3186
3216
  "javascript",
3187
3217
  response.status,
3188
- response.statusText
3218
+ response.statusText,
3219
+ "Authorization request failed"
3189
3220
  );
3190
3221
  }
3191
3222
  const flowResponse = await response.json();
@@ -3281,11 +3312,12 @@ var executeEmbeddedSignUpFlowV2 = async ({
3281
3312
  if (!response.ok) {
3282
3313
  const errorText = await response.text();
3283
3314
  throw new AsgardeoAPIError(
3284
- `Registration request failed: ${errorText}`,
3315
+ errorText,
3285
3316
  "executeEmbeddedSignUpFlow-ResponseError-001",
3286
3317
  "javascript",
3287
3318
  response.status,
3288
- response.statusText
3319
+ response.statusText,
3320
+ "Registration request failed"
3289
3321
  );
3290
3322
  }
3291
3323
  const flowResponse = await response.json();
@@ -3420,11 +3452,12 @@ var executeEmbeddedUserOnboardingFlowV2 = async ({
3420
3452
  if (!response.ok) {
3421
3453
  const errorText = await response.text();
3422
3454
  throw new AsgardeoAPIError(
3423
- `User onboarding request failed: ${errorText}`,
3455
+ errorText,
3424
3456
  "executeEmbeddedUserOnboardingFlow-ResponseError-001",
3425
3457
  "javascript",
3426
3458
  response.status,
3427
- response.statusText
3459
+ response.statusText,
3460
+ "User onboarding request failed"
3428
3461
  );
3429
3462
  }
3430
3463
  const flowResponse = await response.json();
@@ -3461,11 +3494,12 @@ var getFlowMetaV2 = async ({
3461
3494
  if (!response.ok) {
3462
3495
  const errorText = await response.text();
3463
3496
  throw new AsgardeoAPIError(
3464
- `Flow metadata request failed: ${errorText}`,
3497
+ errorText,
3465
3498
  "getFlowMetaV2-ResponseError-001",
3466
3499
  "javascript",
3467
3500
  response.status,
3468
- response.statusText
3501
+ response.statusText,
3502
+ "Flow metadata request failed"
3469
3503
  );
3470
3504
  }
3471
3505
  const flowMetadata = await response.json();
@@ -3507,11 +3541,12 @@ var getOrganizationUnitChildren = async ({
3507
3541
  if (!response.ok) {
3508
3542
  const errorText = await response.text();
3509
3543
  throw new AsgardeoAPIError(
3510
- `Failed to fetch organization unit children: ${errorText}`,
3544
+ errorText,
3511
3545
  "getOrganizationUnitChildren-ResponseError-001",
3512
3546
  "javascript",
3513
3547
  response.status,
3514
- response.statusText
3548
+ response.statusText,
3549
+ "Failed to fetch organization unit children"
3515
3550
  );
3516
3551
  }
3517
3552
  const listResponse = await response.json();