@intlayer/backend-contract 9.7.0 → 9.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (198) hide show
  1. package/README.md +331 -0
  2. package/dist/cjs/ai.cjs +5 -6
  3. package/dist/cjs/analytics.cjs +3 -4
  4. package/dist/cjs/asset.cjs +4 -5
  5. package/dist/cjs/blogComment.cjs +4 -5
  6. package/dist/cjs/cliSessionToken.cjs +7 -8
  7. package/dist/cjs/common.cjs +1 -2
  8. package/dist/cjs/defineRoute.cjs +1 -2
  9. package/dist/cjs/demo.cjs +2 -3
  10. package/dist/cjs/dictionary.cjs +4 -5
  11. package/dist/cjs/environment.cjs +5 -6
  12. package/dist/cjs/eventListener.cjs +2 -3
  13. package/dist/cjs/gitProviders.cjs +3 -4
  14. package/dist/cjs/newsletter.cjs +4 -5
  15. package/dist/cjs/oAuth2.cjs +7 -8
  16. package/dist/cjs/organization.cjs +4 -5
  17. package/dist/cjs/project.cjs +4 -5
  18. package/dist/cjs/public.cjs +4 -5
  19. package/dist/cjs/responseData.cjs +1 -2
  20. package/dist/cjs/reviewer.cjs +4 -5
  21. package/dist/cjs/scan.cjs +4 -5
  22. package/dist/cjs/search.cjs +3 -4
  23. package/dist/cjs/session.cjs +5 -6
  24. package/dist/cjs/showcaseProject.cjs +4 -5
  25. package/dist/cjs/stripe.cjs +5 -6
  26. package/dist/cjs/tag.cjs +4 -5
  27. package/dist/cjs/translation.cjs +4 -5
  28. package/dist/cjs/user.cjs +4 -5
  29. package/dist/esm/ai.mjs +1 -2
  30. package/dist/esm/analytics.mjs +1 -2
  31. package/dist/esm/asset.mjs +1 -2
  32. package/dist/esm/blogComment.mjs +1 -2
  33. package/dist/esm/cliSessionToken.mjs +3 -4
  34. package/dist/esm/common.mjs +1 -2
  35. package/dist/esm/defineRoute.mjs +1 -2
  36. package/dist/esm/demo.mjs +1 -2
  37. package/dist/esm/dictionary.mjs +1 -2
  38. package/dist/esm/environment.mjs +2 -3
  39. package/dist/esm/eventListener.mjs +1 -2
  40. package/dist/esm/gitProviders.mjs +1 -2
  41. package/dist/esm/newsletter.mjs +1 -2
  42. package/dist/esm/oAuth2.mjs +3 -4
  43. package/dist/esm/organization.mjs +1 -2
  44. package/dist/esm/project.mjs +1 -2
  45. package/dist/esm/public.mjs +2 -3
  46. package/dist/esm/responseData.mjs +1 -2
  47. package/dist/esm/reviewer.mjs +1 -2
  48. package/dist/esm/scan.mjs +1 -2
  49. package/dist/esm/search.mjs +1 -2
  50. package/dist/esm/session.mjs +2 -3
  51. package/dist/esm/showcaseProject.mjs +1 -2
  52. package/dist/esm/stripe.mjs +2 -3
  53. package/dist/esm/tag.mjs +1 -2
  54. package/dist/esm/translation.mjs +1 -2
  55. package/dist/esm/user.mjs +1 -2
  56. package/dist/types/ai.d.ts +1 -2
  57. package/dist/types/ai.d.ts.map +1 -1
  58. package/dist/types/analytics.d.ts +1 -2
  59. package/dist/types/analytics.d.ts.map +1 -1
  60. package/dist/types/asset.d.ts +0 -2
  61. package/dist/types/asset.d.ts.map +1 -1
  62. package/dist/types/blogComment.d.ts +0 -2
  63. package/dist/types/blogComment.d.ts.map +1 -1
  64. package/dist/types/cliSessionToken.d.ts +11 -14
  65. package/dist/types/cliSessionToken.d.ts.map +1 -1
  66. package/dist/types/common.d.ts +0 -2
  67. package/dist/types/common.d.ts.map +1 -1
  68. package/dist/types/defineRoute.d.ts +1 -2
  69. package/dist/types/defineRoute.d.ts.map +1 -1
  70. package/dist/types/demo.d.ts +0 -2
  71. package/dist/types/demo.d.ts.map +1 -1
  72. package/dist/types/dictionary.d.ts +1 -2
  73. package/dist/types/dictionary.d.ts.map +1 -1
  74. package/dist/types/environment.d.ts +29 -32
  75. package/dist/types/environment.d.ts.map +1 -1
  76. package/dist/types/eventListener.d.ts +0 -2
  77. package/dist/types/eventListener.d.ts.map +1 -1
  78. package/dist/types/gitProviders.d.ts +1 -2
  79. package/dist/types/gitProviders.d.ts.map +1 -1
  80. package/dist/types/newsletter.d.ts +0 -2
  81. package/dist/types/newsletter.d.ts.map +1 -1
  82. package/dist/types/oAuth2.d.ts +21 -24
  83. package/dist/types/oAuth2.d.ts.map +1 -1
  84. package/dist/types/organization.d.ts +0 -2
  85. package/dist/types/organization.d.ts.map +1 -1
  86. package/dist/types/project.d.ts +1 -2
  87. package/dist/types/project.d.ts.map +1 -1
  88. package/dist/types/public.d.ts +2 -3
  89. package/dist/types/public.d.ts.map +1 -1
  90. package/dist/types/responseData.d.ts +0 -2
  91. package/dist/types/responseData.d.ts.map +1 -1
  92. package/dist/types/reviewer.d.ts +1 -2
  93. package/dist/types/reviewer.d.ts.map +1 -1
  94. package/dist/types/scan.d.ts +1 -2
  95. package/dist/types/scan.d.ts.map +1 -1
  96. package/dist/types/search.d.ts +0 -2
  97. package/dist/types/search.d.ts.map +1 -1
  98. package/dist/types/session.d.ts +7 -8
  99. package/dist/types/session.d.ts.map +1 -1
  100. package/dist/types/showcaseProject.d.ts +1 -2
  101. package/dist/types/showcaseProject.d.ts.map +1 -1
  102. package/dist/types/stripe.d.ts +1 -3
  103. package/dist/types/stripe.d.ts.map +1 -1
  104. package/dist/types/tag.d.ts +0 -2
  105. package/dist/types/tag.d.ts.map +1 -1
  106. package/dist/types/translation.d.ts +0 -2
  107. package/dist/types/translation.d.ts.map +1 -1
  108. package/dist/types/user.d.ts +0 -2
  109. package/dist/types/user.d.ts.map +1 -1
  110. package/package.json +5 -5
  111. package/dist/types/@intlayer/config/dist/types/defaultValues/dictionary.d.ts +0 -1
  112. package/dist/types/@intlayer/config/dist/types/defaultValues/index.d.ts +0 -3
  113. package/dist/types/@intlayer/config/dist/types/defaultValues/internationalization.d.ts +0 -2
  114. package/dist/types/@intlayer/config/dist/types/defaultValues/routing.d.ts +0 -1
  115. package/dist/types/@intlayer/core/dist/types/dictionaryManipulator/plainDynamicLoader.d.ts +0 -2
  116. package/dist/types/@intlayer/core/dist/types/dictionaryManipulator/qualifiedDynamicLoader.d.ts +0 -2
  117. package/dist/types/@intlayer/core/dist/types/formatters/compact.d.ts +0 -1
  118. package/dist/types/@intlayer/core/dist/types/formatters/currency.d.ts +0 -1
  119. package/dist/types/@intlayer/core/dist/types/formatters/date.d.ts +0 -1
  120. package/dist/types/@intlayer/core/dist/types/formatters/index.d.ts +0 -9
  121. package/dist/types/@intlayer/core/dist/types/formatters/list.d.ts +0 -1
  122. package/dist/types/@intlayer/core/dist/types/formatters/number.d.ts +0 -1
  123. package/dist/types/@intlayer/core/dist/types/formatters/percentage.d.ts +0 -1
  124. package/dist/types/@intlayer/core/dist/types/formatters/relativeTime.d.ts +0 -1
  125. package/dist/types/@intlayer/core/dist/types/formatters/units.d.ts +0 -1
  126. package/dist/types/@intlayer/core/dist/types/interpreter/dictionaryTransformCache.d.ts +0 -4
  127. package/dist/types/@intlayer/core/dist/types/interpreter/getCondition.d.ts +0 -2
  128. package/dist/types/@intlayer/core/dist/types/interpreter/getContent/deepTransform.d.ts +0 -1
  129. package/dist/types/@intlayer/core/dist/types/interpreter/getContent/getContent.d.ts +0 -3
  130. package/dist/types/@intlayer/core/dist/types/interpreter/getContent/index.d.ts +0 -3
  131. package/dist/types/@intlayer/core/dist/types/interpreter/getContent/plugins.d.ts +0 -7
  132. package/dist/types/@intlayer/core/dist/types/interpreter/getDictionary.d.ts +0 -4
  133. package/dist/types/@intlayer/core/dist/types/interpreter/getDictionaryAsync.d.ts +0 -6
  134. package/dist/types/@intlayer/core/dist/types/interpreter/getEnumeration.d.ts +0 -2
  135. package/dist/types/@intlayer/core/dist/types/interpreter/getGender.d.ts +0 -2
  136. package/dist/types/@intlayer/core/dist/types/interpreter/getInsertion.d.ts +0 -2
  137. package/dist/types/@intlayer/core/dist/types/interpreter/getIntlayer.d.ts +0 -4
  138. package/dist/types/@intlayer/core/dist/types/interpreter/getIntlayerAsync.d.ts +0 -4
  139. package/dist/types/@intlayer/core/dist/types/interpreter/getNesting.d.ts +0 -6
  140. package/dist/types/@intlayer/core/dist/types/interpreter/getPlural.d.ts +0 -3
  141. package/dist/types/@intlayer/core/dist/types/interpreter/getSelect.d.ts +0 -2
  142. package/dist/types/@intlayer/core/dist/types/interpreter/getTranslation.d.ts +0 -1
  143. package/dist/types/@intlayer/core/dist/types/interpreter/index.d.ts +0 -19
  144. package/dist/types/@intlayer/core/dist/types/interpreter/interpolableNode.d.ts +0 -2
  145. package/dist/types/@intlayer/core/dist/types/interpreter/resolveInterpreterLocale.d.ts +0 -1
  146. package/dist/types/@intlayer/core/dist/types/localization/comparePaths.d.ts +0 -1
  147. package/dist/types/@intlayer/core/dist/types/localization/domainUtils.d.ts +0 -2
  148. package/dist/types/@intlayer/core/dist/types/localization/generateSitemap.d.ts +0 -2
  149. package/dist/types/@intlayer/core/dist/types/localization/getBrowserLocale.d.ts +0 -1
  150. package/dist/types/@intlayer/core/dist/types/localization/getCanonicalPath.d.ts +0 -2
  151. package/dist/types/@intlayer/core/dist/types/localization/getHTMLTextDir.d.ts +0 -1
  152. package/dist/types/@intlayer/core/dist/types/localization/getLocale.d.ts +0 -1
  153. package/dist/types/@intlayer/core/dist/types/localization/getLocaleFromPath.d.ts +0 -2
  154. package/dist/types/@intlayer/core/dist/types/localization/getLocaleFromRequest.d.ts +0 -1
  155. package/dist/types/@intlayer/core/dist/types/localization/getLocaleLang.d.ts +0 -1
  156. package/dist/types/@intlayer/core/dist/types/localization/getLocaleName.d.ts +0 -1
  157. package/dist/types/@intlayer/core/dist/types/localization/getLocalizedPath.d.ts +0 -2
  158. package/dist/types/@intlayer/core/dist/types/localization/getLocalizedUrl.d.ts +0 -2
  159. package/dist/types/@intlayer/core/dist/types/localization/getMultilingualUrls.d.ts +0 -2
  160. package/dist/types/@intlayer/core/dist/types/localization/getPathWithoutLocale.d.ts +0 -1
  161. package/dist/types/@intlayer/core/dist/types/localization/getPrefix.d.ts +0 -2
  162. package/dist/types/@intlayer/core/dist/types/localization/index.d.ts +0 -23
  163. package/dist/types/@intlayer/core/dist/types/localization/localeDetector.d.ts +0 -2
  164. package/dist/types/@intlayer/core/dist/types/localization/localeMapper.d.ts +0 -1
  165. package/dist/types/@intlayer/core/dist/types/localization/localeResolver.d.ts +0 -1
  166. package/dist/types/@intlayer/core/dist/types/localization/resolveBrowserLocale.d.ts +0 -2
  167. package/dist/types/@intlayer/core/dist/types/localization/rewriteMatch.d.ts +0 -1
  168. package/dist/types/@intlayer/core/dist/types/localization/rewriteUtils.d.ts +0 -2
  169. package/dist/types/@intlayer/core/dist/types/localization/validatePrefix.d.ts +0 -2
  170. package/dist/types/@intlayer/core/dist/types/markdown/index.d.ts +0 -2
  171. package/dist/types/@intlayer/core/dist/types/transpiler/condition/condition.d.ts +0 -1
  172. package/dist/types/@intlayer/core/dist/types/transpiler/condition/index.d.ts +0 -1
  173. package/dist/types/@intlayer/core/dist/types/transpiler/enumeration/enumeration.d.ts +0 -1
  174. package/dist/types/@intlayer/core/dist/types/transpiler/enumeration/index.d.ts +0 -1
  175. package/dist/types/@intlayer/core/dist/types/transpiler/file/file.d.ts +0 -1
  176. package/dist/types/@intlayer/core/dist/types/transpiler/file/index.d.ts +0 -1
  177. package/dist/types/@intlayer/core/dist/types/transpiler/gender/gender.d.ts +0 -1
  178. package/dist/types/@intlayer/core/dist/types/transpiler/gender/index.d.ts +0 -1
  179. package/dist/types/@intlayer/core/dist/types/transpiler/html/html.d.ts +0 -1
  180. package/dist/types/@intlayer/core/dist/types/transpiler/html/index.d.ts +0 -1
  181. package/dist/types/@intlayer/core/dist/types/transpiler/index.d.ts +0 -22
  182. package/dist/types/@intlayer/core/dist/types/transpiler/insertion/index.d.ts +0 -1
  183. package/dist/types/@intlayer/core/dist/types/transpiler/insertion/insertion.d.ts +0 -1
  184. package/dist/types/@intlayer/core/dist/types/transpiler/markdown/index.d.ts +0 -1
  185. package/dist/types/@intlayer/core/dist/types/transpiler/markdown/markdown.d.ts +0 -1
  186. package/dist/types/@intlayer/core/dist/types/transpiler/nesting/index.d.ts +0 -1
  187. package/dist/types/@intlayer/core/dist/types/transpiler/nesting/nesting.d.ts +0 -4
  188. package/dist/types/@intlayer/core/dist/types/transpiler/plural/index.d.ts +0 -1
  189. package/dist/types/@intlayer/core/dist/types/transpiler/plural/plural.d.ts +0 -1
  190. package/dist/types/@intlayer/core/dist/types/transpiler/select/index.d.ts +0 -1
  191. package/dist/types/@intlayer/core/dist/types/transpiler/select/select.d.ts +0 -1
  192. package/dist/types/@intlayer/core/dist/types/transpiler/translation/index.d.ts +0 -1
  193. package/dist/types/@intlayer/core/dist/types/transpiler/translation/translation.d.ts +0 -2
  194. package/dist/types/@intlayer/core/dist/types/utils/index.d.ts +0 -3
  195. package/dist/types/@intlayer/core/dist/types/utils/intl.d.ts +0 -1
  196. package/dist/types/@intlayer/core/dist/types/utils/isSameKeyPath.d.ts +0 -1
  197. package/dist/types/@intlayer/core/dist/types/utils/localeStorage.d.ts +0 -2
  198. package/dist/types/intlayer/dist/types/index.d.ts +0 -13
