@intlayer/backend 8.7.13 → 8.7.14

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.
@@ -39,10 +39,8 @@ const auditDictionary = async ({ fileContent, filePath, locales, defaultLocale,
39
39
  const prompt = CHAT_GPT_PROMPT.replace("{{defaultLocale}}", formatLocaleWithName(defaultLocale)).replace("{{otherLocales}}", `{${otherLocales.map(formatLocaleWithName).join(", ")}}`).replace("{{filePath}}", filePath ?? "").replace("{{applicationContext}}", applicationContext ?? "").replace("{{tagsInstructions}}", formatTagInstructions(tags));
40
40
  const { text: newContent, usage } = await generateText({
41
41
  ...aiConfig,
42
+ system: prompt,
42
43
  messages: [{
43
- role: "system",
44
- content: prompt
45
- }, {
46
44
  role: "user",
47
45
  content: ["**File to Audit:**", fileContent].join("\n")
48
46
  }]
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","names":[],"sources":["../../../../../src/utils/AI/auditDictionary/index.ts"],"sourcesContent":["import { readFileSync } from 'node:fs';\nimport { dirname, join } from 'node:path';\nimport { fileURLToPath } from 'node:url';\nimport {\n type AIConfig,\n type AIOptions,\n extractJson,\n generateText,\n} from '@intlayer/ai';\nimport { DEFAULT_LOCALE } from '@intlayer/config/defaultValues';\nimport { getLocaleName } from '@intlayer/core/localization';\nimport type { Locale } from '@intlayer/types/allLocales';\nimport { logger } from '@logger';\nimport type { Tag } from '@/types/tag.types';\n\nexport type AuditOptions = {\n fileContent: string;\n filePath?: string;\n locales: Locale[];\n defaultLocale: Locale;\n tags: Tag[];\n aiConfig: AIConfig;\n applicationContext?: string;\n};\n\nexport type AuditFileResultData = {\n fileContent: {\n title: string;\n description: string;\n tags: string[];\n };\n tokenUsed: number;\n};\n\nconst __filename = fileURLToPath(import.meta.url);\nconst __dirname = dirname(__filename);\n\n// The prompt template to send to the AI model\nconst CHAT_GPT_PROMPT = readFileSync(join(__dirname, './PROMPT.md'), 'utf-8');\n\nexport const aiDefaultOptions: AIOptions = {\n // Keep default options\n};\n\n/**\n * Format a locale with its name.\n *\n * @param locale - The locale to format.\n * @returns A string in the format \"locale: name\", e.g. \"en: English\".\n */\nconst formatLocaleWithName = (locale: Locale): string => {\n return `${locale}: ${getLocaleName(locale, DEFAULT_LOCALE)}`;\n};\n\n/**\n * Formats tag instructions for the AI prompt.\n * Creates a string with all available tags and their descriptions.\n *\n * @param tags - The list of tags to format.\n * @returns A formatted string with tag instructions.\n */\nconst formatTagInstructions = (tags: Tag[]): string => {\n if (!tags || tags.length === 0) return '';\n\n // Prepare the tag instructions.\n return [\n `Based on the dictionary content, identify specific tags from the list below that would be relevant:`,\n tags.map(({ key, description }) => `- ${key}: ${description}`).join('\\n\\n'),\n ].join('\\n\\n');\n};\n\n/**\n * Audits a content declaration file by constructing a prompt for AI models.\n * The prompt includes details about the project's locales, file paths of content declarations,\n * and requests for identifying issues or inconsistencies.\n */\nexport const auditDictionary = async ({\n fileContent,\n filePath,\n locales,\n defaultLocale,\n tags,\n aiConfig,\n applicationContext,\n}: AuditOptions): Promise<AuditFileResultData | undefined> => {\n const otherLocales = locales.filter((locale) => locale !== defaultLocale);\n\n // Prepare the prompt for AI by replacing placeholders with actual values.\n const prompt = CHAT_GPT_PROMPT.replace(\n '{{defaultLocale}}',\n formatLocaleWithName(defaultLocale)\n )\n .replace(\n '{{otherLocales}}',\n `{${otherLocales.map(formatLocaleWithName).join(', ')}}`\n )\n .replace('{{filePath}}', filePath ?? '')\n .replace('{{applicationContext}}', applicationContext ?? '')\n .replace('{{tagsInstructions}}', formatTagInstructions(tags));\n\n // Use the AI SDK to generate the completion\n const { text: newContent, usage } = await generateText({\n ...aiConfig,\n messages: [\n { role: 'system', content: prompt },\n {\n role: 'user',\n content: ['**File to Audit:**', fileContent].join('\\n'),\n },\n ],\n });\n\n logger.info(`${usage?.totalTokens ?? 0} tokens used in the request`);\n\n return {\n fileContent: extractJson(newContent),\n tokenUsed: usage?.totalTokens ?? 0,\n };\n};\n"],"mappings":";;;;;;;;;AAsCA,MAAM,kBAAkB,aAAa,KAHnB,QADC,cAAc,OAAO,KAAK,IACT,CAGe,EAAE,cAAc,EAAE,QAAQ;AAE7E,MAAa,mBAA8B,EAE1C;;;;;;;AAQD,MAAM,wBAAwB,WAA2B;AACvD,QAAO,GAAG,OAAO,IAAI,cAAc,QAAQ,eAAe;;;;;;;;;AAU5D,MAAM,yBAAyB,SAAwB;AACrD,KAAI,CAAC,QAAQ,KAAK,WAAW,EAAG,QAAO;AAGvC,QAAO,CACL,uGACA,KAAK,KAAK,EAAE,KAAK,kBAAkB,KAAK,IAAI,IAAI,cAAc,CAAC,KAAK,OAAO,CAC5E,CAAC,KAAK,OAAO;;;;;;;AAQhB,MAAa,kBAAkB,OAAO,EACpC,aACA,UACA,SACA,eACA,MACA,UACA,yBAC4D;CAC5D,MAAM,eAAe,QAAQ,QAAQ,WAAW,WAAW,cAAc;CAGzE,MAAM,SAAS,gBAAgB,QAC7B,qBACA,qBAAqB,cAAc,CACpC,CACE,QACC,oBACA,IAAI,aAAa,IAAI,qBAAqB,CAAC,KAAK,KAAK,CAAC,GACvD,CACA,QAAQ,gBAAgB,YAAY,GAAG,CACvC,QAAQ,0BAA0B,sBAAsB,GAAG,CAC3D,QAAQ,wBAAwB,sBAAsB,KAAK,CAAC;CAG/D,MAAM,EAAE,MAAM,YAAY,UAAU,MAAM,aAAa;EACrD,GAAG;EACH,UAAU,CACR;GAAE,MAAM;GAAU,SAAS;GAAQ,EACnC;GACE,MAAM;GACN,SAAS,CAAC,sBAAsB,YAAY,CAAC,KAAK,KAAK;GACxD,CACF;EACF,CAAC;AAEF,QAAO,KAAK,GAAG,OAAO,eAAe,EAAE,6BAA6B;AAEpE,QAAO;EACL,aAAa,YAAY,WAAW;EACpC,WAAW,OAAO,eAAe;EAClC"}
1
+ {"version":3,"file":"index.mjs","names":[],"sources":["../../../../../src/utils/AI/auditDictionary/index.ts"],"sourcesContent":["import { readFileSync } from 'node:fs';\nimport { dirname, join } from 'node:path';\nimport { fileURLToPath } from 'node:url';\nimport {\n type AIConfig,\n type AIOptions,\n extractJson,\n generateText,\n} from '@intlayer/ai';\nimport { DEFAULT_LOCALE } from '@intlayer/config/defaultValues';\nimport { getLocaleName } from '@intlayer/core/localization';\nimport type { Locale } from '@intlayer/types/allLocales';\nimport { logger } from '@logger';\nimport type { Tag } from '@/types/tag.types';\n\nexport type AuditOptions = {\n fileContent: string;\n filePath?: string;\n locales: Locale[];\n defaultLocale: Locale;\n tags: Tag[];\n aiConfig: AIConfig;\n applicationContext?: string;\n};\n\nexport type AuditFileResultData = {\n fileContent: {\n title: string;\n description: string;\n tags: string[];\n };\n tokenUsed: number;\n};\n\nconst __filename = fileURLToPath(import.meta.url);\nconst __dirname = dirname(__filename);\n\n// The prompt template to send to the AI model\nconst CHAT_GPT_PROMPT = readFileSync(join(__dirname, './PROMPT.md'), 'utf-8');\n\nexport const aiDefaultOptions: AIOptions = {\n // Keep default options\n};\n\n/**\n * Format a locale with its name.\n *\n * @param locale - The locale to format.\n * @returns A string in the format \"locale: name\", e.g. \"en: English\".\n */\nconst formatLocaleWithName = (locale: Locale): string => {\n return `${locale}: ${getLocaleName(locale, DEFAULT_LOCALE)}`;\n};\n\n/**\n * Formats tag instructions for the AI prompt.\n * Creates a string with all available tags and their descriptions.\n *\n * @param tags - The list of tags to format.\n * @returns A formatted string with tag instructions.\n */\nconst formatTagInstructions = (tags: Tag[]): string => {\n if (!tags || tags.length === 0) return '';\n\n // Prepare the tag instructions.\n return [\n `Based on the dictionary content, identify specific tags from the list below that would be relevant:`,\n tags.map(({ key, description }) => `- ${key}: ${description}`).join('\\n\\n'),\n ].join('\\n\\n');\n};\n\n/**\n * Audits a content declaration file by constructing a prompt for AI models.\n * The prompt includes details about the project's locales, file paths of content declarations,\n * and requests for identifying issues or inconsistencies.\n */\nexport const auditDictionary = async ({\n fileContent,\n filePath,\n locales,\n defaultLocale,\n tags,\n aiConfig,\n applicationContext,\n}: AuditOptions): Promise<AuditFileResultData | undefined> => {\n const otherLocales = locales.filter((locale) => locale !== defaultLocale);\n\n // Prepare the prompt for AI by replacing placeholders with actual values.\n const prompt = CHAT_GPT_PROMPT.replace(\n '{{defaultLocale}}',\n formatLocaleWithName(defaultLocale)\n )\n .replace(\n '{{otherLocales}}',\n `{${otherLocales.map(formatLocaleWithName).join(', ')}}`\n )\n .replace('{{filePath}}', filePath ?? '')\n .replace('{{applicationContext}}', applicationContext ?? '')\n .replace('{{tagsInstructions}}', formatTagInstructions(tags));\n\n // Use the AI SDK to generate the completion\n const { text: newContent, usage } = await generateText({\n ...aiConfig,\n system: prompt,\n messages: [\n {\n role: 'user',\n content: ['**File to Audit:**', fileContent].join('\\n'),\n },\n ],\n });\n\n logger.info(`${usage?.totalTokens ?? 0} tokens used in the request`);\n\n return {\n fileContent: extractJson(newContent),\n tokenUsed: usage?.totalTokens ?? 0,\n };\n};\n"],"mappings":";;;;;;;;;AAsCA,MAAM,kBAAkB,aAAa,KAHnB,QADC,cAAc,OAAO,KAAK,IACT,CAGe,EAAE,cAAc,EAAE,QAAQ;AAE7E,MAAa,mBAA8B,EAE1C;;;;;;;AAQD,MAAM,wBAAwB,WAA2B;AACvD,QAAO,GAAG,OAAO,IAAI,cAAc,QAAQ,eAAe;;;;;;;;;AAU5D,MAAM,yBAAyB,SAAwB;AACrD,KAAI,CAAC,QAAQ,KAAK,WAAW,EAAG,QAAO;AAGvC,QAAO,CACL,uGACA,KAAK,KAAK,EAAE,KAAK,kBAAkB,KAAK,IAAI,IAAI,cAAc,CAAC,KAAK,OAAO,CAC5E,CAAC,KAAK,OAAO;;;;;;;AAQhB,MAAa,kBAAkB,OAAO,EACpC,aACA,UACA,SACA,eACA,MACA,UACA,yBAC4D;CAC5D,MAAM,eAAe,QAAQ,QAAQ,WAAW,WAAW,cAAc;CAGzE,MAAM,SAAS,gBAAgB,QAC7B,qBACA,qBAAqB,cAAc,CACpC,CACE,QACC,oBACA,IAAI,aAAa,IAAI,qBAAqB,CAAC,KAAK,KAAK,CAAC,GACvD,CACA,QAAQ,gBAAgB,YAAY,GAAG,CACvC,QAAQ,0BAA0B,sBAAsB,GAAG,CAC3D,QAAQ,wBAAwB,sBAAsB,KAAK,CAAC;CAG/D,MAAM,EAAE,MAAM,YAAY,UAAU,MAAM,aAAa;EACrD,GAAG;EACH,QAAQ;EACR,UAAU,CACR;GACE,MAAM;GACN,SAAS,CAAC,sBAAsB,YAAY,CAAC,KAAK,KAAK;GACxD,CACF;EACF,CAAC;AAEF,QAAO,KAAK,GAAG,OAAO,eAAe,EAAE,6BAA6B;AAEpE,QAAO;EACL,aAAa,YAAY,WAAW;EACpC,WAAW,OAAO,eAAe;EAClC"}
@@ -43,10 +43,8 @@ const auditDictionaryField = async ({ fileContent, applicationContext, locales,
43
43
  }
44
44
  const { text: newContent, usage } = await generateText({
45
45
  ...aiConfig,
46
+ system: prompt,
46
47
  messages: [{
47
- role: "system",
48
- content: prompt
49
- }, {
50
48
  role: "user",
51
49
  content: ["**File to Audit:**", fileContent].join("\n")
52
50
  }]
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","names":[],"sources":["../../../../../src/utils/AI/auditDictionaryField/index.ts"],"sourcesContent":["import { readFileSync } from 'node:fs';\nimport { dirname, join } from 'node:path';\nimport { fileURLToPath } from 'node:url';\nimport type { AIConfig, AIOptions } from '@intlayer/ai';\nimport { generateText } from '@intlayer/ai';\nimport { getLocaleName } from '@intlayer/core/localization';\nimport type { KeyPath } from '@intlayer/types/keyPath';\nimport type { Locale } from '@intlayer/types/allLocales';\nimport * as Locales from '@intlayer/types/locales';\nimport { logger } from '@logger';\nimport type { Tag } from '@/types/tag.types';\n\nconst __filename = fileURLToPath(import.meta.url);\nconst __dirname = dirname(__filename);\n\nexport type AuditDictionaryFieldOptions = {\n fileContent: string;\n locales: Locale[];\n keyPath: KeyPath[];\n tags: Tag[];\n aiConfig: AIConfig;\n applicationContext?: string;\n};\n\nexport type AuditDictionaryFieldResultData = {\n fileContent: string;\n tokenUsed: number;\n};\n\n// The prompt template to send to the AI model\nconst CHAT_GPT_PROMPT = readFileSync(join(__dirname, './PROMPT.md'), 'utf-8');\n\nexport const aiDefaultOptions: AIOptions = {\n // Keep default options\n};\n\n/**\n * Format a locale with its name.\n *\n * @param locale - The locale to format.\n * @returns A string in the format \"locale: name\", e.g. \"en: English\".\n */\nconst formatLocaleWithName = (locale: Locale): string => {\n return `${locale}: ${getLocaleName(locale, Locales.ENGLISH)}`;\n};\n\n/**\n * Formats tag instructions for the AI prompt.\n *\n * @param tags - Array of tags to format\n * @returns A formatted string with tag instructions\n */\nconst formatTagInstructions = (tags: Tag[]): string => {\n if (!tags || tags.length === 0) {\n return '';\n }\n\n return `Based on the dictionary content, identify specific tags from the list below that would be relevant:\n \n${tags.map(({ key, description }) => `- ${key}: ${description}`).join('\\n\\n')}`;\n};\n\n/**\n * Audits a content declaration file by constructing a prompt for AI models.\n * The prompt includes details about the project's locales, file paths of content declarations,\n * and requests for identifying issues or inconsistencies.\n */\nexport const auditDictionaryField = async ({\n fileContent,\n applicationContext,\n locales,\n keyPath,\n tags,\n aiConfig,\n}: AuditDictionaryFieldOptions): Promise<\n AuditDictionaryFieldResultData | undefined\n> => {\n // Prepare the prompt for AI by replacing placeholders with actual values.\n const prompt = CHAT_GPT_PROMPT.replace(\n '{{otherLocales}}',\n `{${locales.map(formatLocaleWithName).join(', ')}}`\n )\n .replace('{{keyPath}}', JSON.stringify(keyPath))\n .replace('{{applicationContext}}', applicationContext ?? '')\n .replace('{{tagsInstructions}}', formatTagInstructions(tags));\n\n if (!aiConfig) {\n logger.error('Failed to configure AI model');\n return undefined;\n }\n\n // Use the AI SDK to generate the completion\n const { text: newContent, usage } = await generateText({\n ...aiConfig,\n messages: [\n { role: 'system', content: prompt },\n {\n role: 'user',\n content: ['**File to Audit:**', fileContent].join('\\n'),\n },\n ],\n });\n\n logger.info(`${usage?.totalTokens ?? 0} tokens used in the request`);\n\n return {\n fileContent: newContent,\n tokenUsed: usage?.totalTokens ?? 0,\n };\n};\n"],"mappings":";;;;;;;;;AA8BA,MAAM,kBAAkB,aAAa,KAjBnB,QADC,cAAc,OAAO,KAAK,IACT,CAiBe,EAAE,cAAc,EAAE,QAAQ;AAE7E,MAAa,mBAA8B,EAE1C;;;;;;;AAQD,MAAM,wBAAwB,WAA2B;AACvD,QAAO,GAAG,OAAO,IAAI,cAAc,QAAQ,QAAQ,QAAQ;;;;;;;;AAS7D,MAAM,yBAAyB,SAAwB;AACrD,KAAI,CAAC,QAAQ,KAAK,WAAW,EAC3B,QAAO;AAGT,QAAO;;EAEP,KAAK,KAAK,EAAE,KAAK,kBAAkB,KAAK,IAAI,IAAI,cAAc,CAAC,KAAK,OAAO;;;;;;;AAQ7E,MAAa,uBAAuB,OAAO,EACzC,aACA,oBACA,SACA,SACA,MACA,eAGG;CAEH,MAAM,SAAS,gBAAgB,QAC7B,oBACA,IAAI,QAAQ,IAAI,qBAAqB,CAAC,KAAK,KAAK,CAAC,GAClD,CACE,QAAQ,eAAe,KAAK,UAAU,QAAQ,CAAC,CAC/C,QAAQ,0BAA0B,sBAAsB,GAAG,CAC3D,QAAQ,wBAAwB,sBAAsB,KAAK,CAAC;AAE/D,KAAI,CAAC,UAAU;AACb,SAAO,MAAM,+BAA+B;AAC5C;;CAIF,MAAM,EAAE,MAAM,YAAY,UAAU,MAAM,aAAa;EACrD,GAAG;EACH,UAAU,CACR;GAAE,MAAM;GAAU,SAAS;GAAQ,EACnC;GACE,MAAM;GACN,SAAS,CAAC,sBAAsB,YAAY,CAAC,KAAK,KAAK;GACxD,CACF;EACF,CAAC;AAEF,QAAO,KAAK,GAAG,OAAO,eAAe,EAAE,6BAA6B;AAEpE,QAAO;EACL,aAAa;EACb,WAAW,OAAO,eAAe;EAClC"}
1
+ {"version":3,"file":"index.mjs","names":[],"sources":["../../../../../src/utils/AI/auditDictionaryField/index.ts"],"sourcesContent":["import { readFileSync } from 'node:fs';\nimport { dirname, join } from 'node:path';\nimport { fileURLToPath } from 'node:url';\nimport type { AIConfig, AIOptions } from '@intlayer/ai';\nimport { generateText } from '@intlayer/ai';\nimport { getLocaleName } from '@intlayer/core/localization';\nimport type { Locale } from '@intlayer/types/allLocales';\nimport type { KeyPath } from '@intlayer/types/keyPath';\nimport * as Locales from '@intlayer/types/locales';\nimport { logger } from '@logger';\nimport type { Tag } from '@/types/tag.types';\n\nconst __filename = fileURLToPath(import.meta.url);\nconst __dirname = dirname(__filename);\n\nexport type AuditDictionaryFieldOptions = {\n fileContent: string;\n locales: Locale[];\n keyPath: KeyPath[];\n tags: Tag[];\n aiConfig: AIConfig;\n applicationContext?: string;\n};\n\nexport type AuditDictionaryFieldResultData = {\n fileContent: string;\n tokenUsed: number;\n};\n\n// The prompt template to send to the AI model\nconst CHAT_GPT_PROMPT = readFileSync(join(__dirname, './PROMPT.md'), 'utf-8');\n\nexport const aiDefaultOptions: AIOptions = {\n // Keep default options\n};\n\n/**\n * Format a locale with its name.\n *\n * @param locale - The locale to format.\n * @returns A string in the format \"locale: name\", e.g. \"en: English\".\n */\nconst formatLocaleWithName = (locale: Locale): string => {\n return `${locale}: ${getLocaleName(locale, Locales.ENGLISH)}`;\n};\n\n/**\n * Formats tag instructions for the AI prompt.\n *\n * @param tags - Array of tags to format\n * @returns A formatted string with tag instructions\n */\nconst formatTagInstructions = (tags: Tag[]): string => {\n if (!tags || tags.length === 0) {\n return '';\n }\n\n return `Based on the dictionary content, identify specific tags from the list below that would be relevant:\n \n${tags.map(({ key, description }) => `- ${key}: ${description}`).join('\\n\\n')}`;\n};\n\n/**\n * Audits a content declaration file by constructing a prompt for AI models.\n * The prompt includes details about the project's locales, file paths of content declarations,\n * and requests for identifying issues or inconsistencies.\n */\nexport const auditDictionaryField = async ({\n fileContent,\n applicationContext,\n locales,\n keyPath,\n tags,\n aiConfig,\n}: AuditDictionaryFieldOptions): Promise<\n AuditDictionaryFieldResultData | undefined\n> => {\n // Prepare the prompt for AI by replacing placeholders with actual values.\n const prompt = CHAT_GPT_PROMPT.replace(\n '{{otherLocales}}',\n `{${locales.map(formatLocaleWithName).join(', ')}}`\n )\n .replace('{{keyPath}}', JSON.stringify(keyPath))\n .replace('{{applicationContext}}', applicationContext ?? '')\n .replace('{{tagsInstructions}}', formatTagInstructions(tags));\n\n if (!aiConfig) {\n logger.error('Failed to configure AI model');\n return undefined;\n }\n\n // Use the AI SDK to generate the completion\n const { text: newContent, usage } = await generateText({\n ...aiConfig,\n system: prompt,\n messages: [\n {\n role: 'user',\n content: ['**File to Audit:**', fileContent].join('\\n'),\n },\n ],\n });\n\n logger.info(`${usage?.totalTokens ?? 0} tokens used in the request`);\n\n return {\n fileContent: newContent,\n tokenUsed: usage?.totalTokens ?? 0,\n };\n};\n"],"mappings":";;;;;;;;;AA8BA,MAAM,kBAAkB,aAAa,KAjBnB,QADC,cAAc,OAAO,KAAK,IACT,CAiBe,EAAE,cAAc,EAAE,QAAQ;AAE7E,MAAa,mBAA8B,EAE1C;;;;;;;AAQD,MAAM,wBAAwB,WAA2B;AACvD,QAAO,GAAG,OAAO,IAAI,cAAc,QAAQ,QAAQ,QAAQ;;;;;;;;AAS7D,MAAM,yBAAyB,SAAwB;AACrD,KAAI,CAAC,QAAQ,KAAK,WAAW,EAC3B,QAAO;AAGT,QAAO;;EAEP,KAAK,KAAK,EAAE,KAAK,kBAAkB,KAAK,IAAI,IAAI,cAAc,CAAC,KAAK,OAAO;;;;;;;AAQ7E,MAAa,uBAAuB,OAAO,EACzC,aACA,oBACA,SACA,SACA,MACA,eAGG;CAEH,MAAM,SAAS,gBAAgB,QAC7B,oBACA,IAAI,QAAQ,IAAI,qBAAqB,CAAC,KAAK,KAAK,CAAC,GAClD,CACE,QAAQ,eAAe,KAAK,UAAU,QAAQ,CAAC,CAC/C,QAAQ,0BAA0B,sBAAsB,GAAG,CAC3D,QAAQ,wBAAwB,sBAAsB,KAAK,CAAC;AAE/D,KAAI,CAAC,UAAU;AACb,SAAO,MAAM,+BAA+B;AAC5C;;CAIF,MAAM,EAAE,MAAM,YAAY,UAAU,MAAM,aAAa;EACrD,GAAG;EACH,QAAQ;EACR,UAAU,CACR;GACE,MAAM;GACN,SAAS,CAAC,sBAAsB,YAAY,CAAC,KAAK,KAAK;GACxD,CACF;EACF,CAAC;AAEF,QAAO,KAAK,GAAG,OAAO,eAAe,EAAE,6BAA6B;AAEpE,QAAO;EACL,aAAa;EACb,WAAW,OAAO,eAAe;EAClC"}
@@ -15,10 +15,8 @@ const auditTag = async ({ dictionaries, tag, aiConfig, applicationContext }) =>
15
15
  const prompt = CHAT_GPT_PROMPT.replace("{{tag.description}}", tag.description ?? "").replace("{{tag.key}}", tag.key).replace("{{applicationContext}}", applicationContext ?? "");
16
16
  const { text: newContent, usage } = await generateText({
17
17
  ...aiConfig,
18
+ system: prompt,
18
19
  messages: [{
19
- role: "system",
20
- content: prompt
21
- }, {
22
20
  role: "user",
23
21
  content: [
24
22
  "**Tag to audit:**",
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","names":[],"sources":["../../../../../src/utils/AI/auditTag/index.ts"],"sourcesContent":["import { readFileSync } from 'node:fs';\nimport { dirname, join } from 'node:path';\nimport { fileURLToPath } from 'node:url';\nimport {\n type AIConfig,\n type AIOptions,\n extractJson,\n generateText,\n} from '@intlayer/ai';\nimport { logger } from '@logger';\nimport type { Dictionary } from '@/types/dictionary.types';\nimport type { TagAPI } from '@/types/tag.types';\n\nexport type AuditOptions = {\n dictionaries: Dictionary[];\n tag: TagAPI;\n aiConfig: AIConfig;\n applicationContext?: string;\n};\n\nexport type TranslateJSONResultData = {\n fileContent: string;\n tokenUsed: number;\n};\n\nconst __filename = fileURLToPath(import.meta.url);\nconst __dirname = dirname(__filename);\n\n// The prompt template to send to AI models\nconst CHAT_GPT_PROMPT = readFileSync(join(__dirname, './PROMPT.md'), 'utf-8');\n\nexport const aiDefaultOptions: AIOptions = {\n // Keep default options\n};\n\n/**\n * Audits a tag by constructing a prompt for AI models.\n * The prompt includes details about the tag and related dictionaries.\n */\nexport const auditTag = async ({\n dictionaries,\n tag,\n aiConfig,\n applicationContext,\n}: AuditOptions): Promise<TranslateJSONResultData | undefined> => {\n // Prepare the prompt for AI by replacing placeholders with actual values.\n const prompt = CHAT_GPT_PROMPT.replace(\n '{{tag.description}}',\n tag.description ?? ''\n )\n .replace('{{tag.key}}', tag.key)\n .replace('{{applicationContext}}', applicationContext ?? '');\n\n // Use the AI SDK to generate the completion\n const { text: newContent, usage } = await generateText({\n ...aiConfig,\n messages: [\n { role: 'system', content: prompt },\n {\n role: 'user',\n content: [\n '**Tag to audit:**',\n 'This is the tag that you should consider to audit:',\n JSON.stringify(tag),\n ].join('\\n'),\n },\n ],\n });\n\n logger.info(`${usage?.totalTokens ?? 0} tokens used in the request`);\n\n return {\n fileContent: extractJson(newContent),\n tokenUsed: usage?.totalTokens ?? 0,\n };\n};\n"],"mappings":";;;;;;;AA6BA,MAAM,kBAAkB,aAAa,KAHnB,QADC,cAAc,OAAO,KAAK,IACT,CAGe,EAAE,cAAc,EAAE,QAAQ;AAE7E,MAAa,mBAA8B,EAE1C;;;;;AAMD,MAAa,WAAW,OAAO,EAC7B,cACA,KACA,UACA,yBACgE;CAEhE,MAAM,SAAS,gBAAgB,QAC7B,uBACA,IAAI,eAAe,GACpB,CACE,QAAQ,eAAe,IAAI,IAAI,CAC/B,QAAQ,0BAA0B,sBAAsB,GAAG;CAG9D,MAAM,EAAE,MAAM,YAAY,UAAU,MAAM,aAAa;EACrD,GAAG;EACH,UAAU,CACR;GAAE,MAAM;GAAU,SAAS;GAAQ,EACnC;GACE,MAAM;GACN,SAAS;IACP;IACA;IACA,KAAK,UAAU,IAAI;IACpB,CAAC,KAAK,KAAK;GACb,CACF;EACF,CAAC;AAEF,QAAO,KAAK,GAAG,OAAO,eAAe,EAAE,6BAA6B;AAEpE,QAAO;EACL,aAAa,YAAY,WAAW;EACpC,WAAW,OAAO,eAAe;EAClC"}
1
+ {"version":3,"file":"index.mjs","names":[],"sources":["../../../../../src/utils/AI/auditTag/index.ts"],"sourcesContent":["import { readFileSync } from 'node:fs';\nimport { dirname, join } from 'node:path';\nimport { fileURLToPath } from 'node:url';\nimport {\n type AIConfig,\n type AIOptions,\n extractJson,\n generateText,\n} from '@intlayer/ai';\nimport { logger } from '@logger';\nimport type { Dictionary } from '@/types/dictionary.types';\nimport type { TagAPI } from '@/types/tag.types';\n\nexport type AuditOptions = {\n dictionaries: Dictionary[];\n tag: TagAPI;\n aiConfig: AIConfig;\n applicationContext?: string;\n};\n\nexport type TranslateJSONResultData = {\n fileContent: string;\n tokenUsed: number;\n};\n\nconst __filename = fileURLToPath(import.meta.url);\nconst __dirname = dirname(__filename);\n\n// The prompt template to send to AI models\nconst CHAT_GPT_PROMPT = readFileSync(join(__dirname, './PROMPT.md'), 'utf-8');\n\nexport const aiDefaultOptions: AIOptions = {\n // Keep default options\n};\n\n/**\n * Audits a tag by constructing a prompt for AI models.\n * The prompt includes details about the tag and related dictionaries.\n */\nexport const auditTag = async ({\n dictionaries,\n tag,\n aiConfig,\n applicationContext,\n}: AuditOptions): Promise<TranslateJSONResultData | undefined> => {\n // Prepare the prompt for AI by replacing placeholders with actual values.\n const prompt = CHAT_GPT_PROMPT.replace(\n '{{tag.description}}',\n tag.description ?? ''\n )\n .replace('{{tag.key}}', tag.key)\n .replace('{{applicationContext}}', applicationContext ?? '');\n\n // Use the AI SDK to generate the completion\n const { text: newContent, usage } = await generateText({\n ...aiConfig,\n system: prompt,\n messages: [\n {\n role: 'user',\n content: [\n '**Tag to audit:**',\n 'This is the tag that you should consider to audit:',\n JSON.stringify(tag),\n ].join('\\n'),\n },\n ],\n });\n\n logger.info(`${usage?.totalTokens ?? 0} tokens used in the request`);\n\n return {\n fileContent: extractJson(newContent),\n tokenUsed: usage?.totalTokens ?? 0,\n };\n};\n"],"mappings":";;;;;;;AA6BA,MAAM,kBAAkB,aAAa,KAHnB,QADC,cAAc,OAAO,KAAK,IACT,CAGe,EAAE,cAAc,EAAE,QAAQ;AAE7E,MAAa,mBAA8B,EAE1C;;;;;AAMD,MAAa,WAAW,OAAO,EAC7B,cACA,KACA,UACA,yBACgE;CAEhE,MAAM,SAAS,gBAAgB,QAC7B,uBACA,IAAI,eAAe,GACpB,CACE,QAAQ,eAAe,IAAI,IAAI,CAC/B,QAAQ,0BAA0B,sBAAsB,GAAG;CAG9D,MAAM,EAAE,MAAM,YAAY,UAAU,MAAM,aAAa;EACrD,GAAG;EACH,QAAQ;EACR,UAAU,CACR;GACE,MAAM;GACN,SAAS;IACP;IACA;IACA,KAAK,UAAU,IAAI;IACpB,CAAC,KAAK,KAAK;GACb,CACF;EACF,CAAC;AAEF,QAAO,KAAK,GAAG,OAAO,eAAe,EAAE,6BAA6B;AAEpE,QAAO;EACL,aAAa,YAAY,WAAW;EACpC,WAAW,OAAO,eAAe;EAClC"}
@@ -20,10 +20,8 @@ const autocomplete = async ({ text, aiConfig, applicationContext, contextBefore,
20
20
  const prompt = CHAT_GPT_PROMPT.replace("{{applicationContext}}", applicationContext ?? "").replace("{{contextBefore}}", contextBefore ?? "").replace("{{currentLine}}", currentLine ?? "").replace("{{contextAfter}}", contextAfter ?? "");
21
21
  const { text: newContent, usage } = await generateText({
22
22
  ...aiConfig,
23
+ system: prompt,
23
24
  messages: [{
24
- role: "system",
25
- content: prompt
26
- }, {
27
25
  role: "assistant",
28
26
  content: text
29
27
  }]
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","names":[],"sources":["../../../../../src/utils/AI/autocomplete/index.ts"],"sourcesContent":["import { readFileSync } from 'node:fs';\nimport { dirname, join } from 'node:path';\nimport { fileURLToPath } from 'node:url';\nimport {\n type AIConfig,\n type AIOptions,\n AIProvider,\n generateText,\n} from '@intlayer/ai';\nimport { logger } from '@logger';\n\nexport type AutocompleteOptions = {\n text: string;\n aiConfig: AIConfig;\n applicationContext?: string;\n contextBefore?: string;\n currentLine?: string;\n contextAfter?: string;\n};\n\nexport type AutocompleteFileResultData = {\n autocompletion: string;\n tokenUsed: number;\n};\n\nconst __filename = fileURLToPath(import.meta.url);\nconst __dirname = dirname(__filename);\n\n// The prompt template to send to the AI model\nconst CHAT_GPT_PROMPT = readFileSync(join(__dirname, './PROMPT.md'), 'utf-8');\n\nexport const aiDefaultOptions: AIOptions = {\n provider: AIProvider.OPENAI,\n model: 'gpt-4o-mini',\n temperature: 0.7,\n};\n\n/**\n * Autocompletes a content declaration file by constructing a prompt for AI models.\n * The prompt includes details about the project's locales, file paths of content declarations,\n * and requests for identifying issues or inconsistencies.\n */\nexport const autocomplete = async ({\n text,\n aiConfig,\n applicationContext,\n contextBefore,\n currentLine,\n contextAfter,\n}: AutocompleteOptions): Promise<AutocompleteFileResultData | undefined> => {\n // Prepare the prompt for AI by replacing placeholders with actual values.\n const prompt = CHAT_GPT_PROMPT.replace(\n '{{applicationContext}}',\n applicationContext ?? ''\n )\n .replace('{{contextBefore}}', contextBefore ?? '')\n .replace('{{currentLine}}', currentLine ?? '')\n .replace('{{contextAfter}}', contextAfter ?? '');\n\n // Use the AI SDK to generate the completion\n const { text: newContent, usage } = await generateText({\n ...aiConfig,\n messages: [\n { role: 'system', content: prompt },\n { role: 'assistant', content: text },\n ],\n });\n\n logger.info(`${usage?.totalTokens ?? 0} tokens used in the request`);\n\n return {\n autocompletion: newContent,\n tokenUsed: usage?.totalTokens ?? 0,\n };\n};\n"],"mappings":";;;;;;;AA6BA,MAAM,kBAAkB,aAAa,KAHnB,QADC,cAAc,OAAO,KAAK,IACT,CAGe,EAAE,cAAc,EAAE,QAAQ;AAE7E,MAAa,mBAA8B;CACzC,UAAU,WAAW;CACrB,OAAO;CACP,aAAa;CACd;;;;;;AAOD,MAAa,eAAe,OAAO,EACjC,MACA,UACA,oBACA,eACA,aACA,mBAC0E;CAE1E,MAAM,SAAS,gBAAgB,QAC7B,0BACA,sBAAsB,GACvB,CACE,QAAQ,qBAAqB,iBAAiB,GAAG,CACjD,QAAQ,mBAAmB,eAAe,GAAG,CAC7C,QAAQ,oBAAoB,gBAAgB,GAAG;CAGlD,MAAM,EAAE,MAAM,YAAY,UAAU,MAAM,aAAa;EACrD,GAAG;EACH,UAAU,CACR;GAAE,MAAM;GAAU,SAAS;GAAQ,EACnC;GAAE,MAAM;GAAa,SAAS;GAAM,CACrC;EACF,CAAC;AAEF,QAAO,KAAK,GAAG,OAAO,eAAe,EAAE,6BAA6B;AAEpE,QAAO;EACL,gBAAgB;EAChB,WAAW,OAAO,eAAe;EAClC"}
1
+ {"version":3,"file":"index.mjs","names":[],"sources":["../../../../../src/utils/AI/autocomplete/index.ts"],"sourcesContent":["import { readFileSync } from 'node:fs';\nimport { dirname, join } from 'node:path';\nimport { fileURLToPath } from 'node:url';\nimport {\n type AIConfig,\n type AIOptions,\n AIProvider,\n generateText,\n} from '@intlayer/ai';\nimport { logger } from '@logger';\n\nexport type AutocompleteOptions = {\n text: string;\n aiConfig: AIConfig;\n applicationContext?: string;\n contextBefore?: string;\n currentLine?: string;\n contextAfter?: string;\n};\n\nexport type AutocompleteFileResultData = {\n autocompletion: string;\n tokenUsed: number;\n};\n\nconst __filename = fileURLToPath(import.meta.url);\nconst __dirname = dirname(__filename);\n\n// The prompt template to send to the AI model\nconst CHAT_GPT_PROMPT = readFileSync(join(__dirname, './PROMPT.md'), 'utf-8');\n\nexport const aiDefaultOptions: AIOptions = {\n provider: AIProvider.OPENAI,\n model: 'gpt-4o-mini',\n temperature: 0.7,\n};\n\n/**\n * Autocompletes a content declaration file by constructing a prompt for AI models.\n * The prompt includes details about the project's locales, file paths of content declarations,\n * and requests for identifying issues or inconsistencies.\n */\nexport const autocomplete = async ({\n text,\n aiConfig,\n applicationContext,\n contextBefore,\n currentLine,\n contextAfter,\n}: AutocompleteOptions): Promise<AutocompleteFileResultData | undefined> => {\n // Prepare the prompt for AI by replacing placeholders with actual values.\n const prompt = CHAT_GPT_PROMPT.replace(\n '{{applicationContext}}',\n applicationContext ?? ''\n )\n .replace('{{contextBefore}}', contextBefore ?? '')\n .replace('{{currentLine}}', currentLine ?? '')\n .replace('{{contextAfter}}', contextAfter ?? '');\n\n // Use the AI SDK to generate the completion\n const { text: newContent, usage } = await generateText({\n ...aiConfig,\n system: prompt,\n messages: [{ role: 'assistant', content: text }],\n });\n\n logger.info(`${usage?.totalTokens ?? 0} tokens used in the request`);\n\n return {\n autocompletion: newContent,\n tokenUsed: usage?.totalTokens ?? 0,\n };\n};\n"],"mappings":";;;;;;;AA6BA,MAAM,kBAAkB,aAAa,KAHnB,QADC,cAAc,OAAO,KAAK,IACT,CAGe,EAAE,cAAc,EAAE,QAAQ;AAE7E,MAAa,mBAA8B;CACzC,UAAU,WAAW;CACrB,OAAO;CACP,aAAa;CACd;;;;;;AAOD,MAAa,eAAe,OAAO,EACjC,MACA,UACA,oBACA,eACA,aACA,mBAC0E;CAE1E,MAAM,SAAS,gBAAgB,QAC7B,0BACA,sBAAsB,GACvB,CACE,QAAQ,qBAAqB,iBAAiB,GAAG,CACjD,QAAQ,mBAAmB,eAAe,GAAG,CAC7C,QAAQ,oBAAoB,gBAAgB,GAAG;CAGlD,MAAM,EAAE,MAAM,YAAY,UAAU,MAAM,aAAa;EACrD,GAAG;EACH,QAAQ;EACR,UAAU,CAAC;GAAE,MAAM;GAAa,SAAS;GAAM,CAAC;EACjD,CAAC;AAEF,QAAO,KAAK,GAAG,OAAO,eAAe,EAAE,6BAA6B;AAEpE,QAAO;EACL,gBAAgB;EAChB,WAAW,OAAO,eAAe;EAClC"}
@@ -15,6 +15,7 @@ declare const dictionarySchema: Schema<DictionarySchema, _$mongoose.Model<Dictio
15
15
  }, "id"> & {
16
16
  id: string;
17
17
  }, {
18
+ creatorId?: User["id"];
18
19
  createdAt?: _$mongoose.SchemaDefinitionProperty<number, DictionarySchema, _$mongoose.Document<unknown, {}, DictionarySchema, {
19
20
  id: string;
20
21
  }, _$mongoose.DefaultSchemaOptions> & Omit<Omit<Dictionary, "id"> & {
@@ -37,7 +38,7 @@ declare const dictionarySchema: Schema<DictionarySchema, _$mongoose.Model<Dictio
37
38
  }, "id"> & {
38
39
  id: string;
39
40
  }>;
40
- description?: _$mongoose.SchemaDefinitionProperty<string, DictionarySchema, _$mongoose.Document<unknown, {}, DictionarySchema, {
41
+ tags?: _$mongoose.SchemaDefinitionProperty<string[], DictionarySchema, _$mongoose.Document<unknown, {}, DictionarySchema, {
41
42
  id: string;
42
43
  }, _$mongoose.DefaultSchemaOptions> & Omit<Omit<Dictionary, "id"> & {
43
44
  _id: _$mongoose.Types.ObjectId;
@@ -48,7 +49,7 @@ declare const dictionarySchema: Schema<DictionarySchema, _$mongoose.Model<Dictio
48
49
  }, "id"> & {
49
50
  id: string;
50
51
  }>;
51
- title?: _$mongoose.SchemaDefinitionProperty<string, DictionarySchema, _$mongoose.Document<unknown, {}, DictionarySchema, {
52
+ key?: _$mongoose.SchemaDefinitionProperty<string, DictionarySchema, _$mongoose.Document<unknown, {}, DictionarySchema, {
52
53
  id: string;
53
54
  }, _$mongoose.DefaultSchemaOptions> & Omit<Omit<Dictionary, "id"> & {
54
55
  _id: _$mongoose.Types.ObjectId;
@@ -59,7 +60,7 @@ declare const dictionarySchema: Schema<DictionarySchema, _$mongoose.Model<Dictio
59
60
  }, "id"> & {
60
61
  id: string;
61
62
  }>;
62
- tags?: _$mongoose.SchemaDefinitionProperty<string[], DictionarySchema, _$mongoose.Document<unknown, {}, DictionarySchema, {
63
+ description?: _$mongoose.SchemaDefinitionProperty<string, DictionarySchema, _$mongoose.Document<unknown, {}, DictionarySchema, {
63
64
  id: string;
64
65
  }, _$mongoose.DefaultSchemaOptions> & Omit<Omit<Dictionary, "id"> & {
65
66
  _id: _$mongoose.Types.ObjectId;
@@ -70,7 +71,7 @@ declare const dictionarySchema: Schema<DictionarySchema, _$mongoose.Model<Dictio
70
71
  }, "id"> & {
71
72
  id: string;
72
73
  }>;
73
- content?: _$mongoose.SchemaDefinitionProperty<VersionedContent, DictionarySchema, _$mongoose.Document<unknown, {}, DictionarySchema, {
74
+ projectIds?: _$mongoose.SchemaDefinitionProperty<(string | _$mongoose.Types.ObjectId)[], DictionarySchema, _$mongoose.Document<unknown, {}, DictionarySchema, {
74
75
  id: string;
75
76
  }, _$mongoose.DefaultSchemaOptions> & Omit<Omit<Dictionary, "id"> & {
76
77
  _id: _$mongoose.Types.ObjectId;
@@ -81,8 +82,7 @@ declare const dictionarySchema: Schema<DictionarySchema, _$mongoose.Model<Dictio
81
82
  }, "id"> & {
82
83
  id: string;
83
84
  }>;
84
- creatorId?: User["id"];
85
- key?: _$mongoose.SchemaDefinitionProperty<string, DictionarySchema, _$mongoose.Document<unknown, {}, DictionarySchema, {
85
+ title?: _$mongoose.SchemaDefinitionProperty<string, DictionarySchema, _$mongoose.Document<unknown, {}, DictionarySchema, {
86
86
  id: string;
87
87
  }, _$mongoose.DefaultSchemaOptions> & Omit<Omit<Dictionary, "id"> & {
88
88
  _id: _$mongoose.Types.ObjectId;
@@ -93,7 +93,7 @@ declare const dictionarySchema: Schema<DictionarySchema, _$mongoose.Model<Dictio
93
93
  }, "id"> & {
94
94
  id: string;
95
95
  }>;
96
- projectIds?: _$mongoose.SchemaDefinitionProperty<(string | _$mongoose.Types.ObjectId)[], DictionarySchema, _$mongoose.Document<unknown, {}, DictionarySchema, {
96
+ priority?: _$mongoose.SchemaDefinitionProperty<number, DictionarySchema, _$mongoose.Document<unknown, {}, DictionarySchema, {
97
97
  id: string;
98
98
  }, _$mongoose.DefaultSchemaOptions> & Omit<Omit<Dictionary, "id"> & {
99
99
  _id: _$mongoose.Types.ObjectId;
@@ -104,7 +104,7 @@ declare const dictionarySchema: Schema<DictionarySchema, _$mongoose.Model<Dictio
104
104
  }, "id"> & {
105
105
  id: string;
106
106
  }>;
107
- priority?: _$mongoose.SchemaDefinitionProperty<number, DictionarySchema, _$mongoose.Document<unknown, {}, DictionarySchema, {
107
+ importMode?: _$mongoose.SchemaDefinitionProperty<"static" | "dynamic" | "fetch", DictionarySchema, _$mongoose.Document<unknown, {}, DictionarySchema, {
108
108
  id: string;
109
109
  }, _$mongoose.DefaultSchemaOptions> & Omit<Omit<Dictionary, "id"> & {
110
110
  _id: _$mongoose.Types.ObjectId;
@@ -115,7 +115,7 @@ declare const dictionarySchema: Schema<DictionarySchema, _$mongoose.Model<Dictio
115
115
  }, "id"> & {
116
116
  id: string;
117
117
  }>;
118
- importMode?: _$mongoose.SchemaDefinitionProperty<"static" | "dynamic" | "fetch", DictionarySchema, _$mongoose.Document<unknown, {}, DictionarySchema, {
118
+ content?: _$mongoose.SchemaDefinitionProperty<VersionedContent, DictionarySchema, _$mongoose.Document<unknown, {}, DictionarySchema, {
119
119
  id: string;
120
120
  }, _$mongoose.DefaultSchemaOptions> & Omit<Omit<Dictionary, "id"> & {
121
121
  _id: _$mongoose.Types.ObjectId;
@@ -14,7 +14,7 @@ declare const discussionSchema: Schema<DiscussionSchema, _$mongoose.Model<Discus
14
14
  }, "id"> & {
15
15
  id: string;
16
16
  }, {
17
- createdAt?: _$mongoose.SchemaDefinitionProperty<Date, DiscussionSchema, _$mongoose.Document<unknown, {}, DiscussionSchema, {
17
+ _id?: _$mongoose.SchemaDefinitionProperty<_$mongoose.Types.ObjectId, DiscussionSchema, _$mongoose.Document<unknown, {}, DiscussionSchema, {
18
18
  id: string;
19
19
  }, _$mongoose.DefaultSchemaOptions> & Omit<Omit<Discussion, "id"> & {
20
20
  _id: _$mongoose.Types.ObjectId;
@@ -25,7 +25,7 @@ declare const discussionSchema: Schema<DiscussionSchema, _$mongoose.Model<Discus
25
25
  }, "id"> & {
26
26
  id: string;
27
27
  }>;
28
- updatedAt?: _$mongoose.SchemaDefinitionProperty<Date, DiscussionSchema, _$mongoose.Document<unknown, {}, DiscussionSchema, {
28
+ organizationId?: _$mongoose.SchemaDefinitionProperty<_$mongoose.Types.ObjectId, DiscussionSchema, _$mongoose.Document<unknown, {}, DiscussionSchema, {
29
29
  id: string;
30
30
  }, _$mongoose.DefaultSchemaOptions> & Omit<Omit<Discussion, "id"> & {
31
31
  _id: _$mongoose.Types.ObjectId;
@@ -36,7 +36,7 @@ declare const discussionSchema: Schema<DiscussionSchema, _$mongoose.Model<Discus
36
36
  }, "id"> & {
37
37
  id: string;
38
38
  }>;
39
- _id?: _$mongoose.SchemaDefinitionProperty<_$mongoose.Types.ObjectId, DiscussionSchema, _$mongoose.Document<unknown, {}, DiscussionSchema, {
39
+ createdAt?: _$mongoose.SchemaDefinitionProperty<Date, DiscussionSchema, _$mongoose.Document<unknown, {}, DiscussionSchema, {
40
40
  id: string;
41
41
  }, _$mongoose.DefaultSchemaOptions> & Omit<Omit<Discussion, "id"> & {
42
42
  _id: _$mongoose.Types.ObjectId;
@@ -47,7 +47,7 @@ declare const discussionSchema: Schema<DiscussionSchema, _$mongoose.Model<Discus
47
47
  }, "id"> & {
48
48
  id: string;
49
49
  }>;
50
- userId?: _$mongoose.SchemaDefinitionProperty<_$mongoose.Types.ObjectId, DiscussionSchema, _$mongoose.Document<unknown, {}, DiscussionSchema, {
50
+ updatedAt?: _$mongoose.SchemaDefinitionProperty<Date, DiscussionSchema, _$mongoose.Document<unknown, {}, DiscussionSchema, {
51
51
  id: string;
52
52
  }, _$mongoose.DefaultSchemaOptions> & Omit<Omit<Discussion, "id"> & {
53
53
  _id: _$mongoose.Types.ObjectId;
@@ -58,7 +58,7 @@ declare const discussionSchema: Schema<DiscussionSchema, _$mongoose.Model<Discus
58
58
  }, "id"> & {
59
59
  id: string;
60
60
  }>;
61
- title?: _$mongoose.SchemaDefinitionProperty<string, DiscussionSchema, _$mongoose.Document<unknown, {}, DiscussionSchema, {
61
+ projectId?: _$mongoose.SchemaDefinitionProperty<_$mongoose.Types.ObjectId, DiscussionSchema, _$mongoose.Document<unknown, {}, DiscussionSchema, {
62
62
  id: string;
63
63
  }, _$mongoose.DefaultSchemaOptions> & Omit<Omit<Discussion, "id"> & {
64
64
  _id: _$mongoose.Types.ObjectId;
@@ -69,7 +69,7 @@ declare const discussionSchema: Schema<DiscussionSchema, _$mongoose.Model<Discus
69
69
  }, "id"> & {
70
70
  id: string;
71
71
  }>;
72
- discussionId?: _$mongoose.SchemaDefinitionProperty<string, DiscussionSchema, _$mongoose.Document<unknown, {}, DiscussionSchema, {
72
+ userId?: _$mongoose.SchemaDefinitionProperty<_$mongoose.Types.ObjectId, DiscussionSchema, _$mongoose.Document<unknown, {}, DiscussionSchema, {
73
73
  id: string;
74
74
  }, _$mongoose.DefaultSchemaOptions> & Omit<Omit<Discussion, "id"> & {
75
75
  _id: _$mongoose.Types.ObjectId;
@@ -91,7 +91,7 @@ declare const discussionSchema: Schema<DiscussionSchema, _$mongoose.Model<Discus
91
91
  }, "id"> & {
92
92
  id: string;
93
93
  }>;
94
- projectId?: _$mongoose.SchemaDefinitionProperty<_$mongoose.Types.ObjectId, DiscussionSchema, _$mongoose.Document<unknown, {}, DiscussionSchema, {
94
+ title?: _$mongoose.SchemaDefinitionProperty<string, DiscussionSchema, _$mongoose.Document<unknown, {}, DiscussionSchema, {
95
95
  id: string;
96
96
  }, _$mongoose.DefaultSchemaOptions> & Omit<Omit<Discussion, "id"> & {
97
97
  _id: _$mongoose.Types.ObjectId;
@@ -102,7 +102,7 @@ declare const discussionSchema: Schema<DiscussionSchema, _$mongoose.Model<Discus
102
102
  }, "id"> & {
103
103
  id: string;
104
104
  }>;
105
- organizationId?: _$mongoose.SchemaDefinitionProperty<_$mongoose.Types.ObjectId, DiscussionSchema, _$mongoose.Document<unknown, {}, DiscussionSchema, {
105
+ discussionId?: _$mongoose.SchemaDefinitionProperty<string, DiscussionSchema, _$mongoose.Document<unknown, {}, DiscussionSchema, {
106
106
  id: string;
107
107
  }, _$mongoose.DefaultSchemaOptions> & Omit<Omit<Discussion, "id"> & {
108
108
  _id: _$mongoose.Types.ObjectId;
@@ -16,7 +16,7 @@ declare const organizationSchema: Schema<OrganizationSchema, _$mongoose.Model<Or
16
16
  }, "id"> & {
17
17
  id: string;
18
18
  }, {
19
- createdAt?: _$mongoose.SchemaDefinitionProperty<number, OrganizationSchema, _$mongoose.Document<unknown, {}, OrganizationSchema, {
19
+ name?: _$mongoose.SchemaDefinitionProperty<string, OrganizationSchema, _$mongoose.Document<unknown, {}, OrganizationSchema, {
20
20
  id: string;
21
21
  }, _$mongoose.DefaultSchemaOptions> & Omit<Omit<Organization, "id"> & {
22
22
  _id: _$mongoose.Types.ObjectId;
@@ -27,7 +27,10 @@ declare const organizationSchema: Schema<OrganizationSchema, _$mongoose.Model<Or
27
27
  }, "id"> & {
28
28
  id: string;
29
29
  }>;
30
- updatedAt?: _$mongoose.SchemaDefinitionProperty<number, OrganizationSchema, _$mongoose.Document<unknown, {}, OrganizationSchema, {
30
+ membersIds?: any;
31
+ adminsIds?: any;
32
+ creatorId?: User["id"];
33
+ createdAt?: _$mongoose.SchemaDefinitionProperty<number, OrganizationSchema, _$mongoose.Document<unknown, {}, OrganizationSchema, {
31
34
  id: string;
32
35
  }, _$mongoose.DefaultSchemaOptions> & Omit<Omit<Organization, "id"> & {
33
36
  _id: _$mongoose.Types.ObjectId;
@@ -38,7 +41,7 @@ declare const organizationSchema: Schema<OrganizationSchema, _$mongoose.Model<Or
38
41
  }, "id"> & {
39
42
  id: string;
40
43
  }>;
41
- name?: _$mongoose.SchemaDefinitionProperty<string, OrganizationSchema, _$mongoose.Document<unknown, {}, OrganizationSchema, {
44
+ updatedAt?: _$mongoose.SchemaDefinitionProperty<number, OrganizationSchema, _$mongoose.Document<unknown, {}, OrganizationSchema, {
42
45
  id: string;
43
46
  }, _$mongoose.DefaultSchemaOptions> & Omit<Omit<Organization, "id"> & {
44
47
  _id: _$mongoose.Types.ObjectId;
@@ -49,7 +52,7 @@ declare const organizationSchema: Schema<OrganizationSchema, _$mongoose.Model<Or
49
52
  }, "id"> & {
50
53
  id: string;
51
54
  }>;
52
- domain?: _$mongoose.SchemaDefinitionProperty<string, OrganizationSchema, _$mongoose.Document<unknown, {}, OrganizationSchema, {
55
+ ssoEnabled?: _$mongoose.SchemaDefinitionProperty<boolean, OrganizationSchema, _$mongoose.Document<unknown, {}, OrganizationSchema, {
53
56
  id: string;
54
57
  }, _$mongoose.DefaultSchemaOptions> & Omit<Omit<Organization, "id"> & {
55
58
  _id: _$mongoose.Types.ObjectId;
@@ -60,10 +63,7 @@ declare const organizationSchema: Schema<OrganizationSchema, _$mongoose.Model<Or
60
63
  }, "id"> & {
61
64
  id: string;
62
65
  }>;
63
- membersIds?: any;
64
- adminsIds?: any;
65
- creatorId?: User["id"];
66
- ssoEnabled?: _$mongoose.SchemaDefinitionProperty<boolean, OrganizationSchema, _$mongoose.Document<unknown, {}, OrganizationSchema, {
66
+ domain?: _$mongoose.SchemaDefinitionProperty<string, OrganizationSchema, _$mongoose.Document<unknown, {}, OrganizationSchema, {
67
67
  id: string;
68
68
  }, _$mongoose.DefaultSchemaOptions> & Omit<Omit<Organization, "id"> & {
69
69
  _id: _$mongoose.Types.ObjectId;
@@ -15,6 +15,7 @@ declare const planSchema: Schema<PlanSchema, _$mongoose.Model<PlanSchema, any, a
15
15
  }, "id"> & {
16
16
  id: string;
17
17
  }, {
18
+ creatorId?: User["id"];
18
19
  createdAt?: _$mongoose.SchemaDefinitionProperty<number, PlanSchema, _$mongoose.Document<unknown, {}, PlanSchema, {
19
20
  id: string;
20
21
  }, _$mongoose.DefaultSchemaOptions> & Omit<Omit<Plan, "id"> & {
@@ -48,7 +49,7 @@ declare const planSchema: Schema<PlanSchema, _$mongoose.Model<PlanSchema, any, a
48
49
  }, "id"> & {
49
50
  id: string;
50
51
  }>;
51
- customerId?: _$mongoose.SchemaDefinitionProperty<string, PlanSchema, _$mongoose.Document<unknown, {}, PlanSchema, {
52
+ subscriptionId?: _$mongoose.SchemaDefinitionProperty<string, PlanSchema, _$mongoose.Document<unknown, {}, PlanSchema, {
52
53
  id: string;
53
54
  }, _$mongoose.DefaultSchemaOptions> & Omit<Omit<Plan, "id"> & {
54
55
  _id: _$mongoose.Types.ObjectId;
@@ -59,7 +60,7 @@ declare const planSchema: Schema<PlanSchema, _$mongoose.Model<PlanSchema, any, a
59
60
  }, "id"> & {
60
61
  id: string;
61
62
  }>;
62
- status?: _$mongoose.SchemaDefinitionProperty<"active" | "canceled" | "past_due" | "unpaid" | "incomplete" | "incomplete_expired" | "paused" | "trialing", PlanSchema, _$mongoose.Document<unknown, {}, PlanSchema, {
63
+ customerId?: _$mongoose.SchemaDefinitionProperty<string, PlanSchema, _$mongoose.Document<unknown, {}, PlanSchema, {
63
64
  id: string;
64
65
  }, _$mongoose.DefaultSchemaOptions> & Omit<Omit<Plan, "id"> & {
65
66
  _id: _$mongoose.Types.ObjectId;
@@ -70,7 +71,7 @@ declare const planSchema: Schema<PlanSchema, _$mongoose.Model<PlanSchema, any, a
70
71
  }, "id"> & {
71
72
  id: string;
72
73
  }>;
73
- period?: _$mongoose.SchemaDefinitionProperty<"LIFETIME" | "MONTHLY" | "YEARLY", PlanSchema, _$mongoose.Document<unknown, {}, PlanSchema, {
74
+ priceId?: _$mongoose.SchemaDefinitionProperty<string, PlanSchema, _$mongoose.Document<unknown, {}, PlanSchema, {
74
75
  id: string;
75
76
  }, _$mongoose.DefaultSchemaOptions> & Omit<Omit<Plan, "id"> & {
76
77
  _id: _$mongoose.Types.ObjectId;
@@ -81,8 +82,7 @@ declare const planSchema: Schema<PlanSchema, _$mongoose.Model<PlanSchema, any, a
81
82
  }, "id"> & {
82
83
  id: string;
83
84
  }>;
84
- creatorId?: User["id"];
85
- subscriptionId?: _$mongoose.SchemaDefinitionProperty<string, PlanSchema, _$mongoose.Document<unknown, {}, PlanSchema, {
85
+ status?: _$mongoose.SchemaDefinitionProperty<"active" | "canceled" | "past_due" | "unpaid" | "incomplete" | "incomplete_expired" | "paused" | "trialing", PlanSchema, _$mongoose.Document<unknown, {}, PlanSchema, {
86
86
  id: string;
87
87
  }, _$mongoose.DefaultSchemaOptions> & Omit<Omit<Plan, "id"> & {
88
88
  _id: _$mongoose.Types.ObjectId;
@@ -93,7 +93,7 @@ declare const planSchema: Schema<PlanSchema, _$mongoose.Model<PlanSchema, any, a
93
93
  }, "id"> & {
94
94
  id: string;
95
95
  }>;
96
- priceId?: _$mongoose.SchemaDefinitionProperty<string, PlanSchema, _$mongoose.Document<unknown, {}, PlanSchema, {
96
+ period?: _$mongoose.SchemaDefinitionProperty<"LIFETIME" | "MONTHLY" | "YEARLY", PlanSchema, _$mongoose.Document<unknown, {}, PlanSchema, {
97
97
  id: string;
98
98
  }, _$mongoose.DefaultSchemaOptions> & Omit<Omit<Plan, "id"> & {
99
99
  _id: _$mongoose.Types.ObjectId;
@@ -15,7 +15,7 @@ declare const projectSchema: Schema<ProjectSchema, _$mongoose.Model<ProjectSchem
15
15
  }, "id"> & {
16
16
  id: string;
17
17
  }, {
18
- createdAt?: _$mongoose.SchemaDefinitionProperty<number, ProjectSchema, _$mongoose.Document<unknown, {}, ProjectSchema, {
18
+ organizationId?: _$mongoose.SchemaDefinitionProperty<_$mongoose.Types.ObjectId, ProjectSchema, _$mongoose.Document<unknown, {}, ProjectSchema, {
19
19
  id: string;
20
20
  }, _$mongoose.DefaultSchemaOptions> & Omit<Omit<Project, "id"> & {
21
21
  _id: _$mongoose.Types.ObjectId;
@@ -26,7 +26,7 @@ declare const projectSchema: Schema<ProjectSchema, _$mongoose.Model<ProjectSchem
26
26
  }, "id"> & {
27
27
  id: string;
28
28
  }>;
29
- updatedAt?: _$mongoose.SchemaDefinitionProperty<number, ProjectSchema, _$mongoose.Document<unknown, {}, ProjectSchema, {
29
+ name?: _$mongoose.SchemaDefinitionProperty<string, ProjectSchema, _$mongoose.Document<unknown, {}, ProjectSchema, {
30
30
  id: string;
31
31
  }, _$mongoose.DefaultSchemaOptions> & Omit<Omit<Project, "id"> & {
32
32
  _id: _$mongoose.Types.ObjectId;
@@ -37,7 +37,10 @@ declare const projectSchema: Schema<ProjectSchema, _$mongoose.Model<ProjectSchem
37
37
  }, "id"> & {
38
38
  id: string;
39
39
  }>;
40
- name?: _$mongoose.SchemaDefinitionProperty<string, ProjectSchema, _$mongoose.Document<unknown, {}, ProjectSchema, {
40
+ membersIds?: any;
41
+ adminsIds?: any;
42
+ creatorId?: User["id"];
43
+ configuration?: _$mongoose.SchemaDefinitionProperty<ProjectConfiguration, ProjectSchema, _$mongoose.Document<unknown, {}, ProjectSchema, {
41
44
  id: string;
42
45
  }, _$mongoose.DefaultSchemaOptions> & Omit<Omit<Project, "id"> & {
43
46
  _id: _$mongoose.Types.ObjectId;
@@ -48,7 +51,7 @@ declare const projectSchema: Schema<ProjectSchema, _$mongoose.Model<ProjectSchem
48
51
  }, "id"> & {
49
52
  id: string;
50
53
  }>;
51
- imageUrl?: _$mongoose.SchemaDefinitionProperty<string, ProjectSchema, _$mongoose.Document<unknown, {}, ProjectSchema, {
54
+ repository?: _$mongoose.SchemaDefinitionProperty<RepositoryConnection, ProjectSchema, _$mongoose.Document<unknown, {}, ProjectSchema, {
52
55
  id: string;
53
56
  }, _$mongoose.DefaultSchemaOptions> & Omit<Omit<Project, "id"> & {
54
57
  _id: _$mongoose.Types.ObjectId;
@@ -59,7 +62,7 @@ declare const projectSchema: Schema<ProjectSchema, _$mongoose.Model<ProjectSchem
59
62
  }, "id"> & {
60
63
  id: string;
61
64
  }>;
62
- organizationId?: _$mongoose.SchemaDefinitionProperty<_$mongoose.Types.ObjectId, ProjectSchema, _$mongoose.Document<unknown, {}, ProjectSchema, {
65
+ webhooks?: _$mongoose.SchemaDefinitionProperty<ProjectConfigCI, ProjectSchema, _$mongoose.Document<unknown, {}, ProjectSchema, {
63
66
  id: string;
64
67
  }, _$mongoose.DefaultSchemaOptions> & Omit<Omit<Project, "id"> & {
65
68
  _id: _$mongoose.Types.ObjectId;
@@ -70,10 +73,7 @@ declare const projectSchema: Schema<ProjectSchema, _$mongoose.Model<ProjectSchem
70
73
  }, "id"> & {
71
74
  id: string;
72
75
  }>;
73
- membersIds?: any;
74
- adminsIds?: any;
75
- creatorId?: User["id"];
76
- configuration?: _$mongoose.SchemaDefinitionProperty<ProjectConfiguration, ProjectSchema, _$mongoose.Document<unknown, {}, ProjectSchema, {
76
+ autoFill?: _$mongoose.SchemaDefinitionProperty<boolean, ProjectSchema, _$mongoose.Document<unknown, {}, ProjectSchema, {
77
77
  id: string;
78
78
  }, _$mongoose.DefaultSchemaOptions> & Omit<Omit<Project, "id"> & {
79
79
  _id: _$mongoose.Types.ObjectId;
@@ -84,7 +84,7 @@ declare const projectSchema: Schema<ProjectSchema, _$mongoose.Model<ProjectSchem
84
84
  }, "id"> & {
85
85
  id: string;
86
86
  }>;
87
- repository?: _$mongoose.SchemaDefinitionProperty<RepositoryConnection, ProjectSchema, _$mongoose.Document<unknown, {}, ProjectSchema, {
87
+ imageUrl?: _$mongoose.SchemaDefinitionProperty<string, ProjectSchema, _$mongoose.Document<unknown, {}, ProjectSchema, {
88
88
  id: string;
89
89
  }, _$mongoose.DefaultSchemaOptions> & Omit<Omit<Project, "id"> & {
90
90
  _id: _$mongoose.Types.ObjectId;
@@ -95,7 +95,7 @@ declare const projectSchema: Schema<ProjectSchema, _$mongoose.Model<ProjectSchem
95
95
  }, "id"> & {
96
96
  id: string;
97
97
  }>;
98
- webhooks?: _$mongoose.SchemaDefinitionProperty<ProjectConfigCI, ProjectSchema, _$mongoose.Document<unknown, {}, ProjectSchema, {
98
+ createdAt?: _$mongoose.SchemaDefinitionProperty<number, ProjectSchema, _$mongoose.Document<unknown, {}, ProjectSchema, {
99
99
  id: string;
100
100
  }, _$mongoose.DefaultSchemaOptions> & Omit<Omit<Project, "id"> & {
101
101
  _id: _$mongoose.Types.ObjectId;
@@ -106,7 +106,7 @@ declare const projectSchema: Schema<ProjectSchema, _$mongoose.Model<ProjectSchem
106
106
  }, "id"> & {
107
107
  id: string;
108
108
  }>;
109
- autoFill?: _$mongoose.SchemaDefinitionProperty<boolean, ProjectSchema, _$mongoose.Document<unknown, {}, ProjectSchema, {
109
+ updatedAt?: _$mongoose.SchemaDefinitionProperty<number, ProjectSchema, _$mongoose.Document<unknown, {}, ProjectSchema, {
110
110
  id: string;
111
111
  }, _$mongoose.DefaultSchemaOptions> & Omit<Omit<Project, "id"> & {
112
112
  _id: _$mongoose.Types.ObjectId;
@@ -37,7 +37,7 @@ declare const sessionSchema: Schema<SessionSchema, _$mongoose.Model<SessionSchem
37
37
  }, "id"> & {
38
38
  id: string;
39
39
  }>;
40
- userId?: _$mongoose.SchemaDefinitionProperty<string, SessionSchema, _$mongoose.Document<unknown, {}, SessionSchema, {
40
+ expiresAt?: _$mongoose.SchemaDefinitionProperty<Date, SessionSchema, _$mongoose.Document<unknown, {}, SessionSchema, {
41
41
  id: string;
42
42
  }, _$mongoose.DefaultSchemaOptions> & Omit<Omit<SessionData, "id"> & {
43
43
  _id: string & _$mongoose.Types.ObjectId;
@@ -48,7 +48,7 @@ declare const sessionSchema: Schema<SessionSchema, _$mongoose.Model<SessionSchem
48
48
  }, "id"> & {
49
49
  id: string;
50
50
  }>;
51
- expiresAt?: _$mongoose.SchemaDefinitionProperty<Date, SessionSchema, _$mongoose.Document<unknown, {}, SessionSchema, {
51
+ userId?: _$mongoose.SchemaDefinitionProperty<string, SessionSchema, _$mongoose.Document<unknown, {}, SessionSchema, {
52
52
  id: string;
53
53
  }, _$mongoose.DefaultSchemaOptions> & Omit<Omit<SessionData, "id"> & {
54
54
  _id: string & _$mongoose.Types.ObjectId;
@@ -59,7 +59,7 @@ declare const sessionSchema: Schema<SessionSchema, _$mongoose.Model<SessionSchem
59
59
  }, "id"> & {
60
60
  id: string;
61
61
  }>;
62
- token?: _$mongoose.SchemaDefinitionProperty<string, SessionSchema, _$mongoose.Document<unknown, {}, SessionSchema, {
62
+ locale?: _$mongoose.SchemaDefinitionProperty<_$intlayer.Locale, SessionSchema, _$mongoose.Document<unknown, {}, SessionSchema, {
63
63
  id: string;
64
64
  }, _$mongoose.DefaultSchemaOptions> & Omit<Omit<SessionData, "id"> & {
65
65
  _id: string & _$mongoose.Types.ObjectId;
@@ -70,7 +70,7 @@ declare const sessionSchema: Schema<SessionSchema, _$mongoose.Model<SessionSchem
70
70
  }, "id"> & {
71
71
  id: string;
72
72
  }>;
73
- ipAddress?: _$mongoose.SchemaDefinitionProperty<string, SessionSchema, _$mongoose.Document<unknown, {}, SessionSchema, {
73
+ token?: _$mongoose.SchemaDefinitionProperty<string, SessionSchema, _$mongoose.Document<unknown, {}, SessionSchema, {
74
74
  id: string;
75
75
  }, _$mongoose.DefaultSchemaOptions> & Omit<Omit<SessionData, "id"> & {
76
76
  _id: string & _$mongoose.Types.ObjectId;
@@ -81,7 +81,7 @@ declare const sessionSchema: Schema<SessionSchema, _$mongoose.Model<SessionSchem
81
81
  }, "id"> & {
82
82
  id: string;
83
83
  }>;
84
- userAgent?: _$mongoose.SchemaDefinitionProperty<string, SessionSchema, _$mongoose.Document<unknown, {}, SessionSchema, {
84
+ ipAddress?: _$mongoose.SchemaDefinitionProperty<string, SessionSchema, _$mongoose.Document<unknown, {}, SessionSchema, {
85
85
  id: string;
86
86
  }, _$mongoose.DefaultSchemaOptions> & Omit<Omit<SessionData, "id"> & {
87
87
  _id: string & _$mongoose.Types.ObjectId;
@@ -92,7 +92,7 @@ declare const sessionSchema: Schema<SessionSchema, _$mongoose.Model<SessionSchem
92
92
  }, "id"> & {
93
93
  id: string;
94
94
  }>;
95
- activeOrganizationId?: _$mongoose.SchemaDefinitionProperty<_$mongoose.Types.ObjectId, SessionSchema, _$mongoose.Document<unknown, {}, SessionSchema, {
95
+ userAgent?: _$mongoose.SchemaDefinitionProperty<string, SessionSchema, _$mongoose.Document<unknown, {}, SessionSchema, {
96
96
  id: string;
97
97
  }, _$mongoose.DefaultSchemaOptions> & Omit<Omit<SessionData, "id"> & {
98
98
  _id: string & _$mongoose.Types.ObjectId;
@@ -103,7 +103,7 @@ declare const sessionSchema: Schema<SessionSchema, _$mongoose.Model<SessionSchem
103
103
  }, "id"> & {
104
104
  id: string;
105
105
  }>;
106
- activeProjectId?: _$mongoose.SchemaDefinitionProperty<_$mongoose.Types.ObjectId, SessionSchema, _$mongoose.Document<unknown, {}, SessionSchema, {
106
+ activeOrganizationId?: _$mongoose.SchemaDefinitionProperty<_$mongoose.Types.ObjectId, SessionSchema, _$mongoose.Document<unknown, {}, SessionSchema, {
107
107
  id: string;
108
108
  }, _$mongoose.DefaultSchemaOptions> & Omit<Omit<SessionData, "id"> & {
109
109
  _id: string & _$mongoose.Types.ObjectId;
@@ -114,7 +114,7 @@ declare const sessionSchema: Schema<SessionSchema, _$mongoose.Model<SessionSchem
114
114
  }, "id"> & {
115
115
  id: string;
116
116
  }>;
117
- locale?: _$mongoose.SchemaDefinitionProperty<_$intlayer.Locale, SessionSchema, _$mongoose.Document<unknown, {}, SessionSchema, {
117
+ activeProjectId?: _$mongoose.SchemaDefinitionProperty<_$mongoose.Types.ObjectId, SessionSchema, _$mongoose.Document<unknown, {}, SessionSchema, {
118
118
  id: string;
119
119
  }, _$mongoose.DefaultSchemaOptions> & Omit<Omit<SessionData, "id"> & {
120
120
  _id: string & _$mongoose.Types.ObjectId;
@@ -12,7 +12,7 @@ declare const showcaseProjectSchema: Schema<ShowcaseProjectDocument, _$mongoose.
12
12
  }, "id"> & {
13
13
  id: string;
14
14
  }, {
15
- createdAt?: _$mongoose.SchemaDefinitionProperty<Date, ShowcaseProjectDocument, _$mongoose.Document<unknown, {}, ShowcaseProjectDocument, {
15
+ _id?: _$mongoose.SchemaDefinitionProperty<_$mongoose.Types.ObjectId, ShowcaseProjectDocument, _$mongoose.Document<unknown, {}, ShowcaseProjectDocument, {
16
16
  id: string;
17
17
  }, _$mongoose.DefaultSchemaOptions> & Omit<ShowcaseProject & _$mongoose.Document<_$mongoose.Types.ObjectId, any, any, Record<string, any>, {}> & Required<{
18
18
  _id: _$mongoose.Types.ObjectId;
@@ -21,7 +21,7 @@ declare const showcaseProjectSchema: Schema<ShowcaseProjectDocument, _$mongoose.
21
21
  }, "id"> & {
22
22
  id: string;
23
23
  }>;
24
- _id?: _$mongoose.SchemaDefinitionProperty<_$mongoose.Types.ObjectId, ShowcaseProjectDocument, _$mongoose.Document<unknown, {}, ShowcaseProjectDocument, {
24
+ imageUrl?: _$mongoose.SchemaDefinitionProperty<string, ShowcaseProjectDocument, _$mongoose.Document<unknown, {}, ShowcaseProjectDocument, {
25
25
  id: string;
26
26
  }, _$mongoose.DefaultSchemaOptions> & Omit<ShowcaseProject & _$mongoose.Document<_$mongoose.Types.ObjectId, any, any, Record<string, any>, {}> & Required<{
27
27
  _id: _$mongoose.Types.ObjectId;
@@ -30,7 +30,7 @@ declare const showcaseProjectSchema: Schema<ShowcaseProjectDocument, _$mongoose.
30
30
  }, "id"> & {
31
31
  id: string;
32
32
  }>;
33
- description?: _$mongoose.SchemaDefinitionProperty<string, ShowcaseProjectDocument, _$mongoose.Document<unknown, {}, ShowcaseProjectDocument, {
33
+ createdAt?: _$mongoose.SchemaDefinitionProperty<Date, ShowcaseProjectDocument, _$mongoose.Document<unknown, {}, ShowcaseProjectDocument, {
34
34
  id: string;
35
35
  }, _$mongoose.DefaultSchemaOptions> & Omit<ShowcaseProject & _$mongoose.Document<_$mongoose.Types.ObjectId, any, any, Record<string, any>, {}> & Required<{
36
36
  _id: _$mongoose.Types.ObjectId;
@@ -39,7 +39,7 @@ declare const showcaseProjectSchema: Schema<ShowcaseProjectDocument, _$mongoose.
39
39
  }, "id"> & {
40
40
  id: string;
41
41
  }>;
42
- title?: _$mongoose.SchemaDefinitionProperty<string, ShowcaseProjectDocument, _$mongoose.Document<unknown, {}, ShowcaseProjectDocument, {
42
+ owner?: _$mongoose.SchemaDefinitionProperty<string, ShowcaseProjectDocument, _$mongoose.Document<unknown, {}, ShowcaseProjectDocument, {
43
43
  id: string;
44
44
  }, _$mongoose.DefaultSchemaOptions> & Omit<ShowcaseProject & _$mongoose.Document<_$mongoose.Types.ObjectId, any, any, Record<string, any>, {}> & Required<{
45
45
  _id: _$mongoose.Types.ObjectId;
@@ -48,7 +48,7 @@ declare const showcaseProjectSchema: Schema<ShowcaseProjectDocument, _$mongoose.
48
48
  }, "id"> & {
49
49
  id: string;
50
50
  }>;
51
- imageUrl?: _$mongoose.SchemaDefinitionProperty<string, ShowcaseProjectDocument, _$mongoose.Document<unknown, {}, ShowcaseProjectDocument, {
51
+ status?: _$mongoose.SchemaDefinitionProperty<ShowcaseProjectStatus, ShowcaseProjectDocument, _$mongoose.Document<unknown, {}, ShowcaseProjectDocument, {
52
52
  id: string;
53
53
  }, _$mongoose.DefaultSchemaOptions> & Omit<ShowcaseProject & _$mongoose.Document<_$mongoose.Types.ObjectId, any, any, Record<string, any>, {}> & Required<{
54
54
  _id: _$mongoose.Types.ObjectId;
@@ -57,7 +57,7 @@ declare const showcaseProjectSchema: Schema<ShowcaseProjectDocument, _$mongoose.
57
57
  }, "id"> & {
58
58
  id: string;
59
59
  }>;
60
- logoUrl?: _$mongoose.SchemaDefinitionProperty<string, ShowcaseProjectDocument, _$mongoose.Document<unknown, {}, ShowcaseProjectDocument, {
60
+ tags?: _$mongoose.SchemaDefinitionProperty<string[], ShowcaseProjectDocument, _$mongoose.Document<unknown, {}, ShowcaseProjectDocument, {
61
61
  id: string;
62
62
  }, _$mongoose.DefaultSchemaOptions> & Omit<ShowcaseProject & _$mongoose.Document<_$mongoose.Types.ObjectId, any, any, Record<string, any>, {}> & Required<{
63
63
  _id: _$mongoose.Types.ObjectId;
@@ -66,7 +66,7 @@ declare const showcaseProjectSchema: Schema<ShowcaseProjectDocument, _$mongoose.
66
66
  }, "id"> & {
67
67
  id: string;
68
68
  }>;
69
- websiteUrl?: _$mongoose.SchemaDefinitionProperty<string, ShowcaseProjectDocument, _$mongoose.Document<unknown, {}, ShowcaseProjectDocument, {
69
+ description?: _$mongoose.SchemaDefinitionProperty<string, ShowcaseProjectDocument, _$mongoose.Document<unknown, {}, ShowcaseProjectDocument, {
70
70
  id: string;
71
71
  }, _$mongoose.DefaultSchemaOptions> & Omit<ShowcaseProject & _$mongoose.Document<_$mongoose.Types.ObjectId, any, any, Record<string, any>, {}> & Required<{
72
72
  _id: _$mongoose.Types.ObjectId;
@@ -75,7 +75,7 @@ declare const showcaseProjectSchema: Schema<ShowcaseProjectDocument, _$mongoose.
75
75
  }, "id"> & {
76
76
  id: string;
77
77
  }>;
78
- githubUrl?: _$mongoose.SchemaDefinitionProperty<string, ShowcaseProjectDocument, _$mongoose.Document<unknown, {}, ShowcaseProjectDocument, {
78
+ title?: _$mongoose.SchemaDefinitionProperty<string, ShowcaseProjectDocument, _$mongoose.Document<unknown, {}, ShowcaseProjectDocument, {
79
79
  id: string;
80
80
  }, _$mongoose.DefaultSchemaOptions> & Omit<ShowcaseProject & _$mongoose.Document<_$mongoose.Types.ObjectId, any, any, Record<string, any>, {}> & Required<{
81
81
  _id: _$mongoose.Types.ObjectId;
@@ -84,7 +84,7 @@ declare const showcaseProjectSchema: Schema<ShowcaseProjectDocument, _$mongoose.
84
84
  }, "id"> & {
85
85
  id: string;
86
86
  }>;
87
- tags?: _$mongoose.SchemaDefinitionProperty<string[], ShowcaseProjectDocument, _$mongoose.Document<unknown, {}, ShowcaseProjectDocument, {
87
+ logoUrl?: _$mongoose.SchemaDefinitionProperty<string, ShowcaseProjectDocument, _$mongoose.Document<unknown, {}, ShowcaseProjectDocument, {
88
88
  id: string;
89
89
  }, _$mongoose.DefaultSchemaOptions> & Omit<ShowcaseProject & _$mongoose.Document<_$mongoose.Types.ObjectId, any, any, Record<string, any>, {}> & Required<{
90
90
  _id: _$mongoose.Types.ObjectId;
@@ -93,7 +93,7 @@ declare const showcaseProjectSchema: Schema<ShowcaseProjectDocument, _$mongoose.
93
93
  }, "id"> & {
94
94
  id: string;
95
95
  }>;
96
- upvoters?: _$mongoose.SchemaDefinitionProperty<string[], ShowcaseProjectDocument, _$mongoose.Document<unknown, {}, ShowcaseProjectDocument, {
96
+ websiteUrl?: _$mongoose.SchemaDefinitionProperty<string, ShowcaseProjectDocument, _$mongoose.Document<unknown, {}, ShowcaseProjectDocument, {
97
97
  id: string;
98
98
  }, _$mongoose.DefaultSchemaOptions> & Omit<ShowcaseProject & _$mongoose.Document<_$mongoose.Types.ObjectId, any, any, Record<string, any>, {}> & Required<{
99
99
  _id: _$mongoose.Types.ObjectId;
@@ -102,7 +102,7 @@ declare const showcaseProjectSchema: Schema<ShowcaseProjectDocument, _$mongoose.
102
102
  }, "id"> & {
103
103
  id: string;
104
104
  }>;
105
- downvoters?: _$mongoose.SchemaDefinitionProperty<string[], ShowcaseProjectDocument, _$mongoose.Document<unknown, {}, ShowcaseProjectDocument, {
105
+ githubUrl?: _$mongoose.SchemaDefinitionProperty<string, ShowcaseProjectDocument, _$mongoose.Document<unknown, {}, ShowcaseProjectDocument, {
106
106
  id: string;
107
107
  }, _$mongoose.DefaultSchemaOptions> & Omit<ShowcaseProject & _$mongoose.Document<_$mongoose.Types.ObjectId, any, any, Record<string, any>, {}> & Required<{
108
108
  _id: _$mongoose.Types.ObjectId;
@@ -111,7 +111,7 @@ declare const showcaseProjectSchema: Schema<ShowcaseProjectDocument, _$mongoose.
111
111
  }, "id"> & {
112
112
  id: string;
113
113
  }>;
114
- isOpenSource?: _$mongoose.SchemaDefinitionProperty<boolean, ShowcaseProjectDocument, _$mongoose.Document<unknown, {}, ShowcaseProjectDocument, {
114
+ upvoters?: _$mongoose.SchemaDefinitionProperty<string[], ShowcaseProjectDocument, _$mongoose.Document<unknown, {}, ShowcaseProjectDocument, {
115
115
  id: string;
116
116
  }, _$mongoose.DefaultSchemaOptions> & Omit<ShowcaseProject & _$mongoose.Document<_$mongoose.Types.ObjectId, any, any, Record<string, any>, {}> & Required<{
117
117
  _id: _$mongoose.Types.ObjectId;
@@ -120,7 +120,7 @@ declare const showcaseProjectSchema: Schema<ShowcaseProjectDocument, _$mongoose.
120
120
  }, "id"> & {
121
121
  id: string;
122
122
  }>;
123
- intlayerVersion?: _$mongoose.SchemaDefinitionProperty<string, ShowcaseProjectDocument, _$mongoose.Document<unknown, {}, ShowcaseProjectDocument, {
123
+ downvoters?: _$mongoose.SchemaDefinitionProperty<string[], ShowcaseProjectDocument, _$mongoose.Document<unknown, {}, ShowcaseProjectDocument, {
124
124
  id: string;
125
125
  }, _$mongoose.DefaultSchemaOptions> & Omit<ShowcaseProject & _$mongoose.Document<_$mongoose.Types.ObjectId, any, any, Record<string, any>, {}> & Required<{
126
126
  _id: _$mongoose.Types.ObjectId;
@@ -129,7 +129,7 @@ declare const showcaseProjectSchema: Schema<ShowcaseProjectDocument, _$mongoose.
129
129
  }, "id"> & {
130
130
  id: string;
131
131
  }>;
132
- libsUsed?: _$mongoose.SchemaDefinitionProperty<string[], ShowcaseProjectDocument, _$mongoose.Document<unknown, {}, ShowcaseProjectDocument, {
132
+ isOpenSource?: _$mongoose.SchemaDefinitionProperty<boolean, ShowcaseProjectDocument, _$mongoose.Document<unknown, {}, ShowcaseProjectDocument, {
133
133
  id: string;
134
134
  }, _$mongoose.DefaultSchemaOptions> & Omit<ShowcaseProject & _$mongoose.Document<_$mongoose.Types.ObjectId, any, any, Record<string, any>, {}> & Required<{
135
135
  _id: _$mongoose.Types.ObjectId;
@@ -138,7 +138,7 @@ declare const showcaseProjectSchema: Schema<ShowcaseProjectDocument, _$mongoose.
138
138
  }, "id"> & {
139
139
  id: string;
140
140
  }>;
141
- packageDetails?: _$mongoose.SchemaDefinitionProperty<Record<string, string>, ShowcaseProjectDocument, _$mongoose.Document<unknown, {}, ShowcaseProjectDocument, {
141
+ intlayerVersion?: _$mongoose.SchemaDefinitionProperty<string, ShowcaseProjectDocument, _$mongoose.Document<unknown, {}, ShowcaseProjectDocument, {
142
142
  id: string;
143
143
  }, _$mongoose.DefaultSchemaOptions> & Omit<ShowcaseProject & _$mongoose.Document<_$mongoose.Types.ObjectId, any, any, Record<string, any>, {}> & Required<{
144
144
  _id: _$mongoose.Types.ObjectId;
@@ -147,7 +147,7 @@ declare const showcaseProjectSchema: Schema<ShowcaseProjectDocument, _$mongoose.
147
147
  }, "id"> & {
148
148
  id: string;
149
149
  }>;
150
- lastScanDate?: _$mongoose.SchemaDefinitionProperty<Date, ShowcaseProjectDocument, _$mongoose.Document<unknown, {}, ShowcaseProjectDocument, {
150
+ libsUsed?: _$mongoose.SchemaDefinitionProperty<string[], ShowcaseProjectDocument, _$mongoose.Document<unknown, {}, ShowcaseProjectDocument, {
151
151
  id: string;
152
152
  }, _$mongoose.DefaultSchemaOptions> & Omit<ShowcaseProject & _$mongoose.Document<_$mongoose.Types.ObjectId, any, any, Record<string, any>, {}> & Required<{
153
153
  _id: _$mongoose.Types.ObjectId;
@@ -156,7 +156,7 @@ declare const showcaseProjectSchema: Schema<ShowcaseProjectDocument, _$mongoose.
156
156
  }, "id"> & {
157
157
  id: string;
158
158
  }>;
159
- scanDetails?: _$mongoose.SchemaDefinitionProperty<ShowcaseScanDetails, ShowcaseProjectDocument, _$mongoose.Document<unknown, {}, ShowcaseProjectDocument, {
159
+ packageDetails?: _$mongoose.SchemaDefinitionProperty<Record<string, string>, ShowcaseProjectDocument, _$mongoose.Document<unknown, {}, ShowcaseProjectDocument, {
160
160
  id: string;
161
161
  }, _$mongoose.DefaultSchemaOptions> & Omit<ShowcaseProject & _$mongoose.Document<_$mongoose.Types.ObjectId, any, any, Record<string, any>, {}> & Required<{
162
162
  _id: _$mongoose.Types.ObjectId;
@@ -165,7 +165,7 @@ declare const showcaseProjectSchema: Schema<ShowcaseProjectDocument, _$mongoose.
165
165
  }, "id"> & {
166
166
  id: string;
167
167
  }>;
168
- owner?: _$mongoose.SchemaDefinitionProperty<string, ShowcaseProjectDocument, _$mongoose.Document<unknown, {}, ShowcaseProjectDocument, {
168
+ lastScanDate?: _$mongoose.SchemaDefinitionProperty<Date, ShowcaseProjectDocument, _$mongoose.Document<unknown, {}, ShowcaseProjectDocument, {
169
169
  id: string;
170
170
  }, _$mongoose.DefaultSchemaOptions> & Omit<ShowcaseProject & _$mongoose.Document<_$mongoose.Types.ObjectId, any, any, Record<string, any>, {}> & Required<{
171
171
  _id: _$mongoose.Types.ObjectId;
@@ -174,7 +174,7 @@ declare const showcaseProjectSchema: Schema<ShowcaseProjectDocument, _$mongoose.
174
174
  }, "id"> & {
175
175
  id: string;
176
176
  }>;
177
- status?: _$mongoose.SchemaDefinitionProperty<ShowcaseProjectStatus, ShowcaseProjectDocument, _$mongoose.Document<unknown, {}, ShowcaseProjectDocument, {
177
+ scanDetails?: _$mongoose.SchemaDefinitionProperty<ShowcaseScanDetails, ShowcaseProjectDocument, _$mongoose.Document<unknown, {}, ShowcaseProjectDocument, {
178
178
  id: string;
179
179
  }, _$mongoose.DefaultSchemaOptions> & Omit<ShowcaseProject & _$mongoose.Document<_$mongoose.Types.ObjectId, any, any, Record<string, any>, {}> & Required<{
180
180
  _id: _$mongoose.Types.ObjectId;
@@ -15,7 +15,7 @@ declare const tagSchema: Schema<TagSchema, _$mongoose.Model<TagSchema, any, any,
15
15
  }, "id"> & {
16
16
  id: string;
17
17
  }, {
18
- createdAt?: _$mongoose.SchemaDefinitionProperty<number, TagSchema, _$mongoose.Document<unknown, {}, TagSchema, {
18
+ organizationId?: _$mongoose.SchemaDefinitionProperty<_$mongoose.Types.ObjectId, TagSchema, _$mongoose.Document<unknown, {}, TagSchema, {
19
19
  id: string;
20
20
  }, _$mongoose.DefaultSchemaOptions> & Omit<Omit<Tag, "id"> & {
21
21
  _id: _$mongoose.Types.ObjectId;
@@ -26,7 +26,7 @@ declare const tagSchema: Schema<TagSchema, _$mongoose.Model<TagSchema, any, any,
26
26
  }, "id"> & {
27
27
  id: string;
28
28
  }>;
29
- updatedAt?: _$mongoose.SchemaDefinitionProperty<number, TagSchema, _$mongoose.Document<unknown, {}, TagSchema, {
29
+ name?: _$mongoose.SchemaDefinitionProperty<string, TagSchema, _$mongoose.Document<unknown, {}, TagSchema, {
30
30
  id: string;
31
31
  }, _$mongoose.DefaultSchemaOptions> & Omit<Omit<Tag, "id"> & {
32
32
  _id: _$mongoose.Types.ObjectId;
@@ -37,7 +37,8 @@ declare const tagSchema: Schema<TagSchema, _$mongoose.Model<TagSchema, any, any,
37
37
  }, "id"> & {
38
38
  id: string;
39
39
  }>;
40
- name?: _$mongoose.SchemaDefinitionProperty<string, TagSchema, _$mongoose.Document<unknown, {}, TagSchema, {
40
+ creatorId?: User["id"];
41
+ createdAt?: _$mongoose.SchemaDefinitionProperty<number, TagSchema, _$mongoose.Document<unknown, {}, TagSchema, {
41
42
  id: string;
42
43
  }, _$mongoose.DefaultSchemaOptions> & Omit<Omit<Tag, "id"> & {
43
44
  _id: _$mongoose.Types.ObjectId;
@@ -48,7 +49,7 @@ declare const tagSchema: Schema<TagSchema, _$mongoose.Model<TagSchema, any, any,
48
49
  }, "id"> & {
49
50
  id: string;
50
51
  }>;
51
- description?: _$mongoose.SchemaDefinitionProperty<string, TagSchema, _$mongoose.Document<unknown, {}, TagSchema, {
52
+ updatedAt?: _$mongoose.SchemaDefinitionProperty<number, TagSchema, _$mongoose.Document<unknown, {}, TagSchema, {
52
53
  id: string;
53
54
  }, _$mongoose.DefaultSchemaOptions> & Omit<Omit<Tag, "id"> & {
54
55
  _id: _$mongoose.Types.ObjectId;
@@ -70,7 +71,7 @@ declare const tagSchema: Schema<TagSchema, _$mongoose.Model<TagSchema, any, any,
70
71
  }, "id"> & {
71
72
  id: string;
72
73
  }>;
73
- organizationId?: _$mongoose.SchemaDefinitionProperty<_$mongoose.Types.ObjectId, TagSchema, _$mongoose.Document<unknown, {}, TagSchema, {
74
+ key?: _$mongoose.SchemaDefinitionProperty<string, TagSchema, _$mongoose.Document<unknown, {}, TagSchema, {
74
75
  id: string;
75
76
  }, _$mongoose.DefaultSchemaOptions> & Omit<Omit<Tag, "id"> & {
76
77
  _id: _$mongoose.Types.ObjectId;
@@ -81,8 +82,7 @@ declare const tagSchema: Schema<TagSchema, _$mongoose.Model<TagSchema, any, any,
81
82
  }, "id"> & {
82
83
  id: string;
83
84
  }>;
84
- creatorId?: User["id"];
85
- key?: _$mongoose.SchemaDefinitionProperty<string, TagSchema, _$mongoose.Document<unknown, {}, TagSchema, {
85
+ description?: _$mongoose.SchemaDefinitionProperty<string, TagSchema, _$mongoose.Document<unknown, {}, TagSchema, {
86
86
  id: string;
87
87
  }, _$mongoose.DefaultSchemaOptions> & Omit<Omit<Tag, "id"> & {
88
88
  _id: _$mongoose.Types.ObjectId;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@intlayer/backend",
3
- "version": "8.7.13",
3
+ "version": "8.7.14",
4
4
  "private": false,
5
5
  "description": "Intlayer Backend is a an application that allow you to manage your Intlayer content and interact with the intlayer editor.",
6
6
  "keywords": [
@@ -82,9 +82,9 @@
82
82
  "@fastify/formbody": "8.0.2",
83
83
  "@fastify/helmet": "13.0.2",
84
84
  "@fastify/rate-limit": "10.3.0",
85
- "@intlayer/ai": "8.7.13",
86
- "@intlayer/chokidar": "8.7.13",
87
- "@intlayer/core": "8.7.13",
85
+ "@intlayer/ai": "8.7.14",
86
+ "@intlayer/chokidar": "8.7.14",
87
+ "@intlayer/core": "8.7.14",
88
88
  "@octokit/rest": "22.0.1",
89
89
  "@react-email/components": "1.0.12",
90
90
  "better-auth": "1.6.9",
@@ -94,7 +94,7 @@
94
94
  "defu": "6.1.7",
95
95
  "dotenv": "17.4.2",
96
96
  "fastify": "5.8.5",
97
- "fastify-intlayer": "8.7.13",
97
+ "fastify-intlayer": "8.7.14",
98
98
  "ioredis": "5.10.1",
99
99
  "mongodb": "7.2.0",
100
100
  "mongoose": "9.6.1",
@@ -110,9 +110,9 @@
110
110
  "zod": "4.4.2"
111
111
  },
112
112
  "devDependencies": {
113
- "@intlayer/config": "8.7.13",
114
- "@intlayer/docs": "8.7.12",
115
- "@intlayer/types": "8.7.13",
113
+ "@intlayer/config": "8.7.14",
114
+ "@intlayer/docs": "8.7.14",
115
+ "@intlayer/types": "8.7.14",
116
116
  "@types/node": "25.6.0",
117
117
  "@types/oauth2-server": "3.0.18",
118
118
  "@types/react": "19.2.14",
@@ -120,7 +120,7 @@
120
120
  "@utils/ts-config": "1.0.4",
121
121
  "@utils/ts-config-types": "1.0.4",
122
122
  "@utils/tsdown-config": "1.0.4",
123
- "intlayer": "8.7.13",
123
+ "intlayer": "8.7.14",
124
124
  "rimraf": "6.1.3",
125
125
  "tsdown": "0.21.10",
126
126
  "typescript": "6.0.3",