@thunderid/javascript 0.0.1

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 (277) hide show
  1. package/LICENSE +201 -0
  2. package/dist/DefaultCacheStore.d.ts +31 -0
  3. package/dist/DefaultCacheStore.d.ts.map +1 -0
  4. package/dist/DefaultCrypto.d.ts +30 -0
  5. package/dist/DefaultCrypto.d.ts.map +1 -0
  6. package/dist/HttpClient.d.ts +65 -0
  7. package/dist/HttpClient.d.ts.map +1 -0
  8. package/dist/IsomorphicCrypto.d.ts +64 -0
  9. package/dist/IsomorphicCrypto.d.ts.map +1 -0
  10. package/dist/StorageManager.d.ts +66 -0
  11. package/dist/StorageManager.d.ts.map +1 -0
  12. package/dist/ThunderIDJavaScriptClient.d.ts +66 -0
  13. package/dist/ThunderIDJavaScriptClient.d.ts.map +1 -0
  14. package/dist/__legacy__/client.d.ts +485 -0
  15. package/dist/__legacy__/client.d.ts.map +1 -0
  16. package/dist/__legacy__/helpers/authentication-helper.d.ts +38 -0
  17. package/dist/__legacy__/helpers/authentication-helper.d.ts.map +1 -0
  18. package/dist/__legacy__/helpers/index.d.ts +19 -0
  19. package/dist/__legacy__/helpers/index.d.ts.map +1 -0
  20. package/dist/__legacy__/models/client-config.d.ts +106 -0
  21. package/dist/__legacy__/models/client-config.d.ts.map +1 -0
  22. package/dist/__legacy__/models/index.d.ts +19 -0
  23. package/dist/__legacy__/models/index.d.ts.map +1 -0
  24. package/dist/api/createOrganization.d.ts +130 -0
  25. package/dist/api/createOrganization.d.ts.map +1 -0
  26. package/dist/api/executeEmbeddedSignInFlow.d.ts +22 -0
  27. package/dist/api/executeEmbeddedSignInFlow.d.ts.map +1 -0
  28. package/dist/api/executeEmbeddedSignUpFlow.d.ts +45 -0
  29. package/dist/api/executeEmbeddedSignUpFlow.d.ts.map +1 -0
  30. package/dist/api/getAllOrganizations.d.ts +104 -0
  31. package/dist/api/getAllOrganizations.d.ts.map +1 -0
  32. package/dist/api/getBrandingPreference.d.ts +104 -0
  33. package/dist/api/getBrandingPreference.d.ts.map +1 -0
  34. package/dist/api/getMeOrganizations.d.ts +120 -0
  35. package/dist/api/getMeOrganizations.d.ts.map +1 -0
  36. package/dist/api/getOrganization.d.ts +110 -0
  37. package/dist/api/getOrganization.d.ts.map +1 -0
  38. package/dist/api/getSchemas.d.ts +90 -0
  39. package/dist/api/getSchemas.d.ts.map +1 -0
  40. package/dist/api/getScim2Me.d.ts +90 -0
  41. package/dist/api/getScim2Me.d.ts.map +1 -0
  42. package/dist/api/getUserInfo.d.ts +38 -0
  43. package/dist/api/getUserInfo.d.ts.map +1 -0
  44. package/dist/api/initializeEmbeddedSignInFlow.d.ts +52 -0
  45. package/dist/api/initializeEmbeddedSignInFlow.d.ts.map +1 -0
  46. package/dist/api/updateMeProfile.d.ts +83 -0
  47. package/dist/api/updateMeProfile.d.ts.map +1 -0
  48. package/dist/api/updateOrganization.d.ts +119 -0
  49. package/dist/api/updateOrganization.d.ts.map +1 -0
  50. package/dist/api/v2/executeEmbeddedRecoveryFlowV2.d.ts +57 -0
  51. package/dist/api/v2/executeEmbeddedRecoveryFlowV2.d.ts.map +1 -0
  52. package/dist/api/v2/executeEmbeddedSignInFlowV2.d.ts +22 -0
  53. package/dist/api/v2/executeEmbeddedSignInFlowV2.d.ts.map +1 -0
  54. package/dist/api/v2/executeEmbeddedSignUpFlowV2.d.ts +22 -0
  55. package/dist/api/v2/executeEmbeddedSignUpFlowV2.d.ts.map +1 -0
  56. package/dist/api/v2/executeEmbeddedUserOnboardingFlowV2.d.ts +89 -0
  57. package/dist/api/v2/executeEmbeddedUserOnboardingFlowV2.d.ts.map +1 -0
  58. package/dist/api/v2/getFlowMetaV2.d.ts +56 -0
  59. package/dist/api/v2/getFlowMetaV2.d.ts.map +1 -0
  60. package/dist/api/v2/getOrganizationUnitChildren.d.ts +43 -0
  61. package/dist/api/v2/getOrganizationUnitChildren.d.ts.map +1 -0
  62. package/dist/cjs/index.cjs +7693 -0
  63. package/dist/constants/ApplicationNativeAuthenticationConstants.d.ts +40 -0
  64. package/dist/constants/ApplicationNativeAuthenticationConstants.d.ts.map +1 -0
  65. package/dist/constants/OIDCDiscoveryConstants.d.ts +65 -0
  66. package/dist/constants/OIDCDiscoveryConstants.d.ts.map +1 -0
  67. package/dist/constants/OIDCRequestConstants.d.ts +43 -0
  68. package/dist/constants/OIDCRequestConstants.d.ts.map +1 -0
  69. package/dist/constants/PKCEConstants.d.ts +45 -0
  70. package/dist/constants/PKCEConstants.d.ts.map +1 -0
  71. package/dist/constants/ScopeConstants.d.ts +43 -0
  72. package/dist/constants/ScopeConstants.d.ts.map +1 -0
  73. package/dist/constants/TokenConstants.d.ts +48 -0
  74. package/dist/constants/TokenConstants.d.ts.map +1 -0
  75. package/dist/constants/TokenExchangeConstants.d.ts +44 -0
  76. package/dist/constants/TokenExchangeConstants.d.ts.map +1 -0
  77. package/dist/constants/VendorConstants.d.ts +32 -0
  78. package/dist/constants/VendorConstants.d.ts.map +1 -0
  79. package/dist/constants/v2/OIDCDiscoveryConstants.d.ts +40 -0
  80. package/dist/constants/v2/OIDCDiscoveryConstants.d.ts.map +1 -0
  81. package/dist/edge/index.js +7568 -0
  82. package/dist/errors/ThunderIDAPIError.d.ts +59 -0
  83. package/dist/errors/ThunderIDAPIError.d.ts.map +1 -0
  84. package/dist/errors/ThunderIDError.d.ts +50 -0
  85. package/dist/errors/ThunderIDError.d.ts.map +1 -0
  86. package/dist/errors/ThunderIDRuntimeError.d.ts +51 -0
  87. package/dist/errors/ThunderIDRuntimeError.d.ts.map +1 -0
  88. package/dist/errors/exception.d.ts +27 -0
  89. package/dist/errors/exception.d.ts.map +1 -0
  90. package/dist/i18n/constants/TranslationBundleConstants.d.ts +35 -0
  91. package/dist/i18n/constants/TranslationBundleConstants.d.ts.map +1 -0
  92. package/dist/i18n/models/i18n.d.ts +127 -0
  93. package/dist/i18n/models/i18n.d.ts.map +1 -0
  94. package/dist/i18n/translations/en-US.d.ts +21 -0
  95. package/dist/i18n/translations/en-US.d.ts.map +1 -0
  96. package/dist/i18n/translations/fr-FR.d.ts +21 -0
  97. package/dist/i18n/translations/fr-FR.d.ts.map +1 -0
  98. package/dist/i18n/translations/hi-IN.d.ts +21 -0
  99. package/dist/i18n/translations/hi-IN.d.ts.map +1 -0
  100. package/dist/i18n/translations/index.d.ts +26 -0
  101. package/dist/i18n/translations/index.d.ts.map +1 -0
  102. package/dist/i18n/translations/ja-JP.d.ts +21 -0
  103. package/dist/i18n/translations/ja-JP.d.ts.map +1 -0
  104. package/dist/i18n/translations/pt-BR.d.ts +21 -0
  105. package/dist/i18n/translations/pt-BR.d.ts.map +1 -0
  106. package/dist/i18n/translations/pt-PT.d.ts +21 -0
  107. package/dist/i18n/translations/pt-PT.d.ts.map +1 -0
  108. package/dist/i18n/translations/si-LK.d.ts +21 -0
  109. package/dist/i18n/translations/si-LK.d.ts.map +1 -0
  110. package/dist/i18n/translations/ta-IN.d.ts +21 -0
  111. package/dist/i18n/translations/ta-IN.d.ts.map +1 -0
  112. package/dist/i18n/translations/te-IN.d.ts +21 -0
  113. package/dist/i18n/translations/te-IN.d.ts.map +1 -0
  114. package/dist/i18n/utils/getDefaultI18nBundles.d.ts +28 -0
  115. package/dist/i18n/utils/getDefaultI18nBundles.d.ts.map +1 -0
  116. package/dist/i18n/utils/normalizeTranslations.d.ts +42 -0
  117. package/dist/i18n/utils/normalizeTranslations.d.ts.map +1 -0
  118. package/dist/index.d.ts +143 -0
  119. package/dist/index.d.ts.map +1 -0
  120. package/dist/index.js +7568 -0
  121. package/dist/models/agent.d.ts +45 -0
  122. package/dist/models/agent.d.ts.map +1 -0
  123. package/dist/models/auth-code-response.d.ts +35 -0
  124. package/dist/models/auth-code-response.d.ts.map +1 -0
  125. package/dist/models/branding-preference.d.ts +249 -0
  126. package/dist/models/branding-preference.d.ts.map +1 -0
  127. package/dist/models/client.d.ts +213 -0
  128. package/dist/models/client.d.ts.map +1 -0
  129. package/dist/models/config.d.ts +483 -0
  130. package/dist/models/config.d.ts.map +1 -0
  131. package/dist/models/crypto.d.ts +101 -0
  132. package/dist/models/crypto.d.ts.map +1 -0
  133. package/dist/models/embedded-flow.d.ts +167 -0
  134. package/dist/models/embedded-flow.d.ts.map +1 -0
  135. package/dist/models/embedded-signin-flow.d.ts +100 -0
  136. package/dist/models/embedded-signin-flow.d.ts.map +1 -0
  137. package/dist/models/field.d.ts +32 -0
  138. package/dist/models/field.d.ts.map +1 -0
  139. package/dist/models/flow.d.ts +31 -0
  140. package/dist/models/flow.d.ts.map +1 -0
  141. package/dist/models/http.d.ts +46 -0
  142. package/dist/models/http.d.ts.map +1 -0
  143. package/dist/models/oauth-request.d.ts +24 -0
  144. package/dist/models/oauth-request.d.ts.map +1 -0
  145. package/dist/models/oauth-response.d.ts +19 -0
  146. package/dist/models/oauth-response.d.ts.map +1 -0
  147. package/dist/models/oidc-discovery.d.ts +370 -0
  148. package/dist/models/oidc-discovery.d.ts.map +1 -0
  149. package/dist/models/oidc-endpoints.d.ts +72 -0
  150. package/dist/models/oidc-endpoints.d.ts.map +1 -0
  151. package/dist/models/organization.d.ts +34 -0
  152. package/dist/models/organization.d.ts.map +1 -0
  153. package/dist/models/platforms.d.ts +38 -0
  154. package/dist/models/platforms.d.ts.map +1 -0
  155. package/dist/models/scim2-schema.d.ts +66 -0
  156. package/dist/models/scim2-schema.d.ts.map +1 -0
  157. package/dist/models/session.d.ts +32 -0
  158. package/dist/models/session.d.ts.map +1 -0
  159. package/dist/models/store.d.ts +84 -0
  160. package/dist/models/store.d.ts.map +1 -0
  161. package/dist/models/token-endpoint-auth.d.ts +30 -0
  162. package/dist/models/token-endpoint-auth.d.ts.map +1 -0
  163. package/dist/models/token.d.ts +181 -0
  164. package/dist/models/token.d.ts.map +1 -0
  165. package/dist/models/user.d.ts +34 -0
  166. package/dist/models/user.d.ts.map +1 -0
  167. package/dist/models/utility-types.d.ts +21 -0
  168. package/dist/models/utility-types.d.ts.map +1 -0
  169. package/dist/models/v2/embedded-flow-v2.d.ts +494 -0
  170. package/dist/models/v2/embedded-flow-v2.d.ts.map +1 -0
  171. package/dist/models/v2/embedded-recovery-flow-v2.d.ts +143 -0
  172. package/dist/models/v2/embedded-recovery-flow-v2.d.ts.map +1 -0
  173. package/dist/models/v2/embedded-signin-flow-v2.d.ts +340 -0
  174. package/dist/models/v2/embedded-signin-flow-v2.d.ts.map +1 -0
  175. package/dist/models/v2/embedded-signup-flow-v2.d.ts +272 -0
  176. package/dist/models/v2/embedded-signup-flow-v2.d.ts.map +1 -0
  177. package/dist/models/v2/extensions/components.d.ts +89 -0
  178. package/dist/models/v2/extensions/components.d.ts.map +1 -0
  179. package/dist/models/v2/flow-meta-v2.d.ts +299 -0
  180. package/dist/models/v2/flow-meta-v2.d.ts.map +1 -0
  181. package/dist/models/v2/organization-unit.d.ts +103 -0
  182. package/dist/models/v2/organization-unit.d.ts.map +1 -0
  183. package/dist/models/v2/translation.d.ts +35 -0
  184. package/dist/models/v2/translation.d.ts.map +1 -0
  185. package/dist/models/v2/vars.d.ts +36 -0
  186. package/dist/models/v2/vars.d.ts.map +1 -0
  187. package/dist/theme/createTheme.d.ts +23 -0
  188. package/dist/theme/createTheme.d.ts.map +1 -0
  189. package/dist/theme/types.d.ts +381 -0
  190. package/dist/theme/types.d.ts.map +1 -0
  191. package/dist/utils/arrayBufferToBase64url.d.ts +49 -0
  192. package/dist/utils/arrayBufferToBase64url.d.ts.map +1 -0
  193. package/dist/utils/base64Encode.d.ts +36 -0
  194. package/dist/utils/base64Encode.d.ts.map +1 -0
  195. package/dist/utils/base64urlToArrayBuffer.d.ts +56 -0
  196. package/dist/utils/base64urlToArrayBuffer.d.ts.map +1 -0
  197. package/dist/utils/bem.d.ts +47 -0
  198. package/dist/utils/bem.d.ts.map +1 -0
  199. package/dist/utils/deepMerge.d.ts +45 -0
  200. package/dist/utils/deepMerge.d.ts.map +1 -0
  201. package/dist/utils/deriveOrganizationHandleFromBaseUrl.d.ts +48 -0
  202. package/dist/utils/deriveOrganizationHandleFromBaseUrl.d.ts.map +1 -0
  203. package/dist/utils/extractPkceStorageKeyFromState.d.ts +33 -0
  204. package/dist/utils/extractPkceStorageKeyFromState.d.ts.map +1 -0
  205. package/dist/utils/extractTenantDomainFromIdTokenPayload.d.ts +32 -0
  206. package/dist/utils/extractTenantDomainFromIdTokenPayload.d.ts.map +1 -0
  207. package/dist/utils/extractUserClaimsFromIdToken.d.ts +47 -0
  208. package/dist/utils/extractUserClaimsFromIdToken.d.ts.map +1 -0
  209. package/dist/utils/flattenUserSchema.d.ts +65 -0
  210. package/dist/utils/flattenUserSchema.d.ts.map +1 -0
  211. package/dist/utils/formatDate.d.ts +34 -0
  212. package/dist/utils/formatDate.d.ts.map +1 -0
  213. package/dist/utils/generateFlattenedUserProfile.d.ts +54 -0
  214. package/dist/utils/generateFlattenedUserProfile.d.ts.map +1 -0
  215. package/dist/utils/generatePkceStorageKey.d.ts +35 -0
  216. package/dist/utils/generatePkceStorageKey.d.ts.map +1 -0
  217. package/dist/utils/generateStateParamForRequestCorrelation.d.ts +35 -0
  218. package/dist/utils/generateStateParamForRequestCorrelation.d.ts.map +1 -0
  219. package/dist/utils/generateUserProfile.d.ts +56 -0
  220. package/dist/utils/generateUserProfile.d.ts.map +1 -0
  221. package/dist/utils/get.d.ts +30 -0
  222. package/dist/utils/get.d.ts.map +1 -0
  223. package/dist/utils/getAuthorizeRequestUrlParams.d.ts +61 -0
  224. package/dist/utils/getAuthorizeRequestUrlParams.d.ts.map +1 -0
  225. package/dist/utils/getLatestStateParam.d.ts +41 -0
  226. package/dist/utils/getLatestStateParam.d.ts.map +1 -0
  227. package/dist/utils/getRedirectBasedSignUpUrl.d.ts +30 -0
  228. package/dist/utils/getRedirectBasedSignUpUrl.d.ts.map +1 -0
  229. package/dist/utils/identifyPlatform.d.ts +31 -0
  230. package/dist/utils/identifyPlatform.d.ts.map +1 -0
  231. package/dist/utils/isEmpty.d.ts +49 -0
  232. package/dist/utils/isEmpty.d.ts.map +1 -0
  233. package/dist/utils/isRecognizedBaseUrlPattern.d.ts +33 -0
  234. package/dist/utils/isRecognizedBaseUrlPattern.d.ts.map +1 -0
  235. package/dist/utils/logger.d.ts +143 -0
  236. package/dist/utils/logger.d.ts.map +1 -0
  237. package/dist/utils/parseApiErrorMessage.d.ts +29 -0
  238. package/dist/utils/parseApiErrorMessage.d.ts.map +1 -0
  239. package/dist/utils/processOpenIDScopes.d.ts +42 -0
  240. package/dist/utils/processOpenIDScopes.d.ts.map +1 -0
  241. package/dist/utils/processUsername.d.ts +74 -0
  242. package/dist/utils/processUsername.d.ts.map +1 -0
  243. package/dist/utils/removeTrailingSlash.d.ts +32 -0
  244. package/dist/utils/removeTrailingSlash.d.ts.map +1 -0
  245. package/dist/utils/resolveFieldName.d.ts +20 -0
  246. package/dist/utils/resolveFieldName.d.ts.map +1 -0
  247. package/dist/utils/resolveFieldType.d.ts +21 -0
  248. package/dist/utils/resolveFieldType.d.ts.map +1 -0
  249. package/dist/utils/set.d.ts +31 -0
  250. package/dist/utils/set.d.ts.map +1 -0
  251. package/dist/utils/transformBrandingPreferenceToTheme.d.ts +49 -0
  252. package/dist/utils/transformBrandingPreferenceToTheme.d.ts.map +1 -0
  253. package/dist/utils/v2/containsMetaFlowTemplateLiteral.d.ts +57 -0
  254. package/dist/utils/v2/containsMetaFlowTemplateLiteral.d.ts.map +1 -0
  255. package/dist/utils/v2/countryCodeToFlagEmoji.d.ts +26 -0
  256. package/dist/utils/v2/countryCodeToFlagEmoji.d.ts.map +1 -0
  257. package/dist/utils/v2/extractEmojiFromUri.d.ts +32 -0
  258. package/dist/utils/v2/extractEmojiFromUri.d.ts.map +1 -0
  259. package/dist/utils/v2/isEmojiUri.d.ts +34 -0
  260. package/dist/utils/v2/isEmojiUri.d.ts.map +1 -0
  261. package/dist/utils/v2/isMetaFlowTemplateLiteral.d.ts +45 -0
  262. package/dist/utils/v2/isMetaFlowTemplateLiteral.d.ts.map +1 -0
  263. package/dist/utils/v2/isTranslationFlowTemplateLiteral.d.ts +45 -0
  264. package/dist/utils/v2/isTranslationFlowTemplateLiteral.d.ts.map +1 -0
  265. package/dist/utils/v2/parseFlowTemplateLiteral.d.ts +96 -0
  266. package/dist/utils/v2/parseFlowTemplateLiteral.d.ts.map +1 -0
  267. package/dist/utils/v2/resolveFlowTemplateLiterals.d.ts +42 -0
  268. package/dist/utils/v2/resolveFlowTemplateLiterals.d.ts.map +1 -0
  269. package/dist/utils/v2/resolveLocaleDisplayName.d.ts +30 -0
  270. package/dist/utils/v2/resolveLocaleDisplayName.d.ts.map +1 -0
  271. package/dist/utils/v2/resolveLocaleEmoji.d.ts +31 -0
  272. package/dist/utils/v2/resolveLocaleEmoji.d.ts.map +1 -0
  273. package/dist/utils/v2/resolveMeta.d.ts +35 -0
  274. package/dist/utils/v2/resolveMeta.d.ts.map +1 -0
  275. package/dist/utils/withVendorCSSClassPrefix.d.ts +33 -0
  276. package/dist/utils/withVendorCSSClassPrefix.d.ts.map +1 -0
  277. package/package.json +65 -0
