@thunderid/javascript 0.3.0 → 0.3.6
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/StorageManager.d.ts +2 -2
- package/dist/StorageManager.d.ts.map +1 -1
- package/dist/ThunderIDJavaScriptClient.d.ts +2 -7
- package/dist/ThunderIDJavaScriptClient.d.ts.map +1 -1
- package/dist/api/{v2/executeEmbeddedRecoveryFlowV2.d.ts → executeEmbeddedRecoveryFlow.d.ts} +7 -7
- package/dist/api/executeEmbeddedRecoveryFlow.d.ts.map +1 -0
- package/dist/api/executeEmbeddedSignInFlow.d.ts +3 -3
- package/dist/api/executeEmbeddedSignInFlow.d.ts.map +1 -1
- package/dist/api/executeEmbeddedSignUpFlow.d.ts +4 -27
- package/dist/api/executeEmbeddedSignUpFlow.d.ts.map +1 -1
- package/dist/api/{v2/executeEmbeddedUserOnboardingFlowV2.d.ts → executeEmbeddedUserOnboardingFlow.d.ts} +6 -6
- package/dist/api/executeEmbeddedUserOnboardingFlow.d.ts.map +1 -0
- package/dist/api/getBrandingPreference.d.ts.map +1 -1
- package/dist/api/{v2/getFlowMetaV2.d.ts → getFlowMeta.d.ts} +7 -7
- package/dist/api/getFlowMeta.d.ts.map +1 -0
- package/dist/api/{v2/getOrganizationUnitChildren.d.ts → getOrganizationUnitChildren.d.ts} +1 -1
- package/dist/api/getOrganizationUnitChildren.d.ts.map +1 -0
- package/dist/cjs/index.cjs +1096 -1342
- package/dist/edge/index.js +1084 -1319
- package/dist/i18n/models/i18n.d.ts +3 -0
- package/dist/i18n/models/i18n.d.ts.map +1 -1
- package/dist/i18n/translations/en-US.d.ts.map +1 -1
- package/dist/i18n/translations/fr-FR.d.ts.map +1 -1
- package/dist/i18n/translations/hi-IN.d.ts.map +1 -1
- package/dist/i18n/translations/ja-JP.d.ts.map +1 -1
- package/dist/i18n/translations/pt-BR.d.ts.map +1 -1
- package/dist/i18n/translations/pt-PT.d.ts.map +1 -1
- package/dist/i18n/translations/si-LK.d.ts.map +1 -1
- package/dist/i18n/translations/ta-IN.d.ts.map +1 -1
- package/dist/i18n/translations/te-IN.d.ts.map +1 -1
- package/dist/index.d.ts +29 -36
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1084 -1319
- package/dist/models/client.d.ts +3 -28
- package/dist/models/client.d.ts.map +1 -1
- package/dist/models/config.d.ts +1 -1
- package/dist/models/config.d.ts.map +1 -1
- package/dist/models/embedded-flow.d.ts +572 -92
- package/dist/models/embedded-flow.d.ts.map +1 -1
- package/dist/models/{v2/embedded-recovery-flow-v2.d.ts → embedded-recovery-flow.d.ts} +2 -3
- package/dist/models/embedded-recovery-flow.d.ts.map +1 -0
- package/dist/models/embedded-signin-flow.d.ts +310 -66
- package/dist/models/embedded-signin-flow.d.ts.map +1 -1
- package/dist/models/{v2/embedded-signup-flow-v2.d.ts → embedded-signup-flow.d.ts} +4 -5
- package/dist/models/embedded-signup-flow.d.ts.map +1 -0
- package/dist/models/extensions/components.d.ts +55 -0
- package/dist/models/extensions/components.d.ts.map +1 -0
- package/dist/models/{v2/flow-meta-v2.d.ts → flow-meta.d.ts} +1 -1
- package/dist/models/flow-meta.d.ts.map +1 -0
- package/dist/models/organization-unit.d.ts.map +1 -0
- package/dist/models/translation.d.ts.map +1 -0
- package/dist/models/{v2/vars.d.ts → vars.d.ts} +1 -1
- package/dist/models/vars.d.ts.map +1 -0
- package/dist/utils/buildValidatorFromRules.d.ts +31 -0
- package/dist/utils/buildValidatorFromRules.d.ts.map +1 -0
- package/dist/utils/containsMetaFlowTemplateLiteral.d.ts.map +1 -0
- package/dist/utils/countryCodeToFlagEmoji.d.ts.map +1 -0
- package/dist/utils/evaluateValidationRule.d.ts +42 -0
- package/dist/utils/evaluateValidationRule.d.ts.map +1 -0
- package/dist/utils/extractEmojiFromUri.d.ts.map +1 -0
- package/dist/utils/getRedirectBasedSignUpUrl.d.ts +1 -1
- package/dist/utils/getRedirectBasedSignUpUrl.d.ts.map +1 -1
- package/dist/utils/injectRequestedPermissions.d.ts.map +1 -0
- package/dist/utils/isEmojiUri.d.ts.map +1 -0
- package/dist/utils/isMetaFlowTemplateLiteral.d.ts.map +1 -0
- package/dist/utils/isTranslationFlowTemplateLiteral.d.ts.map +1 -0
- package/dist/utils/parseApiErrorMessage.d.ts.map +1 -1
- package/dist/utils/parseFlowTemplateLiteral.d.ts.map +1 -0
- package/dist/utils/{v2/resolveFlowTemplateLiterals.d.ts → resolveFlowTemplateLiterals.d.ts} +2 -2
- package/dist/utils/resolveFlowTemplateLiterals.d.ts.map +1 -0
- package/dist/utils/resolveLocaleDisplayName.d.ts.map +1 -0
- package/dist/utils/resolveLocaleEmoji.d.ts.map +1 -0
- package/dist/utils/{v2/resolveMeta.d.ts → resolveMeta.d.ts} +1 -1
- package/dist/utils/resolveMeta.d.ts.map +1 -0
- package/package.json +7 -7
- package/dist/api/initializeEmbeddedSignInFlow.d.ts +0 -52
- package/dist/api/initializeEmbeddedSignInFlow.d.ts.map +0 -1
- package/dist/api/v2/executeEmbeddedRecoveryFlowV2.d.ts.map +0 -1
- package/dist/api/v2/executeEmbeddedSignInFlowV2.d.ts +0 -22
- package/dist/api/v2/executeEmbeddedSignInFlowV2.d.ts.map +0 -1
- package/dist/api/v2/executeEmbeddedSignUpFlowV2.d.ts +0 -22
- package/dist/api/v2/executeEmbeddedSignUpFlowV2.d.ts.map +0 -1
- package/dist/api/v2/executeEmbeddedUserOnboardingFlowV2.d.ts.map +0 -1
- package/dist/api/v2/getFlowMetaV2.d.ts.map +0 -1
- package/dist/api/v2/getOrganizationUnitChildren.d.ts.map +0 -1
- package/dist/constants/v2/OIDCDiscoveryConstants.d.ts +0 -40
- package/dist/constants/v2/OIDCDiscoveryConstants.d.ts.map +0 -1
- package/dist/models/platforms.d.ts +0 -33
- package/dist/models/platforms.d.ts.map +0 -1
- package/dist/models/v2/embedded-flow-v2.d.ts +0 -550
- package/dist/models/v2/embedded-flow-v2.d.ts.map +0 -1
- package/dist/models/v2/embedded-recovery-flow-v2.d.ts.map +0 -1
- package/dist/models/v2/embedded-signin-flow-v2.d.ts +0 -345
- package/dist/models/v2/embedded-signin-flow-v2.d.ts.map +0 -1
- package/dist/models/v2/embedded-signup-flow-v2.d.ts.map +0 -1
- package/dist/models/v2/extensions/components.d.ts +0 -89
- package/dist/models/v2/extensions/components.d.ts.map +0 -1
- package/dist/models/v2/flow-meta-v2.d.ts.map +0 -1
- package/dist/models/v2/organization-unit.d.ts.map +0 -1
- package/dist/models/v2/translation.d.ts.map +0 -1
- package/dist/models/v2/vars.d.ts.map +0 -1
- package/dist/utils/identifyPlatform.d.ts +0 -31
- package/dist/utils/identifyPlatform.d.ts.map +0 -1
- package/dist/utils/resolveFieldType.d.ts +0 -21
- package/dist/utils/resolveFieldType.d.ts.map +0 -1
- package/dist/utils/v2/containsMetaFlowTemplateLiteral.d.ts.map +0 -1
- package/dist/utils/v2/countryCodeToFlagEmoji.d.ts.map +0 -1
- package/dist/utils/v2/extractEmojiFromUri.d.ts.map +0 -1
- package/dist/utils/v2/injectRequestedPermissions.d.ts.map +0 -1
- package/dist/utils/v2/isEmojiUri.d.ts.map +0 -1
- package/dist/utils/v2/isMetaFlowTemplateLiteral.d.ts.map +0 -1
- package/dist/utils/v2/isTranslationFlowTemplateLiteral.d.ts.map +0 -1
- package/dist/utils/v2/parseFlowTemplateLiteral.d.ts.map +0 -1
- package/dist/utils/v2/resolveFlowTemplateLiterals.d.ts.map +0 -1
- package/dist/utils/v2/resolveLocaleDisplayName.d.ts.map +0 -1
- package/dist/utils/v2/resolveLocaleEmoji.d.ts.map +0 -1
- package/dist/utils/v2/resolveMeta.d.ts.map +0 -1
- /package/dist/models/{v2/organization-unit.d.ts → organization-unit.d.ts} +0 -0
- /package/dist/models/{v2/translation.d.ts → translation.d.ts} +0 -0
- /package/dist/utils/{v2/containsMetaFlowTemplateLiteral.d.ts → containsMetaFlowTemplateLiteral.d.ts} +0 -0
- /package/dist/utils/{v2/countryCodeToFlagEmoji.d.ts → countryCodeToFlagEmoji.d.ts} +0 -0
- /package/dist/utils/{v2/extractEmojiFromUri.d.ts → extractEmojiFromUri.d.ts} +0 -0
- /package/dist/utils/{v2/injectRequestedPermissions.d.ts → injectRequestedPermissions.d.ts} +0 -0
- /package/dist/utils/{v2/isEmojiUri.d.ts → isEmojiUri.d.ts} +0 -0
- /package/dist/utils/{v2/isMetaFlowTemplateLiteral.d.ts → isMetaFlowTemplateLiteral.d.ts} +0 -0
- /package/dist/utils/{v2/isTranslationFlowTemplateLiteral.d.ts → isTranslationFlowTemplateLiteral.d.ts} +0 -0
- /package/dist/utils/{v2/parseFlowTemplateLiteral.d.ts → parseFlowTemplateLiteral.d.ts} +0 -0
- /package/dist/utils/{v2/resolveLocaleDisplayName.d.ts → resolveLocaleDisplayName.d.ts} +0 -0
- /package/dist/utils/{v2/resolveLocaleEmoji.d.ts → resolveLocaleEmoji.d.ts} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"embedded-flow.d.ts","sourceRoot":"","sources":["../../src/models/embedded-flow.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,oBAAY,gBAAgB;IAC1B,cAAc,mBAAmB;IACjC,QAAQ,aAAa;IACrB,YAAY,iBAAiB;IAC7B,cAAc,oBAAoB;CACnC;AAED,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"embedded-flow.d.ts","sourceRoot":"","sources":["../../src/models/embedded-flow.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,oBAAY,gBAAgB;IAC1B,cAAc,mBAAmB;IACjC,QAAQ,aAAa;IACrB,YAAY,iBAAiB;IAC7B,cAAc,oBAAoB;CACnC;AAED,oBAAY,wBAAwB;IAClC,WAAW,gBAAgB;IAC3B,IAAI,SAAS;CACd;AAED;;;;GAIG;AACH,MAAM,WAAW,oCAAoC,CAAC,CAAC,GAAG,GAAG,CAAE,SAAQ,OAAO,CAAC,OAAO,C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AED;;;;GAIG;AACH,MAAM,WAAW,iBAAiB;IAChC,sDAAsD;IACtD,QAAQ,EAAE,kBAAkB,EAAE,CAAC;CAChC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,MAAM,WAAW,gCAAgC,CAAC,CAAC,GAAG,GAAG,CAAE,SAAQ,oCAAoC,CAAC,CAAC,CAAC;IACxG;;;;;;;;;OASG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB"}
|
|
@@ -15,8 +15,7 @@
|
|
|
15
15
|
* specific language governing permissions and limitations
|
|
16
16
|
* under the License.
|
|
17
17
|
*/
|
|
18
|
-
import { FlowExecutionError } from './embedded-flow
|
|
19
|
-
import { EmbeddedFlowType } from '../embedded-flow';
|
|
18
|
+
import { EmbeddedFlowType, FlowExecutionError } from './embedded-flow';
|
|
20
19
|
/**
|
|
21
20
|
* Status enumeration for the embedded recovery flow operations.
|
|
22
21
|
*
|
|
@@ -129,4 +128,4 @@ export interface EmbeddedRecoveryFlowErrorResponse {
|
|
|
129
128
|
executionId: string;
|
|
130
129
|
flowStatus: EmbeddedRecoveryFlowStatus;
|
|
131
130
|
}
|
|
132
|
-
//# sourceMappingURL=embedded-recovery-flow
|
|
131
|
+
//# sourceMappingURL=embedded-recovery-flow.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"embedded-recovery-flow.d.ts","sourceRoot":"","sources":["../../src/models/embedded-recovery-flow.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,gBAAgB,EAAE,kBAAkB,EAAC,MAAM,iBAAiB,CAAC;AAErE;;;;GAIG;AACH,oBAAY,0BAA0B;IACpC;;OAEG;IACH,QAAQ,aAAa;IAErB;;;;OAIG;IACH,KAAK,UAAU;IAEf;;OAEG;IACH,UAAU,eAAe;CAC1B;AAED;;;;GAIG;AACH,oBAAY,wBAAwB;IAClC;;OAEG;IACH,WAAW,gBAAgB;IAE3B;;OA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yright (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
|
|
@@ -15,86 +15,330 @@
|
|
|
15
15
|
* specific language governing permissions and limitations
|
|
16
16
|
* under the License.
|
|
17
17
|
*/
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
18
|
+
import { EmbeddedFlowResponseData, EmbeddedFlowResponseType, EmbeddedFlowType, FlowExecutionError } from './embedded-flow';
|
|
19
|
+
/**
|
|
20
|
+
* Status enumeration for ThunderID embedded sign-in flow operations.
|
|
21
|
+
*
|
|
22
|
+
* These statuses indicate the current state of the sign-in flow and determine
|
|
23
|
+
* the next action required by the client application. Each status provides
|
|
24
|
+
* specific guidance on how to proceed with the authentication process.
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* ```typescript
|
|
28
|
+
* switch (response.flowStatus) {
|
|
29
|
+
* case EmbeddedSignInFlowStatus.Incomplete:
|
|
30
|
+
* // More user input needed - render form components
|
|
31
|
+
* break;
|
|
32
|
+
* case EmbeddedSignInFlowStatus.Complete:
|
|
33
|
+
* // Authentication successful - handle completion
|
|
34
|
+
* break;
|
|
35
|
+
* case EmbeddedSignInFlowStatus.Error:
|
|
36
|
+
* // Authentication failed - show error message
|
|
37
|
+
* break;
|
|
38
|
+
* }
|
|
39
|
+
* ```
|
|
40
|
+
*
|
|
41
|
+
* @experimental Part of the new ThunderID API
|
|
42
|
+
*/
|
|
28
43
|
export declare enum EmbeddedSignInFlowStatus {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
44
|
+
/**
|
|
45
|
+
* Sign-in flow completed successfully.
|
|
46
|
+
*
|
|
47
|
+
* The user has been authenticated and the flow can proceed to
|
|
48
|
+
* OAuth2 completion or redirection. Check for redirectUrl or
|
|
49
|
+
* assertion data in the response.
|
|
50
|
+
*/
|
|
51
|
+
Complete = "COMPLETE",
|
|
52
|
+
/**
|
|
53
|
+
* Sign-in flow encountered an error.
|
|
54
|
+
*
|
|
55
|
+
* Authentication failed due to invalid credentials, system error,
|
|
56
|
+
* or other issues. Check error details in the response and handle
|
|
57
|
+
* appropriately (retry, show error message, etc.).
|
|
58
|
+
*/
|
|
59
|
+
Error = "ERROR",
|
|
60
|
+
/**
|
|
61
|
+
* Sign-in flow requires additional user input.
|
|
62
|
+
*
|
|
63
|
+
* More authentication steps are needed. The response will contain
|
|
64
|
+
* components in data.meta.components that should be rendered to
|
|
65
|
+
* collect additional user input (e.g., MFA, password, etc.).
|
|
66
|
+
*/
|
|
67
|
+
Incomplete = "INCOMPLETE"
|
|
33
68
|
}
|
|
69
|
+
/**
|
|
70
|
+
* Type enumeration for ThunderID embedded sign-in flow responses.
|
|
71
|
+
*
|
|
72
|
+
* Determines the nature of the flow response and how the client should
|
|
73
|
+
* handle the returned data. This affects both UI rendering and flow
|
|
74
|
+
* continuation logic.
|
|
75
|
+
*
|
|
76
|
+
* @experimental Part of the new ThunderID API
|
|
77
|
+
*/
|
|
34
78
|
export declare enum EmbeddedSignInFlowType {
|
|
35
|
-
|
|
79
|
+
/**
|
|
80
|
+
* Response requires external redirection.
|
|
81
|
+
*
|
|
82
|
+
* Used for social login providers, external identity providers,
|
|
83
|
+
* or other flows that require navigating to an external URL.
|
|
84
|
+
* The response will contain redirection information.
|
|
85
|
+
*/
|
|
86
|
+
Redirection = "REDIRECTION",
|
|
87
|
+
/**
|
|
88
|
+
* Response contains view components for rendering.
|
|
89
|
+
*
|
|
90
|
+
* Standard embedded flow response containing UI components
|
|
91
|
+
* that should be rendered within the current application
|
|
92
|
+
* context. Most common type for embedded authentication.
|
|
93
|
+
*/
|
|
94
|
+
View = "VIEW"
|
|
36
95
|
}
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
96
|
+
/**
|
|
97
|
+
* Extended response structure for ThunderID embedded sign-in flow.
|
|
98
|
+
*
|
|
99
|
+
* This interface defines additional properties that are added at the SDK level
|
|
100
|
+
* to enhance the basic API response with client-side computed values. These
|
|
101
|
+
* properties provide convenience for common post-authentication operations.
|
|
102
|
+
*
|
|
103
|
+
* @remarks This response structure is enhanced by the SDK and contains
|
|
104
|
+
* properties beyond the raw API response. It's designed to simplify
|
|
105
|
+
* post-authentication handling for client applications.
|
|
106
|
+
*
|
|
107
|
+
* @experimental This interface is part of the new ThunderID platform
|
|
108
|
+
*/
|
|
109
|
+
export interface ExtendedEmbeddedSignInFlowResponse {
|
|
110
|
+
/**
|
|
111
|
+
* Computed redirect URL for post-authentication navigation.
|
|
112
|
+
*
|
|
113
|
+
* This URL is determined by the SDK based on the flow completion result
|
|
114
|
+
* and configured redirect settings. When present, the client application
|
|
115
|
+
* should navigate to this URL to complete the authentication process.
|
|
116
|
+
*
|
|
117
|
+
* @example "https://myapp.com/dashboard?session=abc123"
|
|
118
|
+
*/
|
|
119
|
+
redirectUrl?: string;
|
|
40
120
|
}
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
121
|
+
/**
|
|
122
|
+
* Primary response structure for ThunderID embedded sign-in flow operations.
|
|
123
|
+
*
|
|
124
|
+
* This is the main response interface returned by the sign-in API, combining
|
|
125
|
+
* the enhanced SDK properties with the core API response data. It provides all
|
|
126
|
+
* information needed to handle the current state of the authentication flow.
|
|
127
|
+
*
|
|
128
|
+
* The response structure adapts based on the flow status:
|
|
129
|
+
* - INCOMPLETE: Contains components for user interaction
|
|
130
|
+
* - COMPLETE: Contains completion data and potential redirection info
|
|
131
|
+
* - ERROR: Contains error information for troubleshooting
|
|
132
|
+
*
|
|
133
|
+
* @example
|
|
134
|
+
* ```typescript
|
|
135
|
+
* const response: EmbeddedSignInFlowResponse = {
|
|
136
|
+
* executionId: "flow_12345",
|
|
137
|
+
* flowStatus: EmbeddedSignInFlowStatus.Incomplete,
|
|
138
|
+
* type: EmbeddedSignInFlowType.View,
|
|
139
|
+
* data: {
|
|
140
|
+
* meta: {
|
|
141
|
+
* components: [
|
|
142
|
+
* {
|
|
143
|
+
* id: "username_field",
|
|
144
|
+
* type: EmbeddedFlowComponentType.TextInput,
|
|
145
|
+
* label: "Username",
|
|
146
|
+
* required: true
|
|
147
|
+
* }
|
|
148
|
+
* ]
|
|
149
|
+
* }
|
|
150
|
+
* }
|
|
151
|
+
* };
|
|
152
|
+
* ```
|
|
153
|
+
*
|
|
154
|
+
* @experimental This interface is part of the new ThunderID platform
|
|
155
|
+
*/
|
|
156
|
+
export interface EmbeddedSignInFlowResponse extends ExtendedEmbeddedSignInFlowResponse {
|
|
157
|
+
/**
|
|
158
|
+
* JWT assertion returned when the flow reaches COMPLETE status on the V2 platform.
|
|
159
|
+
* Used to establish the session without a separate OAuth2 redirect.
|
|
160
|
+
*/
|
|
161
|
+
assertion?: string;
|
|
162
|
+
/**
|
|
163
|
+
* Per-step challenge token for replay protection.
|
|
164
|
+
* Must be included in the next request to continue this flow.
|
|
165
|
+
*/
|
|
166
|
+
challengeToken?: string;
|
|
167
|
+
/**
|
|
168
|
+
* Core response data containing UI components and flow metadata.
|
|
169
|
+
* Includes both modern meta.components structure and legacy fields for compatibility.
|
|
170
|
+
*/
|
|
171
|
+
data: EmbeddedFlowResponseData & {
|
|
172
|
+
/**
|
|
173
|
+
* Legacy action definitions for backward compatibility.
|
|
174
|
+
* @deprecated Use data.meta.components for new implementations
|
|
175
|
+
*/
|
|
176
|
+
actions?: {
|
|
177
|
+
/** Unique action identifier */
|
|
178
|
+
id: string;
|
|
179
|
+
/** Action type identifier */
|
|
180
|
+
type: EmbeddedFlowResponseType;
|
|
181
|
+
}[];
|
|
182
|
+
/**
|
|
183
|
+
* Legacy input field definitions for backward compatibility.
|
|
184
|
+
* @deprecated Use data.meta.components for new implementations
|
|
185
|
+
*/
|
|
186
|
+
inputs?: {
|
|
187
|
+
/** Field name identifier */
|
|
188
|
+
name: string;
|
|
189
|
+
/** Whether the field is required */
|
|
190
|
+
required: boolean;
|
|
191
|
+
/** Input field type */
|
|
192
|
+
type: string;
|
|
54
193
|
}[];
|
|
55
|
-
promptType: EmbeddedSignInFlowAuthenticatorPromptType;
|
|
56
|
-
};
|
|
57
|
-
requiredParams: string[];
|
|
58
|
-
}
|
|
59
|
-
export interface EmbeddedSignInFlowLink {
|
|
60
|
-
href: string;
|
|
61
|
-
method: string;
|
|
62
|
-
name: string;
|
|
63
|
-
}
|
|
64
|
-
export interface EmbeddedSignInFlowHandleRequestPayload {
|
|
65
|
-
flowId: string;
|
|
66
|
-
selectedAuthenticator: {
|
|
67
|
-
authenticatorId: string;
|
|
68
|
-
params: Record<string, string>;
|
|
69
194
|
};
|
|
195
|
+
/**
|
|
196
|
+
* Unique identifier for this specific flow instance.
|
|
197
|
+
* Used to maintain state across multiple API calls during the authentication process.
|
|
198
|
+
*/
|
|
199
|
+
executionId: string;
|
|
200
|
+
/**
|
|
201
|
+
* Structured error details when flowStatus is ERROR.
|
|
202
|
+
* Contains an error code and i18n-ready message/description fields.
|
|
203
|
+
*/
|
|
204
|
+
error?: FlowExecutionError;
|
|
205
|
+
/**
|
|
206
|
+
* Current status of the sign-in flow.
|
|
207
|
+
* Determines the next action required by the client application.
|
|
208
|
+
*/
|
|
209
|
+
flowStatus: EmbeddedSignInFlowStatus;
|
|
210
|
+
/**
|
|
211
|
+
* Type of response indicating how to handle the returned data.
|
|
212
|
+
* Affects both UI rendering and navigation logic.
|
|
213
|
+
*/
|
|
214
|
+
type: EmbeddedSignInFlowType;
|
|
70
215
|
}
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
216
|
+
/**
|
|
217
|
+
* Response structure for completed ThunderID embedded sign-in flows.
|
|
218
|
+
*
|
|
219
|
+
* This interface defines the response format when the embedded sign-in flow
|
|
220
|
+
* reaches the COMPLETE status and requires OAuth2 flow completion. It contains
|
|
221
|
+
* the redirect URI that should be used for the final authentication step.
|
|
222
|
+
*
|
|
223
|
+
* @example
|
|
224
|
+
* ```typescript
|
|
225
|
+
* const completeResponse: EmbeddedSignInFlowCompleteResponse = {
|
|
226
|
+
* redirect_uri: "https://myapp.com/callback?code=abc123&state=xyz789"
|
|
227
|
+
* };
|
|
228
|
+
*
|
|
229
|
+
* // Typically handled automatically by the SDK
|
|
230
|
+
* window.location.href = completeResponse.redirect_uri;
|
|
231
|
+
* ```
|
|
232
|
+
*
|
|
233
|
+
* @experimental This interface is part of the new ThunderID platform
|
|
234
|
+
*/
|
|
235
|
+
export interface EmbeddedSignInFlowCompleteResponse {
|
|
236
|
+
/**
|
|
237
|
+
* OAuth2 redirect URI for completing the authentication flow.
|
|
238
|
+
*
|
|
239
|
+
* Contains the final redirect URL with authorization code, state,
|
|
240
|
+
* and other OAuth2 parameters needed to complete the authentication
|
|
241
|
+
* process. This URL should be navigated to automatically or manually
|
|
242
|
+
* depending on the application's requirements.
|
|
243
|
+
*/
|
|
244
|
+
redirect_uri: string;
|
|
82
245
|
}
|
|
83
|
-
|
|
84
|
-
|
|
246
|
+
/**
|
|
247
|
+
* Request payload for initiating ThunderID embedded sign-in flows.
|
|
248
|
+
*
|
|
249
|
+
* This type defines the minimum required information to start a new
|
|
250
|
+
* embedded sign-in flow. The flow type determines the kind of authentication
|
|
251
|
+
* process that will be initiated (e.g., standard login, MFA, etc.).
|
|
252
|
+
*
|
|
253
|
+
* @example
|
|
254
|
+
* ```typescript
|
|
255
|
+
* const initRequest: EmbeddedSignInFlowInitiateRequest = {
|
|
256
|
+
* applicationId: "app_12345",
|
|
257
|
+
* flowType: EmbeddedFlowType.Authentication
|
|
258
|
+
* };
|
|
259
|
+
*
|
|
260
|
+
* const response = await executeEmbeddedSignInFlow({
|
|
261
|
+
* baseUrl: "https://localhost:8090",
|
|
262
|
+
* payload: initRequest
|
|
263
|
+
* });
|
|
264
|
+
* ```
|
|
265
|
+
*
|
|
266
|
+
* @experimental This type is part of the new ThunderID platform
|
|
267
|
+
*/
|
|
268
|
+
export interface EmbeddedSignInFlowInitiateRequest {
|
|
269
|
+
/**
|
|
270
|
+
* Unique identifier of the application initiating the sign-in flow.
|
|
271
|
+
* Must be a valid application ID registered in the ThunderID organization.
|
|
272
|
+
*/
|
|
273
|
+
applicationId: string;
|
|
274
|
+
/**
|
|
275
|
+
* Type of embedded flow to initiate.
|
|
276
|
+
* Determines the authentication process and available options.
|
|
277
|
+
*/
|
|
278
|
+
flowType: EmbeddedFlowType;
|
|
279
|
+
/**
|
|
280
|
+
* OAuth2 scopes to request during flow initialization.
|
|
281
|
+
* When provided, these scopes are forwarded to the platform at flow start.
|
|
282
|
+
*/
|
|
283
|
+
scopes?: string | string[];
|
|
85
284
|
}
|
|
86
|
-
|
|
285
|
+
/**
|
|
286
|
+
* Request payload for executing steps in ThunderID embedded sign-in flows.
|
|
287
|
+
*
|
|
288
|
+
* This interface defines the structure for subsequent requests after flow initiation.
|
|
289
|
+
* It supports both continuing existing flows (with executionId) and submitting user
|
|
290
|
+
* input data collected from the rendered components.
|
|
291
|
+
*
|
|
292
|
+
* @example
|
|
293
|
+
* ```typescript
|
|
294
|
+
* // Continue existing flow with user input
|
|
295
|
+
* const stepRequest: EmbeddedSignInFlowRequest = {
|
|
296
|
+
* executionId: "flow_12345",
|
|
297
|
+
* action: "action_001",
|
|
298
|
+
* inputs: {
|
|
299
|
+
* username: "user@example.com",
|
|
300
|
+
* password: "securePassword123"
|
|
301
|
+
* }
|
|
302
|
+
* };
|
|
303
|
+
*
|
|
304
|
+
* // Submit to continue the flow
|
|
305
|
+
* const response = await executeEmbeddedSignInFlow({
|
|
306
|
+
* baseUrl: "https://localhost:8090",
|
|
307
|
+
* payload: stepRequest
|
|
308
|
+
* });
|
|
309
|
+
* ```
|
|
310
|
+
*
|
|
311
|
+
* @experimental This interface is part of the new ThunderID platform
|
|
312
|
+
*/
|
|
313
|
+
export interface EmbeddedSignInFlowRequest extends Partial<EmbeddedSignInFlowInitiateRequest> {
|
|
314
|
+
/**
|
|
315
|
+
* Identifier of the specific action being triggered.
|
|
316
|
+
* Corresponds to action components in the UI (e.g., submit button, social login).
|
|
317
|
+
*/
|
|
318
|
+
action?: string;
|
|
87
319
|
/**
|
|
88
|
-
*
|
|
320
|
+
* Per-step challenge token received from the previous flow response.
|
|
321
|
+
* Required when continuing an existing flow to prevent replay attacks.
|
|
89
322
|
*/
|
|
90
|
-
|
|
323
|
+
challengeToken?: string;
|
|
91
324
|
/**
|
|
92
|
-
*
|
|
325
|
+
* Identifier of the flow instance to continue.
|
|
326
|
+
* Required when submitting data for an existing flow.
|
|
93
327
|
*/
|
|
94
|
-
|
|
328
|
+
executionId?: string;
|
|
95
329
|
/**
|
|
96
|
-
*
|
|
330
|
+
* User input data collected from the form components.
|
|
331
|
+
* Keys should match the component identifiers from the response.
|
|
332
|
+
*
|
|
333
|
+
* @example
|
|
334
|
+
* ```typescript
|
|
335
|
+
* {
|
|
336
|
+
* "username": "john.doe@example.com",
|
|
337
|
+
* "password": "mySecurePassword",
|
|
338
|
+
* "rememberMe": true
|
|
339
|
+
* }
|
|
340
|
+
* ```
|
|
97
341
|
*/
|
|
98
|
-
|
|
342
|
+
inputs?: Record<string, any>;
|
|
99
343
|
}
|
|
100
344
|
//# sourceMappingURL=embedded-signin-flow.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"embedded-signin-flow.d.ts","sourceRoot":"","sources":["../../src/models/embedded-signin-flow.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,
|
|
1
|
+
{"version":3,"file":"embedded-signin-flow.d.ts","sourceRoot":"","sources":["../../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kBAAkB,CAAC;IAE3B;;;OAGG;IACH,UAAU,EAAE,wBAAwB,CAAC;IAErC;;;OAGG;IACH,IAAI,EAAE,sBAAsB,CAAC;CAC9B;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,WAAW,kCAAkC;IACjD;;;;;;;OAOG;IACH,YAAY,EAAE,MAAM,CAAC;CACtB;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAM,WAAW,iCAAiC;IAChD;;;OAGG;IACH,aAAa,EAAE,MAAM,CAAC;IAEtB;;;OAGG;IACH,QAAQ,EAAE,gBAAgB,CAAC;IAE3B;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;CAC5B;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,MAAM,WAAW,yBAA0B,SAAQ,OAAO,CAAC,iCAAiC,CAAC;IAC3F;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;;;;;;;;;;OAYG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAC9B"}
|
|
@@ -15,8 +15,7 @@
|
|
|
15
15
|
* specific language governing permissions and limitations
|
|
16
16
|
* under the License.
|
|
17
17
|
*/
|
|
18
|
-
import { FlowExecutionError } from './embedded-flow
|
|
19
|
-
import { EmbeddedFlowResponseType as EmbeddedFlowResponseTypeV1, EmbeddedFlowType as EmbeddedFlowTypeV1 } from '../embedded-flow';
|
|
18
|
+
import { EmbeddedFlowResponseType, EmbeddedFlowType, FlowExecutionError } from './embedded-flow';
|
|
20
19
|
/**
|
|
21
20
|
* Status enumeration for ThunderID embedded sign-up flow operations.
|
|
22
21
|
*
|
|
@@ -146,7 +145,7 @@ export interface EmbeddedSignUpFlowResponse extends ExtendedEmbeddedSignUpFlowRe
|
|
|
146
145
|
*/
|
|
147
146
|
actions?: {
|
|
148
147
|
id: string;
|
|
149
|
-
type:
|
|
148
|
+
type: EmbeddedFlowResponseType;
|
|
150
149
|
}[];
|
|
151
150
|
/**
|
|
152
151
|
* Input fields required for the current step of the sign-up flow.
|
|
@@ -189,7 +188,7 @@ export interface EmbeddedSignUpFlowCompleteResponse {
|
|
|
189
188
|
*/
|
|
190
189
|
export interface EmbeddedSignUpFlowInitiateRequest {
|
|
191
190
|
applicationId: string;
|
|
192
|
-
flowType:
|
|
191
|
+
flowType: EmbeddedFlowType;
|
|
193
192
|
/**
|
|
194
193
|
* OAuth2 scopes to request during flow initialization.
|
|
195
194
|
* When provided, these scopes are forwarded to the platform at flow start.
|
|
@@ -236,4 +235,4 @@ export interface EmbeddedSignUpFlowErrorResponse {
|
|
|
236
235
|
executionId: string;
|
|
237
236
|
flowStatus: EmbeddedSignUpFlowStatus;
|
|
238
237
|
}
|
|
239
|
-
//# sourceMappingURL=embedded-signup-flow
|
|
238
|
+
//# sourceMappingURL=embedded-signup-flow.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"embedded-signup-flow.d.ts","sourceRoot":"","sources":["../../src/models/embedded-signup-flow.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,wBAAwB,EAAE,gBAAgB,EAAE,kBAAkB,EAAC,MAAM,iBAAiB,CAAC;AAE/F;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,oBAAY,wBAAwB;IAClC;;;;;;OAMG;IACH,QAAQ,aAAa;IAErB;;;;;;;;;OASG;IACH,KAAK,UAAU;IAEf;;;;;;OAMG;IACH,UAAU,eAAe;CAC1B;AAED;;;;;;;;GAQG;AACH,oBAAY,sBAAsB;IAChC;;;;;;OAMG;IACH,WAAW,gBAAgB;IAE3B;;;;;;OAMG;IACH,IAAI,SAAS;CACd;AAED;;;;GAIG;AACH,MAA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G;AACH,MAAM,WAAW,+BAA+B;IAC9C,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAE1B,KAAK,EAAE,kBAAkB,CAAC;IAE1B,WAAW,EAAE,MAAM,CAAC;IAEpB,UAAU,EAAE,wBAAwB,CAAC;CACtC"}
|
|
@@ -0,0 +1,55 @@
|
|
|
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 { EmbeddedFlowComponent } from '../embedded-flow';
|
|
19
|
+
import { FlowMetadataResponse } from '../flow-meta';
|
|
20
|
+
/**
|
|
21
|
+
* Context passed to a custom component renderer. Provides the current form
|
|
22
|
+
* state and callbacks so the renderer can render an interactive control.
|
|
23
|
+
*/
|
|
24
|
+
export interface ComponentRenderContext {
|
|
25
|
+
additionalData?: Record<string, any>;
|
|
26
|
+
authType: 'signin' | 'signup' | 'recovery';
|
|
27
|
+
formErrors: Record<string, string>;
|
|
28
|
+
formValues: Record<string, string>;
|
|
29
|
+
isFormValid: boolean;
|
|
30
|
+
isLoading: boolean;
|
|
31
|
+
meta?: FlowMetadataResponse | null;
|
|
32
|
+
onInputBlur?: (name: string) => void;
|
|
33
|
+
onInputChange: (name: string, value: string) => void;
|
|
34
|
+
onSubmit?: (component: EmbeddedFlowComponent, data?: Record<string, any>, skipValidation?: boolean) => void;
|
|
35
|
+
touchedFields: Record<string, boolean>;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* A function that renders a custom UI element for a given flow component.
|
|
39
|
+
* Framework-specific packages (e.g. `@thunderid/react`) narrow this type to
|
|
40
|
+
* their own element type (e.g. `ReactElement | null`).
|
|
41
|
+
*/
|
|
42
|
+
export type ComponentRenderer = (component: EmbeddedFlowComponent, context: ComponentRenderContext) => unknown;
|
|
43
|
+
/**
|
|
44
|
+
* A map of component type identifiers to their custom renderer functions.
|
|
45
|
+
*/
|
|
46
|
+
export type ComponentRendererMap = Record<string, ComponentRenderer>;
|
|
47
|
+
/**
|
|
48
|
+
* Extension configuration for customising how SDK flow components are rendered.
|
|
49
|
+
* Pass a `renderers` map to override the default rendering of specific component
|
|
50
|
+
* types with your own UI elements.
|
|
51
|
+
*/
|
|
52
|
+
export interface ComponentsExtensions {
|
|
53
|
+
renderers?: ComponentRendererMap;
|
|
54
|
+
}
|
|
55
|
+
//# sourceMappingURL=components.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"components.d.ts","sourceRoot":"","sources":["../../../src/models/extensions/components.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,qBAAqB,EAAC,MAAM,kBAAkB,CAAC;AACvD,OAAO,EAAC,oBAAoB,EAAC,MAAM,cAAc,CAAC;AAElD;;;GAGG;AACH,MAAM,WAAW,sBAAsB;IACrC,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACrC,QAAQ,EAAE,QAAQ,GAAG,QAAQ,GAAG,UAAU,CAAC;IAC3C,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACnC,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACnC,WAAW,EAA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MAAM,WAAW,4BAA4B;IAC3C,KAAK,EAAE,MAAM,CAAC;IACd,iBAAiB,EAAE,gBAAgB,EAAE,CAAC;IACtC,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;CACtB;AAED;;;;;;;;;;;;GAYG;AACH,MAAM,WAAW,yBAA0B,SAAQ,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,EAAE,QAAQ,GAAG,MAAM,CAAC;IAC9F;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,kBAAkB,EAAE,MAAM,CAAC;IAE3B;;;OAGG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED;;;;;;;;;;;;;;GAcG;AACH,MAAM,WAAW,iCAAkC,SAAQ,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,EAAE,QAAQ,GAAG,MAAM,CAAC;IACtG;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,kBAAkB,EAAE,MAAM,CAAC;IAE3B;;;OAGG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;CACd"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"translation.d.ts","sourceRoot":"","sources":["../../src/models/translation.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH;;;;;;;;;;;;;;;GAeG;AACH,MAAM,MAAM,aAAa,CAAC,OAAO,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,OAAO,KAAK,MAAM,CAAC"}
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
* specific language governing permissions and limitations
|
|
16
16
|
* under the License.
|
|
17
17
|
*/
|
|
18
|
-
import { FlowMetadataResponse } from './flow-meta
|
|
18
|
+
import { FlowMetadataResponse } from './flow-meta';
|
|
19
19
|
import { TranslationFn } from './translation';
|
|
20
20
|
/**
|
|
21
21
|
* Options for the resolveFlowTemplateLiterals function.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vars.d.ts","sourceRoot":"","sources":["../../src/models/vars.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,oBAAoB,EAAC,MAAM,aAAa,CAAC;AACjD,OAAO,EAAC,aAAa,EAAC,MAAM,eAAe,CAAC;AAE5C;;;;;GAKG;AACH,MAAM,WAAW,kCAAkC,CAAC,GAAG,SAAS,aAAa,GAAG,aAAa;IAC3F;;OAEG;IACH,IAAI,CAAC,EAAE,oBAAoB,GAAG,IAAI,CAAC;IACnC;;OAEG;IACH,CAAC,EAAE,GAAG,CAAC;CACR"}
|
|
@@ -0,0 +1,31 @@
|
|
|
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 { ValidationRule } from '../models/embedded-flow';
|
|
19
|
+
/**
|
|
20
|
+
* Composes an array of `ValidationRule`s into a single validator function suitable for
|
|
21
|
+
* `useForm`'s `FormField.validator` slot.
|
|
22
|
+
*
|
|
23
|
+
* The composed validator evaluates rules in declaration order and returns the **first**
|
|
24
|
+
* failing rule's message — matching the SDK's render-prop shape of a single string per
|
|
25
|
+
* field. When all rules pass it returns `null`.
|
|
26
|
+
*
|
|
27
|
+
* Returns `null` when no rules are supplied so callers can compose conditionally.
|
|
28
|
+
*/
|
|
29
|
+
declare const buildValidatorFromRules: (rules: ValidationRule[] | undefined) => ((value: string) => string | null) | null;
|
|
30
|
+
export default buildValidatorFromRules;
|
|
31
|
+
//# sourceMappingURL=buildValidatorFromRules.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"buildValidatorFromRules.d.ts","sourceRoot":"","sources":["../../src/utils/buildValidatorFromRules.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAGH,OAAO,EAAC,cAAc,EAAC,MAAM,yBAAyB,CAAC;AAEvD;;;;;;;;;GASG;AACH,QAAA,MAAM,uBAAuB,GAAI,OAAO,cAAc,EAAE,GAAG,SAAS,KAAG,CAAC,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,GAAG,IAAI,CAAC,GAAG,IAa3G,CAAC;AAEF,eAAe,uBAAuB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"containsMetaFlowTemplateLiteral.d.ts","sourceRoot":"","sources":["../../src/utils/containsMetaFlowTemplateLiteral.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAYH;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAM,CAAC,OAAO,UAAU,+BAA+B,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAEzF;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,8BAA8B,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,GAAG,MAAM,CAKpG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"countryCodeToFlagEmoji.d.ts","sourceRoot":"","sources":["../../src/utils/countryCodeToFlagEmoji.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH;;;;;;GAMG;AACH,MAAM,CAAC,OAAO,UAAU,sBAAsB,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,CAM1E"}
|