@intlayer/api 9.0.0-canary.1 → 9.0.0-canary.11

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 (165) hide show
  1. package/dist/cjs/cms/createAuthManager.cjs +116 -0
  2. package/dist/cjs/cms/createAuthManager.cjs.map +1 -0
  3. package/dist/cjs/cms/createIntlayerCMS.cjs +64 -0
  4. package/dist/cjs/cms/createIntlayerCMS.cjs.map +1 -0
  5. package/dist/cjs/cms/index.cjs +7 -0
  6. package/dist/cjs/distantDictionary/fetchDistantDictionaries.cjs +3 -2
  7. package/dist/cjs/distantDictionary/fetchDistantDictionaries.cjs.map +1 -1
  8. package/dist/cjs/distantDictionary/fetchDistantDictionary.cjs +3 -2
  9. package/dist/cjs/distantDictionary/fetchDistantDictionary.cjs.map +1 -1
  10. package/dist/cjs/getIntlayerAPI/ai.cjs +9 -0
  11. package/dist/cjs/getIntlayerAPI/ai.cjs.map +1 -1
  12. package/dist/cjs/getIntlayerAPI/asset.cjs +9 -0
  13. package/dist/cjs/getIntlayerAPI/asset.cjs.map +1 -1
  14. package/dist/cjs/getIntlayerAPI/audit.cjs +9 -0
  15. package/dist/cjs/getIntlayerAPI/audit.cjs.map +1 -1
  16. package/dist/cjs/getIntlayerAPI/bitbucket.cjs +9 -0
  17. package/dist/cjs/getIntlayerAPI/bitbucket.cjs.map +1 -1
  18. package/dist/cjs/getIntlayerAPI/dictionary.cjs +9 -0
  19. package/dist/cjs/getIntlayerAPI/dictionary.cjs.map +1 -1
  20. package/dist/cjs/getIntlayerAPI/editor.cjs +9 -0
  21. package/dist/cjs/getIntlayerAPI/editor.cjs.map +1 -1
  22. package/dist/cjs/getIntlayerAPI/environment.cjs +9 -0
  23. package/dist/cjs/getIntlayerAPI/environment.cjs.map +1 -1
  24. package/dist/cjs/getIntlayerAPI/github.cjs +9 -0
  25. package/dist/cjs/getIntlayerAPI/github.cjs.map +1 -1
  26. package/dist/cjs/getIntlayerAPI/gitlab.cjs +9 -0
  27. package/dist/cjs/getIntlayerAPI/gitlab.cjs.map +1 -1
  28. package/dist/cjs/getIntlayerAPI/index.cjs +1 -1
  29. package/dist/cjs/getIntlayerAPI/newsletter.cjs +9 -0
  30. package/dist/cjs/getIntlayerAPI/newsletter.cjs.map +1 -1
  31. package/dist/cjs/getIntlayerAPI/organization.cjs +9 -0
  32. package/dist/cjs/getIntlayerAPI/organization.cjs.map +1 -1
  33. package/dist/cjs/getIntlayerAPI/project.cjs +9 -0
  34. package/dist/cjs/getIntlayerAPI/project.cjs.map +1 -1
  35. package/dist/cjs/getIntlayerAPI/reviewer.cjs +9 -0
  36. package/dist/cjs/getIntlayerAPI/reviewer.cjs.map +1 -1
  37. package/dist/cjs/getIntlayerAPI/search.cjs +9 -0
  38. package/dist/cjs/getIntlayerAPI/search.cjs.map +1 -1
  39. package/dist/cjs/getIntlayerAPI/showcaseProject.cjs +9 -0
  40. package/dist/cjs/getIntlayerAPI/showcaseProject.cjs.map +1 -1
  41. package/dist/cjs/getIntlayerAPI/stripe.cjs +9 -0
  42. package/dist/cjs/getIntlayerAPI/stripe.cjs.map +1 -1
  43. package/dist/cjs/getIntlayerAPI/tag.cjs +9 -0
  44. package/dist/cjs/getIntlayerAPI/tag.cjs.map +1 -1
  45. package/dist/cjs/getIntlayerAPI/translate.cjs +9 -0
  46. package/dist/cjs/getIntlayerAPI/translate.cjs.map +1 -1
  47. package/dist/cjs/getIntlayerAPI/user.cjs +9 -0
  48. package/dist/cjs/getIntlayerAPI/user.cjs.map +1 -1
  49. package/dist/cjs/index.cjs +27 -3
  50. package/dist/cjs/proxy.cjs +78 -97
  51. package/dist/cjs/proxy.cjs.map +1 -1
  52. package/dist/esm/cms/createAuthManager.mjs +115 -0
  53. package/dist/esm/cms/createAuthManager.mjs.map +1 -0
  54. package/dist/esm/cms/createIntlayerCMS.mjs +62 -0
  55. package/dist/esm/cms/createIntlayerCMS.mjs.map +1 -0
  56. package/dist/esm/cms/index.mjs +4 -0
  57. package/dist/esm/distantDictionary/fetchDistantDictionaries.mjs +3 -2
  58. package/dist/esm/distantDictionary/fetchDistantDictionaries.mjs.map +1 -1
  59. package/dist/esm/distantDictionary/fetchDistantDictionary.mjs +3 -2
  60. package/dist/esm/distantDictionary/fetchDistantDictionary.mjs.map +1 -1
  61. package/dist/esm/getIntlayerAPI/ai.mjs +9 -1
  62. package/dist/esm/getIntlayerAPI/ai.mjs.map +1 -1
  63. package/dist/esm/getIntlayerAPI/asset.mjs +9 -1
  64. package/dist/esm/getIntlayerAPI/asset.mjs.map +1 -1
  65. package/dist/esm/getIntlayerAPI/audit.mjs +9 -1
  66. package/dist/esm/getIntlayerAPI/audit.mjs.map +1 -1
  67. package/dist/esm/getIntlayerAPI/bitbucket.mjs +9 -1
  68. package/dist/esm/getIntlayerAPI/bitbucket.mjs.map +1 -1
  69. package/dist/esm/getIntlayerAPI/dictionary.mjs +9 -1
  70. package/dist/esm/getIntlayerAPI/dictionary.mjs.map +1 -1
  71. package/dist/esm/getIntlayerAPI/editor.mjs +9 -1
  72. package/dist/esm/getIntlayerAPI/editor.mjs.map +1 -1
  73. package/dist/esm/getIntlayerAPI/environment.mjs +9 -1
  74. package/dist/esm/getIntlayerAPI/environment.mjs.map +1 -1
  75. package/dist/esm/getIntlayerAPI/github.mjs +9 -1
  76. package/dist/esm/getIntlayerAPI/github.mjs.map +1 -1
  77. package/dist/esm/getIntlayerAPI/gitlab.mjs +9 -1
  78. package/dist/esm/getIntlayerAPI/gitlab.mjs.map +1 -1
  79. package/dist/esm/getIntlayerAPI/index.mjs +1 -1
  80. package/dist/esm/getIntlayerAPI/newsletter.mjs +9 -1
  81. package/dist/esm/getIntlayerAPI/newsletter.mjs.map +1 -1
  82. package/dist/esm/getIntlayerAPI/organization.mjs +9 -1
  83. package/dist/esm/getIntlayerAPI/organization.mjs.map +1 -1
  84. package/dist/esm/getIntlayerAPI/project.mjs +9 -1
  85. package/dist/esm/getIntlayerAPI/project.mjs.map +1 -1
  86. package/dist/esm/getIntlayerAPI/reviewer.mjs +9 -1
  87. package/dist/esm/getIntlayerAPI/reviewer.mjs.map +1 -1
  88. package/dist/esm/getIntlayerAPI/search.mjs +9 -1
  89. package/dist/esm/getIntlayerAPI/search.mjs.map +1 -1
  90. package/dist/esm/getIntlayerAPI/showcaseProject.mjs +9 -1
  91. package/dist/esm/getIntlayerAPI/showcaseProject.mjs.map +1 -1
  92. package/dist/esm/getIntlayerAPI/stripe.mjs +9 -1
  93. package/dist/esm/getIntlayerAPI/stripe.mjs.map +1 -1
  94. package/dist/esm/getIntlayerAPI/tag.mjs +9 -1
  95. package/dist/esm/getIntlayerAPI/tag.mjs.map +1 -1
  96. package/dist/esm/getIntlayerAPI/translate.mjs +9 -1
  97. package/dist/esm/getIntlayerAPI/translate.mjs.map +1 -1
  98. package/dist/esm/getIntlayerAPI/user.mjs +9 -1
  99. package/dist/esm/getIntlayerAPI/user.mjs.map +1 -1
  100. package/dist/esm/index.mjs +23 -21
  101. package/dist/esm/proxy.mjs +78 -97
  102. package/dist/esm/proxy.mjs.map +1 -1
  103. package/dist/types/cms/createAuthManager.d.ts +103 -0
  104. package/dist/types/cms/createAuthManager.d.ts.map +1 -0
  105. package/dist/types/cms/createIntlayerCMS.d.ts +80 -0
  106. package/dist/types/cms/createIntlayerCMS.d.ts.map +1 -0
  107. package/dist/types/cms/index.d.ts +3 -0
  108. package/dist/types/distantDictionary/fetchDistantDictionaries.d.ts +1 -1
  109. package/dist/types/distantDictionary/fetchDistantDictionaries.d.ts.map +1 -1
  110. package/dist/types/distantDictionary/fetchDistantDictionary.d.ts +1 -1
  111. package/dist/types/distantDictionary/fetchDistantDictionary.d.ts.map +1 -1
  112. package/dist/types/getIntlayerAPI/ai.d.ts +22 -2
  113. package/dist/types/getIntlayerAPI/ai.d.ts.map +1 -1
  114. package/dist/types/getIntlayerAPI/asset.d.ts +19 -1
  115. package/dist/types/getIntlayerAPI/asset.d.ts.map +1 -1
  116. package/dist/types/getIntlayerAPI/audit.d.ts +24 -2
  117. package/dist/types/getIntlayerAPI/audit.d.ts.map +1 -1
  118. package/dist/types/getIntlayerAPI/bitbucket.d.ts +15 -1
  119. package/dist/types/getIntlayerAPI/bitbucket.d.ts.map +1 -1
  120. package/dist/types/getIntlayerAPI/dictionary.d.ts +19 -2
  121. package/dist/types/getIntlayerAPI/dictionary.d.ts.map +1 -1
  122. package/dist/types/getIntlayerAPI/editor.d.ts +15 -2
  123. package/dist/types/getIntlayerAPI/editor.d.ts.map +1 -1
  124. package/dist/types/getIntlayerAPI/environment.d.ts +17 -2
  125. package/dist/types/getIntlayerAPI/environment.d.ts.map +1 -1
  126. package/dist/types/getIntlayerAPI/github.d.ts +16 -1
  127. package/dist/types/getIntlayerAPI/github.d.ts.map +1 -1
  128. package/dist/types/getIntlayerAPI/gitlab.d.ts +15 -1
  129. package/dist/types/getIntlayerAPI/gitlab.d.ts.map +1 -1
  130. package/dist/types/getIntlayerAPI/index.d.ts +1 -1
  131. package/dist/types/getIntlayerAPI/newsletter.d.ts +14 -2
  132. package/dist/types/getIntlayerAPI/newsletter.d.ts.map +1 -1
  133. package/dist/types/getIntlayerAPI/organization.d.ts +22 -2
  134. package/dist/types/getIntlayerAPI/organization.d.ts.map +1 -1
  135. package/dist/types/getIntlayerAPI/project.d.ts +29 -2
  136. package/dist/types/getIntlayerAPI/project.d.ts.map +1 -1
  137. package/dist/types/getIntlayerAPI/reviewer.d.ts +46 -2
  138. package/dist/types/getIntlayerAPI/reviewer.d.ts.map +1 -1
  139. package/dist/types/getIntlayerAPI/search.d.ts +12 -2
  140. package/dist/types/getIntlayerAPI/search.d.ts.map +1 -1
  141. package/dist/types/getIntlayerAPI/showcaseProject.d.ts +23 -2
  142. package/dist/types/getIntlayerAPI/showcaseProject.d.ts.map +1 -1
  143. package/dist/types/getIntlayerAPI/stripe.d.ts +68 -2
  144. package/dist/types/getIntlayerAPI/stripe.d.ts.map +1 -1
  145. package/dist/types/getIntlayerAPI/tag.d.ts +15 -2
  146. package/dist/types/getIntlayerAPI/tag.d.ts.map +1 -1
  147. package/dist/types/getIntlayerAPI/translate.d.ts +37 -2
  148. package/dist/types/getIntlayerAPI/translate.d.ts.map +1 -1
  149. package/dist/types/getIntlayerAPI/user.d.ts +20 -2
  150. package/dist/types/getIntlayerAPI/user.d.ts.map +1 -1
  151. package/dist/types/index.d.ts +23 -21
  152. package/dist/types/packages/@intlayer/unmerged-dictionaries-entry/dist/types/index.d.ts +10 -0
  153. package/dist/types/packages/@intlayer/unmerged-dictionaries-entry/dist/types/index.d.ts.map +1 -0
  154. package/dist/types/packages/intlayer-editor/server/dist/controllers/configuration.controller.d.ts +11 -0
  155. package/dist/types/packages/intlayer-editor/server/dist/controllers/configuration.controller.d.ts.map +1 -0
  156. package/dist/types/packages/intlayer-editor/server/dist/controllers/dictionary.controller.d.ts +25 -0
  157. package/dist/types/packages/intlayer-editor/server/dist/controllers/dictionary.controller.d.ts.map +1 -0
  158. package/dist/types/packages/intlayer-editor/server/dist/export.d.ts +2 -0
  159. package/dist/types/packages/intlayer-editor/server/dist/utils/httpStatusCodes.d.ts +408 -0
  160. package/dist/types/packages/intlayer-editor/server/dist/utils/httpStatusCodes.d.ts.map +1 -0
  161. package/dist/types/packages/intlayer-editor/server/dist/utils/responseData.d.ts +20 -0
  162. package/dist/types/packages/intlayer-editor/server/dist/utils/responseData.d.ts.map +1 -0
  163. package/dist/types/proxy.d.ts +11 -9
  164. package/dist/types/proxy.d.ts.map +1 -1
  165. package/package.json +12 -4
