@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,13 @@
1
- import { t as getNewsletterAPI } from "../newsletter-Dg_6QDY_.js";
2
- export { getNewsletterAPI };
1
+ import { FetcherOptions } from "../fetcher.js";
2
+ import { NewsletterSubscriptionBody, NewsletterUnsubscriptionBody } from "@intlayer/backend";
3
+ import { IntlayerConfig } from "@intlayer/types/config";
4
+
5
+ //#region src/getIntlayerAPI/newsletter.d.ts
6
+ declare const getNewsletterAPI: (authAPIOptions: FetcherOptions, intlayerConfig: IntlayerConfig) => {
7
+ subscribeToNewsletter: (body: NewsletterSubscriptionBody, otherOptions?: FetcherOptions) => Promise<NewsletterSubscriptionResult>;
8
+ unsubscribeFromNewsletter: (body: NewsletterUnsubscriptionBody, otherOptions?: FetcherOptions) => Promise<NewsletterSubscriptionResult>;
9
+ getNewsletterStatus: (otherOptions?: FetcherOptions) => Promise<NewsletterSubscriptionResult>;
10
+ };
11
+ //#endregion
12
+ export { getNewsletterAPI };
13
+ //# sourceMappingURL=newsletter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"newsletter.d.ts","names":[],"sources":["../../../src/getIntlayerAPI/newsletter.ts"],"mappings":";;;;;cAQa,gBAAA,GACX,cAAA,EAAgB,cAAA,EAChB,cAAA,EAAgB,cAAA;gCAYR,0BAAA,EAA0B,YAAA,GAClB,cAAA,KAAc,OAAA,CAAA,4BAAA;oCAkBtB,4BAAA,EAA4B,YAAA,GACpB,cAAA,KAAc,OAAA,CAAA,4BAAA;uCAgBmB,cAAA,KAAc,OAAA,CAAA,4BAAA;AAAA"}
@@ -1,2 +1,10 @@
1
- import { t as getOAuthAPI } from "../oAuth-DfQmGzLO.js";
2
- export { getOAuthAPI };
1
+ import { FetcherOptions } from "../fetcher.js";
2
+ import { IntlayerConfig } from "@intlayer/types/config";
3
+
4
+ //#region src/getIntlayerAPI/oAuth.d.ts
5
+ declare const getOAuthAPI: (intlayerConfig: IntlayerConfig) => {
6
+ getOAuth2AccessToken: (otherOptions?: FetcherOptions) => Promise<GetOAuth2TokenResult>;
7
+ };
8
+ //#endregion
9
+ export { getOAuthAPI };
10
+ //# sourceMappingURL=oAuth.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"oAuth.d.ts","names":[],"sources":["../../../src/getIntlayerAPI/oAuth.ts"],"mappings":";;;;cAOa,WAAA,GAAe,cAAA,EAAgB,cAAA;wCAQQ,cAAA,KAAc,OAAA,CAAA,oBAAA;AAAA"}
@@ -1,2 +1,20 @@
1
- import { t as getOrganizationAPI } from "../organization-CNkB8dnj.js";
2
- export { getOrganizationAPI };
1
+ import { FetcherOptions } from "../fetcher.js";
2
+ import { AddOrganizationBody, AddOrganizationMemberBody, GetOrganizationParam, GetOrganizationsParams, SelectOrganizationParam, UpdateOrganizationBody, UpdateOrganizationMembersBody } from "@intlayer/backend";
3
+ import { IntlayerConfig } from "@intlayer/types/config";
4
+
5
+ //#region src/getIntlayerAPI/organization.d.ts
6
+ declare const getOrganizationAPI: (authAPIOptions: FetcherOptions, intlayerConfig: IntlayerConfig) => {
7
+ getOrganizations: (filters?: GetOrganizationsParams, otherOptions?: FetcherOptions) => Promise<GetOrganizationsResult>;
8
+ getOrganization: (organizationId: GetOrganizationParam["organizationId"], otherOptions?: FetcherOptions) => Promise<GetOrganizationResult>;
9
+ addOrganization: (organization: AddOrganizationBody, otherOptions?: FetcherOptions) => Promise<AddOrganizationResult>;
10
+ addOrganizationMember: (body: AddOrganizationMemberBody, otherOptions?: FetcherOptions) => Promise<AddOrganizationMemberResult>;
11
+ updateOrganization: (organization: UpdateOrganizationBody, otherOptions?: FetcherOptions) => Promise<UpdateOrganizationResult>;
12
+ updateOrganizationMembers: (body: UpdateOrganizationMembersBody, otherOptions?: FetcherOptions) => Promise<UpdateOrganizationMembersResult>;
13
+ updateOrganizationMembersById: (organizationId: string, body: UpdateOrganizationMembersBody, otherOptions?: FetcherOptions) => Promise<UpdateOrganizationMembersResult>;
14
+ deleteOrganization: (otherOptions?: FetcherOptions) => Promise<DeleteOrganizationResult>;
15
+ selectOrganization: (organizationId: SelectOrganizationParam["organizationId"], otherOptions?: FetcherOptions) => Promise<SelectOrganizationResult>;
16
+ unselectOrganization: (otherOptions?: FetcherOptions) => Promise<UnselectOrganizationResult>;
17
+ };
18
+ //#endregion
19
+ export { getOrganizationAPI };
20
+ //# sourceMappingURL=organization.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"organization.d.ts","names":[],"sources":["../../../src/getIntlayerAPI/organization.ts"],"mappings":";;;;;cAqBa,kBAAA,GACX,cAAA,EAAgB,cAAA,EAChB,cAAA,EAAgB,cAAA;+BAWJ,sBAAA,EAAsB,YAAA,GAClB,cAAA,KAAc,OAAA,CAAA,sBAAA;oCAkBZ,oBAAA,oBAAsC,YAAA,GACxC,cAAA,KAAc,OAAA,CAAA,qBAAA;kCAad,mBAAA,EAAmB,YAAA,GACnB,cAAA,KAAc,OAAA,CAAA,qBAAA;gCAyEtB,yBAAA,EAAyB,YAAA,GACjB,cAAA,KAAc,OAAA,CAAA,2BAAA;qCAzDd,sBAAA,EAAsB,YAAA,GACtB,cAAA,KAAc,OAAA,CAAA,wBAAA;oCAiBtB,6BAAA,EAA6B,YAAA,GACrB,cAAA,KAAc,OAAA,CAAA,+BAAA;0DAkBN,IAAA,EAChB,6BAAA,EAA6B,YAAA,GACrB,cAAA,KAAc,OAAA,CAAA,+BAAA;sCAkCkB,cAAA,KAAc,OAAA,CAAA,wBAAA;uCAe5C,uBAAA,oBAAyC,YAAA,GAC3C,cAAA,KAAc,OAAA,CAAA,wBAAA;wCAeoB,cAAA,KAAc,OAAA,CAAA,0BAAA;AAAA"}
@@ -1,2 +1,25 @@
1
- import { t as getProjectAPI } from "../project-DKLgh9Mz.js";
2
- export { getProjectAPI };
1
+ import { FetcherOptions } from "../fetcher.js";
2
+ import { AddNewAccessKeyBody, AddProjectBody, DeleteAccessKeyBody, GetProjectsParams, PushProjectConfigurationBody, RefreshAccessKeyBody, SelectProjectParam, TriggerWebhookBody, UpdateProjectBody, UpdateProjectMembersBody } from "@intlayer/backend";
3
+ import { IntlayerConfig } from "@intlayer/types/config";
4
+
5
+ //#region src/getIntlayerAPI/project.d.ts
6
+ declare const getProjectAPI: (authAPIOptions: FetcherOptions, intlayerConfig: IntlayerConfig) => {
7
+ getProjects: (filters?: GetProjectsParams, otherOptions?: FetcherOptions) => Promise<GetProjectsResult>;
8
+ addProject: (project: AddProjectBody, otherOptions?: FetcherOptions) => Promise<AddProjectResult>;
9
+ updateProject: (project: UpdateProjectBody, otherOptions?: FetcherOptions) => Promise<UpdateProjectResult>;
10
+ updateProjectMembers: (body: UpdateProjectMembersBody, otherOptions?: FetcherOptions) => Promise<UpdateProjectMembersResult>;
11
+ pushProjectConfiguration: (projectConfiguration: PushProjectConfigurationBody, otherOptions?: FetcherOptions) => Promise<PushProjectConfigurationResult>;
12
+ deleteProject: (otherOptions?: FetcherOptions) => Promise<DeleteProjectResult>;
13
+ selectProject: (projectId: SelectProjectParam["projectId"], otherOptions?: FetcherOptions) => Promise<SelectProjectResult>;
14
+ unselectProject: (otherOptions?: FetcherOptions) => Promise<UnselectProjectResult>;
15
+ addNewAccessKey: (accessKey: AddNewAccessKeyBody, otherOptions?: FetcherOptions) => Promise<AddNewAccessKeyResponse>;
16
+ deleteAccessKey: (clientId: DeleteAccessKeyBody["clientId"], otherOptions?: FetcherOptions) => Promise<DeleteAccessKeyResponse>;
17
+ refreshAccessKey: (clientId: RefreshAccessKeyBody["clientId"], otherOptions?: FetcherOptions) => Promise<RefreshAccessKeyResponse>;
18
+ triggerBuild: (otherOptions?: FetcherOptions) => Promise<TriggerBuildResult>;
19
+ triggerWebhook: (webhookIndex: TriggerWebhookBody["webhookIndex"], otherOptions?: FetcherOptions) => Promise<TriggerWebhookResult>;
20
+ getCIConfig: (otherOptions?: FetcherOptions) => Promise<ResponseData<any>>;
21
+ pushCIConfig: (otherOptions?: FetcherOptions) => Promise<ResponseData<any>>;
22
+ };
23
+ //#endregion
24
+ export { getProjectAPI };
25
+ //# sourceMappingURL=project.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"project.d.ts","names":[],"sources":["../../../src/getIntlayerAPI/project.ts"],"mappings":";;;;;cA6Ba,aAAA,GACX,cAAA,EAAgB,cAAA,EAChB,cAAA,EAAgB,cAAA;0BAWJ,iBAAA,EAAiB,YAAA,GACb,cAAA,KAAc,OAAA,CAAA,iBAAA;wBAkBnB,cAAA,EAAc,YAAA,GACT,cAAA,KAAc,OAAA,CAAA,gBAAA;2BAiBnB,iBAAA,EAAiB,YAAA,GACZ,cAAA,KAAc,OAAA,CAAA,mBAAA;+BAiBtB,wBAAA,EAAwB,YAAA,GAChB,cAAA,KAAc,OAAA,CAAA,0BAAA;mDAgBN,4BAAA,EAA4B,YAAA,GACpC,cAAA,KAAc,OAAA,CAAA,8BAAA;iCAgBa,cAAA,KAAc,OAAA,CAAA,mBAAA;6BAe5C,kBAAA,eAA+B,YAAA,GAC5B,cAAA,KAAc,OAAA,CAAA,mBAAA;mCAee,cAAA,KAAc,OAAA,CAAA,qBAAA;+BAiB9C,mBAAA,EAAmB,YAAA,GAChB,cAAA,KAAc,OAAA,CAAA,uBAAA;8BAmBlB,mBAAA,cAA+B,YAAA,GAC3B,cAAA,KAAc,OAAA,CAAA,uBAAA;+BAmBlB,oBAAA,cAAgC,YAAA,GAC5B,cAAA,KAAc,OAAA,CAAA,wBAAA;gCAiBY,cAAA,KAAc,OAAA,CAAA,kBAAA;iCAiBxC,kBAAA,kBAAkC,YAAA,GAClC,cAAA,KAAc,OAAA,CAAA,oBAAA;+BAiBW,cAAA,KAAc,OAAA,CAAA,YAAA;gCAeb,cAAA,KAAc,OAAA,CAAA,YAAA;AAAA"}
@@ -1,2 +1,11 @@
1
- import { t as getSearchAPI } from "../search-CVbo1OMK.js";
2
- export { getSearchAPI };
1
+ import { FetcherOptions } from "../fetcher.js";
2
+ import { SearchDocUtilParams } from "@intlayer/backend";
3
+ import { IntlayerConfig } from "@intlayer/types/config";
4
+
5
+ //#region src/getIntlayerAPI/search.d.ts
6
+ declare const getSearchAPI: (authAPIOptions: FetcherOptions, intlayerConfig: IntlayerConfig) => {
7
+ searchDoc: (params?: SearchDocUtilParams, otherOptions?: FetcherOptions) => Promise<SearchDocUtilResult>;
8
+ };
9
+ //#endregion
10
+ export { getSearchAPI };
11
+ //# sourceMappingURL=search.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"search.d.ts","names":[],"sources":["../../../src/getIntlayerAPI/search.ts"],"mappings":";;;;;cAOa,YAAA,GACX,cAAA,EAAgB,cAAA,EAChB,cAAA,EAAgB,cAAA;uBAYL,mBAAA,EAAmB,YAAA,GACd,cAAA,KAAc,OAAA,CAAA,mBAAA;AAAA"}
@@ -1,2 +1,33 @@
1
- import { n as ShowcaseProjectsQuery, r as getShowcaseProjectAPI, t as OtherShowcaseProjectsQuery } from "../showcaseProject-1zcpB4aW.js";
2
- export { OtherShowcaseProjectsQuery, ShowcaseProjectsQuery, getShowcaseProjectAPI };
1
+ import { FetcherOptions } from "../fetcher.js";
2
+ import { GetShowcaseProjectByIdParams, SubmitShowcaseProjectBody, ToggleShowcaseDownvoteBody, ToggleShowcaseUpvoteBody, UpdateShowcaseProjectBody } from "@intlayer/backend";
3
+ import { IntlayerConfig } from "@intlayer/types/config";
4
+
5
+ //#region src/getIntlayerAPI/showcaseProject.d.ts
6
+ type ShowcaseProjectsQuery = {
7
+ page?: number;
8
+ pageSize?: number;
9
+ search?: string;
10
+ selectedUseCases?: string[];
11
+ isOpenSource?: boolean;
12
+ };
13
+ type OtherShowcaseProjectsQuery = {
14
+ excludeId: string;
15
+ limit?: number;
16
+ };
17
+ declare const getShowcaseProjectAPI: (authAPIOptions: FetcherOptions, intlayerConfig: IntlayerConfig) => {
18
+ getShowcaseProjects: (query?: ShowcaseProjectsQuery, otherOptions?: FetcherOptions) => Promise<GetShowcaseProjectsResult>;
19
+ getShowcaseProjectById: (projectId: GetShowcaseProjectByIdParams["projectId"], otherOptions?: FetcherOptions) => Promise<GetShowcaseProjectByIdResult>;
20
+ getOtherShowcaseProjects: (query: OtherShowcaseProjectsQuery, otherOptions?: FetcherOptions) => Promise<GetOtherShowcaseProjectsResult>;
21
+ submitShowcaseProject: (body: SubmitShowcaseProjectBody, otherOptions?: FetcherOptions) => Promise<SubmitShowcaseProjectResult>;
22
+ toggleShowcaseUpvote: (body: ToggleShowcaseUpvoteBody, otherOptions?: FetcherOptions) => Promise<ToggleShowcaseUpvoteResult>;
23
+ toggleShowcaseDownvote: (body: ToggleShowcaseDownvoteBody, otherOptions?: FetcherOptions) => Promise<ToggleShowcaseDownvoteResult>;
24
+ deleteShowcaseProject: (projectId: GetShowcaseProjectByIdParams["projectId"], otherOptions?: FetcherOptions) => Promise<{
25
+ data: {
26
+ success: boolean;
27
+ };
28
+ }>;
29
+ updateShowcaseProject: (projectId: GetShowcaseProjectByIdParams["projectId"], body: UpdateShowcaseProjectBody, otherOptions?: FetcherOptions) => Promise<UpdateShowcaseProjectResult>;
30
+ };
31
+ //#endregion
32
+ export { OtherShowcaseProjectsQuery, ShowcaseProjectsQuery, getShowcaseProjectAPI };
33
+ //# sourceMappingURL=showcaseProject.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"showcaseProject.d.ts","names":[],"sources":["../../../src/getIntlayerAPI/showcaseProject.ts"],"mappings":";;;;;KAmBY,qBAAA;EACV,IAAA;EACA,QAAA;EACA,MAAA;EACA,gBAAA;EACA,YAAA;AAAA;AAAA,KAGU,0BAAA;EACV,SAAA;EACA,KAAA;AAAA;AAAA,cAGW,qBAAA,GACX,cAAA,EAAgB,cAAA,EAChB,cAAA,EAAgB,cAAA;gCAON,qBAAA,EAAqB,YAAA,GACf,cAAA,KAAc,OAAA,CAAA,yBAAA;sCAoBjB,4BAAA,eAAyC,YAAA,GACtC,cAAA,KAAc,OAAA,CAAA,4BAAA;oCAUrB,0BAAA,EAA0B,YAAA,GACnB,cAAA,KAAc,OAAA,CAAA,8BAAA;gCAatB,yBAAA,EAAyB,YAAA,GACjB,cAAA,KAAc,OAAA,CAAA,2BAAA;+BAUtB,wBAAA,EAAwB,YAAA,GAChB,cAAA,KAAc,OAAA,CAAA,0BAAA;iCAUtB,0BAAA,EAA0B,YAAA,GAClB,cAAA,KAAc,OAAA,CAAA,4BAAA;qCAUjB,4BAAA,eAAyC,YAAA,GACtC,cAAA,KAAc,OAAA;;MAEJ,OAAA;IAAA;EAAA;qCAQb,4BAAA,eAAyC,IAAA,EAC9C,yBAAA,EAAyB,YAAA,GACjB,cAAA,KAAc,OAAA,CAAA,2BAAA;AAAA"}
@@ -1,2 +1,13 @@
1
- import { t as getStripeAPI } from "../stripe-vRfMjdAc.js";
2
- export { getStripeAPI };
1
+ import { FetcherOptions } from "../fetcher.js";
2
+ import { GetCheckoutSessionBody, GetPricingBody } from "@intlayer/backend";
3
+ import { IntlayerConfig } from "@intlayer/types/config";
4
+
5
+ //#region src/getIntlayerAPI/stripe.d.ts
6
+ declare const getStripeAPI: (authAPIOptions: FetcherOptions, intlayerConfig: IntlayerConfig) => {
7
+ getPricing: (body?: GetPricingBody, otherOptions?: FetcherOptions) => Promise<GetPricingResult>;
8
+ getSubscription: (body?: GetCheckoutSessionBody, otherOptions?: FetcherOptions) => Promise<GetCheckoutSessionResult>;
9
+ cancelSubscription: (otherOptions?: FetcherOptions) => Promise<GetCheckoutSessionResult>;
10
+ };
11
+ //#endregion
12
+ export { getStripeAPI };
13
+ //# sourceMappingURL=stripe.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stripe.d.ts","names":[],"sources":["../../../src/getIntlayerAPI/stripe.ts"],"mappings":";;;;;cASa,YAAA,GACX,cAAA,EAAgB,cAAA,EAChB,cAAA,EAAgB,cAAA;sBAWP,cAAA,EAAc,YAAA,GACP,cAAA,KAAc,OAAA,CAAA,gBAAA;2BAiBrB,sBAAA,EAAsB,YAAA,GACf,cAAA,KAAc,OAAA,CAAA,wBAAA;sCAgBkB,cAAA,KAAc,OAAA,CAAA,wBAAA;AAAA"}
@@ -1,2 +1,14 @@
1
- import { t as getTagAPI } from "../tag-0oc2-9J5.js";
2
- export { getTagAPI };
1
+ import { FetcherOptions } from "../fetcher.js";
2
+ import { AddTagBody, DeleteTagParams, GetTagsParams, UpdateTagBody, UpdateTagParams } from "@intlayer/backend";
3
+ import { IntlayerConfig } from "@intlayer/types/config";
4
+
5
+ //#region src/getIntlayerAPI/tag.d.ts
6
+ declare const getTagAPI: (authAPIOptions: FetcherOptions, intlayerConfig: IntlayerConfig) => {
7
+ getTags: (filters?: GetTagsParams, otherOptions?: FetcherOptions) => Promise<GetTagsResult>;
8
+ addTag: (tag: AddTagBody, otherOptions?: FetcherOptions) => Promise<AddTagResult>;
9
+ updateTag: (tagId: UpdateTagParams["tagId"], tag: UpdateTagBody, otherOptions?: FetcherOptions) => Promise<UpdateTagResult>;
10
+ deleteTag: (tagId: DeleteTagParams["tagId"], otherOptions?: FetcherOptions) => Promise<DeleteTagResult>;
11
+ };
12
+ //#endregion
13
+ export { getTagAPI };
14
+ //# sourceMappingURL=tag.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tag.d.ts","names":[],"sources":["../../../src/getIntlayerAPI/tag.ts"],"mappings":";;;;;cAca,SAAA,GACX,cAAA,EAAgB,cAAA,EAChB,cAAA,EAAgB,cAAA;sBAWJ,aAAA,EAAa,YAAA,GACT,cAAA,KAAc,OAAA,CAAA,aAAA;gBAiBH,UAAA,EAAU,YAAA,GAAgB,cAAA,KAAc,OAAA,CAAA,YAAA;qBAgB1D,eAAA,WAAwB,GAAA,EAC1B,aAAA,EAAa,YAAA,GACJ,cAAA,KAAc,OAAA,CAAA,eAAA;qBAiBrB,eAAA,WAAwB,YAAA,GAEjB,cAAA,KAAc,OAAA,CAAA,eAAA;AAAA"}
@@ -1,2 +1,22 @@
1
- import { t as getUserAPI } from "../user-BVi1Ho0Q.js";
2
- export { getUserAPI };
1
+ import { FetcherOptions } from "../fetcher.js";
2
+ import { CreateUserBody, GetUserByEmailParams, GetUserByIdParams, GetUsersParams, UpdateUserBody, UserAPI } from "@intlayer/backend";
3
+ import { IntlayerConfig } from "@intlayer/types/config";
4
+
5
+ //#region src/getIntlayerAPI/user.d.ts
6
+ type GetUserByAccountParams = {
7
+ providerAccountId: string;
8
+ provider: string;
9
+ };
10
+ declare const getUserAPI: (authAPIOptions: FetcherOptions, intlayerConfig: IntlayerConfig) => {
11
+ createUser: (user: CreateUserBody, otherOptions?: FetcherOptions) => Promise<CreateUserResult>;
12
+ getUsers: (filters?: GetUsersParams, otherOptions?: FetcherOptions) => Promise<GetUsersResult>;
13
+ getUserById: (userId: GetUserByIdParams["userId"], otherOptions?: FetcherOptions) => Promise<GetUserByIdResult>;
14
+ getUserByAccount: (providerAccountId: GetUserByAccountParams["providerAccountId"], provider: GetUserByAccountParams["provider"], otherOptions?: FetcherOptions) => Promise<any>;
15
+ getUserByEmail: (email: GetUserByEmailParams["email"], otherOptions?: FetcherOptions) => Promise<GetUserByEmailResult>;
16
+ updateUser: (user: UpdateUserBody, otherOptions?: FetcherOptions) => Promise<UpdateUserResult>;
17
+ deleteUser: (userId: string, otherOptions?: FetcherOptions) => Promise<UpdateUserResult>;
18
+ getVerifyEmailStatusURL: (userId: string | UserAPI["id"]) => string;
19
+ };
20
+ //#endregion
21
+ export { getUserAPI };
22
+ //# sourceMappingURL=user.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"user.d.ts","names":[],"sources":["../../../src/getIntlayerAPI/user.ts"],"mappings":";;;;;KAgBK,sBAAA;EAA2B,iBAAA;EAA2B,QAAA;AAAA;AAAA,cAG9C,UAAA,GACX,cAAA,EAAgB,cAAA,EAChB,cAAA,EAAgB,cAAA;qBAuFR,cAAA,EAAc,YAAA,GACN,cAAA,KAAc,OAAA,CAAA,gBAAA;uBA5ElB,cAAA,EAAc,YAAA,GACV,cAAA,KAAc,OAAA,CAAA,cAAA;wBAmBpB,iBAAA,YAA2B,YAAA,GACrB,cAAA,KAAc,OAAA,CAAA,iBAAA;wCAmCT,sBAAA,uBAA2C,QAAA,EACpD,sBAAA,cAAkC,YAAA,GAC9B,cAAA,KAAc,OAAA;0BApBrB,oBAAA,WAA6B,YAAA,GACtB,cAAA,KAAc,OAAA,CAAA,oBAAA;qBAuDtB,cAAA,EAAc,YAAA,GACN,cAAA,KAAc,OAAA,CAAA,gBAAA;+BAkBd,YAAA,GACA,cAAA,KAAc,OAAA,CAAA,gBAAA;6CAgBoB,OAAA;AAAA"}
@@ -1,21 +1,21 @@
1
- import { t as fetchDistantDictionaries } from "./fetchDistantDictionaries-CLQEr6NS.js";
2
- import { t as fetchDistantDictionary } from "./fetchDistantDictionary-C7esreMl.js";
1
+ import { fetchDistantDictionaries } from "./distantDictionary/fetchDistantDictionaries.js";
2
+ import { fetchDistantDictionary } from "./distantDictionary/fetchDistantDictionary.js";
3
3
  import { FetcherOptions, fetcher, fetcherOptions } from "./fetcher.js";
