@intlayer/api 8.4.4 → 8.4.5

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 (178) hide show
  1. package/dist/cjs/_virtual/_rolldown/runtime.cjs +29 -0
  2. package/dist/cjs/distantDictionary/fetchDistantDictionaries.cjs +20 -1
  3. package/dist/cjs/distantDictionary/fetchDistantDictionaries.cjs.map +1 -1
  4. package/dist/cjs/distantDictionary/fetchDistantDictionary.cjs +22 -1
  5. package/dist/cjs/distantDictionary/fetchDistantDictionary.cjs.map +1 -1
  6. package/dist/cjs/distantDictionary/index.cjs +6 -1
  7. package/dist/cjs/fetcher.cjs +122 -1
  8. package/dist/cjs/fetcher.cjs.map +1 -1
  9. package/dist/cjs/getIntlayerAPI/ai.cjs +161 -2
  10. package/dist/cjs/getIntlayerAPI/ai.cjs.map +1 -1
  11. package/dist/cjs/getIntlayerAPI/audit.cjs +94 -2
  12. package/dist/cjs/getIntlayerAPI/audit.cjs.map +1 -1
  13. package/dist/cjs/getIntlayerAPI/bitbucket.cjs +69 -1
  14. package/dist/cjs/getIntlayerAPI/bitbucket.cjs.map +1 -1
  15. package/dist/cjs/getIntlayerAPI/dictionary.cjs +67 -1
  16. package/dist/cjs/getIntlayerAPI/dictionary.cjs.map +1 -1
  17. package/dist/cjs/getIntlayerAPI/editor.cjs +37 -1
  18. package/dist/cjs/getIntlayerAPI/editor.cjs.map +1 -1
  19. package/dist/cjs/getIntlayerAPI/github.cjs +69 -1
  20. package/dist/cjs/getIntlayerAPI/github.cjs.map +1 -1
  21. package/dist/cjs/getIntlayerAPI/gitlab.cjs +83 -1
  22. package/dist/cjs/getIntlayerAPI/gitlab.cjs.map +1 -1
  23. package/dist/cjs/getIntlayerAPI/index.cjs +48 -1
  24. package/dist/cjs/getIntlayerAPI/index.cjs.map +1 -0
  25. package/dist/cjs/getIntlayerAPI/newsletter.cjs +38 -1
  26. package/dist/cjs/getIntlayerAPI/newsletter.cjs.map +1 -1
  27. package/dist/cjs/getIntlayerAPI/oAuth.cjs +25 -1
  28. package/dist/cjs/getIntlayerAPI/oAuth.cjs.map +1 -1
  29. package/dist/cjs/getIntlayerAPI/organization.cjs +91 -1
  30. package/dist/cjs/getIntlayerAPI/organization.cjs.map +1 -1
  31. package/dist/cjs/getIntlayerAPI/project.cjs +139 -1
  32. package/dist/cjs/getIntlayerAPI/project.cjs.map +1 -1
  33. package/dist/cjs/getIntlayerAPI/search.cjs +20 -1
  34. package/dist/cjs/getIntlayerAPI/search.cjs.map +1 -1
  35. package/dist/cjs/getIntlayerAPI/showcaseProject.cjs +58 -1
  36. package/dist/cjs/getIntlayerAPI/showcaseProject.cjs.map +1 -1
  37. package/dist/cjs/getIntlayerAPI/stripe.cjs +36 -1
  38. package/dist/cjs/getIntlayerAPI/stripe.cjs.map +1 -1
  39. package/dist/cjs/getIntlayerAPI/tag.cjs +45 -1
  40. package/dist/cjs/getIntlayerAPI/tag.cjs.map +1 -1
  41. package/dist/cjs/getIntlayerAPI/user.cjs +77 -1
  42. package/dist/cjs/getIntlayerAPI/user.cjs.map +1 -1
  43. package/dist/cjs/index.cjs +43 -1
  44. package/dist/cjs/proxy.cjs +100 -1
  45. package/dist/cjs/proxy.cjs.map +1 -1
  46. package/dist/esm/distantDictionary/fetchDistantDictionaries.mjs +19 -1
  47. package/dist/esm/distantDictionary/fetchDistantDictionaries.mjs.map +1 -1
  48. package/dist/esm/distantDictionary/fetchDistantDictionary.mjs +21 -1
  49. package/dist/esm/distantDictionary/fetchDistantDictionary.mjs.map +1 -1
  50. package/dist/esm/distantDictionary/index.mjs +4 -1
  51. package/dist/esm/fetcher.mjs +119 -1
  52. package/dist/esm/fetcher.mjs.map +1 -1
  53. package/dist/esm/getIntlayerAPI/ai.mjs +160 -2
  54. package/dist/esm/getIntlayerAPI/ai.mjs.map +1 -1
  55. package/dist/esm/getIntlayerAPI/audit.mjs +93 -2
  56. package/dist/esm/getIntlayerAPI/audit.mjs.map +1 -1
  57. package/dist/esm/getIntlayerAPI/bitbucket.mjs +68 -1
  58. package/dist/esm/getIntlayerAPI/bitbucket.mjs.map +1 -1
  59. package/dist/esm/getIntlayerAPI/dictionary.mjs +66 -1
  60. package/dist/esm/getIntlayerAPI/dictionary.mjs.map +1 -1
  61. package/dist/esm/getIntlayerAPI/editor.mjs +36 -1
  62. package/dist/esm/getIntlayerAPI/editor.mjs.map +1 -1
  63. package/dist/esm/getIntlayerAPI/github.mjs +68 -1
  64. package/dist/esm/getIntlayerAPI/github.mjs.map +1 -1
  65. package/dist/esm/getIntlayerAPI/gitlab.mjs +82 -1
  66. package/dist/esm/getIntlayerAPI/gitlab.mjs.map +1 -1
  67. package/dist/esm/getIntlayerAPI/index.mjs +44 -1
  68. package/dist/esm/getIntlayerAPI/index.mjs.map +1 -1
  69. package/dist/esm/getIntlayerAPI/newsletter.mjs +37 -1
  70. package/dist/esm/getIntlayerAPI/newsletter.mjs.map +1 -1
  71. package/dist/esm/getIntlayerAPI/oAuth.mjs +24 -1
  72. package/dist/esm/getIntlayerAPI/oAuth.mjs.map +1 -1
  73. package/dist/esm/getIntlayerAPI/organization.mjs +90 -1
  74. package/dist/esm/getIntlayerAPI/organization.mjs.map +1 -1
  75. package/dist/esm/getIntlayerAPI/project.mjs +138 -1
  76. package/dist/esm/getIntlayerAPI/project.mjs.map +1 -1
  77. package/dist/esm/getIntlayerAPI/search.mjs +19 -1
  78. package/dist/esm/getIntlayerAPI/search.mjs.map +1 -1
  79. package/dist/esm/getIntlayerAPI/showcaseProject.mjs +57 -1
  80. package/dist/esm/getIntlayerAPI/showcaseProject.mjs.map +1 -1
  81. package/dist/esm/getIntlayerAPI/stripe.mjs +35 -1
  82. package/dist/esm/getIntlayerAPI/stripe.mjs.map +1 -1
  83. package/dist/esm/getIntlayerAPI/tag.mjs +44 -1
  84. package/dist/esm/getIntlayerAPI/tag.mjs.map +1 -1
  85. package/dist/esm/getIntlayerAPI/user.mjs +76 -1
  86. package/dist/esm/getIntlayerAPI/user.mjs.map +1 -1
  87. package/dist/esm/index.mjs +22 -1
  88. package/dist/esm/proxy.mjs +99 -1
  89. package/dist/esm/proxy.mjs.map +1 -1
  90. package/dist/types/@intlayer/unmerged-dictionaries-entry/dist/types/index.d.ts +10 -0
  91. package/dist/types/@intlayer/unmerged-dictionaries-entry/dist/types/index.d.ts.map +1 -0
  92. package/dist/types/distantDictionary/fetchDistantDictionaries.d.ts +11 -2
  93. package/dist/types/distantDictionary/fetchDistantDictionaries.d.ts.map +1 -0
  94. package/dist/types/distantDictionary/fetchDistantDictionary.d.ts +11 -2
  95. package/dist/types/distantDictionary/fetchDistantDictionary.d.ts.map +1 -0
  96. package/dist/types/distantDictionary/index.d.ts +2 -2
  97. package/dist/types/getIntlayerAPI/ai.d.ts +32 -2
  98. package/dist/types/getIntlayerAPI/ai.d.ts.map +1 -0
  99. package/dist/types/getIntlayerAPI/audit.d.ts +44 -2
  100. package/dist/types/getIntlayerAPI/audit.d.ts.map +1 -0
  101. package/dist/types/getIntlayerAPI/bitbucket.d.ts +81 -2
  102. package/dist/types/getIntlayerAPI/bitbucket.d.ts.map +1 -0
  103. package/dist/types/getIntlayerAPI/dictionary.d.ts +18 -2
  104. package/dist/types/getIntlayerAPI/dictionary.d.ts.map +1 -0
  105. package/dist/types/getIntlayerAPI/editor.d.ts +14 -2
  106. package/dist/types/getIntlayerAPI/editor.d.ts.map +1 -0
  107. package/dist/types/getIntlayerAPI/github.d.ts +65 -2
  108. package/dist/types/getIntlayerAPI/github.d.ts.map +1 -0
  109. package/dist/types/getIntlayerAPI/gitlab.d.ts +70 -2
  110. package/dist/types/getIntlayerAPI/gitlab.d.ts.map +1 -0
  111. package/dist/types/getIntlayerAPI/index.d.ts +16 -16
  112. package/dist/types/getIntlayerAPI/newsletter.d.ts +13 -2
  113. package/dist/types/getIntlayerAPI/newsletter.d.ts.map +1 -0
  114. package/dist/types/getIntlayerAPI/oAuth.d.ts +10 -2
  115. package/dist/types/getIntlayerAPI/oAuth.d.ts.map +1 -0
  116. package/dist/types/getIntlayerAPI/organization.d.ts +20 -2
  117. package/dist/types/getIntlayerAPI/organization.d.ts.map +1 -0
  118. package/dist/types/getIntlayerAPI/project.d.ts +25 -2
  119. package/dist/types/getIntlayerAPI/project.d.ts.map +1 -0
  120. package/dist/types/getIntlayerAPI/search.d.ts +11 -2
  121. package/dist/types/getIntlayerAPI/search.d.ts.map +1 -0
  122. package/dist/types/getIntlayerAPI/showcaseProject.d.ts +33 -2
  123. package/dist/types/getIntlayerAPI/showcaseProject.d.ts.map +1 -0
  124. package/dist/types/getIntlayerAPI/stripe.d.ts +13 -2
  125. package/dist/types/getIntlayerAPI/stripe.d.ts.map +1 -0
  126. package/dist/types/getIntlayerAPI/tag.d.ts +14 -2
  127. package/dist/types/getIntlayerAPI/tag.d.ts.map +1 -0
  128. package/dist/types/getIntlayerAPI/user.d.ts +22 -2
  129. package/dist/types/getIntlayerAPI/user.d.ts.map +1 -0
  130. package/dist/types/index.d.ts +17 -17
  131. package/dist/types/intlayer-editor/server/dist/controllers/configuration.controller.d.ts +12 -0
  132. package/dist/types/intlayer-editor/server/dist/controllers/configuration.controller.d.ts.map +1 -0
  133. package/dist/types/intlayer-editor/server/dist/controllers/dictionary.controller.d.ts +25 -0
  134. package/dist/types/intlayer-editor/server/dist/controllers/dictionary.controller.d.ts.map +1 -0
  135. package/dist/types/intlayer-editor/server/dist/export.d.ts +2 -0
  136. package/dist/types/{editor-DTBh5ovU.d.ts → intlayer-editor/server/dist/utils/httpStatusCodes.d.ts} +3 -61
  137. package/dist/types/intlayer-editor/server/dist/utils/httpStatusCodes.d.ts.map +1 -0
  138. package/dist/types/intlayer-editor/server/dist/utils/responseData.d.ts +20 -0
  139. package/dist/types/intlayer-editor/server/dist/utils/responseData.d.ts.map +1 -0
  140. package/dist/types/proxy.d.ts.map +1 -1
  141. package/package.json +3 -3
  142. package/dist/cjs/getIntlayerAPI-CUu2tiLP.cjs +0 -2
  143. package/dist/cjs/getIntlayerAPI-CUu2tiLP.cjs.map +0 -1
  144. package/dist/types/ai-FbIMwui1.d.ts +0 -32
  145. package/dist/types/ai-FbIMwui1.d.ts.map +0 -1
  146. package/dist/types/audit-DzTxbapP.d.ts +0 -44
  147. package/dist/types/audit-DzTxbapP.d.ts.map +0 -1
  148. package/dist/types/bitbucket-DeRx5IlR.d.ts +0 -81
  149. package/dist/types/bitbucket-DeRx5IlR.d.ts.map +0 -1
  150. package/dist/types/dictionary-W5LSPsxq.d.ts +0 -18
  151. package/dist/types/dictionary-W5LSPsxq.d.ts.map +0 -1
  152. package/dist/types/editor-DTBh5ovU.d.ts.map +0 -1
  153. package/dist/types/fetchDistantDictionaries-CLQEr6NS.d.ts +0 -11
  154. package/dist/types/fetchDistantDictionaries-CLQEr6NS.d.ts.map +0 -1
  155. package/dist/types/fetchDistantDictionary-C7esreMl.d.ts +0 -11
  156. package/dist/types/fetchDistantDictionary-C7esreMl.d.ts.map +0 -1
  157. package/dist/types/github-D077Il7G.d.ts +0 -65
  158. package/dist/types/github-D077Il7G.d.ts.map +0 -1
  159. package/dist/types/gitlab-BrWydMCh.d.ts +0 -70
  160. package/dist/types/gitlab-BrWydMCh.d.ts.map +0 -1
  161. package/dist/types/newsletter-Dg_6QDY_.d.ts +0 -13
  162. package/dist/types/newsletter-Dg_6QDY_.d.ts.map +0 -1
  163. package/dist/types/oAuth-DfQmGzLO.d.ts +0 -10
  164. package/dist/types/oAuth-DfQmGzLO.d.ts.map +0 -1
  165. package/dist/types/organization-CNkB8dnj.d.ts +0 -20
  166. package/dist/types/organization-CNkB8dnj.d.ts.map +0 -1
  167. package/dist/types/project-DKLgh9Mz.d.ts +0 -25
  168. package/dist/types/project-DKLgh9Mz.d.ts.map +0 -1
  169. package/dist/types/search-CVbo1OMK.d.ts +0 -11
  170. package/dist/types/search-CVbo1OMK.d.ts.map +0 -1
  171. package/dist/types/showcaseProject-1zcpB4aW.d.ts +0 -33
  172. package/dist/types/showcaseProject-1zcpB4aW.d.ts.map +0 -1
  173. package/dist/types/stripe-vRfMjdAc.d.ts +0 -13
  174. package/dist/types/stripe-vRfMjdAc.d.ts.map +0 -1
  175. package/dist/types/tag-0oc2-9J5.d.ts +0 -14
  176. package/dist/types/tag-0oc2-9J5.d.ts.map +0 -1
  177. package/dist/types/user-BVi1Ho0Q.d.ts +0 -22
  178. package/dist/types/user-BVi1Ho0Q.d.ts.map +0 -1