@@ -0,0 +1,103 @@
1
+ import { FetcherOptions } from "../fetcher.js";
2
+ import { IntlayerConfig } from "@intlayer/types/config";
3
+
4
+ //#region src/cms/createAuthManager.d.ts
5
+ /**
6
+ * Any asynchronous API method exposed by a domain section
7
+ * (e.g. `getDictionaries`, `pushDictionaries`).
8
+ */
9
+ type AsyncMethod<Arguments extends unknown[], Result> = (...args: Arguments) => Promise<Result>;
10
+ /**
11
+ * A domain section factory: builds a plain object of async methods from shared
12
+ * fetcher options and the Intlayer configuration.
13
+ */
14
+ type SectionFactory<Section extends Record<string, unknown>> = (fetcherOptions: FetcherOptions, intlayerConfig: IntlayerConfig) => Section;
15
+ /**
16
+ * Options accepted when creating an {@link AuthManager}.
17
+ */
18
+ type AuthManagerOptions = {
19
+ /**
20
+ * Base fetcher options merged into every request (e.g. custom headers).
21
+ */
22
+ baseFetcherOptions?: FetcherOptions;
23
+ /**
24
+ * A pre-issued CLI session token (prefixed with `clisession_`). When provided,
25
+ * it is used directly as the Bearer token and the OAuth2 `client_credentials`
26
+ * exchange is skipped entirely.
27
+ */
28
+ sessionToken?: string;
29
+ };
30
+ /**
31
+ * Options accepted when binding a domain section to an {@link AuthManager}.
32
+ */
33
+ type BindSectionOptions = {
34
+ /**
35
+ * Forces auth injection on (`false`) or off (`true`). Defaults to enabled
36
+ * whenever credentials are available.
37
+ */
38
+ skipAuth?: boolean;
39
+ };
40
+ /**
41
+ * Manages CMS authentication for a set of API calls.
42
+ *
43
+ * The manager owns a single mutable {@link FetcherOptions} object
44
+ * (`fetcherOptions`). Domain factories bound through it share the same
45
+ * reference, so refreshing the token in place transparently authenticates every
46
+ * call — without rebuilding the API clients.
47
+ */
48
+ type AuthManager = {
49
+ /**
50
+ * Mutable fetcher options carrying the `Authorization` header. Bound sections
51
+ * share this reference so the injected token is reused everywhere.
52
+ */
53
+ fetcherOptions: FetcherOptions;
54
+ /**
55
+ * The resolved Intlayer configuration (merged with the build-time defaults).
56
+ */
57
+ intlayerConfig: IntlayerConfig;
58
+ /**
59
+ * `true` when credentials are available — either a session token or a
60
+ * `clientId`/`clientSecret` pair in the configuration.
61
+ */
62
+ hasCredentials: boolean;
63
+ /**
64
+ * Ensures a valid access token is available and applies it to
65
+ * `fetcherOptions`. Called automatically by {@link withAuth}.
66
+ */
67
+ ensureAuth: () => Promise<void>;
68
+ /**
69
+ * Forces a token refresh on the next call by clearing the cached token.
70
+ */
71
+ reset: () => void;
72
+ /**
73
+ * Wraps a single API method so it injects (and, on failure, refreshes) the
74
+ * access token on every invocation while preserving the method's signature.
75
+ */
76
+ withAuth: <Arguments extends unknown[], Result>(method: AsyncMethod<Arguments, Result>, skipAuth?: boolean) => AsyncMethod<Arguments, Result>;
77
+ /**
78
+ * Instantiates a domain factory with the managed fetcher options and config,
79
+ * returning a section whose every method authenticates automatically.
80
+ *
81
+ * @example
82
+ * ```ts
83
+ * const dictionary = authManager.bindSection(getDictionaryAPI);
84
+ * await dictionary.pushDictionaries(dictionaries);
85
+ * ```
86
+ */
87
+ bindSection: <Section extends Record<string, unknown>>(factory: SectionFactory<Section>, options?: BindSectionOptions) => Section;
88
+ };
89
+ /**
90
+ * Creates an instance-scoped {@link AuthManager} handling the OAuth2
91
+ * `client_credentials` flow (or a pre-issued CLI session token).
92
+ *
93
+ * Unlike a global token cache, each manager keeps its own token state, so
94
+ * independent SDK instances never interfere with one another.
95
+ *
96
+ * @param intlayerConfig - Intlayer configuration carrying the `editor`
97
+ * credentials. Defaults to the build-time configuration.
98
+ * @param options - Optional session token and base fetcher options.
99
+ */
100
+ declare const createAuthManager: (intlayerConfig?: Pick<IntlayerConfig, "editor">, options?: AuthManagerOptions) => AuthManager;
101
+ //#endregion
102
+ export { AuthManager, AuthManagerOptions, BindSectionOptions, createAuthManager };
103
+ //# sourceMappingURL=createAuthManager.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createAuthManager.d.ts","names":[],"sources":["../../../src/cms/createAuthManager.ts"],"mappings":";;;;;;AAGiD;;KAmB5C,WAAA,4CACA,IAAA,EAAM,SAAA,KACN,OAAA,CAAQ,MAAA;;;;;KAMR,cAAA,iBAA+B,MAAA,sBAClC,cAAA,EAAgB,cAAA,EAChB,cAAA,EAAgB,cAAA,KACb,OAAA;;;;KAuCO,kBAAA;EAhDP;;;EAoDH,kBAAA,GAAqB,cAAA;EA9ClB;;;;;EAoDH,YAAA;AAAA;;;;KAMU,kBAAA;EAzDM;;;;EA8DhB,QAAA;AAAA;;AArBF;;;;;;;KAgCY,WAAA;EAtBE;AAMd;;;EAqBE,cAAA,EAAgB,cAAA;EAhBR;AAWV;;EASE,cAAA,EAAgB,cAAA;EAJA;;;;EAShB,cAAA;EAeU;;;;EAVV,UAAA,QAAkB,OAAA;EAwBQ;;;EApB1B,KAAA;EAsBY;;;;EAjBZ,QAAA,wCACE,MAAA,EAAQ,WAAA,CAAY,SAAA,EAAW,MAAA,GAC/B,QAAA,eACG,WAAA,CAAY,SAAA,EAAW,MAAA;EAtBZ;;;;;;;;;;EAiChB,WAAA,mBAA8B,MAAA,mBAC5B,OAAA,EAAS,cAAA,CAAe,OAAA,GACxB,OAAA,GAAU,kBAAA,KACP,OAAA;AAAA;;;;;;;;;;;;cAcM,iBAAA,GACX,cAAA,GAAgB,IAAA,CAAK,cAAA,aACrB,OAAA,GAAS,kBAAA,KACR,WAAA"}
@@ -0,0 +1,80 @@
1
+ import { FetcherOptions } from "../fetcher.js";
2
+ import { AuthManager, AuthManagerOptions, BindSectionOptions } from "./createAuthManager.js";
3
+ import { IntlayerConfig } from "@intlayer/types/config";
4
+
5
+ //#region src/cms/createIntlayerCMS.d.ts
6
+ /**
7
+ * Options accepted when creating the Intlayer CMS authenticator.
8
+ */
9
+ type IntlayerCMSOptions = AuthManagerOptions;
10
+ /**
11
+ * The Intlayer CMS authenticator returned by {@link createIntlayerCMS}.
12
+ *
13
+ * It is a lightweight object that holds the credentials and the managed token,
14
+ * but knows nothing about individual domains. Pair it with a domain endpoint
15
+ * (e.g. `dictionaryEndpoint`) to issue authenticated requests.
16
+ */
17
+ type IntlayerCMS = AuthManager;
18
+ /**
19
+ * Creates an Intlayer CMS authenticator handling authentication automatically
20
+ * (OAuth2 `client_credentials`, or a CLI session token).
21
+ *
22
+ * This factory is intentionally lightweight: it does **not** bundle any domain
23
+ * client. Combine it with the per-domain endpoint binders — imported separately
24
+ * so only the domains you use are included in your bundle.
25
+ *
26
+ * The configuration is optional: when omitted, the credentials are read from the
27
+ * build-time configuration (`@intlayer/config/built`), which resolves the
28
+ * `INTLAYER_CLIENT_ID` / `INTLAYER_CLIENT_SECRET` environment variables.
29
+ *
30
+ * > Security: the CMS credentials grant write access to your content. Only ever
31
+ * > create the authenticator on the server side — never ship `clientId` /
32
+ * > `clientSecret` to the browser.
33
+ *
34
+ * @param intlayerConfig - Intlayer configuration carrying the `editor`
35
+ * credentials. Defaults to the build-time configuration.
36
+ * @param options - Optional CLI session token and base fetcher options.
37
+ *
38
+ * @example
39
+ * ```ts
40
+ * import { createIntlayerCMS } from '@intlayer/api';
41
+ * import { dictionaryEndpoint } from '@intlayer/api/dictionary';
42
+ *
43
+ * // Optional: reads INTLAYER_CLIENT_ID / INTLAYER_CLIENT_SECRET when omitted
44
+ * const cms = createIntlayerCMS();
45
+ *
46
+ * // Read
47
+ * const { data: dictionaries } = await dictionaryEndpoint(cms).getDictionaries();
48
+ *
49
+ * // Write
50
+ * await dictionaryEndpoint(cms).pushDictionaries([myDictionary]);
51
+ * ```
52
+ */
53
+ declare const createIntlayerCMS: (intlayerConfig?: Pick<IntlayerConfig, "editor">, options?: IntlayerCMSOptions) => IntlayerCMS;
54
+ /**
55
+ * A domain endpoint binder: given an authenticator (or none, in which case a
56
+ * default one is created from the build-time configuration), returns the
57
+ * authenticated domain section.
58
+ */
59
+ type CMSEndpoint<Section extends Record<string, unknown>> = (cms?: IntlayerCMS) => Section;
60
+ /**
61
+ * Turns a domain factory into a tree-shakeable endpoint binder.
62
+ *
63
+ * Each endpoint pulls in only its own domain client plus the auth machinery, so
64
+ * importing `dictionaryEndpoint` never bundles the project, AI, or any other
65
+ * domain.
66
+ *
67
+ * @param factory - The domain factory (e.g. `getDictionaryAPI`).
68
+ * @param options - Binding options, e.g. `{ skipAuth: true }` for the token
69
+ * endpoint itself.
70
+ *
71
+ * @example
72
+ * ```ts
73
+ * // inside @intlayer/api/dictionary
74
+ * export const dictionaryEndpoint = createEndpoint(getDictionaryAPI);
75
+ * ```
76
+ */
77
+ declare const createEndpoint: <Section extends Record<string, unknown>>(factory: (fetcherOptions: FetcherOptions, intlayerConfig: IntlayerConfig) => Section, options?: BindSectionOptions) => CMSEndpoint<Section>;
78
+ //#endregion
79
+ export { CMSEndpoint, IntlayerCMS, IntlayerCMSOptions, createEndpoint, createIntlayerCMS };
80
+ //# sourceMappingURL=createIntlayerCMS.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createIntlayerCMS.d.ts","names":[],"sources":["../../../src/cms/createIntlayerCMS.ts"],"mappings":";;;;;;;AAaA;KAAY,kBAAA,GAAqB,kBAAA;;;;AASjC;;;;KAAY,WAAA,GAAc,WAAA;AAqC1B;;;;;;;;;;;;;;;;;AAUA;;;;;;;;;;;;;;;AAqBA;;;AA/BA,cAAa,iBAAA,GACX,cAAA,GAAgB,IAAA,CAAK,cAAA,aACrB,OAAA,GAAS,kBAAA,KACR,WAAA;;;;;;KAOS,WAAA,iBAA4B,MAAA,sBACtC,GAAA,GAAM,WAAA,KACH,OAAA;;;;;;;;;;;;;;;;;;cAmBQ,cAAA,mBACM,MAAA,mBACf,OAAA,GACE,cAAA,EAAgB,cAAA,EAChB,cAAA,EAAgB,cAAA,KACb,OAAA,EACL,OAAA,GAAU,kBAAA,KACT,WAAA,CAAY,OAAA"}
@@ -0,0 +1,3 @@
1
+ import { AuthManager, AuthManagerOptions, BindSectionOptions, createAuthManager } from "./createAuthManager.js";
2
+ import { CMSEndpoint, IntlayerCMS, IntlayerCMSOptions, createEndpoint, createIntlayerCMS } from "./createIntlayerCMS.js";
3
+ export { AuthManager, AuthManagerOptions, BindSectionOptions, CMSEndpoint, IntlayerCMS, IntlayerCMSOptions, createAuthManager, createEndpoint, createIntlayerCMS };
@@ -1,5 +1,5 @@
1
- import { DictionaryAPI } from "@intlayer/backend";
2
1
  import { IntlayerConfig } from "@intlayer/types/config";