4
- import { i as getAiAPI, n as AskDocQuestionResult, r as AutocompleteBody, t as AskDocQuestionBody } from "./ai-FbIMwui1.js";
5
- 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";
6
- 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";
7
- import { t as getDictionaryAPI } from "./dictionary-W5LSPsxq.js";
8
- import { t as getEditorAPI } from "./editor-DTBh5ovU.js";
9
- 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";
10
- 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";
11
- import { t as getNewsletterAPI } from "./newsletter-Dg_6QDY_.js";
12
- import { t as getOAuthAPI } from "./oAuth-DfQmGzLO.js";
13
- import { t as getOrganizationAPI } from "./organization-CNkB8dnj.js";
14
- import { t as getProjectAPI } from "./project-DKLgh9Mz.js";
15
- import { t as getSearchAPI } from "./search-CVbo1OMK.js";
16
- import { t as getStripeAPI } from "./stripe-vRfMjdAc.js";
17
- import { t as getTagAPI } from "./tag-0oc2-9J5.js";
18
- import { t as getUserAPI } from "./user-BVi1Ho0Q.js";
4
+ import { AskDocQuestionBody, AskDocQuestionResult, AutocompleteBody, getAiAPI } from "./getIntlayerAPI/ai.js";
5
+ import { AuditEvent, DiscoverUrlsParams, DiscoverUrlsResult, GetRecursiveAuditStatusParams, GetRecursiveAuditStatusResult, RecursiveAuditJobParams, ScanUrlBody, StartRecursiveAuditBody, StartRecursiveAuditResult, getAuditAPI } from "./getIntlayerAPI/audit.js";
6
+ import { BitbucketAuthCallbackBody, BitbucketAuthCallbackResult, BitbucketCheckConfigBody, BitbucketCheckConfigResult, BitbucketGetAuthUrlResult, BitbucketGetConfigFileBody, BitbucketGetConfigFileResult, BitbucketListReposResult, BitbucketRepository, getBitbucketAPI } from "./getIntlayerAPI/bitbucket.js";
7
+ import { getDictionaryAPI } from "./getIntlayerAPI/dictionary.js";
8
+ import { getEditorAPI } from "./getIntlayerAPI/editor.js";
9
+ import { GitHubAuthCallbackBody, GitHubAuthCallbackResult, GitHubCheckConfigBody, GitHubCheckConfigResult, GitHubGetAuthUrlResult, GitHubGetConfigFileBody, GitHubGetConfigFileResult, GitHubListReposResult, GitHubRepository, getGithubAPI } from "./getIntlayerAPI/github.js";
10
+ import { GitLabAuthCallbackBody, GitLabAuthCallbackResult, GitLabCheckConfigBody, GitLabCheckConfigResult, GitLabGetAuthUrlResult, GitLabGetConfigFileBody, GitLabGetConfigFileResult, GitLabListProjectsResult, GitLabProject, getGitlabAPI } from "./getIntlayerAPI/gitlab.js";
11
+ import { getNewsletterAPI } from "./getIntlayerAPI/newsletter.js";
12
+ import { getOAuthAPI } from "./getIntlayerAPI/oAuth.js";
13
+ import { getOrganizationAPI } from "./getIntlayerAPI/organization.js";
14
+ import { getProjectAPI } from "./getIntlayerAPI/project.js";
15
+ import { getSearchAPI } from "./getIntlayerAPI/search.js";
16
+ import { getStripeAPI } from "./getIntlayerAPI/stripe.js";
17
+ import { getTagAPI } from "./getIntlayerAPI/tag.js";
18
+ import { getUserAPI } from "./getIntlayerAPI/user.js";
19
19
  import { IntlayerAPI, getIntlayerAPI } from "./getIntlayerAPI/index.js";