@@ -0,0 +1,89 @@
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 type { EmbeddedFlowComponent as EmbeddedFlowComponentV2 } from '../embedded-flow-v2';
19
+ import type { FlowMetadataResponse } from '../flow-meta-v2';
20
+ /**
21
+ * Framework-agnostic context passed to every custom component renderer.
22
+ * Contains form state and callbacks needed to render and submit flow components.
23
+ */
24
+ export interface ComponentRenderContext {
25
+ /**
26
+ * Extra payload propagated by the flow engine for component rendering.
27
+ */
28
+ additionalData?: Record<string, any>;
29
+ /**
30
+ * Authentication flow type currently being rendered.
31
+ */
32
+ authType: 'signin' | 'signup';
33
+ /**
34
+ * Validation messages keyed by field name.
35
+ */
36
+ formErrors: Record<string, string>;
37
+ /**
38
+ * Current form values keyed by field name.
39
+ */
40
+ formValues: Record<string, string>;
41
+ /**
42
+ * Whether the current form state passes validation.
43
+ */
44
+ isFormValid: boolean;
45
+ /**
46
+ * Indicates whether a submit action is currently in progress.
47
+ */
48
+ isLoading: boolean;
49
+ /**
50
+ * Optional flow metadata associated with the current step.
51
+ */
52
+ meta?: FlowMetadataResponse | null;
53
+ /**
54
+ * Optional callback fired when an input loses focus.
55
+ */
56
+ onInputBlur?: (name: string) => void;
57
+ /**
58
+ * Callback to update the value of a named input field.
59
+ */
60
+ onInputChange: (name: string, value: string) => void;
61
+ /**
62
+ * Optional submit handler for progressing the flow.
63
+ */
64
+ onSubmit?: (component: EmbeddedFlowComponentV2, data?: Record<string, any>, skipValidation?: boolean) => void;
65
+ /**
66
+ * Tracks whether each field has been interacted with.
67
+ */
68
+ touchedFields: Record<string, boolean>;
69
+ }
70
+ /**
71
+ * A function that renders a flow component of a given type.
72
+ * `TElement` is `unknown` at the JS SDK level; each framework narrows it
73
+ * (React: `ReactElement`, Vue: `VNode`, etc.).
74
+ *
75
+ * Returning `null` hides the component. If no renderer is registered for a
76
+ * component type, the SDK falls back to its built-in rendering.
77
+ */
78
+ export type ComponentRenderer<TElement = unknown> = (component: EmbeddedFlowComponentV2, context: ComponentRenderContext) => TElement | null;
79
+ /**
80
+ * Extension configuration for flow component rendering.
81
+ * Keyed by component type string (e.g. `"PASSWORD_INPUT"`, `"ACTION"`).
82
+ */
83
+ export interface ComponentsExtensions {
84
+ /**
85
+ * Custom renderers keyed by flow component type.
86
+ */
87
+ renderers?: Record<string, ComponentRenderer<unknown>>;
88
+ }
89
+ //# sourceMappingURL=components.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"components.d.ts","sourceRoot":"","sources":["../../../../src/models/v2/extensions/components.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAC,qBAAqB,IAAI,uBAAuB,EAAC,MAAM,qBAAqB,CAAC;AAC1F,OAAO,KAAK,EAAC,oBAAoB,EAAC,MAAM,iBAAiB,CAAC;AAE1D;;;GAGG;AACH,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACrC;;OAEG;IACH,QAAQ,EAAE,QAAQ,GAAG,QAAQ,CAAC;IAC9B;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACnC;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACnC;;OAEG;IACH,WAAW,EAAE,OAAO,CAAC;IACrB;;OAEG;IACH,SAAS,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,IAAI,CAAC,EAAE,oBAAoB,GAAG,IAAI,CAAC;IACnC;;OAEG;IACH,WAAW,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC;;OAEG;IACH,aAAa,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACrD;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,SAAS,EAAE,uBAAuB,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,cAAc,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;IAC9G;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACxC;AAED;;;;;;;GAOG;AACH,MAAM,MAAM,iBAAiB,CAAC,QAAQ,GAAG,OAAO,IAAI,CAClD,SAAS,EAAE,uBAAuB,EAClC,OAAO,EAAE,sBAAsB,KAC5B,QAAQ,GAAG,IAAI,CAAC;AAErB;;;GAGG;AACH,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,iBAAiB,CAAC,OAAO,CAAC,CAAC,CAAC;CACxD"}
@@ -0,0 +1,299 @@
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
+ /**
19
+ * The type of entity to retrieve flow metadata for.
20
+ *
21
+ * @example
22
+ * ```typescript
23
+ * const config: GetFlowMetaRequestConfig = {
24
+ * baseUrl: 'https://localhost:8090',
25
+ * type: FlowMetaType.App,
26
+ * id: '60a9b38b-6eba-9f9e-55f9-267067de4680',
27
+ * };
28
+ * ```
29
+ *
30
+ * @experimental This API may change in future versions
31
+ */
32
+ export declare enum FlowMetaType {
33
+ /** Retrieve metadata scoped to a specific application */
34
+ App = "APP",
35
+ /** Retrieve metadata scoped to a specific organization unit */
36
+ Ou = "OU"
37
+ }
38
+ /**
39
+ * Application metadata returned when `type=APP`.
40
+ *
41
+ * @experimental This API may change in future versions
42
+ */
43
+ export interface ApplicationMetadata {
44
+ /** Application UUID */
45
+ id: string;
46
+ /** URL of the application logo */
47
+ logoUrl?: string;
48
+ /** Human-readable application name */
49
+ name: string;
50
+ /** Privacy Policy URI */
51
+ policyUri?: string;
52
+ /** Terms of Service URI */
53
+ tosUri?: string;
54
+ /** Application home URL */
55
+ url?: string;
56
+ }
57
+ /**
58
+ * Organization unit metadata.
59
+ *
60
+ * Always present when `type=OU`. For `type=APP`, only included when the
61
+ * deployment has exactly one organization unit.
62
+ *
63
+ * @experimental This API may change in future versions
64
+ */
65
+ export interface OUMetadata {
66
+ /** Cookie Policy URI */
67
+ cookiePolicyUri?: string;
68
+ /** Optional description of the organization unit */
69
+ description?: string;
70
+ /** Unique handle / slug for the organization unit */
71
+ handle: string;
72
+ /** Organization unit UUID */
73
+ id: string;
74
+ /** URL of the organization unit logo */
75
+ logoUrl?: string;
76
+ /** Human-readable organization unit name */
77
+ name: string;
78
+ /** Privacy Policy URI */
79
+ policyUri?: string;
80
+ /** Terms of Service URI */
81
+ tosUri?: string;
82
+ }
83
+ /**
84
+ * A single color entry in the v2 theme color scheme.
85
+ *
86
+ * @experimental This API may change in future versions
87
+ */
88
+ export interface FlowMetaThemeColorSet {
89
+ /** Text color that contrasts against this color */
90
+ contrastText?: string;
91
+ /** The darker variant of the color */
92
+ dark?: string;
93
+ /** The main/primary variant of the color */
94
+ main: string;
95
+ }
96
+ /**
97
+ * Background colors in a v2 theme color scheme.
98
+ *
99
+ * @experimental This API may change in future versions
100
+ */
101
+ export interface FlowMetaThemeBackground {
102
+ /** Default background color (maps to body background) */
103
+ default?: string;
104
+ /** Surface / paper background color */
105
+ paper?: string;
106
+ }
107
+ /**
108
+ * Text colors in a v2 theme color scheme.
109
+ *
110
+ * @experimental This API may change in future versions
111
+ */
112
+ export interface FlowMetaThemeTextColors {
113
+ /** Primary text color */
114
+ primary?: string;
115
+ /** Secondary / muted text color */
116
+ secondary?: string;
117
+ }
118
+ /**
119
+ * All colors defined for a single v2 theme color scheme (light or dark).
120
+ *
121
+ * @experimental This API may change in future versions
122
+ */
123
+ export interface FlowMetaThemeColors {
124
+ /** Background colors for the theme (e.g., body, paper) */
125
+ background?: FlowMetaThemeBackground;
126
+ /** Primary color set for the theme */
127
+ primary?: FlowMetaThemeColorSet;
128
+ /** Secondary color set for the theme */
129
+ secondary?: FlowMetaThemeColorSet;
130
+ /** Text colors for the theme */
131
+ text?: FlowMetaThemeTextColors;
132
+ }
133
+ /**
134
+ * A single color scheme (light or dark) in the v2 theme.
135
+ *
136
+ * @experimental This API may change in future versions
137
+ */
138
+ export interface FlowMetaThemeColorScheme {
139
+ /** All colors defined for this color scheme (light or dark) */
140
+ palette: FlowMetaThemeColors;
141
+ }
142
+ /**
143
+ * Shape / geometry configuration in the v2 theme.
144
+ *
145
+ * @experimental This API may change in future versions
146
+ */
147
+ export interface FlowMetaThemeShape {
148
+ /** Border radius in pixels applied uniformly across components */
149
+ borderRadius?: number;
150
+ }
151
+ /**
152
+ * Typography configuration in the v2 theme.
153
+ *
154
+ * @experimental This API may change in future versions
155
+ */
156
+ export interface FlowMetaThemeTypography {
157
+ /** CSS font-family string */
158
+ fontFamily?: string;
159
+ }
160
+ /**
161
+ * Resolved theme configuration returned inside the flow metadata response.
162
+ *
163
+ * Maps to the `design.theme` field of {@link FlowMetadataResponse}.
164
+ *
165
+ * @experimental This API may change in future versions
166
+ */
167
+ export interface FlowMetaTheme {
168
+ /** Per-scheme color definitions (light and dark) */
169
+ colorSchemes?: {
170
+ /** Dark color scheme */
171
+ dark?: FlowMetaThemeColorScheme;
172
+ /** Light color scheme */
173
+ light?: FlowMetaThemeColorScheme;
174
+ };
175
+ /** The color scheme to apply by default */
176
+ defaultColorScheme?: 'light' | 'dark';
177
+ /** Text direction for the theme */
178
+ direction?: 'ltr' | 'rtl';
179
+ /** Shape/geometry configuration for the theme */
180
+ shape?: FlowMetaThemeShape;
181
+ /** Typography configuration for the theme */
182
+ typography?: FlowMetaThemeTypography;
183
+ }
184
+ /**
185
+ * Resolved design configuration (theme and layout) for the flow.
186
+ *
187
+ * @experimental This API may change in future versions
188
+ */
189
+ export interface DesignMetadata {
190
+ /** Resolved layout configuration (shape is server-defined) */
191
+ layout: Record<string, unknown>;
192
+ /** Resolved theme configuration for the flow */
193
+ theme: FlowMetaTheme;
194
+ }
195
+ /**
196
+ * Internationalisation metadata for the flow.
197
+ *
198
+ * @experimental This API may change in future versions
199
+ */
200
+ export interface I18nMetadata {
201
+ /** The language used for the returned translations (defaults to `en`) */
202
+ language: string;
203
+ /** List of all available language tags (BCP 47) for the entity */
204
+ languages: string[];
205
+ /** Total number of translation keys returned */
206
+ totalResults?: number;
207
+ /**
208
+ * Translations organised by namespace.
209
+ *
210
+ * @example
211
+ * ```json
212
+ * {
213
+ * "auth": {
214
+ * "login.button": "Login",
215
+ * "login.title": "Welcome"
216
+ * }
217
+ * }
218
+ * ```
219
+ */
220
+ translations: Record<string, Record<string, string>>;
221
+ }
222
+ /**
223
+ * Aggregated flow metadata response returned by `GET /flow/meta`.
224
+ *
225
+ * @experimental This API may change in future versions
226
+ */
227
+ export interface FlowMetadataResponse {
228
+ /**
229
+ * Application metadata.
230
+ * Only present when `type=APP`.
231
+ */
232
+ application?: ApplicationMetadata;
233
+ /** Resolved design configuration */
234
+ design: DesignMetadata;
235
+ /** Internationalisation metadata and translations */
236
+ i18n: I18nMetadata;
237
+ /** Indicates whether the registration flow is enabled for the entity */
238
+ isRegistrationFlowEnabled: boolean;
239
+ /**
240
+ * Organization unit metadata.
241
+ * Always present when `type=OU`.
242
+ * For `type=APP`, only present when the deployment has exactly one OU.
243
+ */
244
+ ou?: OUMetadata;
245
+ }
246
+ /**
247
+ * Request configuration for `getFlowMetaV2`.
248
+ *
249
+ * @example
250
+ * ```typescript
251
+ * const config: GetFlowMetaRequestConfig = {
252
+ * baseUrl: 'https://localhost:8090',
253
+ * type: FlowMetaType.App,
254
+ * id: '60a9b38b-6eba-9f9e-55f9-267067de4680',
255
+ * language: 'en',
256
+ * namespace: 'auth',
257
+ * };
258
+ * ```
259
+ *
260
+ * @experimental This API may change in future versions
261
+ */
262
+ export interface GetFlowMetaRequestConfig extends Omit<Partial<RequestInit>, 'method' | 'body'> {
263
+ /**
264
+ * Base URL of the Flow API server (e.g. `https://localhost:8090`).
265
+ * Either `baseUrl` or `url` must be provided.
266
+ */
267
+ baseUrl?: string;
268
+ /**
269
+ * UUID of the entity (application ID or organization unit ID).
270
+ * Optional — when omitted the server returns i18n-only metadata (e.g. for flows
271
+ * like AcceptInvite that are not tied to a specific application or OU).
272
+ */
273
+ id?: string;
274
+ /**
275
+ * Language tag in BCP 47 format for i18n translations.
276
+ * Defaults to `en` on the server side when omitted.
277
+ *
278
+ * @example "en", "es", "fr-CA"
279
+ */
280
+ language?: string;
281
+ /**
282
+ * Filter translations by a specific namespace.
283
+ *
284
+ * @example "auth", "errors", "common"
285
+ */
286
+ namespace?: string;
287
+ /**
288
+ * The type of entity to retrieve metadata for.
289
+ * Optional — must be omitted together with `id` for flows that are not
290
+ * associated with a specific application or OU (e.g. AcceptInvite).
291
+ */
292
+ type?: FlowMetaType;
293
+ /**
294
+ * Fully qualified URL of the `/flow/meta` endpoint.
295
+ * When provided, `baseUrl` is ignored.
296
+ */
297
+ url?: string;
298
+ }
299
+ //# sourceMappingURL=flow-meta-v2.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"flow-meta-v2.d.ts","sourceRoot":"","sources":["../../../src/models/v2/flow-meta-v2.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,103 @@
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
+ export interface OrganizationUnit {
19
+ description?: string;
20
+ handle: string;
21
+ id: string;
22
+ logoUrl?: string;
23
+ name: string;
24
+ parent?: {
25
+ id: string;
26
+ ref?: string;
27
+ };
28
+ }
29
+ export interface OrganizationUnitListResponse {
30
+ count: number;
31
+ organizationUnits: OrganizationUnit[];
32
+ startIndex: number;
33
+ totalResults: number;
34
+ }
35
+ /**
36
+ * Request configuration for fetching a single organization unit.
37
+ *
38
+ * @example
39
+ * ```typescript
40
+ * const config: GetOrganizationUnitConfig = {
41
+ * baseUrl: 'https://localhost:8090',
42
+ * organizationUnitId: '0d5e071b-d3d3-475d-b3c6-1a20ee2fa9b1',
43
+ * };
44
+ * ```
45
+ *
46
+ * @experimental This API may change in future versions
47
+ */
48
+ export interface GetOrganizationUnitConfig extends Omit<Partial<RequestInit>, 'method' | 'body'> {
49
+ /**
50
+ * Base URL of the API server.
51
+ * Either `baseUrl` or `url` must be provided.
52
+ */
53
+ baseUrl?: string;
54
+ /**
55
+ * The ID of the organization unit to retrieve.
56
+ */
57
+ organizationUnitId: string;
58
+ /**
59
+ * Fully qualified URL of the organization unit endpoint.
60
+ * When provided, `baseUrl` is ignored.
61
+ */
62
+ url?: string;
63
+ }
64
+ /**
65
+ * Request configuration for fetching child organization units.
66
+ *
67
+ * @example
68
+ * ```typescript
69
+ * const config: GetOrganizationUnitChildrenConfig = {
70
+ * baseUrl: 'https://localhost:8090',
71
+ * organizationUnitId: '0d5e071b-d3d3-475d-b3c6-1a20ee2fa9b1',
72
+ * limit: 10,
73
+ * offset: 0,
74
+ * };
75
+ * ```
76
+ *
77
+ * @experimental This API may change in future versions
78
+ */
79
+ export interface GetOrganizationUnitChildrenConfig extends Omit<Partial<RequestInit>, 'method' | 'body'> {
80
+ /**
81
+ * Base URL of the API server.
82
+ * Either `baseUrl` or `url` must be provided.
83
+ */
84
+ baseUrl?: string;
85
+ /**
86
+ * Maximum number of child OUs to return. Defaults to 10.
87
+ */
88
+ limit?: number;
89
+ /**
90
+ * Pagination offset. Defaults to 0.
91
+ */
92
+ offset?: number;
93
+ /**
94
+ * The ID of the parent organization unit.
95
+ */
96
+ organizationUnitId: string;
97
+ /**
98
+ * Fully qualified URL of the organization unit children endpoint.
99
+ * When provided, `baseUrl` is ignored.
100
+ */
101
+ url?: string;
102
+ }
103
+ //# sourceMappingURL=organization-unit.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"organization-unit.d.ts","sourceRoot":"","sources":["../../../src/models/v2/organization-unit.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,MAAM,WAAW,gBAAgB;IAC/B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC;IACf,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE;QACP,EAAE,EAAE,MAAM,CAAC;QACX,GAAG,CAAC,EAAE,MAAM,CAAC;KACd,CAAC;CACH;AAED,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,35 @@
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
+ /**
19
+ * Generic translation function type.
20
+ *
21
+ * The default parameter type (`Record<string, string | number>`) matches the
22
+ * common i18n signature used throughout the SDK. Consumers can supply a more
23
+ * specific type when integrating with third-party i18n libraries.
24
+ *
25
+ * @template TParams - The type of the optional interpolation parameters object.
26
+ *
27
+ * @example
28
+ * // Using the default (SDK-native) signature
29
+ * const t: TranslationFn = (key, params) => i18n.t(key, params);
30
+ *
31
+ * // Using react-i18next's TFunction as TParams
32
+ * const t: TranslationFn<Record<string, unknown>> = i18nextT;
33
+ */
34
+ export type TranslationFn<TParams = Record<string, string | number>> = (key: string, params?: TParams) => string;
35
+ //# sourceMappingURL=translation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"translation.d.ts","sourceRoot":"","sources":["../../../src/models/v2/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"}
@@ -0,0 +1,36 @@
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 { FlowMetadataResponse } from './flow-meta-v2';
19
+ import { TranslationFn } from './translation';
20
+ /**
21
+ * Options for the resolveFlowTemplateLiterals function.
22
+ *
23
+ * @template TFn - The concrete translation function type.
24
+ * Defaults to the SDK-native {@link TranslationFn} signature.
25
+ */
26
+ export interface ResolveFlowTemplateLiteralsOptions<TFn extends TranslationFn = TranslationFn> {
27
+ /**
28
+ * Optional flow metadata for resolving `{{ meta(path) }}` expressions.
29
+ */
30
+ meta?: FlowMetadataResponse | null;
31
+ /**
32
+ * i18n translation function for resolving `{{ t(key) }}` expressions.
33
+ */
34
+ t: TFn;
35
+ }
36
+ //# sourceMappingURL=vars.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vars.d.ts","sourceRoot":"","sources":["../../../src/models/v2/vars.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,oBAAoB,EAAC,MAAM,gBAAgB,CAAC;AACpD,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,23 @@
1
+ /**
2
+ * Copyright (c) 2025, 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 { Theme, ThemeConfig, ThemeMode } from './types';
19
+ import { RecursivePartial } from '../models/utility-types';
20
+ declare const createTheme: (config?: RecursivePartial<ThemeConfig>, isDark?: boolean) => Theme;
21
+ export declare const DEFAULT_THEME: ThemeMode;
22
+ export default createTheme;
23
+ //# sourceMappingURL=createTheme.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createTheme.d.ts","sourceRoot":"","sources":["../../src/theme/createTheme.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,KAAK,EAAE,WAAW,EAAc,SAAS,EAAY,MAAM,SAAS,CAAC;AAE7E,OAAO,EAAC,gBAAgB,EAAC,MAAM,yBAAyB,CAAC;AA2kBzD,QAAA,MAAM,WAAW,GAAI,SAAQ,gBAAgB,CAAC,WAAW,CAAM,EAAE,gBAAc,KAAG,KAyDjF,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,SAAmB,CAAC;AAEhD,eAAe,WAAW,CAAC"}