@@ -1,2 +1,100 @@
1
- import{getOAuthAPI as e}from"./getIntlayerAPI/oAuth.mjs";import{getIntlayerAPI as t}from"./getIntlayerAPI/index.mjs";const n=e=>{if(!e)return;let t=e.accessTokenExpiresAt??e.expiresAt;if(t){let e=typeof t==`string`?Date.parse(t):t.getTime?.();if(typeof e==`number`&&Number.isFinite(e))return e}let n=e.expires_in??e.expiresIn;if(typeof n==`number`&&Number.isFinite(n))return Date.now()+n*1e3};let r,i,a;const o=(o={},s)=>{let c={...o},l=s?.editor?.clientId&&s?.editor?.clientSecret,u=t(c,s),d=()=>r?i?Date.now()+6e4>=i:!1:!0,f=async()=>{a||=(async()=>{let t=(await e(s).getOAuth2AccessToken())?.data;r=t?.accessToken,i=n(t)})().finally(()=>{a=void 0}),await a},p=async()=>{d()&&await f()},m=()=>{r&&(c.headers={...c.headers??{},Authorization:`Bearer ${r}`})},h=(e,t=!l)=>new Proxy(e,{get(e,n,r){let i=Reflect.get(e,n,r);return typeof i==`function`?async(...n)=>{t||(await p(),m());try{return await i.apply(e,n)}catch(r){if(!t)return await f(),m(),await i.apply(e,n);throw r}}:i}});return{organization:h(u.organization),project:h(u.project),user:h(u.user),oAuth:h(u.oAuth,!0),dictionary:h(u.dictionary),stripe:h(u.stripe),ai:h(u.ai),tag:h(u.tag),search:h(u.search),editor:h(u.editor),newsletter:h(u.newsletter),github:h(u.github)}};export{o as getIntlayerAPIProxy};
1
+ import { getOAuthAPI } from "./getIntlayerAPI/oAuth.mjs";
2
+ import { getIntlayerAPI } from "./getIntlayerAPI/index.mjs";
3
+
4
+ //#region src/proxy.ts
5
+ const ONE_MINUTE_MS = 6e4;
6
+ /**
7
+ * Returns the expiration timestamp in ms from an OAuth token-like object.
8
+ */
9
+ const getExpiryTimestamp = (token) => {
10
+ if (!token) return void 0;
11
+ const dateLike = token.accessTokenExpiresAt ?? token.expiresAt;
12
+ if (dateLike) {
13
+ const ts = typeof dateLike === "string" ? Date.parse(dateLike) : dateLike.getTime?.();
14
+ if (typeof ts === "number" && Number.isFinite(ts)) return ts;
15
+ }
16
+ const seconds = token.expires_in ?? token.expiresIn;
17
+ if (typeof seconds === "number" && Number.isFinite(seconds)) return Date.now() + seconds * 1e3;
18
+ };
19
+ let currentAccessToken;
20
+ let currentExpiryTs;
21
+ let pendingRefresh;
22
+ /**
23
+ * Build an auto-auth proxy around getIntlayerAPI that:
24
+ * - Fetches an OAuth2 token when needed
25
+ * - Injects Authorization header for each request
26
+ * - Refreshes token proactively when near expiry
27
+ *
28
+ * The returned API matches the shape of getIntlayerAPI.
29
+ */
30
+ const getIntlayerAPIProxy = (baseAuthOptions = {}, intlayerConfig) => {
31
+ const authOptionsRef = { ...baseAuthOptions };
32
+ const hasCMSAuth = intlayerConfig?.editor?.clientId && intlayerConfig?.editor?.clientSecret;
33
+ const baseApi = getIntlayerAPI(authOptionsRef, intlayerConfig);
34
+ const needsRefresh = () => {
35
+ if (!currentAccessToken) return true;
36
+ if (!currentExpiryTs) return false;
37
+ return Date.now() + ONE_MINUTE_MS >= currentExpiryTs;
38
+ };
39
+ const refreshToken = async () => {
40
+ const doRefresh = async () => {
41
+ const tokenData = (await getOAuthAPI(intlayerConfig).getOAuth2AccessToken())?.data;
42
+ currentAccessToken = tokenData?.accessToken;
43
+ currentExpiryTs = getExpiryTimestamp(tokenData);
44
+ };
45
+ if (!pendingRefresh) pendingRefresh = doRefresh().finally(() => {
46
+ pendingRefresh = void 0;
47
+ });
48
+ await pendingRefresh;
49
+ };
50
+ const ensureValidToken = async () => {
51
+ if (needsRefresh()) await refreshToken();
52
+ };
53
+ const applyAuthHeaderToRef = () => {
54
+ if (!currentAccessToken) return;
55
+ authOptionsRef.headers = {
56
+ ...authOptionsRef.headers ?? {},
57
+ Authorization: `Bearer ${currentAccessToken}`
58
+ };
59
+ };
60
+ const wrapSection = (section, skipAuth = !hasCMSAuth) => {
61
+ return new Proxy(section, { get(target, prop, receiver) {
62
+ const value = Reflect.get(target, prop, receiver);
63
+ if (typeof value === "function") return async (...args) => {
64
+ if (!skipAuth) {
65
+ await ensureValidToken();
66
+ applyAuthHeaderToRef();
67
+ }
68
+ try {
69
+ return await value.apply(target, args);
70
+ } catch (err) {
71
+ if (!skipAuth) {
72
+ await refreshToken();
73
+ applyAuthHeaderToRef();
74
+ return await value.apply(target, args);
75
+ }
76
+ throw err;
77
+ }
78
+ };
79
+ return value;
80
+ } });
81
+ };
82
+ return {
83
+ organization: wrapSection(baseApi.organization),
84
+ project: wrapSection(baseApi.project),
85
+ user: wrapSection(baseApi.user),
86
+ oAuth: wrapSection(baseApi.oAuth, true),
87
+ dictionary: wrapSection(baseApi.dictionary),
88
+ stripe: wrapSection(baseApi.stripe),
89
+ ai: wrapSection(baseApi.ai),
90
+ tag: wrapSection(baseApi.tag),
91
+ search: wrapSection(baseApi.search),
92
+ editor: wrapSection(baseApi.editor),
93
+ newsletter: wrapSection(baseApi.newsletter),
94
+ github: wrapSection(baseApi.github)
95
+ };
96
+ };
97
+
98
+ //#endregion
99
+ export { getIntlayerAPIProxy };
2
100
  //# sourceMappingURL=proxy.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"proxy.mjs","names":[],"sources":["../../src/proxy.ts"],"sourcesContent":["import type { IntlayerConfig } from '@intlayer/types/config';\nimport type { FetcherOptions } from './fetcher';\nimport { getIntlayerAPI } from './getIntlayerAPI';\nimport type { IntlayerAPI } from './getIntlayerAPI/index';\nimport { getOAuthAPI } from './getIntlayerAPI/oAuth';\n\ntype OAuthTokenLike = {\n accessToken?: string;\n accessTokenExpiresAt?: string | Date;\n expires_in?: number;\n expiresIn?: number;\n expiresAt?: string | Date;\n};\n\nconst ONE_MINUTE_MS = 60_000;\n\n/**\n * Returns the expiration timestamp in ms from an OAuth token-like object.\n */\nconst getExpiryTimestamp = (\n token: OAuthTokenLike | undefined\n): number | undefined => {\n if (!token) return undefined;\n const dateLike = (token.accessTokenExpiresAt ?? token.expiresAt) as\n | string\n | Date\n | undefined;\n if (dateLike) {\n const ts =\n typeof dateLike === 'string'\n ? Date.parse(dateLike)\n : dateLike.getTime?.();\n if (typeof ts === 'number' && Number.isFinite(ts)) return ts;\n }\n const seconds = token.expires_in ?? token.expiresIn;\n if (typeof seconds === 'number' && Number.isFinite(seconds)) {\n return Date.now() + seconds * 1000;\n }\n return undefined;\n};\n\nlet currentAccessToken: string | undefined;\nlet currentExpiryTs: number | undefined;\nlet pendingRefresh: Promise<void> | undefined;\n\n/**\n * Build an auto-auth proxy around getIntlayerAPI that:\n * - Fetches an OAuth2 token when needed\n * - Injects Authorization header for each request\n * - Refreshes token proactively when near expiry\n *\n * The returned API matches the shape of getIntlayerAPI.\n */\nexport const getIntlayerAPIProxy = (\n baseAuthOptions: FetcherOptions = {},\n intlayerConfig?: IntlayerConfig\n): IntlayerAPI => {\n // Use a shared mutable auth options object captured by the API closures\n const authOptionsRef: FetcherOptions = { ...baseAuthOptions };\n const hasCMSAuth =\n intlayerConfig?.editor?.clientId && intlayerConfig?.editor?.clientSecret;\n const baseApi = getIntlayerAPI(authOptionsRef, intlayerConfig);\n\n const needsRefresh = (): boolean => {\n if (!currentAccessToken) return true;\n if (!currentExpiryTs) return false; // If unknown, assume usable until failure\n\n return Date.now() + ONE_MINUTE_MS >= currentExpiryTs; // refresh 1 min before expiry\n };\n\n const refreshToken = async (): Promise<void> => {\n const doRefresh = async () => {\n const authApi = getOAuthAPI(intlayerConfig);\n const res = await authApi.getOAuth2AccessToken();\n const tokenData = res?.data as OAuthTokenLike | undefined;\n\n currentAccessToken = tokenData?.accessToken;\n currentExpiryTs = getExpiryTimestamp(tokenData);\n };\n\n if (!pendingRefresh) {\n pendingRefresh = doRefresh().finally(() => {\n pendingRefresh = undefined;\n });\n }\n await pendingRefresh;\n };\n\n const ensureValidToken = async () => {\n if (needsRefresh()) {\n await refreshToken();\n }\n };\n\n const applyAuthHeaderToRef = () => {\n if (!currentAccessToken) return;\n authOptionsRef.headers = {\n ...(authOptionsRef.headers ?? {}),\n Authorization: `Bearer ${currentAccessToken}`,\n } as HeadersInit;\n };\n\n const wrapSection = <T extends Record<string, unknown>>(\n section: T,\n skipAuth = !hasCMSAuth\n ): T => {\n return new Proxy(section, {\n get(target, prop, receiver) {\n const value = Reflect.get(target, prop, receiver);\n\n if (typeof value === 'function') {\n // Wrap section method to inject token and headers\n return async (...args: unknown[]) => {\n if (!skipAuth) {\n await ensureValidToken();\n applyAuthHeaderToRef();\n }\n\n try {\n return await value.apply(target, args);\n } catch (err) {\n // Best-effort retry: if token might be stale, refresh once and retry\n if (!skipAuth) {\n await refreshToken();\n applyAuthHeaderToRef();\n return await value.apply(target, args);\n }\n throw err;\n }\n };\n }\n\n return value;\n },\n });\n };\n\n return {\n organization: wrapSection(baseApi.organization),\n project: wrapSection(baseApi.project),\n user: wrapSection(baseApi.user),\n oAuth: wrapSection(baseApi.oAuth, true), // do NOT inject auth for token endpoint\n dictionary: wrapSection(baseApi.dictionary),\n stripe: wrapSection(baseApi.stripe),\n ai: wrapSection(baseApi.ai),\n tag: wrapSection(baseApi.tag),\n search: wrapSection(baseApi.search),\n editor: wrapSection(baseApi.editor),\n newsletter: wrapSection(baseApi.newsletter),\n github: wrapSection(baseApi.github),\n } as IntlayerAPI;\n};\n\nexport type IntlayerAPIProxy = ReturnType<typeof getIntlayerAPIProxy>;\n"],"mappings":"qHAcA,MAKM,EACJ,GACuB,CACvB,GAAI,CAAC,EAAO,OACZ,IAAM,EAAY,EAAM,sBAAwB,EAAM,UAItD,GAAI,EAAU,CACZ,IAAM,EACJ,OAAO,GAAa,SAChB,KAAK,MAAM,EAAS,CACpB,EAAS,WAAW,CAC1B,GAAI,OAAO,GAAO,UAAY,OAAO,SAAS,EAAG,CAAE,OAAO,EAE5D,IAAM,EAAU,EAAM,YAAc,EAAM,UAC1C,GAAI,OAAO,GAAY,UAAY,OAAO,SAAS,EAAQ,CACzD,OAAO,KAAK,KAAK,CAAG,EAAU,KAKlC,IAAI,EACA,EACA,EAUJ,MAAa,GACX,EAAkC,EAAE,CACpC,IACgB,CAEhB,IAAM,EAAiC,CAAE,GAAG,EAAiB,CACvD,EACJ,GAAgB,QAAQ,UAAY,GAAgB,QAAQ,aACxD,EAAU,EAAe,EAAgB,EAAe,CAExD,MACC,EACA,EAEE,KAAK,KAAK,CAAG,KAAiB,EAFR,GADG,GAM5B,EAAe,SAA2B,CAU9C,AACE,KAVgB,SAAY,CAG5B,IAAM,GADM,MADI,EAAY,EAAe,CACjB,sBAAsB,GACzB,KAEvB,EAAqB,GAAW,YAChC,EAAkB,EAAmB,EAAU,IAInB,CAAC,YAAc,CACzC,EAAiB,IAAA,IACjB,CAEJ,MAAM,GAGF,EAAmB,SAAY,CAC/B,GAAc,EAChB,MAAM,GAAc,EAIlB,MAA6B,CAC5B,IACL,EAAe,QAAU,CACvB,GAAI,EAAe,SAAW,EAAE,CAChC,cAAe,UAAU,IAC1B,GAGG,GACJ,EACA,EAAW,CAAC,IAEL,IAAI,MAAM,EAAS,CACxB,IAAI,EAAQ,EAAM,EAAU,CAC1B,IAAM,EAAQ,QAAQ,IAAI,EAAQ,EAAM,EAAS,CAwBjD,OAtBI,OAAO,GAAU,WAEZ,MAAO,GAAG,IAAoB,CAC9B,IACH,MAAM,GAAkB,CACxB,GAAsB,EAGxB,GAAI,CACF,OAAO,MAAM,EAAM,MAAM,EAAQ,EAAK,OAC/B,EAAK,CAEZ,GAAI,CAAC,EAGH,OAFA,MAAM,GAAc,CACpB,GAAsB,CACf,MAAM,EAAM,MAAM,EAAQ,EAAK,CAExC,MAAM,IAKL,GAEV,CAAC,CAGJ,MAAO,CACL,aAAc,EAAY,EAAQ,aAAa,CAC/C,QAAS,EAAY,EAAQ,QAAQ,CACrC,KAAM,EAAY,EAAQ,KAAK,CAC/B,MAAO,EAAY,EAAQ,MAAO,GAAK,CACvC,WAAY,EAAY,EAAQ,WAAW,CAC3C,OAAQ,EAAY,EAAQ,OAAO,CACnC,GAAI,EAAY,EAAQ,GAAG,CAC3B,IAAK,EAAY,EAAQ,IAAI,CAC7B,OAAQ,EAAY,EAAQ,OAAO,CACnC,OAAQ,EAAY,EAAQ,OAAO,CACnC,WAAY,EAAY,EAAQ,WAAW,CAC3C,OAAQ,EAAY,EAAQ,OAAO,CACpC"}