2
+ import { DictionaryAPI } from "@intlayer/backend";
3
3
 
4
4
  //#region src/distantDictionary/fetchDistantDictionaries.d.ts
5
5
  /**
@@ -1 +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
+ {"version":3,"file":"fetchDistantDictionaries.d.ts","names":[],"sources":["../../../src/distantDictionary/fetchDistantDictionaries.ts"],"mappings":";;;;;;AAQA;cAAa,wBAAA,GACX,cAAA,EAAgB,cAAA,KACf,OAAA,CAAQ,aAAA"}
@@ -1,5 +1,5 @@
1
- import { DictionaryAPI } from "@intlayer/backend";
2
1
  import { IntlayerConfig } from "@intlayer/types/config";
2
+ import { DictionaryAPI } from "@intlayer/backend";
3
3
 
4
4
  //#region src/distantDictionary/fetchDistantDictionary.d.ts
5
5
  /**
@@ -1 +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
+ {"version":3,"file":"fetchDistantDictionary.d.ts","names":[],"sources":["../../../src/distantDictionary/fetchDistantDictionary.ts"],"mappings":";;;;;;AAQA;cAAa,sBAAA,GACX,aAAA,UACA,cAAA,EAAgB,cAAA,KACf,OAAA,CAAQ,aAAA"}
@@ -1,6 +1,7 @@
1
1
  import { FetcherOptions } from "../fetcher.js";
2
- import { AIOptions, AskDocQuestionResult, AuditContentDeclarationBody, AuditContentDeclarationFieldBody, AuditContentDeclarationMetadataBody, AuditTagBody, ChatCompletionRequestMessage, ChatResult, CustomQueryBody, GetDiscussionsParams, TranslateJSONBody } from "@intlayer/backend";
2
+ import { CMSEndpoint } from "../cms/createIntlayerCMS.js";
3
3
  import { IntlayerConfig } from "@intlayer/types/config";
4
+ import { AIOptions, AskDocQuestionResult, AuditContentDeclarationBody, AuditContentDeclarationFieldBody, AuditContentDeclarationMetadataBody, AuditTagBody, ChatCompletionRequestMessage, ChatResult, CustomQueryBody, GetDiscussionsParams, TranslateJSONBody } from "@intlayer/backend";
4
5
 
5
6
  //#region src/getIntlayerAPI/ai.d.ts
6
7
  type AutocompleteBody = {
@@ -42,6 +43,25 @@ declare const getAiAPI: (authAPIOptions?: FetcherOptions, intlayerConfig?: Intla
42
43
  getDiscussions: (params?: GetDiscussionsParams, otherOptions?: FetcherOptions) => Promise<GetDiscussionsResult>;
43
44
  getAIStats: (otherOptions?: FetcherOptions) => Promise<GetAIStatsResult>;
44
45
  };
46
+ /**
47
+ * Authenticated `ai` endpoint bound to an Intlayer CMS authenticator.
48
+ *
49
+ * Pass an authenticator created with `createIntlayerCMS`, or omit it to use
50
+ * the build-time configuration (`@intlayer/config/built`).
51
+ */
52
+ declare const aiEndpoint: CMSEndpoint<{
53
+ customQuery: (body?: CustomQueryBody, otherOptions?: FetcherOptions) => Promise<CustomQueryResult>;
54
+ translateJSON: (body?: TranslateJSONBody, otherOptions?: FetcherOptions) => Promise<TranslateJSONResult>;
55
+ auditContentDeclaration: (body?: AuditContentDeclarationBody, otherOptions?: FetcherOptions) => Promise<AuditContentDeclarationResult>;
56
+ auditContentDeclarationField: (body?: AuditContentDeclarationFieldBody, otherOptions?: FetcherOptions) => Promise<AuditContentDeclarationFieldResult>;
57
+ auditContentDeclarationMetadata: (body?: AuditContentDeclarationMetadataBody, otherOptions?: FetcherOptions) => Promise<AuditContentDeclarationMetadataResult>;
58
+ auditTag: (body?: AuditTagBody, otherOptions?: FetcherOptions) => Promise<AuditTagResult>;
59
+ askDocQuestion: (body?: AskDocQuestionBody, otherOptions?: FetcherOptions) => Promise<void>;
60
+ chat: (body?: ChatBody, otherOptions?: FetcherOptions) => Promise<void>;
61
+ autocomplete: (body?: AutocompleteBody, otherOptions?: FetcherOptions) => Promise<AutocompleteResponse>;
62
+ getDiscussions: (params?: GetDiscussionsParams, otherOptions?: FetcherOptions) => Promise<GetDiscussionsResult>;
63
+ getAIStats: (otherOptions?: FetcherOptions) => Promise<GetAIStatsResult>;
64
+ }>;
45
65
  //#endregion
