@asgardeo/javascript 0.2.15 → 0.2.17
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/cjs/index.js +1 -0
- package/dist/cjs/index.js.map +2 -2
- package/dist/index.js +1 -0
- package/dist/index.js.map +2 -2
- package/dist/models/v2/embedded-flow-v2.d.ts +11 -1
- package/dist/models/v2/embedded-signin-flow-v2.d.ts +6 -1
- package/dist/models/v2/embedded-signup-flow-v2.d.ts +6 -1
- package/package.json +1 -1
|
@@ -53,7 +53,9 @@ export declare enum EmbeddedFlowComponentType {
|
|
|
53
53
|
/** Container block component that groups other components */
|
|
54
54
|
Block = "BLOCK",
|
|
55
55
|
/** Divider component for visual separation of content */
|
|
56
|
-
Divider = "DIVIDER"
|
|
56
|
+
Divider = "DIVIDER",
|
|
57
|
+
/** Select/dropdown input component for single choice selection */
|
|
58
|
+
Select = "SELECT"
|
|
57
59
|
}
|
|
58
60
|
/**
|
|
59
61
|
* Action variant types for buttons and interactive elements.
|
|
@@ -197,6 +199,14 @@ export interface EmbeddedFlowComponent {
|
|
|
197
199
|
* Nested child components for container components like Block.
|
|
198
200
|
*/
|
|
199
201
|
components?: EmbeddedFlowComponent[];
|
|
202
|
+
/**
|
|
203
|
+
* Options for SELECT components.
|
|
204
|
+
* Each option can be a string value or an object with value and label.
|
|
205
|
+
*/
|
|
206
|
+
options?: Array<string | {
|
|
207
|
+
value: string;
|
|
208
|
+
label: string;
|
|
209
|
+
}>;
|
|
200
210
|
}
|
|
201
211
|
/**
|
|
202
212
|
* Response data structure for embedded flow API.
|
|
@@ -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
|
-
*
|
|
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
|
-
|
|
194
|
+
action?: string;
|
|
190
195
|
inputs?: Record<string, any>;
|
|
191
196
|
}
|
|
192
197
|
/**
|