1
+ {"version":3,"file":"proxy.mjs","names":[],"sources":["../../src/proxy.ts"],"sourcesContent":["import type { IntlayerConfig } from '@intlayer/types/config';\nimport type { FetcherOptions } from './fetcher';\nimport { getIntlayerAPI } from './getIntlayerAPI';\nimport type { IntlayerAPI } from './getIntlayerAPI/index';\nimport { getOAuthAPI } from './getIntlayerAPI/oAuth';\n\ntype OAuthTokenLike = {\n accessToken?: string;\n accessTokenExpiresAt?: string | Date;\n expires_in?: number;\n expiresIn?: number;\n expiresAt?: string | Date;\n};\n\nconst ONE_MINUTE_MS = 60_000;\n\n/**\n * Returns the expiration timestamp in ms from an OAuth token-like object.\n */\nconst getExpiryTimestamp = (\n token: OAuthTokenLike | undefined\n): number | undefined => {\n if (!token) return undefined;\n const dateLike = (token.accessTokenExpiresAt ?? token.expiresAt) as\n | string\n | Date\n | undefined;\n if (dateLike) {\n const ts =\n typeof dateLike === 'string'\n ? Date.parse(dateLike)\n : dateLike.getTime?.();\n if (typeof ts === 'number' && Number.isFinite(ts)) return ts;\n }\n const seconds = token.expires_in ?? token.expiresIn;\n if (typeof seconds === 'number' && Number.isFinite(seconds)) {\n return Date.now() + seconds * 1000;\n }\n return undefined;\n};\n\nlet currentAccessToken: string | undefined;\nlet currentExpiryTs: number | undefined;\nlet pendingRefresh: Promise<void> | undefined;\n\n/**\n * Build an auto-auth proxy around getIntlayerAPI that:\n * - Fetches an OAuth2 token when needed\n * - Injects Authorization header for each request\n * - Refreshes token proactively when near expiry\n *\n * The returned API matches the shape of getIntlayerAPI.\n */\nexport const getIntlayerAPIProxy = (\n baseAuthOptions: FetcherOptions = {},\n intlayerConfig?: IntlayerConfig\n): IntlayerAPI => {\n // Use a shared mutable auth options object captured by the API closures\n const authOptionsRef: FetcherOptions = { ...baseAuthOptions };\n const hasCMSAuth =\n intlayerConfig?.editor?.clientId && intlayerConfig?.editor?.clientSecret;\n const baseApi = getIntlayerAPI(authOptionsRef, intlayerConfig);\n\n const needsRefresh = (): boolean => {\n if (!currentAccessToken) return true;\n if (!currentExpiryTs) return false; // If unknown, assume usable until failure\n\n return Date.now() + ONE_MINUTE_MS >= currentExpiryTs; // refresh 1 min before expiry\n };\n\n const refreshToken = async (): Promise<void> => {\n const doRefresh = async () => {\n const authApi = getOAuthAPI(intlayerConfig);\n const res = await authApi.getOAuth2AccessToken();\n const tokenData = res?.data as OAuthTokenLike | undefined;\n\n currentAccessToken = tokenData?.accessToken;\n currentExpiryTs = getExpiryTimestamp(tokenData);\n };\n\n if (!pendingRefresh) {\n pendingRefresh = doRefresh().finally(() => {\n pendingRefresh = undefined;\n });\n }\n await pendingRefresh;\n };\n\n const ensureValidToken = async () => {\n if (needsRefresh()) {\n await refreshToken();\n }\n };\n\n const applyAuthHeaderToRef = () => {\n if (!currentAccessToken) return;\n authOptionsRef.headers = {\n ...(authOptionsRef.headers ?? {}),\n Authorization: `Bearer ${currentAccessToken}`,\n } as HeadersInit;\n };\n\n const wrapSection = <T extends Record<string, unknown>>(\n section: T,\n skipAuth = !hasCMSAuth\n ): T => {\n return new Proxy(section, {\n get(target, prop, receiver) {\n const value = Reflect.get(target, prop, receiver);\n\n if (typeof value === 'function') {\n // Wrap section method to inject token and headers\n return async (...args: unknown[]) => {\n if (!skipAuth) {\n await ensureValidToken();\n applyAuthHeaderToRef();\n }\n\n try {\n return await value.apply(target, args);\n } catch (err) {\n // Best-effort retry: if token might be stale, refresh once and retry\n if (!skipAuth) {\n await refreshToken();\n applyAuthHeaderToRef();\n return await value.apply(target, args);\n }\n throw err;\n }\n };\n }\n\n return value;\n },\n });\n };\n\n return {\n organization: wrapSection(baseApi.organization),\n project: wrapSection(baseApi.project),\n user: wrapSection(baseApi.user),\n oAuth: wrapSection(baseApi.oAuth, true), // do NOT inject auth for token endpoint\n dictionary: wrapSection(baseApi.dictionary),\n stripe: wrapSection(baseApi.stripe),\n ai: wrapSection(baseApi.ai),\n tag: wrapSection(baseApi.tag),\n search: wrapSection(baseApi.search),\n editor: wrapSection(baseApi.editor),\n newsletter: wrapSection(baseApi.newsletter),\n github: wrapSection(baseApi.github),\n } as IntlayerAPI;\n};\n\nexport type IntlayerAPIProxy = ReturnType<typeof getIntlayerAPIProxy>;\n"],"mappings":";;;;AAcA,MAAM,gBAAgB;;;;AAKtB,MAAM,sBACJ,UACuB;AACvB,KAAI,CAAC,MAAO,QAAO;CACnB,MAAM,WAAY,MAAM,wBAAwB,MAAM;AAItD,KAAI,UAAU;EACZ,MAAM,KACJ,OAAO,aAAa,WAChB,KAAK,MAAM,SAAS,GACpB,SAAS,WAAW;AAC1B,MAAI,OAAO,OAAO,YAAY,OAAO,SAAS,GAAG,CAAE,QAAO;;CAE5D,MAAM,UAAU,MAAM,cAAc,MAAM;AAC1C,KAAI,OAAO,YAAY,YAAY,OAAO,SAAS,QAAQ,CACzD,QAAO,KAAK,KAAK,GAAG,UAAU;;AAKlC,IAAI;AACJ,IAAI;AACJ,IAAI;;;;;;;;;AAUJ,MAAa,uBACX,kBAAkC,EAAE,EACpC,mBACgB;CAEhB,MAAM,iBAAiC,EAAE,GAAG,iBAAiB;CAC7D,MAAM,aACJ,gBAAgB,QAAQ,YAAY,gBAAgB,QAAQ;CAC9D,MAAM,UAAU,eAAe,gBAAgB,eAAe;CAE9D,MAAM,qBAA8B;AAClC,MAAI,CAAC,mBAAoB,QAAO;AAChC,MAAI,CAAC,gBAAiB,QAAO;AAE7B,SAAO,KAAK,KAAK,GAAG,iBAAiB;;CAGvC,MAAM,eAAe,YAA2B;EAC9C,MAAM,YAAY,YAAY;GAG5B,MAAM,aADM,MADI,YAAY,eAAe,CACjB,sBAAsB,GACzB;AAEvB,wBAAqB,WAAW;AAChC,qBAAkB,mBAAmB,UAAU;;AAGjD,MAAI,CAAC,eACH,kBAAiB,WAAW,CAAC,cAAc;AACzC,oBAAiB;IACjB;AAEJ,QAAM;;CAGR,MAAM,mBAAmB,YAAY;AACnC,MAAI,cAAc,CAChB,OAAM,cAAc;;CAIxB,MAAM,6BAA6B;AACjC,MAAI,CAAC,mBAAoB;AACzB,iBAAe,UAAU;GACvB,GAAI,eAAe,WAAW,EAAE;GAChC,eAAe,UAAU;GAC1B;;CAGH,MAAM,eACJ,SACA,WAAW,CAAC,eACN;AACN,SAAO,IAAI,MAAM,SAAS,EACxB,IAAI,QAAQ,MAAM,UAAU;GAC1B,MAAM,QAAQ,QAAQ,IAAI,QAAQ,MAAM,SAAS;AAEjD,OAAI,OAAO,UAAU,WAEnB,QAAO,OAAO,GAAG,SAAoB;AACnC,QAAI,CAAC,UAAU;AACb,WAAM,kBAAkB;AACxB,2BAAsB;;AAGxB,QAAI;AACF,YAAO,MAAM,MAAM,MAAM,QAAQ,KAAK;aAC/B,KAAK;AAEZ,SAAI,CAAC,UAAU;AACb,YAAM,cAAc;AACpB,4BAAsB;AACtB,aAAO,MAAM,MAAM,MAAM,QAAQ,KAAK;;AAExC,WAAM;;;AAKZ,UAAO;KAEV,CAAC;;AAGJ,QAAO;EACL,cAAc,YAAY,QAAQ,aAAa;EAC/C,SAAS,YAAY,QAAQ,QAAQ;EACrC,MAAM,YAAY,QAAQ,KAAK;EAC/B,OAAO,YAAY,QAAQ,OAAO,KAAK;EACvC,YAAY,YAAY,QAAQ,WAAW;EAC3C,QAAQ,YAAY,QAAQ,OAAO;EACnC,IAAI,YAAY,QAAQ,GAAG;EAC3B,KAAK,YAAY,QAAQ,IAAI;EAC7B,QAAQ,YAAY,QAAQ,OAAO;EACnC,QAAQ,YAAY,QAAQ,OAAO;EACnC,YAAY,YAAY,QAAQ,WAAW;EAC3C,QAAQ,YAAY,QAAQ,OAAO;EACpC"}
@@ -0,0 +1,10 @@
1
+ import { IntlayerConfig } from "@intlayer/types/config";
2
+ import { Dictionary } from "@intlayer/types/dictionary";
3
+ import { DictionaryKeys } from "@intlayer/types/module_augmentation";
4
+
5
+ //#region ../unmerged-dictionaries-entry/dist/types/index.d.ts
6
+ //#region src/index.d.ts
7
+ type UnmergedDictionaries = Record<DictionaryKeys, Dictionary[]>;
8
+ //#endregion
9
+ export { UnmergedDictionaries };
10
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","names":["IntlayerConfig","Dictionary","DictionaryKeys","UnmergedDictionaries","Record","GetUnmergedDictionaries","configuration","getUnmergedDictionaries"],"sources":["../../../../../../../unmerged-dictionaries-entry/dist/types/index.d.ts"],"mappings":";;;;;;KAKKG,oBAAAA,GAAuBC,MAAAA,CAAOF,cAAAA,EAAgBD,UAAAA"}
@@ -1,2 +1,11 @@
1
- import { t as fetchDistantDictionaries } from "../fetchDistantDictionaries-CLQEr6NS.js";
2
- export { fetchDistantDictionaries };
1
+ import { DictionaryAPI } from "@intlayer/backend";
2
+ import { IntlayerConfig } from "@intlayer/types/config";
3
+
4
+ //#region src/distantDictionary/fetchDistantDictionaries.d.ts
5
+ /**
6
+ * Fetch distant dictionary
7
+ */
8
+ declare const fetchDistantDictionaries: (intlayerConfig: IntlayerConfig) => Promise<DictionaryAPI[] | null | undefined>;
9
+ //#endregion
10
+ export { fetchDistantDictionaries };
11
+ //# sourceMappingURL=fetchDistantDictionaries.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fetchDistantDictionaries.d.ts","names":[],"sources":["../../../src/distantDictionary/fetchDistantDictionaries.ts"],"mappings":";;;;;;AAOA;cAAa,wBAAA,GACX,cAAA,EAAgB,cAAA,KACf,OAAA,CAAQ,aAAA"}
@@ -1,2 +1,11 @@
1
- import { t as fetchDistantDictionary } from "../fetchDistantDictionary-C7esreMl.js";
2
- export { fetchDistantDictionary };
1
+ import { DictionaryAPI } from "@intlayer/backend";
2
+ import { IntlayerConfig } from "@intlayer/types/config";
3
+
4
+ //#region src/distantDictionary/fetchDistantDictionary.d.ts
5
+ /**
6
+ * Fetch distant dictionary
7
+ */
8
+ declare const fetchDistantDictionary: (dictionaryKey: string, intlayerConfig: IntlayerConfig) => Promise<DictionaryAPI | undefined>;
9
+ //#endregion
10
+ export { fetchDistantDictionary };
11
+ //# sourceMappingURL=fetchDistantDictionary.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fetchDistantDictionary.d.ts","names":[],"sources":["../../../src/distantDictionary/fetchDistantDictionary.ts"],"mappings":";;;;;;AAOA;cAAa,sBAAA,GACX,aAAA,UACA,cAAA,EAAgB,cAAA,KACf,OAAA,CAAQ,aAAA"}
@@ -1,3 +1,3 @@
1
- import { t as fetchDistantDictionaries } from "../fetchDistantDictionaries-CLQEr6NS.js";
2
- import { t as fetchDistantDictionary } from "../fetchDistantDictionary-C7esreMl.js";
1
+ import { fetchDistantDictionaries } from "./fetchDistantDictionaries.js";
2
+ import { fetchDistantDictionary } from "./fetchDistantDictionary.js";
3
3
  export { fetchDistantDictionaries, fetchDistantDictionary };