@@ -1,9 +1,9 @@
1
1
  import { defineRoute, defineRouteGroup } from "./defineRoute.mjs";
2
- import { responseDataSchema } from "./responseData.mjs";
3
2
  import { dictionarySchema } from "./dictionary.mjs";
3
+ import { responseDataSchema } from "./responseData.mjs";
4
4
  import { z } from "zod/mini";
5
5
 
6
- //#region src/public.ts
6
+ // src/public.ts
7
7
  /** Capabilities a public browser token may carry (deliberately narrow). */
8
8
  const publicBrowserScopeSchema = z.enum(["analytics:ingest", "dictionary:read"]);
9
9
  const publicBrowserTokenSchema = z.object({
@@ -53,6 +53,5 @@ keys: z.optional(z.string()) }),
53
53
  }
54
54
  });
55
55
 
56
- //#endregion
57
56
  export { publicBrowserScopeSchema, publicContract };
58
57
  //# sourceMappingURL=public.mjs.map
@@ -1,6 +1,6 @@
1
1
  import { z } from "zod/mini";
2
2
 
3
- //#region src/responseData.ts
3
+ // src/responseData.ts
4
4
  /** Error payload attached to failed responses. */
5
5
  const errorDataSchema = z.looseObject({
6
6
  code: z.string(),
@@ -25,6 +25,5 @@ const paginatedResponseSchema = (item) => z.object({
25
25
  total_items: z.nullable(z.number())
26
26
  });
27
27
 
28
- //#endregion
29
28
  export { errorDataSchema, paginatedResponseSchema, responseDataSchema };
30
29
  //# sourceMappingURL=responseData.mjs.map
@@ -3,7 +3,7 @@ import { defineRoute, defineRouteGroup } from "./defineRoute.mjs";
3
3
  import { paginatedResponseSchema, responseDataSchema } from "./responseData.mjs";
4
4
  import { z } from "zod/mini";
5
5
 
6
- //#region src/reviewer.ts
6
+ // src/reviewer.ts
7
7
  /** Number sent in a query string (parsed by the handler). */
8
8
  const numericQueryValueSchema = z.union([z.string(), z.number()]);
9
9
  const reviewerStatusSchema = z.enum([
@@ -385,6 +385,5 @@ const reviewerContract = defineRouteGroup({
385
385
  }
386
386
  });
387
387
 
388
- //#endregion
389
388
  export { REVIEWER_CATEGORIES, missionEstimateSchema, missionStatusSchema, priceDistributionSchema, reviewerCategorySchema, reviewerContract, reviewerMessageSchema, reviewerProfileSchema, reviewerReviewSchema, reviewerStatusSchema, translationMissionSchema };
390
389
  //# sourceMappingURL=reviewer.mjs.map
package/dist/esm/scan.mjs CHANGED
@@ -3,7 +3,7 @@ import { defineRoute, defineRouteGroup } from "./defineRoute.mjs";
3
3
  import { paginatedResponseSchema, responseDataSchema } from "./responseData.mjs";
4
4
  import { z } from "zod/mini";
5
5
 
6
- //#region src/scan.ts
6
+ // src/scan.ts
7
7
  /**
8
8
  * Locale routing strategies detected on a website. Mirrors
9
9
  * `@intlayer/engine/scan` (asserted equal there: engine depends on the
@@ -220,6 +220,5 @@ const scanContract = defineRouteGroup({
220
220
  }
221
221
  });
222
222
 
223
- //#endregion
224
223
  export { hostScanSchema, hostScanSourceSchema, hostTechnologySchema, recursiveAuditStatusSchema, routingStrategySchema, scanContract, scannedHostDetailSchema, scannedHostSummarySchema, technologyCategorySchema, technologyUsageSchema };
225
224
  //# sourceMappingURL=scan.mjs.map
@@ -2,7 +2,7 @@ import { defineRoute, defineRouteGroup } from "./defineRoute.mjs";
2
2
  import { responseDataSchema } from "./responseData.mjs";
3
3
  import { z } from "zod/mini";
4
4
 
5
- //#region src/search.ts
5
+ // src/search.ts
6
6
  /** One documentation chunk matching a search. */
7
7
  const searchDocResultSchema = z.object({
8
8
  fileKey: z.string(),
@@ -33,6 +33,5 @@ const searchContract = defineRouteGroup({
33
33
  }) }
34
34
  });
35
35
 
36
- //#endregion
37
36
  export { searchContract, searchDocResultSchema };
38
37
  //# sourceMappingURL=search.mjs.map
@@ -1,10 +1,10 @@
1
1
  import { dateTimeSchema, typedStringSchema } from "./common.mjs";
2
- import { environmentSchema, projectSchema } from "./project.mjs";
3
2
  import { organizationSchema } from "./organization.mjs";
3
+ import { environmentSchema, projectSchema } from "./project.mjs";
4
4
  import { userSchema } from "./user.mjs";
5
5
  import { z } from "zod/mini";
6
6
 
7
- //#region src/session.ts
7
+ // src/session.ts
8
8
  /** Named groupings of privileges granted to a user. */
9
9
  const rolesSchema = z.enum([
10
10
  "user",
@@ -48,6 +48,5 @@ const sessionSchema = z.looseObject({
48
48
  allowedLocales: z.optional(z.nullable(z.array(typedStringSchema())))
49
49
  });
50
50
 
51
- //#endregion
52
51
  export { rolesSchema, sessionDataSchema, sessionSchema };
53
52
  //# sourceMappingURL=session.mjs.map
@@ -3,7 +3,7 @@ import { defineRoute, defineRouteGroup } from "./defineRoute.mjs";
3
3
  import { paginatedResponseSchema, responseDataSchema } from "./responseData.mjs";
4
4
  import { z } from "zod/mini";
5
5
 
6
- //#region src/showcaseProject.ts
6
+ // src/showcaseProject.ts
7
7
  /** Rejects repository URLs, which belong in the `githubUrl` field. */
8
8
  const isNotRepositoryURL = z.refine((value) => !/github\.com|gitlab\.com|bitbucket\.org|codeberg\.org|gitee\.com/.test(value), { message: "Repository URLs should be placed in the GitHub URL field" });
9
9
  /** Optional URL where an empty string means "not provided". */
@@ -177,6 +177,5 @@ const showcaseProjectContract = defineRouteGroup({
177
177
  }
178
178
  });
179
179
 
180
- //#endregion
181
180
  export { showcaseProjectContract, showcaseProjectSchema, showcaseScanDetailsSchema };
182
181
  //# sourceMappingURL=showcaseProject.mjs.map
@@ -1,10 +1,10 @@
1
1
  import { dateTimeSchema, objectIdSchema, paginationQueryShape } from "./common.mjs";
2
2
  import { defineRoute, defineRouteGroup } from "./defineRoute.mjs";
3
- import { paginatedResponseSchema, responseDataSchema } from "./responseData.mjs";
4
3
  import { planSchema } from "./organization.mjs";
4
+ import { paginatedResponseSchema, responseDataSchema } from "./responseData.mjs";
5
5
  import { z } from "zod/mini";
6
6
 
7
- //#region src/stripe.ts
7
+ // src/stripe.ts
8
8
  /** Stripe invoice. */
9
9
  const stripeInvoiceSchema = z.looseObject({
10
10
  id: z.optional(z.string()),
@@ -374,6 +374,5 @@ const stripeContract = defineRouteGroup({
374
374
  }
375
375
  });
376
376
 
377
- //#endregion
378
377
  export { affiliateInvitationSchema, affiliateSchema, affiliateStatsSchema, commissionTypeSchema, pricingResultSchema, promoCodeSchema, stripeContract, stripeInvoiceSchema, stripePaymentMethodSchema };
379
378
  //# sourceMappingURL=stripe.mjs.map
package/dist/esm/tag.mjs CHANGED
@@ -3,7 +3,7 @@ import { defineRoute, defineRouteGroup } from "./defineRoute.mjs";
3
3
  import { paginatedResponseSchema, responseDataSchema } from "./responseData.mjs";
4
4
  import { z } from "zod/mini";
5
5
 
6
- //#region src/tag.ts
6
+ // src/tag.ts
7
7
  /** Tag editable fields: ownership (project, organization, creator) is set by the server. */
8
8
  const tagFieldsShape = {
9
9
  key: z.string().check(z.minLength(1)),
@@ -76,6 +76,5 @@ const tagContract = defineRouteGroup({
76
76
  }
77
77
  });
78
78
 
79
- //#endregion
80
79
  export { tagContract, tagSchema };
81
80
  //# sourceMappingURL=tag.mjs.map
@@ -3,7 +3,7 @@ import { defineRoute, defineRouteGroup } from "./defineRoute.mjs";
3
3
  import { responseDataSchema } from "./responseData.mjs";
4
4
  import { z } from "zod/mini";
5
5
 
6
- //#region src/translation.ts
6
+ // src/translation.ts
7
7
  const jobIdParamsSchema = z.object({ jobId: z.string().check(z.minLength(1)) });
8
8
  const jobResponseSchema = responseDataSchema(z.unknown());
9
9
  /** Job control routes share the same shape. */
@@ -48,6 +48,5 @@ const translationContract = defineRouteGroup({
48
48
  }
49
49
  });
50
50
 
51
- //#endregion
52
51
  export { translationContract };
53
52
  //# sourceMappingURL=translation.mjs.map
package/dist/esm/user.mjs CHANGED
@@ -3,7 +3,7 @@ import { defineRoute, defineRouteGroup } from "./defineRoute.mjs";
3
3
  import { paginatedResponseSchema, responseDataSchema } from "./responseData.mjs";
4
4
  import { z } from "zod/mini";
5
5
 
6
- //#region src/user.ts
6
+ // src/user.ts
7
7
  /** Mailing lists a user can subscribe to. */
8
8
  const emailsListSchema = z.enum(["newsLetter"]);
9
9
  /** Mailing list names, usable as values (`EmailsList.NEWS_LETTER`). */
@@ -144,6 +144,5 @@ const userContract = defineRouteGroup({
144
144
  }
145
145
  });
146
146
 
147
- //#endregion
148
147
  export { EmailsList, emailsListSchema, userContract, userSchema };
149
148
  //# sourceMappingURL=user.mjs.map
@@ -4,7 +4,6 @@ import { Locale } from "@intlayer/types/allLocales";
4
4
  import { AiProviders } from "@intlayer/types/config";
5
5
  import { KeyPath } from "@intlayer/types/keyPath";
6
6
  import { z } from "zod/mini";
7
- //#region src/ai.d.ts
8
7
  /**
9
8
  * AI settings sent by a client. Provider-specific options (from the AI SDKs)
10
9
  * pass through untouched, so the value is only checked to be an object;
@@ -545,5 +544,5 @@ export type AutocompleteResponse = ResponseData<{
545
544
  export type GetDiscussionsParams = RouteQuerystring<AIRoutes['getDiscussions']>;
546
545
  export type GetDiscussionsResult = PaginatedResponse<DiscussionAPI>;
547
546
  export type GetAIStatsResult = ResponseData<AIStats>;
548
- //#endregion
547
+ export {};
549
548
  //# sourceMappingURL=ai.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ai.d.ts","names":[],"sources":["../../src/ai.ts"],"mappings":";;;;;;;;;;;;YA+BY;EACV,cAAc;EACd;EACA;EACA;;EAEA;EACA;EACA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Ac;EAC7B;;YAEU,mBAAmB,eAAe;YAClC,uBAAuB;EAAe;;YACtC,uBAAuB,iBAAiB;YACxC,uBAAuB,kBAAkB;YACzC,mBAAmB,aAAa"}
@@ -1,7 +1,6 @@
1
1
  import { RouteBodyInput, RouteDefinition, RouteGroup } from "./defineRoute.js";
2
2
  import { ResponseData } from "./responseData.js";
3
3
  import { z } from "zod/mini";
4
- //#region src/analytics.d.ts
5
4
  /** Kind of analytics event sent by the SDK. */
6
5
  export declare const analyticsEventTypeSchema: z.ZodMiniEnum<{
7
6
  content_exposure: "content_exposure";
@@ -374,5 +373,5 @@ export type GetContentStatsResult = ResponseData<ContentStatRow[]>;
374
373
  export type GetExperimentResultsResult = ResponseData<ExperimentResult>;
375
374
  export type GetAudienceResult = ResponseData<AudienceStats>;
376
375
  export type GetPageMetadataResult = ResponseData<PageMetadata>;
377
- //#endregion
376
+ export {};
378
377
  //# sourceMappingURL=analytics.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"analytics.d.ts","names":[],"sources":["../../src/analytics.ts"],"mappings":";;;;;qBASa,0BAAwB,EAAA;;;;;;qBAOxB,8BAA4B,EAAA;;;;;;;;;;;;;;;;;;GAevC,EAAA,KAAA;;qBAGW,qBAAmB,EAAA;;;;;;;;;;qBAWnB,2BAAyB,EAAA;;;;;;;qBAQzB,2BAAyB,EAAA;;;;GAKpC,EAAA,KAAA;cAEI,4BAA0B,EAAA;;;;GAI9B,EAAA,KAAA;qBAEW,qBAAmB,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAY9B,EAAA,KAAA;cAEI,4BAA0B,EAAA;;;;GAI9B,EAAA,KAAA;cAEI,sBAAoB,EAAA;;;;;GAKxB,EAAA,KAAA;cAEI,wBAAsB,EAAA;;;;;;;;;;GAY1B,EAAA,KAAA;cAEI,oBAAkB,EAAA;;;GAGtB,EAAA,KAAA;;qBAGW;kCAoBA;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAAH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;;;GAY9B,EAAA,KAAA;cAEI,4BAA0B,EAAA;;;;GAI9B,EAAA,KAAA;cAEI,sBAAoB,EAAA;;;;;GAKxB,EAAA,KAAA;cAEI,wBAAsB,EAAA;;;;;;;;;;GAY1B,EAAA,KAAA;cAEI,oBAAkB,EAAA;;;GAGtB,EAAA,KAAA;;qBAGW,mB;W,uBAoBAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAAH,KAAG,EAAA;;;;;;;;;;;;;;;;;;;;W,sBAUAA;;MAAH,KAAG,EAAA;;;;;;;;;;;;;;;;;;;;;;W,sBAcUA;;;;;;MAAH,KAAG,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;W,iBAQAA;;MAAH,KAAG,EAAA;;;;;;;;;;;;;;;;;;;;;;;W,sBASAA;;;;;MAAH,KAAG,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;W,iBASAA;;;;;MAAH,KAAG,EAAA;;;;;;;;;;;;;;;;;;;;;;;YAOX,0BAA0B;YAE1B,qBAAqB,EAAE,cAAc;YACrC,yBAAyB,EAAE,cAC9B;YAEG,gBAAgB,EAAE,cAAc;YAChC,sBAAsB,EAAE,cAAc;YACtC,sBAAsB,EAAE,cAAc;YACtC,uBAAuB,EAAE,cAAc;YACvC,gBAAgB,EAAE,cAAc;YAChC,uBAAuB,EAAE,cAAc;YACvC,iBAAiB,EAAE,cAAc;YACjC,mBAAmB,EAAE,cAAc;YACnC,eAAe,EAAE,cAAc;YAE/B,sBAAsB,eAChC;YAEU,wBAAwB;EAAe;;YACvC,6BAA6B,aAAa;YAC1C,wBAAwB,aAAa;YACrC,6BAA6B,aAAa;YAC1C,oBAAoB,aAAa;YACjC,wBAAwB,aAAa"}
@@ -1,7 +1,6 @@
1
1
  import { RouteBodyInput, RouteDefinition, RouteGroup } from "./defineRoute.js";
2
2
  import { PaginatedResponse, ResponseData } from "./responseData.js";
3
3
  import { z } from "zod/mini";
4
- //#region src/asset.d.ts
5
4
  /** Image uploaded to a project (served from the CDN). */
6
5
  export declare const assetSchema: z.ZodMiniObject<{
7
6
  id: z.ZodMiniString<string>;
@@ -203,5 +202,4 @@ export type UploadAssetResult = ResponseData<AssetAPI>;
203
202
  export type UpdateAssetBody = RouteBodyInput<AssetRoutes['updateAsset']>;
204
203
  export type UpdateAssetResult = ResponseData<AssetAPI>;
205
204
  export type DeleteAssetResult = ResponseData<null>;
206
- //#endregion
207
205
  //# sourceMappingURL=asset.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"asset.d.ts","names":[],"sources":["../../src/asset.ts"],"mappings":";;;;;qBAea,aAAW,EAAA;;;;;;;;;;;;;GAkBtB,EAAA,KAAA;;qBAMW;sBAUU;;;;;;MAAH,KAAG,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBASA;;;;;MAAH,KAAG,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAQA;;MAAH,KAAG,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAcA;;;;;;;;;;MAAH,KAAG,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBASA;;;;;MAAH,KAAG,EAAA;;;;;;;;;;;;;;;;;;;;YAOX,sBAAsB;YAEtB,WAAW,EAAE,cAAc;YAC3B,kBAAkB,kBAAkB;YACpC,qBAAqB,aAAa;YAClC,oBAAoB,aAAa;YACjC,kBAAkB,eAAe;YACjC,oBAAoB,aAAa;YACjC,oBAAoB"}
1
+ {"version":3,"file":"asset.d.ts","names":["_$__defineRoute0.RouteDefinition","_$__defineRoute0.RouteGroup"],"sources":["../../src/asset.ts"],"mappings":";;;;qBAea,aAAW,EAAA;;;;;;;;;;;;;GAkBtB,EAAA,KAAA;;qBAMW,e;W,WAUUA;;;;;;MAAH,KAAG,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;W,cASAA;;;;;MAAH,KAAG,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;W,aAQAA;;MAAH,KAAG,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;W,aAcAA;;;;;;;;;;MAAH,KAAG,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;W,aASAA;;;;;MAAH,KAAG,EAAA;;;;;;;;;;;;;;;;;;;;YAOX,sBAAsB;YAEtB,WAAW,EAAE,cAAc;YAC3B,kBAAkB,kBAAkB;YACpC,qBAAqB,aAAa;YAClC,oBAAoB,aAAa;YACjC,kBAAkB,eAAe;YACjC,oBAAoB,aAAa;YACjC,oBAAoB"}
@@ -1,7 +1,6 @@
1
1
  import { RouteBodyInput, RouteDefinition, RouteGroup } from "./defineRoute.js";
2
2
  import { PaginatedResponse, ResponseData } from "./responseData.js";
3
3
  import { z } from "zod/mini";
4
- //#region src/blogComment.d.ts
5
4
  /** Moderation status of a blog comment. */
6
5
  export declare const blogCommentStatusSchema: z.ZodMiniEnum<{
7
6
  approved: "approved";
@@ -237,5 +236,4 @@ export type GetBlogCommentsResult = ResponseData<BlogCommentPublicAPI[]>;
237
236
  export type GetAdminBlogCommentsResult = PaginatedResponse<BlogCommentAPI>;
238
237
  export type UpdateBlogCommentStatusBody = RouteBodyInput<BlogCommentRoutes['updateBlogCommentStatus']>;
239
238
  export type UpdateBlogCommentStatusResult = ResponseData<BlogCommentAPI>;
240
- //#endregion
241
239
  //# sourceMappingURL=blogComment.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"blogComment.d.ts","names":[],"sources":["../../src/blogComment.ts"],"mappings":";;;;;qBAea,yBAAuB,EAAA;;;;;;qBAOvB,yBAAuB,EAAA;;;;;;;;;;;;GAQlC,EAAA,KAAA;;qBAGW,mBAAiB,EAAA;;;;;;;;;;;;;GAG5B,EAAA,KAAA;;qBAKW;8BAeU;;;;;;;;MAAH,KAAG,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCAaA;;;;;;;;;;;;MAAH,KAAG,EAAA;;;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6BAA6B,kBAAkB;YAC/C,8BAA8B,eACxC;YAEU,gCAAgC,aAAa"}
@@ -1,11 +1,9 @@
1
1
  import { RouteDefinition, RouteGroup } from "./defineRoute.js";
2
- import { ResponseData } from "./responseData.js";
3
- import { Locale } from "./intlayer/dist/types/index.js";
4
2
  import { ProjectAPI, ProjectConfigAI } from "./project.js";
5
3
  import { OrganizationAPI } from "./organization.js";
4
+ import { ResponseData } from "./responseData.js";
6
5
  import { UserAPI } from "./user.js";
7
6
  import { z } from "zod/mini";
8
- //#region src/cliSessionToken.d.ts
9
7
  /** REST contract of the CLI session routes (`intlayer login`). */
10
8
  export declare const cliSessionTokenContract: RouteGroup<"/api/cli-session", {
11
9
  readonly createCliSessionToken: RouteDefinition<"POST", "/", {
@@ -49,17 +47,17 @@ export declare const cliSessionTokenContract: RouteGroup<"/api/cli-session", {
49
47
  memberAccess: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniObject<{
50
48
  userId: z.ZodMiniString<string>;
51
49
  allowedEnvironmentIds: z.ZodMiniNullable<z.ZodMiniArray<z.ZodMiniNullable<z.ZodMiniString<string>>>>;
52
- allowedLocales: z.ZodMiniNullable<z.ZodMiniArray<z.ZodMiniCustom<Locale, Locale>>>;
50
+ allowedLocales: z.ZodMiniNullable<z.ZodMiniArray<z.ZodMiniCustom<import("@intlayer/types/allLocales").Locale, import("@intlayer/types/allLocales").Locale>>>;
53
51
  }, z.core.$strip>>>;
54
52
  creatorId: z.ZodMiniString<string>;
55
53
  configuration: z.ZodMiniOptional<z.ZodMiniObject<{
56
54
  internationalization: z.ZodMiniOptional<z.ZodMiniObject<{
57
- locales: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniCustom<Locale, Locale>>>;
58
- defaultLocale: z.ZodMiniOptional<z.ZodMiniCustom<Locale, Locale>>;
55
+ locales: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniCustom<import("@intlayer/types/allLocales").Locale, import("@intlayer/types/allLocales").Locale>>>;
56
+ defaultLocale: z.ZodMiniOptional<z.ZodMiniCustom<import("@intlayer/types/allLocales").Locale, import("@intlayer/types/allLocales").Locale>>;
59
57
  }, z.core.$loose>>;
60
58
  editor: z.ZodMiniOptional<z.ZodMiniObject<{
61
- applicationURL: z.ZodMiniOptional<z.ZodMiniCustom<import("@intlayer/types").URLType, import("@intlayer/types").URLType>>;
62
- cmsURL: z.ZodMiniOptional<z.ZodMiniCustom<import("@intlayer/types").URLType, import("@intlayer/types").URLType>>;
59
+ applicationURL: z.ZodMiniOptional<z.ZodMiniCustom<import("@intlayer/types/config").URLType, import("@intlayer/types/config").URLType>>;
60
+ cmsURL: z.ZodMiniOptional<z.ZodMiniCustom<import("@intlayer/types/config").URLType, import("@intlayer/types/config").URLType>>;
63
61
  }, z.core.$loose>>;
64
62
  ai: z.ZodMiniOptional<z.ZodMiniCustom<ProjectConfigAI, ProjectConfigAI>>;
65
63
  }, z.core.$loose>>;
@@ -122,12 +120,12 @@ export declare const cliSessionTokenContract: RouteGroup<"/api/cli-session", {
122
120
  isDefault: z.ZodMiniBoolean<boolean>;
123
121
  configuration: z.ZodMiniOptional<z.ZodMiniObject<{
124
122
  internationalization: z.ZodMiniOptional<z.ZodMiniObject<{
125
- locales: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniCustom<Locale, Locale>>>;
126
- defaultLocale: z.ZodMiniOptional<z.ZodMiniCustom<Locale, Locale>>;
123
+ locales: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniCustom<import("@intlayer/types/allLocales").Locale, import("@intlayer/types/allLocales").Locale>>>;
124
+ defaultLocale: z.ZodMiniOptional<z.ZodMiniCustom<import("@intlayer/types/allLocales").Locale, import("@intlayer/types/allLocales").Locale>>;
127
125
  }, z.core.$loose>>;
128
126
  editor: z.ZodMiniOptional<z.ZodMiniObject<{
129
- applicationURL: z.ZodMiniOptional<z.ZodMiniCustom<import("@intlayer/types").URLType, import("@intlayer/types").URLType>>;
130
- cmsURL: z.ZodMiniOptional<z.ZodMiniCustom<import("@intlayer/types").URLType, import("@intlayer/types").URLType>>;
127
+ applicationURL: z.ZodMiniOptional<z.ZodMiniCustom<import("@intlayer/types/config").URLType, import("@intlayer/types/config").URLType>>;
128
+ cmsURL: z.ZodMiniOptional<z.ZodMiniCustom<import("@intlayer/types/config").URLType, import("@intlayer/types/config").URLType>>;
131
129
  }, z.core.$loose>>;
132
130
  ai: z.ZodMiniOptional<z.ZodMiniCustom<ProjectConfigAI, ProjectConfigAI>>;
133
131
  }, z.core.$loose>>;
@@ -143,7 +141,7 @@ export declare const cliSessionTokenContract: RouteGroup<"/api/cli-session", {
143
141
  userId: z.ZodMiniString<string>;
144
142
  expiresAt: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
145
143
  allowedEnvironmentIds: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniArray<z.ZodMiniNullable<z.ZodMiniString<string>>>>>;
146
- allowedLocales: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniArray<z.ZodMiniCustom<Locale, Locale>>>>;
144
+ allowedLocales: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniArray<z.ZodMiniCustom<import("@intlayer/types/allLocales").Locale, import("@intlayer/types/allLocales").Locale>>>>;
147
145
  createdAt: z.ZodMiniString<string>;
148
146
  updatedAt: z.ZodMiniString<string>;
149
147
  }, z.core.$loose>>;
@@ -260,5 +258,4 @@ export type GetCliSessionMeResult = ResponseData<{
260
258
  user?: UserAPI | null;
261
259
  organization?: OrganizationAPI | null;
262
260
  }>;
263
- //#endregion
264
261
  //# sourceMappingURL=cliSessionToken.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"cliSessionToken.d.ts","names":[],"sources":["../../src/cliSessionToken.ts"],"mappings":";;;;;;;;;qBASa;kCAUA;;MAAH,KAAG,EAAA;;;;;;;;;;;;;;;;;;;;;4BAYA;;MAAH,KAAG,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAeD,gCAAgC;YAEhC,8BAA8B;EACxC;EACA;;YAEU,wBAAwB;EAClC,SAAS;EACT,OAAO;EACP,eAAe"}
1
+ {"version":3,"file":"cliSessionToken.d.ts","names":["_$__defineRoute0.RouteDefinition","_$__project0.ProjectConfigAI","_$__defineRoute0.RouteGroup"],"sources":["../../src/cliSessionToken.ts"],"mappings":";;;;;;;qBASa,yB;W,uBAUAA;;MAAH,KAAG,EAAA;;;;;;;;;;;;;;;;;;;;;W,iBAYAA;;MAAH,KAAG,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAeD,gCAAgC;YAEhC,8BAA8B;EACxC;EACA;;YAEU,wBAAwB;EAClC,SAAS;EACT,OAAO;EACP,eAAe"}
@@ -1,5 +1,4 @@
1
1
  import { z } from "zod/mini";
2
- //#region src/common.d.ts
3
2
  /** 24-character hexadecimal MongoDB ObjectId, serialized as a string. */
4
3
  export declare const objectIdSchema: z.ZodMiniString<string>;
5
4
  /**
@@ -28,5 +27,4 @@ export declare const typedStringSchema: <Value extends string>() => z.ZodMiniCus
28
27
  export declare const typedValueSchema: <Value>(isValid?: (value: unknown) => boolean) => z.ZodMiniCustom<Value, Value>;
29
28
  /** Whether a value is a plain JSON object (not null, not an array). */
30
29
  export declare const isJSONObject: (value: unknown) => value is Record<string, unknown>;
31
- //#endregion
32
30
  //# sourceMappingURL=common.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"common.d.ts","names":[],"sources":["../../src/common.ts"],"mappings":";;;qBAGa,gBAAc,EAAA;;;;;qBAMd,4BAA0B,EAAA,uBAAA,EAAA,uBAAA,EAAA,aAAA,EAAA;;qBAM1B;EACX,MAAI,EAAA,gBAAA,EAAA,uBAAA,EAAA,uBAAA,EAAA;EACJ,UAAQ,EAAA,gBAAA,EAAA,uBAAA,EAAA,uBAAA,EAAA;;;qBAIG,gBAAc,EAAA;;;;;;qBAOd,oBAAqB,2BAAoB,EAAA,cAAA,OAAA;;;;;;qBAQzC,mBAAoB,OAAK,WAC1B,+BAA0B,EAAA,cAAA,OAAA;;qBAIzB,eAAY,mBAEtB,SAAS"}
1
+ {"version":3,"file":"common.d.ts","names":[],"sources":["../../src/common.ts"],"mappings":";;qBAGa,gBAAc,EAAA;;;;;qBAMd,4BAA0B,EAAA,uBAAA,EAAA,uBAAA,EAAA,aAAA,EAAA;;qBAM1B;EACX,MAAI,EAAA,gBAAA,EAAA,uBAAA,EAAA,uBAAA,EAAA;EACJ,UAAQ,EAAA,gBAAA,EAAA,uBAAA,EAAA,uBAAA,EAAA;;;qBAIG,gBAAc,EAAA;;;;;;qBAOd,oBAAqB,2BAAoB,EAAA,cAAA,OAAA;;;;;;qBAQzC,mBAAoB,OAAK,WAC1B,+BAA0B,EAAA,cAAA,OAAA;;qBAIzB,eAAY,mBAEtB,SAAS"}
@@ -1,5 +1,4 @@
1
1
  import { $ZodType, input, output } from "zod/v4/core";
2
- //#region src/defineRoute.d.ts
3
2
  /** HTTP methods exposed by the Intlayer backend. */
4
3
  export type HttpMethod = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE';
5
4
  /** Zod schemas describing one route's input and output. */
@@ -53,5 +52,5 @@ export type PathParams<Path extends string> = Path extends `${string}:${infer Na
53
52
  * prefix and the path, with `:param` segments replaced and URI-encoded.
54
53
  */
55
54
  export declare const buildRouteURL: <Prefix extends string, Path extends string>(backendURL: string, group: Pick<RouteGroup<Prefix>, 'prefix'>, route: Pick<RouteDefinition<HttpMethod, Path>, 'path'>, ...[params]: keyof PathParams<Path> extends never ? [] : [params: PathParams<Path>]) => string;
56
- //#endregion
55
+ export {};
57
56
  //# sourceMappingURL=defineRoute.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"defineRoute.d.ts","names":[],"sources":["../../src/defineRoute.ts"],"mappings":";;;YAGY;;YAGA;EACV,SAAS;EACT,cAAc;EACd,OAAO;;EAEP,WAAW,QAAQ,eAAe;;;YAIxB,gBACV,eAAe,aAAa,YAC5B,8BACA,gBAAgB,eAAe;EAE/B,QAAQ;;EAER,MAAM;;EAEN;EACA;EACA,SAAS;;;YAIC,WACV,gCACA,eAAe,eAAe,mBAAmB,eAE/C;;EAIF,QAAQ;;EAER;EACA,QAAQ;;;qBAIG,oBACL,eAAe,kBACf,2BACA,gBAAgB,cAAY,OAE3B,gBAAgB,QAAQ,MAAM,aACpC,gBAAgB,QAAQ,MAAM;;qBAGpB,yBACL,6BACA,eAAe,eAAe,kBAAgB,OAE7C,WAAW,QAAQ,YACzB,WAAW,QAAQ;KAEjB,aAAa,UAAU,eAAe,WAAW,OAAO;KACxD,YAAY,UAAU,eAAe,WAAW,MAAM;;YAG/C,UAAU,cAAc,mBAAmB,aACrD;;YAGU,eAAe,cAAc,mBAAmB,YAC1D;;YAGU,YAAY,cAAc,mBAAmB,aACvD;;YAGU,iBAAiB,cAAc,mBAAmB,aAC5D;;YAGU,cAAc,cAAc,mBACtC,qCAAqC,kBAAkB,UACnD,aAAa;;YAIP,eAAe,eAAe,eAAe,uBACtD,cAAc,SAAS,KAAK,OAAO;;YAI1B,WAAW,uBACrB,gCAAgC,cAAc,YACvC,OAAO,mBAAkB,eAAe,UAC3C,gCAAgC,YAC3B,OAAO,mBACV;;;;;qBA8BK,gBAAiB,uBAAuB,qBAAmB,oBACpD,OACX,KAAK,WAAW,oBAAkB,OAClC,KAAK,gBAAgB,YAAY,oBAAc,eACnC,WAAW,4BAEzB,QAAQ,WAAW"}
1
+ {"version":3,"file":"defineRoute.d.ts","names":[],"sources":["../../src/defineRoute.ts"],"mappings":";;YAGY;;YAGA;EACV,SAAS;EACT,cAAc;EACd,OAAO;;EAEP,WAAW,QAAQ,eAAe;;;YAIxB,gBACV,eAAe,aAAa,YAC5B,8BACA,gBAAgB,eAAe;EAE/B,QAAQ;;EAER,MAAM;;EAEN;EACA;EACA,SAAS;;;YAIC,WACV,gCACA,eAAe,eAAe,mBAAmB,eAE/C;;EAIF,QAAQ;;EAER;EACA,QAAQ;;;qBAIG,oBACL,eAAe,kBACf,2BACA,gBAAgB,cAAY,OAE3B,gBAAgB,QAAQ,MAAM,aACpC,gBAAgB,QAAQ,MAAM;;qBAGpB,yBACL,6BACA,eAAe,eAAe,kBAAgB,OAE7C,WAAW,QAAQ,YACzB,WAAW,QAAQ;KAEjB,aAAa,UAAU,eAAe,WAAW,OAAO;KACxD,YAAY,UAAU,eAAe,WAAW,MAAM;;YAG/C,UAAU,cAAc,mBAAmB,aACrD;;YAGU,eAAe,cAAc,mBAAmB,YAC1D;;YAGU,YAAY,cAAc,mBAAmB,aACvD;;YAGU,iBAAiB,cAAc,mBAAmB,aAC5D;;YAGU,cAAc,cAAc,mBACtC,qCAAqC,kBAAkB,UACnD,aAAa;;YAIP,eAAe,eAAe,eAAe,uBACtD,cAAc,SAAS,KAAK,OAAO;;YAI1B,WAAW,uBACrB,gCAAgC,cAAc,YACvC,OAAO,mBAAkB,eAAe,UAC3C,gCAAgC,YAC3B,OAAO,mBACV;;;;;qBA8BK,gBAAiB,uBAAuB,qBAAmB,oBACpD,OACX,KAAK,WAAW,oBAAkB,OAClC,KAAK,gBAAgB,YAAY,oBAAc,eACnC,WAAW,4BAEzB,QAAQ,WAAW"}
@@ -1,6 +1,5 @@
1
1
  import { RouteDefinition, RouteGroup } from "./defineRoute.js";
2
2
  import { z } from "zod/mini";
3
- //#region src/demo.d.ts
4
3
  /** REST contract of the `/api/demo` routes (cloud only). */
5
4
  export declare const demoContract: RouteGroup<"/api/demo", {
6
5
  readonly getDemoSession: RouteDefinition<"GET", "/session", {
@@ -17,5 +16,4 @@ export type DemoRoutes = (typeof demoContract)['routes'];
17
16
  export type GetDemoSessionResult = {
18
17
  ok: boolean;
19
18
  };
20
- //#endregion
21
19
  //# sourceMappingURL=demo.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"demo.d.ts","names":[],"sources":["../../src/demo.ts"],"mappings":";;;;qBAIa;2BAUU;;;MAAH,KAAG,EAAA;;;;;;;YAOX,qBAAqB;YAErB;EAAyB"}
1
+ {"version":3,"file":"demo.d.ts","names":["_$__defineRoute0.RouteDefinition","_$__defineRoute0.RouteGroup"],"sources":["../../src/demo.ts"],"mappings":";;;qBAIa,c;W,gBAUUA;;;MAAH,KAAG,EAAA;;;;;;;YAOX,qBAAqB;YAErB;EAAyB"}
@@ -2,7 +2,6 @@ import { RouteBodyInput, RouteDefinition, RouteGroup, RouteParams, RouteQuerystr
2
2
  import { PaginatedResponse, ResponseData } from "./responseData.js";
3
3
  import { z } from "zod/mini";
4
4
  import { ContentNode, Dictionary } from "@intlayer/types/dictionary";
5
- //#region src/dictionary.d.ts
6
5
  /** Outcome of the last commit of a CMS edit to the source `.content` file. */
7
6
  export type DictionarySourceSync = {
8
7
  status: 'committed' | 'pull-request' | 'up-to-date' | 'file-not-found' | 'unsupported' | 'error';
@@ -356,5 +355,5 @@ export type UpdateDictionaryBody = RouteBodyInput<DictionaryRoutes['updateDictio
356
355
  export type UpdateDictionaryResult = ResponseData<DictionaryAPI>;
357
356
  export type DeleteDictionaryParam = RouteParams<DictionaryRoutes['deleteDictionary']>;
358
357
  export type DeleteDictionaryResult = ResponseData<DictionaryAPI>;
359
- //#endregion
358
+ export {};
360
359
  //# sourceMappingURL=dictionary.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"dictionary.d.ts","names":[],"sources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EU,uBAAuB,eACjC;YAEU,yBAAyB,aAAa;YACtC,wBAAwB,YAClC;YAEU,yBAAyB,aAAa"}
1
+ {"version":3,"file":"dictionary.d.ts","names":["_$__defineRoute0.RouteDefinition","_$__defineRoute0.RouteGroup"],"sources":["../../src/dictionary.ts"],"mappings":";;;;;YAwBY;EACV;;EAQA;EACA;EACA;EACA;;;KAIG;EACH;EACA;EACA;;EAEA;;EAEA;EACA,aAAa;EACb;EACA;;;;;;YAOU,gBAAgB,KAAK,kBAAkB,0BACjD;;qBAOW,kBAAgB,EAAA,cAAA,eAAA;;qBAIhB,uBAAqB,EAAA,cAAA,YAAA;;qBAIrB,mBAAiB,EAAA,cAAA,aAAA;qBASjB,8BAA4B,EAAA;;;;;;;;;;;;;;;;;;;;;;GAYvC,EAAA,KAAA;;qBAKW,oB;W,iBA2BUA;;;;;;;;;;;;;;;;;;;;;;;;;;MAAH,KAAG,EAAA;;;;;;;;;;;;;;;;;;;;;;W,qBAQAA;;MAAH,KAAG,EAAA;;;;;;;;;;;;;;;;;;W,gCASVA;;MAAH,KAAG,EAAA;;;;;;;;;;;;;;;;;;;;;W,uBAmBUA;;;;;;MAAH,KAAG,EAAA;;;;;;;;;;;;;;;;;;W,eAYAA;;;;;;;;MAAH,KAAG,EAAA;;;;;;;;;;;;;;;;;;W,eAqBAA;;;;;;;;;;;;;;;;;;;MAAH,KAAG,EAAA;;;;;;;;;;;;;;;;;;W,kBASAA;;;;;MAAH,KAAG,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;W,kBAUAA;;;;;;MAAH,KAAG,EAAA;;;;;;;;;;;;;;;;;;W,kBASAA;;;;;MAAH,KAAG,EAAA;;;;;;;;;;;;;;;;;;;;YAOX,2BAA2B;YAE3B,6BAA6B,EAAE,cAClC;YAEG,wBAAwB,iBAClC;YAEU,wBAAwB,kBAAkB;YAC1C,4BAA4B;YAC5B,uCAAuC,aACjD;EAAiB;EAAa;;YAEpB,sBAAsB,YAChC;YAEU,qBAAqB,iBAC/B;YAEU,sBAAsB,aAAa;YACnC,6BAA6B,iBACvC;YAEU,8BAA8B,aAAa;YAC3C,oBAAoB,eAC9B;YAEU,sBAAsB,aAAa;YACnC,uBAAuB,eACjC;YAEU,yBAAyB,aAAa;YACtC,wBAAwB,YAClC;YAEU,uBAAuB,eACjC;YAEU,yBAAyB,aAAa;YACtC,wBAAwB,YAClC;YAEU,yBAAyB,aAAa"}
@@ -1,9 +1,7 @@
1
+ import { EnvironmentAPI, ProjectConfigAI } from "./project.js";
1
2
  import { RouteBodyInput, RouteDefinition, RouteGroup, RouteParams } from "./defineRoute.js";
2
3
  import { ResponseData } from "./responseData.js";
3
- import { Locale } from "./intlayer/dist/types/index.js";
4
- import { EnvironmentAPI, ProjectConfigAI } from "./project.js";
5
4
  import { z } from "zod/mini";
6
- //#region src/environment.d.ts
7
5
  /** REST contract of the `/api/project/environment` routes. */
8
6
  export declare const environmentContract: RouteGroup<"/api/project/environment", {
9
7
  readonly addEnvironment: RouteDefinition<"POST", "/", {
@@ -11,12 +9,12 @@ export declare const environmentContract: RouteGroup<"/api/project/environment",
11
9
  name: z.ZodMiniString<string>;
12
10
  configuration: z.ZodMiniOptional<z.ZodMiniObject<{
13
11
  internationalization: z.ZodMiniOptional<z.ZodMiniObject<{
14
- locales: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniCustom<Locale, Locale>>>;
15
- defaultLocale: z.ZodMiniOptional<z.ZodMiniCustom<Locale, Locale>>;
12
+ locales: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniCustom<import("@intlayer/types/allLocales").Locale, import("@intlayer/types/allLocales").Locale>>>;
13
+ defaultLocale: z.ZodMiniOptional<z.ZodMiniCustom<import("@intlayer/types/allLocales").Locale, import("@intlayer/types/allLocales").Locale>>;
16
14
  }, z.core.$loose>>;
17
15
  editor: z.ZodMiniOptional<z.ZodMiniObject<{
18
- applicationURL: z.ZodMiniOptional<z.ZodMiniCustom<import("@intlayer/types").URLType, import("@intlayer/types").URLType>>;
19
- cmsURL: z.ZodMiniOptional<z.ZodMiniCustom<import("@intlayer/types").URLType, import("@intlayer/types").URLType>>;
16
+ applicationURL: z.ZodMiniOptional<z.ZodMiniCustom<import("@intlayer/types/config").URLType, import("@intlayer/types/config").URLType>>;
17
+ cmsURL: z.ZodMiniOptional<z.ZodMiniCustom<import("@intlayer/types/config").URLType, import("@intlayer/types/config").URLType>>;
20
18
  }, z.core.$loose>>;
21
19
  ai: z.ZodMiniOptional<z.ZodMiniCustom<ProjectConfigAI, ProjectConfigAI>>;
22
20
  }, z.core.$loose>>;
@@ -33,12 +31,12 @@ export declare const environmentContract: RouteGroup<"/api/project/environment",
33
31
  isDefault: z.ZodMiniBoolean<boolean>;
34
32
  configuration: z.ZodMiniOptional<z.ZodMiniObject<{
35
33
  internationalization: z.ZodMiniOptional<z.ZodMiniObject<{
36
- locales: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniCustom<Locale, Locale>>>;
37
- defaultLocale: z.ZodMiniOptional<z.ZodMiniCustom<Locale, Locale>>;
34
+ locales: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniCustom<import("@intlayer/types/allLocales").Locale, import("@intlayer/types/allLocales").Locale>>>;
35
+ defaultLocale: z.ZodMiniOptional<z.ZodMiniCustom<import("@intlayer/types/allLocales").Locale, import("@intlayer/types/allLocales").Locale>>;
38
36
  }, z.core.$loose>>;
39
37
  editor: z.ZodMiniOptional<z.ZodMiniObject<{
40
- applicationURL: z.ZodMiniOptional<z.ZodMiniCustom<import("@intlayer/types").URLType, import("@intlayer/types").URLType>>;
41
- cmsURL: z.ZodMiniOptional<z.ZodMiniCustom<import("@intlayer/types").URLType, import("@intlayer/types").URLType>>;
38
+ applicationURL: z.ZodMiniOptional<z.ZodMiniCustom<import("@intlayer/types/config").URLType, import("@intlayer/types/config").URLType>>;
39
+ cmsURL: z.ZodMiniOptional<z.ZodMiniCustom<import("@intlayer/types/config").URLType, import("@intlayer/types/config").URLType>>;
42
40
  }, z.core.$loose>>;
43
41
  ai: z.ZodMiniOptional<z.ZodMiniCustom<ProjectConfigAI, ProjectConfigAI>>;
44
42
  }, z.core.$loose>>;
@@ -65,12 +63,12 @@ export declare const environmentContract: RouteGroup<"/api/project/environment",
65
63
  name: z.ZodMiniOptional<z.ZodMiniString<string>>;
66
64
  configuration: z.ZodMiniOptional<z.ZodMiniObject<{
67
65
  internationalization: z.ZodMiniOptional<z.ZodMiniObject<{
68
- locales: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniCustom<Locale, Locale>>>;
69
- defaultLocale: z.ZodMiniOptional<z.ZodMiniCustom<Locale, Locale>>;
66
+ locales: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniCustom<import("@intlayer/types/allLocales").Locale, import("@intlayer/types/allLocales").Locale>>>;
67
+ defaultLocale: z.ZodMiniOptional<z.ZodMiniCustom<import("@intlayer/types/allLocales").Locale, import("@intlayer/types/allLocales").Locale>>;
70
68
  }, z.core.$loose>>;
71
69
  editor: z.ZodMiniOptional<z.ZodMiniObject<{
72
- applicationURL: z.ZodMiniOptional<z.ZodMiniCustom<import("@intlayer/types").URLType, import("@intlayer/types").URLType>>;
73
- cmsURL: z.ZodMiniOptional<z.ZodMiniCustom<import("@intlayer/types").URLType, import("@intlayer/types").URLType>>;
70
+ applicationURL: z.ZodMiniOptional<z.ZodMiniCustom<import("@intlayer/types/config").URLType, import("@intlayer/types/config").URLType>>;
71
+ cmsURL: z.ZodMiniOptional<z.ZodMiniCustom<import("@intlayer/types/config").URLType, import("@intlayer/types/config").URLType>>;
74
72
  }, z.core.$loose>>;
75
73
  ai: z.ZodMiniOptional<z.ZodMiniCustom<ProjectConfigAI, ProjectConfigAI>>;
76
74
  }, z.core.$loose>>;
@@ -87,12 +85,12 @@ export declare const environmentContract: RouteGroup<"/api/project/environment",
87
85
  isDefault: z.ZodMiniBoolean<boolean>;
88
86
  configuration: z.ZodMiniOptional<z.ZodMiniObject<{
89
87
  internationalization: z.ZodMiniOptional<z.ZodMiniObject<{
90
- locales: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniCustom<Locale, Locale>>>;
91
- defaultLocale: z.ZodMiniOptional<z.ZodMiniCustom<Locale, Locale>>;
88
+ locales: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniCustom<import("@intlayer/types/allLocales").Locale, import("@intlayer/types/allLocales").Locale>>>;
89
+ defaultLocale: z.ZodMiniOptional<z.ZodMiniCustom<import("@intlayer/types/allLocales").Locale, import("@intlayer/types/allLocales").Locale>>;
92
90
  }, z.core.$loose>>;
93
91
  editor: z.ZodMiniOptional<z.ZodMiniObject<{
94
- applicationURL: z.ZodMiniOptional<z.ZodMiniCustom<import("@intlayer/types").URLType, import("@intlayer/types").URLType>>;
95
- cmsURL: z.ZodMiniOptional<z.ZodMiniCustom<import("@intlayer/types").URLType, import("@intlayer/types").URLType>>;
92
+ applicationURL: z.ZodMiniOptional<z.ZodMiniCustom<import("@intlayer/types/config").URLType, import("@intlayer/types/config").URLType>>;
93
+ cmsURL: z.ZodMiniOptional<z.ZodMiniCustom<import("@intlayer/types/config").URLType, import("@intlayer/types/config").URLType>>;
96
94
  }, z.core.$loose>>;
97
95
  ai: z.ZodMiniOptional<z.ZodMiniCustom<ProjectConfigAI, ProjectConfigAI>>;
98
96
  }, z.core.$loose>>;
@@ -127,12 +125,12 @@ export declare const environmentContract: RouteGroup<"/api/project/environment",
127
125
  isDefault: z.ZodMiniBoolean<boolean>;
128
126
  configuration: z.ZodMiniOptional<z.ZodMiniObject<{
129
127
  internationalization: z.ZodMiniOptional<z.ZodMiniObject<{
130
- locales: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniCustom<Locale, Locale>>>;
131
- defaultLocale: z.ZodMiniOptional<z.ZodMiniCustom<Locale, Locale>>;
128
+ locales: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniCustom<import("@intlayer/types/allLocales").Locale, import("@intlayer/types/allLocales").Locale>>>;
129
+ defaultLocale: z.ZodMiniOptional<z.ZodMiniCustom<import("@intlayer/types/allLocales").Locale, import("@intlayer/types/allLocales").Locale>>;
132
130
  }, z.core.$loose>>;
133
131
  editor: z.ZodMiniOptional<z.ZodMiniObject<{
134
- applicationURL: z.ZodMiniOptional<z.ZodMiniCustom<import("@intlayer/types").URLType, import("@intlayer/types").URLType>>;
135
- cmsURL: z.ZodMiniOptional<z.ZodMiniCustom<import("@intlayer/types").URLType, import("@intlayer/types").URLType>>;
132
+ applicationURL: z.ZodMiniOptional<z.ZodMiniCustom<import("@intlayer/types/config").URLType, import("@intlayer/types/config").URLType>>;
133
+ cmsURL: z.ZodMiniOptional<z.ZodMiniCustom<import("@intlayer/types/config").URLType, import("@intlayer/types/config").URLType>>;
136
134
  }, z.core.$loose>>;
137
135
  ai: z.ZodMiniOptional<z.ZodMiniCustom<ProjectConfigAI, ProjectConfigAI>>;
138
136
  }, z.core.$loose>>;
@@ -164,12 +162,12 @@ export declare const environmentContract: RouteGroup<"/api/project/environment",
164
162
  isDefault: z.ZodMiniBoolean<boolean>;
165
163
  configuration: z.ZodMiniOptional<z.ZodMiniObject<{
166
164
  internationalization: z.ZodMiniOptional<z.ZodMiniObject<{
167
- locales: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniCustom<Locale, Locale>>>;
168
- defaultLocale: z.ZodMiniOptional<z.ZodMiniCustom<Locale, Locale>>;
165
+ locales: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniCustom<import("@intlayer/types/allLocales").Locale, import("@intlayer/types/allLocales").Locale>>>;
166
+ defaultLocale: z.ZodMiniOptional<z.ZodMiniCustom<import("@intlayer/types/allLocales").Locale, import("@intlayer/types/allLocales").Locale>>;
169
167
  }, z.core.$loose>>;
170
168
  editor: z.ZodMiniOptional<z.ZodMiniObject<{
171
- applicationURL: z.ZodMiniOptional<z.ZodMiniCustom<import("@intlayer/types").URLType, import("@intlayer/types").URLType>>;
172
- cmsURL: z.ZodMiniOptional<z.ZodMiniCustom<import("@intlayer/types").URLType, import("@intlayer/types").URLType>>;
169
+ applicationURL: z.ZodMiniOptional<z.ZodMiniCustom<import("@intlayer/types/config").URLType, import("@intlayer/types/config").URLType>>;
170
+ cmsURL: z.ZodMiniOptional<z.ZodMiniCustom<import("@intlayer/types/config").URLType, import("@intlayer/types/config").URLType>>;
173
171
  }, z.core.$loose>>;
174
172
  ai: z.ZodMiniOptional<z.ZodMiniCustom<ProjectConfigAI, ProjectConfigAI>>;
175
173
  }, z.core.$loose>>;
@@ -204,12 +202,12 @@ export declare const environmentContract: RouteGroup<"/api/project/environment",
204
202
  isDefault: z.ZodMiniBoolean<boolean>;
205
203
  configuration: z.ZodMiniOptional<z.ZodMiniObject<{
206
204
  internationalization: z.ZodMiniOptional<z.ZodMiniObject<{
207
- locales: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniCustom<Locale, Locale>>>;
208
- defaultLocale: z.ZodMiniOptional<z.ZodMiniCustom<Locale, Locale>>;
205
+ locales: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniCustom<import("@intlayer/types/allLocales").Locale, import("@intlayer/types/allLocales").Locale>>>;
206
+ defaultLocale: z.ZodMiniOptional<z.ZodMiniCustom<import("@intlayer/types/allLocales").Locale, import("@intlayer/types/allLocales").Locale>>;
209
207
  }, z.core.$loose>>;
210
208
  editor: z.ZodMiniOptional<z.ZodMiniObject<{
211
- applicationURL: z.ZodMiniOptional<z.ZodMiniCustom<import("@intlayer/types").URLType, import("@intlayer/types").URLType>>;
212
- cmsURL: z.ZodMiniOptional<z.ZodMiniCustom<import("@intlayer/types").URLType, import("@intlayer/types").URLType>>;
209
+ applicationURL: z.ZodMiniOptional<z.ZodMiniCustom<import("@intlayer/types/config").URLType, import("@intlayer/types/config").URLType>>;
210
+ cmsURL: z.ZodMiniOptional<z.ZodMiniCustom<import("@intlayer/types/config").URLType, import("@intlayer/types/config").URLType>>;
213
211
  }, z.core.$loose>>;
214
212
  ai: z.ZodMiniOptional<z.ZodMiniCustom<ProjectConfigAI, ProjectConfigAI>>;
215
213
  }, z.core.$loose>>;
@@ -281,5 +279,4 @@ export type MigrateEnvironmentResult = ResponseData<{
281
279
  skippedDictionaries: number;
282
280
  configurationMigrated: boolean;
283
281
  }>;
284
- //#endregion
285
282
  //# sourceMappingURL=environment.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"environment.d.ts","names":[],"sources":["../../src/environment.ts"],"mappings":";;;;;;;qBAuBa;2BAaU;;;;;;;;;;;;;;;;MAAH,KAAG,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8BAaA;;;;;;;;;;;;;;;;;;;MAAH,KAAG,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8BASA;;;;;MAAH,KAAG,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yCAQA;;MAAH,KAAG,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8BASA;;;;;MAAH,KAAG,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+BAiBV;;;;;;;;;;;;MAAH,KAAG,EAAA;;;;;;;;;;;;;;;;;;;;;;;;YAcD,4BAA4B;YAE5B,qBAAqB,eAC/B;YAEU,uBAAuB,aAAa;YACpC,0BAA0B,YACpC;YAEU,wBAAwB,eAClC;YAEU,0BAA0B,aAAa;YACvC,0BAA0B,YACpC;YAEU,0BAA0B,aAAa;YACvC,0BAA0B,YACpC;YAEU,0BAA0B,aAAa;YACvC,qCACV,aAAa;YACH,yBAAyB,eACnC;YAEU,2BAA2B;EACrC;EACA;EACA"}
1
+ {"version":3,"file":"environment.d.ts","names":["_$__project0.ProjectConfigAI","_$__defineRoute0.RouteDefinition","_$__defineRoute0.RouteGroup"],"sources":["../../src/environment.ts"],"mappings":";;;;;qBAuBa,qB;W,gBAaUC;;;;;;;;;;;;;;;;MAAH,KAAG,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;W,mBAaAA;;;;;;;;;;;;;;;;;;;MAAH,KAAG,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;W,mBASAA;;;;;MAAH,KAAG,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;W,8BAQAA;;MAAH,KAAG,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;W,mBASAA;;;;;MAAH,KAAG,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;W,oBAiBVA;;;;;;;;;;;;MAAH,KAAG,EAAA;;;;;;;;;;;;;;;;;;;;;;;;YAcD,4BAA4B;YAE5B,qBAAqB,eAC/B;YAEU,uBAAuB,aAAa;YACpC,0BAA0B,YACpC;YAEU,wBAAwB,eAClC;YAEU,0BAA0B,aAAa;YACvC,0BAA0B,YACpC;YAEU,0BAA0B,aAAa;YACvC,0BAA0B,YACpC;YAEU,0BAA0B,aAAa;YACvC,qCACV,aAAa;YACH,yBAAyB,eACnC;YAEU,2BAA2B;EACrC;EACA;EACA"}