@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
@@ -0,0 +1,42 @@
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, ValidationRuleType } from '../models/embedded-flow';
19
+ /**
20
+ * Default i18n fallback keys returned when a `ValidationRule.message` is not provided.
21
+ * Match the server-side defaults so a flow author who omits `message` sees the same
22
+ * string regardless of whether the rule was evaluated client-side or server-side.
23
+ */
24
+ export declare const DEFAULT_VALIDATION_MESSAGE_KEYS: Record<ValidationRuleType, string>;
25
+ /**
26
+ * Evaluates a single validation rule against the given input value.
27
+ *
28
+ * Returns `null` when the rule passes, or the rule's `message` (or the default
29
+ * fallback key if `message` is absent) when it fails.
30
+ *
31
+ * Behavior notes:
32
+ * - **regex**: an invalid regex pattern (one that cannot be compiled) is treated as
33
+ * **passing** on the client. This is lenient — the server is authoritative and
34
+ * will still enforce the rule if it can compile the pattern. Failing closed in the
35
+ * SDK risks denial-of-service for misconfigured flows.
36
+ * - **minLength / maxLength**: compared against `value.length`. A non-numeric `value`
37
+ * on the rule is treated as the rule passing.
38
+ * - Unknown rule types are treated as passing (forward compatibility with future types).
39
+ */
40
+ declare const evaluateValidationRule: (rule: ValidationRule, value: string) => string | null;
41
+ export default evaluateValidationRule;
42
+ //# sourceMappingURL=evaluateValidationRule.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"evaluateValidationRule.d.ts","sourceRoot":"","sources":["../../src/utils/evaluateValidationRule.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,cAAc,EAAE,kBAAkB,EAAC,MAAM,yBAAyB,CAAC;AAE3E;;;;GAIG;AACH,eAAO,MAAM,+BAA+B,EAAE,MAAM,CAAC,kBAAkB,EAAE,MAAM,CAI9E,CAAC;AAEF;;;;;;;;;;;;;;GAcG;AACH,QAAA,MAAM,sBAAsB,GAAI,MAAM,cAAc,EAAE,OAAO,MAAM,KAAG,MAAM,GAAG,IAgC9E,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"extractEmojiFromUri.d.ts","sourceRoot":"","sources":["../../src/utils/extractEmojiFromUri.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAIH;;;;;;;;;;;GAWG;AACH,QAAA,MAAM,mBAAmB,GAAI,KAAK,MAAM,KAAG,MAM1C,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
@@ -22,7 +22,7 @@ import { Config } from '../models/config';
22
22
  * If the baseUrl is recognized (standard ThunderID pattern), constructs the sign-up URL.
23
23
  * Otherwise, returns an empty string.
24
24
  *
25
- * @param baseUrl - The base URL of the ThunderID identity server (string or undefined)
25
+ * @param config - The ThunderID client configuration
26
26
  * @returns The sign-up URL if baseUrl is recognized, otherwise an empty string
27
27
  */
28
28
  declare const getRedirectBasedSignUpUrl: (config: Config) => string;