@@ -1,2 +1,32 @@
1
- import { i as getAiAPI, n as AskDocQuestionResult, r as AutocompleteBody, t as AskDocQuestionBody } from "../ai-FbIMwui1.js";
2
- export { AskDocQuestionBody, AskDocQuestionResult, AutocompleteBody, getAiAPI };
1
+ import { FetcherOptions } from "../fetcher.js";
2
+ import { AIOptions, AskDocQuestionResult, AuditContentDeclarationBody, AuditContentDeclarationFieldBody, AuditContentDeclarationMetadataBody, AuditTagBody, ChatCompletionRequestMessage, CustomQueryBody, GetDiscussionsParams, TranslateJSONBody } from "@intlayer/backend";
3
+ import { IntlayerConfig } from "@intlayer/types/config";
4
+
5
+ //#region src/getIntlayerAPI/ai.d.ts
6
+ type AutocompleteBody = {
7
+ text: string;
8
+ aiOptions?: AIOptions;
9
+ contextBefore?: string;
10
+ currentLine?: string;
11
+ contextAfter?: string;
12
+ };
13
+ type AskDocQuestionBody = {
14
+ messages: ChatCompletionRequestMessage[];
15
+ discussionId: string;
16
+ onMessage?: (chunk: string) => void;
17
+ onDone?: (response: AskDocQuestionResult) => void;
18
+ };
19
+ declare const getAiAPI: (authAPIOptions: FetcherOptions, intlayerConfig: IntlayerConfig) => {
20
+ customQuery: (body?: CustomQueryBody, otherOptions?: FetcherOptions) => Promise<CustomQueryResult>;
21
+ translateJSON: (body?: TranslateJSONBody, otherOptions?: FetcherOptions) => Promise<TranslateJSONResult>;
22
+ auditContentDeclaration: (body?: AuditContentDeclarationBody, otherOptions?: FetcherOptions) => Promise<AuditContentDeclarationResult>;
23
+ auditContentDeclarationField: (body?: AuditContentDeclarationFieldBody, otherOptions?: FetcherOptions) => Promise<AuditContentDeclarationFieldResult>;
24
+ auditContentDeclarationMetadata: (body?: AuditContentDeclarationMetadataBody, otherOptions?: FetcherOptions) => Promise<AuditContentDeclarationMetadataResult>;
25
+ auditTag: (body?: AuditTagBody, otherOptions?: FetcherOptions) => Promise<AuditTagResult>;
26
+ askDocQuestion: (body?: AskDocQuestionBody, otherOptions?: FetcherOptions) => Promise<void>;
27
+ autocomplete: (body?: AutocompleteBody, otherOptions?: FetcherOptions) => Promise<AutocompleteResponse>;
28
+ getDiscussions: (params?: GetDiscussionsParams, otherOptions?: FetcherOptions) => Promise<GetDiscussionsResult>;
29
+ };
30
+ //#endregion
31
+ export { AskDocQuestionBody, type AskDocQuestionResult, AutocompleteBody, getAiAPI };
32
+ //# sourceMappingURL=ai.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ai.d.ts","names":[],"sources":["../../../src/getIntlayerAPI/ai.ts"],"mappings":";;;;;KAuBY,gBAAA;EACV,IAAA;EACA,SAAA,GAAY,SAAA;EACZ,aAAA;EACA,WAAA;EACA,YAAA;AAAA;AAAA,KAGU,kBAAA;EACV,QAAA,EAAU,4BAAA;EACV,YAAA;EACA,SAAA,IAAa,KAAA;EACb,MAAA,IAAU,QAAA,EAAU,oBAAA;AAAA;AAAA,cAKT,QAAA,GACX,cAAA,EAAgB,cAAA,EAChB,cAAA,EAAgB,cAAA;uBAYP,eAAA,EAAe,YAAA,GACR,cAAA,KAAc,OAAA,CAAA,iBAAA;yBAkBrB,iBAAA,EAAiB,YAAA,GACV,cAAA,KAAc,OAAA,CAAA,mBAAA;mCAkBrB,2BAAA,EAA2B,YAAA,GACpB,cAAA,KAAc,OAAA,CAAA,6BAAA;wCAkBrB,gCAAA,EAAgC,YAAA,GACzB,cAAA,KAAc,OAAA,CAAA,kCAAA;2CAkBrB,mCAAA,EAAmC,YAAA,GAC5B,cAAA,KAAc,OAAA,CAAA,qCAAA;oBAkBrB,YAAA,EAAY,YAAA,GACL,cAAA,KAAc,OAAA,CAAA,cAAA;0BAgCrB,kBAAA,EAAkB,YAAA,GACX,cAAA,KAAc,OAAA;wBAuFrB,gBAAA,EAAgB,YAAA,GACT,cAAA,KAAc,OAAA,CAAA,oBAAA;4BAgBnB,oBAAA,EAAoB,YAAA,GACf,cAAA,KAAc,OAAA,CAAA,oBAAA;AAAA"}
@@ -1,2 +1,44 @@
1
- import { a as GetRecursiveAuditStatusResult, c as StartRecursiveAuditBody, i as GetRecursiveAuditStatusParams, l as StartRecursiveAuditResult, n as DiscoverUrlsParams, o as RecursiveAuditJobParams, r as DiscoverUrlsResult, s as ScanUrlBody, t as AuditEvent, u as getAuditAPI } from "../audit-DzTxbapP.js";
2
- export { AuditEvent, DiscoverUrlsParams, DiscoverUrlsResult, GetRecursiveAuditStatusParams, GetRecursiveAuditStatusResult, RecursiveAuditJobParams, ScanUrlBody, StartRecursiveAuditBody, StartRecursiveAuditResult, getAuditAPI };
1
+ import { FetcherOptions } from "../fetcher.js";
2
+ import { AuditEvent, GetRecursiveAuditStatusResult, StartRecursiveAuditResult } from "@intlayer/backend";
3
+ import { IntlayerConfig } from "@intlayer/types/config";
4
+
5
+ //#region src/getIntlayerAPI/audit.d.ts
6
+ type ScanUrlBody = {
7
+ url: string;
8
+ onMessage?: (event: AuditEvent) => void;
9
+ onDone?: () => void;
10
+ };
11
+ type DiscoverUrlsParams = {
12
+ url: string;
13
+ };
14
+ type DiscoverUrlsResult = {
15
+ urls: string[];
16
+ };
17
+ type StartRecursiveAuditBody = {
18
+ url: string;
19
+ urls?: string[];
20
+ };
21
+ type GetRecursiveAuditStatusParams = {
22
+ jobId: string;
23
+ };
24
+ type RecursiveAuditJobParams = {
25
+ jobId: string;
26
+ };
27
+ declare const getAuditAPI: (authAPIOptions: FetcherOptions, intlayerConfig: IntlayerConfig) => {
28
+ discoverUrls: (params?: DiscoverUrlsParams, otherOptions?: FetcherOptions) => Promise<DiscoverUrlsResult>;
29
+ scanUrl: (body?: ScanUrlBody, otherOptions?: FetcherOptions) => Promise<void>;
30
+ startRecursiveAudit: (body?: StartRecursiveAuditBody, otherOptions?: FetcherOptions) => Promise<StartRecursiveAuditResult>;
31
+ getRecursiveAuditStatus: (params?: GetRecursiveAuditStatusParams, otherOptions?: FetcherOptions) => Promise<GetRecursiveAuditStatusResult>;
32
+ cancelRecursiveAudit: (params?: RecursiveAuditJobParams, otherOptions?: FetcherOptions) => Promise<{
33
+ success: boolean;
34
+ }>;
35
+ pauseRecursiveAudit: (params?: RecursiveAuditJobParams, otherOptions?: FetcherOptions) => Promise<{
36
+ success: boolean;
37
+ }>;
38
+ resumeRecursiveAudit: (params?: RecursiveAuditJobParams, otherOptions?: FetcherOptions) => Promise<{
39
+ success: boolean;
40
+ }>;
41
+ };
42
+ //#endregion
43
+ export { type AuditEvent, DiscoverUrlsParams, DiscoverUrlsResult, GetRecursiveAuditStatusParams, type GetRecursiveAuditStatusResult, RecursiveAuditJobParams, ScanUrlBody, StartRecursiveAuditBody, type StartRecursiveAuditResult, getAuditAPI };
44
+ //# sourceMappingURL=audit.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"audit.d.ts","names":[],"sources":["../../../src/getIntlayerAPI/audit.ts"],"mappings":";;;;;KAcY,WAAA;EACV,GAAA;EACA,SAAA,IAAa,KAAA,EAAO,UAAA;EACpB,MAAA;AAAA;AAAA,KAGU,kBAAA;EACV,GAAA;AAAA;AAAA,KAGU,kBAAA;EACV,IAAA;AAAA;AAAA,KAGU,uBAAA;EACV,GAAA;EACA,IAAA;AAAA;AAAA,KAGU,6BAAA;EACV,KAAA;AAAA;AAAA,KAGU,uBAAA;EACV,KAAA;AAAA;AAAA,cAGW,WAAA,GACX,cAAA,EAAgB,cAAA,EAChB,cAAA,EAAgB,cAAA;0BAmBL,kBAAA,EAAkB,YAAA,GACb,cAAA,KAAc,OAAA,CAAA,kBAAA;mBAarB,WAAA,EAAW,YAAA,GACJ,cAAA,KAAc,OAAA;+BAsErB,uBAAA,EAAuB,YAAA,GAChB,cAAA,KAAc,OAAA,CAAA,yBAAA;qCAiBnB,6BAAA,EAA6B,YAAA,GACxB,cAAA,KAAc,OAAA,CAAA,6BAAA;kCAYnB,uBAAA,EAAuB,YAAA,GAClB,cAAA,KAAc,OAAA;;;iCAUnB,uBAAA,EAAuB,YAAA,GAClB,cAAA,KAAc,OAAA;;;kCAUnB,uBAAA,EAAuB,YAAA,GAClB,cAAA,KAAc,OAAA"}
@@ -1,2 +1,81 @@
1
- import { a as BitbucketGetAuthUrlResult, c as BitbucketListReposResult, i as BitbucketCheckConfigResult, l as BitbucketRepository, n as BitbucketAuthCallbackResult, o as BitbucketGetConfigFileBody, r as BitbucketCheckConfigBody, s as BitbucketGetConfigFileResult, t as BitbucketAuthCallbackBody, u as getBitbucketAPI } from "../bitbucket-DeRx5IlR.js";
2
- export { BitbucketAuthCallbackBody, BitbucketAuthCallbackResult, BitbucketCheckConfigBody, BitbucketCheckConfigResult, BitbucketGetAuthUrlResult, BitbucketGetConfigFileBody, BitbucketGetConfigFileResult, BitbucketListReposResult, BitbucketRepository, getBitbucketAPI };
1
+ import { FetcherOptions } from "../fetcher.js";
2
+ import { IntlayerConfig } from "@intlayer/types/config";
3
+
4
+ //#region src/getIntlayerAPI/bitbucket.d.ts
5
+ type BitbucketRepository = {
6
+ uuid: string;
7
+ name: string;
8
+ full_name: string;
9
+ slug: string;
10
+ mainbranch?: {
11
+ name: string;
12
+ type: string;
13
+ };
14
+ links: {
15
+ html: {
16
+ href: string;
17
+ };
18
+ };
19
+ workspace: {
20
+ slug: string;
21
+ name: string;
22
+ uuid: string;
23
+ };
24
+ owner: {
25
+ display_name: string;
26
+ username?: string;
27
+ uuid: string;
28
+ };
29
+ updated_on: string;
30
+ is_private: boolean;
31
+ };
32
+ type BitbucketAuthCallbackBody = {
33
+ code: string;
34
+ };
35
+ type BitbucketAuthCallbackResult = {
36
+ data: {
37
+ token: string;
38
+ };
39
+ };
40
+ type BitbucketListReposResult = {
41
+ data: BitbucketRepository[];
42
+ };
43
+ type BitbucketCheckConfigBody = {
44
+ token?: string;
45
+ workspace: string;
46
+ repoSlug: string;
47
+ branch?: string;
48
+ };
49
+ type BitbucketCheckConfigResult = {
50
+ data: {
51
+ hasConfig: boolean;
52
+ configPaths: string[];
53
+ };
54
+ };
55
+ type BitbucketGetConfigFileBody = {
56
+ token?: string;
57
+ workspace: string;
58
+ repoSlug: string;
59
+ branch?: string;
60
+ path?: string;
61
+ };
62
+ type BitbucketGetConfigFileResult = {
63
+ data: {
64
+ content: string;
65
+ };
66
+ };
67
+ type BitbucketGetAuthUrlResult = {
68
+ data: {
69
+ authUrl: string;
70
+ };
71
+ };
72
+ declare const getBitbucketAPI: (authAPIOptions: FetcherOptions, intlayerConfig: IntlayerConfig) => {
73
+ getAuthUrl: (redirectUri: string, otherOptions?: FetcherOptions) => Promise<BitbucketGetAuthUrlResult>;
74
+ authenticate: (code: string, otherOptions?: FetcherOptions) => Promise<BitbucketAuthCallbackResult>;
75
+ getRepositories: (token?: string | null, otherOptions?: FetcherOptions) => Promise<BitbucketListReposResult>;
76
+ checkIntlayerConfig: (token: string | null | undefined, workspace: string, repoSlug: string, branch?: string, otherOptions?: FetcherOptions) => Promise<BitbucketCheckConfigResult>;
77
+ getConfigFile: (token: string | null | undefined, workspace: string, repoSlug: string, branch?: string, path?: string, otherOptions?: FetcherOptions) => Promise<BitbucketGetConfigFileResult>;
78
+ };
79
+ //#endregion
80
+ export { BitbucketAuthCallbackBody, BitbucketAuthCallbackResult, BitbucketCheckConfigBody, BitbucketCheckConfigResult, BitbucketGetAuthUrlResult, BitbucketGetConfigFileBody, BitbucketGetConfigFileResult, BitbucketListReposResult, BitbucketRepository, getBitbucketAPI };
81
+ //# sourceMappingURL=bitbucket.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bitbucket.d.ts","names":[],"sources":["../../../src/getIntlayerAPI/bitbucket.ts"],"mappings":";;;;KAGY,mBAAA;EACV,IAAA;EACA,IAAA;EACA,SAAA;EACA,IAAA;EACA,UAAA;IACE,IAAA;IACA,IAAA;EAAA;EAEF,KAAA;IACE,IAAA;MACE,IAAA;IAAA;EAAA;EAGJ,SAAA;IACE,IAAA;IACA,IAAA;IACA,IAAA;EAAA;EAEF,KAAA;IACE,YAAA;IACA,QAAA;IACA,IAAA;EAAA;EAEF,UAAA;EACA,UAAA;AAAA;AAAA,KAGU,yBAAA;EACV,IAAA;AAAA;AAAA,KAGU,2BAAA;EACV,IAAA;IACE,KAAA;EAAA;AAAA;AAAA,KAIQ,wBAAA;EACV,IAAA,EAAM,mBAAA;AAAA;AAAA,KAGI,wBAAA;EACV,KAAA;EACA,SAAA;EACA,QAAA;EACA,MAAA;AAAA;AAAA,KAGU,0BAAA;EACV,IAAA;IACE,SAAA;IACA,WAAA;EAAA;AAAA;AAAA,KAIQ,0BAAA;EACV,KAAA;EACA,SAAA;EACA,QAAA;EACA,MAAA;EACA,IAAA;AAAA;AAAA,KAGU,4BAAA;EACV,IAAA;IACE,OAAA;EAAA;AAAA;AAAA,KAIQ,yBAAA;EACV,IAAA;IACE,OAAA;EAAA;AAAA;AAAA,cAIS,eAAA,GACX,cAAA,EAAgB,cAAA,EAChB,cAAA,EAAgB,cAAA;oCAWK,YAAA,GACL,cAAA,KAAc,OAAA,CAAA,yBAAA;+BAgBhB,YAAA,GACE,cAAA,KAAc,OAAA,CAAA,2BAAA;2CAiBP,YAAA,GACP,cAAA,KAAc,OAAA,CAAA,wBAAA;0DAmBI,SAAA,UACf,QAAA,UACD,MAAA,WACF,YAAA,GACA,cAAA,KAAc,OAAA,CAAA,0BAAA;oDAqBI,SAAA,UACf,QAAA,UACD,MAAA,WACF,IAAA,WACF,YAAA,GACE,cAAA,KAAc,OAAA,CAAA,4BAAA;AAAA"}
@@ -1,2 +1,18 @@
1
- import { t as getDictionaryAPI } from "../dictionary-W5LSPsxq.js";
2
- export { getDictionaryAPI };
1
+ import { FetcherOptions } from "../fetcher.js";
2
+ import { AddDictionaryBody, DeleteDictionaryParam, GetDictionariesParams, GetDictionaryParams, GetDictionaryQuery, PushDictionariesBody, UpdateDictionaryBody } from "@intlayer/backend";
3
+ import { IntlayerConfig } from "@intlayer/types/config";
4
+
5
+ //#region src/getIntlayerAPI/dictionary.d.ts
6
+ declare const getDictionaryAPI: (authAPIOptions: FetcherOptions, intlayerConfig: IntlayerConfig) => {
7
+ getDictionaries: (filters?: GetDictionariesParams, otherOptions?: FetcherOptions) => Promise<GetDictionariesResult>;
8
+ getDictionariesKeys: (otherOptions?: FetcherOptions) => Promise<GetDictionariesKeysResult>;
9
+ getDictionariesUpdateTimestamp: (otherOptions?: FetcherOptions) => Promise<GetDictionariesUpdateTimestampResult>;
10
+ getDictionary: (dictionaryKey: GetDictionaryParams["dictionaryKey"], version?: GetDictionaryQuery["version"], otherOptions?: FetcherOptions) => Promise<GetDictionaryResult>;
11
+ pushDictionaries: (dictionaries: PushDictionariesBody["dictionaries"], otherOptions?: FetcherOptions) => Promise<PushDictionariesResult>;
12
+ addDictionary: (body: AddDictionaryBody, otherOptions?: FetcherOptions) => Promise<AddDictionaryResult>;
13
+ updateDictionary: (dictionary: UpdateDictionaryBody, otherOptions?: FetcherOptions) => Promise<UpdateDictionaryResult>;
14
+ deleteDictionary: (id: DeleteDictionaryParam["dictionaryId"], otherOptions?: FetcherOptions) => Promise<DeleteDictionaryResult>;
15
+ };
16
+ //#endregion
17
+ export { getDictionaryAPI };
18
+ //# sourceMappingURL=dictionary.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dictionary.d.ts","names":[],"sources":["../../../src/getIntlayerAPI/dictionary.ts"],"mappings":";;;;;cAoBa,gBAAA,GACX,cAAA,EAAgB,cAAA,EAChB,cAAA,EAAgB,cAAA;8BAWJ,qBAAA,EAAqB,YAAA,GACjB,cAAA,KAAc,OAAA,CAAA,qBAAA;uCAgBmB,cAAA,KAAc,OAAA,CAAA,yBAAA;kDAc/C,cAAA,KAAc,OAAA,CAAA,oCAAA;iCAiBb,mBAAA,mBAAoC,OAAA,GACzC,kBAAA,aAA6B,YAAA,GACzB,cAAA,KAAc,OAAA,CAAA,mBAAA;mCA8Bd,oBAAA,kBAAoC,YAAA,GACpC,cAAA,KAAc,OAAA,CAAA,sBAAA;wBAftB,iBAAA,EAAiB,YAAA,GACT,cAAA,KAAc,OAAA,CAAA,mBAAA;iCA+BhB,oBAAA,EAAoB,YAAA,GAClB,cAAA,KAAc,OAAA,CAAA,sBAAA;yBAiBxB,qBAAA,kBAAqC,YAAA,GAC3B,cAAA,KAAc,OAAA,CAAA,sBAAA;AAAA"}
@@ -1,2 +1,14 @@
1
- import { t as getEditorAPI } from "../editor-DTBh5ovU.js";
2
- export { getEditorAPI };
1
+ import { FetcherOptions } from "../fetcher.js";
2
+ import { GetConfigurationResult } from "../intlayer-editor/server/dist/controllers/configuration.controller.js";
3
+ import { GetEditorDictionariesResult, WriteContentDeclarationBody, WriteContentDeclarationResult } from "../intlayer-editor/server/dist/controllers/dictionary.controller.js";
4
+ import { IntlayerConfig } from "@intlayer/types/config";
5
+
6
+ //#region src/getIntlayerAPI/editor.d.ts
7
+ declare const getEditorAPI: (authAPIOptions: FetcherOptions, intlayerConfig: IntlayerConfig) => {
8
+ getDictionaries: (otherOptions?: FetcherOptions) => Promise<GetEditorDictionariesResult>;
9
+ getConfiguration: (otherOptions?: FetcherOptions) => Promise<GetConfigurationResult>;
10
+ writeDictionary: (body: WriteContentDeclarationBody, otherOptions?: FetcherOptions) => Promise<WriteContentDeclarationResult>;
11
+ };
12
+ //#endregion
13
+ export { getEditorAPI };
14
+ //# sourceMappingURL=editor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"editor.d.ts","names":[],"sources":["../../../src/getIntlayerAPI/editor.ts"],"mappings":";;;;;;cASa,YAAA,GACX,cAAA,EAAgB,cAAA,EAChB,cAAA,EAAgB,cAAA;mCA6BA,cAAA,KACb,OAAA,CAAQ,2BAAA;oCAhBK,cAAA,KACb,OAAA,CAAQ,sBAAA;0BA8BH,2BAAA,EAA2B,YAAA,GACnB,cAAA,KAAc,OAAA,CAAA,6BAAA;AAAA"}
@@ -1,2 +1,65 @@
1
- import { a as GitHubGetAuthUrlResult, c as GitHubListReposResult, i as GitHubCheckConfigResult, l as GitHubRepository, n as GitHubAuthCallbackResult, o as GitHubGetConfigFileBody, r as GitHubCheckConfigBody, s as GitHubGetConfigFileResult, t as GitHubAuthCallbackBody, u as getGithubAPI } from "../github-D077Il7G.js";
2
- export { GitHubAuthCallbackBody, GitHubAuthCallbackResult, GitHubCheckConfigBody, GitHubCheckConfigResult, GitHubGetAuthUrlResult, GitHubGetConfigFileBody, GitHubGetConfigFileResult, GitHubListReposResult, GitHubRepository, getGithubAPI };
1
+ import { FetcherOptions } from "../fetcher.js";
2
+ import { IntlayerConfig } from "@intlayer/types/config";
3
+
4
+ //#region src/getIntlayerAPI/github.d.ts
5
+ type GitHubRepository = {
6
+ id: number;
7
+ name: string;
8
+ full_name: string;
9
+ owner: {
10
+ login: string;
11
+ id: number;
12
+ };
13
+ html_url: string;
14
+ default_branch: string;
15
+ private: boolean;
16
+ };
17
+ type GitHubAuthCallbackBody = {
18
+ code: string;
19
+ };
20
+ type GitHubAuthCallbackResult = {
21
+ data: {
22
+ token: string;
23
+ };
24
+ };
25
+ type GitHubListReposResult = {
26
+ data: GitHubRepository[];
27
+ };
28
+ type GitHubCheckConfigBody = {
29
+ token?: string;
30
+ owner: string;
31
+ repository: string;
32
+ branch?: string;
33
+ };
34
+ type GitHubCheckConfigResult = {
35
+ data: {
36
+ hasConfig: boolean;
37
+ };
38
+ };
39
+ type GitHubGetConfigFileBody = {
40
+ token?: string;
41
+ owner: string;
42
+ repository: string;
43
+ branch?: string;
44
+ path?: string;
45
+ };
46
+ type GitHubGetConfigFileResult = {
47
+ data: {
48
+ content: string;
49
+ };
50
+ };
51
+ type GitHubGetAuthUrlResult = {
52
+ data: {
53
+ authUrl: string;
54
+ };
55
+ };
56
+ declare const getGithubAPI: (authAPIOptions: FetcherOptions, intlayerConfig: IntlayerConfig) => {
57
+ getAuthUrl: (redirectUri: string, otherOptions?: FetcherOptions) => Promise<GitHubGetAuthUrlResult>;
58
+ authenticate: (code: string, otherOptions?: FetcherOptions) => Promise<GitHubAuthCallbackResult>;
59
+ getRepositories: (token?: string | null, otherOptions?: FetcherOptions) => Promise<GitHubListReposResult>;
60
+ checkIntlayerConfig: (token: string | null | undefined, owner: string, repository: string, branch?: string, otherOptions?: FetcherOptions) => Promise<GitHubCheckConfigResult>;
61
+ getConfigFile: (token: string | null | undefined, owner: string, repository: string, branch?: string, path?: string, otherOptions?: FetcherOptions) => Promise<GitHubGetConfigFileResult>;
62
+ };
63
+ //#endregion
64
+ export { GitHubAuthCallbackBody, GitHubAuthCallbackResult, GitHubCheckConfigBody, GitHubCheckConfigResult, GitHubGetAuthUrlResult, GitHubGetConfigFileBody, GitHubGetConfigFileResult, GitHubListReposResult, GitHubRepository, getGithubAPI };
65
+ //# sourceMappingURL=github.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"github.d.ts","names":[],"sources":["../../../src/getIntlayerAPI/github.ts"],"mappings":";;;;KAGY,gBAAA;EACV,EAAA;EACA,IAAA;EACA,SAAA;EACA,KAAA;IACE,KAAA;IACA,EAAA;EAAA;EAEF,QAAA;EACA,cAAA;EACA,OAAA;AAAA;AAAA,KAGU,sBAAA;EACV,IAAA;AAAA;AAAA,KAGU,wBAAA;EACV,IAAA;IACE,KAAA;EAAA;AAAA;AAAA,KAIQ,qBAAA;EACV,IAAA,EAAM,gBAAA;AAAA;AAAA,KAGI,qBAAA;EACV,KAAA;EACA,KAAA;EACA,UAAA;EACA,MAAA;AAAA;AAAA,KAGU,uBAAA;EACV,IAAA;IACE,SAAA;EAAA;AAAA;AAAA,KAIQ,uBAAA;EACV,KAAA;EACA,KAAA;EACA,UAAA;EACA,MAAA;EACA,IAAA;AAAA;AAAA,KAGU,yBAAA;EACV,IAAA;IACE,OAAA;EAAA;AAAA;AAAA,KAIQ,sBAAA;EACV,IAAA;IACE,OAAA;EAAA;AAAA;AAAA,cAIS,YAAA,GACX,cAAA,EAAgB,cAAA,EAChB,cAAA,EAAgB,cAAA;oCAWK,YAAA,GACL,cAAA,KAAc,OAAA,CAAA,sBAAA;+BAgBhB,YAAA,GACE,cAAA,KAAc,OAAA,CAAA,wBAAA;2CAiBP,YAAA,GACP,cAAA,KAAc,OAAA,CAAA,qBAAA;0DAmBI,KAAA,UACnB,UAAA,UACK,MAAA,WACJ,YAAA,GACA,cAAA,KAAc,OAAA,CAAA,uBAAA;oDAqBI,KAAA,UACnB,UAAA,UACK,MAAA,WACJ,IAAA,WACF,YAAA,GACE,cAAA,KAAc,OAAA,CAAA,yBAAA;AAAA"}
@@ -1,2 +1,70 @@
1
- import { a as GitLabGetAuthUrlResult, c as GitLabListProjectsResult, i as GitLabCheckConfigResult, l as GitLabProject, n as GitLabAuthCallbackResult, o as GitLabGetConfigFileBody, r as GitLabCheckConfigBody, s as GitLabGetConfigFileResult, t as GitLabAuthCallbackBody, u as getGitlabAPI } from "../gitlab-BrWydMCh.js";
2
- export { GitLabAuthCallbackBody, GitLabAuthCallbackResult, GitLabCheckConfigBody, GitLabCheckConfigResult, GitLabGetAuthUrlResult, GitLabGetConfigFileBody, GitLabGetConfigFileResult, GitLabListProjectsResult, GitLabProject, getGitlabAPI };
1
+ import { FetcherOptions } from "../fetcher.js";
2
+ import { IntlayerConfig } from "@intlayer/types/config";
3
+
4
+ //#region src/getIntlayerAPI/gitlab.d.ts
5
+ type GitLabProject = {
6
+ id: number;
7
+ name: string;
8
+ path_with_namespace: string;
9
+ web_url: string;
10
+ default_branch: string;
11
+ visibility: string;
12
+ last_activity_at: string;
13
+ namespace: {
14
+ id: number;
15
+ name: string;
16
+ path: string;
17
+ };
18
+ };
19
+ type GitLabAuthCallbackBody = {
20
+ code: string;
21
+ redirectUri: string;
22
+ instanceUrl?: string;
23
+ };
24
+ type GitLabAuthCallbackResult = {
25
+ data: {
26
+ token: string;
27
+ };
28
+ };
29
+ type GitLabListProjectsResult = {
30
+ data: GitLabProject[];
31
+ };
32
+ type GitLabCheckConfigBody = {
33
+ token?: string;
34
+ projectId: number;
35
+ branch?: string;
36
+ instanceUrl?: string;
37
+ };
38
+ type GitLabCheckConfigResult = {
39
+ data: {
40
+ hasConfig: boolean;
41
+ configPaths: string[];
42
+ };
43
+ };
44
+ type GitLabGetConfigFileBody = {
45
+ token?: string;
46
+ projectId: number;
47
+ branch?: string;
48
+ path?: string;
49
+ instanceUrl?: string;
50
+ };
51
+ type GitLabGetConfigFileResult = {
52
+ data: {
53
+ content: string;
54
+ };
55
+ };
56
+ type GitLabGetAuthUrlResult = {
57
+ data: {
58
+ authUrl: string;
59
+ };
60
+ };
61
+ declare const getGitlabAPI: (authAPIOptions: FetcherOptions, intlayerConfig: IntlayerConfig) => {
62
+ getAuthUrl: (redirectUri: string, instanceUrl?: string, otherOptions?: FetcherOptions) => Promise<GitLabGetAuthUrlResult>;
63
+ authenticate: (code: string, redirectUri: string, instanceUrl?: string, otherOptions?: FetcherOptions) => Promise<GitLabAuthCallbackResult>;
64
+ getProjects: (token?: string | null, instanceUrl?: string, otherOptions?: FetcherOptions) => Promise<GitLabListProjectsResult>;
65
+ checkIntlayerConfig: (token: string | null | undefined, projectId: number, branch?: string, instanceUrl?: string, otherOptions?: FetcherOptions) => Promise<GitLabCheckConfigResult>;
66
+ getConfigFile: (token: string | null | undefined, projectId: number, branch?: string, path?: string, instanceUrl?: string, otherOptions?: FetcherOptions) => Promise<GitLabGetConfigFileResult>;
67
+ };
68
+ //#endregion
69
+ export { GitLabAuthCallbackBody, GitLabAuthCallbackResult, GitLabCheckConfigBody, GitLabCheckConfigResult, GitLabGetAuthUrlResult, GitLabGetConfigFileBody, GitLabGetConfigFileResult, GitLabListProjectsResult, GitLabProject, getGitlabAPI };
70
+ //# sourceMappingURL=gitlab.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"gitlab.d.ts","names":[],"sources":["../../../src/getIntlayerAPI/gitlab.ts"],"mappings":";;;;KAGY,aAAA;EACV,EAAA;EACA,IAAA;EACA,mBAAA;EACA,OAAA;EACA,cAAA;EACA,UAAA;EACA,gBAAA;EACA,SAAA;IACE,EAAA;IACA,IAAA;IACA,IAAA;EAAA;AAAA;AAAA,KAIQ,sBAAA;EACV,IAAA;EACA,WAAA;EACA,WAAA;AAAA;AAAA,KAGU,wBAAA;EACV,IAAA;IACE,KAAA;EAAA;AAAA;AAAA,KAIQ,wBAAA;EACV,IAAA,EAAM,aAAA;AAAA;AAAA,KAGI,qBAAA;EACV,KAAA;EACA,SAAA;EACA,MAAA;EACA,WAAA;AAAA;AAAA,KAGU,uBAAA;EACV,IAAA;IACE,SAAA;IACA,WAAA;EAAA;AAAA;AAAA,KAIQ,uBAAA;EACV,KAAA;EACA,SAAA;EACA,MAAA;EACA,IAAA;EACA,WAAA;AAAA;AAAA,KAGU,yBAAA;EACV,IAAA;IACE,OAAA;EAAA;AAAA;AAAA,KAIQ,sBAAA;EACV,IAAA;IACE,OAAA;EAAA;AAAA;AAAA,cAIS,YAAA,GACX,cAAA,EAAgB,cAAA,EAChB,cAAA,EAAgB,cAAA;oCAYK,WAAA,WACC,YAAA,GACN,cAAA,KAAc,OAAA,CAAA,sBAAA;+BAkBhB,WAAA,UACO,WAAA,WACC,YAAA,GACN,cAAA,KAAc,OAAA,CAAA,wBAAA;uCAkBP,WAAA,WACD,YAAA,GACN,cAAA,KAAc,OAAA,CAAA,wBAAA;0DAsBI,SAAA,UACf,MAAA,WACH,WAAA,WACM,YAAA,GACN,cAAA,KAAc,OAAA,CAAA,uBAAA;oDA0BI,SAAA,UACf,MAAA,WACH,IAAA,WACF,WAAA,WACQ,YAAA,GACN,cAAA,KAAc,OAAA,CAAA,yBAAA;AAAA"}
@@ -1,20 +1,20 @@
1
1
  import { FetcherOptions } from "../fetcher.js";
