@asgardeo/javascript 0.19.2 → 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.
Files changed (43) hide show
  1. package/dist/AsgardeoJavaScriptClient.d.ts +2 -1
  2. package/dist/AsgardeoJavaScriptClient.d.ts.map +1 -1
  3. package/dist/api/createOrganization.d.ts.map +1 -1
  4. package/dist/api/executeEmbeddedSignInFlow.d.ts.map +1 -1
  5. package/dist/api/executeEmbeddedSignUpFlow.d.ts.map +1 -1
  6. package/dist/api/getAllOrganizations.d.ts.map +1 -1
  7. package/dist/api/getBrandingPreference.d.ts.map +1 -1
  8. package/dist/api/getMeOrganizations.d.ts.map +1 -1
  9. package/dist/api/getOrganization.d.ts.map +1 -1
  10. package/dist/api/getSchemas.d.ts.map +1 -1
  11. package/dist/api/getScim2Me.d.ts.map +1 -1
  12. package/dist/api/getUserInfo.d.ts.map +1 -1
  13. package/dist/api/initializeEmbeddedSignInFlow.d.ts.map +1 -1
  14. package/dist/api/updateMeProfile.d.ts.map +1 -1
  15. package/dist/api/updateOrganization.d.ts.map +1 -1
  16. package/dist/api/v2/executeEmbeddedRecoveryFlowV2.d.ts +57 -0
  17. package/dist/api/v2/executeEmbeddedRecoveryFlowV2.d.ts.map +1 -0
  18. package/dist/api/v2/executeEmbeddedSignInFlowV2.d.ts.map +1 -1
  19. package/dist/api/v2/executeEmbeddedSignUpFlowV2.d.ts.map +1 -1
  20. package/dist/api/v2/executeEmbeddedUserOnboardingFlowV2.d.ts.map +1 -1
  21. package/dist/api/v2/getFlowMetaV2.d.ts.map +1 -1
  22. package/dist/api/v2/getOrganizationUnitChildren.d.ts.map +1 -1
  23. package/dist/cjs/index.js +147 -40
  24. package/dist/cjs/index.js.map +4 -4
  25. package/dist/edge/index.js +144 -40
  26. package/dist/edge/index.js.map +4 -4
  27. package/dist/errors/AsgardeoAPIError.d.ts +9 -3
  28. package/dist/errors/AsgardeoAPIError.d.ts.map +1 -1
  29. package/dist/index.d.ts +3 -1
  30. package/dist/index.d.ts.map +1 -1
  31. package/dist/index.js +144 -40
  32. package/dist/index.js.map +4 -4
  33. package/dist/models/client.d.ts +8 -1
  34. package/dist/models/client.d.ts.map +1 -1
  35. package/dist/models/config.d.ts +1 -1
  36. package/dist/models/config.d.ts.map +1 -1
  37. package/dist/models/embedded-flow.d.ts +3 -2
  38. package/dist/models/embedded-flow.d.ts.map +1 -1
  39. package/dist/models/v2/embedded-recovery-flow-v2.d.ts +143 -0
  40. package/dist/models/v2/embedded-recovery-flow-v2.d.ts.map +1 -0
  41. package/dist/utils/parseApiErrorMessage.d.ts +29 -0
  42. package/dist/utils/parseApiErrorMessage.d.ts.map +1 -0
  43. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright (c) 2025, WSO2 LLC. (https://www.wso2.com).
2
+ * Copyright (c) 2025-2026, WSO2 LLC. (https://www.wso2.com).
3
3
  *
4
4
  * WSO2 LLC. licenses this file to you under the Apache License,
5
5
  * Version 2.0 (the "License"); you may not use this file except
@@ -55,6 +55,7 @@ declare class AsgardeoJavaScriptClient<T = Config> implements AsgardeoClient<T>
55
55
  decodeJwtToken<R = Record<string, unknown>>(_token: string): Promise<R>;
56
56
  signIn(_options?: SignInOptions): Promise<User>;
57
57
  signOut(_options?: SignOutOptions, _sessionIdOrAfterSignOut?: string | ((afterSignOutUrl: string) => void), _afterSignOut?: (afterSignOutUrl: string) => void): Promise<string>;
58
+ recover(_payload: EmbeddedFlowExecuteRequestPayload): Promise<EmbeddedFlowExecuteResponse>;
58
59
  signUp(options?: SignUpOptions): Promise<void>;
59
60
  signUp(payload: EmbeddedFlowExecuteRequestPayload): Promise<EmbeddedFlowExecuteResponse>;
60
61
  getAgentToken(agentConfig: AgentConfig): Promise<TokenResponse>;
@@ -1 +1 @@
1
- {"version":3,"file":"AsgardeoJavaScriptClient.d.ts","sourceRoot":"","sources":["../src/AsgardeoJavaScriptClient.ts"],"names":[],"mappings":"AAA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ACpC;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;;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,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwDG;AACH,QAAA,MAAM,mBAAmB,qEAOtB,yBAAyB,KAAG,OAAO,CAAC,2BAA2B,CAyEjE,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
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;;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,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwDG;AACH,QAAA,MAAM,mBAAmB,qEAOtB,yBAAyB,KAAG,OAAO,CAAC,2BAA2B,CA0EjE,CAAC;AAEF,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;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,CAsE1D,CAAC;AAEF,eAAe,qBAAqB,CAAC"}
@@ -1 +1 @@
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,IA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;GAoDG;AACH,QAAA,MAAM,eAAe,2DAKlB,qBAAqB,KAAG,OAAO,CAAC,mBAAmB,CAmErD,CAAC;AAEF,eAAe,eAAe,CAAC"}
@@ -1 +1 @@
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,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;;GAEG;AACH,MAAM,WAAW,qBAAsB,SAAQ,IAAI,CAAC,WAAW,EAAE,QAAQ,GAAG,MAAM,CAAC;IACjF;;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,OAAO,EAAE,GAAG,CAAC;IACb;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,QAAA,MAAM,eAAe,yDAMlB,qBAAqB,KAAG,OAAO,CAAC,IAAI,CAuEtC,CAAC;AAEF,eAAe,eAAe,CAAC"}
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;;GAEG;AACH,MAAM,WAAW,qBAAsB,SAAQ,IAAI,CAAC,WAAW,EAAE,QAAQ,GAAG,MAAM,CAAC;IACjF;;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,OAAO,EAAE,GAAG,CAAC;IACb;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,QAAA,MAAM,eAAe,yDAMlB,qBAAqB,KAAG,OAAO,CAAC,IAAI,CAwEtC,CAAC;AAEF,eAAe,eAAe,CAAC"}
@@ -1 +1 @@
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;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,EA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G;AACH,QAAA,MAAM,kBAAkB,uEAMrB,wBAAwB,KAAG,OAAO,CAAC,mBAAmB,CA8ExD,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"}
@@ -0,0 +1,57 @@
1
+ /**
2
+ * Copyright (c) 2026, WSO2 LLC. (https://www.wso2.com).
3
+ *
4
+ * WSO2 LLC. licenses this file to you under the Apache License,
5
+ * Version 2.0 (the "License"); you may not use this file except
6
+ * in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing,
12
+ * software distributed under the License is distributed on an
13
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ * KIND, either express or implied. See the License for the
15
+ * specific language governing permissions and limitations
16
+ * under the License.
17
+ */
18
+ import { EmbeddedFlowExecuteRequestConfig as EmbeddedFlowExecuteRequestConfigV2 } from '../../models/v2/embedded-flow-v2';
19
+ import { EmbeddedRecoveryFlowResponse } from '../../models/v2/embedded-recovery-flow-v2';
20
+ /**
21
+ * Executes an embedded recovery flow by sending a request to the flow execution endpoint.
22
+ *
23
+ * This function handles password-recovery and account-recovery flows driven by the
24
+ * Asgardeo server. The server returns UI components for each step (e.g. username
25
+ * collection, OTP verification, password reset) and this function forwards the
26
+ * user's responses back to the server.
27
+ *
28
+ * @param requestConfig - Request configuration containing URL, payload, and optional headers.
29
+ * @returns A promise that resolves with the flow execution response.
30
+ * @throws AsgardeoAPIError when the request fails or a payload is missing.
31
+ *
32
+ * @example
33
+ * ```typescript
34
+ * // Initiate recovery flow
35
+ * const response = await executeEmbeddedRecoveryFlowV2({
36
+ * baseUrl: 'https://api.asgardeo.io/t/myorg',
37
+ * payload: {
38
+ * flowType: 'RECOVERY',
39
+ * applicationId: 'my-app-id',
40
+ * },
41
+ * });
42
+ *
43
+ * // Continue recovery flow with user input
44
+ * const nextResponse = await executeEmbeddedRecoveryFlowV2({
45
+ * baseUrl: 'https://api.asgardeo.io/t/myorg',
46
+ * payload: {
47
+ * executionId: response.executionId,
48
+ * action: 'submit',
49
+ * inputs: { username: 'user@example.com' },
50
+ * challengeToken: response.challengeToken,
51
+ * },
52
+ * });
53
+ * ```
54
+ */
55
+ declare const executeEmbeddedRecoveryFlowV2: ({ url, baseUrl, payload, ...requestConfig }: EmbeddedFlowExecuteRequestConfigV2) => Promise<EmbeddedRecoveryFlowResponse>;
56
+ export default executeEmbeddedRecoveryFlowV2;
57
+ //# sourceMappingURL=executeEmbeddedRecoveryFlowV2.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"executeEmbeddedRecoveryFlowV2.d.ts","sourceRoot":"","sources":["../../../src/api/v2/executeEmbeddedRecoveryFlowV2.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAGH,OAAO,EAAC,gCAAgC,IAAI,kCAAkC,EAAC,MAAM,kCAAkC,CAAC;AACxH,OAAO,EAAC,4BAA4B,EAAC,MAAM,2CAA2C,CAAC;AAEvF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,QAAA,MAAM,6BAA6B,gDAKhC,kCAAkC,KAAG,OAAO,CAAC,4BAA4B,CAqE3E,CAAC;AAEF,eAAe,6BAA6B,CAAC"}
@@ -1 +1 @@
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,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
@@ -49,6 +49,8 @@ __export(index_exports, {
49
49
  EmbeddedFlowStatus: () => EmbeddedFlowStatus,
50
50
  EmbeddedFlowTextVariantV2: () => EmbeddedFlowTextVariant,
51
51
  EmbeddedFlowType: () => EmbeddedFlowType,
52
+ EmbeddedRecoveryFlowStatusV2: () => EmbeddedRecoveryFlowStatus,
53
+ EmbeddedRecoveryFlowTypeV2: () => EmbeddedRecoveryFlowType,
52
54
  EmbeddedSignInFlowAuthenticatorKnownIdPType: () => EmbeddedSignInFlowAuthenticatorKnownIdPType,
53
55
  EmbeddedSignInFlowAuthenticatorParamType: () => EmbeddedSignInFlowAuthenticatorParamType,
54
56
  EmbeddedSignInFlowAuthenticatorPromptType: () => EmbeddedSignInFlowAuthenticatorPromptType,
@@ -86,6 +88,7 @@ __export(index_exports, {
86
88
  deepMerge: () => deepMerge_default,
87
89
  deriveOrganizationHandleFromBaseUrl: () => deriveOrganizationHandleFromBaseUrl_default,
88
90
  error: () => error,
91
+ executeEmbeddedRecoveryFlowV2: () => executeEmbeddedRecoveryFlowV2_default,
89
92
  executeEmbeddedSignInFlow: () => executeEmbeddedSignInFlow_default,
90
93
  executeEmbeddedSignInFlowV2: () => executeEmbeddedSignInFlowV2_default,
91
94
  executeEmbeddedSignUpFlow: () => executeEmbeddedSignUpFlow_default,
@@ -2154,20 +2157,37 @@ var _AsgardeoAuthClient = class _AsgardeoAuthClient {
2154
2157
  __publicField(_AsgardeoAuthClient, "authHelperInstance");
2155
2158
  var AsgardeoAuthClient = _AsgardeoAuthClient;
2156
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
+
2157
2174
  // src/errors/AsgardeoAPIError.ts
2158
2175
  var AsgardeoAPIError = class extends AsgardeoError {
2159
2176
  /**
2160
2177
  * Creates an instance of AsgardeoAPIError.
2161
2178
  *
2162
- * @param message - Human-readable description of the error
2179
+ * @param message - Human-readable description or raw API error response body
2163
2180
  * @param code - A unique error code that identifies the error type
2181
+ * @param origin - The SDK origin (e.g. 'react', 'vue')
2164
2182
  * @param statusCode - HTTP status code of the failed request
2165
2183
  * @param statusText - HTTP status text of the failed request
2166
- * @param origin - Optional. The SDK origin (e.g. 'react', 'vue'). Defaults to generic 'Asgardeo'
2184
+ * @param prefix - Optional prefix prepended to the resolved message
2167
2185
  * @constructor
2168
2186
  */
2169
- constructor(message, code, origin, statusCode, statusText) {
2170
- 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);
2171
2191
  this.statusCode = statusCode;
2172
2192
  this.statusText = statusText;
2173
2193
  Object.defineProperty(this, "name", {
@@ -2234,11 +2254,12 @@ var initializeEmbeddedSignInFlow = async ({
2234
2254
  if (!response.ok) {
2235
2255
  const errorText = await response.text();
2236
2256
  throw new AsgardeoAPIError(
2237
- `Authorization request failed: ${errorText}`,
2257
+ errorText,
2238
2258
  "initializeEmbeddedSignInFlow-ResponseError-001",
2239
2259
  "javascript",
2240
2260
  response.status,
2241
- response.statusText
2261
+ response.statusText,
2262
+ "Authorization request failed"
2242
2263
  );
2243
2264
  }
2244
2265
  return await response.json();
@@ -2298,11 +2319,12 @@ var executeEmbeddedSignInFlow = async ({
2298
2319
  if (!response.ok) {
2299
2320
  const errorText = await response.text();
2300
2321
  throw new AsgardeoAPIError(
2301
- `Authorization request failed: ${errorText}`,
2322
+ errorText,
2302
2323
  "initializeEmbeddedSignInFlow-ResponseError-001",
2303
2324
  "javascript",
2304
2325
  response.status,
2305
- response.statusText
2326
+ response.statusText,
2327
+ "Authorization request failed"
2306
2328
  );
2307
2329
  }
2308
2330
  return await response.json();
@@ -2324,6 +2346,7 @@ var executeEmbeddedSignInFlow_default = executeEmbeddedSignInFlow;
2324
2346
  // src/models/embedded-flow.ts
2325
2347
  var EmbeddedFlowType = /* @__PURE__ */ ((EmbeddedFlowType2) => {
2326
2348
  EmbeddedFlowType2["Authentication"] = "AUTHENTICATION";
2349
+ EmbeddedFlowType2["Recovery"] = "RECOVERY";
2327
2350
  EmbeddedFlowType2["Registration"] = "REGISTRATION";
2328
2351
  EmbeddedFlowType2["UserOnboarding"] = "USER_ONBOARDING";
2329
2352
  return EmbeddedFlowType2;
@@ -2395,11 +2418,12 @@ var executeEmbeddedSignUpFlow = async ({
2395
2418
  if (!response.ok) {
2396
2419
  const errorText = await response.text();
2397
2420
  throw new AsgardeoAPIError(
2398
- `Embedded SignUp flow execution failed: ${errorText}`,
2421
+ errorText,
2399
2422
  "javascript-executeEmbeddedSignUpFlow-ResponseError-100",
2400
2423
  "javascript",
2401
2424
  response.status,
2402
- response.statusText
2425
+ response.statusText,
2426
+ "Embedded SignUp flow execution failed"
2403
2427
  );
2404
2428
  }
2405
2429
  return await response.json();
@@ -2444,11 +2468,12 @@ var getUserInfo = async ({ url, ...requestConfig }) => {
2444
2468
  if (!response.ok) {
2445
2469
  const errorText = await response.text();
2446
2470
  throw new AsgardeoAPIError(
2447
- `Failed to fetch user info: ${errorText}`,
2471
+ errorText,
2448
2472
  "getUserInfo-ResponseError-001",
2449
2473
  "javascript",
2450
2474
  response.status,
2451
- response.statusText
2475
+ response.statusText,
2476
+ "Failed to fetch user info"
2452
2477
  );
2453
2478
  }
2454
2479
  return await response.json();
@@ -2522,11 +2547,12 @@ var getScim2Me = async ({ url, baseUrl, fetcher, ...requestConfig }) => {
2522
2547
  if (!response?.ok) {
2523
2548
  const errorText = await response.text();
2524
2549
  throw new AsgardeoAPIError(
2525
- `Failed to fetch user profile: ${errorText}`,
2550
+ errorText,
2526
2551
  "getScim2Me-ResponseError-001",
2527
2552
  "javascript",
2528
2553
  response.status,
2529
- response.statusText
2554
+ response.statusText,
2555
+ "Failed to fetch user profile"
2530
2556
  );
2531
2557
  }
2532
2558
  const user = await response.json();
@@ -2575,11 +2601,12 @@ var getSchemas = async ({ url, baseUrl, fetcher, ...requestConfig }) => {
2575
2601
  if (!response?.ok) {
2576
2602
  const errorText = await response.text();
2577
2603
  throw new AsgardeoAPIError(
2578
- `Failed to fetch SCIM2 schemas: ${errorText}`,
2604
+ errorText,
2579
2605
  "getSchemas-ResponseError-001",
2580
2606
  "javascript",
2581
2607
  response.status,
2582
- response.statusText
2608
+ response.statusText,
2609
+ "Failed to fetch SCIM2 schemas"
2583
2610
  );
2584
2611
  }
2585
2612
  return await response.json();
@@ -2643,11 +2670,12 @@ var getAllOrganizations = async ({
2643
2670
  if (!response?.ok) {
2644
2671
  const errorText = await response.text();
2645
2672
  throw new AsgardeoAPIError(
2646
- `Failed to get organizations: ${errorText}`,
2673
+ errorText,
2647
2674
  "getAllOrganizations-ResponseError-001",
2648
2675
  "javascript",
2649
2676
  response.status,
2650
- response.statusText
2677
+ response.statusText,
2678
+ "Failed to get organizations"
2651
2679
  );
2652
2680
  }
2653
2681
  const data = await response.json();
@@ -2720,11 +2748,12 @@ var createOrganization = async ({
2720
2748
  if (!response?.ok) {
2721
2749
  const errorText = await response.text();
2722
2750
  throw new AsgardeoAPIError(
2723
- `Failed to create organization: ${errorText}`,
2751
+ errorText,
2724
2752
  "createOrganization-ResponseError-001",
2725
2753
  "javascript",
2726
2754
  response.status,
2727
- response.statusText
2755
+ response.statusText,
2756
+ "Failed to create organization"
2728
2757
  );
2729
2758
  }
2730
2759
  return await response.json();
@@ -2794,11 +2823,12 @@ var getMeOrganizations = async ({
2794
2823
  if (!response?.ok) {
2795
2824
  const errorText = await response.text();
2796
2825
  throw new AsgardeoAPIError(
2797
- `Failed to fetch associated organizations of the user: ${errorText}`,
2826
+ errorText,
2798
2827
  "getMeOrganizations-ResponseError-001",
2799
2828
  "javascript",
2800
2829
  response.status,
2801
- response.statusText
2830
+ response.statusText,
2831
+ "Failed to fetch associated organizations of the user"
2802
2832
  );
2803
2833
  }
2804
2834
  const data = await response.json();
@@ -2861,11 +2891,12 @@ var getOrganization = async ({
2861
2891
  if (!response?.ok) {
2862
2892
  const errorText = await response.text();
2863
2893
  throw new AsgardeoAPIError(
2864
- `Failed to fetch organization details: ${errorText}`,
2894
+ errorText,
2865
2895
  "getOrganization-ResponseError-001",
2866
2896
  "javascript",
2867
2897
  response.status,
2868
- response.statusText
2898
+ response.statusText,
2899
+ "Failed to fetch organization details"
2869
2900
  );
2870
2901
  }
2871
2902
  return await response.json();
@@ -2956,11 +2987,12 @@ var updateOrganization = async ({
2956
2987
  if (!response?.ok) {
2957
2988
  const errorText = await response.text();
2958
2989
  throw new AsgardeoAPIError(
2959
- `Failed to update organization: ${errorText}`,
2990
+ errorText,
2960
2991
  "updateOrganization-ResponseError-001",
2961
2992
  "javascript",
2962
2993
  response.status,
2963
- response.statusText
2994
+ response.statusText,
2995
+ "Failed to update organization"
2964
2996
  );
2965
2997
  }
2966
2998
  return await response.json();
@@ -3037,11 +3069,12 @@ var updateMeProfile = async ({
3037
3069
  if (!response?.ok) {
3038
3070
  const errorText = await response.text();
3039
3071
  throw new AsgardeoAPIError(
3040
- `Failed to update user profile: ${errorText}`,
3072
+ errorText,
3041
3073
  "updateMeProfile-ResponseError-001",
3042
3074
  "javascript",
3043
3075
  response.status,
3044
- response.statusText
3076
+ response.statusText,
3077
+ "Failed to update user profile"
3045
3078
  );
3046
3079
  }
3047
3080
  return processUsername_default(await response.json());
@@ -3105,11 +3138,12 @@ var getBrandingPreference = async ({
3105
3138
  if (!response?.ok) {
3106
3139
  const errorText = await response.text();
3107
3140
  throw new AsgardeoAPIError(
3108
- `Failed to get branding preference: ${errorText}`,
3141
+ errorText,
3109
3142
  "getBrandingPreference-ResponseError-001",
3110
3143
  "javascript",
3111
3144
  response.status,
3112
- response.statusText
3145
+ response.statusText,
3146
+ "Failed to get branding preference"
3113
3147
  );
3114
3148
  }
3115
3149
  const data = await response.json();
@@ -3177,11 +3211,12 @@ var executeEmbeddedSignInFlowV2 = async ({
3177
3211
  if (!response.ok) {
3178
3212
  const errorText = await response.text();
3179
3213
  throw new AsgardeoAPIError(
3180
- `Authorization request failed: ${errorText}`,
3214
+ errorText,
3181
3215
  "executeEmbeddedSignInFlow-ResponseError-001",
3182
3216
  "javascript",
3183
3217
  response.status,
3184
- response.statusText
3218
+ response.statusText,
3219
+ "Authorization request failed"
3185
3220
  );
3186
3221
  }
3187
3222
  const flowResponse = await response.json();
@@ -3277,11 +3312,12 @@ var executeEmbeddedSignUpFlowV2 = async ({
3277
3312
  if (!response.ok) {
3278
3313
  const errorText = await response.text();
3279
3314
  throw new AsgardeoAPIError(
3280
- `Registration request failed: ${errorText}`,
3315
+ errorText,
3281
3316
  "executeEmbeddedSignUpFlow-ResponseError-001",
3282
3317
  "javascript",
3283
3318
  response.status,
3284
- response.statusText
3319
+ response.statusText,
3320
+ "Registration request failed"
3285
3321
  );
3286
3322
  }
3287
3323
  const flowResponse = await response.json();
@@ -3329,6 +3365,55 @@ var executeEmbeddedSignUpFlowV2 = async ({
3329
3365
  };
3330
3366
  var executeEmbeddedSignUpFlowV2_default = executeEmbeddedSignUpFlowV2;
3331
3367
 
3368
+ // src/api/v2/executeEmbeddedRecoveryFlowV2.ts
3369
+ var executeEmbeddedRecoveryFlowV2 = async ({
3370
+ url,
3371
+ baseUrl,
3372
+ payload,
3373
+ ...requestConfig
3374
+ }) => {
3375
+ if (!payload) {
3376
+ throw new AsgardeoAPIError(
3377
+ "Recovery payload is required",
3378
+ "executeEmbeddedRecoveryFlow-ValidationError-002",
3379
+ "javascript",
3380
+ 400,
3381
+ "If a recovery payload is not provided, the request cannot be constructed correctly."
3382
+ );
3383
+ }
3384
+ const endpoint = url ?? `${baseUrl}/flow/execute`;
3385
+ const cleanPayload = typeof payload === "object" && payload !== null ? Object.fromEntries(Object.entries(payload).filter(([key]) => key !== "verbose")) : payload;
3386
+ const hasOnlyAppIdAndFlowType = typeof cleanPayload === "object" && cleanPayload !== null && "applicationId" in cleanPayload && "flowType" in cleanPayload && Object.keys(cleanPayload).length === 2;
3387
+ const hasOnlyFlowId = typeof cleanPayload === "object" && cleanPayload !== null && "executionId" in cleanPayload && Object.keys(cleanPayload).length === 1;
3388
+ const requestPayload = hasOnlyAppIdAndFlowType || hasOnlyFlowId ? {
3389
+ ...cleanPayload,
3390
+ verbose: true
3391
+ } : cleanPayload;
3392
+ const response = await fetch(endpoint, {
3393
+ ...requestConfig,
3394
+ body: JSON.stringify(requestPayload),
3395
+ headers: {
3396
+ Accept: "application/json",
3397
+ "Content-Type": "application/json",
3398
+ ...requestConfig.headers
3399
+ },
3400
+ method: requestConfig.method || "POST"
3401
+ });
3402
+ if (!response.ok) {
3403
+ const errorText = await response.text();
3404
+ throw new AsgardeoAPIError(
3405
+ `Recovery request failed: ${errorText}`,
3406
+ "executeEmbeddedRecoveryFlow-ResponseError-001",
3407
+ "javascript",
3408
+ response.status,
3409
+ response.statusText
3410
+ );
3411
+ }
3412
+ const flowResponse = await response.json();
3413
+ return flowResponse;
3414
+ };
3415
+ var executeEmbeddedRecoveryFlowV2_default = executeEmbeddedRecoveryFlowV2;
3416
+
3332
3417
  // src/api/v2/executeEmbeddedUserOnboardingFlowV2.ts
3333
3418
  var executeEmbeddedUserOnboardingFlowV2 = async ({
3334
3419
  url,
@@ -3367,11 +3452,12 @@ var executeEmbeddedUserOnboardingFlowV2 = async ({
3367
3452
  if (!response.ok) {
3368
3453
  const errorText = await response.text();
3369
3454
  throw new AsgardeoAPIError(
3370
- `User onboarding request failed: ${errorText}`,
3455
+ errorText,
3371
3456
  "executeEmbeddedUserOnboardingFlow-ResponseError-001",
3372
3457
  "javascript",
3373
3458
  response.status,
3374
- response.statusText
3459
+ response.statusText,
3460
+ "User onboarding request failed"
3375
3461
  );
3376
3462
  }
3377
3463
  const flowResponse = await response.json();
@@ -3408,11 +3494,12 @@ var getFlowMetaV2 = async ({
3408
3494
  if (!response.ok) {
3409
3495
  const errorText = await response.text();
3410
3496
  throw new AsgardeoAPIError(
3411
- `Flow metadata request failed: ${errorText}`,
3497
+ errorText,
3412
3498
  "getFlowMetaV2-ResponseError-001",
3413
3499
  "javascript",
3414
3500
  response.status,
3415
- response.statusText
3501
+ response.statusText,
3502
+ "Flow metadata request failed"
3416
3503
  );
3417
3504
  }
3418
3505
  const flowMetadata = await response.json();
@@ -3454,11 +3541,12 @@ var getOrganizationUnitChildren = async ({
3454
3541
  if (!response.ok) {
3455
3542
  const errorText = await response.text();
3456
3543
  throw new AsgardeoAPIError(
3457
- `Failed to fetch organization unit children: ${errorText}`,
3544
+ errorText,
3458
3545
  "getOrganizationUnitChildren-ResponseError-001",
3459
3546
  "javascript",
3460
3547
  response.status,
3461
- response.statusText
3548
+ response.statusText,
3549
+ "Failed to fetch organization unit children"
3462
3550
  );
3463
3551
  }
3464
3552
  const listResponse = await response.json();
@@ -3590,6 +3678,19 @@ var EmbeddedFlowEventType = /* @__PURE__ */ ((EmbeddedFlowEventType2) => {
3590
3678
  return EmbeddedFlowEventType2;
3591
3679
  })(EmbeddedFlowEventType || {});
3592
3680
 
3681
+ // src/models/v2/embedded-recovery-flow-v2.ts
3682
+ var EmbeddedRecoveryFlowStatus = /* @__PURE__ */ ((EmbeddedRecoveryFlowStatus2) => {
3683
+ EmbeddedRecoveryFlowStatus2["Complete"] = "COMPLETE";
3684
+ EmbeddedRecoveryFlowStatus2["Error"] = "ERROR";
3685
+ EmbeddedRecoveryFlowStatus2["Incomplete"] = "INCOMPLETE";
3686
+ return EmbeddedRecoveryFlowStatus2;
3687
+ })(EmbeddedRecoveryFlowStatus || {});
3688
+ var EmbeddedRecoveryFlowType = /* @__PURE__ */ ((EmbeddedRecoveryFlowType2) => {
3689
+ EmbeddedRecoveryFlowType2["Redirection"] = "REDIRECTION";
3690
+ EmbeddedRecoveryFlowType2["View"] = "VIEW";
3691
+ return EmbeddedRecoveryFlowType2;
3692
+ })(EmbeddedRecoveryFlowType || {});
3693
+
3593
3694
  // src/models/v2/flow-meta-v2.ts
3594
3695
  var FlowMetaType = /* @__PURE__ */ ((FlowMetaType2) => {
3595
3696
  FlowMetaType2["App"] = "APP";
@@ -3794,6 +3895,9 @@ var AsgardeoJavaScriptClient = class {
3794
3895
  signOut(_options, _sessionIdOrAfterSignOut, _afterSignOut) {
3795
3896
  throw new Error("Method not implemented.");
3796
3897
  }
3898
+ recover(_payload) {
3899
+ throw new Error("Method not implemented.");
3900
+ }
3797
3901
  signUp(_optionsOrPayload) {
3798
3902
  throw new Error("Method not implemented.");
3799
3903
  }
@@ -5557,6 +5661,8 @@ var HttpClient = _HttpClient;
5557
5661
  EmbeddedFlowStatus,
5558
5662
  EmbeddedFlowTextVariantV2,
5559
5663
  EmbeddedFlowType,
5664
+ EmbeddedRecoveryFlowStatusV2,
5665
+ EmbeddedRecoveryFlowTypeV2,
5560
5666
  EmbeddedSignInFlowAuthenticatorKnownIdPType,
5561
5667
  EmbeddedSignInFlowAuthenticatorParamType,
5562
5668
  EmbeddedSignInFlowAuthenticatorPromptType,
@@ -5594,6 +5700,7 @@ var HttpClient = _HttpClient;
5594
5700
  deepMerge,
5595
5701
  deriveOrganizationHandleFromBaseUrl,
5596
5702
  error,
5703
+ executeEmbeddedRecoveryFlowV2,
5597
5704
  executeEmbeddedSignInFlow,
5598
5705
  executeEmbeddedSignInFlowV2,
5599
5706
  executeEmbeddedSignUpFlow,