@thunderid/javascript 0.3.0 → 0.3.7

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 (150) hide show
  1. package/dist/StorageManager.d.ts +2 -2
  2. package/dist/StorageManager.d.ts.map +1 -1
  3. package/dist/ThunderIDJavaScriptClient.d.ts +2 -12
  4. package/dist/ThunderIDJavaScriptClient.d.ts.map +1 -1
  5. package/dist/api/{v2/executeEmbeddedRecoveryFlowV2.d.ts → executeEmbeddedRecoveryFlow.d.ts} +7 -7
  6. package/dist/api/executeEmbeddedRecoveryFlow.d.ts.map +1 -0
  7. package/dist/api/executeEmbeddedSignInFlow.d.ts +3 -3
  8. package/dist/api/executeEmbeddedSignInFlow.d.ts.map +1 -1
  9. package/dist/api/executeEmbeddedSignUpFlow.d.ts +4 -27
  10. package/dist/api/executeEmbeddedSignUpFlow.d.ts.map +1 -1
  11. package/dist/api/{v2/executeEmbeddedUserOnboardingFlowV2.d.ts → executeEmbeddedUserOnboardingFlow.d.ts} +6 -6
  12. package/dist/api/executeEmbeddedUserOnboardingFlow.d.ts.map +1 -0
  13. package/dist/api/{v2/getFlowMetaV2.d.ts → getFlowMeta.d.ts} +7 -7
  14. package/dist/api/getFlowMeta.d.ts.map +1 -0
  15. package/dist/api/getOrganizationUnitChildren.d.ts +86 -0
  16. package/dist/api/getOrganizationUnitChildren.d.ts.map +1 -0
  17. package/dist/cjs/index.cjs +1440 -2496
  18. package/dist/edge/index.js +1428 -2464
  19. package/dist/errors/exception.d.ts +1 -3
  20. package/dist/errors/exception.d.ts.map +1 -1
  21. package/dist/i18n/models/i18n.d.ts +3 -0
  22. package/dist/i18n/models/i18n.d.ts.map +1 -1
  23. package/dist/i18n/translations/en-US.d.ts.map +1 -1
  24. package/dist/i18n/translations/fr-FR.d.ts.map +1 -1
  25. package/dist/i18n/translations/hi-IN.d.ts.map +1 -1
  26. package/dist/i18n/translations/ja-JP.d.ts.map +1 -1
  27. package/dist/i18n/translations/pt-BR.d.ts.map +1 -1
  28. package/dist/i18n/translations/pt-PT.d.ts.map +1 -1
  29. package/dist/i18n/translations/si-LK.d.ts.map +1 -1
  30. package/dist/i18n/translations/ta-IN.d.ts.map +1 -1
  31. package/dist/i18n/translations/te-IN.d.ts.map +1 -1
  32. package/dist/index.d.ts +29 -53
  33. package/dist/index.d.ts.map +1 -1
  34. package/dist/index.js +1428 -2464
  35. package/dist/models/client.d.ts +3 -53
  36. package/dist/models/client.d.ts.map +1 -1
  37. package/dist/models/config.d.ts +1 -16
  38. package/dist/models/config.d.ts.map +1 -1
  39. package/dist/models/embedded-flow.d.ts +572 -92
  40. package/dist/models/embedded-flow.d.ts.map +1 -1
  41. package/dist/models/{v2/embedded-recovery-flow-v2.d.ts → embedded-recovery-flow.d.ts} +2 -3
  42. package/dist/models/embedded-recovery-flow.d.ts.map +1 -0
  43. package/dist/models/embedded-signin-flow.d.ts +310 -66
  44. package/dist/models/embedded-signin-flow.d.ts.map +1 -1
  45. package/dist/models/{v2/embedded-signup-flow-v2.d.ts → embedded-signup-flow.d.ts} +4 -5
  46. package/dist/models/embedded-signup-flow.d.ts.map +1 -0
  47. package/dist/models/extensions/components.d.ts +55 -0
  48. package/dist/models/extensions/components.d.ts.map +1 -0
  49. package/dist/models/{v2/flow-meta-v2.d.ts → flow-meta.d.ts} +1 -1
  50. package/dist/models/flow-meta.d.ts.map +1 -0
  51. package/dist/models/translation.d.ts.map +1 -0
  52. package/dist/models/{v2/vars.d.ts → vars.d.ts} +1 -1
  53. package/dist/models/vars.d.ts.map +1 -0
  54. package/dist/utils/buildValidatorFromRules.d.ts +31 -0
  55. package/dist/utils/buildValidatorFromRules.d.ts.map +1 -0
  56. package/dist/utils/containsMetaFlowTemplateLiteral.d.ts.map +1 -0
  57. package/dist/utils/countryCodeToFlagEmoji.d.ts.map +1 -0
  58. package/dist/utils/evaluateValidationRule.d.ts +42 -0
  59. package/dist/utils/evaluateValidationRule.d.ts.map +1 -0
  60. package/dist/utils/extractEmojiFromUri.d.ts.map +1 -0
  61. package/dist/utils/getRedirectBasedSignUpUrl.d.ts +1 -1
  62. package/dist/utils/getRedirectBasedSignUpUrl.d.ts.map +1 -1
  63. package/dist/utils/injectRequestedPermissions.d.ts.map +1 -0
  64. package/dist/utils/isEmojiUri.d.ts.map +1 -0
  65. package/dist/utils/isMetaFlowTemplateLiteral.d.ts.map +1 -0
  66. package/dist/utils/isTranslationFlowTemplateLiteral.d.ts.map +1 -0
  67. package/dist/utils/parseApiErrorMessage.d.ts.map +1 -1
  68. package/dist/utils/parseFlowTemplateLiteral.d.ts.map +1 -0
  69. package/dist/utils/{v2/resolveFlowTemplateLiterals.d.ts → resolveFlowTemplateLiterals.d.ts} +2 -2
  70. package/dist/utils/resolveFlowTemplateLiterals.d.ts.map +1 -0
  71. package/dist/utils/resolveLocaleDisplayName.d.ts.map +1 -0
  72. package/dist/utils/resolveLocaleEmoji.d.ts.map +1 -0
  73. package/dist/utils/{v2/resolveMeta.d.ts → resolveMeta.d.ts} +1 -1
  74. package/dist/utils/resolveMeta.d.ts.map +1 -0
  75. package/package.json +7 -7
  76. package/dist/api/createOrganization.d.ts +0 -130
  77. package/dist/api/createOrganization.d.ts.map +0 -1
  78. package/dist/api/getAllOrganizations.d.ts +0 -104
  79. package/dist/api/getAllOrganizations.d.ts.map +0 -1
  80. package/dist/api/getBrandingPreference.d.ts +0 -104
  81. package/dist/api/getBrandingPreference.d.ts.map +0 -1
  82. package/dist/api/getMeOrganizations.d.ts +0 -120
  83. package/dist/api/getMeOrganizations.d.ts.map +0 -1
  84. package/dist/api/getOrganization.d.ts +0 -110
  85. package/dist/api/getOrganization.d.ts.map +0 -1
  86. package/dist/api/initializeEmbeddedSignInFlow.d.ts +0 -52
  87. package/dist/api/initializeEmbeddedSignInFlow.d.ts.map +0 -1
  88. package/dist/api/updateOrganization.d.ts +0 -119
  89. package/dist/api/updateOrganization.d.ts.map +0 -1
  90. package/dist/api/v2/executeEmbeddedRecoveryFlowV2.d.ts.map +0 -1
  91. package/dist/api/v2/executeEmbeddedSignInFlowV2.d.ts +0 -22
  92. package/dist/api/v2/executeEmbeddedSignInFlowV2.d.ts.map +0 -1
  93. package/dist/api/v2/executeEmbeddedSignUpFlowV2.d.ts +0 -22
  94. package/dist/api/v2/executeEmbeddedSignUpFlowV2.d.ts.map +0 -1
  95. package/dist/api/v2/executeEmbeddedUserOnboardingFlowV2.d.ts.map +0 -1
  96. package/dist/api/v2/getFlowMetaV2.d.ts.map +0 -1
  97. package/dist/api/v2/getOrganizationUnitChildren.d.ts +0 -43
  98. package/dist/api/v2/getOrganizationUnitChildren.d.ts.map +0 -1
  99. package/dist/constants/v2/OIDCDiscoveryConstants.d.ts +0 -40
  100. package/dist/constants/v2/OIDCDiscoveryConstants.d.ts.map +0 -1
  101. package/dist/models/branding-preference.d.ts +0 -249
  102. package/dist/models/branding-preference.d.ts.map +0 -1
  103. package/dist/models/organization.d.ts +0 -34
  104. package/dist/models/organization.d.ts.map +0 -1
  105. package/dist/models/platforms.d.ts +0 -33
  106. package/dist/models/platforms.d.ts.map +0 -1
  107. package/dist/models/v2/embedded-flow-v2.d.ts +0 -550
  108. package/dist/models/v2/embedded-flow-v2.d.ts.map +0 -1
  109. package/dist/models/v2/embedded-recovery-flow-v2.d.ts.map +0 -1
  110. package/dist/models/v2/embedded-signin-flow-v2.d.ts +0 -345
  111. package/dist/models/v2/embedded-signin-flow-v2.d.ts.map +0 -1
  112. package/dist/models/v2/embedded-signup-flow-v2.d.ts.map +0 -1
  113. package/dist/models/v2/extensions/components.d.ts +0 -89
  114. package/dist/models/v2/extensions/components.d.ts.map +0 -1
  115. package/dist/models/v2/flow-meta-v2.d.ts.map +0 -1
  116. package/dist/models/v2/organization-unit.d.ts +0 -103
  117. package/dist/models/v2/organization-unit.d.ts.map +0 -1
  118. package/dist/models/v2/translation.d.ts.map +0 -1
  119. package/dist/models/v2/vars.d.ts.map +0 -1
  120. package/dist/utils/deriveOrganizationHandleFromBaseUrl.d.ts +0 -40
  121. package/dist/utils/deriveOrganizationHandleFromBaseUrl.d.ts.map +0 -1
  122. package/dist/utils/identifyPlatform.d.ts +0 -31
  123. package/dist/utils/identifyPlatform.d.ts.map +0 -1
  124. package/dist/utils/resolveFieldType.d.ts +0 -21
  125. package/dist/utils/resolveFieldType.d.ts.map +0 -1
  126. package/dist/utils/transformBrandingPreferenceToTheme.d.ts +0 -49
  127. package/dist/utils/transformBrandingPreferenceToTheme.d.ts.map +0 -1
  128. package/dist/utils/v2/containsMetaFlowTemplateLiteral.d.ts.map +0 -1
  129. package/dist/utils/v2/countryCodeToFlagEmoji.d.ts.map +0 -1
  130. package/dist/utils/v2/extractEmojiFromUri.d.ts.map +0 -1
  131. package/dist/utils/v2/injectRequestedPermissions.d.ts.map +0 -1
  132. package/dist/utils/v2/isEmojiUri.d.ts.map +0 -1
  133. package/dist/utils/v2/isMetaFlowTemplateLiteral.d.ts.map +0 -1
  134. package/dist/utils/v2/isTranslationFlowTemplateLiteral.d.ts.map +0 -1
  135. package/dist/utils/v2/parseFlowTemplateLiteral.d.ts.map +0 -1
  136. package/dist/utils/v2/resolveFlowTemplateLiterals.d.ts.map +0 -1
  137. package/dist/utils/v2/resolveLocaleDisplayName.d.ts.map +0 -1
  138. package/dist/utils/v2/resolveLocaleEmoji.d.ts.map +0 -1
  139. package/dist/utils/v2/resolveMeta.d.ts.map +0 -1
  140. /package/dist/models/{v2/translation.d.ts → translation.d.ts} +0 -0
  141. /package/dist/utils/{v2/containsMetaFlowTemplateLiteral.d.ts → containsMetaFlowTemplateLiteral.d.ts} +0 -0
  142. /package/dist/utils/{v2/countryCodeToFlagEmoji.d.ts → countryCodeToFlagEmoji.d.ts} +0 -0
  143. /package/dist/utils/{v2/extractEmojiFromUri.d.ts → extractEmojiFromUri.d.ts} +0 -0
  144. /package/dist/utils/{v2/injectRequestedPermissions.d.ts → injectRequestedPermissions.d.ts} +0 -0
  145. /package/dist/utils/{v2/isEmojiUri.d.ts → isEmojiUri.d.ts} +0 -0
  146. /package/dist/utils/{v2/isMetaFlowTemplateLiteral.d.ts → isMetaFlowTemplateLiteral.d.ts} +0 -0
  147. /package/dist/utils/{v2/isTranslationFlowTemplateLiteral.d.ts → isTranslationFlowTemplateLiteral.d.ts} +0 -0
  148. /package/dist/utils/{v2/parseFlowTemplateLiteral.d.ts → parseFlowTemplateLiteral.d.ts} +0 -0
  149. /package/dist/utils/{v2/resolveLocaleDisplayName.d.ts → resolveLocaleDisplayName.d.ts} +0 -0
  150. /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,iCAAiC;IAChD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAC9B;AAED,MAAM,WAAW,2BAA2B;IAC1C,IAAI,EAAE,sBAAsB,CAAC;IAC7B,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,kBAAkB,CAAC;IAC/B,IAAI,EAAE,wBAAwB,CAAC;CAChC;AAED,oBAAY,kBAAkB;IAC5B,QAAQ,aAAa;IACrB,UAAU,eAAe;CAC1B;AAED,oBAAY,wBAAwB;IAClC,WAAW,gBAAgB;IAC3B,IAAI,SAAS;CACd;AAED,MAAM,WAAW,sBAAsB;IACrC,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACrC,UAAU,CAAC,EAAE,qBAAqB,EAAE,CAAC;IACrC,WAAW,CA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;IAC1B,wCAAwC;IACxC,SAAS,EAAE,MAAM,CAAC;IAClB,kCAAkC;IAClC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,IAAI,CAAC,EAAE,kBAAkB,CAAC;CAC3B;AAED;;;;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-v2';
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-v2.d.ts.map
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,wB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://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
@@ -15,86 +15,330 @@
15
15
  * specific language governing permissions and limitations
