From 61ae7c7f7296570a4575f47e61e4cddcdc5f3ebc Mon Sep 17 00:00:00 2001 From: KavithaSiva Date: Sat, 21 Dec 2024 00:44:43 +0100 Subject: [PATCH 1/8] chore: update cloud-sdk --- package.json | 12 +- packages/ai-api/package.json | 2 +- packages/core/package.json | 8 +- packages/foundation-models/package.json | 6 +- packages/langchain/package.json | 2 +- packages/orchestration/package.json | 4 +- pnpm-lock.yaml | 463 +++++++++++++----------- sample-code/package.json | 2 +- tests/e2e-tests/package.json | 2 +- tests/smoke-tests/package.json | 2 +- tests/type-tests/package.json | 4 +- 11 files changed, 276 insertions(+), 231 deletions(-) diff --git a/package.json b/package.json index 3745bec7..34369e3f 100644 --- a/package.json +++ b/package.json @@ -41,12 +41,12 @@ "@sap-ai-sdk/foundation-models": "workspace:^", "@sap-ai-sdk/orchestration": "workspace:^", "tsx": "^4.19.2", - "@sap-cloud-sdk/connectivity": "^3.24.0", - "@sap-cloud-sdk/eslint-config": "^3.24.0", - "@sap-cloud-sdk/generator-common": "^3.24.0", - "@sap-cloud-sdk/http-client": "^3.24.0", - "@sap-cloud-sdk/openapi-generator": "^3.24.0", - "@sap-cloud-sdk/util": "^3.24.0", + "@sap-cloud-sdk/connectivity": "^3.25.0", + "@sap-cloud-sdk/eslint-config": "^3.25.0", + "@sap-cloud-sdk/generator-common": "^3.25.0", + "@sap-cloud-sdk/http-client": "^3.25.0", + "@sap-cloud-sdk/openapi-generator": "^3.25.0", + "@sap-cloud-sdk/util": "^3.25.0", "@types/jest": "^29.5.14", "@types/jsonwebtoken": "^9.0.7", "@types/mock-fs": "^4.13.4", diff --git a/packages/ai-api/package.json b/packages/ai-api/package.json index 55cf152c..ec7bd3f8 100644 --- a/packages/ai-api/package.json +++ b/packages/ai-api/package.json @@ -29,6 +29,6 @@ }, "dependencies": { "@sap-ai-sdk/core": "workspace:^", - "@sap-cloud-sdk/connectivity": "^3.24.0" + "@sap-cloud-sdk/connectivity": "^3.25.0" } } diff --git a/packages/core/package.json b/packages/core/package.json index 16976aab..f65fda46 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -26,9 +26,9 @@ "lint:fix": "eslint \"**/*.ts\" --fix && prettier . --config ../../.prettierrc --ignore-path ../../.prettierignore -w --log-level error" }, "dependencies": { - "@sap-cloud-sdk/connectivity": "^3.24.0", - "@sap-cloud-sdk/http-client": "^3.24.0", - "@sap-cloud-sdk/openapi": "^3.24.0", - "@sap-cloud-sdk/util": "^3.24.0" + "@sap-cloud-sdk/connectivity": "^3.25.0", + "@sap-cloud-sdk/http-client": "^3.25.0", + "@sap-cloud-sdk/openapi": "^3.25.0", + "@sap-cloud-sdk/util": "^3.25.0" } } diff --git a/packages/foundation-models/package.json b/packages/foundation-models/package.json index b79ade43..f47b2ef5 100644 --- a/packages/foundation-models/package.json +++ b/packages/foundation-models/package.json @@ -32,8 +32,8 @@ "dependencies": { "@sap-ai-sdk/ai-api": "workspace:^", "@sap-ai-sdk/core": "workspace:^", - "@sap-cloud-sdk/http-client": "^3.24.0", - "@sap-cloud-sdk/util": "^3.24.0", - "@sap-cloud-sdk/connectivity": "^3.24.0" + "@sap-cloud-sdk/http-client": "^3.25.0", + "@sap-cloud-sdk/util": "^3.25.0", + "@sap-cloud-sdk/connectivity": "^3.25.0" } } diff --git a/packages/langchain/package.json b/packages/langchain/package.json index ea8a1ffb..9319102d 100644 --- a/packages/langchain/package.json +++ b/packages/langchain/package.json @@ -29,7 +29,7 @@ "@sap-ai-sdk/ai-api": "workspace:^", "@sap-ai-sdk/core": "workspace:^", "@sap-ai-sdk/foundation-models": "workspace:^", - "@sap-cloud-sdk/connectivity": "^3.24.0", + "@sap-cloud-sdk/connectivity": "^3.25.0", "@langchain/core": "0.3.25", "zod-to-json-schema": "^3.24.1" } diff --git a/packages/orchestration/package.json b/packages/orchestration/package.json index 3d5fc8f1..d861f216 100644 --- a/packages/orchestration/package.json +++ b/packages/orchestration/package.json @@ -32,7 +32,7 @@ "dependencies": { "@sap-ai-sdk/core": "workspace:^", "@sap-ai-sdk/ai-api": "workspace:^", - "@sap-cloud-sdk/http-client": "^3.24.0", - "@sap-cloud-sdk/connectivity": "^3.24.0" + "@sap-cloud-sdk/http-client": "^3.25.0", + "@sap-cloud-sdk/connectivity": "^3.25.0" } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 7efb5893..b0016259 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -29,23 +29,23 @@ importers: specifier: workspace:^ version: link:packages/orchestration '@sap-cloud-sdk/connectivity': - specifier: ^3.24.0 - version: 3.24.0 + specifier: ^3.25.0 + version: 3.25.0 '@sap-cloud-sdk/eslint-config': - specifier: ^3.24.0 - version: 3.24.0(@types/eslint@8.56.10)(@typescript-eslint/eslint-plugin@8.16.0(@typescript-eslint/parser@8.16.0(eslint@9.17.0)(typescript@5.7.2))(eslint@9.17.0)(typescript@5.7.2))(eslint@9.17.0)(prettier@3.4.2)(typescript@5.7.2) + specifier: ^3.25.0 + version: 3.25.0(@types/eslint@8.56.10)(@typescript-eslint/eslint-plugin@8.18.1(@typescript-eslint/parser@8.18.1(eslint@9.17.0)(typescript@5.7.2))(eslint@9.17.0)(typescript@5.7.2))(eslint@9.17.0)(prettier@3.4.2)(typescript@5.7.2) '@sap-cloud-sdk/generator-common': - specifier: ^3.24.0 - version: 3.24.0 + specifier: ^3.25.0 + version: 3.25.0 '@sap-cloud-sdk/http-client': - specifier: ^3.24.0 - version: 3.24.0 + specifier: ^3.25.0 + version: 3.25.0 '@sap-cloud-sdk/openapi-generator': - specifier: ^3.24.0 - version: 3.24.0 + specifier: ^3.25.0 + version: 3.25.0 '@sap-cloud-sdk/util': - specifier: ^3.24.0 - version: 3.24.0 + specifier: ^3.25.0 + version: 3.25.0 '@types/jest': specifier: ^29.5.14 version: 29.5.14 @@ -101,23 +101,23 @@ importers: specifier: workspace:^ version: link:../core '@sap-cloud-sdk/connectivity': - specifier: ^3.24.0 - version: 3.24.0 + specifier: ^3.25.0 + version: 3.25.0 packages/core: dependencies: '@sap-cloud-sdk/connectivity': - specifier: ^3.24.0 - version: 3.24.0 + specifier: ^3.25.0 + version: 3.25.0 '@sap-cloud-sdk/http-client': - specifier: ^3.24.0 - version: 3.24.0 + specifier: ^3.25.0 + version: 3.25.0 '@sap-cloud-sdk/openapi': - specifier: ^3.24.0 - version: 3.24.0 + specifier: ^3.25.0 + version: 3.25.0 '@sap-cloud-sdk/util': - specifier: ^3.24.0 - version: 3.24.0 + specifier: ^3.25.0 + version: 3.25.0 packages/document-grounding: dependencies: @@ -134,14 +134,14 @@ importers: specifier: workspace:^ version: link:../core '@sap-cloud-sdk/connectivity': - specifier: ^3.24.0 - version: 3.24.0 + specifier: ^3.25.0 + version: 3.25.0 '@sap-cloud-sdk/http-client': - specifier: ^3.24.0 - version: 3.24.0 + specifier: ^3.25.0 + version: 3.25.0 '@sap-cloud-sdk/util': - specifier: ^3.24.0 - version: 3.24.0 + specifier: ^3.25.0 + version: 3.25.0 packages/langchain: dependencies: @@ -158,8 +158,8 @@ importers: specifier: workspace:^ version: link:../foundation-models '@sap-cloud-sdk/connectivity': - specifier: ^3.24.0 - version: 3.24.0 + specifier: ^3.25.0 + version: 3.25.0 zod-to-json-schema: specifier: ^3.24.1 version: 3.24.1(zod@3.24.1) @@ -173,11 +173,11 @@ importers: specifier: workspace:^ version: link:../core '@sap-cloud-sdk/connectivity': - specifier: ^3.24.0 - version: 3.24.0 + specifier: ^3.25.0 + version: 3.25.0 '@sap-cloud-sdk/http-client': - specifier: ^3.24.0 - version: 3.24.0 + specifier: ^3.25.0 + version: 3.25.0 sample-cap: dependencies: @@ -228,8 +228,8 @@ importers: specifier: workspace:^ version: link:../packages/orchestration '@sap-cloud-sdk/util': - specifier: ^3.24.0 - version: 3.24.0 + specifier: ^3.25.0 + version: 3.25.0 '@types/express': specifier: ^5.0.0 version: 5.0.0 @@ -238,7 +238,7 @@ importers: version: 4.21.2 langchain: specifier: 0.3.7 - version: 0.3.7(@langchain/core@0.3.25(openai@4.61.1(zod@3.24.1)))(axios@1.7.8)(cheerio@1.0.0)(handlebars@4.7.8)(openai@4.61.1(zod@3.24.1)) + version: 0.3.7(@langchain/core@0.3.25(openai@4.61.1(zod@3.24.1)))(axios@1.7.9)(cheerio@1.0.0)(handlebars@4.7.8)(openai@4.61.1(zod@3.24.1)) tests/e2e-tests: dependencies: @@ -252,8 +252,8 @@ importers: specifier: workspace:^ version: link:../../sample-code '@sap-cloud-sdk/util': - specifier: ^3.24.0 - version: 3.24.0 + specifier: ^3.25.0 + version: 3.25.0 devDependencies: '@types/async-retry': specifier: ^1.4.9 @@ -298,14 +298,14 @@ importers: specifier: canary version: 1.4.1-20241219013138.0 '@sap-cloud-sdk/util': - specifier: ^3.24.0 - version: 3.24.0 + specifier: ^3.25.0 + version: 3.25.0 express: specifier: ^4.21.2 version: 4.21.2 langchain: specifier: 0.3.7 - version: 0.3.7(@langchain/core@0.3.25(openai@4.61.1(zod@3.24.1)))(axios@1.7.8)(cheerio@1.0.0)(handlebars@4.7.8)(openai@4.61.1(zod@3.24.1)) + version: 0.3.7(@langchain/core@0.3.25(openai@4.61.1(zod@3.24.1)))(axios@1.7.9)(cheerio@1.0.0)(handlebars@4.7.8)(openai@4.61.1(zod@3.24.1)) devDependencies: '@types/express': specifier: ^5.0.0 @@ -329,11 +329,11 @@ importers: specifier: workspace:^ version: link:../../packages/orchestration '@sap-cloud-sdk/connectivity': - specifier: ^3.24.0 - version: 3.24.0 + specifier: ^3.25.0 + version: 3.25.0 '@sap-cloud-sdk/http-client': - specifier: ^3.24.0 - version: 3.24.0 + specifier: ^3.25.0 + version: 3.25.0 tsd: specifier: ^0.31.2 version: 0.31.2 @@ -789,10 +789,6 @@ packages: resolution: {integrity: sha512-grOjVNN8P3hjJn/eIETF1wwd12DdnwFDoyceUJLYYdkpbwq3nLi+4fqrTAONx7XDALqlL220wC/RHSC/QTI/0w==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - '@eslint/js@9.15.0': - resolution: {integrity: sha512-tMTqrY+EzbXmKJR5ToI8lxu7jaN5EdmrBFJpQk5JmSlyLsx6o4t27r883K5xsLuCYCpfKBCGswMSWXsM+jB7lg==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - '@eslint/js@9.17.0': resolution: {integrity: sha512-Sxc4hqcs1kTu0iID3kcZDW3JHq2a77HO9P8CP6YEA/FpH3Ll8UXE2r/86Rz9YJLKme39S9vU5OWNjC6Xl0Cr3w==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} @@ -1048,32 +1044,32 @@ packages: '@sap-ai-sdk/orchestration@1.4.1-20241219013138.0': resolution: {integrity: sha512-FAscgMUJ+TenlYE2Ez/p3WPbB2BtyLm7FBMwBoxTyLZhrd5BFM/+sZmVnLb7MB3YvF49d9tndmgqFum6/pOFXw==} - '@sap-cloud-sdk/connectivity@3.24.0': - resolution: {integrity: sha512-yi9JxZEOzwqIOwwhcVnE7PUk7gvU6fY952SaGv0x12E1MVwGIw+A/mg4qp74GPt9mvn/36y75XSajlIVu4IReA==} + '@sap-cloud-sdk/connectivity@3.25.0': + resolution: {integrity: sha512-mf9TA7brehISMtI/6/RoJ+c+mTyAJOzWVccv/3WrTUrPxmE+m5MZOsXH/rnbwo9ZZ1jw3NlDn1xOPamSq8VD/A==} - '@sap-cloud-sdk/eslint-config@3.24.0': - resolution: {integrity: sha512-9dWqL+kwsZgTmPAf//F09k2cQU2jvS7xP/iAE72D/VilbNNJri0LWn1PhPjI6+0E6kybvE+trK9CgcrpAmDEuA==} + '@sap-cloud-sdk/eslint-config@3.25.0': + resolution: {integrity: sha512-3lclS6kQGsalUhcQbEBBLDfTyVIL9pTny/lWG3PBwftIf1er0N3nynPRIx0UDrwAxUskaPThWocT5fUl1dEB6g==} peerDependencies: eslint: ^8.0.0 - '@sap-cloud-sdk/generator-common@3.24.0': - resolution: {integrity: sha512-q/D4g1Pead1VM7snwjulGiSx59SbL6AySqRgcgGnajWwLi+KNujquza9R6L2fHUCij+amKoE3co10P4ClFa5ww==} + '@sap-cloud-sdk/generator-common@3.25.0': + resolution: {integrity: sha512-znanHHonRvOIj8iu1grz/9pzNp5Yv1yU/3PTV6R/M7sk8YbWHunzi26PO9NKdpPf5NdeAB3Pw3bUPE+gcYQe3g==} - '@sap-cloud-sdk/http-client@3.24.0': - resolution: {integrity: sha512-Zx9sqwNTe77eztVXBGhIPMlB/39zir42wSYX95G4NNQNljnzNeEp3bA7bF4hF2zKS6Z8byG/j5p6b30UJ2goiw==} + '@sap-cloud-sdk/http-client@3.25.0': + resolution: {integrity: sha512-4XQsdHjqFSt7pJ86XmBpCB1JthjqthKY9L/F8SPUfsvTZkm7O6omvgwHXvYpyDNI1cGheyF7CognZ9LyLuYvKw==} - '@sap-cloud-sdk/openapi-generator@3.24.0': - resolution: {integrity: sha512-+vgPwndHxxxEvh5HY8wWIUr0gD3B+38TJ34G/lTfGY8CU/IJIWO0rwY3Fb6jovY5ezNRz7PisLbBUroQpn+VTQ==} + '@sap-cloud-sdk/openapi-generator@3.25.0': + resolution: {integrity: sha512-4OXbYr31+JvmphdEUkFNfqy69SgHI/coyvQiUGoohNwO3IlBaQnFincj/iK84pPLHZNVcO8AlIdY7UDLLbk8cg==} hasBin: true - '@sap-cloud-sdk/openapi@3.24.0': - resolution: {integrity: sha512-7RZX2sqJxc3pmeyOrCSGILHlsyS4KgHBw/DHBuSMe6pFTxvzQqGF5JRBnklzBUE65uBc041Vgc8q9DJcfDANog==} + '@sap-cloud-sdk/openapi@3.25.0': + resolution: {integrity: sha512-2r/vxS9RUME+m9cziHjt2nlw5cXo07ZlTE05BySNWOypYCMBgu+LfZL3dWN5HintYCqKYZV+i7S1YZ8VNyklFQ==} - '@sap-cloud-sdk/resilience@3.24.0': - resolution: {integrity: sha512-n8JbVoy2PIDyIiTDIJfgfhK6Cn/HegoUSXhksbc6tM111TKvgCz8pw/A3cXrcMSVSa0KP4gI4sxiklV2GPw/uA==} + '@sap-cloud-sdk/resilience@3.25.0': + resolution: {integrity: sha512-CVi05HIN/USOXezEkBFCf8d2dsDHbMmoRbVYUHWwaLiZfoAi+pcDUq7pcj8j/CaaiBu5cmaeal0sQN+C3A4FWQ==} - '@sap-cloud-sdk/util@3.24.0': - resolution: {integrity: sha512-PXjOR/tkmaNmnHif5l39ei4iLb/fCssMRj92HmFigTGuQMIWfZtShKRHGOqmb6dOdp7JO7j2kngg3m2wmIe7Sg==} + '@sap-cloud-sdk/util@3.25.0': + resolution: {integrity: sha512-rNPb9qiN/pbz1C+dBD+IXLqq+vVAqOt5aL34emHLyoGb18VHRIFzkbgmI1HYMZyhLG5EhSeBdKXyLN38YFaJpA==} '@sap/cds-compiler@5.3.2': resolution: {integrity: sha512-aePHQMZHb13+oQuHU+ug5bwxXO11NThBEfUyA3uMGlnjkAxa8pbzuot9pHiiAIMavXLcqTzbCfm/uFGKcfjqBQ==} @@ -1165,8 +1161,8 @@ packages: '@sinonjs/fake-timers@11.2.2': resolution: {integrity: sha512-G2piCSxQ7oWOxwGSAyFHfPIsyeJGXYtc6mFbnFA+kRXkiEnTl8c/8jul2S329iFBnDI9HGoeWWAZvuvOkZccgw==} - '@stylistic/eslint-plugin@2.11.0': - resolution: {integrity: sha512-PNRHbydNG5EH8NK4c+izdJlxajIR6GxcUhzsYNRsn6Myep4dsZt0qFCz3rCPnkvgO5FYibDcMqgNHUT+zvjYZw==} + '@stylistic/eslint-plugin@2.12.1': + resolution: {integrity: sha512-fubZKIHSPuo07FgRTn6S4Nl0uXPRPYVNpyZzIDGfp7Fny6JjNus6kReLD7NI380JXi4HtUTSOZ34LBuNPO1XLQ==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} peerDependencies: eslint: '>=8.40.0' @@ -1313,45 +1309,44 @@ packages: '@types/yargs@17.0.32': resolution: {integrity: sha512-xQ67Yc/laOG5uMfX/093MRlGGCIBzZMarVa+gfNKJxWAIgykYpVGkBdbqEzGDDfCrVUj6Hiff4mTZ5BA6TmAog==} - '@typescript-eslint/eslint-plugin@8.16.0': - resolution: {integrity: sha512-5YTHKV8MYlyMI6BaEG7crQ9BhSc8RxzshOReKwZwRWN0+XvvTOm+L/UYLCYxFpfwYuAAqhxiq4yae0CMFwbL7Q==} + '@typescript-eslint/eslint-plugin@8.18.1': + resolution: {integrity: sha512-Ncvsq5CT3Gvh+uJG0Lwlho6suwDfUXH0HztslDf5I+F2wAFAZMRwYLEorumpKLzmO2suAXZ/td1tBg4NZIi9CQ==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} peerDependencies: '@typescript-eslint/parser': ^8.0.0 || ^8.0.0-alpha.0 eslint: ^8.57.0 || ^9.0.0 - typescript: '*' - peerDependenciesMeta: - typescript: - optional: true + typescript: '>=4.8.4 <5.8.0' - '@typescript-eslint/parser@8.16.0': - resolution: {integrity: sha512-D7DbgGFtsqIPIFMPJwCad9Gfi/hC0PWErRRHFnaCWoEDYi5tQUDiJCTmGUbBiLzjqAck4KcXt9Ayj0CNlIrF+w==} + '@typescript-eslint/parser@8.18.1': + resolution: {integrity: sha512-rBnTWHCdbYM2lh7hjyXqxk70wvon3p2FyaniZuey5TrcGBpfhVp0OxOa6gxr9Q9YhZFKyfbEnxc24ZnVbbUkCA==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} peerDependencies: eslint: ^8.57.0 || ^9.0.0 - typescript: '*' - peerDependenciesMeta: - typescript: - optional: true + typescript: '>=4.8.4 <5.8.0' '@typescript-eslint/scope-manager@8.16.0': resolution: {integrity: sha512-mwsZWubQvBki2t5565uxF0EYvG+FwdFb8bMtDuGQLdCCnGPrDEDvm1gtfynuKlnpzeBRqdFCkMf9jg1fnAK8sg==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - '@typescript-eslint/type-utils@8.16.0': - resolution: {integrity: sha512-IqZHGG+g1XCWX9NyqnI/0CX5LL8/18awQqmkZSl2ynn8F76j579dByc0jhfVSnSnhf7zv76mKBQv9HQFKvDCgg==} + '@typescript-eslint/scope-manager@8.18.1': + resolution: {integrity: sha512-HxfHo2b090M5s2+/9Z3gkBhI6xBH8OJCFjH9MhQ+nnoZqxU3wNxkLT+VWXWSFWc3UF3Z+CfPAyqdCTdoXtDPCQ==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + + '@typescript-eslint/type-utils@8.18.1': + resolution: {integrity: sha512-jAhTdK/Qx2NJPNOTxXpMwlOiSymtR2j283TtPqXkKBdH8OAMmhiUfP0kJjc/qSE51Xrq02Gj9NY7MwK+UxVwHQ==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} peerDependencies: eslint: ^8.57.0 || ^9.0.0 - typescript: '*' - peerDependenciesMeta: - typescript: - optional: true + typescript: '>=4.8.4 <5.8.0' '@typescript-eslint/types@8.16.0': resolution: {integrity: sha512-NzrHj6thBAOSE4d9bsuRNMvk+BvaQvmY4dDglgkgGC0EW/tB3Kelnp3tAKH87GEwzoxgeQn9fNGRyFJM/xd+GQ==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + '@typescript-eslint/types@8.18.1': + resolution: {integrity: sha512-7uoAUsCj66qdNQNpH2G8MyTFlgerum8ubf21s3TSM3XmKXuIn+H2Sifh/ES2nPOPiYSRJWAk0fDkW0APBWcpfw==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + '@typescript-eslint/typescript-estree@8.16.0': resolution: {integrity: sha512-E2+9IzzXMc1iaBy9zmo+UYvluE3TW7bCGWSF41hVWUE01o8nzr1rvOQYSxelxr6StUvRcTMe633eY8mXASMaNw==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} @@ -1361,6 +1356,12 @@ packages: typescript: optional: true + '@typescript-eslint/typescript-estree@8.18.1': + resolution: {integrity: sha512-z8U21WI5txzl2XYOW7i9hJhxoKKNG1kcU4RzyNvKrdZDmbjkmLBo8bgeiOJmA06kizLI76/CCBAAGlTlEeUfyg==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + peerDependencies: + typescript: '>=4.8.4 <5.8.0' + '@typescript-eslint/utils@8.16.0': resolution: {integrity: sha512-C1zRy/mOL8Pj157GiX4kaw7iyRLKfJXBR3L82hk5kS/GyHcOFmy4YUq/zfZti72I9wnuQtA/+xzft4wCC8PJdA==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} @@ -1371,10 +1372,21 @@ packages: typescript: optional: true + '@typescript-eslint/utils@8.18.1': + resolution: {integrity: sha512-8vikiIj2ebrC4WRdcAdDcmnu9Q/MXXwg+STf40BVfT8exDqBCUPdypvzcUPxEqRGKg9ALagZ0UWcYCtn+4W2iQ==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + peerDependencies: + eslint: ^8.57.0 || ^9.0.0 + typescript: '>=4.8.4 <5.8.0' + '@typescript-eslint/visitor-keys@8.16.0': resolution: {integrity: sha512-pq19gbaMOmFE3CbL0ZB8J8BFCo2ckfHBfaIsaOZgBIF4EoISJIdLX5xRhd0FGB0LlHReNRuzoJoMGpTjq8F2CQ==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + '@typescript-eslint/visitor-keys@8.18.1': + resolution: {integrity: sha512-Vj0WLm5/ZsD013YeUKn+K0y8p1M0jPpxOkKdbD1wB0ns53a5piVY02zjf072TblEweAbcYiFiPoSMF3kp+VhhQ==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + '@typescript/vfs@1.6.0': resolution: {integrity: sha512-hvJUjNVeBMp77qPINuUvYXj4FyWeeMMKZkxEATEU3hqBAQ7qdTBCUFT7Sp0Zu0faeEtFf+ldXxMEDr/bk73ISg==} peerDependencies: @@ -1563,6 +1575,9 @@ packages: axios@1.7.8: resolution: {integrity: sha512-Uu0wb7KNqK2t5K+YQyVCLM76prD5sRFjKHbJYCP1J7JFGEQ6nN7HWn9+04LAeiJ3ji54lgS/gZCH1oxyrf1SPw==} + axios@1.7.9: + resolution: {integrity: sha512-LhLcE7Hbiryz8oMDdDptSrWowmB4Bl6RCt6sIJKpRB4XtVf0iEgewX3au/pJqm+Py1kCASkb/FFKjxQaLtxJvw==} + babel-jest@30.0.0-alpha.6: resolution: {integrity: sha512-WOQkqpBz2q8d/AT6D6rZXW5xnKHDmk3kIukaXlzUyoBBIvLh1SEvi2RGS4fboEtS0kNkyL+zf1rSfkt5OCIgmw==} engines: {node: ^16.10.0 || ^18.12.0 || >=20.0.0} @@ -2140,8 +2155,8 @@ packages: eslint-import-resolver-node@0.3.9: resolution: {integrity: sha512-WFj2isz22JahUv+B788TlO3N6zL3nNJGU8CcZbPZvVEkBPaJdCV4vy5wyghty5ROFbCRnm132v8BScu5/1BQ8g==} - eslint-import-resolver-typescript@3.6.3: - resolution: {integrity: sha512-ud9aw4szY9cCT1EWWdGv1L1XR6hh2PaRWif0j2QjQ0pgTY/69iw+W0Z4qZv5wHahOl8isEr+k/JnyAqNQkLkIA==} + eslint-import-resolver-typescript@3.7.0: + resolution: {integrity: sha512-Vrwyi8HHxY97K5ebydMtffsWAn1SCR9eol49eCd5fJS4O1WV7PaAjbcjmbfJJSMz/t4Mal212Uz/fQZrOB8mow==} engines: {node: ^14.18.0 || >=16.0.0} peerDependencies: eslint: '*' @@ -2184,8 +2199,8 @@ packages: '@typescript-eslint/parser': optional: true - eslint-plugin-jsdoc@50.6.0: - resolution: {integrity: sha512-tCNp4fR79Le3dYTPB0dKEv7yFyvGkUCa+Z3yuTrrNGGOxBlXo9Pn0PEgroOZikUQOGjxoGMVKNjrOHcYEdfszg==} + eslint-plugin-jsdoc@50.6.1: + resolution: {integrity: sha512-UWyaYi6iURdSfdVVqvfOs2vdCVz0J40O/z/HTsv2sFjdjmdlUI/qlKLOTmwbPQ2tAfQnE5F9vqx+B+poF71DBQ==} engines: {node: '>=18'} peerDependencies: eslint: ^7.0.0 || ^8.0.0 || ^9.0.0 @@ -4075,6 +4090,9 @@ packages: sprintf-js@1.0.3: resolution: {integrity: sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==} + stable-hash@0.0.4: + resolution: {integrity: sha512-LjdcbuBeLcdETCrPn9i8AYAZ1eCtu4ECAWtP7UleOiZ9LzVxRzzUZEoZ8zB24nhkQnDWyET0I+3sWokSDS3E7g==} + stack-trace@0.0.10: resolution: {integrity: sha512-KGzahc7puUKkzyMt+IqAep+TVNbKP+k2Lmwhub39m1AsTSkaDutx56aDCo+HLDzf/D26BIHTJWNiTG1KAJiQCg==} @@ -4353,20 +4371,12 @@ packages: resolution: {integrity: sha512-3KS2b+kL7fsuk/eJZ7EQdnEmQoaho/r6KUef7hxvltNA5DR8NAUM+8wJMbJyZ4G9/7i3v5zPBIMN5aybAh2/Jg==} engines: {node: '>= 0.4'} - typescript-eslint@8.16.0: - resolution: {integrity: sha512-wDkVmlY6O2do4V+lZd0GtRfbtXbeD0q9WygwXXSJnC1xorE8eqyC2L1tJimqpSeFrOzRlYtWnUp/uzgHQOgfBQ==} + typescript-eslint@8.18.1: + resolution: {integrity: sha512-Mlaw6yxuaDEPQvb/2Qwu3/TfgeBHy9iTJ3mTwe7OvpPmF6KPQjVOfGyEJpPv6Ez2C34OODChhXrzYw/9phI0MQ==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} peerDependencies: eslint: ^8.57.0 || ^9.0.0 - typescript: '*' - peerDependenciesMeta: - typescript: - optional: true - - typescript@5.6.3: - resolution: {integrity: sha512-hjcS1mhfuyi4WW8IWtjP7brDrG2cuDZukyrYrSauoXGNgx0S7zceP07adYkJycEr56BOUTNPzbInooiN3fn1qw==} - engines: {node: '>=14.17'} - hasBin: true + typescript: '>=4.8.4 <5.8.0' typescript@5.7.2: resolution: {integrity: sha512-i5t66RHxDvVN40HfDd1PsEThGNnlMCMT3jMUuoh9/0TaqWevNontacunWyN02LA9/fIbEWlcHZcgTKb9QoaLfg==} @@ -4844,25 +4854,25 @@ snapshots: '@bcoe/v8-coverage@0.2.3': {} - '@cap-js/asyncapi@1.0.2(@sap/cds@8.6.0(express@4.21.1))': + '@cap-js/asyncapi@1.0.2(@sap/cds@8.6.0(express@4.21.2))': dependencies: - '@sap/cds': 8.6.0(express@4.21.1) + '@sap/cds': 8.6.0(express@4.21.2) - '@cap-js/db-service@1.15.0(@sap/cds@8.6.0(express@4.21.1))': + '@cap-js/db-service@1.15.0(@sap/cds@8.6.0(express@4.21.2))': dependencies: - '@sap/cds': 8.6.0(express@4.21.1) + '@sap/cds': 8.6.0(express@4.21.2) generic-pool: 3.9.0 optional: true - '@cap-js/openapi@1.0.7(@sap/cds@8.6.0(express@4.21.1))': + '@cap-js/openapi@1.0.7(@sap/cds@8.6.0(express@4.21.2))': dependencies: - '@sap/cds': 8.6.0(express@4.21.1) + '@sap/cds': 8.6.0(express@4.21.2) pluralize: 8.0.0 - '@cap-js/sqlite@1.7.7(@sap/cds@8.6.0(express@4.21.1))': + '@cap-js/sqlite@1.7.7(@sap/cds@8.6.0(express@4.21.2))': dependencies: - '@cap-js/db-service': 1.15.0(@sap/cds@8.6.0(express@4.21.1)) - '@sap/cds': 8.6.0(express@4.21.1) + '@cap-js/db-service': 1.15.0(@sap/cds@8.6.0(express@4.21.2)) + '@sap/cds': 8.6.0(express@4.21.2) better-sqlite3: 11.5.0 optional: true @@ -5131,8 +5141,6 @@ snapshots: transitivePeerDependencies: - supports-color - '@eslint/js@9.15.0': {} - '@eslint/js@9.17.0': {} '@eslint/object-schema@2.1.4': {} @@ -5556,17 +5564,17 @@ snapshots: '@sap-ai-sdk/ai-api@1.4.1-20241219013138.0': dependencies: '@sap-ai-sdk/core': 1.4.1-20241219013138.0 - '@sap-cloud-sdk/connectivity': 3.24.0 + '@sap-cloud-sdk/connectivity': 3.25.0 transitivePeerDependencies: - debug - supports-color '@sap-ai-sdk/core@1.4.1-20241219013138.0': dependencies: - '@sap-cloud-sdk/connectivity': 3.24.0 - '@sap-cloud-sdk/http-client': 3.24.0 - '@sap-cloud-sdk/openapi': 3.24.0 - '@sap-cloud-sdk/util': 3.24.0 + '@sap-cloud-sdk/connectivity': 3.25.0 + '@sap-cloud-sdk/http-client': 3.25.0 + '@sap-cloud-sdk/openapi': 3.25.0 + '@sap-cloud-sdk/util': 3.25.0 transitivePeerDependencies: - debug - supports-color @@ -5582,9 +5590,9 @@ snapshots: dependencies: '@sap-ai-sdk/ai-api': 1.4.1-20241219013138.0 '@sap-ai-sdk/core': 1.4.1-20241219013138.0 - '@sap-cloud-sdk/connectivity': 3.24.0 - '@sap-cloud-sdk/http-client': 3.24.0 - '@sap-cloud-sdk/util': 3.24.0 + '@sap-cloud-sdk/connectivity': 3.25.0 + '@sap-cloud-sdk/http-client': 3.25.0 + '@sap-cloud-sdk/util': 3.25.0 transitivePeerDependencies: - debug - supports-color @@ -5595,7 +5603,7 @@ snapshots: '@sap-ai-sdk/ai-api': 1.4.1-20241219013138.0 '@sap-ai-sdk/core': 1.4.1-20241219013138.0 '@sap-ai-sdk/foundation-models': 1.4.1-20241219013138.0 - '@sap-cloud-sdk/connectivity': 3.24.0 + '@sap-cloud-sdk/connectivity': 3.25.0 zod-to-json-schema: 3.24.1(zod@3.24.1) transitivePeerDependencies: - debug @@ -5607,78 +5615,77 @@ snapshots: dependencies: '@sap-ai-sdk/ai-api': 1.4.1-20241219013138.0 '@sap-ai-sdk/core': 1.4.1-20241219013138.0 - '@sap-cloud-sdk/connectivity': 3.24.0 - '@sap-cloud-sdk/http-client': 3.24.0 + '@sap-cloud-sdk/connectivity': 3.25.0 + '@sap-cloud-sdk/http-client': 3.25.0 transitivePeerDependencies: - debug - supports-color - '@sap-cloud-sdk/connectivity@3.24.0': + '@sap-cloud-sdk/connectivity@3.25.0': dependencies: - '@sap-cloud-sdk/resilience': 3.24.0 - '@sap-cloud-sdk/util': 3.24.0 + '@sap-cloud-sdk/resilience': 3.25.0 + '@sap-cloud-sdk/util': 3.25.0 '@sap/xsenv': 5.4.0 '@sap/xssec': 4.2.7 async-retry: 1.3.3 - axios: 1.7.8 + axios: 1.7.9 jsonwebtoken: 9.0.2 transitivePeerDependencies: - debug - supports-color - '@sap-cloud-sdk/eslint-config@3.24.0(@types/eslint@8.56.10)(@typescript-eslint/eslint-plugin@8.16.0(@typescript-eslint/parser@8.16.0(eslint@9.17.0)(typescript@5.7.2))(eslint@9.17.0)(typescript@5.7.2))(eslint@9.17.0)(prettier@3.4.2)(typescript@5.7.2)': + '@sap-cloud-sdk/eslint-config@3.25.0(@types/eslint@8.56.10)(@typescript-eslint/eslint-plugin@8.18.1(@typescript-eslint/parser@8.18.1(eslint@9.17.0)(typescript@5.7.2))(eslint@9.17.0)(typescript@5.7.2))(eslint@9.17.0)(prettier@3.4.2)(typescript@5.7.2)': dependencies: - '@eslint/js': 9.15.0 - '@stylistic/eslint-plugin': 2.11.0(eslint@9.17.0)(typescript@5.7.2) - '@typescript-eslint/parser': 8.16.0(eslint@9.17.0)(typescript@5.7.2) + '@eslint/js': 9.17.0 + '@stylistic/eslint-plugin': 2.12.1(eslint@9.17.0)(typescript@5.7.2) + '@typescript-eslint/parser': 8.18.1(eslint@9.17.0)(typescript@5.7.2) eslint: 9.17.0 eslint-config-prettier: 9.1.0(eslint@9.17.0) - eslint-import-resolver-typescript: 3.6.3(@typescript-eslint/parser@8.16.0(eslint@9.17.0)(typescript@5.7.2))(eslint-plugin-import@2.31.0(@typescript-eslint/parser@8.16.0(eslint@9.17.0)(typescript@5.7.2))(eslint@9.17.0))(eslint@9.17.0) - eslint-plugin-import: 2.31.0(@typescript-eslint/parser@8.16.0(eslint@9.17.0)(typescript@5.7.2))(eslint-import-resolver-typescript@3.6.3)(eslint@9.17.0) - eslint-plugin-jsdoc: 50.6.0(eslint@9.17.0) + eslint-import-resolver-typescript: 3.7.0(eslint-plugin-import@2.31.0(@typescript-eslint/parser@8.18.1(eslint@9.17.0)(typescript@5.7.2))(eslint@9.17.0))(eslint@9.17.0) + eslint-plugin-import: 2.31.0(@typescript-eslint/parser@8.18.1(eslint@9.17.0)(typescript@5.7.2))(eslint-import-resolver-typescript@3.7.0(eslint-plugin-import@2.31.0(@typescript-eslint/parser@8.18.1(eslint@9.17.0)(typescript@5.7.2))(eslint@9.17.0))(eslint@9.17.0))(eslint@9.17.0) + eslint-plugin-jsdoc: 50.6.1(eslint@9.17.0) eslint-plugin-prettier: 5.2.1(@types/eslint@8.56.10)(eslint-config-prettier@9.1.0(eslint@9.17.0))(eslint@9.17.0)(prettier@3.4.2) eslint-plugin-regex: 1.10.0(eslint@9.17.0) - eslint-plugin-unused-imports: 4.1.4(@typescript-eslint/eslint-plugin@8.16.0(@typescript-eslint/parser@8.16.0(eslint@9.17.0)(typescript@5.7.2))(eslint@9.17.0)(typescript@5.7.2))(eslint@9.17.0) - typescript-eslint: 8.16.0(eslint@9.17.0)(typescript@5.7.2) + eslint-plugin-unused-imports: 4.1.4(@typescript-eslint/eslint-plugin@8.18.1(@typescript-eslint/parser@8.18.1(eslint@9.17.0)(typescript@5.7.2))(eslint@9.17.0)(typescript@5.7.2))(eslint@9.17.0) + typescript-eslint: 8.18.1(eslint@9.17.0)(typescript@5.7.2) transitivePeerDependencies: - '@types/eslint' - '@typescript-eslint/eslint-plugin' - - eslint-import-resolver-node - eslint-import-resolver-webpack - eslint-plugin-import-x - prettier - supports-color - typescript - '@sap-cloud-sdk/generator-common@3.24.0': + '@sap-cloud-sdk/generator-common@3.25.0': dependencies: - '@sap-cloud-sdk/util': 3.24.0 + '@sap-cloud-sdk/util': 3.25.0 fast-levenshtein: 3.0.0 fs-extra: 11.2.0 - glob: 10.4.5 + glob: 11.0.0 prettier: 3.4.2 - typescript: 5.6.3 + typescript: 5.7.2 voca: 1.4.1 yargs: 17.7.2 transitivePeerDependencies: - debug - '@sap-cloud-sdk/http-client@3.24.0': + '@sap-cloud-sdk/http-client@3.25.0': dependencies: - '@sap-cloud-sdk/connectivity': 3.24.0 - '@sap-cloud-sdk/resilience': 3.24.0 - '@sap-cloud-sdk/util': 3.24.0 - axios: 1.7.8 + '@sap-cloud-sdk/connectivity': 3.25.0 + '@sap-cloud-sdk/resilience': 3.25.0 + '@sap-cloud-sdk/util': 3.25.0 + axios: 1.7.9 transitivePeerDependencies: - debug - supports-color - '@sap-cloud-sdk/openapi-generator@3.24.0': + '@sap-cloud-sdk/openapi-generator@3.25.0': dependencies: '@apidevtools/swagger-parser': 10.1.0(openapi-types@12.1.3) - '@sap-cloud-sdk/generator-common': 3.24.0 - '@sap-cloud-sdk/openapi': 3.24.0 - '@sap-cloud-sdk/util': 3.24.0 + '@sap-cloud-sdk/generator-common': 3.25.0 + '@sap-cloud-sdk/openapi': 3.25.0 + '@sap-cloud-sdk/util': 3.25.0 js-yaml: 4.1.0 openapi-types: 12.1.3 swagger2openapi: 7.0.8 @@ -5687,29 +5694,29 @@ snapshots: - encoding - supports-color - '@sap-cloud-sdk/openapi@3.24.0': + '@sap-cloud-sdk/openapi@3.25.0': dependencies: - '@sap-cloud-sdk/connectivity': 3.24.0 - '@sap-cloud-sdk/http-client': 3.24.0 - '@sap-cloud-sdk/resilience': 3.24.0 - '@sap-cloud-sdk/util': 3.24.0 - axios: 1.7.8 + '@sap-cloud-sdk/connectivity': 3.25.0 + '@sap-cloud-sdk/http-client': 3.25.0 + '@sap-cloud-sdk/resilience': 3.25.0 + '@sap-cloud-sdk/util': 3.25.0 + axios: 1.7.9 transitivePeerDependencies: - debug - supports-color - '@sap-cloud-sdk/resilience@3.24.0': + '@sap-cloud-sdk/resilience@3.25.0': dependencies: - '@sap-cloud-sdk/util': 3.24.0 + '@sap-cloud-sdk/util': 3.25.0 async-retry: 1.3.3 - axios: 1.7.8 + axios: 1.7.9 opossum: 8.4.0 transitivePeerDependencies: - debug - '@sap-cloud-sdk/util@3.24.0': + '@sap-cloud-sdk/util@3.25.0': dependencies: - axios: 1.7.8 + axios: 1.7.9 chalk: 4.1.2 logform: 2.7.0 voca: 1.4.1 @@ -5724,8 +5731,8 @@ snapshots: '@sap/cds-dk@8.6.1': dependencies: - '@cap-js/asyncapi': 1.0.2(@sap/cds@8.6.0(express@4.21.1)) - '@cap-js/openapi': 1.0.7(@sap/cds@8.6.0(express@4.21.1)) + '@cap-js/asyncapi': 1.0.2(@sap/cds@8.6.0(express@4.21.2)) + '@cap-js/openapi': 1.0.7(@sap/cds@8.6.0(express@4.21.2)) '@sap/cds': 8.6.0(express@4.21.2) '@sap/cds-foss': 5.0.1 '@sap/cds-mtxs': 2.3.1(hdb@0.19.10) @@ -5741,7 +5748,7 @@ snapshots: ws: 8.18.0 xml-js: 1.6.11 optionalDependencies: - '@cap-js/sqlite': 1.7.7(@sap/cds@8.6.0(express@4.21.1)) + '@cap-js/sqlite': 1.7.7(@sap/cds@8.6.0(express@4.21.2)) transitivePeerDependencies: - '@sap/hana-client' - bufferutil @@ -5755,9 +5762,9 @@ snapshots: '@sap/cds': 8.6.0(express@4.21.1) express: 4.21.1 - '@sap/cds-fiori@1.2.7(@sap/cds@8.6.0(express@4.21.1))(express@4.21.2)': + '@sap/cds-fiori@1.2.7(@sap/cds@8.6.0(express@4.21.2))(express@4.21.2)': dependencies: - '@sap/cds': 8.6.0(express@4.21.1) + '@sap/cds': 8.6.0(express@4.21.2) express: 4.21.2 '@sap/cds-foss@5.0.1': @@ -5788,7 +5795,7 @@ snapshots: '@sap/cds@8.6.0(express@4.21.2)': dependencies: '@sap/cds-compiler': 5.3.2 - '@sap/cds-fiori': 1.2.7(@sap/cds@8.6.0(express@4.21.1))(express@4.21.2) + '@sap/cds-fiori': 1.2.7(@sap/cds@8.6.0(express@4.21.2))(express@4.21.2) '@sap/cds-foss': 5.0.1 optionalDependencies: express: 4.21.2 @@ -5858,7 +5865,7 @@ snapshots: dependencies: '@sinonjs/commons': 3.0.1 - '@stylistic/eslint-plugin@2.11.0(eslint@9.17.0)(typescript@5.7.2)': + '@stylistic/eslint-plugin@2.12.1(eslint@9.17.0)(typescript@5.7.2)': dependencies: '@typescript-eslint/utils': 8.16.0(eslint@9.17.0)(typescript@5.7.2) eslint: 9.17.0 @@ -6030,33 +6037,31 @@ snapshots: dependencies: '@types/yargs-parser': 21.0.3 - '@typescript-eslint/eslint-plugin@8.16.0(@typescript-eslint/parser@8.16.0(eslint@9.17.0)(typescript@5.7.2))(eslint@9.17.0)(typescript@5.7.2)': + '@typescript-eslint/eslint-plugin@8.18.1(@typescript-eslint/parser@8.18.1(eslint@9.17.0)(typescript@5.7.2))(eslint@9.17.0)(typescript@5.7.2)': dependencies: '@eslint-community/regexpp': 4.12.1 - '@typescript-eslint/parser': 8.16.0(eslint@9.17.0)(typescript@5.7.2) - '@typescript-eslint/scope-manager': 8.16.0 - '@typescript-eslint/type-utils': 8.16.0(eslint@9.17.0)(typescript@5.7.2) - '@typescript-eslint/utils': 8.16.0(eslint@9.17.0)(typescript@5.7.2) - '@typescript-eslint/visitor-keys': 8.16.0 + '@typescript-eslint/parser': 8.18.1(eslint@9.17.0)(typescript@5.7.2) + '@typescript-eslint/scope-manager': 8.18.1 + '@typescript-eslint/type-utils': 8.18.1(eslint@9.17.0)(typescript@5.7.2) + '@typescript-eslint/utils': 8.18.1(eslint@9.17.0)(typescript@5.7.2) + '@typescript-eslint/visitor-keys': 8.18.1 eslint: 9.17.0 graphemer: 1.4.0 ignore: 5.3.2 natural-compare: 1.4.0 ts-api-utils: 1.4.2(typescript@5.7.2) - optionalDependencies: typescript: 5.7.2 transitivePeerDependencies: - supports-color - '@typescript-eslint/parser@8.16.0(eslint@9.17.0)(typescript@5.7.2)': + '@typescript-eslint/parser@8.18.1(eslint@9.17.0)(typescript@5.7.2)': dependencies: - '@typescript-eslint/scope-manager': 8.16.0 - '@typescript-eslint/types': 8.16.0 - '@typescript-eslint/typescript-estree': 8.16.0(typescript@5.7.2) - '@typescript-eslint/visitor-keys': 8.16.0 + '@typescript-eslint/scope-manager': 8.18.1 + '@typescript-eslint/types': 8.18.1 + '@typescript-eslint/typescript-estree': 8.18.1(typescript@5.7.2) + '@typescript-eslint/visitor-keys': 8.18.1 debug: 4.3.7(supports-color@8.1.1) eslint: 9.17.0 - optionalDependencies: typescript: 5.7.2 transitivePeerDependencies: - supports-color @@ -6066,20 +6071,26 @@ snapshots: '@typescript-eslint/types': 8.16.0 '@typescript-eslint/visitor-keys': 8.16.0 - '@typescript-eslint/type-utils@8.16.0(eslint@9.17.0)(typescript@5.7.2)': + '@typescript-eslint/scope-manager@8.18.1': dependencies: - '@typescript-eslint/typescript-estree': 8.16.0(typescript@5.7.2) - '@typescript-eslint/utils': 8.16.0(eslint@9.17.0)(typescript@5.7.2) + '@typescript-eslint/types': 8.18.1 + '@typescript-eslint/visitor-keys': 8.18.1 + + '@typescript-eslint/type-utils@8.18.1(eslint@9.17.0)(typescript@5.7.2)': + dependencies: + '@typescript-eslint/typescript-estree': 8.18.1(typescript@5.7.2) + '@typescript-eslint/utils': 8.18.1(eslint@9.17.0)(typescript@5.7.2) debug: 4.3.7(supports-color@8.1.1) eslint: 9.17.0 ts-api-utils: 1.4.2(typescript@5.7.2) - optionalDependencies: typescript: 5.7.2 transitivePeerDependencies: - supports-color '@typescript-eslint/types@8.16.0': {} + '@typescript-eslint/types@8.18.1': {} + '@typescript-eslint/typescript-estree@8.16.0(typescript@5.7.2)': dependencies: '@typescript-eslint/types': 8.16.0 @@ -6095,6 +6106,20 @@ snapshots: transitivePeerDependencies: - supports-color + '@typescript-eslint/typescript-estree@8.18.1(typescript@5.7.2)': + dependencies: + '@typescript-eslint/types': 8.18.1 + '@typescript-eslint/visitor-keys': 8.18.1 + debug: 4.3.7(supports-color@8.1.1) + fast-glob: 3.3.2 + is-glob: 4.0.3 + minimatch: 9.0.5 + semver: 7.6.3 + ts-api-utils: 1.4.2(typescript@5.7.2) + typescript: 5.7.2 + transitivePeerDependencies: + - supports-color + '@typescript-eslint/utils@8.16.0(eslint@9.17.0)(typescript@5.7.2)': dependencies: '@eslint-community/eslint-utils': 4.4.1(eslint@9.17.0) @@ -6107,11 +6132,27 @@ snapshots: transitivePeerDependencies: - supports-color + '@typescript-eslint/utils@8.18.1(eslint@9.17.0)(typescript@5.7.2)': + dependencies: + '@eslint-community/eslint-utils': 4.4.1(eslint@9.17.0) + '@typescript-eslint/scope-manager': 8.18.1 + '@typescript-eslint/types': 8.18.1 + '@typescript-eslint/typescript-estree': 8.18.1(typescript@5.7.2) + eslint: 9.17.0 + typescript: 5.7.2 + transitivePeerDependencies: + - supports-color + '@typescript-eslint/visitor-keys@8.16.0': dependencies: '@typescript-eslint/types': 8.16.0 eslint-visitor-keys: 4.2.0 + '@typescript-eslint/visitor-keys@8.18.1': + dependencies: + '@typescript-eslint/types': 8.18.1 + eslint-visitor-keys: 4.2.0 + '@typescript/vfs@1.6.0(typescript@5.7.2)': dependencies: debug: 4.3.7(supports-color@8.1.1) @@ -6317,6 +6358,14 @@ snapshots: transitivePeerDependencies: - debug + axios@1.7.9: + dependencies: + follow-redirects: 1.15.9 + form-data: 4.0.1 + proxy-from-env: 1.1.0 + transitivePeerDependencies: + - debug + babel-jest@30.0.0-alpha.6(@babel/core@7.24.7): dependencies: '@babel/core': 7.24.7 @@ -7021,37 +7070,34 @@ snapshots: transitivePeerDependencies: - supports-color - eslint-import-resolver-typescript@3.6.3(@typescript-eslint/parser@8.16.0(eslint@9.17.0)(typescript@5.7.2))(eslint-plugin-import@2.31.0(@typescript-eslint/parser@8.16.0(eslint@9.17.0)(typescript@5.7.2))(eslint@9.17.0))(eslint@9.17.0): + eslint-import-resolver-typescript@3.7.0(eslint-plugin-import@2.31.0(@typescript-eslint/parser@8.18.1(eslint@9.17.0)(typescript@5.7.2))(eslint@9.17.0))(eslint@9.17.0): dependencies: '@nolyfill/is-core-module': 1.0.39 debug: 4.3.7(supports-color@8.1.1) enhanced-resolve: 5.17.1 eslint: 9.17.0 - eslint-module-utils: 2.12.0(@typescript-eslint/parser@8.16.0(eslint@9.17.0)(typescript@5.7.2))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.6.3(@typescript-eslint/parser@8.16.0(eslint@9.17.0)(typescript@5.7.2))(eslint-plugin-import@2.31.0(@typescript-eslint/parser@8.16.0(eslint@9.17.0)(typescript@5.7.2))(eslint@9.17.0))(eslint@9.17.0))(eslint@9.17.0) fast-glob: 3.3.2 get-tsconfig: 4.8.1 is-bun-module: 1.3.0 is-glob: 4.0.3 + stable-hash: 0.0.4 optionalDependencies: - eslint-plugin-import: 2.31.0(@typescript-eslint/parser@8.16.0(eslint@9.17.0)(typescript@5.7.2))(eslint-import-resolver-typescript@3.6.3)(eslint@9.17.0) + eslint-plugin-import: 2.31.0(@typescript-eslint/parser@8.18.1(eslint@9.17.0)(typescript@5.7.2))(eslint-import-resolver-typescript@3.7.0(eslint-plugin-import@2.31.0(@typescript-eslint/parser@8.18.1(eslint@9.17.0)(typescript@5.7.2))(eslint@9.17.0))(eslint@9.17.0))(eslint@9.17.0) transitivePeerDependencies: - - '@typescript-eslint/parser' - - eslint-import-resolver-node - - eslint-import-resolver-webpack - supports-color - eslint-module-utils@2.12.0(@typescript-eslint/parser@8.16.0(eslint@9.17.0)(typescript@5.7.2))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.6.3(@typescript-eslint/parser@8.16.0(eslint@9.17.0)(typescript@5.7.2))(eslint-plugin-import@2.31.0(@typescript-eslint/parser@8.16.0(eslint@9.17.0)(typescript@5.7.2))(eslint@9.17.0))(eslint@9.17.0))(eslint@9.17.0): + eslint-module-utils@2.12.0(@typescript-eslint/parser@8.18.1(eslint@9.17.0)(typescript@5.7.2))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.7.0(eslint-plugin-import@2.31.0(@typescript-eslint/parser@8.18.1(eslint@9.17.0)(typescript@5.7.2))(eslint@9.17.0))(eslint@9.17.0))(eslint@9.17.0): dependencies: debug: 3.2.7 optionalDependencies: - '@typescript-eslint/parser': 8.16.0(eslint@9.17.0)(typescript@5.7.2) + '@typescript-eslint/parser': 8.18.1(eslint@9.17.0)(typescript@5.7.2) eslint: 9.17.0 eslint-import-resolver-node: 0.3.9 - eslint-import-resolver-typescript: 3.6.3(@typescript-eslint/parser@8.16.0(eslint@9.17.0)(typescript@5.7.2))(eslint-plugin-import@2.31.0(@typescript-eslint/parser@8.16.0(eslint@9.17.0)(typescript@5.7.2))(eslint@9.17.0))(eslint@9.17.0) + eslint-import-resolver-typescript: 3.7.0(eslint-plugin-import@2.31.0(@typescript-eslint/parser@8.18.1(eslint@9.17.0)(typescript@5.7.2))(eslint@9.17.0))(eslint@9.17.0) transitivePeerDependencies: - supports-color - eslint-plugin-import@2.31.0(@typescript-eslint/parser@8.16.0(eslint@9.17.0)(typescript@5.7.2))(eslint-import-resolver-typescript@3.6.3)(eslint@9.17.0): + eslint-plugin-import@2.31.0(@typescript-eslint/parser@8.18.1(eslint@9.17.0)(typescript@5.7.2))(eslint-import-resolver-typescript@3.7.0(eslint-plugin-import@2.31.0(@typescript-eslint/parser@8.18.1(eslint@9.17.0)(typescript@5.7.2))(eslint@9.17.0))(eslint@9.17.0))(eslint@9.17.0): dependencies: '@rtsao/scc': 1.1.0 array-includes: 3.1.8 @@ -7062,7 +7108,7 @@ snapshots: doctrine: 2.1.0 eslint: 9.17.0 eslint-import-resolver-node: 0.3.9 - eslint-module-utils: 2.12.0(@typescript-eslint/parser@8.16.0(eslint@9.17.0)(typescript@5.7.2))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.6.3(@typescript-eslint/parser@8.16.0(eslint@9.17.0)(typescript@5.7.2))(eslint-plugin-import@2.31.0(@typescript-eslint/parser@8.16.0(eslint@9.17.0)(typescript@5.7.2))(eslint@9.17.0))(eslint@9.17.0))(eslint@9.17.0) + eslint-module-utils: 2.12.0(@typescript-eslint/parser@8.18.1(eslint@9.17.0)(typescript@5.7.2))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.7.0(eslint-plugin-import@2.31.0(@typescript-eslint/parser@8.18.1(eslint@9.17.0)(typescript@5.7.2))(eslint@9.17.0))(eslint@9.17.0))(eslint@9.17.0) hasown: 2.0.2 is-core-module: 2.15.1 is-glob: 4.0.3 @@ -7074,13 +7120,13 @@ snapshots: string.prototype.trimend: 1.0.8 tsconfig-paths: 3.15.0 optionalDependencies: - '@typescript-eslint/parser': 8.16.0(eslint@9.17.0)(typescript@5.7.2) + '@typescript-eslint/parser': 8.18.1(eslint@9.17.0)(typescript@5.7.2) transitivePeerDependencies: - eslint-import-resolver-typescript - eslint-import-resolver-webpack - supports-color - eslint-plugin-jsdoc@50.6.0(eslint@9.17.0): + eslint-plugin-jsdoc@50.6.1(eslint@9.17.0): dependencies: '@es-joy/jsdoccomment': 0.49.0 are-docs-informative: 0.0.2 @@ -7111,11 +7157,11 @@ snapshots: dependencies: eslint: 9.17.0 - eslint-plugin-unused-imports@4.1.4(@typescript-eslint/eslint-plugin@8.16.0(@typescript-eslint/parser@8.16.0(eslint@9.17.0)(typescript@5.7.2))(eslint@9.17.0)(typescript@5.7.2))(eslint@9.17.0): + eslint-plugin-unused-imports@4.1.4(@typescript-eslint/eslint-plugin@8.18.1(@typescript-eslint/parser@8.18.1(eslint@9.17.0)(typescript@5.7.2))(eslint@9.17.0)(typescript@5.7.2))(eslint@9.17.0): dependencies: eslint: 9.17.0 optionalDependencies: - '@typescript-eslint/eslint-plugin': 8.16.0(@typescript-eslint/parser@8.16.0(eslint@9.17.0)(typescript@5.7.2))(eslint@9.17.0)(typescript@5.7.2) + '@typescript-eslint/eslint-plugin': 8.18.1(@typescript-eslint/parser@8.18.1(eslint@9.17.0)(typescript@5.7.2))(eslint@9.17.0)(typescript@5.7.2) eslint-rule-docs@1.1.235: {} @@ -8407,7 +8453,7 @@ snapshots: kuler@2.0.0: {} - langchain@0.3.7(@langchain/core@0.3.25(openai@4.61.1(zod@3.24.1)))(axios@1.7.8)(cheerio@1.0.0)(handlebars@4.7.8)(openai@4.61.1(zod@3.24.1)): + langchain@0.3.7(@langchain/core@0.3.25(openai@4.61.1(zod@3.24.1)))(axios@1.7.9)(cheerio@1.0.0)(handlebars@4.7.8)(openai@4.61.1(zod@3.24.1)): dependencies: '@langchain/core': 0.3.25(openai@4.61.1(zod@3.24.1)) '@langchain/openai': 0.3.2(@langchain/core@0.3.25(openai@4.61.1(zod@3.24.1))) @@ -8423,7 +8469,7 @@ snapshots: zod: 3.24.1 zod-to-json-schema: 3.24.1(zod@3.24.1) optionalDependencies: - axios: 1.7.8 + axios: 1.7.9 cheerio: 1.0.0 handlebars: 4.7.8 transitivePeerDependencies: @@ -9326,6 +9372,8 @@ snapshots: sprintf-js@1.0.3: {} + stable-hash@0.0.4: {} + stack-trace@0.0.10: {} stack-utils@2.0.6: @@ -9655,19 +9703,16 @@ snapshots: possible-typed-array-names: 1.0.0 reflect.getprototypeof: 1.0.7 - typescript-eslint@8.16.0(eslint@9.17.0)(typescript@5.7.2): + typescript-eslint@8.18.1(eslint@9.17.0)(typescript@5.7.2): dependencies: - '@typescript-eslint/eslint-plugin': 8.16.0(@typescript-eslint/parser@8.16.0(eslint@9.17.0)(typescript@5.7.2))(eslint@9.17.0)(typescript@5.7.2) - '@typescript-eslint/parser': 8.16.0(eslint@9.17.0)(typescript@5.7.2) - '@typescript-eslint/utils': 8.16.0(eslint@9.17.0)(typescript@5.7.2) + '@typescript-eslint/eslint-plugin': 8.18.1(@typescript-eslint/parser@8.18.1(eslint@9.17.0)(typescript@5.7.2))(eslint@9.17.0)(typescript@5.7.2) + '@typescript-eslint/parser': 8.18.1(eslint@9.17.0)(typescript@5.7.2) + '@typescript-eslint/utils': 8.18.1(eslint@9.17.0)(typescript@5.7.2) eslint: 9.17.0 - optionalDependencies: typescript: 5.7.2 transitivePeerDependencies: - supports-color - typescript@5.6.3: {} - typescript@5.7.2: {} uglify-js@3.19.3: diff --git a/sample-code/package.json b/sample-code/package.json index 0a5fa6a6..c84e62e2 100644 --- a/sample-code/package.json +++ b/sample-code/package.json @@ -31,7 +31,7 @@ "langchain": "0.3.7", "@langchain/core": "0.3.25", "@langchain/textsplitters": "0.1.0", - "@sap-cloud-sdk/util": "^3.24.0", + "@sap-cloud-sdk/util": "^3.25.0", "@types/express": "^5.0.0", "express": "^4.21.2" } diff --git a/tests/e2e-tests/package.json b/tests/e2e-tests/package.json index f3e54f3b..6fd8e504 100644 --- a/tests/e2e-tests/package.json +++ b/tests/e2e-tests/package.json @@ -15,7 +15,7 @@ "@sap-ai-sdk/ai-api": "workspace:^", "@sap-ai-sdk/orchestration": "workspace:^", "@sap-ai-sdk/sample-code": "workspace:^", - "@sap-cloud-sdk/util": "^3.24.0" + "@sap-cloud-sdk/util": "^3.25.0" }, "scripts": { "compile": "tsc", diff --git a/tests/smoke-tests/package.json b/tests/smoke-tests/package.json index 8e543765..feea07ff 100644 --- a/tests/smoke-tests/package.json +++ b/tests/smoke-tests/package.json @@ -26,7 +26,7 @@ "@sap-ai-sdk/langchain": "canary", "@sap-ai-sdk/orchestration": "canary", "@sap-ai-sdk/document-grounding": "canary", - "@sap-cloud-sdk/util": "^3.24.0", + "@sap-cloud-sdk/util": "^3.25.0", "express": "^4.21.2" }, "devDependencies": { diff --git a/tests/type-tests/package.json b/tests/type-tests/package.json index 1258abde..b07e1da8 100644 --- a/tests/type-tests/package.json +++ b/tests/type-tests/package.json @@ -16,8 +16,8 @@ "@sap-ai-sdk/foundation-models": "workspace:^", "@sap-ai-sdk/orchestration": "workspace:^", "@sap-ai-sdk/core": "workspace:^", - "@sap-cloud-sdk/connectivity": "^3.24.0", - "@sap-cloud-sdk/http-client": "^3.24.0", + "@sap-cloud-sdk/connectivity": "^3.25.0", + "@sap-cloud-sdk/http-client": "^3.25.0", "tsd": "^0.31.2" } } From 7a8eb5cd67df3c6cbacb6f76af24b29107285250 Mon Sep 17 00:00:00 2001 From: KavithaSiva Date: Sat, 21 Dec 2024 00:46:15 +0100 Subject: [PATCH 2/8] chore: regenerate client and adjust tests --- packages/core/src/openapi-request-builder.ts | 5 +- packages/document-grounding/package.json | 2 +- .../src/client/api/collections-api.ts | 124 -------- .../src/client/api/documents-api.ts | 122 -------- .../src/client/api/index.ts | 7 +- .../src/client/api/pipelines-api.ts | 36 ++- ...ata-repository-api.ts => retrieval-api.ts} | 45 ++- ...ted-search-across-data-repositories-api.ts | 34 --- .../src/client/api/search-api.ts | 31 -- .../src/client/api/vector-api.ts | 273 ++++++++++++++++++ packages/document-grounding/src/spec/api.yaml | 106 ++++--- .../src/spec/options-per-service.json | 7 + .../src/tests/collections-api.test.ts | 11 +- .../src/tests/documents-api.test.ts | 13 +- .../src/tests/pipelines-api.test.ts | 9 +- .../retrieval-data-repository-api.test.ts | 12 +- sample-code/src/document-grounding.ts | 35 +-- 17 files changed, 439 insertions(+), 433 deletions(-) delete mode 100644 packages/document-grounding/src/client/api/collections-api.ts delete mode 100644 packages/document-grounding/src/client/api/documents-api.ts rename packages/document-grounding/src/client/api/{retrieval-data-repository-api.ts => retrieval-api.ts} (56%) delete mode 100644 packages/document-grounding/src/client/api/retrieval-federated-search-across-data-repositories-api.ts delete mode 100644 packages/document-grounding/src/client/api/search-api.ts create mode 100644 packages/document-grounding/src/client/api/vector-api.ts create mode 100644 packages/document-grounding/src/spec/options-per-service.json diff --git a/packages/core/src/openapi-request-builder.ts b/packages/core/src/openapi-request-builder.ts index 62b8bd58..580590ff 100644 --- a/packages/core/src/openapi-request-builder.ts +++ b/packages/core/src/openapi-request-builder.ts @@ -14,9 +14,10 @@ export class OpenApiRequestBuilder< constructor( method: Method, pathPattern: string, - parameters?: OpenApiRequestParameters + parameters?: OpenApiRequestParameters, + basePath?: string ) { - super(method, pathPattern, parameters); + super(method, pathPattern, parameters,basePath); } /** diff --git a/packages/document-grounding/package.json b/packages/document-grounding/package.json index 84887cef..0f496116 100644 --- a/packages/document-grounding/package.json +++ b/packages/document-grounding/package.json @@ -25,7 +25,7 @@ "test": "NODE_OPTIONS=--experimental-vm-modules jest", "lint": "eslint . && prettier . --config ../../.prettierrc --ignore-path ../../.prettierignore -c", "lint:fix": "eslint . --fix && prettier . --config ../../.prettierrc --ignore-path ../../.prettierignore -w --log-level error", - "generate": "openapi-generator --generateESM --clearOutputDir -i ./src/spec/api.yaml -o ./src/client && pnpm update-imports && pnpm lint:fix", + "generate": "openapi-generator --generateESM --clearOutputDir -i ./src/spec/api.yaml -o ./src/client -s ./src/spec/options-per-service.json && pnpm update-imports && pnpm lint:fix", "update-imports": "node --no-warnings --loader ts-node/esm ../../scripts/update-imports.ts ./src/client/api" }, "dependencies": { diff --git a/packages/document-grounding/src/client/api/collections-api.ts b/packages/document-grounding/src/client/api/collections-api.ts deleted file mode 100644 index ef1d720f..00000000 --- a/packages/document-grounding/src/client/api/collections-api.ts +++ /dev/null @@ -1,124 +0,0 @@ -/* - * Copyright (c) 2024 SAP SE or an SAP affiliate company. All rights reserved. - * - * This is a generated file powered by the SAP Cloud SDK for JavaScript. - */ -import { OpenApiRequestBuilder } from '@sap-ai-sdk/core'; -import type { - CollectionsListResponse, - CollectionRequest, - Collection, - CollectionCreatedResponse, - CollectionPendingResponse, - CollectionDeletedResponse -} from './schema/index.js'; -/** - * Representation of the 'CollectionsApi'. - * This API is part of the 'api' service. - */ -export const CollectionsApi = { - /** - * Gets a list of collections. - * @param queryParameters - Object containing the following keys: $top, $skip, $count. - * @param headerParameters - Object containing the following keys: AI-Resource-Group. - * @returns The request builder, use the `execute()` method to trigger the request. - */ - vectorV1VectorEndpointsGetAllCollections: ( - queryParameters: { $top?: number; $skip?: number; $count?: boolean }, - headerParameters: { 'AI-Resource-Group': string } - ) => - new OpenApiRequestBuilder( - 'get', - '/lm/document-grounding/vector/collections', - { - queryParameters, - headerParameters - } - ), - /** - * Creates a collection. This operation is asynchronous. Poll the collection resource and check the status field to understand creation status. - * @param body - Request body. - * @param headerParameters - Object containing the following keys: AI-Resource-Group. - * @returns The request builder, use the `execute()` method to trigger the request. - */ - vectorV1VectorEndpointsCreateCollection: ( - body: CollectionRequest, - headerParameters: { 'AI-Resource-Group': string } - ) => - new OpenApiRequestBuilder( - 'post', - '/lm/document-grounding/vector/collections', - { - body, - headerParameters - } - ), - /** - * Gets a specific collection by ID. - * @param collectionId - Path parameter. - * @param headerParameters - Object containing the following keys: AI-Resource-Group. - * @returns The request builder, use the `execute()` method to trigger the request. - */ - vectorV1VectorEndpointsGetCollectionById: ( - collectionId: string, - headerParameters: { 'AI-Resource-Group': string } - ) => - new OpenApiRequestBuilder( - 'get', - '/lm/document-grounding/vector/collections/{collectionId}', - { - pathParameters: { collectionId }, - headerParameters - } - ), - /** - * Deletes a specific collection by ID. This operation is asynchronous. Poll the collection for a 404 status code. - * @param collectionId - Path parameter. - * @param headerParameters - Object containing the following keys: AI-Resource-Group. - * @returns The request builder, use the `execute()` method to trigger the request. - */ - vectorV1VectorEndpointsDeleteCollection: ( - collectionId: string, - headerParameters: { 'AI-Resource-Group': string } - ) => - new OpenApiRequestBuilder( - 'delete', - '/lm/document-grounding/vector/collections/{collectionId}', - { - pathParameters: { collectionId }, - headerParameters - } - ), - /** - * Gets a specific collection status from monitor by ID. - * @param id - Path parameter. - * @param headerParameters - Object containing the following keys: AI-Resource-Group. - * @returns The request builder, use the `execute()` method to trigger the request. - */ - vectorV1VectorEndpointsGetCollectionCreationStatus: ( - id: string, - headerParameters: { 'AI-Resource-Group': string } - ) => - new OpenApiRequestBuilder< - CollectionCreatedResponse | CollectionPendingResponse - >('get', '/lm/document-grounding/vector/collections/{id}/creationStatus', { - pathParameters: { id }, - headerParameters - }), - /** - * Gets a specific collection status from monitor by ID. - * @param id - Path parameter. - * @param headerParameters - Object containing the following keys: AI-Resource-Group. - * @returns The request builder, use the `execute()` method to trigger the request. - */ - vectorV1VectorEndpointsGetCollectionDeletionStatus: ( - id: string, - headerParameters: { 'AI-Resource-Group': string } - ) => - new OpenApiRequestBuilder< - CollectionDeletedResponse | CollectionPendingResponse - >('get', '/lm/document-grounding/vector/collections/{id}/deletionStatus', { - pathParameters: { id }, - headerParameters - }) -}; diff --git a/packages/document-grounding/src/client/api/documents-api.ts b/packages/document-grounding/src/client/api/documents-api.ts deleted file mode 100644 index e9292742..00000000 --- a/packages/document-grounding/src/client/api/documents-api.ts +++ /dev/null @@ -1,122 +0,0 @@ -/* - * Copyright (c) 2024 SAP SE or an SAP affiliate company. All rights reserved. - * - * This is a generated file powered by the SAP Cloud SDK for JavaScript. - */ -import { OpenApiRequestBuilder } from '@sap-ai-sdk/core'; -import type { - DocumentResponse, - Documents, - DocumentCreateRequest, - DocumentsListResponse, - DocumentUpdateRequest -} from './schema/index.js'; -/** - * Representation of the 'DocumentsApi'. - * This API is part of the 'api' service. - */ -export const DocumentsApi = { - /** - * Gets a specific document in a collection by ID. - * @param collectionId - Path parameter. - * @param documentId - Path parameter. - * @param headerParameters - Object containing the following keys: AI-Resource-Group. - * @returns The request builder, use the `execute()` method to trigger the request. - */ - vectorV1VectorEndpointsGetDocumentById: ( - collectionId: string, - documentId: string, - headerParameters: { 'AI-Resource-Group': string } - ) => - new OpenApiRequestBuilder( - 'get', - '/lm/document-grounding/vector/collections/{collectionId}/documents/{documentId}', - { - pathParameters: { collectionId, documentId }, - headerParameters - } - ), - /** - * Deletes a specific document of a collection. - * @param collectionId - Path parameter. - * @param documentId - Path parameter. - * @param headerParameters - Object containing the following keys: AI-Resource-Group. - * @returns The request builder, use the `execute()` method to trigger the request. - */ - vectorV1VectorEndpointsDeleteDocument: ( - collectionId: string, - documentId: string, - headerParameters: { 'AI-Resource-Group': string } - ) => - new OpenApiRequestBuilder( - 'delete', - '/lm/document-grounding/vector/collections/{collectionId}/documents/{documentId}', - { - pathParameters: { collectionId, documentId }, - headerParameters - } - ), - /** - * Gets a list of documents of a collection. - * @param collectionId - Path parameter. - * @param queryParameters - Object containing the following keys: $top, $skip, $count. - * @param headerParameters - Object containing the following keys: AI-Resource-Group. - * @returns The request builder, use the `execute()` method to trigger the request. - */ - vectorV1VectorEndpointsGetAllDocuments: ( - collectionId: string, - queryParameters: { $top?: number; $skip?: number; $count?: boolean }, - headerParameters: { 'AI-Resource-Group': string } - ) => - new OpenApiRequestBuilder( - 'get', - '/lm/document-grounding/vector/collections/{collectionId}/documents', - { - pathParameters: { collectionId }, - queryParameters, - headerParameters - } - ), - /** - * Create and stores one or multiple documents into a collection. If omitted, 'id' will be auto-generated. - * @param collectionId - Path parameter. - * @param body - Request body. - * @param headerParameters - Object containing the following keys: AI-Resource-Group. - * @returns The request builder, use the `execute()` method to trigger the request. - */ - vectorV1VectorEndpointsCreateDocuments: ( - collectionId: string, - body: DocumentCreateRequest, - headerParameters: { 'AI-Resource-Group': string } - ) => - new OpenApiRequestBuilder( - 'post', - '/lm/document-grounding/vector/collections/{collectionId}/documents', - { - pathParameters: { collectionId }, - body, - headerParameters - } - ), - /** - * Upserts the data of multiple documents into a collection. - * @param collectionId - Path parameter. - * @param body - Request body. - * @param headerParameters - Object containing the following keys: AI-Resource-Group. - * @returns The request builder, use the `execute()` method to trigger the request. - */ - vectorV1VectorEndpointsUpdateDocuments: ( - collectionId: string, - body: DocumentUpdateRequest, - headerParameters: { 'AI-Resource-Group': string } - ) => - new OpenApiRequestBuilder( - 'patch', - '/lm/document-grounding/vector/collections/{collectionId}/documents', - { - pathParameters: { collectionId }, - body, - headerParameters - } - ) -}; diff --git a/packages/document-grounding/src/client/api/index.ts b/packages/document-grounding/src/client/api/index.ts index 3cb9cd76..0ddc4359 100644 --- a/packages/document-grounding/src/client/api/index.ts +++ b/packages/document-grounding/src/client/api/index.ts @@ -4,9 +4,6 @@ * This is a generated file powered by the SAP Cloud SDK for JavaScript. */ export * from './pipelines-api.js'; -export * from './collections-api.js'; -export * from './documents-api.js'; -export * from './search-api.js'; -export * from './retrieval-data-repository-api.js'; -export * from './retrieval-federated-search-across-data-repositories-api.js'; +export * from './vector-api.js'; +export * from './retrieval-api.js'; export * from './schema/index.js'; diff --git a/packages/document-grounding/src/client/api/pipelines-api.ts b/packages/document-grounding/src/client/api/pipelines-api.ts index cdb00cc0..70715a9b 100644 --- a/packages/document-grounding/src/client/api/pipelines-api.ts +++ b/packages/document-grounding/src/client/api/pipelines-api.ts @@ -16,23 +16,25 @@ import type { * This API is part of the 'api' service. */ export const PipelinesApi = { + _defaultBasePath: '/lm/document-grounding', /** * Get all pipelines * @param queryParameters - Object containing the following keys: $top, $skip, $count. * @param headerParameters - Object containing the following keys: AI-Resource-Group. * @returns The request builder, use the `execute()` method to trigger the request. */ - pipelineV1PipelineEndpointsGetAllPipeline: ( + getAllPipelines: ( queryParameters: { $top?: number; $skip?: number; $count?: boolean }, headerParameters: { 'AI-Resource-Group': string } ) => new OpenApiRequestBuilder( 'get', - '/lm/document-grounding/pipelines', + '/pipelines', { queryParameters, headerParameters - } + }, + PipelinesApi._defaultBasePath ), /** * Create a pipeline @@ -40,17 +42,18 @@ export const PipelinesApi = { * @param headerParameters - Object containing the following keys: AI-Resource-Group. * @returns The request builder, use the `execute()` method to trigger the request. */ - pipelineV1PipelineEndpointsCreatePipeline: ( + createPipeline: ( body: PipelinePostRequst, headerParameters: { 'AI-Resource-Group': string } ) => new OpenApiRequestBuilder( 'post', - '/lm/document-grounding/pipelines', + '/pipelines', { body, headerParameters - } + }, + PipelinesApi._defaultBasePath ), /** * Get details of a pipeline by pipeline id @@ -58,17 +61,18 @@ export const PipelinesApi = { * @param headerParameters - Object containing the following keys: AI-Resource-Group. * @returns The request builder, use the `execute()` method to trigger the request. */ - pipelineV1PipelineEndpointsGetPipelineById: ( + getPipelineById: ( pipelineId: string, headerParameters: { 'AI-Resource-Group': string } ) => new OpenApiRequestBuilder( 'get', - '/lm/document-grounding/pipelines/{pipelineId}', + '/pipelines/{pipelineId}', { pathParameters: { pipelineId }, headerParameters - } + }, + PipelinesApi._defaultBasePath ), /** * Delete a pipeline by pipeline id @@ -76,17 +80,18 @@ export const PipelinesApi = { * @param headerParameters - Object containing the following keys: AI-Resource-Group. * @returns The request builder, use the `execute()` method to trigger the request. */ - pipelineV1PipelineEndpointsDeletePipelineById: ( + deletePipelineById: ( pipelineId: string, headerParameters: { 'AI-Resource-Group': string } ) => new OpenApiRequestBuilder( 'delete', - '/lm/document-grounding/pipelines/{pipelineId}', + '/pipelines/{pipelineId}', { pathParameters: { pipelineId }, headerParameters - } + }, + PipelinesApi._defaultBasePath ), /** * Get pipeline status by pipeline id @@ -94,16 +99,17 @@ export const PipelinesApi = { * @param headerParameters - Object containing the following keys: AI-Resource-Group. * @returns The request builder, use the `execute()` method to trigger the request. */ - pipelineV1PipelineEndpointsGetPipelineStatus: ( + getPipelineStatus: ( pipelineId: string, headerParameters: { 'AI-Resource-Group': string } ) => new OpenApiRequestBuilder( 'get', - '/lm/document-grounding/pipelines/{pipelineId}/status', + '/pipelines/{pipelineId}/status', { pathParameters: { pipelineId }, headerParameters - } + }, + PipelinesApi._defaultBasePath ) }; diff --git a/packages/document-grounding/src/client/api/retrieval-data-repository-api.ts b/packages/document-grounding/src/client/api/retrieval-api.ts similarity index 56% rename from packages/document-grounding/src/client/api/retrieval-data-repository-api.ts rename to packages/document-grounding/src/client/api/retrieval-api.ts index 63d6d1a8..f0714fb6 100644 --- a/packages/document-grounding/src/client/api/retrieval-data-repository-api.ts +++ b/packages/document-grounding/src/client/api/retrieval-api.ts @@ -4,29 +4,36 @@ * This is a generated file powered by the SAP Cloud SDK for JavaScript. */ import { OpenApiRequestBuilder } from '@sap-ai-sdk/core'; -import type { DataRepositories, DataRepository } from './schema/index.js'; +import type { + DataRepositories, + DataRepository, + RetrievalSearchInput, + RetievalSearchResults +} from './schema/index.js'; /** - * Representation of the 'RetrievalDataRepositoryApi'. + * Representation of the 'RetrievalApi'. * This API is part of the 'api' service. */ -export const RetrievalDataRepositoryApi = { +export const RetrievalApi = { + _defaultBasePath: '/lm/document-grounding', /** * List all DataRepository objects. * @param queryParameters - Object containing the following keys: $top, $skip, $count. * @param headerParameters - Object containing the following keys: AI-Resource-Group. * @returns The request builder, use the `execute()` method to trigger the request. */ - retrievalV1RetrievalEndpointsGetDataRepositories: ( + getDataRepositories: ( queryParameters: { $top?: number; $skip?: number; $count?: boolean }, headerParameters: { 'AI-Resource-Group': string } ) => new OpenApiRequestBuilder( 'get', - '/lm/document-grounding/retrieval/dataRepositories', + '/retrieval/dataRepositories', { queryParameters, headerParameters - } + }, + RetrievalApi._defaultBasePath ), /** * List single DataRepository object. @@ -34,16 +41,36 @@ export const RetrievalDataRepositoryApi = { * @param headerParameters - Object containing the following keys: AI-Resource-Group. * @returns The request builder, use the `execute()` method to trigger the request. */ - retrievalV1RetrievalEndpointsGetDataRepository: ( + getDataRepositoryById: ( repositoryId: string, headerParameters: { 'AI-Resource-Group': string } ) => new OpenApiRequestBuilder( 'get', - '/lm/document-grounding/retrieval/dataRepositories/{repositoryId}', + '/retrieval/dataRepositories/{repositoryId}', { pathParameters: { repositoryId }, headerParameters - } + }, + RetrievalApi._defaultBasePath + ), + /** + * Retrieve relevant content given a query string. + * @param body - Request body. + * @param headerParameters - Object containing the following keys: AI-Resource-Group. + * @returns The request builder, use the `execute()` method to trigger the request. + */ + search: ( + body: RetrievalSearchInput, + headerParameters: { 'AI-Resource-Group': string } + ) => + new OpenApiRequestBuilder( + 'post', + '/retrieval/search', + { + body, + headerParameters + }, + RetrievalApi._defaultBasePath ) }; diff --git a/packages/document-grounding/src/client/api/retrieval-federated-search-across-data-repositories-api.ts b/packages/document-grounding/src/client/api/retrieval-federated-search-across-data-repositories-api.ts deleted file mode 100644 index 9faeb43e..00000000 --- a/packages/document-grounding/src/client/api/retrieval-federated-search-across-data-repositories-api.ts +++ /dev/null @@ -1,34 +0,0 @@ -/* - * Copyright (c) 2024 SAP SE or an SAP affiliate company. All rights reserved. - * - * This is a generated file powered by the SAP Cloud SDK for JavaScript. - */ -import { OpenApiRequestBuilder } from '@sap-ai-sdk/core'; -import type { - RetrievalSearchInput, - RetievalSearchResults -} from './schema/index.js'; -/** - * Representation of the 'RetrievalFederatedSearchAcrossDataRepositoriesApi'. - * This API is part of the 'api' service. - */ -export const RetrievalFederatedSearchAcrossDataRepositoriesApi = { - /** - * Retrieve relevant content given a query string. - * @param body - Request body. - * @param headerParameters - Object containing the following keys: AI-Resource-Group. - * @returns The request builder, use the `execute()` method to trigger the request. - */ - retrievalV1RetrievalEndpointsSearchDataRepositories: ( - body: RetrievalSearchInput, - headerParameters: { 'AI-Resource-Group': string } - ) => - new OpenApiRequestBuilder( - 'post', - '/lm/document-grounding/retrieval/search', - { - body, - headerParameters - } - ) -}; diff --git a/packages/document-grounding/src/client/api/search-api.ts b/packages/document-grounding/src/client/api/search-api.ts deleted file mode 100644 index 73d594b8..00000000 --- a/packages/document-grounding/src/client/api/search-api.ts +++ /dev/null @@ -1,31 +0,0 @@ -/* - * Copyright (c) 2024 SAP SE or an SAP affiliate company. All rights reserved. - * - * This is a generated file powered by the SAP Cloud SDK for JavaScript. - */ -import { OpenApiRequestBuilder } from '@sap-ai-sdk/core'; -import type { TextSearchRequest, SearchResults } from './schema/index.js'; -/** - * Representation of the 'SearchApi'. - * This API is part of the 'api' service. - */ -export const SearchApi = { - /** - * Search chunk by vector - * @param body - Request body. - * @param headerParameters - Object containing the following keys: AI-Resource-Group. - * @returns The request builder, use the `execute()` method to trigger the request. - */ - vectorV1VectorEndpointsSearchChunk: ( - body: TextSearchRequest, - headerParameters: { 'AI-Resource-Group': string } - ) => - new OpenApiRequestBuilder( - 'post', - '/lm/document-grounding/vector/search', - { - body, - headerParameters - } - ) -}; diff --git a/packages/document-grounding/src/client/api/vector-api.ts b/packages/document-grounding/src/client/api/vector-api.ts new file mode 100644 index 00000000..81e7d199 --- /dev/null +++ b/packages/document-grounding/src/client/api/vector-api.ts @@ -0,0 +1,273 @@ +/* + * Copyright (c) 2024 SAP SE or an SAP affiliate company. All rights reserved. + * + * This is a generated file powered by the SAP Cloud SDK for JavaScript. + */ +import { OpenApiRequestBuilder } from '@sap-ai-sdk/core'; +import type { + CollectionsListResponse, + CollectionRequest, + Collection, + DocumentResponse, + Documents, + DocumentCreateRequest, + DocumentsListResponse, + DocumentUpdateRequest, + TextSearchRequest, + SearchResults, + CollectionCreatedResponse, + CollectionPendingResponse, + CollectionDeletedResponse +} from './schema/index.js'; +/** + * Representation of the 'VectorApi'. + * This API is part of the 'api' service. + */ +export const VectorApi = { + _defaultBasePath: '/lm/document-grounding', + /** + * Gets a list of collections. + * @param queryParameters - Object containing the following keys: $top, $skip, $count. + * @param headerParameters - Object containing the following keys: AI-Resource-Group. + * @returns The request builder, use the `execute()` method to trigger the request. + */ + getAllCollections: ( + queryParameters: { $top?: number; $skip?: number; $count?: boolean }, + headerParameters: { 'AI-Resource-Group': string } + ) => + new OpenApiRequestBuilder( + 'get', + '/vector/collections', + { + queryParameters, + headerParameters + }, + VectorApi._defaultBasePath + ), + /** + * Creates a collection. This operation is asynchronous. Poll the collection resource and check the status field to understand creation status. + * @param body - Request body. + * @param headerParameters - Object containing the following keys: AI-Resource-Group. + * @returns The request builder, use the `execute()` method to trigger the request. + */ + createCollection: ( + body: CollectionRequest, + headerParameters: { 'AI-Resource-Group': string } + ) => + new OpenApiRequestBuilder( + 'post', + '/vector/collections', + { + body, + headerParameters + }, + VectorApi._defaultBasePath + ), + /** + * Gets a specific collection by ID. + * @param collectionId - Path parameter. + * @param headerParameters - Object containing the following keys: AI-Resource-Group. + * @returns The request builder, use the `execute()` method to trigger the request. + */ + getCollectionById: ( + collectionId: string, + headerParameters: { 'AI-Resource-Group': string } + ) => + new OpenApiRequestBuilder( + 'get', + '/vector/collections/{collectionId}', + { + pathParameters: { collectionId }, + headerParameters + }, + VectorApi._defaultBasePath + ), + /** + * Deletes a specific collection by ID. This operation is asynchronous. Poll the collection for a 404 status code. + * @param collectionId - Path parameter. + * @param headerParameters - Object containing the following keys: AI-Resource-Group. + * @returns The request builder, use the `execute()` method to trigger the request. + */ + deleteCollectionById: ( + collectionId: string, + headerParameters: { 'AI-Resource-Group': string } + ) => + new OpenApiRequestBuilder( + 'delete', + '/vector/collections/{collectionId}', + { + pathParameters: { collectionId }, + headerParameters + }, + VectorApi._defaultBasePath + ), + /** + * Gets a specific document in a collection by ID. + * @param collectionId - Path parameter. + * @param documentId - Path parameter. + * @param headerParameters - Object containing the following keys: AI-Resource-Group. + * @returns The request builder, use the `execute()` method to trigger the request. + */ + getDocumentById: ( + collectionId: string, + documentId: string, + headerParameters: { 'AI-Resource-Group': string } + ) => + new OpenApiRequestBuilder( + 'get', + '/vector/collections/{collectionId}/documents/{documentId}', + { + pathParameters: { collectionId, documentId }, + headerParameters + }, + VectorApi._defaultBasePath + ), + /** + * Deletes a specific document of a collection. + * @param collectionId - Path parameter. + * @param documentId - Path parameter. + * @param headerParameters - Object containing the following keys: AI-Resource-Group. + * @returns The request builder, use the `execute()` method to trigger the request. + */ + deleteDocumentById: ( + collectionId: string, + documentId: string, + headerParameters: { 'AI-Resource-Group': string } + ) => + new OpenApiRequestBuilder( + 'delete', + '/vector/collections/{collectionId}/documents/{documentId}', + { + pathParameters: { collectionId, documentId }, + headerParameters + }, + VectorApi._defaultBasePath + ), + /** + * Gets a list of documents of a collection. + * @param collectionId - Path parameter. + * @param queryParameters - Object containing the following keys: $top, $skip, $count. + * @param headerParameters - Object containing the following keys: AI-Resource-Group. + * @returns The request builder, use the `execute()` method to trigger the request. + */ + getAllDocuments: ( + collectionId: string, + queryParameters: { $top?: number; $skip?: number; $count?: boolean }, + headerParameters: { 'AI-Resource-Group': string } + ) => + new OpenApiRequestBuilder( + 'get', + '/vector/collections/{collectionId}/documents', + { + pathParameters: { collectionId }, + queryParameters, + headerParameters + }, + VectorApi._defaultBasePath + ), + /** + * Create and stores one or multiple documents into a collection. If omitted, 'id' will be auto-generated. + * @param collectionId - Path parameter. + * @param body - Request body. + * @param headerParameters - Object containing the following keys: AI-Resource-Group. + * @returns The request builder, use the `execute()` method to trigger the request. + */ + createDocuments: ( + collectionId: string, + body: DocumentCreateRequest, + headerParameters: { 'AI-Resource-Group': string } + ) => + new OpenApiRequestBuilder( + 'post', + '/vector/collections/{collectionId}/documents', + { + pathParameters: { collectionId }, + body, + headerParameters + }, + VectorApi._defaultBasePath + ), + /** + * Upserts the data of multiple documents into a collection. + * @param collectionId - Path parameter. + * @param body - Request body. + * @param headerParameters - Object containing the following keys: AI-Resource-Group. + * @returns The request builder, use the `execute()` method to trigger the request. + */ + updateDocuments: ( + collectionId: string, + body: DocumentUpdateRequest, + headerParameters: { 'AI-Resource-Group': string } + ) => + new OpenApiRequestBuilder( + 'patch', + '/vector/collections/{collectionId}/documents', + { + pathParameters: { collectionId }, + body, + headerParameters + }, + VectorApi._defaultBasePath + ), + /** + * Search chunk by vector + * @param body - Request body. + * @param headerParameters - Object containing the following keys: AI-Resource-Group. + * @returns The request builder, use the `execute()` method to trigger the request. + */ + search: ( + body: TextSearchRequest, + headerParameters: { 'AI-Resource-Group': string } + ) => + new OpenApiRequestBuilder( + 'post', + '/vector/search', + { + body, + headerParameters + }, + VectorApi._defaultBasePath + ), + /** + * Gets a specific collection status from monitor by ID. + * @param id - Path parameter. + * @param headerParameters - Object containing the following keys: AI-Resource-Group. + * @returns The request builder, use the `execute()` method to trigger the request. + */ + getCollectionCreationStatus: ( + id: string, + headerParameters: { 'AI-Resource-Group': string } + ) => + new OpenApiRequestBuilder< + CollectionCreatedResponse | CollectionPendingResponse + >( + 'get', + '/vector/collections/{id}/creationStatus', + { + pathParameters: { id }, + headerParameters + }, + VectorApi._defaultBasePath + ), + /** + * Gets a specific collection status from monitor by ID. + * @param id - Path parameter. + * @param headerParameters - Object containing the following keys: AI-Resource-Group. + * @returns The request builder, use the `execute()` method to trigger the request. + */ + getCollectionDeletionStatus: ( + id: string, + headerParameters: { 'AI-Resource-Group': string } + ) => + new OpenApiRequestBuilder< + CollectionDeletedResponse | CollectionPendingResponse + >( + 'get', + '/vector/collections/{id}/deletionStatus', + { + pathParameters: { id }, + headerParameters + }, + VectorApi._defaultBasePath + ) +}; diff --git a/packages/document-grounding/src/spec/api.yaml b/packages/document-grounding/src/spec/api.yaml index 23683e12..4848dffa 100644 --- a/packages/document-grounding/src/spec/api.yaml +++ b/packages/document-grounding/src/spec/api.yaml @@ -7,21 +7,18 @@ info: name: SAP AI Core tags: - name: pipelines - description: Tag for pipeline component - - name: collections - description: Tag for vector collections component - - name: documents - description: Tag for vector documents component - - name: search - description: Tag for vector search - - name: 'Retrieval: DataRepository' - description: 'Retrieval: DataRepository' - - name: 'Retrieval: Federated Search across Data Repositories' - description: 'Retrieval: Federated Search across Data Repositories' + description: Tag for pipelines component + - name: vector + description: Tag for vector component + - name: retrieval + description: Tag for retrieval component +servers: + - url: '/v2/lm/document-grounding' paths: - '/lm/document-grounding/pipelines': + '/pipelines': post: operationId: pipeline.v1.pipeline_endpoints.create_pipeline + x-sap-cloud-sdk-operation-name: createPipeline description: 'Create a pipeline' tags: - pipelines @@ -56,7 +53,8 @@ paths: - $ref: '#/components/parameters/top' - $ref: '#/components/parameters/skip' - $ref: '#/components/parameters/count' - operationId: pipeline.v1.pipeline_endpoints.get_all_pipeline + operationId: pipeline.v1.pipeline_endpoints.get_all_pipelines + x-sap-cloud-sdk-operation-name: getAllPipelines description: 'Get all pipelines' tags: - pipelines @@ -69,9 +67,10 @@ paths: $ref: '#/components/schemas/Pipelines' '400': $ref: '#/components/responses/BadRequest' - '/lm/document-grounding/pipelines/{pipelineId}': + '/pipelines/{pipelineId}': get: operationId: pipeline.v1.pipeline_endpoints.get_pipeline_by_id + x-sap-cloud-sdk-operation-name: getPipelineById description: 'Get details of a pipeline by pipeline id' tags: - pipelines @@ -98,6 +97,7 @@ paths: $ref: '#/components/responses/BadRequest' delete: operationId: pipeline.v1.pipeline_endpoints.delete_pipeline_by_id + x-sap-cloud-sdk-operation-name: deletePipelineById description: 'Delete a pipeline by pipeline id' tags: - pipelines @@ -118,9 +118,10 @@ paths: description: No Content '400': $ref: '#/components/responses/BadRequest' - '/lm/document-grounding/pipelines/{pipelineId}/status': + '/pipelines/{pipelineId}/status': get: operationId: pipeline.v1.pipeline_endpoints.get_pipeline_status + x-sap-cloud-sdk-operation-name: getPipelineStatus description: 'Get pipeline status by pipeline id' tags: - pipelines @@ -145,7 +146,7 @@ paths: $ref: '#/components/schemas/PipelineStatus' '400': $ref: '#/components/responses/BadRequest' - '/lm/document-grounding/vector/collections': + '/vector/collections': get: parameters: - in: header @@ -157,10 +158,11 @@ paths: - $ref: '#/components/parameters/skip' - $ref: '#/components/parameters/count' tags: - - collections + - vector summary: Get collections description: Gets a list of collections. operationId: vector.v1.vector_endpoints.get_all_collections + x-sap-cloud-sdk-operation-name: getAllCollections responses: '200': description: Successful Response @@ -178,10 +180,11 @@ paths: schema: type: string tags: - - collections + - vector summary: Create collection description: Creates a collection. This operation is asynchronous. Poll the collection resource and check the status field to understand creation status. operationId: vector.v1.vector_endpoints.create_collection + x-sap-cloud-sdk-operation-name: createCollection requestBody: content: application/json: @@ -200,13 +203,14 @@ paths: $ref: '#/components/responses/BadRequest' '422': $ref: '#/components/responses/UnprocessableEntity' - '/lm/document-grounding/vector/collections/{collectionId}': + '/vector/collections/{collectionId}': get: tags: - - collections + - vector summary: Get collection by ID description: Gets a specific collection by ID. operationId: vector.v1.vector_endpoints.get_collection_by_id + x-sap-cloud-sdk-operation-name: getCollectionById parameters: - in: header name: AI-Resource-Group @@ -235,10 +239,11 @@ paths: $ref: '#/components/responses/UnprocessableEntity' delete: tags: - - collections + - vector summary: Delete collection by ID description: Deletes a specific collection by ID. This operation is asynchronous. Poll the collection for a 404 status code. - operationId: vector.v1.vector_endpoints.delete_collection + operationId: vector.v1.vector_endpoints.delete_collection_by_id + x-sap-cloud-sdk-operation-name: deleteCollectionById parameters: - in: header name: AI-Resource-Group @@ -265,13 +270,14 @@ paths: $ref: '#/components/responses/NotFound' '422': $ref: '#/components/responses/UnprocessableEntity' - '/lm/document-grounding/vector/collections/{collectionId}/documents/{documentId}': + '/vector/collections/{collectionId}/documents/{documentId}': get: tags: - - documents + - vector summary: Get document by ID description: Gets a specific document in a collection by ID. operationId: vector.v1.vector_endpoints.get_document_by_id + x-sap-cloud-sdk-operation-name: getDocumentById parameters: - in: header name: AI-Resource-Group @@ -307,10 +313,11 @@ paths: $ref: '#/components/responses/UnprocessableEntity' delete: tags: - - documents + - vector summary: Delete a document description: Deletes a specific document of a collection. - operationId: vector.v1.vector_endpoints.delete_document + operationId: vector.v1.vector_endpoints.delete_document_by_id + x-sap-cloud-sdk-operation-name: deleteDocumentById parameters: - in: header name: AI-Resource-Group @@ -340,13 +347,14 @@ paths: $ref: '#/components/responses/NotFound' '422': $ref: '#/components/responses/UnprocessableEntity' - '/lm/document-grounding/vector/collections/{collectionId}/documents': + '/vector/collections/{collectionId}/documents': get: tags: - - documents + - vector summary: Get documents description: Gets a list of documents of a collection. operationId: vector.v1.vector_endpoints.get_all_documents + x-sap-cloud-sdk-operation-name: getAllDocuments parameters: - in: header name: AI-Resource-Group @@ -378,10 +386,11 @@ paths: $ref: '#/components/responses/UnprocessableEntity' post: tags: - - documents + - vector summary: Create documents in collection description: Create and stores one or multiple documents into a collection. If omitted, 'id' will be auto-generated. operationId: vector.v1.vector_endpoints.create_documents + x-sap-cloud-sdk-operation-name: createDocuments parameters: - in: header name: AI-Resource-Group @@ -416,10 +425,11 @@ paths: $ref: '#/components/responses/UnprocessableEntity' patch: tags: - - documents + - vector summary: Upsert documents in collection description: Upserts the data of multiple documents into a collection. operationId: vector.v1.vector_endpoints.update_documents + x-sap-cloud-sdk-operation-name: updateDocuments parameters: - in: header name: AI-Resource-Group @@ -452,7 +462,7 @@ paths: $ref: '#/components/responses/NotFound' '422': $ref: '#/components/responses/UnprocessableEntity' - '/lm/document-grounding/vector/search': + '/vector/search': post: parameters: - in: header @@ -461,10 +471,11 @@ paths: schema: type: string tags: - - search + - vector summary: Search chunk by vector description: 'Search chunk by vector' - operationId: vector.v1.vector_endpoints.search_chunk + operationId: vector.v1.vector_endpoints.search + x-sap-cloud-sdk-operation-name: search requestBody: content: application/json: @@ -484,13 +495,14 @@ paths: $ref: '#/components/responses/NotFound' '422': $ref: '#/components/responses/UnprocessableEntity' - '/lm/document-grounding/vector/collections/{id}/creationStatus': + '/vector/collections/{id}/creationStatus': get: tags: - - collections + - vector summary: Get collection status by ID description: Gets a specific collection status from monitor by ID. operationId: vector.v1.vector_endpoints.get_collection_creation_status + x-sap-cloud-sdk-operation-name: getCollectionCreationStatus parameters: - in: header name: AI-Resource-Group @@ -519,13 +531,14 @@ paths: $ref: '#/components/responses/NotFound' '422': $ref: '#/components/responses/UnprocessableEntity' - '/lm/document-grounding/vector/collections/{id}/deletionStatus': + '/vector/collections/{id}/deletionStatus': get: tags: - - collections + - vector summary: Get collection status by ID description: Gets a specific collection status from monitor by ID. operationId: vector.v1.vector_endpoints.get_collection_deletion_status + x-sap-cloud-sdk-operation-name: getCollectionDeletionStatus parameters: - in: header name: AI-Resource-Group @@ -554,7 +567,7 @@ paths: $ref: '#/components/responses/NotFound' '422': $ref: '#/components/responses/UnprocessableEntity' - '/lm/document-grounding/retrieval/dataRepositories': + '/retrieval/dataRepositories': get: parameters: - in: header @@ -566,10 +579,11 @@ paths: - $ref: '#/components/parameters/skip' - $ref: '#/components/parameters/count' tags: - - 'Retrieval: DataRepository' + - retrieval summary: List all DataRepository objects. description: List all DataRepository objects. operationId: retrieval.v1.retrieval_endpoints.get_data_repositories + x-sap-cloud-sdk-operation-name: getDataRepositories responses: '200': description: Successful Response @@ -579,13 +593,14 @@ paths: $ref: '#/components/schemas/DataRepositories' '400': $ref: '#/components/responses/BadRequest' - '/lm/document-grounding/retrieval/dataRepositories/{repositoryId}': + '/retrieval/dataRepositories/{repositoryId}': get: tags: - - 'Retrieval: DataRepository' + - retrieval summary: List single DataRepository object. description: List single DataRepository object. - operationId: retrieval.v1.retrieval_endpoints.get_data_repository + operationId: retrieval.v1.retrieval_endpoints.get_data_repository_by_id + x-sap-cloud-sdk-operation-name: getDataRepositoryById parameters: - in: header name: AI-Resource-Group @@ -612,7 +627,7 @@ paths: $ref: '#/components/responses/UnprocessableEntity' '404': $ref: '#/components/responses/NotFound' - '/lm/document-grounding/retrieval/search': + '/retrieval/search': post: parameters: - in: header @@ -621,10 +636,11 @@ paths: schema: type: string tags: - - 'Retrieval: Federated Search across Data Repositories' + - retrieval summary: Retrieve relevant content given a query string. description: Retrieve relevant content given a query string. - operationId: retrieval.v1.retrieval_endpoints.search_data_repositories + operationId: retrieval.v1.retrieval_endpoints.search + x-sap-cloud-sdk-operation-name: search requestBody: content: application/json: diff --git a/packages/document-grounding/src/spec/options-per-service.json b/packages/document-grounding/src/spec/options-per-service.json new file mode 100644 index 00000000..c4dd34ff --- /dev/null +++ b/packages/document-grounding/src/spec/options-per-service.json @@ -0,0 +1,7 @@ +{ + "src/spec/api.yaml": { + "packageName": "api", + "directoryName": "api", + "basePath": "/lm/document-grounding" + } +} diff --git a/packages/document-grounding/src/tests/collections-api.test.ts b/packages/document-grounding/src/tests/collections-api.test.ts index b1cd58cf..4d2d1840 100644 --- a/packages/document-grounding/src/tests/collections-api.test.ts +++ b/packages/document-grounding/src/tests/collections-api.test.ts @@ -4,7 +4,7 @@ import { mockClientCredentialsGrantCall } from '../../../../test-util/mock-http.js'; import { - CollectionsApi, + VectorApi, type CollectionsListResponse } from '../client/api/index.js'; @@ -41,11 +41,10 @@ describe('collections', () => { 'Content-Type': 'application/json' }); - const result: CollectionsListResponse = - await CollectionsApi.vectorV1VectorEndpointsGetAllCollections( - {}, - { 'AI-Resource-Group': 'default' } - ).execute(); + const result: CollectionsListResponse = await VectorApi.getAllCollections( + {}, + { 'AI-Resource-Group': 'default' } + ).execute(); expect(result).toEqual(expectedResponse); }); diff --git a/packages/document-grounding/src/tests/documents-api.test.ts b/packages/document-grounding/src/tests/documents-api.test.ts index 89214193..7f9bbcdb 100644 --- a/packages/document-grounding/src/tests/documents-api.test.ts +++ b/packages/document-grounding/src/tests/documents-api.test.ts @@ -3,7 +3,7 @@ import { aiCoreDestination, mockClientCredentialsGrantCall } from '../../../../test-util/mock-http.js'; -import { DocumentsApi } from '../client/api/index.js'; +import { VectorApi } from '../client/api/index.js'; import type { Documents } from '../client/api/index.js'; describe('documents', () => { @@ -44,12 +44,11 @@ describe('documents', () => { 'Content-Type': 'application/json' }); - const result: Documents = - await DocumentsApi.vectorV1VectorEndpointsGetAllDocuments( - collectionId, - {}, - { 'AI-Resource-Group': 'default' } - ).execute(); + const result: Documents = await VectorApi.getAllDocuments( + collectionId, + {}, + { 'AI-Resource-Group': 'default' } + ).execute(); expect(result).toEqual(expectedResponse); }); diff --git a/packages/document-grounding/src/tests/pipelines-api.test.ts b/packages/document-grounding/src/tests/pipelines-api.test.ts index 7f68bf4b..dd5b6c74 100644 --- a/packages/document-grounding/src/tests/pipelines-api.test.ts +++ b/packages/document-grounding/src/tests/pipelines-api.test.ts @@ -45,11 +45,10 @@ describe('pipelines', () => { 'Content-Type': 'application/json' }); - const result: Pipelines = - await PipelinesApi.pipelineV1PipelineEndpointsGetAllPipeline( - {}, - { 'AI-Resource-Group': 'default' } - ).execute(); + const result: Pipelines = await PipelinesApi.getAllPipelines( + {}, + { 'AI-Resource-Group': 'default' } + ).execute(); expect(result).toEqual(expectedResponse); }); diff --git a/packages/document-grounding/src/tests/retrieval-data-repository-api.test.ts b/packages/document-grounding/src/tests/retrieval-data-repository-api.test.ts index c51ab427..1406f329 100644 --- a/packages/document-grounding/src/tests/retrieval-data-repository-api.test.ts +++ b/packages/document-grounding/src/tests/retrieval-data-repository-api.test.ts @@ -3,8 +3,7 @@ import { aiCoreDestination, mockClientCredentialsGrantCall } from '../../../../test-util/mock-http.js'; -import { RetrievalDataRepositoryApi } from '../client/api/index.js'; -import type { DataRepositories } from '../../internal.js'; +import { RetrievalApi, type DataRepositories } from '../../internal.js'; describe('retrieval data repository', () => { beforeEach(() => { @@ -37,11 +36,10 @@ describe('retrieval data repository', () => { 'Content-Type': 'application/json' }); - const result: DataRepositories = - await RetrievalDataRepositoryApi.retrievalV1RetrievalEndpointsGetDataRepositories( - {}, - { 'AI-Resource-Group': 'default' } - ).execute(); + const result: DataRepositories = await RetrievalApi.getDataRepositories( + {}, + { 'AI-Resource-Group': 'default' } + ).execute(); expect(result).toEqual(expectedResponse); }); diff --git a/sample-code/src/document-grounding.ts b/sample-code/src/document-grounding.ts index 255ab80d..1917210d 100644 --- a/sample-code/src/document-grounding.ts +++ b/sample-code/src/document-grounding.ts @@ -1,8 +1,4 @@ -import { - CollectionsApi, - DocumentsApi, - RetrievalFederatedSearchAcrossDataRepositoriesApi -} from '@sap-ai-sdk/document-grounding'; +import { RetrievalApi, VectorApi } from '@sap-ai-sdk/document-grounding'; import type { DocumentsListResponse, RetievalSearchResults @@ -13,19 +9,18 @@ import type { * @returns Collection creation response. */ export async function createCollection(): Promise { - const createCollectionResponse = - await CollectionsApi.vectorV1VectorEndpointsCreateCollection( - { - title: 'ai-sdk-js-e2e', - embeddingConfig: { - modelName: 'text-embedding-ada-002-v2' - }, - metadata: [] + const createCollectionResponse = await VectorApi.createCollection( + { + title: 'ai-sdk-js-e2e', + embeddingConfig: { + modelName: 'text-embedding-ada-002-v2' }, - { - 'AI-Resource-Group': 'default' - } - ).executeRaw(); + metadata: [] + }, + { + 'AI-Resource-Group': 'default' + } + ).executeRaw(); return (createCollectionResponse.headers.location as string) .split('/') @@ -38,7 +33,7 @@ export async function createCollection(): Promise { * @returns Collection deletion response. */ export async function deleteCollection(collectionId: string): Promise { - return CollectionsApi.vectorV1VectorEndpointsDeleteCollection(collectionId, { + return VectorApi.deleteCollectionById(collectionId, { 'AI-Resource-Group': 'default' }).execute(); } @@ -53,7 +48,7 @@ export async function createDocumentsWithTimestamp( collectionId: string, timestamp: number ): Promise { - return DocumentsApi.vectorV1VectorEndpointsCreateDocuments( + return VectorApi.createDocuments( collectionId, { documents: [ @@ -79,7 +74,7 @@ export async function createDocumentsWithTimestamp( * @returns Search results. */ export async function retrieveDocuments(): Promise { - return RetrievalFederatedSearchAcrossDataRepositoriesApi.retrievalV1RetrievalEndpointsSearchDataRepositories( + return RetrievalApi.search( { query: 'When was the last time SAP AI SDK JavaScript end to end test was executed?', From 35bea10e3854bc1a17edb122f8f187ce6f6e1e18 Mon Sep 17 00:00:00 2001 From: cloud-sdk-js Date: Fri, 20 Dec 2024 23:49:06 +0000 Subject: [PATCH 3/8] fix: Changes from lint --- packages/core/src/openapi-request-builder.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/src/openapi-request-builder.ts b/packages/core/src/openapi-request-builder.ts index 580590ff..b8bfc3d2 100644 --- a/packages/core/src/openapi-request-builder.ts +++ b/packages/core/src/openapi-request-builder.ts @@ -17,7 +17,7 @@ export class OpenApiRequestBuilder< parameters?: OpenApiRequestParameters, basePath?: string ) { - super(method, pathPattern, parameters,basePath); + super(method, pathPattern, parameters, basePath); } /** From e2896b8bd3967a648c8bb141a580a393fd6acfcb Mon Sep 17 00:00:00 2001 From: KavithaSiva Date: Thu, 2 Jan 2025 23:35:19 +0100 Subject: [PATCH 4/8] chore: fix pnpm lockfile --- pnpm-lock.yaml | 47 +++++++++++++++++++---------------------------- 1 file changed, 19 insertions(+), 28 deletions(-) diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 73a8de84..26e5ec03 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1355,10 +1355,6 @@ packages: resolution: {integrity: sha512-Vj0WLm5/ZsD013YeUKn+K0y8p1M0jPpxOkKdbD1wB0ns53a5piVY02zjf072TblEweAbcYiFiPoSMF3kp+VhhQ==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - '@typescript-eslint/visitor-keys@8.18.1': - resolution: {integrity: sha512-Vj0WLm5/ZsD013YeUKn+K0y8p1M0jPpxOkKdbD1wB0ns53a5piVY02zjf072TblEweAbcYiFiPoSMF3kp+VhhQ==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - '@typescript/vfs@1.6.0': resolution: {integrity: sha512-hvJUjNVeBMp77qPINuUvYXj4FyWeeMMKZkxEATEU3hqBAQ7qdTBCUFT7Sp0Zu0faeEtFf+ldXxMEDr/bk73ISg==} peerDependencies: @@ -4875,25 +4871,25 @@ snapshots: '@bcoe/v8-coverage@0.2.3': {} - '@cap-js/asyncapi@1.0.2(@sap/cds@8.6.0(express@4.21.2))': + '@cap-js/asyncapi@1.0.2(@sap/cds@8.6.0(express@4.21.1))': dependencies: - '@sap/cds': 8.6.0(express@4.21.2) + '@sap/cds': 8.6.0(express@4.21.1) - '@cap-js/db-service@1.15.0(@sap/cds@8.6.0(express@4.21.2))': + '@cap-js/db-service@1.15.0(@sap/cds@8.6.0(express@4.21.1))': dependencies: - '@sap/cds': 8.6.0(express@4.21.2) + '@sap/cds': 8.6.0(express@4.21.1) generic-pool: 3.9.0 optional: true - '@cap-js/openapi@1.0.7(@sap/cds@8.6.0(express@4.21.2))': + '@cap-js/openapi@1.0.7(@sap/cds@8.6.0(express@4.21.1))': dependencies: - '@sap/cds': 8.6.0(express@4.21.2) + '@sap/cds': 8.6.0(express@4.21.1) pluralize: 8.0.0 - '@cap-js/sqlite@1.7.7(@sap/cds@8.6.0(express@4.21.2))': + '@cap-js/sqlite@1.7.7(@sap/cds@8.6.0(express@4.21.1))': dependencies: - '@cap-js/db-service': 1.15.0(@sap/cds@8.6.0(express@4.21.2)) - '@sap/cds': 8.6.0(express@4.21.2) + '@cap-js/db-service': 1.15.0(@sap/cds@8.6.0(express@4.21.1)) + '@sap/cds': 8.6.0(express@4.21.1) better-sqlite3: 11.5.0 optional: true @@ -5735,8 +5731,8 @@ snapshots: '@sap/cds-dk@8.6.1': dependencies: - '@cap-js/asyncapi': 1.0.2(@sap/cds@8.6.0(express@4.21.2)) - '@cap-js/openapi': 1.0.7(@sap/cds@8.6.0(express@4.21.2)) + '@cap-js/asyncapi': 1.0.2(@sap/cds@8.6.0(express@4.21.1)) + '@cap-js/openapi': 1.0.7(@sap/cds@8.6.0(express@4.21.1)) '@sap/cds': 8.6.0(express@4.21.2) '@sap/cds-foss': 5.0.1 '@sap/cds-mtxs': 2.3.1(hdb@0.19.10) @@ -5752,7 +5748,7 @@ snapshots: ws: 8.18.0 xml-js: 1.6.11 optionalDependencies: - '@cap-js/sqlite': 1.7.7(@sap/cds@8.6.0(express@4.21.2)) + '@cap-js/sqlite': 1.7.7(@sap/cds@8.6.0(express@4.21.1)) transitivePeerDependencies: - '@sap/hana-client' - bufferutil @@ -5766,9 +5762,9 @@ snapshots: '@sap/cds': 8.6.0(express@4.21.1) express: 4.21.1 - '@sap/cds-fiori@1.2.7(@sap/cds@8.6.0(express@4.21.2))(express@4.21.2)': + '@sap/cds-fiori@1.2.7(@sap/cds@8.6.0(express@4.21.1))(express@4.21.2)': dependencies: - '@sap/cds': 8.6.0(express@4.21.2) + '@sap/cds': 8.6.0(express@4.21.1) express: 4.21.2 '@sap/cds-foss@5.0.1': @@ -5799,7 +5795,7 @@ snapshots: '@sap/cds@8.6.0(express@4.21.2)': dependencies: '@sap/cds-compiler': 5.3.2 - '@sap/cds-fiori': 1.2.7(@sap/cds@8.6.0(express@4.21.2))(express@4.21.2) + '@sap/cds-fiori': 1.2.7(@sap/cds@8.6.0(express@4.21.1))(express@4.21.2) '@sap/cds-foss': 5.0.1 optionalDependencies: express: 4.21.2 @@ -6091,7 +6087,7 @@ snapshots: - supports-color '@typescript-eslint/types@8.18.1': {} - + '@typescript-eslint/typescript-estree@8.18.1(typescript@5.7.2)': dependencies: '@typescript-eslint/types': 8.18.1 @@ -6105,7 +6101,7 @@ snapshots: typescript: 5.7.2 transitivePeerDependencies: - supports-color - + '@typescript-eslint/utils@8.18.1(eslint@9.17.0)(typescript@5.7.2)': dependencies: '@eslint-community/eslint-utils': 4.4.1(eslint@9.17.0) @@ -6116,11 +6112,6 @@ snapshots: typescript: 5.7.2 transitivePeerDependencies: - supports-color - - '@typescript-eslint/visitor-keys@8.18.1': - dependencies: - '@typescript-eslint/types': 8.18.1 - eslint-visitor-keys: 4.2.0 '@typescript-eslint/visitor-keys@8.18.1': dependencies: @@ -7087,7 +7078,7 @@ snapshots: eslint-import-resolver-typescript: 3.7.0(eslint-plugin-import@2.31.0(@typescript-eslint/parser@8.18.1(eslint@9.17.0)(typescript@5.7.2))(eslint@9.17.0))(eslint@9.17.0) transitivePeerDependencies: - supports-color - + eslint-plugin-import@2.31.0(@typescript-eslint/parser@8.18.1(eslint@9.17.0)(typescript@5.7.2))(eslint-import-resolver-typescript@3.7.0)(eslint@9.17.0): dependencies: '@rtsao/scc': 1.1.0 @@ -10006,4 +9997,4 @@ snapshots: dependencies: zod: 3.24.1 - zod@3.24.1: {} + zod@3.24.1: {} \ No newline at end of file From d682f64c4b474e0ed9f3ee951bac65c6b33df5f1 Mon Sep 17 00:00:00 2001 From: KavithaSiva Date: Thu, 2 Jan 2025 23:44:09 +0100 Subject: [PATCH 5/8] chore: fix tests --- .../src/tests/retrieval-data-repository-api.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/document-grounding/src/tests/retrieval-data-repository-api.test.ts b/packages/document-grounding/src/tests/retrieval-data-repository-api.test.ts index 1406f329..89065995 100644 --- a/packages/document-grounding/src/tests/retrieval-data-repository-api.test.ts +++ b/packages/document-grounding/src/tests/retrieval-data-repository-api.test.ts @@ -3,7 +3,7 @@ import { aiCoreDestination, mockClientCredentialsGrantCall } from '../../../../test-util/mock-http.js'; -import { RetrievalApi, type DataRepositories } from '../../internal.js'; +import { RetrievalApi, type DataRepositories } from '../client/api/index.js'; describe('retrieval data repository', () => { beforeEach(() => { From d0fc332924663c4d663c09605c4ca3d435bf930e Mon Sep 17 00:00:00 2001 From: KavithaSiva Date: Fri, 3 Jan 2025 10:01:19 +0100 Subject: [PATCH 6/8] chore: match main --- pnpm-lock.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index df95007a..1c0517ce 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -10000,4 +10000,5 @@ snapshots: dependencies: zod: 3.24.1 - zod@3.24.1: {} \ No newline at end of file + zod@3.24.1: {} + \ No newline at end of file From 02db6289045a15b6df5324feeabc5ccfbd1dbf74 Mon Sep 17 00:00:00 2001 From: KavithaSiva Date: Fri, 3 Jan 2025 10:20:00 +0100 Subject: [PATCH 7/8] chore: pnpmlock fix --- pnpm-lock.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 1c0517ce..ed4a037b 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -10001,4 +10001,3 @@ snapshots: zod: 3.24.1 zod@3.24.1: {} - \ No newline at end of file From 71fcf0c8ab52554af18f66ee5c058a3ce0c0fa5d Mon Sep 17 00:00:00 2001 From: KavithaSiva Date: Fri, 3 Jan 2025 12:44:52 +0100 Subject: [PATCH 8/8] chore: change copyright dates --- packages/document-grounding/src/client/api/retrieval-api.ts | 2 +- packages/document-grounding/src/client/api/vector-api.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/document-grounding/src/client/api/retrieval-api.ts b/packages/document-grounding/src/client/api/retrieval-api.ts index f0714fb6..29066308 100644 --- a/packages/document-grounding/src/client/api/retrieval-api.ts +++ b/packages/document-grounding/src/client/api/retrieval-api.ts @@ -1,5 +1,5 @@ /* - * Copyright (c) 2024 SAP SE or an SAP affiliate company. All rights reserved. + * Copyright (c) 2025 SAP SE or an SAP affiliate company. All rights reserved. * * This is a generated file powered by the SAP Cloud SDK for JavaScript. */ diff --git a/packages/document-grounding/src/client/api/vector-api.ts b/packages/document-grounding/src/client/api/vector-api.ts index 81e7d199..b2697b13 100644 --- a/packages/document-grounding/src/client/api/vector-api.ts +++ b/packages/document-grounding/src/client/api/vector-api.ts @@ -1,5 +1,5 @@ /* - * Copyright (c) 2024 SAP SE or an SAP affiliate company. All rights reserved. + * Copyright (c) 2025 SAP SE or an SAP affiliate company. All rights reserved. * * This is a generated file powered by the SAP Cloud SDK for JavaScript. */