@@ -1 +1 @@
1
- {"version":3,"file":"getRedirectBasedSignUpUrl.d.ts","sourceRoot":"","sources":["../../src/utils/getRedirectBasedSignUpUrl.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAKH,OAAO,EAAC,MAAM,EAAC,MAAM,kBAAkB,CAAC;AAGxC;;;;;;;;GAQG;AACH,QAAA,MAAM,yBAAyB,GAAI,QAAQ,MAAM,KAAG,MAoCnD,CAAC;AAEF,eAAe,yBAAyB,CAAC"}
1
+ {"version":3,"file":"getRedirectBasedSignUpUrl.d.ts","sourceRoot":"","sources":["../../src/utils/getRedirectBasedSignUpUrl.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAIH,OAAO,EAAC,MAAM,EAAC,MAAM,kBAAkB,CAAC;AAExC;;;;;;;;GAQG;AACH,QAAA,MAAM,yBAAyB,GAAI,QAAQ,MAAM,KAAG,MAkCnD,CAAC;AAEF,eAAe,yBAAyB,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"injectRequestedPermissions.d.ts","sourceRoot":"","sources":["../../src/utils/injectRequestedPermissions.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH;;;;;GAKG;AACH,QAAA,MAAM,0BAA0B,GAAI,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CA4B5F,CAAC;AAEF,eAAe,0BAA0B,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isEmojiUri.d.ts","sourceRoot":"","sources":["../../src/utils/isEmojiUri.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,eAAO,MAAM,gBAAgB,WAAW,CAAC;AAEzC;;;;;;;;;;;;GAYG;AACH,QAAA,MAAM,UAAU,GAAI,KAAK,MAAM,KAAG,OAAsE,CAAC;AAEzG,eAAe,UAAU,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isMetaFlowTemplateLiteral.d.ts","sourceRoot":"","sources":["../../src/utils/isMetaFlowTemplateLiteral.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH;;;GAGG;AACH,eAAO,MAAM,kCAAkC,QAAkC,CAAC;AAElF;;GAEG;AACH,eAAO,MAAM,sCAAsC,QAAoC,CAAC;AAExF;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,CAAC,OAAO,UAAU,yBAAyB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAExE"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isTranslationFlowTemplateLiteral.d.ts","sourceRoot":"","sources":["../../src/utils/isTranslationFlowTemplateLiteral.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH;;;GAGG;AACH,eAAO,MAAM,yCAAyC,QAA+B,CAAC;AAEtF;;GAEG;AACH,eAAO,MAAM,6CAA6C,QAAiC,CAAC;AAE5F;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,CAAC,OAAO,UAAU,gCAAgC,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAE/E"}
@@ -1 +1 @@
1
- {"version":3,"file":"parseApiErrorMessage.d.ts","sourceRoot":"","sources":["../../src/utils/parseApiErrorMessage.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH;;;;;;;;GAQG;AACH,QAAA,MAAM,oBAAoB,GAAI,WAAW,MAAM,KAAG,MAajD,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
1
+ {"version":3,"file":"parseApiErrorMessage.d.ts","sourceRoot":"","sources":["../../src/utils/parseApiErrorMessage.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH;;;;;;;;GAQG;AACH,QAAA,MAAM,oBAAoB,GAAI,WAAW,MAAM,KAAG,MAejD,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parseFlowTemplateLiteral.d.ts","sourceRoot":"","sources":["../../src/utils/parseFlowTemplateLiteral.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH;;;;;;GAMG;AACH,eAAO,MAAM,2BAA2B,QAA0B,CAAC;AAEnE;;;GAGG;AACH,eAAO,MAAM,4BAA4B,QAAuB,CAAC;AAEjE;;;;;;GAMG;AACH,oBAAY,uBAAuB;IACjC,uFAAuF;IACvF,IAAI,SAAS;IACb,oDAAoD;IACpD,WAAW,MAAM;IACjB,qDAAqD;IACrD,OAAO,YAAY;CACpB;AAED;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACxC;;;OAGG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,2DAA2D;IAC3D,aAAa,EAAE,MAAM,CAAC;IACtB,0DAA0D;IAC1D,IAAI,EAAE,uBAAuB,CAAC;CAC/B;AAED;;;;;;;;;;;;GAYG;AACH,MAAM,MAAM,2BAA2B,GAAG,OAAO,CAAC,MAAM,CAAC,uBAAuB,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,CAAC,CAAC,CAAC;AAE5G;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,MAAM,CAAC,OAAO,UAAU,wBAAwB,CAAC,OAAO,EAAE,MAAM,GAAG,yBAAyB,CAmB3F"}
@@ -15,8 +15,8 @@
15
15
  * specific language governing permissions and limitations
16
16
  * under the License.
17
17
  */
18
- import { TranslationFn } from '../../models/v2/translation';
19
- import { ResolveFlowTemplateLiteralsOptions } from '../../models/v2/vars';
18
+ import { TranslationFn } from '../models/translation';
19
+ import { ResolveFlowTemplateLiteralsOptions } from '../models/vars';
20
20
  /**
21
21
  * Resolves all flow template literal expressions in a string.
22
22
  *
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resolveFlowTemplateLiterals.d.ts","sourceRoot":"","sources":["../../src/utils/resolveFlowTemplateLiterals.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAQH,OAAO,EAAC,aAAa,EAAC,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAC,kCAAkC,EAAC,MAAM,gBAAgB,CAAC;AAOlE;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,MAAM,CAAC,OAAO,UAAU,2BAA2B,CAAC,GAAG,SAAS,aAAa,GAAG,aAAa,EAC3F,IAAI,EAAE,MAAM,GAAG,SAAS,EACxB,EAAC,CAAC,EAAE,IAAI,EAAC,EAAE,kCAAkC,CAAC,GAAG,CAAC,GACjD,MAAM,CAoBR"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resolveLocaleDisplayName.d.ts","sourceRoot":"","sources":["../../src/utils/resolveLocaleDisplayName.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH;;;;;;;;;;GAUG;AACH,MAAM,CAAC,OAAO,UAAU,wBAAwB,CAAC,MAAM,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,GAAG,MAAM,CAO9F"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resolveLocaleEmoji.d.ts","sourceRoot":"","sources":["../../src/utils/resolveLocaleEmoji.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAiDH;;;;;;;;;;GAUG;AACH,iBAAS,kBAAkB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAYlD;AACD,eAAe,kBAAkB,CAAC"}
@@ -15,7 +15,7 @@
15
15
  * specific language governing permissions and limitations
16
16
  * under the License.
17
17
  */
18
- import { FlowMetadataResponse } from '../../models/v2/flow-meta-v2';
18
+ import { FlowMetadataResponse } from '../models/flow-meta';
19
19
  /**
20
20
  * Resolves a dot-path expression against a FlowMetadataResponse object.
21
21
  *
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resolveMeta.d.ts","sourceRoot":"","sources":["../../src/utils/resolveMeta.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,oBAAoB,EAAC,MAAM,qBAAqB,CAAC;AAEzD;;;;;;;;;;;;;;GAcG;AACH,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,oBAAoB,GAAG,MAAM,CAapF"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thunderid/javascript",
3
- "version": "0.3.0",
3
+ "version": "0.3.7",
4
4
  "description": "JavaScript Ecosystem SDK for ThunderID",
5
5
  "keywords": [
6
6
  "thunderid",
@@ -9,7 +9,7 @@
9
9
  "agnostic",
10
10
  "js"
11
11
  ],
12
- "homepage": "https://github.com/thunder-id/thunderid/tree/main/sdks/javascript#readme",
12
+ "homepage": "https://github.com/thunder-id/javascript-sdks/tree/main/packages/javascript#readme",
13
13
  "bugs": {
14
14
  "url": "https://github.com/thunder-id/thunderid/issues"
15
15
  },
@@ -32,19 +32,19 @@
32
32
  "types": "dist/index.d.ts",
33
33
  "repository": {
34
34
  "type": "git",
35
- "url": "https://github.com/thunder-id/thunderid",
36
- "directory": "sdks/javascript"
35
+ "url": "https://github.com/thunder-id/javascript-sdks",
36
+ "directory": "packages/javascript"
37
37
  },
38
38
  "devDependencies": {
39
+ "@thunderid/eslint-plugin": "0.0.2",
40
+ "@thunderid/prettier-config": "0.0.2",
39
41
  "@types/node": "24.7.2",
40
42
  "eslint": "9.39.4",
41
43
  "prettier": "3.6.2",
42
44
  "rimraf": "6.1.3",
43
45
  "rolldown": "1.0.0-beta.45",
44
46
  "typescript": "5.9.3",
45
- "vitest": "4.1.8",
46
- "@thunderid/eslint-plugin": "^0.0.0",
47
- "@thunderid/prettier-config": "^0.0.0"
47
+ "vitest": "4.1.8"
48
48
  },
49
49
  "dependencies": {
50
50
  "jose": "5.2.0",
@@ -1,130 +0,0 @@
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://localhost:8090",
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://localhost:8090",
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
@@ -1 +0,0 @@
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"}
@@ -1,104 +0,0 @@
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://localhost:8090",
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://localhost:8090",
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
@@ -1 +0,0 @@
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"}
@@ -1,104 +0,0 @@
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://localhost:8090",
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://localhost:8090",
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
@@ -1 +0,0 @@
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"}
@@ -1,120 +0,0 @@
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://localhost:8090",
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://localhost:8090",
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
@@ -1 +0,0 @@
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"}