20
20
  import { IntlayerAPIProxy, getIntlayerAPIProxy } from "./proxy.js";
21
21
  import { AIOptions } from "./types.js";
@@ -0,0 +1,12 @@
1
+ import { ResponseData } from "../utils/responseData.js";
2
+ import { IntlayerConfig } from "@intlayer/types/config";
3
+
4
+ //#region ../../intlayer-editor/server/dist/controllers/configuration.controller.d.ts
5
+ //#region src/controllers/configuration.controller.d.ts
6
+ type GetConfigurationResult = ResponseData<IntlayerConfig>;
7
+ /**
8
+ * Get the Intlayer configuration
9
+ */
10
+ //#endregion
11
+ export { GetConfigurationResult };
12
+ //# sourceMappingURL=configuration.controller.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"configuration.controller.d.ts","names":["ResponseData","IntlayerConfig","FastifyReply","FastifyRequest","GetConfigurationResult","getConfiguration","Promise","_req","res"],"sources":["../../../../../../../../intlayer-editor/server/dist/controllers/configuration.controller.d.ts"],"mappings":";;;;;KAKKI,sBAAAA,GAAyBJ,YAAAA,CAAaC,cAAAA"}
@@ -0,0 +1,25 @@
1
+ import { ResponseData } from "../utils/responseData.js";
2
+ import { UnmergedDictionaries } from "../../../../@intlayer/unmerged-dictionaries-entry/dist/types/index.js";
3
+ import { DictionaryStatus } from "@intlayer/chokidar/build";
4
+ import { Dictionary } from "@intlayer/types/dictionary";
5
+
6
+ //#region ../../intlayer-editor/server/dist/controllers/dictionary.controller.d.ts
7
+ //#region src/controllers/dictionary.controller.d.ts
8
+ type GetEditorDictionariesResult = ResponseData<UnmergedDictionaries>;
9
+ /**
10
+ * Get the Intlayer configuration
11
+ */
12
+ type WriteContentDeclarationBody = {
13
+ dictionary: Dictionary;
14
+ };
15
+ type WriteContentDeclarationResultData = {
16
+ status: DictionaryStatus;
17
+ path: string;
18
+ };
19
+ type WriteContentDeclarationResult = ResponseData<WriteContentDeclarationResultData>;
20
+ /**
21
+ * Adds a new dictionary to the database.
22
+ */
23
+ //#endregion
24
+ export { GetEditorDictionariesResult, WriteContentDeclarationBody, WriteContentDeclarationResult };
25
+ //# sourceMappingURL=dictionary.controller.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dictionary.controller.d.ts","names":["ResponseData","FastifyReply","FastifyRequest","DictionaryStatus","Dictionary","UnmergedDictionaries","GetEditorDictionariesResult","getDictionaries","Promise","_req","res","WriteContentDeclarationBody","dictionary","WriteContentDeclarationResultData","status","path","WriteContentDeclarationResult","writeContentDeclaration","Body","req"],"sources":["../../../../../../../../intlayer-editor/server/dist/controllers/dictionary.controller.d.ts"],"mappings":";;;;;;;KAOKM,2BAAAA,GAA8BN,YAAAA,CAAaK,oBAAAA;;;;KAK3CM,2BAAAA;EACHC,UAAAA,EAAYR,UAAAA;AAAAA;AAAAA,KAETS,iCAAAA;EACHC,MAAAA,EAAQX,gBAAAA;EACRY,IAAAA;AAAAA;AAAAA,KAEGC,6BAAAA,GAAgChB,YAAAA,CAAaa,iCAAAA"}
@@ -0,0 +1,2 @@
1
+ import { GetConfigurationResult } from "./controllers/configuration.controller.js";
2
+ import { GetEditorDictionariesResult, WriteContentDeclarationBody, WriteContentDeclarationResult } from "./controllers/dictionary.controller.js";
@@ -1,10 +1,4 @@
1
- import { FetcherOptions } from "./fetcher.js";
2
- import { IntlayerConfig } from "@intlayer/types/config";
3
- import { DictionaryStatus } from "@intlayer/chokidar/build";
4
- import { Dictionary } from "@intlayer/types/dictionary";
5
- import { DictionaryKeys } from "@intlayer/types/module_augmentation";
6
-
7
- //#region ../../intlayer-editor/server/dist/httpStatusCodes-Bscj19Pj.d.ts
1
+ //#region ../../intlayer-editor/server/dist/utils/httpStatusCodes.d.ts
8
2
  //#region src/utils/httpStatusCodes.d.ts