16
16
  * under the License.
17
17
  */
18
- export interface EmbeddedSignInFlowInitiateResponse {
19
- flowId: string;
20
- flowStatus: EmbeddedSignInFlowStatus;
21
- flowType: EmbeddedSignInFlowType;
22
- links: EmbeddedSignInFlowLink[];
23
- nextStep: {
24
- authenticators: EmbeddedSignInFlowAuthenticator[];
25
- stepType: EmbeddedSignInFlowStepType;
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
- FailCompleted = "FAIL_COMPLETED",
30
- FailIncomplete = "FAIL_INCOMPLETE",
31
- Incomplete = "INCOMPLETE",
32
- SuccessCompleted = "SUCCESS_COMPLETED"
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
- Authentication = "AUTHENTICATION"
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
- export declare enum EmbeddedSignInFlowStepType {
38
- AuthenticatorPrompt = "AUTHENTICATOR_PROMPT",
39
- MultiOptionsPrompt = "MULTI_OPTIONS_PROMPT"
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
- export interface EmbeddedSignInFlowAuthenticator {
42
- authenticator: string;
43
- authenticatorId: string;
44
- idp: string;
45
- metadata: {
46
- i18nKey: string;
47
- params: {
48
- confidential: boolean;
49
- displayName: string;
50
- i18nKey: string;
51
- order: number;
52
- param: string;
53
- type: EmbeddedSignInFlowAuthenticatorParamType;
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
- export interface EmbeddedSignInFlowHandleResponse {
72
- authData: Record<string, any>;
73
- flowStatus: string;
74
- }
75
- export declare enum EmbeddedSignInFlowAuthenticatorParamType {
76
- Integer = "INTEGER",
77
- MultiValued = "MULTI_VALUED",
78
- String = "STRING"
79
- }
80
- export declare enum EmbeddedSignInFlowAuthenticatorExtendedParamType {
81
- Otp = "OTPCode"
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
- export declare enum EmbeddedSignInFlowAuthenticatorKnownIdPType {
84
- Local = "LOCAL"
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
- export declare enum EmbeddedSignInFlowAuthenticatorPromptType {
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
- * Prompt for internal system use, such as API keys or tokens.
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
- InternalPrompt = "INTERNAL_PROMPT",
323
+ challengeToken?: string;
91
324
  /**
92
- * Prompt for redirection to another page or service.
325
+ * Identifier of the flow instance to continue.
326
+ * Required when submitting data for an existing flow.
93
327
  */
94
- RedirectionPrompt = "REDIRECTION_PROMPT",
328
+ executionId?: string;
95
329
  /**
96
- * Prompt for user input, typically for username/password or similar credentials.
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
- UserPrompt = "USER_PROMPT"
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,MAAM,WAAW,kCAAkC;IACjD,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,wBAAwB,CAAC;IACrC,QAAQ,EAAE,sBAAsB,CAAC;IACjC,KAAK,EAAE,sBAAsB,EAAE,CAAC;IAChC,QAAQ,EAAE;QACR,cAAc,EAAE,+BAA+B,EAAE,CAAC;QAClD,QAAQ,EAAE,0BAA0B,CAAC;KACtC,CAAC;CACH;AAED,oBAAY,wBAAwB;IAClC,aAAa,mBAAmB;IAChC,cAAc,oBAAoB;IAClC,UAAU,eAAe;IACzB,gBAAgB,sBAAsB;CACvC;AAED,oBAAY,sBAAsB;IAChC,cAAc,mBAAmB;CAClC;AAED,oBAAY,0BAA0B;IACpC,mBAAmB,yBAAyB;IAC5C,kBAAkB,yBAAyB;CAC5C;AAED,MAAM,WAAW,+BAA+B;IAC9C,aAAa,EAAE,MAAM,CAAC;IACtB,eAAe,EAAE,MAAM,CAAC;IACxB,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,EAAE;QACR,OAAO,EAAE,MAAM,CAAC;QAChB,MAAM,EAAE;YACN,YAAY,EAAE,OAAO,CAAC;YACtB,WAAW,EAAE,MAAM,CAAC;YACpB,OAAO,EAAE,MAAM,CAAC;YAChB,KAAK,EAAE,MAAM,CAAC;YACd,KAAK,EAAE,MAAM,CAAC;YACd,IAAI,EAAE,wCAAwC,CAAC;SAChD,EAAE,CAAC;QACJ,UAAU,EAAE,yCAAyC,CAAC;KACvD,CAAC;IACF,cAAc,EAAE,MAAM,EAAE,CAAC;CAC1B;AAED,MAAM,WAAW,sBAAsB;IACrC,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,sCAAsC;IACrD,MAAM,EAAE,MAAM,CAAC;IACf,qBAAqB,EAAE;QACrB,eAAe,EAAE,MAAM,CAAC;QACxB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;KAChC,CAAC;CACH;AAED,MAAM,WAAW,gCAAgC;IAC/C,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC9B,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,oBAAY,wCAAwC;IAClD,OAAO,YAAY;IACnB,WAAW,iBAAiB;IAC5B,MAAM,WAAW;CAClB;AAED,oBAAY,gDAAgD;IAC1D,GAAG,YAAY;CAChB;AAED,oBAAY,2CAA2C;IACrD,KAAK,UAAU;CAChB;AAED,oBAAY,yCAAyC;IACnD;;OAEG;IACH,cAAc,oBAAoB;IAClC;;OAEG;IACH,iBAAiB,uBAAuB;IACxC;;OAEG;IACH,UAAU,gBAAgB;CAC3B"}
1
+ {"version":3,"file":"embedded-signin-flow.d.ts","sourceRoot":"","sources":["../../src/models/embedded-signin-flow.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EACL,wBAAwB,EACxB,wBAAwB,EACxB,gBAAgB,EAChB,kBAAkB,EACnB,MAAM,iBAAiB,CAAC;AAEzB;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,oBAAY,wBAAwB;IAClC;;;;;;OAMG;IACH,QAAQ,aAAa;IAErB;;;;;;OAMG;IACH,KAAK,UAAU;I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;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-v2';
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: EmbeddedFlowResponseTypeV1;
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: EmbeddedFlowTypeV1;
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-v2.d.ts.map
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,MAAM,WAAW,kCAAkC;IACjD;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,WAAW,0BAA2B,SAAQ,kCAAkC;IACpF;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;;OAGG;IACH,IAAI,EAAE;QACJ;;WAEG;QACH,OAAO,CAAC,EAAE;YACR,EAAE,EAAE,MAAM,CAAC;YACX,IAAI,EAAE,wBAAwB,CAAC;SAChC,EAAE,CAAC;QAEJ;;WAEG;QACH,MAAM,CAAC,EAAE;YACP,IAAI,EAAE,MAAM,CAAC;YACb,QAAQ,EAAE,OAAO,CAAC;YAClB,IAAI,EAAE,MAAM,CAAC;SACd,EAAE,CAAC;KACL,CAAC;IAEF;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;;OAGG;IACH,KAAK,CAAC,EAAE,kBAAkB,CAAC;IAE3B;;;OAGG;IACH,UAAU,EAAE,wBAAwB,CAAC;IAErC;;OAEG;IACH,IAAI,EAAE,sBAAsB,CAAC;CAC9B;AAED;;;GAGG;AACH,MAAM,WAAW,kCAAkC;IACjD,YAAY,EAAE,MAAM,CAAC;CACtB;AAED;;;GAGG;AACH,MAAM,WAAW,iCAAiC;IAChD,aAAa,EAAE,MAAM,CAAC;IACtB,QAAQ,EAAE,gBAAgB,CAAC;IAC3B;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;CAC5B;AAED;;;GAGG;AACH,MAAM,WAAW,yBAA0B,SAAQ,OAAO,CAAC,iCAAiC,CAAC;IAC3F,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAC9B;AAED;;;;;;;;;;;;;;;;;;;;;;;GAuBG;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,EAAE,OAAO,CAAC;IACrB,SAAS,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,oBAAoB,GAAG,IAAI,CAAC;IACnC,WAAW,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC,aAAa,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACrD,QAAQ,CAAC,EAAE,CAAC,SAAS,EAAE,qBAAqB,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,cAAc,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;IAC5G,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACxC;AAED;;;;GAIG;AACH,MAAM,MAAM,iBAAiB,GAAG,CAAC,SAAS,EAAE,qBAAqB,EAAE,OAAO,EAAE,sBAAsB,KAAK,OAAO,CAAC;AAE/G;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG,MAAM,CAAC,MAAM,EAAE,iBAAiB,CAAC,CAAC;AAErE;;;;GAIG;AACH,MAAM,WAAW,oBAAoB;IACnC,SAAS,CAAC,EAAE,oBAAoB,CAAC;CAClC"}
@@ -296,4 +296,4 @@ export interface GetFlowMetaRequestConfig extends Omit<Partial<RequestInit>, 'me
296
296
  */
297
297
  url?: string;
298
298
  }
299
- //# sourceMappingURL=flow-meta-v2.d.ts.map
299
+ //# s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H,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-v2';
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"}