{"_id":"@alexd2/rag-types","_rev":"6-2ef33b6c3db2a6805921d363de4358c2","name":"@alexd2/rag-types","dist-tags":{"latest":"1.0.11"},"versions":{"1.0.5":{"name":"@alexd2/rag-types","version":"1.0.5","keywords":[],"author":"","license":"ISC","_id":"@alexd2/rag-types@1.0.5","maintainers":[{"name":"alexd2","email":"taskerhttpserver@gmail.com"}],"dist":{"shasum":"42e7346d625d5720e71685d6d727343d72f7153a","tarball":"https://registry.npmjs.org/@alexd2/rag-types/-/rag-types-1.0.5.tgz","fileCount":15,"integrity":"sha512-djtZtceR8SHezEEx305xeIbpudPfm8pPITj3mEYjOXgErUOnoGKPa/3qSkQ0QUyDoqJB6VULGWLSa80x9lVptg==","signatures":[{"sig":"MEYCIQC0+cuX78oZNAJcf3DuuZilW5aDiV+RXtfoU7J5uQYsWgIhAKRUELG9v8DSCKf0PK4S7AR70CSVwhYLLZZvyGxRVIwR","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":16549},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","gitHead":"4ac543884a70e404a54e9339c2c5a9a50be49466","scripts":{"build":"tsc"},"_npmUser":{"name":"alexd2","email":"taskerhttpserver@gmail.com"},"_npmVersion":"10.9.3","description":"Définitions de types TypeScript et schémas de validation Zod pour l'écosystème RAG (Retrieval-Augmented Generation).","directories":{},"_nodeVersion":"22.19.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"zod":"^3.23.8 || ^4.0.0","typescript":"^6.0.3"},"peerDependencies":{"zod":"^3.23.8 || ^4.0.0"},"_npmOperationalInternal":{"tmp":"tmp/rag-types_1.0.5_1787732939976_0.28077181798682993","host":"s3://npm-registry-packages-npm-production"}},"1.0.6":{"name":"@alexd2/rag-types","version":"1.0.6","keywords":[],"author":"","license":"ISC","_id":"@alexd2/rag-types@1.0.6","maintainers":[{"name":"alexd2","email":"taskerhttpserver@gmail.com"}],"dist":{"shasum":"bfb32e4db1178bb1e2f17306ee41d92b0bc2175d","tarball":"https://registry.npmjs.org/@alexd2/rag-types/-/rag-types-1.0.6.tgz","fileCount":15,"integrity":"sha512-rgW7/53cjdXwxW3gAYmlssc8uhc82GC/eCsSyYr5RHFVMSjFAHuqVPNwb3QPFnFba5rcZux2BSyCIT4DxwldWQ==","signatures":[{"sig":"MEUCIQC13uwmWNhepJXlodRoTS8slxLLiWdIZXCuVw62thTFBAIgKrsEqJIAFSUGC1hfybvVDnouho7y0ugDlJIKOgcCZ20=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":17631},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","gitHead":"b88f452b9a9ed5099ca338e663f69c51f22fe5d9","scripts":{"build":"tsc"},"_npmUser":{"name":"alexd2","email":"taskerhttpserver@gmail.com"},"_npmVersion":"10.9.3","description":"Définitions de types TypeScript et schémas de validation Zod pour l'écosystème RAG (Retrieval-Augmented Generation).","directories":{},"_nodeVersion":"22.19.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"zod":"^3.23.8 || ^4.0.0","typescript":"^6.0.3"},"peerDependencies":{"zod":"^3.23.8 || ^4.0.0"},"_npmOperationalInternal":{"tmp":"tmp/rag-types_1.0.6_1788432902949_0.8145129169821723","host":"s3://npm-registry-packages-npm-production"}},"1.0.7":{"name":"@alexd2/rag-types","version":"1.0.7","keywords":[],"author":"","license":"ISC","_id":"@alexd2/rag-types@1.0.7","maintainers":[{"name":"alexd2","email":"taskerhttpserver@gmail.com"}],"dist":{"shasum":"cf26cfcc4515b8e1bab80f2d635684e7df3dbc14","tarball":"https://registry.npmjs.org/@alexd2/rag-types/-/rag-types-1.0.7.tgz","fileCount":15,"integrity":"sha512-TabkyJCXKrTUNSWx8l9TYfSNNay3mzsF0qPogPLvnmQSjUB14bxDQn+KOr/gbRi5gt7zxY0F6jiCj3IsPU6E5w==","signatures":[{"sig":"MEUCIHbYf3kFWOg2zLqw6mvtAbd5gAqzEkMvTEF7bqFIQVOSAiEA8NZUhah+4swNDkyyCtUoUYfupgb6/4Cdda65yHf4SHQ=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEYCIQCqtH/q3fNLfY4VhcuWym6T31PA1+hbYLLR2zV7/mlmNwIhAI1HAnwEHyLizhNBeosCazkjJgI7kk72j/5Okd6NUadP","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":19659},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","gitHead":"82987b08f00239e51f0cf7fee8d260976bc53eb7","scripts":{"build":"tsc"},"_npmUser":{"name":"alexd2","email":"taskerhttpserver@gmail.com"},"_npmVersion":"11.19.0","description":"Définitions de types TypeScript et schémas de validation Zod pour l'écosystème RAG (Retrieval-Augmented Generation).","directories":{},"_nodeVersion":"26.8.1","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"zod":"^3.23.8 || ^4.0.0","typescript":"^6.0.3"},"peerDependencies":{"zod":"^3.23.8 || ^4.0.0"},"_npmOperationalInternal":{"tmp":"tmp/rag-types_1.0.7_1789472146406_0.8215275977259713","host":"s3://npm-registry-packages-npm-production"}},"1.0.8":{"name":"@alexd2/rag-types","version":"1.0.8","keywords":[],"author":"","license":"ISC","_id":"@alexd2/rag-types@1.0.8","maintainers":[{"name":"alexd2","email":"taskerhttpserver@gmail.com"}],"dist":{"shasum":"d33ee481e47c9f85ed5beb621d960212516f5fd2","tarball":"https://registry.npmjs.org/@alexd2/rag-types/-/rag-types-1.0.8.tgz","fileCount":15,"integrity":"sha512-7k2tSGytbe1J3zGoez9erZHUFepmYFN2kOGQoQsz4jg2celjOGRKLANsWbBZfNL+lBy3om1jN9cEmT2eAgm6uA==","signatures":[{"sig":"MEYCIQCH9DawMxHvj5eBis1V/14yEhUywk7YyhiUQ4abx7HyPgIhALkK9ecKyJpIkXO0kyfYtkLk3ULGxZ/bpmwxV7nPvLeA","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEYCIQClIxZR1Gf66rL1AJQIFUPeFc9G6COMtRgqmGYVhhOpcwIhAJrLRzfx3sWm6FpqNaqM8ziZjIQhd1vdmBc90e6wkP9m","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":20813},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","gitHead":"7ac6bf255b7e0dcec5ff53f9ce7e9e062811d750","scripts":{"build":"tsc"},"_npmUser":{"name":"alexd2","email":"taskerhttpserver@gmail.com"},"_npmVersion":"11.19.0","description":"Définitions de types TypeScript et schémas de validation Zod pour l'écosystème RAG (Retrieval-Augmented Generation).","directories":{},"_nodeVersion":"26.8.1","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"zod":"^3.23.8 || ^4.0.0","typescript":"^6.0.3"},"peerDependencies":{"zod":"^3.23.8 || ^4.0.0"},"_npmOperationalInternal":{"tmp":"tmp/rag-types_1.0.8_1789474450336_0.22302651485285163","host":"s3://npm-registry-packages-npm-production"}},"1.0.9":{"name":"@alexd2/rag-types","version":"1.0.9","keywords":[],"author":"","license":"ISC","_id":"@alexd2/rag-types@1.0.9","maintainers":[{"name":"alexd2","email":"taskerhttpserver@gmail.com"}],"dist":{"shasum":"9781a789169823c9cf8f863faae762bfba37e972","tarball":"https://registry.npmjs.org/@alexd2/rag-types/-/rag-types-1.0.9.tgz","fileCount":15,"integrity":"sha512-8NB/pOIu2L7WaB1526weciysfRCPgEbt75SYa5HbLFnhs9kQ3cn3q+vmC8pZ4FZeuqu6Yoh3IyNmsgI89j5n/w==","signatures":[{"sig":"MEUCIQDINKabs6JTTEr96AodcECh76Z1zBXtNKm5x3X+dFzvAwIgAi+rTuP0/ETk4g316I6L2/ZvLw9Tn5LFD3w5aiHLlmM=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEYCIQCXh57lgfynmnyUeF8qAcHej+f0zu8mCXgawZ1Pb53SzAIhAI5aD38/kzAeSMUVn90hUaDz9m1BOg4l6th/0q+KLOVM","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":21003},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","gitHead":"7ac6bf255b7e0dcec5ff53f9ce7e9e062811d750","scripts":{"build":"tsc"},"_npmUser":{"name":"alexd2","email":"taskerhttpserver@gmail.com"},"_npmVersion":"11.19.0","description":"Définitions de types TypeScript et schémas de validation Zod pour l'écosystème RAG (Retrieval-Augmented Generation).","directories":{},"_nodeVersion":"26.8.1","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"zod":"^3.23.8 || ^4.0.0","typescript":"^6.0.3"},"peerDependencies":{"zod":"^3.23.8 || ^4.0.0"},"_npmOperationalInternal":{"tmp":"tmp/rag-types_1.0.9_1789474642867_0.8077063929975676","host":"s3://npm-registry-packages-npm-production"}},"1.0.11":{"_id":"@alexd2/rag-types@1.0.11","dist":{"shasum":"94bc52183603bd652ea289cb5a8e4741d46463ab","tarball":"https://registry.npmjs.org/@alexd2/rag-types/-/rag-types-1.0.11.tgz","fileCount":15,"integrity":"sha512-9aJnFP0Z8mxsSRhdNxHdc5rbkzCK6+Zdm+8WKG4TGS7S/US2VdEJKSnwZAcqnWVsVd1yQ5SOng72n7gLrJ7Ymg==","signatures":[{"sig":"MEQCIAo4SXp0+hCe0qBVm2vGW+rmxE3bWDt6blUsYBm8axydAiAcH7/NmlM+fILRrRCmTMNY9X8B2lCTx46MPluCIpzOdg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDRLJWrHmiaVi8ye3/wkzjZFaiHkLxGzxKt+o3n3RWHKAIhALk2F2LtTwIjfgSps61Rriu9lpji32+T6S6tZgUiXwmK"}],"unpackedSize":21447},"main":"dist/index.js","name":"@alexd2/rag-types","type":"module","types":"dist/index.d.ts","author":"","gitHead":"2bfb6d54112029f497982dbc1a986544085257fd","license":"ISC","scripts":{"build":"tsc"},"version":"1.0.11","_npmUser":{"name":"alexd2","email":"taskerhttpserver@gmail.com"},"keywords":[],"_npmVersion":"11.19.0","description":"Définitions de types TypeScript et schémas de validation Zod pour l'écosystème RAG (Retrieval-Augmented Generation).","directories":{},"maintainers":[{"name":"alexd2","email":"taskerhttpserver@gmail.com"}],"_nodeVersion":"26.8.1","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"zod":"^4.0.0","typescript":"^6.0.3"},"peerDependencies":{"zod":"^4.0.0"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/rag-types_1.0.11_1790600117621_0.30048487096350707"}}},"time":{"created":"2026-08-26T08:28:59.829Z","modified":"2026-09-28T12:55:17.870Z","1.0.5":"2026-08-26T08:29:00.096Z","1.0.6":"2026-09-03T10:55:03.086Z","1.0.7":"2026-09-15T11:35:46.505Z","1.0.8":"2026-09-15T12:14:10.442Z","1.0.9":"2026-09-15T12:17:22.949Z","1.0.11":"2026-09-28T12:55:17.707Z"},"license":"ISC","keywords":[],"description":"Définitions de types TypeScript et schémas de validation Zod pour l'écosystème RAG (Retrieval-Augmented Generation).","maintainers":[{"name":"alexd2","email":"taskerhttpserver@gmail.com"}],"readme":"# @graphens/rag-types\n\nDéfinitions de types TypeScript et schémas de validation Zod pour l'écosystème RAG (Retrieval-Augmented Generation).\n\nCe paquet fournit les interfaces et DTOs réutilisables pour interconnecter les microservices de données, d'indexation vectorielle et d'API de recherche RAG.\n\n---\n\n## 📦 Installation\n\nPour installer ce package dans votre projet :\n\n```bash\nnpm install @graphens/rag-types\n```\n\n*Note : `zod` est une dépendance paire (peerDependency). Si elle n'est pas installée dans votre projet :*\n\n```bash\nnpm install zod\n```\n\n---\n\n## 🚀 Utilisation\n\n### Imports des Interfaces TypeScript\n\n```typescript\nimport type { \n  Page, \n  Course, \n  GraphData, \n  ChunkResultat, \n  ContextResult \n} from '@graphens/rag-types';\n```\n\n### Imports des Schémas et Types Zod (DTO)\n\n```typescript\nimport { \n  AskRequestSchema, \n  AskResponseSchema, \n  AddDocumentRequestSchema,\n  UpdateDocumentRequestSchema,\n  type AskRequest,\n  type AskResponse \n} from '@graphens/rag-types';\n\n// Validation d'une requête entrante\nconst body = {\n  question: \"Qu'est-ce qu'un graphe ?\",\n  nbResultats: 5\n};\n\nconst parsed = AskRequestSchema.parse(body);\n```\n\n---\n\n## 🛠️ Développement Local & Contribution\n\n### Préréquis\n- Node.js (v18+)\n- npm\n\n### Installation des dépendances\n```bash\nnpm install\n```\n\n### Compilation\nCompiler les fichiers TypeScript vers JavaScript (ESM) et générer les définitions `.d.ts` dans le dossier `dist/` :\n\n```bash\nnpm run build\n```\n\n---\n\n## 🚀 Publication sur NPM\n\nPour publier ce package sur le registre public NPM :\n\n1. Se connecter à son compte NPM :\n   ```bash\n   npm login\n   ```\n\n2. Publier la nouvelle version :\n   ```bash\n   npm publish --access public\n   ```\n\n*(Le script `prepublishOnly` exécutera automatiquement `npm run build` avant la publication).*\n\n---\n\n## Droit de publication\n\nUtiliser un Granular Access Token\n\nSi tu publies depuis une CI/CD ou si tu ne veux pas saisir un code 2FA à chaque publication, crée un Granular Access Token avec :\n\naccès au package @alexd2/rag-types ;\npermission Read and write ;\nbypass 2FA activé.\n\nEnsuite, configure le token dans ton environnement npm plutôt que de mettre le token directement dans le dépôt.\n\nPar exemple, pour une publication locale :\n\nnpm config set //registry.npmjs.org/:_authToken=TON_TOKEN\nnpm publish\n\n## 📄 Licence\n\n[ISC](LICENSE)\n","readmeFilename":"README.md"}