46
- export { AskDocQuestionBody, type AskDocQuestionResult, AutocompleteBody, ChatBody, type ChatResult, ClientAction, getAiAPI };
66
+ export { AskDocQuestionBody, type AskDocQuestionResult, AutocompleteBody, ChatBody, type ChatResult, ClientAction, aiEndpoint, getAiAPI };
47
67
  //# sourceMappingURL=ai.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ai.d.ts","names":[],"sources":["../../../src/getIntlayerAPI/ai.ts"],"mappings":";;;;;KA0BY,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,KAGV,YAAA;EACN,IAAA;EAAkB,IAAA;AAAA;EAClB,IAAA;AAAA;AAAA,KAEM,QAAA;EACV,QAAA,EAAU,4BAAA;EACV,YAAA;EACA,SAAA,IAAa,KAAA;EACb,MAAA,IAAU,QAAA,EAAU,UAAA;EACpB,QAAA,IAAY,MAAA,EAAQ,YAAA;AAAA;AAAA,cAKT,QAAA,GACX,cAAA,GAAgB,cAAA,EAChB,cAAA,GAAiB,cAAA;uBAYR,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,cA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AAc,OAAA,CAAA,cAAA;0BAgCrB,kBAAA,EAAkB,YAAA,GACX,cAAA,KAAc,OAAA;gBAuFH,QAAA,EAAQ,YAAA,GAAgB,cAAA,KAAc,OAAA;wBAsFxD,gBAAA,EAAgB,YAAA,GACT,cAAA,KAAc,OAAA,CAAA,oBAAA;4BAgBnB,oBAAA,EAAoB,YAAA,GACf,cAAA,KAAc,OAAA,CAAA,oBAAA;8BAiBU,cAAA,KAAc,OAAA,CAAA,gBAAA;AAAA;;;;;;;cA+B3C,UAAA,EA/B2C,WAAA;uBAjV7C,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;gBAuFH,QAAA,EAAQ,YAAA,GAAgB,cAAA,KAAc,OAAA;wBAsFxD,gBAAA,EAAgB,YAAA,GACT,cAAA,KAAc,OAAA,CAAA,oBAAA;4BAgBnB,oBAAA,EAAoB,YAAA,GACf,cAAA,KAAc,OAAA,CAAA,oBAAA;8BAiBU,cAAA,KAAc,OAAA,CAAA,gBAAA;AAAA"}