2
- import { i as getAiAPI } from "../ai-FbIMwui1.js";
3
- import { u as getAuditAPI } from "../audit-DzTxbapP.js";
4
- import { u as getBitbucketAPI } from "../bitbucket-DeRx5IlR.js";
5
- import { t as getDictionaryAPI } from "../dictionary-W5LSPsxq.js";
6
- import { t as getEditorAPI } from "../editor-DTBh5ovU.js";
7
- import { u as getGithubAPI } from "../github-D077Il7G.js";
8
- import { u as getGitlabAPI } from "../gitlab-BrWydMCh.js";
9
- import { t as getNewsletterAPI } from "../newsletter-Dg_6QDY_.js";
10
- import { t as getOAuthAPI } from "../oAuth-DfQmGzLO.js";
11
- import { t as getOrganizationAPI } from "../organization-CNkB8dnj.js";
12
- import { t as getProjectAPI } from "../project-DKLgh9Mz.js";
13
- import { t as getSearchAPI } from "../search-CVbo1OMK.js";
14
- import { r as getShowcaseProjectAPI } from "../showcaseProject-1zcpB4aW.js";
15
- import { t as getStripeAPI } from "../stripe-vRfMjdAc.js";
16
- import { t as getTagAPI } from "../tag-0oc2-9J5.js";
17
- import { t as getUserAPI } from "../user-BVi1Ho0Q.js";
2
+ import { getAiAPI } from "./ai.js";
3
+ import { getAuditAPI } from "./audit.js";
4
+ import { getBitbucketAPI } from "./bitbucket.js";
5
+ import { getDictionaryAPI } from "./dictionary.js";
6
+ import { getEditorAPI } from "./editor.js";
7
+ import { getGithubAPI } from "./github.js";
8
+ import { getGitlabAPI } from "./gitlab.js";
9
+ import { getNewsletterAPI } from "./newsletter.js";
10
+ import { getOAuthAPI } from "./oAuth.js";
11
+ import { getOrganizationAPI } from "./organization.js";
12
+ import { getProjectAPI } from "./project.js";
13
+ import { getSearchAPI } from "./search.js";
14
+ import { getShowcaseProjectAPI } from "./showcaseProject.js";
15
+ import { getStripeAPI } from "./stripe.js";
16
+ import { getTagAPI } from "./tag.js";
17
+ import { getUserAPI } from "./user.js";
18
18
  import { IntlayerConfig } from "@intlayer/types/config";
19
19
 
20
20
  //#region src/getIntlayerAPI/index.d.ts