@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,19 @@
1
+ /**
2
+ * Copyright (c) 2020, WSO2 LLC. (https://www.wso2.com). All Rights Reserved.
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 * from './client-config';
19
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/__legacy__/models/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,cAAc,iBAAiB,CAAC"}
@@ -0,0 +1,130 @@
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 { Organization } from '../models/organization';
19
+ /**
20
+ * Interface for organization creation payload.
21
+ */
22
+ export interface CreateOrganizationPayload {
23
+ /**
24
+ * Organization description.
25
+ */
26
+ description: string;
27
+ /**
28
+ * Organization name.
29
+ */
30
+ name: string;
31
+ /**
32
+ * Organization handle/slug.
33
+ */
34
+ orgHandle?: string;
35
+ /**
36
+ * Parent organization ID.
37
+ */
38
+ parentId: string;
39
+ /**
40
+ * Organization type.
41
+ */
42
+ type: 'TENANT';
43
+ }
44
+ /**
45
+ * Configuration for the createOrganization request
46
+ */
47
+ export interface CreateOrganizationConfig extends Omit<RequestInit, 'method' | 'body'> {
48
+ /**
49
+ * The base URL for the API endpoint.
50
+ */
51
+ baseUrl: string;
52
+ /**
53
+ * Optional custom fetcher function.
54
+ * If not provided, native fetch will be used
55
+ */
56
+ fetcher?: (url: string, config: RequestInit) => Promise<Response>;
57
+ /**
58
+ * Organization creation payload
59
+ */
60
+ payload: CreateOrganizationPayload;
61
+ }
62
+ /**
63
+ * Creates a new organization.
64
+ *
65
+ * @param config - Configuration object containing baseUrl, payload and optional request config.
66
+ * @returns A promise that resolves with the created organization information.
67
+ * @example
68
+ * ```typescript
69
+ * // Using default fetch
70
+ * try {
71
+ * const organization = await createOrganization({
72
+ * baseUrl: "https://api.asgardeo.io/t/<ORGANIZATION>",
73
+ * payload: {
74
+ * description: "Share your screens",
75
+ * name: "Team Viewer",
76
+ * orgHandle: "team-viewer",
77
+ * parentId: "f4825104-4948-40d9-ab65-a960eee3e3d5",
78
+ * type: "TENANT"
79
+ * }
80
+ * });
81
+ * console.log(organization);
82
+ * } catch (error) {
83
+ * if (error instanceof ThunderIDAPIError) {
84
+ * console.error('Failed to create organization:', error.message);
85
+ * }
86
+ * }
87
+ * ```
88
+ *
89
+ * @example
90
+ * ```typescript
91
+ * // Using custom fetcher (e.g., axios-based httpClient)
92
+ * try {
93
+ * const organization = await createOrganization({
94
+ * baseUrl: "https://api.asgardeo.io/t/<ORGANIZATION>",
95
+ * payload: {
96
+ * description: "Share your screens",
97
+ * name: "Team Viewer",
98
+ * orgHandle: "team-viewer",
99
+ * parentId: "f4825104-4948-40d9-ab65-a960eee3e3d5",
100
+ * type: "TENANT"
101
+ * },
102
+ * fetcher: async (url, config) => {
103
+ * const response = await httpClient({
104
+ * url,
105
+ * method: config.method,
106
+ * headers: config.headers,
107
+ * data: config.body,
108
+ * ...config
109
+ * });
110
+ * // Convert axios-like response to fetch-like Response
111
+ * return {
112
+ * ok: response.status >= 200 && response.status < 300,
113
+ * status: response.status,
114
+ * statusText: response.statusText,
115
+ * json: () => Promise.resolve(response.data),
116
+ * text: () => Promise.resolve(typeof response.data === 'string' ? response.data : JSON.stringify(response.data))
117
+ * } as Response;
118
+ * }
119
+ * });
120
+ * console.log(organization);
121
+ * } catch (error) {
122
+ * if (error instanceof ThunderIDAPIError) {
123
+ * console.error('Failed to create organization:', error.message);
124
+ * }
125
+ * }
126
+ * ```
127
+ */
128
+ declare const createOrganization: ({ baseUrl, payload, fetcher, ...requestConfig }: CreateOrganizationConfig) => Promise<Organization>;
129
+ export default createOrganization;
130
+ //# sourceMappingURL=createOrganization.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createOrganization.d.ts","sourceRoot":"","sources":["../../src/api/createOrganization.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAGH,OAAO,EAAC,YAAY,EAAC,MAAM,wBAAwB,CAAC;AAEpD;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,IAAI,EAAE,QAAQ,CAAC;CAChB;AAED;;GAEG;AACH,MAAM,WAAW,wBAAyB,SAAQ,IAAI,CAAC,WAAW,EAAE,QAAQ,GAAG,MAAM,CAAC;IACpF;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;OAGG;IACH,OAAO,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,WAAW,KAAK,OAAO,CAAC,QAAQ,CAAC,CAAC;IAClE;;OAEG;IACH,OAAO,EAAE,yBAAyB,CAAC;CACpC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiEG;AACH,QAAA,MAAM,kBAAkB,GAAU,iDAK/B,wBAAwB,KAAG,OAAO,CAAC,YAAY,CA0EjD,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
@@ -0,0 +1,22 @@
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 { EmbeddedFlowExecuteRequestConfig } from '../models/embedded-flow';
19
+ import { EmbeddedSignInFlowHandleResponse } from '../models/embedded-signin-flow';
20
+ declare const executeEmbeddedSignInFlow: ({ url, baseUrl, payload, ...requestConfig }: EmbeddedFlowExecuteRequestConfig) => Promise<EmbeddedSignInFlowHandleResponse>;
21
+ export default executeEmbeddedSignInFlow;
22
+ //# sourceMappingURL=executeEmbeddedSignInFlow.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"executeEmbeddedSignInFlow.d.ts","sourceRoot":"","sources":["../../src/api/executeEmbeddedSignInFlow.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAGH,OAAO,EAAC,gCAAgC,EAAC,MAAM,yBAAyB,CAAC;AACzE,OAAO,EAAC,gCAAgC,EAAC,MAAM,gCAAgC,CAAC;AAEhF,QAAA,MAAM,yBAAyB,GAAU,6CAKtC,gCAAgC,KAAG,OAAO,CAAC,gCAAgC,CA+D7E,CAAC;AAEF,eAAe,yBAAyB,CAAC"}
@@ -0,0 +1,45 @@
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 { EmbeddedFlowExecuteResponse, EmbeddedFlowExecuteRequestConfig } from '../models/embedded-flow';
19
+ /**
20
+ * Executes an embedded signup flow by sending a request to the specified flow execution endpoint.
21
+ *
22
+ * @param requestConfig - Request configuration object containing URL and payload.
23
+ * @returns A promise that resolves with the flow execution response.
24
+ * @throws ThunderIDAPIError when the request fails or URL is invalid.
25
+ *
26
+ * @example
27
+ * ```typescript
28
+ * try {
29
+ * const embeddedSignUpResponse = await executeEmbeddedSignUpFlow({
30
+ * url: "https://api.asgardeo.io/t/<ORGANIZATION>/api/server/v1/flow/execute",
31
+ * payload: {
32
+ * flowType: "REGISTRATION"
33
+ * }
34
+ * });
35
+ * console.log(embeddedSignUpResponse);
36
+ * } catch (error) {
37
+ * if (error instanceof ThunderIDAPIError) {
38
+ * console.error('Embedded SignUp flow execution failed:', error.message);
39
+ * }
40
+ * }
41
+ * ```
42
+ */
43
+ declare const executeEmbeddedSignUpFlow: ({ url, baseUrl, payload, ...requestConfig }: EmbeddedFlowExecuteRequestConfig) => Promise<EmbeddedFlowExecuteResponse>;
44
+ export default executeEmbeddedSignUpFlow;
45
+ //# sourceMappingURL=executeEmbeddedSignUpFlow.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"executeEmbeddedSignUpFlow.d.ts","sourceRoot":"","sources":["../../src/api/executeEmbeddedSignUpFlow.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAGH,OAAO,EAAmB,2BAA2B,EAAE,gCAAgC,EAAC,MAAM,yBAAyB,CAAC;AAExH;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,QAAA,MAAM,yBAAyB,GAAU,6CAKtC,gCAAgC,KAAG,OAAO,CAAC,2BAA2B,CAkExE,CAAC;AAEF,eAAe,yBAAyB,CAAC"}
@@ -0,0 +1,104 @@
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 { AllOrganizationsApiResponse } from '../models/organization';
19
+ /**
20
+ * Configuration for the getAllOrganizations request
21
+ */
22
+ export interface GetAllOrganizationsConfig extends Omit<RequestInit, 'method'> {
23
+ /**
24
+ * The base URL for the API endpoint.
25
+ */
26
+ baseUrl: string;
27
+ /**
28
+ * Optional custom fetcher function.
29
+ * If not provided, native fetch will be used
30
+ */
31
+ fetcher?: (url: string, config: RequestInit) => Promise<Response>;
32
+ /**
33
+ * Filter expression for organizations
34
+ */
35
+ filter?: string;
36
+ /**
37
+ * Maximum number of organizations to return
38
+ */
39
+ limit?: number;
40
+ /**
41
+ * Whether to include child organizations recursively
42
+ */
43
+ recursive?: boolean;
44
+ }
45
+ /**
46
+ * Retrieves all organizations with pagination support.
47
+ *
48
+ * @param config - Configuration object containing baseUrl, optional query parameters, and request config.
49
+ * @returns A promise that resolves with the paginated organizations information.
50
+ * @example
51
+ * ```typescript
52
+ * // Using default fetch
53
+ * try {
54
+ * const response = await getAllOrganizations({
55
+ * baseUrl: "https://api.asgardeo.io/t/<ORGANIZATION>",
56
+ * filter: "",
57
+ * limit: 10,
58
+ * recursive: false
59
+ * });
60
+ * console.log(response.organizations);
61
+ * } catch (error) {
62
+ * if (error instanceof ThunderIDAPIError) {
63
+ * console.error('Failed to get organizations:', error.message);
64
+ * }
65
+ * }
66
+ * ```
67
+ *
68
+ * @example
69
+ * ```typescript
70
+ * // Using custom fetcher (e.g., axios-based httpClient)
71
+ * try {
72
+ * const response = await getAllOrganizations({
73
+ * baseUrl: "https://api.asgardeo.io/t/<ORGANIZATION>",
74
+ * filter: "",
75
+ * limit: 10,
76
+ * recursive: false,
77
+ * fetcher: async (url, config) => {
78
+ * const response = await httpClient({
79
+ * url,
80
+ * method: config.method,
81
+ * headers: config.headers,
82
+ * ...config
83
+ * });
84
+ * // Convert axios-like response to fetch-like Response
85
+ * return {
86
+ * ok: response.status >= 200 && response.status < 300,
87
+ * status: response.status,
88
+ * statusText: response.statusText,
89
+ * json: () => Promise.resolve(response.data),
90
+ * text: () => Promise.resolve(typeof response.data === 'string' ? response.data : JSON.stringify(response.data))
91
+ * } as Response;
92
+ * }
93
+ * });
94
+ * console.log(response.organizations);
95
+ * } catch (error) {
96
+ * if (error instanceof ThunderIDAPIError) {
97
+ * console.error('Failed to get organizations:', error.message);
98
+ * }
99
+ * }
100
+ * ```
101
+ */
102
+ declare const getAllOrganizations: ({ baseUrl, filter, limit, recursive, fetcher, ...requestConfig }: GetAllOrganizationsConfig) => Promise<AllOrganizationsApiResponse>;
103
+ export default getAllOrganizations;
104
+ //# sourceMappingURL=getAllOrganizations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getAllOrganizations.d.ts","sourceRoot":"","sources":["../../src/api/getAllOrganizations.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAGH,OAAO,EAAC,2BAA2B,EAAC,MAAM,wBAAwB,CAAC;AAEnE;;GAEG;AACH,MAAM,WAAW,yBAA0B,SAAQ,IAAI,CAAC,WAAW,EAAE,QAAQ,CAAC;IAC5E;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;OAGG;IACH,OAAO,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,WAAW,KAAK,OAAO,CAAC,QAAQ,CAAC,CAAC;IAClE;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwDG;AACH,QAAA,MAAM,mBAAmB,GAAU,kEAOhC,yBAAyB,KAAG,OAAO,CAAC,2BAA2B,CA0EjE,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
@@ -0,0 +1,104 @@
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 { BrandingPreference } from '../models/branding-preference';
19
+ /**
20
+ * Configuration for the getBrandingPreference request
21
+ */
22
+ export interface GetBrandingPreferenceConfig extends Omit<RequestInit, 'method'> {
23
+ /**
24
+ * The base URL for the API endpoint.
25
+ */
26
+ baseUrl: string;
27
+ /**
28
+ * Optional custom fetcher function.
29
+ * If not provided, native fetch will be used
30
+ */
31
+ fetcher?: (url: string, config: RequestInit) => Promise<Response>;
32
+ /**
33
+ * Locale for the branding preference
34
+ */
35
+ locale?: string;
36
+ /**
37
+ * Name of the branding preference
38
+ */
39
+ name?: string;
40
+ /**
41
+ * Type of the branding preference
42
+ */
43
+ type?: string;
44
+ }
45
+ /**
46
+ * Retrieves branding preference configuration.
47
+ *
48
+ * @param config - Configuration object containing baseUrl, optional query parameters, and request config.
49
+ * @returns A promise that resolves with the branding preference information.
50
+ * @example
51
+ * ```typescript
52
+ * // Using default fetch
53
+ * try {
54
+ * const response = await getBrandingPreference({
55
+ * baseUrl: "https://api.asgardeo.io/t/<ORGANIZATION>",
56
+ * locale: "en-US",
57
+ * name: "my-branding",
58
+ * type: "org"
59
+ * });
60
+ * console.log(response.theme);
61
+ * } catch (error) {
62
+ * if (error instanceof ThunderIDAPIError) {
63
+ * console.error('Failed to get branding preference:', error.message);
64
+ * }
65
+ * }
66
+ * ```
67
+ *
68
+ * @example
69
+ * ```typescript
70
+ * // Using custom fetcher (e.g., axios-based httpClient)
71
+ * try {
72
+ * const response = await getBrandingPreference({
73
+ * baseUrl: "https://api.asgardeo.io/t/<ORGANIZATION>",
74
+ * locale: "en-US",
75
+ * name: "my-branding",
76
+ * type: "org",
77
+ * fetcher: async (url, config) => {
78
+ * const response = await httpClient({
79
+ * url,
80
+ * method: config.method,
81
+ * headers: config.headers,
82
+ * ...config
83
+ * });
84
+ * // Convert axios-like response to fetch-like Response
85
+ * return {
86
+ * ok: response.status >= 200 && response.status < 300,
87
+ * status: response.status,
88
+ * statusText: response.statusText,
89
+ * json: () => Promise.resolve(response.data),
90
+ * text: () => Promise.resolve(typeof response.data === 'string' ? response.data : JSON.stringify(response.data))
91
+ * } as Response;
92
+ * }
93
+ * });
94
+ * console.log(response.theme);
95
+ * } catch (error) {
96
+ * if (error instanceof ThunderIDAPIError) {
97
+ * console.error('Failed to get branding preference:', error.message);
98
+ * }
99
+ * }
100
+ * ```
101
+ */
102
+ declare const getBrandingPreference: ({ baseUrl, locale, name, type, fetcher, ...requestConfig }: GetBrandingPreferenceConfig) => Promise<BrandingPreference>;
103
+ export default getBrandingPreference;
104
+ //# sourceMappingURL=getBrandingPreference.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getBrandingPreference.d.ts","sourceRoot":"","sources":["../../src/api/getBrandingPreference.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAGH,OAAO,EAAC,kBAAkB,EAAC,MAAM,+BAA+B,CAAC;AAKjE;;GAEG;AACH,MAAM,WAAW,2BAA4B,SAAQ,IAAI,CAAC,WAAW,EAAE,QAAQ,CAAC;IAC9E;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;OAGG;IACH,OAAO,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,WAAW,KAAK,OAAO,CAAC,QAAQ,CAAC,CAAC;IAClE;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwDG;AACH,QAAA,MAAM,qBAAqB,GAAU,4DAOlC,2BAA2B,KAAG,OAAO,CAAC,kBAAkB,CAgG1D,CAAC;AAEF,eAAe,qBAAqB,CAAC"}
@@ -0,0 +1,120 @@
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 { Organization } from '../models/organization';
19
+ /**
20
+ * Configuration for the getMeOrganizations request
21
+ */
22
+ export interface GetMeOrganizationsConfig extends Omit<RequestInit, 'method'> {
23
+ /**
24
+ * Base64 encoded cursor value for forward pagination
25
+ */
26
+ after?: string;
27
+ /**
28
+ * Authorized application name filter
29
+ */
30
+ authorizedAppName?: string;
31
+ /**
32
+ * The base URL for the API endpoint.
33
+ */
34
+ baseUrl: string;
35
+ /**
36
+ * Base64 encoded cursor value for backward pagination
37
+ */
38
+ before?: string;
39
+ /**
40
+ * Optional custom fetcher function.
41
+ * If not provided, native fetch will be used
42
+ */
43
+ fetcher?: (url: string, config: RequestInit) => Promise<Response>;
44
+ /**
45
+ * Filter expression for organizations
46
+ */
47
+ filter?: string;
48
+ /**
49
+ * Maximum number of organizations to return
50
+ */
51
+ limit?: number;
52
+ /**
53
+ * Whether to include child organizations recursively
54
+ */
55
+ recursive?: boolean;
56
+ }
57
+ /**
58
+ * Retrieves the organizations associated with the current user.
59
+ *
60
+ * @param config - Configuration object containing baseUrl, optional query parameters, and request config.
61
+ * @returns A promise that resolves with the organizations information.
62
+ * @example
63
+ * ```typescript
64
+ * // Using default fetch
65
+ * try {
66
+ * const organizations = await getMeOrganizations({
67
+ * baseUrl: "https://api.asgardeo.io/t/<ORGANIZATION>",
68
+ * after: "",
69
+ * before: "",
70
+ * filter: "",
71
+ * limit: 10,
72
+ * recursive: false
73
+ * });
74
+ * console.log(organizations);
75
+ * } catch (error) {
76
+ * if (error instanceof ThunderIDAPIError) {
77
+ * console.error('Failed to get organizations:', error.message);
78
+ * }
79
+ * }
80
+ * ```
81
+ *
82
+ * @example
83
+ * ```typescript
84
+ * // Using custom fetcher (e.g., axios-based httpClient)
85
+ * try {
86
+ * const organizations = await getMeOrganizations({
87
+ * baseUrl: "https://api.asgardeo.io/t/<ORGANIZATION>",
88
+ * after: "",
89
+ * before: "",
90
+ * filter: "",
91
+ * limit: 10,
92
+ * recursive: false,
93
+ * fetcher: async (url, config) => {
94
+ * const response = await httpClient({
95
+ * url,
96
+ * method: config.method,
97
+ * headers: config.headers,
98
+ * ...config
99
+ * });
100
+ * // Convert axios-like response to fetch-like Response
101
+ * return {
102
+ * ok: response.status >= 200 && response.status < 300,
103
+ * status: response.status,
104
+ * statusText: response.statusText,
105
+ * json: () => Promise.resolve(response.data),
106
+ * text: () => Promise.resolve(typeof response.data === 'string' ? response.data : JSON.stringify(response.data))
107
+ * } as Response;
108
+ * }
109
+ * });
110
+ * console.log(organizations);
111
+ * } catch (error) {
112
+ * if (error instanceof ThunderIDAPIError) {
113
+ * console.error('Failed to get organizations:', error.message);
114
+ * }
115
+ * }
116
+ * ```
117
+ */
118
+ declare const getMeOrganizations: ({ baseUrl, after, authorizedAppName, before, filter, limit, recursive, fetcher, ...requestConfig }: GetMeOrganizationsConfig) => Promise<Organization[]>;
119
+ export default getMeOrganizations;
120
+ //# sourceMappingURL=getMeOrganizations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getMeOrganizations.d.ts","sourceRoot":"","sources":["../../src/api/getMeOrganizations.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAGH,OAAO,EAAC,YAAY,EAAC,MAAM,wBAAwB,CAAC;AAEpD;;GAEG;AACH,MAAM,WAAW,wBAAyB,SAAQ,IAAI,CAAC,WAAW,EAAE,QAAQ,CAAC;IAC3E;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;OAGG;IACH,OAAO,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,WAAW,KAAK,OAAO,CAAC,QAAQ,CAAC,CAAC;IAClE;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4DG;AACH,QAAA,MAAM,kBAAkB,GAAU,oGAU/B,wBAAwB,KAAG,OAAO,CAAC,YAAY,EAAE,CAuEnD,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
@@ -0,0 +1,110 @@
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
+ /**
19
+ * Extended organization interface with additional properties
20
+ */
21
+ export interface OrganizationDetails {
22
+ attributes?: Record<string, any>;
23
+ created?: string;
24
+ description?: string;
25
+ id: string;
26
+ lastModified?: string;
27
+ name: string;
28
+ orgHandle: string;
29
+ parent?: {
30
+ id: string;
31
+ ref: string;
32
+ };
33
+ permissions?: string[];
34
+ status?: string;
35
+ type?: string;
36
+ }
37
+ /**
38
+ * Configuration for the getOrganization request
39
+ */
40
+ export interface GetOrganizationConfig extends Omit<RequestInit, 'method'> {
41
+ /**
42
+ * The base URL for the API endpoint.
43
+ */
44
+ baseUrl: string;
45
+ /**
46
+ * Optional custom fetcher function.
47
+ * If not provided, native fetch will be used
48
+ */
49
+ fetcher?: (url: string, config: RequestInit) => Promise<Response>;
50
+ /**
51
+ * The ID of the organization to retrieve
52
+ */
53
+ organizationId: string;
54
+ }
55
+ /**
56
+ * Retrieves detailed information for a specific organization.
57
+ *
58
+ * @param config - Configuration object containing baseUrl, organizationId, and request config.
59
+ * @returns A promise that resolves with the organization details.
60
+ * @example
61
+ * ```typescript
62
+ * // Using default fetch
63
+ * try {
64
+ * const organization = await getOrganization({
65
+ * baseUrl: "https://api.asgardeo.io/t/dxlab",
66
+ * organizationId: "0d5e071b-d3d3-475d-b3c6-1a20ee2fa9b1"
67
+ * });
68
+ * console.log(organization);
69
+ * } catch (error) {
70
+ * if (error instanceof ThunderIDAPIError) {
71
+ * console.error('Failed to get organization:', error.message);
72
+ * }
73
+ * }
74
+ * ```
75
+ *
76
+ * @example
77
+ * ```typescript
78
+ * // Using custom fetcher (e.g., axios-based httpClient)
79
+ * try {
80
+ * const organization = await getOrganization({
81
+ * baseUrl: "https://api.asgardeo.io/t/dxlab",
82
+ * organizationId: "0d5e071b-d3d3-475d-b3c6-1a20ee2fa9b1",
83
+ * fetcher: async (url, config) => {
84
+ * const response = await httpClient({
85
+ * url,
86
+ * method: config.method,
87
+ * headers: config.headers,
88
+ * ...config
89
+ * });
90
+ * // Convert axios-like response to fetch-like Response
91
+ * return {
92
+ * ok: response.status >= 200 && response.status < 300,
93
+ * status: response.status,
94
+ * statusText: response.statusText,
95
+ * json: () => Promise.resolve(response.data),
96
+ * text: () => Promise.resolve(typeof response.data === 'string' ? response.data : JSON.stringify(response.data))
97
+ * } as Response;
98
+ * }
99
+ * });
100
+ * console.log(organization);
101
+ * } catch (error) {
102
+ * if (error instanceof ThunderIDAPIError) {
103
+ * console.error('Failed to get organization:', error.message);
104
+ * }
105
+ * }
106
+ * ```
107
+ */
108
+ declare const getOrganization: ({ baseUrl, organizationId, fetcher, ...requestConfig }: GetOrganizationConfig) => Promise<OrganizationDetails>;
109
+ export default getOrganization;
110
+ //# sourceMappingURL=getOrganization.d.ts.map