@@ -1,4 +1,5 @@
1
1
  import { FetcherOptions } from "../fetcher.js";
2
+ import { CMSEndpoint } from "../cms/createIntlayerCMS.js";
2
3
  import { IntlayerConfig } from "@intlayer/types/config";
3
4
 
4
5
  //#region src/getIntlayerAPI/asset.d.ts
@@ -13,6 +14,23 @@ declare const getAssetAPI: (authAPIOptions?: FetcherOptions, intlayerConfig?: In
13
14
  }, otherOptions?: FetcherOptions) => Promise<UpdateAssetResult>;
14
15
  deleteAsset: (assetId: string, otherOptions?: FetcherOptions) => Promise<DeleteAssetResult>;
15
16
  };
17
+ /**
18
+ * Authenticated `asset` endpoint bound to an Intlayer CMS authenticator.
19
+ *
20
+ * Pass an authenticator created with `createIntlayerCMS`, or omit it to use
21
+ * the build-time configuration (`@intlayer/config/built`).
22
+ */
23
+ declare const assetEndpoint: CMSEndpoint<{
24
+ getAssets: (page?: number, pageSize?: number, otherOptions?: FetcherOptions) => Promise<GetAssetsResult>;
25
+ getAssetById: (assetId: string, otherOptions?: FetcherOptions) => Promise<GetAssetByIdResult>;
26
+ uploadAsset: (file: File, alt?: string, caption?: string, otherOptions?: FetcherOptions) => Promise<UploadAssetResult>;
27
+ updateAsset: (assetId: string, data: {
28
+ originalName?: string;
29
+ alt?: string;
30
+ caption?: string;
31
+ }, otherOptions?: FetcherOptions) => Promise<UpdateAssetResult>;
32
+ deleteAsset: (assetId: string, otherOptions?: FetcherOptions) => Promise<DeleteAssetResult>;
33
+ }>;
16
34
  //#endregion
17
- export { getAssetAPI };
35
+ export { assetEndpoint, getAssetAPI };
18
36
  //# sourceMappingURL=asset.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"asset.d.ts","names":[],"sources":["../../../src/getIntlayerAPI/asset.ts"],"mappings":";;;;cAWa,WAAA,GACX,cAAA,GAAgB,cAAA,EAChB,cAAA,GAAiB,cAAA;6BAaF,QAAA,WACI,YAAA,GACH,cAAA,KAAc,OAAA,CAAA,eAAA;kCAqBb,YAAA,GACD,cAAA,KAAc,OAAA,CAAA,kBAAA;sBAiBtB,IAAA,EAAI,GAAA,WACE,OAAA,WACI,YAAA,GACF,cAAA,KAAc,OAAA,CAAA,iBAAA;iCAsCb,IAAA;IACP,YAAA;IAAuB,GAAA;IAAc,OAAA;EAAA,GAAkB,YAAA,GACjD,cAAA,KAAc,OAAA,CAAA,iBAAA;iCAeb,YAAA,GACD,cAAA,KAAc,OAAA,CAAA,iBAAA;AAAA"}
1
+ {"version":3,"file":"asset.d.ts","names":[],"sources":["../../../src/getIntlayerAPI/asset.ts"],"mappings":";;;;;cAYa,WAAA,GACX,cAAA,GAAgB,cAAA,EAChB,cAAA,GAAiB,cAAA;6BAaF,QAAA,WACI,YAAA,GACH,cAAA,KAAc,OAAA,CAAA,eAAA;kCAqBb,YAAA,GACD,cAAA,KAAc,OAAA,CAAA,kBAAA;sBAiBtB,IAAA,EAAI,GAAA,WACE,OAAA,WACI,YAAA,GACF,cAAA,KAAc,OAAA,CAAA,iBAAA;iCAsCb,IAAA;IACP,YAAA;IAAuB,GAAA;IAAc,OAAA;EAAA,GAAkB,YAAA,GACjD,cAAA,KAAc,OAAA,CAAA,iBAAA;iCAeb,YAAA,GACD,cAAA,KAAc,OAAA,CAAA,iBAAA;AAAA;;;;;;;cAwBnB,aAAA,EAxBmB,WAAA;6BApGf,QAAA,WACI,YAAA,GACH,cAAA,KAAc,OAAA,CAAA,eAAA;kCAqBb,YAAA,GACD,cAAA,KAAc,OAAA,CAAA,kBAAA;sBAiBtB,IAAA,EAAI,GAAA,WACE,OAAA,WACI,YAAA,GACF,cAAA,KAAc,OAAA,CAAA,iBAAA;iCAsCb,IAAA;IACP,YAAA;IAAuB,GAAA;IAAc,OAAA;EAAA,GAAkB,YAAA,GACjD,cAAA,KAAc,OAAA,CAAA,iBAAA;iCAeb,YAAA,GACD,cAAA,KAAc,OAAA,CAAA,iBAAA;AAAA"}
@@ -1,6 +1,7 @@
1
1
  import { FetcherOptions } from "../fetcher.js";
2
- import { AuditEvent, GetRecursiveAuditStatusResult, StartRecursiveAuditResult } from "@intlayer/backend";
2
+ import { CMSEndpoint } from "../cms/createIntlayerCMS.js";
3
3
  import { IntlayerConfig } from "@intlayer/types/config";
4
+ import { AuditEvent, GetRecursiveAuditStatusResult, StartRecursiveAuditResult } from "@intlayer/backend";
4
5
 
5
6
  //#region src/getIntlayerAPI/audit.d.ts
6
7
  type ScanUrlBody = {
@@ -39,6 +40,27 @@ declare const getAuditAPI: (authAPIOptions?: FetcherOptions, intlayerConfig?: In
39
40
  success: boolean;
40
41
  }>;
41
42
  };
43
+ /**
44
+ * Authenticated `audit` endpoint bound to an Intlayer CMS authenticator.
45
+ *
46
+ * Pass an authenticator created with `createIntlayerCMS`, or omit it to use
47
+ * the build-time configuration (`@intlayer/config/built`).
48
+ */
49
+ declare const auditEndpoint: CMSEndpoint<{
50
+ discoverUrls: (params?: DiscoverUrlsParams, otherOptions?: FetcherOptions) => Promise<DiscoverUrlsResult>;
51
+ scanUrl: (body?: ScanUrlBody, otherOptions?: FetcherOptions) => Promise<void>;
52
+ startRecursiveAudit: (body?: StartRecursiveAuditBody, otherOptions?: FetcherOptions) => Promise<StartRecursiveAuditResult>;
53
+ getRecursiveAuditStatus: (params?: GetRecursiveAuditStatusParams, otherOptions?: FetcherOptions) => Promise<GetRecursiveAuditStatusResult>;
54
+ cancelRecursiveAudit: (params?: RecursiveAuditJobParams, otherOptions?: FetcherOptions) => Promise<{
55
+ success: boolean;
56
+ }>;
57
+ pauseRecursiveAudit: (params?: RecursiveAuditJobParams, otherOptions?: FetcherOptions) => Promise<{
58
+ success: boolean;
59
+ }>;
60
+ resumeRecursiveAudit: (params?: RecursiveAuditJobParams, otherOptions?: FetcherOptions) => Promise<{
61
+ success: boolean;
62
+ }>;
63
+ }>;
42
64
  //#endregion
