@asgardeo/javascript 0.3.0 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -17,7 +17,8 @@
17
17
  */
18
18
  export declare enum EmbeddedFlowType {
19
19
  Authentication = "AUTHENTICATION",
20
- Registration = "REGISTRATION"
20
+ Registration = "REGISTRATION",
21
+ UserOnboarding = "USER_ONBOARDING"
21
22
  }
22
23
  export interface EmbeddedFlowExecuteRequestPayload {
23
24
  actionId?: string;
@@ -41,6 +42,7 @@ export declare enum EmbeddedFlowResponseType {
41
42
  export interface EmbeddedSignUpFlowData {
42
43
  components?: EmbeddedFlowComponent[];
43
44
  redirectURL?: string;
45
+ additionalData?: Record<string, any>;
44
46
  }
45
47
  export interface EmbeddedFlowComponent {
46
48
  components: EmbeddedFlowComponent[];
@@ -308,6 +308,11 @@ export interface EmbeddedFlowResponseData {
308
308
  * Optional redirect URL for flow completion or external authentication.
309
309
  */
310
310
  redirectURL?: string;
311
+ /**
312
+ * Additional data dictionary for dynamic flow response properties.
313
+ * Can be used to pass custom data like passkey challenges, server alerts, etc.
314
+ */
315
+ additionalData?: Record<string, any>;
311
316
  }
312
317
  /**
313
318
  * Extended request configuration for Asgardeo V2 embedded flow operations.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@asgardeo/javascript",
3
- "version": "0.3.0",
3
+ "version": "0.5.0",
4
4
  "description": "Framework agnostic JavaScript SDK for Asgardeo.",
5
5
  "keywords": [
6
6
  "asgardeo",
@@ -46,7 +46,7 @@
46
46
  },
47
47
  "dependencies": {
48
48
  "tslib": "2.8.1",
49
- "@asgardeo/i18n": "0.3.9"
49
+ "@asgardeo/i18n": "0.4.0"
50
50
  },
51
51
  "publishConfig": {
52
52
  "access": "public"