9
3
  /**
10
4
  * Enum for HTTP response status codes.
@@ -410,57 +404,5 @@ declare enum HttpStatusCodes {
410
404
  NETWORK_AUTHENTICATION_REQUIRED_511 = 511
411
405
  } //#endregion
412
406
  //#endregion
413
- //#region ../../intlayer-editor/server/dist/responseData-DcKPpb9v.d.ts
414
- //#region src/utils/responseData.d.ts
415
- type ErrorData = {
416
- code: string;
417
- title: string;
418
- message: string;
419
- } & object;
420
- type ResponseData<T = null> = {
421
- message?: string;
422
- description?: string;
423
- success: boolean;
424
- status: HttpStatusCodes;
425
- data: T | null;
426
- error?: ErrorData | ErrorData[];
427
- };
428
- //#endregion
429
- //#region ../../intlayer-editor/server/dist/controllers/configuration.controller.d.ts
430
- //#region src/controllers/configuration.controller.d.ts
431
- type GetConfigurationResult = ResponseData<IntlayerConfig>;
432
- /**
433
- * Get the Intlayer configuration
434
- */
435
- //#endregion
436
- //#region ../unmerged-dictionaries-entry/dist/types/index.d.ts
437
- //#region src/index.d.ts
438
- type UnmergedDictionaries = Record<DictionaryKeys, Dictionary[]>;
439
- //#endregion
440
- //#region ../../intlayer-editor/server/dist/controllers/dictionary.controller.d.ts
441
- //#region src/controllers/dictionary.controller.d.ts
442
- type GetEditorDictionariesResult = ResponseData<UnmergedDictionaries>;
443
- /**
444
- * Get the Intlayer configuration
445
- */
446
- type WriteContentDeclarationBody = {
447
- dictionary: Dictionary;
448
- };
449
- type WriteContentDeclarationResultData = {
450
- status: DictionaryStatus;
451
- path: string;
452
- };
453
- type WriteContentDeclarationResult = ResponseData<WriteContentDeclarationResultData>;
454
- /**
455
- * Adds a new dictionary to the database.
456
- */
457
- //#endregion
458
- //#region src/getIntlayerAPI/editor.d.ts
459
- declare const getEditorAPI: (authAPIOptions: FetcherOptions, intlayerConfig: IntlayerConfig) => {
460
- getDictionaries: (otherOptions?: FetcherOptions) => Promise<GetEditorDictionariesResult>;
461
- getConfiguration: (otherOptions?: FetcherOptions) => Promise<GetConfigurationResult>;
462
- writeDictionary: (body: WriteContentDeclarationBody, otherOptions?: FetcherOptions) => Promise<WriteContentDeclarationResult>;
463
- };
464
- //#endregion
465
- export { getEditorAPI as t };
466
- //# sourceMappingURL=editor-DTBh5ovU.d.ts.map
407
+ export { HttpStatusCodes };
408
+ //# sourceMappingURL=httpStatusCodes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"httpStatusCodes.d.ts","names":["HttpStatusCodes","CONTINUE_100","SWITCHING_PROTOCOLS_101","PROCESSING_102","EARLY_HINTS_103","OK_200","CREATED_201","ACCEPTED_202","NON_AUTHORITATIVE_INFORMATION_203","NO_CONTENT_204","RESET_CONTENT_205","PARTIAL_CONTENT_206","MULTI_STATUS_207","ALREADY_REPORTED_208","IM_USED_226","MULTIPLE_CHOICES_300","MOVED_PERMANENTLY_301","FOUND_302","SEE_OTHER_303","NOT_MODIFIED_304","USE_PROXY_305","SWITCH_PROXY_306","TEMPORARY_REDIRECT_307","PERMANENT_REDIRECT_308","BAD_REQUEST_400","UNAUTHORIZED_401","FORBIDDEN_403","NOT_FOUND_404","METHOD_NOT_ALLOWED_405","NOT_ACCEPTABLE_406","PROXY_AUTHENTICATION_REQUIRED_407","REQUEST_TIMEOUT_408","CONFLICT_409","GONE_410","LENGTH_REQUIRED_411","PRECONDITION_FAILED_412","PAYLOAD_TOO_LARGE_413","URI_TOO_LONG_414","UNSUPPORTED_MEDIA_TYPE_415","RANGE_NOT_SATISFIABLE_416","EXPECTATION_FAILED_417","IM_A_TEAPOT_418","MISDIRECTED_REQUEST_421","UNPROCESSABLE_ENTITY_422","LOCKED_423","FAILED_DEPENDENCY_424","TOO_EARLY_425","UPGRADE_REQUIRED_426","PRECONDITION_REQUIRED_428","TOO_MANY_REQUESTS_429","REQUEST_HEADER_FIELDS_TOO_LARGE_431","UNAVAILABLE_FOR_LEGAL_REASONS_451","INTERNAL_SERVER_ERROR_500","NOT_IMPLEMENTED_501","BAD_GATEWAY_502","SERVICE_UNAVAILABLE_503","GATEWAY_TIMEOUT_504","HTTP_VERSION_NOT_SUPPORTED_505","VARIANT_ALSO_NEGOTIATES_506","INSUFFICIENT_STORAGE_507","LOOP_DETECTED_508","NOT_EXTENDED_510","NETWORK_AUTHENTICATION_REQUIRED_511"],"sources":["../../../../../../../../intlayer-editor/server/dist/utils/httpStatusCodes.d.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aAiJaA,eAAAA;;;;EAIXC,YAAAA;;;;EAIAC,uBAAAA;;;;EAIAC,cAAAA;EAAAA;;;;EAKAC,eAAAA;;;;EAIAC,MAAAA;;;;EAIAC,WAAAA;;;;EAIAC,YAAAA;;;;EAIAC,iCAAAA;;;;EAIAC,cAAAA;;;;EAIAC,iBAAAA;;;;EAIAC,mBAAAA;;;;EAIAC,gBAAAA;EAAAA;;;;EAKAC,oBAAAA;EAAAA;;;;EAKAC,WAAAA;;;;EAIAC,oBAAAA;;;;EAIAC,qBAAAA;;;;EAIAC,SAAAA;;;;EAIAC,aAAAA;;;;EAIAC,gBAAAA;;;;EAIAC,aAAAA;;;;EAIAC,gBAAAA;;;;EAIAC,sBAAAA;;;;EAIAC,sBAAAA;;;;EAIAC,eAAAA;;;;EAIAC,gBAAAA;;;;EAIAC,aAAAA;;;;EAIAC,aAAAA;;;;EAIAC,sBAAAA;;;;EAIAC,kBAAAA;;;;EAIAC,iCAAAA;;;;EAIAC,mBAAAA;;;;EAIAC,YAAAA;;;;EAIAC,QAAAA;;;;EAIAC,mBAAAA;;;;EAIAC,uBAAAA;;;;EAIAC,qBAAAA;;;;EAIAC,gBAAAA;;;;EAIAC,0BAAAA;;;;EAIAC,yBAAAA;;;;EAIAC,sBAAAA;;;;EAIAC,eAAAA;EAAAA;;;;EAKAC,uBAAAA;;;;EAIAC,wBAAAA;EAAAA;;;;EAKAC,UAAAA;EAAAA;;;;EAKAC,qBAAAA;EAAAA;;;;EAKAC,aAAAA;;;;EAIAC,oBAAAA;;;;EAIAC,yBAAAA;;;;EAIAC,qBAAAA;;;;EAIAC,mCAAAA;;;;EAIAC,iCAAAA;;;;EAIAC,yBAAAA;;;;EAIAC,mBAAAA;;;;EAIAC,eAAAA;;;;EAIAC,uBAAAA;;;;EAIAC,mBAAAA;;;;EAIAC,8BAAAA;;;;EAIAC,2BAAAA;;;;EAIAC,wBAAAA;EAAAA;;;;EAKAC,iBAAAA;EAAAA;;;;EAKAC,gBAAAA;;;;EAIAC,mCAAAA;AAAAA"}
@@ -0,0 +1,20 @@
1
+ import { HttpStatusCodes } from "./httpStatusCodes.js";
2
+
3
+ //#region ../../intlayer-editor/server/dist/utils/responseData.d.ts
4
+ //#region src/utils/responseData.d.ts
5
+ type ErrorData = {
6
+ code: string;
7
+ title: string;
8
+ message: string;
9
+ } & object;
10
+ type ResponseData<T = null> = {
11
+ message?: string;
12
+ description?: string;
13
+ success: boolean;
14
+ status: HttpStatusCodes;
15
+ data: T | null;
16
+ error?: ErrorData | ErrorData[];
17
+ };
18
+ //#endregion
19
+ export { ResponseData };
20
+ //# sourceMappingURL=responseData.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"responseData.d.ts","names":["HttpStatusCodes","ErrorData","code","title","message","ResponseData","T","description","success","status","data","error","ValidResponseStatus","OK_200","CREATED_201","ACCEPTED_202","NON_AUTHORITATIVE_INFORMATION_203","NO_CONTENT_204","RESET_CONTENT_205","PARTIAL_CONTENT_206","MULTI_STATUS_207","ALREADY_REPORTED_208","IM_USED_226","SuccessResponseArgs","ErrorResponseArgs","formatResponse","PaginatedResponse","Omit","page","page_size","total_pages","total_items","SuccessPaginatedResponseArgs","pageSize","totalPages","totalItems","ErrorPaginatedResponseArgs","formatPaginatedResponse"],"sources":["../../../../../../../../intlayer-editor/server/dist/utils/responseData.d.ts"],"mappings":";;;;KAGKC,SAAAA;EACHC,IAAAA;EACAC,KAAAA;EACAC,OAAAA;AAAAA;AAAAA,KAEGC,YAAAA;EACHD,OAAAA;EACAG,WAAAA;EACAC,OAAAA;EACAC,MAAAA,EAAQT,eAAAA;EACRU,IAAAA,EAAMJ,CAAAA;EACNK,KAAAA,GAAQV,SAAAA,GAAYA,SAAAA;AAAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"proxy.d.ts","names":[],"sources":["../../src/proxy.ts"],"mappings":";;;;;;;;;;;;;cAqDa,mBAAA,GACX,eAAA,GAAiB,cAAA,EACjB,cAAA,GAAiB,cAAA,KAChB,WAAA;AAAA,KAiGS,gBAAA,GAAmB,UAAA,QAAkB,mBAAA"}
1
+ {"version":3,"file":"proxy.d.ts","names":[],"sources":["../../src/proxy.ts"],"mappings":";;;;;;;AAqDA;;;;;;cAAa,mBAAA,GACX,eAAA,GAAiB,cAAA,EACjB,cAAA,GAAiB,cAAA,KAChB,WAAA;AAAA,KAiGS,gBAAA,GAAmB,UAAA,QAAkB,mBAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@intlayer/api",
3
- "version": "8.4.4",
3
+ "version": "8.4.5",
4
4
  "private": false,
5
5
  "description": "SDK for interacting with the Intlayer API, enabling content auditing, and managing organizations, projects, and users.",
6
6
  "keywords": [
@@ -72,8 +72,8 @@
72
72
  "typecheck": "tsc --noEmit --project tsconfig.types.json"
73
73
  },
74
74
  "dependencies": {
75
- "@intlayer/config": "8.4.4",
76
- "@intlayer/types": "8.4.4",
75
+ "@intlayer/config": "8.4.5",
76
+ "@intlayer/types": "8.4.5",
77
77
  "defu": "6.1.4"
78
78
  },
79
79
  "devDependencies": {
@@ -1,2 +0,0 @@
1
- var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},s=(n,r,a)=>(a=n==null?{}:e(i(n)),o(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n));const c=require(`./getIntlayerAPI/ai.cjs`),l=require(`./getIntlayerAPI/audit.cjs`),u=require(`./getIntlayerAPI/bitbucket.cjs`),d=require(`./getIntlayerAPI/dictionary.cjs`),f=require(`./getIntlayerAPI/editor.cjs`),p=require(`./getIntlayerAPI/github.cjs`),m=require(`./getIntlayerAPI/gitlab.cjs`),h=require(`./getIntlayerAPI/newsletter.cjs`),g=require(`./getIntlayerAPI/oAuth.cjs`),_=require(`./getIntlayerAPI/organization.cjs`),v=require(`./getIntlayerAPI/project.cjs`),y=require(`./getIntlayerAPI/search.cjs`),b=require(`./getIntlayerAPI/showcaseProject.cjs`),x=require(`./getIntlayerAPI/stripe.cjs`),S=require(`./getIntlayerAPI/tag.cjs`),C=require(`./getIntlayerAPI/user.cjs`);let w=require(`@intlayer/config/built`);w=s(w);let T=require(`defu`);const E=(e={},t)=>{let n=(0,T.defu)(t??{},w.default);return{organization:_.getOrganizationAPI(e,n),project:v.getProjectAPI(e,n),user:C.getUserAPI(e,n),oAuth:g.getOAuthAPI(n),dictionary:d.getDictionaryAPI(e,n),stripe:x.getStripeAPI(e,n),ai:c.getAiAPI(e,n),audit:l.getAuditAPI(e,n),tag:S.getTagAPI(e,n),search:y.getSearchAPI(e,n),editor:f.getEditorAPI(e,n),newsletter:h.getNewsletterAPI(e,n),github:p.getGithubAPI(e,n),gitlab:m.getGitlabAPI(e,n),bitbucket:u.getBitbucketAPI(e,n),showcaseProject:b.getShowcaseProjectAPI(e,n)}};Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return E}});
2
- //# sourceMappingURL=getIntlayerAPI-CUu2tiLP.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getIntlayerAPI-CUu2tiLP.cjs","names":["builtConfiguration","getOrganizationAPI","getProjectAPI","getUserAPI","getOAuthAPI","getDictionaryAPI","getStripeAPI","getAiAPI","getAuditAPI","getTagAPI","getSearchAPI","getEditorAPI","getNewsletterAPI","getGithubAPI","getGitlabAPI","getBitbucketAPI","getShowcaseProjectAPI"],"sources":["../../src/getIntlayerAPI/index.ts"],"sourcesContent":["import builtConfiguration from '@intlayer/config/built';\nimport type { IntlayerConfig } from '@intlayer/types/config';\nimport { defu } from 'defu';\nimport type { FetcherOptions } from '../fetcher';\nimport { getAiAPI } from './ai';\nimport { getAuditAPI } from './audit';\nimport { getBitbucketAPI } from './bitbucket';\nimport { getDictionaryAPI } from './dictionary';\nimport { getEditorAPI } from './editor';\nimport { getGithubAPI } from './github';\nimport { getGitlabAPI } from './gitlab';\nimport { getNewsletterAPI } from './newsletter';\nimport { getOAuthAPI } from './oAuth';\nimport { getOrganizationAPI } from './organization';\nimport { getProjectAPI } from './project';\nimport { getSearchAPI } from './search';\nimport { getShowcaseProjectAPI } from './showcaseProject';\nimport { getStripeAPI } from './stripe';\nimport { getTagAPI } from './tag';\nimport { getUserAPI } from './user';\n\ninterface IntlayerAPIReturn {\n organization: ReturnType<typeof getOrganizationAPI>;\n project: ReturnType<typeof getProjectAPI>;\n user: ReturnType<typeof getUserAPI>;\n oAuth: ReturnType<typeof getOAuthAPI>;\n dictionary: ReturnType<typeof getDictionaryAPI>;\n stripe: ReturnType<typeof getStripeAPI>;\n ai: ReturnType<typeof getAiAPI>;\n audit: ReturnType<typeof getAuditAPI>;\n tag: ReturnType<typeof getTagAPI>;\n search: ReturnType<typeof getSearchAPI>;\n editor: ReturnType<typeof getEditorAPI>;\n newsletter: ReturnType<typeof getNewsletterAPI>;\n github: ReturnType<typeof getGithubAPI>;\n gitlab: ReturnType<typeof getGitlabAPI>;\n bitbucket: ReturnType<typeof getBitbucketAPI>;\n showcaseProject: ReturnType<typeof getShowcaseProjectAPI>;\n}\n\nexport const getIntlayerAPI = (\n authAPIOptions: FetcherOptions = {},\n intlayerConfig?: IntlayerConfig\n): IntlayerAPIReturn => {\n const resolvedConfig = defu(\n intlayerConfig ?? {},\n builtConfiguration\n ) as IntlayerConfig;\n\n return {\n organization: getOrganizationAPI(authAPIOptions, resolvedConfig),\n project: getProjectAPI(authAPIOptions, resolvedConfig),\n user: getUserAPI(authAPIOptions, resolvedConfig),\n oAuth: getOAuthAPI(resolvedConfig),\n dictionary: getDictionaryAPI(authAPIOptions, resolvedConfig),\n stripe: getStripeAPI(authAPIOptions, resolvedConfig),\n ai: getAiAPI(authAPIOptions, resolvedConfig),\n audit: getAuditAPI(authAPIOptions, resolvedConfig),\n tag: getTagAPI(authAPIOptions, resolvedConfig),\n search: getSearchAPI(authAPIOptions, resolvedConfig),\n editor: getEditorAPI(authAPIOptions, resolvedConfig),\n newsletter: getNewsletterAPI(authAPIOptions, resolvedConfig),\n github: getGithubAPI(authAPIOptions, resolvedConfig),\n gitlab: getGitlabAPI(authAPIOptions, resolvedConfig),\n bitbucket: getBitbucketAPI(authAPIOptions, resolvedConfig),\n showcaseProject: getShowcaseProjectAPI(authAPIOptions, resolvedConfig),\n };\n};\n\nexport type IntlayerAPI = ReturnType<typeof getIntlayerAPI>;\n"],"mappings":"ysCAwCA,MAAa,GACX,EAAiC,EAAE,CACnC,IACsB,CACtB,IAAM,GAAA,EAAA,EAAA,MACJ,GAAkB,EAAE,CACpBA,EAAAA,QACD,CAED,MAAO,CACL,aAAcC,EAAAA,mBAAmB,EAAgB,EAAe,CAChE,QAASC,EAAAA,cAAc,EAAgB,EAAe,CACtD,KAAMC,EAAAA,WAAW,EAAgB,EAAe,CAChD,MAAOC,EAAAA,YAAY,EAAe,CAClC,WAAYC,EAAAA,iBAAiB,EAAgB,EAAe,CAC5D,OAAQC,EAAAA,aAAa,EAAgB,EAAe,CACpD,GAAIC,EAAAA,SAAS,EAAgB,EAAe,CAC5C,MAAOC,EAAAA,YAAY,EAAgB,EAAe,CAClD,IAAKC,EAAAA,UAAU,EAAgB,EAAe,CAC9C,OAAQC,EAAAA,aAAa,EAAgB,EAAe,CACpD,OAAQC,EAAAA,aAAa,EAAgB,EAAe,CACpD,WAAYC,EAAAA,iBAAiB,EAAgB,EAAe,CAC5D,OAAQC,EAAAA,aAAa,EAAgB,EAAe,CACpD,OAAQC,EAAAA,aAAa,EAAgB,EAAe,CACpD,UAAWC,EAAAA,gBAAgB,EAAgB,EAAe,CAC1D,gBAAiBC,EAAAA,sBAAsB,EAAgB,EAAe,CACvE"}
@@ -1,32 +0,0 @@
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 { getAiAPI as i, AskDocQuestionResult as n, AutocompleteBody as r, AskDocQuestionBody as t };
32
- //# sourceMappingURL=ai-FbIMwui1.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ai-FbIMwui1.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,44 +0,0 @@
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 { GetRecursiveAuditStatusResult as a, StartRecursiveAuditBody as c, GetRecursiveAuditStatusParams as i, StartRecursiveAuditResult as l, DiscoverUrlsParams as n, RecursiveAuditJobParams as o, DiscoverUrlsResult as r, ScanUrlBody as s, AuditEvent as t, getAuditAPI as u };
44
- //# sourceMappingURL=audit-DzTxbapP.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"audit-DzTxbapP.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"}