@asgardeo/javascript 0.2.14 → 0.2.16

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.
@@ -42,6 +42,10 @@ export declare enum EmbeddedFlowComponentType {
42
42
  PasswordInput = "PASSWORD_INPUT",
43
43
  /** Email input field with validation for email addresses. */
44
44
  EmailInput = "EMAIL_INPUT",
45
+ /** One-time password input field for multi-factor authentication */
46
+ OtpInput = "OTP_INPUT",
47
+ /** Phone number input field with country code support */
48
+ PhoneInput = "PHONE_INPUT",
45
49
  /** Text display component for labels, headings, and messages */
46
50
  Text = "TEXT",
47
51
  /** Interactive action component (buttons, links) for user interactions */
@@ -160,6 +160,11 @@ export interface EmbeddedSignInFlowResponse extends ExtendedEmbeddedSignInFlowRe
160
160
  * Used to maintain state across multiple API calls during the authentication process.
161
161
  */
162
162
  flowId: string;
163
+ /**
164
+ * Optional reason for flow failure in case of an error.
165
+ * Provides additional context when flowStatus is set to ERROR.
166
+ */
167
+ failureReason?: string;
163
168
  /**
164
169
  * Current status of the sign-in flow.
165
170
  * Determines the next action required by the client application.
@@ -275,7 +280,7 @@ export type EmbeddedSignInFlowInitiateRequest = {
275
280
  * // Continue existing flow with user input
276
281
  * const stepRequest: EmbeddedSignInFlowRequest = {
277
282
  * flowId: "flow_12345",
278
- * actionId: "action_001",
283
+ * action: "action_001",
279
284
  * inputs: {
280
285
  * username: "user@example.com",
281
286
  * password: "securePassword123"
@@ -134,6 +134,11 @@ export interface EmbeddedSignUpFlowResponse extends ExtendedEmbeddedSignUpFlowRe
134
134
  * Unique identifier for this sign-up flow instance.
135
135
  */
136
136
  flowId: string;
137
+ /**
138
+ * Optional reason for flow failure in case of an error.
139
+ * Provides additional context when flowStatus is set to ERROR.
140
+ */
141
+ failureReason?: string;
137
142
  /**
138
143
  * Current status of the sign-up flow.
139
144
  * Determines whether more input is needed or the flow is complete.
@@ -186,7 +191,7 @@ export type EmbeddedSignUpFlowInitiateRequest = {
186
191
  */
187
192
  export interface EmbeddedSignUpFlowRequest extends Partial<EmbeddedSignUpFlowInitiateRequest> {
188
193
  flowId?: string;
189
- actionId?: string;
194
+ action?: string;
190
195
  inputs?: Record<string, any>;
191
196
  }
192
197
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@asgardeo/javascript",
3
- "version": "0.2.14",
3
+ "version": "0.2.16",
4
4
  "description": "Framework agnostic JavaScript SDK for Asgardeo.",
5
5
  "keywords": [
6
6
  "asgardeo",