43
- export { type AuditEvent, DiscoverUrlsParams, DiscoverUrlsResult, GetRecursiveAuditStatusParams, type GetRecursiveAuditStatusResult, RecursiveAuditJobParams, ScanUrlBody, StartRecursiveAuditBody, type StartRecursiveAuditResult, getAuditAPI };
65
+ export { type AuditEvent, DiscoverUrlsParams, DiscoverUrlsResult, GetRecursiveAuditStatusParams, type GetRecursiveAuditStatusResult, RecursiveAuditJobParams, ScanUrlBody, StartRecursiveAuditBody, type StartRecursiveAuditResult, auditEndpoint, getAuditAPI };
44
66
  //# sourceMappingURL=audit.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"audit.d.ts","names":[],"sources":["../../../src/getIntlayerAPI/audit.ts"],"mappings":";;;;;KAeY,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,GAAgB,cAAA,EAChB,cAAA,GAAiB,cAAA;0BAmBN,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
+ {"version":3,"file":"audit.d.ts","names":[],"sources":["../../../src/getIntlayerAPI/audit.ts"],"mappings":";;;;;;KAgBY,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,GAAgB,cAAA,EAChB,cAAA,GAAiB,cAAA;0BAmBN,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;;;;;;;AAhKhC;;;cA0La,aAAA,EA1BmB,WAAA;0BA3InB,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,4 +1,5 @@
1
1
  import { FetcherOptions } from "../fetcher.js";
2
+ import { CMSEndpoint } from "../cms/createIntlayerCMS.js";
2
3
  import { IntlayerConfig } from "@intlayer/types/config";
3
4
 
4
5
  //#region src/getIntlayerAPI/bitbucket.d.ts
@@ -76,6 +77,19 @@ declare const getBitbucketAPI: (authAPIOptions?: FetcherOptions, intlayerConfig?
76
77
  checkIntlayerConfig: (token: string | null | undefined, workspace: string, repoSlug: string, branch?: string, otherOptions?: FetcherOptions) => Promise<BitbucketCheckConfigResult>;
77
78
  getConfigFile: (token: string | null | undefined, workspace: string, repoSlug: string, branch?: string, path?: string, otherOptions?: FetcherOptions) => Promise<BitbucketGetConfigFileResult>;
78
79
  };
80
+ /**
81
+ * Authenticated `bitbucket` endpoint bound to an Intlayer CMS authenticator.
82
+ *
83
+ * Pass an authenticator created with `createIntlayerCMS`, or omit it to use
84
+ * the build-time configuration (`@intlayer/config/built`).
85
+ */
86
+ declare const bitbucketEndpoint: CMSEndpoint<{
87
+ getAuthUrl: (redirectUri: string, otherOptions?: FetcherOptions) => Promise<BitbucketGetAuthUrlResult>;
88
+ authenticate: (code: string, otherOptions?: FetcherOptions) => Promise<BitbucketAuthCallbackResult>;
89
+ getRepositories: (token?: string | null, otherOptions?: FetcherOptions) => Promise<BitbucketListReposResult>;
90
+ checkIntlayerConfig: (token: string | null | undefined, workspace: string, repoSlug: string, branch?: string, otherOptions?: FetcherOptions) => Promise<BitbucketCheckConfigResult>;
91
+ getConfigFile: (token: string | null | undefined, workspace: string, repoSlug: string, branch?: string, path?: string, otherOptions?: FetcherOptions) => Promise<BitbucketGetConfigFileResult>;
92
+ }>;
79
93
  //#endregion
80
- export { BitbucketAuthCallbackBody, BitbucketAuthCallbackResult, BitbucketCheckConfigBody, BitbucketCheckConfigResult, BitbucketGetAuthUrlResult, BitbucketGetConfigFileBody, BitbucketGetConfigFileResult, BitbucketListReposResult, BitbucketRepository, getBitbucketAPI };
94
+ export { BitbucketAuthCallbackBody, BitbucketAuthCallbackResult, BitbucketCheckConfigBody, BitbucketCheckConfigResult, BitbucketGetAuthUrlResult, BitbucketGetConfigFileBody, BitbucketGetConfigFileResult, BitbucketListReposResult, BitbucketRepository, bitbucketEndpoint, getBitbucketAPI };
81
95
  //# sourceMappingURL=bitbucket.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"bitbucket.d.ts","names":[],"sources":["../../../src/getIntlayerAPI/bitbucket.ts"],"mappings":";;;;KAIY,mBAAA;EACV,IAAA;EACA,IAAA;EACA,SA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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,6 +1,7 @@
1
1
  import { FetcherOptions } from "../fetcher.js";
2
- import { AddDictionaryBody, DeleteDictionaryParam, GetDictionariesParams, GetDictionaryParams, GetDictionaryQuery, PushDictionariesBody, UpdateDictionaryBody } from "@intlayer/backend";
2
+ import { CMSEndpoint } from "../cms/createIntlayerCMS.js";
3
3
  import { IntlayerConfig } from "@intlayer/types/config";
4
+ import { AddDictionaryBody, DeleteDictionaryParam, GetDictionariesParams, GetDictionaryParams, GetDictionaryQuery, PushDictionariesBody, UpdateDictionaryBody } from "@intlayer/backend";
4
5
 
5
6
  //#region src/getIntlayerAPI/dictionary.d.ts
6
7
  declare const getDictionaryAPI: (authAPIOptions?: FetcherOptions, intlayerConfig?: IntlayerConfig) => {
@@ -13,6 +14,22 @@ declare const getDictionaryAPI: (authAPIOptions?: FetcherOptions, intlayerConfig
13
14
  updateDictionary: (dictionary: UpdateDictionaryBody, otherOptions?: FetcherOptions) => Promise<UpdateDictionaryResult>;
14
15
  deleteDictionary: (id: DeleteDictionaryParam["dictionaryId"], otherOptions?: FetcherOptions) => Promise<DeleteDictionaryResult>;
15
16
  };
17
+ /**
18
+ * Authenticated `dictionary` endpoint bound to an Intlayer CMS authenticator.
19
+ *
20
+ * Pass an authenticator created with `createIntlayerCMS`, or omit it to use
21
+ * the build-time configuration (`@intlayer/config/built`).
22
+ */
23
+ declare const dictionaryEndpoint: CMSEndpoint<{
24
+ getDictionaries: (filters?: GetDictionariesParams, otherOptions?: FetcherOptions) => Promise<GetDictionariesResult>;
25
+ getDictionariesKeys: (otherOptions?: FetcherOptions) => Promise<GetDictionariesKeysResult>;
26
+ getDictionariesUpdateTimestamp: (otherOptions?: FetcherOptions) => Promise<GetDictionariesUpdateTimestampResult>;
27
+ getDictionary: (dictionaryKey: GetDictionaryParams["dictionaryKey"], version?: GetDictionaryQuery["version"], otherOptions?: FetcherOptions) => Promise<GetDictionaryResult>;
28
+ pushDictionaries: (dictionaries: PushDictionariesBody["dictionaries"], otherOptions?: FetcherOptions) => Promise<PushDictionariesResult>;
29
+ addDictionary: (body: AddDictionaryBody, otherOptions?: FetcherOptions) => Promise<AddDictionaryResult>;
30
+ updateDictionary: (dictionary: UpdateDictionaryBody, otherOptions?: FetcherOptions) => Promise<UpdateDictionaryResult>;
31
+ deleteDictionary: (id: DeleteDictionaryParam["dictionaryId"], otherOptions?: FetcherOptions) => Promise<DeleteDictionaryResult>;
32
+ }>;
16
33
  //#endregion
17
- export { getDictionaryAPI };
34
+ export { dictionaryEndpoint, getDictionaryAPI };
18
35
  //# sourceMappingURL=dictionary.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"dictionary.d.ts","names":[],"sources":["../../../src/getIntlayerAPI/dictionary.ts"],"mappings":";;;;;cAqBa,gBAAA,GACX,cAAA,GAAgB,cAAA,EAChB,cAAA,GAAiB,cAAA;8BAWL,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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AA,sBAAA;AAAA"}
@@ -1,6 +1,8 @@
1
1
  import { FetcherOptions } from "../fetcher.js";
2
+ import { CMSEndpoint } from "../cms/createIntlayerCMS.js";
3
+ import { GetConfigurationResult } from "../packages/intlayer-editor/server/dist/controllers/configuration.controller.js";
4
+ import { GetEditorDictionariesResult, WriteContentDeclarationBody, WriteContentDeclarationResult } from "../packages/intlayer-editor/server/dist/controllers/dictionary.controller.js";
2
5
  import { IntlayerConfig } from "@intlayer/types/config";
3
- import { GetConfigurationResult, GetEditorDictionariesResult, WriteContentDeclarationBody } from "intlayer-editor";
4
6
 
5
7
  //#region src/getIntlayerAPI/editor.d.ts
6
8
  declare const getEditorAPI: (authAPIOptions?: FetcherOptions, intlayerConfig?: IntlayerConfig) => {
@@ -8,6 +10,17 @@ declare const getEditorAPI: (authAPIOptions?: FetcherOptions, intlayerConfig?: I
8
10
  getConfiguration: (otherOptions?: FetcherOptions) => Promise<GetConfigurationResult>;
9
11
  writeDictionary: (body: WriteContentDeclarationBody, otherOptions?: FetcherOptions) => Promise<WriteContentDeclarationResult>;
10
12
  };
13
+ /**
14
+ * Authenticated `editor` endpoint bound to an Intlayer CMS authenticator.
15
+ *
16
+ * Pass an authenticator created with `createIntlayerCMS`, or omit it to use
17
+ * the build-time configuration (`@intlayer/config/built`).
18
+ */
19
+ declare const editorEndpoint: CMSEndpoint<{
20
+ getDictionaries: (otherOptions?: FetcherOptions) => Promise<GetEditorDictionariesResult>;
21
+ getConfiguration: (otherOptions?: FetcherOptions) => Promise<GetConfigurationResult>;
22
+ writeDictionary: (body: WriteContentDeclarationBody, otherOptions?: FetcherOptions) => Promise<WriteContentDeclarationResult>;
23
+ }>;
11
24
  //#endregion
12
- export { getEditorAPI };
25
+ export { editorEndpoint, getEditorAPI };
13
26
  //# sourceMappingURL=editor.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"editor.d.ts","names":[],"sources":["../../../src/getIntlayerAPI/editor.ts"],"mappings":";;;;;cAUa,YAAA,GACX,cAAA,GAAgB,cAAA,EAChB,cAAA,GAAiB,cAAA;mCAyBD,cAAA,KACb,OAAA,CAAQ,2BAAA;oCAhBK,cAAA,KACb,OAAA,CAAQ,sBAAA;0BA8BH,2BAAA,EAA2B,YAAA,GACnB,cAAA,KAAc,OAAA,CAAA,6BAAA;AAAA"}
1
+ {"version":3,"file":"editor.d.ts","names":[],"sources":["../../../src/getIntlayerAPI/editor.ts"],"mappings":";;;;;;;cAWa,YAAA,GACX,cAAA,GAAgB,cAAA,EAChB,cAAA,GAAiB,cAAA;mCAyBD,cAAA,KACb,OAAA,CAAQ,2BAAA;oCAhBK,cAAA,KACb,OAAA,CAAQ,sBAAA;0BA8BH,2BAAA,EAA2B,YAAA,GACnB,cAAA,KAAc,OAAA,CAAA,6BAAA;AAAA;;AA5ChC;;;;;cAqEa,cAAA,EAzBmB,WAAA;mCAjBd,cAAA,KACb,OAAA,CAAQ,2BAAA;oCAhBK,cAAA,KACb,OAAA,CAAQ,sBAAA;0BA8BH,2BAAA,EAA2B,YAAA,GACnB,cAAA,KAAc,OAAA,CAAA,6BAAA;AAAA"}
@@ -1,6 +1,7 @@
1
1
  import { FetcherOptions } from "../fetcher.js";
2
- import { AddEnvironmentBody, MigrateEnvironmentBody, UpdateEnvironmentBody } from "@intlayer/backend";
2
+ import { CMSEndpoint } from "../cms/createIntlayerCMS.js";
3
3
  import { IntlayerConfig } from "@intlayer/types/config";
4
+ import { AddEnvironmentBody, MigrateEnvironmentBody, UpdateEnvironmentBody } from "@intlayer/backend";
4
5
 
5
6
  //#region src/getIntlayerAPI/environment.d.ts
6
7
  declare const getEnvironmentAPI: (authAPIOptions?: FetcherOptions, intlayerConfig?: IntlayerConfig) => {
@@ -11,6 +12,20 @@ declare const getEnvironmentAPI: (authAPIOptions?: FetcherOptions, intlayerConfi
11
12
  resetToProductionEnvironment: (otherOptions?: FetcherOptions) => Promise<ResetToProductionEnvironmentResult>;
12
13
  migrateEnvironment: (body: MigrateEnvironmentBody, otherOptions?: FetcherOptions) => Promise<MigrateEnvironmentResult>;
13
14
  };
15
+ /**
16
+ * Authenticated `environment` endpoint bound to an Intlayer CMS authenticator.
17
+ *
18
+ * Pass an authenticator created with `createIntlayerCMS`, or omit it to use
19
+ * the build-time configuration (`@intlayer/config/built`).
20
+ */
21
+ declare const environmentEndpoint: CMSEndpoint<{
22
+ addEnvironment: (body: AddEnvironmentBody, otherOptions?: FetcherOptions) => Promise<AddEnvironmentResult>;
23
+ updateEnvironment: (environmentId: string, body: UpdateEnvironmentBody, otherOptions?: FetcherOptions) => Promise<UpdateEnvironmentResult>;
24
+ deleteEnvironment: (environmentId: string, otherOptions?: FetcherOptions) => Promise<DeleteEnvironmentResult>;
25
+ selectEnvironment: (environmentId: string, otherOptions?: FetcherOptions) => Promise<SelectEnvironmentResult>;
26
+ resetToProductionEnvironment: (otherOptions?: FetcherOptions) => Promise<ResetToProductionEnvironmentResult>;
27
+ migrateEnvironment: (body: MigrateEnvironmentBody, otherOptions?: FetcherOptions) => Promise<MigrateEnvironmentResult>;
28
+ }>;
14
29
  //#endregion
15
- export { getEnvironmentAPI };
30
+ export { environmentEndpoint, getEnvironmentAPI };
16
31
  //# sourceMappingURL=environment.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"environment.d.ts","names":[],"sources":["../../../src/getIntlayerAPI/environment.ts"],"mappings":";;;;;cAea,iBAAA,GACX,cAAA,GAAgB,cAAA,EAChB,cAAA,GAAiB,cAAA;yBAMT,kBAAA,EAAkB,YAAA,GACV,cAAA,KAAc,OAAA,CAAA,oBAAA;6CAUP,IAAA,EACf,qBAAA,EAAqB,YAAA,GACb,cAAA,KAAc,OAAA,CAAA,uBAAA;6CAUP,YAAA,GACP,cAAA,KAAc,OAAA,CAAA,uBAAA;6CAUP,YAAA,GACP,cAAA,KAAc,OAAA,CAAA,uBAAA;gDAUd,cAAA,KAAc,OAAA,CAAA,kCAAA;6BAUtB,sBAAA,EAAsB,YAAA,GACd,cAAA,KAAc,OAAA,CAAA,wBAAA;AAAA"}
1
+ {"version":3,"file":"environment.d.ts","names":[],"sources":["../../../src/getIntlayerAPI/environment.ts"],"mappings":";;;;;;cAgBa,iBAAA,GACX,cAAA,GAAgB,cAAA,EAChB,cAAA,GAAiB,cAAA;yBAMT,kBAAA,EAAkB,YAAA,GACV,cAAA,KAAc,OAAA,CAAA,oBAAA;6CAUP,IAAA,EACf,qBAAA,EAAqB,YAAA,GACb,cAAA,KAAc,OAAA,CAAA,uBAAA;6CAUP,YAAA,GACP,cAAA,KAAc,OAAA,CAAA,uBAAA;6CAUP,YAAA,GACP,cAAA,KAAc,OAAA,CAAA,uBAAA;gDAUd,cAAA,KAAc,OAAA,CAAA,kCAAA;6BAUtB,sBAAA,EAAsB,YAAA,GACd,cAAA,KAAc,OAAA,CAAA,wBAAA;AAAA;;;;;;;cAyBnB,mBAAA,EAzBmB,WAAA;yBAxDtB,kBAAA,EAAkB,YAAA,GACV,cAAA,KAAc,OAAA,CAAA,oBAAA;6CAUP,IAAA,EACf,qBAAA,EAAqB,YAAA,GACb,cAAA,KAAc,OAAA,CAAA,uBAAA;6CAUP,YAAA,GACP,cAAA,KAAc,OAAA,CAAA,uBAAA;6CAUP,YAAA,GACP,cAAA,KAAc,OAAA,CAAA,uBAAA;gDAUd,cAAA,KAAc,OAAA,CAAA,kCAAA;6BAUtB,sBAAA,EAAsB,YAAA,GACd,cAAA,KAAc,OAAA,CAAA,wBAAA;AAAA"}
@@ -1,4 +1,5 @@
1
1
  import { FetcherOptions } from "../fetcher.js";
2
+ import { CMSEndpoint } from "../cms/createIntlayerCMS.js";
2
3
  import { IntlayerConfig } from "@intlayer/types/config";
3
4
 
4
5
  //#region src/getIntlayerAPI/github.d.ts
@@ -66,6 +67,20 @@ declare const getGithubAPI: (authAPIOptions?: FetcherOptions, intlayerConfig?: I
66
67
  getConfigFile: (token: string | null | undefined, owner: string, repository: string, branch?: string, path?: string, otherOptions?: FetcherOptions) => Promise<GitHubGetConfigFileResult>;
67
68
  getToken: (otherOptions?: FetcherOptions) => Promise<GitHubGetTokenResult>;
68
69
  };
70
+ /**
71
+ * Authenticated `github` endpoint bound to an Intlayer CMS authenticator.
72
+ *
73
+ * Pass an authenticator created with `createIntlayerCMS`, or omit it to use
74
+ * the build-time configuration (`@intlayer/config/built`).
75
+ */
76
+ declare const githubEndpoint: CMSEndpoint<{
77
+ getAuthUrl: (redirectUri: string, otherOptions?: FetcherOptions) => Promise<GitHubGetAuthUrlResult>;
78
+ authenticate: (code: string, otherOptions?: FetcherOptions) => Promise<GitHubAuthCallbackResult>;
79
+ getRepositories: (token?: string | null, otherOptions?: FetcherOptions) => Promise<GitHubListReposResult>;
80
+ checkIntlayerConfig: (token: string | null | undefined, owner: string, repository: string, branch?: string, otherOptions?: FetcherOptions) => Promise<GitHubCheckConfigResult>;
81
+ getConfigFile: (token: string | null | undefined, owner: string, repository: string, branch?: string, path?: string, otherOptions?: FetcherOptions) => Promise<GitHubGetConfigFileResult>;
82
+ getToken: (otherOptions?: FetcherOptions) => Promise<GitHubGetTokenResult>;
83
+ }>;
69
84
  //#endregion
70
- export { GitHubAuthCallbackBody, GitHubAuthCallbackResult, GitHubCheckConfigBody, GitHubCheckConfigResult, GitHubGetAuthUrlResult, GitHubGetConfigFileBody, GitHubGetConfigFileResult, GitHubGetTokenResult, GitHubListReposResult, GitHubRepository, getGithubAPI };
85
+ export { GitHubAuthCallbackBody, GitHubAuthCallbackResult, GitHubCheckConfigBody, GitHubCheckConfigResult, GitHubGetAuthUrlResult, GitHubGetConfigFileBody, GitHubGetConfigFileResult, GitHubGetTokenResult, GitHubListReposResult, GitHubRepository, getGithubAPI, githubEndpoint };
71
86
  //# sourceMappingURL=github.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"github.d.ts","names":[],"sources":["../../../src/getIntlayerAPI/github.ts"],"mappings":";;;;KAIY,gBAAA;EACV,EAAA;EACA,IAAA;EACA,SAAA;EACA,KAAA;IACE,KAAA;IACA,EAAA;EAAA;EAEF,Q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YAAA,GACE,cAAA,KAAc,OAAA,CAAA,yBAAA;4BAeQ,cAAA,KAAc,OAAA,CAAA,oBAAA;AAAA"}
@@ -1,4 +1,5 @@
1
1
  import { FetcherOptions } from "../fetcher.js";
2
+ import { CMSEndpoint } from "../cms/createIntlayerCMS.js";
2
3
  import { IntlayerConfig } from "@intlayer/types/config";
3
4
 
4
5
  //#region src/getIntlayerAPI/gitlab.d.ts
@@ -65,6 +66,19 @@ declare const getGitlabAPI: (authAPIOptions?: FetcherOptions, intlayerConfig?: I
65
66
  checkIntlayerConfig: (token: string | null | undefined, projectId: number, branch?: string, instanceUrl?: string, otherOptions?: FetcherOptions) => Promise<GitLabCheckConfigResult>;
66
67
  getConfigFile: (token: string | null | undefined, projectId: number, branch?: string, path?: string, instanceUrl?: string, otherOptions?: FetcherOptions) => Promise<GitLabGetConfigFileResult>;
67
68
  };
69
+ /**
70
+ * Authenticated `gitlab` endpoint bound to an Intlayer CMS authenticator.
71
+ *
72
+ * Pass an authenticator created with `createIntlayerCMS`, or omit it to use
73
+ * the build-time configuration (`@intlayer/config/built`).
74
+ */
75
+ declare const gitlabEndpoint: CMSEndpoint<{
76
+ getAuthUrl: (redirectUri: string, instanceUrl?: string, otherOptions?: FetcherOptions) => Promise<GitLabGetAuthUrlResult>;
77
+ authenticate: (code: string, redirectUri: string, instanceUrl?: string, otherOptions?: FetcherOptions) => Promise<GitLabAuthCallbackResult>;
78
+ getProjects: (token?: string | null, instanceUrl?: string, otherOptions?: FetcherOptions) => Promise<GitLabListProjectsResult>;
79
+ checkIntlayerConfig: (token: string | null | undefined, projectId: number, branch?: string, instanceUrl?: string, otherOptions?: FetcherOptions) => Promise<GitLabCheckConfigResult>;
80
+ getConfigFile: (token: string | null | undefined, projectId: number, branch?: string, path?: string, instanceUrl?: string, otherOptions?: FetcherOptions) => Promise<GitLabGetConfigFileResult>;
81
+ }>;
68
82
  //#endregion
69
- export { GitLabAuthCallbackBody, GitLabAuthCallbackResult, GitLabCheckConfigBody, GitLabCheckConfigResult, GitLabGetAuthUrlResult, GitLabGetConfigFileBody, GitLabGetConfigFileResult, GitLabListProjectsResult, GitLabProject, getGitlabAPI };
83
+ export { GitLabAuthCallbackBody, GitLabAuthCallbackResult, GitLabCheckConfigBody, GitLabCheckConfigResult, GitLabGetAuthUrlResult, GitLabGetConfigFileBody, GitLabGetConfigFileResult, GitLabListProjectsResult, GitLabProject, getGitlabAPI, gitlabEndpoint };
70
84
  //# sourceMappingURL=gitlab.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"gitlab.d.ts","names":[],"sources":["../../../src/getIntlayerAPI/gitlab.ts"],"mappings":";;;;KAIY,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,GAAgB,cAAA,EAChB,cAAA,GAAiB,cAAA;oCAYI,WAAA,WACC,YAAA,GACN,cAAA,KAAc,OAAA,CAAA,sBAAA;+BAkBhB,WAAA,UACO,WAAA,WACC,YAAA,GACN,cAAA,KAAc,OAAA,CAAA,wBAAA;uCA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,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;;;;;;;cAiCnB,cAAA,EAjCmB,WAAA;oCApGT,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,5 +1,4 @@
1
1
  import { FetcherOptions } from "../fetcher.js";
2
- import { getAiAPI } from "./ai.js";
3
2
  import { getAssetAPI } from "./asset.js";
4
3
  import { getAuditAPI } from "./audit.js";
5
4
  import { getBitbucketAPI } from "./bitbucket.js";
@@ -19,6 +18,7 @@ import { getStripeAPI } from "./stripe.js";
19
18
  import { getTagAPI } from "./tag.js";
20
19
  import { getTranslateAPI } from "./translate.js";
21
20
  import { getUserAPI } from "./user.js";
21
+ import { getAiAPI } from "./ai.js";
22
22
  import { IntlayerConfig } from "@intlayer/types/config";
23
23
 
24
24
  //#region src/getIntlayerAPI/index.d.ts