diff --git a/.devcontainer/setup.sh b/.devcontainer/setup.sh index debb281f..5ac46471 100644 --- a/.devcontainer/setup.sh +++ b/.devcontainer/setup.sh @@ -7,8 +7,8 @@ curl -fsSL https://raw.githubusercontent.com/speakeasy-api/speakeasy/main/instal rmdir samples || true mkdir samples -npm install -npm install -g ts-node +npm install --ignore-scripts +npm install -g ts-node --ignore-scripts npm link npm link @inkeep/inkeep-analytics TS_CONFIG_CONTENT=$(cat < [!NOTE] @@ -601,7 +598,7 @@ httpClient.addHook("requestError", (error, request) => { console.groupEnd(); }); -const sdk = new InkeepAnalytics({ httpClient }); +const sdk = new InkeepAnalytics({ httpClient: httpClient }); ``` diff --git a/RELEASES.md b/RELEASES.md index 57dd0037..d3f73789 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -378,4 +378,14 @@ Based on: ### Generated - [typescript v0.2.4-alpha.33] . ### Releases -- [NPM v0.2.4-alpha.33] https://www.npmjs.com/package/@inkeep/inkeep-analytics/v/0.2.4-alpha.33 - . \ No newline at end of file +- [NPM v0.2.4-alpha.33] https://www.npmjs.com/package/@inkeep/inkeep-analytics/v/0.2.4-alpha.33 - . + +## 2025-11-16 04:25:44 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.658.1 (2.755.6) https://github.com/speakeasy-api/speakeasy +### Generated +- [typescript v0.2.4-alpha.34] . +### Releases +- [NPM v0.2.4-alpha.34] https://www.npmjs.com/package/@inkeep/inkeep-analytics/v/0.2.4-alpha.34 - . \ No newline at end of file diff --git a/RUNTIMES.md b/RUNTIMES.md index db7ea942..27731c3b 100644 --- a/RUNTIMES.md +++ b/RUNTIMES.md @@ -2,9 +2,9 @@ This SDK is intended to be used in JavaScript runtimes that support ECMAScript 2020 or newer. The SDK uses the following features: -* [Web Fetch API][web-fetch] -* [Web Streams API][web-streams] and in particular `ReadableStream` -* [Async iterables][async-iter] using `Symbol.asyncIterator` +- [Web Fetch API][web-fetch] +- [Web Streams API][web-streams] and in particular `ReadableStream` +- [Async iterables][async-iter] using `Symbol.asyncIterator` [web-fetch]: https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API [web-streams]: https://developer.mozilla.org/en-US/docs/Web/API/Streams_API @@ -25,7 +25,7 @@ Runtime environments that are explicitly supported are: The following `tsconfig.json` options are recommended for projects using this SDK in order to get static type support for features like async iterables, -streams and `fetch`-related APIs ([`for await...of`][for-await-of], +streams and `fetch`-related APIs ([`for await...of`][for-await-of], [`AbortSignal`][abort-signal], [`Request`][request], [`Response`][response] and so on): @@ -38,11 +38,11 @@ so on): { "compilerOptions": { "target": "es2020", // or higher - "lib": ["es2020", "dom", "dom.iterable"], + "lib": ["es2020", "dom", "dom.iterable"] } } ``` While `target` can be set to older ECMAScript versions, it may result in extra, unnecessary compatibility code being generated if you are not targeting old -runtimes. \ No newline at end of file +runtimes. diff --git a/examples/.env.template b/examples/.env.template index 52831d5b..89f0915f 100644 --- a/examples/.env.template +++ b/examples/.env.template @@ -11,4 +11,4 @@ INKEEPANALYTICS_API_INTEGRATION_KEY=your_apiintegrationkey_here # Debug Configuration # Enable HTTP request/response logging for debugging -INKEEPANALYTICS_DEBUG=false +INKEEPANALYTICS_DEBUG=true diff --git a/examples/package-lock.json b/examples/package-lock.json index 44a4220a..9744478b 100644 --- a/examples/package-lock.json +++ b/examples/package-lock.json @@ -18,16 +18,16 @@ }, "..": { "name": "@inkeep/inkeep-analytics", - "version": "0.2.4-alpha.33", + "version": "0.2.4-alpha.34", "dependencies": { - "zod": "^3.20.0" + "@modelcontextprotocol/sdk": ">=1.5.0 <1.10.0", + "zod": "^3.25.0 || ^4.0.0" }, "bin": { "mcp": "bin/mcp-server.js" }, "devDependencies": { "@eslint/js": "^9.19.0", - "@modelcontextprotocol/sdk": ">=1.5.0 <1.10.0", "@stricli/core": "^1.1.1", "@tanstack/react-query": "^5.61.4", "@types/express": "^4.17.21", @@ -38,19 +38,15 @@ "express": "^4.21.2", "globals": "^15.14.0", "tshy": "^2.0.0", - "typescript": "^5.4.5", - "typescript-eslint": "^8.22.0" + "typescript": "~5.8.3", + "typescript-eslint": "^8.26.0" }, "peerDependencies": { - "@modelcontextprotocol/sdk": ">=1.5.0 <1.10.0", "@tanstack/react-query": "^5", "react": "^18 || ^19", "react-dom": "^18 || ^19" }, "peerDependenciesMeta": { - "@modelcontextprotocol/sdk": { - "optional": true - }, "@tanstack/react-query": { "optional": true }, diff --git a/examples/topSearchQueries.example.ts b/examples/topSearchQueries.example.ts index 0407aed2..0716c5e4 100644 --- a/examples/topSearchQueries.example.ts +++ b/examples/topSearchQueries.example.ts @@ -8,7 +8,7 @@ dotenv.config(); * Example usage of the @inkeep/inkeep-analytics SDK * * To run this example from the examples directory: - * npm run build && npx tsx topSearchQueries.ts + * npm run build && npx tsx topSearchQueries.example.ts */ import { InkeepAnalytics } from "@inkeep/inkeep-analytics"; diff --git a/jsr.json b/jsr.json index 865bfb44..2d9352be 100644 --- a/jsr.json +++ b/jsr.json @@ -2,7 +2,7 @@ { "name": "@inkeep/inkeep-analytics", - "version": "0.2.4-alpha.33", + "version": "0.2.4-alpha.34", "exports": { ".": "./src/index.ts", "./models/errors": "./src/models/errors/index.ts", diff --git a/package-lock.json b/package-lock.json index fb6aafa7..f650dc66 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,21 +1,21 @@ { "name": "@inkeep/inkeep-analytics", - "version": "0.2.4-alpha.33", + "version": "0.2.4-alpha.34", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@inkeep/inkeep-analytics", - "version": "0.2.4-alpha.33", + "version": "0.2.4-alpha.34", "dependencies": { - "zod": "^3.20.0" + "@modelcontextprotocol/sdk": ">=1.5.0 <1.10.0", + "zod": "^3.25.0 || ^4.0.0" }, "bin": { "mcp": "bin/mcp-server.js" }, "devDependencies": { "@eslint/js": "^9.19.0", - "@modelcontextprotocol/sdk": ">=1.5.0 <1.10.0", "@stricli/core": "^1.1.1", "@tanstack/react-query": "^5.61.4", "@types/express": "^4.17.21", @@ -26,19 +26,15 @@ "express": "^4.21.2", "globals": "^15.14.0", "tshy": "^2.0.0", - "typescript": "^5.4.5", - "typescript-eslint": "^8.22.0" + "typescript": "~5.8.3", + "typescript-eslint": "^8.26.0" }, "peerDependencies": { - "@modelcontextprotocol/sdk": ">=1.5.0 <1.10.0", "@tanstack/react-query": "^5", "react": "^18 || ^19", "react-dom": "^18 || ^19" }, "peerDependenciesMeta": { - "@modelcontextprotocol/sdk": { - "optional": true - }, "@tanstack/react-query": { "optional": true }, @@ -51,9 +47,9 @@ } }, "node_modules/@eslint-community/eslint-utils": { - "version": "4.4.1", - "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.4.1.tgz", - "integrity": "sha512-s3O3waFUrMV8P/XaF/+ZTp1X9XBZW1a4B97ZnjQF2KYWaFD2A8KyFBsrsfSjEmjn3RGWAIuvlneuZm3CUK3jbA==", + "version": "4.9.0", + "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.9.0.tgz", + "integrity": "sha512-ayVFHdtZ+hsq1t2Dy24wCmGXGe4q9Gu3smhLYALJrr473ZH27MsnSL+LKUlimp4BWJqMDMLmPpx/Q9R3OAlL4g==", "dev": true, "license": "MIT", "dependencies": { @@ -279,7 +275,6 @@ "version": "1.6.1", "resolved": "https://registry.npmjs.org/@modelcontextprotocol/sdk/-/sdk-1.6.1.tgz", "integrity": "sha512-oxzMzYCkZHMntzuyerehK3fV6A2Kwh5BD6CGEJSVDU2QNEhfLOptf2X7esQgaHZXHZY0oHmMsOtIDLP71UJXgA==", - "dev": true, "license": "MIT", "dependencies": { "content-type": "^1.0.5", @@ -300,7 +295,6 @@ "version": "2.0.0", "resolved": "https://registry.npmjs.org/accepts/-/accepts-2.0.0.tgz", "integrity": "sha512-5cvg6CtKwfgdmVqY1WIiXKc3Q1bkRqGLi+2W/6ao+6Y7gu/RCwRuAhGEzh5B4KlszSuTLgZYuqFqo5bImjNKng==", - "dev": true, "license": "MIT", "dependencies": { "mime-types": "^3.0.0", @@ -314,7 +308,6 @@ "version": "2.1.0", "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-2.1.0.tgz", "integrity": "sha512-/hPxh61E+ll0Ujp24Ilm64cykicul1ypfwjVttduAiEdtnJFvLePSrIPk+HMImtNv5270wOGCb1Tns2rybMkoQ==", - "dev": true, "license": "MIT", "dependencies": { "bytes": "^3.1.2", @@ -335,7 +328,6 @@ "version": "6.14.0", "resolved": "https://registry.npmjs.org/qs/-/qs-6.14.0.tgz", "integrity": "sha512-YWWTjgABSKcvs/nWBi9PycY/JiPJqOD4JA6o9Sej2AtvSGarXxKC3OQSk4pAarbdQlKAh5D4FCQkJNkW+GAn3w==", - "dev": true, "license": "BSD-3-Clause", "dependencies": { "side-channel": "^1.1.0" @@ -351,7 +343,6 @@ "version": "1.0.0", "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-1.0.0.tgz", "integrity": "sha512-Au9nRL8VNUut/XSzbQA38+M78dzP4D+eqg3gfJHMIHHYa3bg067xj1KxMUWj+VULbiZMowKngFFbKczUrNJ1mg==", - "dev": true, "license": "MIT", "dependencies": { "safe-buffer": "5.2.1" @@ -364,7 +355,6 @@ "version": "1.2.2", "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.2.2.tgz", "integrity": "sha512-D76uU73ulSXrD1UXF4KE2TMxVVwhsnCgfAyTg9k8P6KGZjlXKrOLe4dJQKI3Bxi5wjesZoFXJWElNWBjPZMbhg==", - "dev": true, "license": "MIT", "engines": { "node": ">=6.6.0" @@ -374,7 +364,6 @@ "version": "5.0.1", "resolved": "https://registry.npmjs.org/express/-/express-5.0.1.tgz", "integrity": "sha512-ORF7g6qGnD+YtUG9yx4DFoqCShNMmUKiXuT5oWMHiOvt/4WFbHC6yCwQMTSBMno7AqntNCAzzcnnjowRkTL9eQ==", - "dev": true, "license": "MIT", "dependencies": { "accepts": "^2.0.0", @@ -418,7 +407,6 @@ "version": "4.3.6", "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.6.tgz", "integrity": "sha512-O/09Bd4Z1fBrU4VzkhFqVgpPzaGbw6Sm9FEkBT1A/YBXQFGuuSxa1dN2nxgxS34JmKXqYx8CZAwEVoJFImUXIg==", - "dev": true, "license": "MIT", "dependencies": { "ms": "2.1.2" @@ -436,14 +424,12 @@ "version": "2.1.2", "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", - "dev": true, "license": "MIT" }, "node_modules/@modelcontextprotocol/sdk/node_modules/finalhandler": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-2.0.0.tgz", "integrity": "sha512-MX6Zo2adDViYh+GcxxB1dpO43eypOGUOL12rLCOTMQv/DfIbpSJUy4oQIIZhVZkH9e+bZWKMon0XHFEju16tkQ==", - "dev": true, "license": "MIT", "dependencies": { "debug": "2.6.9", @@ -462,7 +448,6 @@ "version": "2.6.9", "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dev": true, "license": "MIT", "dependencies": { "ms": "2.0.0" @@ -472,7 +457,6 @@ "version": "1.0.2", "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz", "integrity": "sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w==", - "dev": true, "license": "MIT", "engines": { "node": ">= 0.8" @@ -482,14 +466,12 @@ "version": "2.0.0", "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", - "dev": true, "license": "MIT" }, "node_modules/@modelcontextprotocol/sdk/node_modules/fresh": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/fresh/-/fresh-2.0.0.tgz", "integrity": "sha512-Rx/WycZ60HOaqLKAi6cHRKKI7zxWbJ31MhntmtwMoaTeF7XFH9hhBp8vITaMidfljRQ6eYWCKkaTK+ykVJHP2A==", - "dev": true, "license": "MIT", "engines": { "node": ">= 0.8" @@ -499,7 +481,6 @@ "version": "0.5.2", "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.5.2.tgz", "integrity": "sha512-kERHXvpSaB4aU3eANwidg79K8FlrN77m8G9V+0vOR3HYaRifrlwMEpT7ZBJqLSEIHnEgJTHcWK82wwLwwKwtag==", - "dev": true, "license": "MIT", "dependencies": { "safer-buffer": ">= 2.1.2 < 3" @@ -512,7 +493,6 @@ "version": "1.1.0", "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-1.1.0.tgz", "integrity": "sha512-aisnrDP4GNe06UcKFnV5bfMNPBUw4jsLGaWwWfnH3v02GnBuXX2MCVn5RbrWo0j3pczUilYblq7fQ7Nw2t5XKw==", - "dev": true, "license": "MIT", "engines": { "node": ">= 0.8" @@ -522,7 +502,6 @@ "version": "2.0.0", "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-2.0.0.tgz", "integrity": "sha512-Snk314V5ayFLhp3fkUREub6WtjBfPdCPY1Ln8/8munuLuiYhsABgBVWsozAG+MWMbVEvcdcpbi9R7ww22l9Q3g==", - "dev": true, "license": "MIT", "engines": { "node": ">=18" @@ -535,7 +514,6 @@ "version": "1.53.0", "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.53.0.tgz", "integrity": "sha512-oHlN/w+3MQ3rba9rqFr6V/ypF10LSkdwUysQL7GkXoTgIWeV+tcXGA852TBxH+gsh8UWoyhR1hKcoMJTuWflpg==", - "dev": true, "license": "MIT", "engines": { "node": ">= 0.6" @@ -545,7 +523,6 @@ "version": "3.0.0", "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-3.0.0.tgz", "integrity": "sha512-XqoSHeCGjVClAmoGFG3lVFqQFRIrTVw2OH3axRqAcfaw+gHWIfnASS92AV+Rl/mk0MupgZTRHQOjxY6YVnzK5w==", - "dev": true, "license": "MIT", "dependencies": { "mime-db": "^1.53.0" @@ -558,7 +535,6 @@ "version": "1.0.0", "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-1.0.0.tgz", "integrity": "sha512-8Ofs/AUQh8MaEcrlq5xOX0CQ9ypTF5dl78mjlMNfOK08fzpgTHQRQPBxcPlEtIw0yRpws+Zo/3r+5WRby7u3Gg==", - "dev": true, "license": "MIT", "engines": { "node": ">= 0.6" @@ -568,7 +544,6 @@ "version": "1.1.0", "resolved": "https://registry.npmjs.org/send/-/send-1.1.0.tgz", "integrity": "sha512-v67WcEouB5GxbTWL/4NeToqcZiAWEq90N888fczVArY8A79J0L4FD7vj5hm3eUMua5EpoQ59wa/oovY6TLvRUA==", - "dev": true, "license": "MIT", "dependencies": { "debug": "^4.3.5", @@ -592,7 +567,6 @@ "version": "0.5.2", "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz", "integrity": "sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q==", - "dev": true, "license": "MIT", "engines": { "node": ">= 0.6" @@ -602,7 +576,6 @@ "version": "1.52.0", "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", - "dev": true, "license": "MIT", "engines": { "node": ">= 0.6" @@ -612,7 +585,6 @@ "version": "2.1.35", "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", - "dev": true, "license": "MIT", "dependencies": { "mime-db": "1.52.0" @@ -625,7 +597,6 @@ "version": "2.1.0", "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-2.1.0.tgz", "integrity": "sha512-A3We5UfEjG8Z7VkDv6uItWw6HY2bBSBJT1KtVESn6EOoOr2jAxNhxWCLY3jDE2WcuHXByWju74ck3ZgLwL8xmA==", - "dev": true, "license": "MIT", "dependencies": { "encodeurl": "^2.0.0", @@ -641,7 +612,6 @@ "version": "2.0.0", "resolved": "https://registry.npmjs.org/type-is/-/type-is-2.0.0.tgz", "integrity": "sha512-gd0sGezQYCbWSbkZr75mln4YBidWUN60+devscpLF5mtRDUpiaTvKpBNrdaCvel1NdR2k6vclXybU5fBd2i+nw==", - "dev": true, "license": "MIT", "dependencies": { "content-type": "^1.0.5", @@ -1031,21 +1001,21 @@ } }, "node_modules/@typescript-eslint/eslint-plugin": { - "version": "8.23.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.23.0.tgz", - "integrity": "sha512-vBz65tJgRrA1Q5gWlRfvoH+w943dq9K1p1yDBY2pc+a1nbBLZp7fB9+Hk8DaALUbzjqlMfgaqlVPT1REJdkt/w==", + "version": "8.46.4", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.46.4.tgz", + "integrity": "sha512-R48VhmTJqplNyDxCyqqVkFSZIx1qX6PzwqgcXn1olLrzxcSBDlOsbtcnQuQhNtnNiJ4Xe5gREI1foajYaYU2Vg==", "dev": true, "license": "MIT", "dependencies": { "@eslint-community/regexpp": "^4.10.0", - "@typescript-eslint/scope-manager": "8.23.0", - "@typescript-eslint/type-utils": "8.23.0", - "@typescript-eslint/utils": "8.23.0", - "@typescript-eslint/visitor-keys": "8.23.0", + "@typescript-eslint/scope-manager": "8.46.4", + "@typescript-eslint/type-utils": "8.46.4", + "@typescript-eslint/utils": "8.46.4", + "@typescript-eslint/visitor-keys": "8.46.4", "graphemer": "^1.4.0", - "ignore": "^5.3.1", + "ignore": "^7.0.0", "natural-compare": "^1.4.0", - "ts-api-utils": "^2.0.1" + "ts-api-utils": "^2.1.0" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -1055,22 +1025,32 @@ "url": "https://opencollective.com/typescript-eslint" }, "peerDependencies": { - "@typescript-eslint/parser": "^8.0.0 || ^8.0.0-alpha.0", + "@typescript-eslint/parser": "^8.46.4", "eslint": "^8.57.0 || ^9.0.0", - "typescript": ">=4.8.4 <5.8.0" + "typescript": ">=4.8.4 <6.0.0" + } + }, + "node_modules/@typescript-eslint/eslint-plugin/node_modules/ignore": { + "version": "7.0.5", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-7.0.5.tgz", + "integrity": "sha512-Hs59xBNfUIunMFgWAbGX5cq6893IbWg4KnrjbYwX3tx0ztorVgTDA6B2sxf8ejHJ4wz8BqGUMYlnzNBer5NvGg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 4" } }, "node_modules/@typescript-eslint/parser": { - "version": "8.23.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.23.0.tgz", - "integrity": "sha512-h2lUByouOXFAlMec2mILeELUbME5SZRN/7R9Cw2RD2lRQQY08MWMM+PmVVKKJNK1aIwqTo9t/0CvOxwPbRIE2Q==", + "version": "8.46.4", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.46.4.tgz", + "integrity": "sha512-tK3GPFWbirvNgsNKto+UmB/cRtn6TZfyw0D6IKrW55n6Vbs7KJoZtI//kpTKzE/DUmmnAFD8/Ca46s7Obs92/w==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/scope-manager": "8.23.0", - "@typescript-eslint/types": "8.23.0", - "@typescript-eslint/typescript-estree": "8.23.0", - "@typescript-eslint/visitor-keys": "8.23.0", + "@typescript-eslint/scope-manager": "8.46.4", + "@typescript-eslint/types": "8.46.4", + "@typescript-eslint/typescript-estree": "8.46.4", + "@typescript-eslint/visitor-keys": "8.46.4", "debug": "^4.3.4" }, "engines": { @@ -1082,18 +1062,40 @@ }, "peerDependencies": { "eslint": "^8.57.0 || ^9.0.0", - "typescript": ">=4.8.4 <5.8.0" + "typescript": ">=4.8.4 <6.0.0" + } + }, + "node_modules/@typescript-eslint/project-service": { + "version": "8.46.4", + "resolved": "https://registry.npmjs.org/@typescript-eslint/project-service/-/project-service-8.46.4.tgz", + "integrity": "sha512-nPiRSKuvtTN+no/2N1kt2tUh/HoFzeEgOm9fQ6XQk4/ApGqjx0zFIIaLJ6wooR1HIoozvj2j6vTi/1fgAz7UYQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/tsconfig-utils": "^8.46.4", + "@typescript-eslint/types": "^8.46.4", + "debug": "^4.3.4" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "typescript": ">=4.8.4 <6.0.0" } }, "node_modules/@typescript-eslint/scope-manager": { - "version": "8.23.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.23.0.tgz", - "integrity": "sha512-OGqo7+dXHqI7Hfm+WqkZjKjsiRtFUQHPdGMXzk5mYXhJUedO7e/Y7i8AK3MyLMgZR93TX4bIzYrfyVjLC+0VSw==", + "version": "8.46.4", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.46.4.tgz", + "integrity": "sha512-tMDbLGXb1wC+McN1M6QeDx7P7c0UWO5z9CXqp7J8E+xGcJuUuevWKxuG8j41FoweS3+L41SkyKKkia16jpX7CA==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/types": "8.23.0", - "@typescript-eslint/visitor-keys": "8.23.0" + "@typescript-eslint/types": "8.46.4", + "@typescript-eslint/visitor-keys": "8.46.4" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -1103,17 +1105,35 @@ "url": "https://opencollective.com/typescript-eslint" } }, + "node_modules/@typescript-eslint/tsconfig-utils": { + "version": "8.46.4", + "resolved": "https://registry.npmjs.org/@typescript-eslint/tsconfig-utils/-/tsconfig-utils-8.46.4.tgz", + "integrity": "sha512-+/XqaZPIAk6Cjg7NWgSGe27X4zMGqrFqZ8atJsX3CWxH/jACqWnrWI68h7nHQld0y+k9eTTjb9r+KU4twLoo9A==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "typescript": ">=4.8.4 <6.0.0" + } + }, "node_modules/@typescript-eslint/type-utils": { - "version": "8.23.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.23.0.tgz", - "integrity": "sha512-iIuLdYpQWZKbiH+RkCGc6iu+VwscP5rCtQ1lyQ7TYuKLrcZoeJVpcLiG8DliXVkUxirW/PWlmS+d6yD51L9jvA==", + "version": "8.46.4", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.46.4.tgz", + "integrity": "sha512-V4QC8h3fdT5Wro6vANk6eojqfbv5bpwHuMsBcJUJkqs2z5XnYhJzyz9Y02eUmF9u3PgXEUiOt4w4KHR3P+z0PQ==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/typescript-estree": "8.23.0", - "@typescript-eslint/utils": "8.23.0", + "@typescript-eslint/types": "8.46.4", + "@typescript-eslint/typescript-estree": "8.46.4", + "@typescript-eslint/utils": "8.46.4", "debug": "^4.3.4", - "ts-api-utils": "^2.0.1" + "ts-api-utils": "^2.1.0" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -1124,13 +1144,13 @@ }, "peerDependencies": { "eslint": "^8.57.0 || ^9.0.0", - "typescript": ">=4.8.4 <5.8.0" + "typescript": ">=4.8.4 <6.0.0" } }, "node_modules/@typescript-eslint/types": { - "version": "8.23.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.23.0.tgz", - "integrity": "sha512-1sK4ILJbCmZOTt9k4vkoulT6/y5CHJ1qUYxqpF1K/DBAd8+ZUL4LlSCxOssuH5m4rUaaN0uS0HlVPvd45zjduQ==", + "version": "8.46.4", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.46.4.tgz", + "integrity": "sha512-USjyxm3gQEePdUwJBFjjGNG18xY9A2grDVGuk7/9AkjIF1L+ZrVnwR5VAU5JXtUnBL/Nwt3H31KlRDaksnM7/w==", "dev": true, "license": "MIT", "engines": { @@ -1142,20 +1162,22 @@ } }, "node_modules/@typescript-eslint/typescript-estree": { - "version": "8.23.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.23.0.tgz", - "integrity": "sha512-LcqzfipsB8RTvH8FX24W4UUFk1bl+0yTOf9ZA08XngFwMg4Kj8A+9hwz8Cr/ZS4KwHrmo9PJiLZkOt49vPnuvQ==", + "version": "8.46.4", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.46.4.tgz", + "integrity": "sha512-7oV2qEOr1d4NWNmpXLR35LvCfOkTNymY9oyW+lUHkmCno7aOmIf/hMaydnJBUTBMRCOGZh8YjkFOc8dadEoNGA==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/types": "8.23.0", - "@typescript-eslint/visitor-keys": "8.23.0", + "@typescript-eslint/project-service": "8.46.4", + "@typescript-eslint/tsconfig-utils": "8.46.4", + "@typescript-eslint/types": "8.46.4", + "@typescript-eslint/visitor-keys": "8.46.4", "debug": "^4.3.4", "fast-glob": "^3.3.2", "is-glob": "^4.0.3", "minimatch": "^9.0.4", "semver": "^7.6.0", - "ts-api-utils": "^2.0.1" + "ts-api-utils": "^2.1.0" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -1165,13 +1187,13 @@ "url": "https://opencollective.com/typescript-eslint" }, "peerDependencies": { - "typescript": ">=4.8.4 <5.8.0" + "typescript": ">=4.8.4 <6.0.0" } }, "node_modules/@typescript-eslint/typescript-estree/node_modules/brace-expansion": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", - "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.2.tgz", + "integrity": "sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==", "dev": true, "license": "MIT", "dependencies": { @@ -1195,16 +1217,16 @@ } }, "node_modules/@typescript-eslint/utils": { - "version": "8.23.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.23.0.tgz", - "integrity": "sha512-uB/+PSo6Exu02b5ZEiVtmY6RVYO7YU5xqgzTIVZwTHvvK3HsL8tZZHFaTLFtRG3CsV4A5mhOv+NZx5BlhXPyIA==", + "version": "8.46.4", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.46.4.tgz", + "integrity": "sha512-AbSv11fklGXV6T28dp2Me04Uw90R2iJ30g2bgLz529Koehrmkbs1r7paFqr1vPCZi7hHwYxYtxfyQMRC8QaVSg==", "dev": true, "license": "MIT", "dependencies": { - "@eslint-community/eslint-utils": "^4.4.0", - "@typescript-eslint/scope-manager": "8.23.0", - "@typescript-eslint/types": "8.23.0", - "@typescript-eslint/typescript-estree": "8.23.0" + "@eslint-community/eslint-utils": "^4.7.0", + "@typescript-eslint/scope-manager": "8.46.4", + "@typescript-eslint/types": "8.46.4", + "@typescript-eslint/typescript-estree": "8.46.4" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -1215,18 +1237,18 @@ }, "peerDependencies": { "eslint": "^8.57.0 || ^9.0.0", - "typescript": ">=4.8.4 <5.8.0" + "typescript": ">=4.8.4 <6.0.0" } }, "node_modules/@typescript-eslint/visitor-keys": { - "version": "8.23.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.23.0.tgz", - "integrity": "sha512-oWWhcWDLwDfu++BGTZcmXWqpwtkwb5o7fxUIGksMQQDSdPW9prsSnfIOZMlsj4vBOSrcnjIUZMiIjODgGosFhQ==", + "version": "8.46.4", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.46.4.tgz", + "integrity": "sha512-/++5CYLQqsO9HFGLI7APrxBJYo+5OCMpViuhV8q5/Qa3o5mMrF//eQHks+PXcsAVaLdn817fMuS7zqoXNNZGaw==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/types": "8.23.0", - "eslint-visitor-keys": "^4.2.0" + "@typescript-eslint/types": "8.46.4", + "eslint-visitor-keys": "^4.2.1" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -1240,7 +1262,6 @@ "version": "1.3.8", "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz", "integrity": "sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw==", - "dev": true, "license": "MIT", "dependencies": { "mime-types": "~2.1.34", @@ -1344,7 +1365,6 @@ "version": "1.1.1", "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz", "integrity": "sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg==", - "dev": true, "license": "MIT" }, "node_modules/balanced-match": { @@ -1371,7 +1391,6 @@ "version": "1.20.3", "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.20.3.tgz", "integrity": "sha512-7rAxByjUMqQ3/bHJy7D6OGXvx/MMc4IqBn/X0fcM1QUcAItpZrBEYhWGem+tzXH90c+G01ypMcYJBO9Y30203g==", - "dev": true, "license": "MIT", "dependencies": { "bytes": "3.1.2", @@ -1396,7 +1415,6 @@ "version": "2.6.9", "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dev": true, "license": "MIT", "dependencies": { "ms": "2.0.0" @@ -1406,14 +1424,12 @@ "version": "2.0.0", "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", - "dev": true, "license": "MIT" }, "node_modules/body-parser/node_modules/raw-body": { "version": "2.5.2", "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.5.2.tgz", "integrity": "sha512-8zGqypfENjCIqGhgXToC8aB2r7YrBX+AQAfIPs/Mlk+BtPTztOvTS01NRW/3Eh60J+a48lt8qsCzirQ6loCVfA==", - "dev": true, "license": "MIT", "dependencies": { "bytes": "3.1.2", @@ -1498,7 +1514,6 @@ "version": "3.1.2", "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz", "integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==", - "dev": true, "license": "MIT", "engines": { "node": ">= 0.8" @@ -1508,7 +1523,6 @@ "version": "1.0.2", "resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz", "integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==", - "dev": true, "license": "MIT", "dependencies": { "es-errors": "^1.3.0", @@ -1522,7 +1536,6 @@ "version": "1.0.4", "resolved": "https://registry.npmjs.org/call-bound/-/call-bound-1.0.4.tgz", "integrity": "sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg==", - "dev": true, "license": "MIT", "dependencies": { "call-bind-apply-helpers": "^1.0.2", @@ -1631,7 +1644,6 @@ "version": "0.5.4", "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.4.tgz", "integrity": "sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ==", - "dev": true, "license": "MIT", "dependencies": { "safe-buffer": "5.2.1" @@ -1644,7 +1656,6 @@ "version": "1.0.5", "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.5.tgz", "integrity": "sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==", - "dev": true, "license": "MIT", "engines": { "node": ">= 0.6" @@ -1654,7 +1665,6 @@ "version": "0.7.1", "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.7.1.tgz", "integrity": "sha512-6DnInpx7SJ2AK3+CTUE/ZM0vWTUboZCegxhC2xiIydHR9jNuTAASBrfEpHhiGOZw/nX51bHt6YQl8jsGo4y/0w==", - "dev": true, "license": "MIT", "engines": { "node": ">= 0.6" @@ -1664,14 +1674,12 @@ "version": "1.0.6", "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz", "integrity": "sha512-QADzlaHc8icV8I7vbaJXJwod9HWYp8uCqf1xa4OfNu1T7JVxQIrUgOWtHdNDtPiywmFbiS12VjotIXLrKM3orQ==", - "dev": true, "license": "MIT" }, "node_modules/cors": { "version": "2.8.5", "resolved": "https://registry.npmjs.org/cors/-/cors-2.8.5.tgz", "integrity": "sha512-KIHbLJqu73RGr/hnbrO9uBeixNGuvSQjul/jdFvS/KFSIH1hWVd1ng7zOHx+YrEfInLG7q4n6GHQ9cDtxv/P6g==", - "dev": true, "license": "MIT", "dependencies": { "object-assign": "^4", @@ -1707,7 +1715,6 @@ "version": "4.4.0", "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.0.tgz", "integrity": "sha512-6WTZ/IxCY/T6BALoZHaE4ctp9xm+Z5kY/pzYaCHRFeyVhojxlrm+46y68HA6hr0TcwEssoxNiDEUJQjfPZ/RYA==", - "dev": true, "license": "MIT", "dependencies": { "ms": "^2.1.3" @@ -1732,7 +1739,6 @@ "version": "2.0.0", "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz", "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==", - "dev": true, "license": "MIT", "engines": { "node": ">= 0.8" @@ -1742,7 +1748,6 @@ "version": "1.2.0", "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.2.0.tgz", "integrity": "sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg==", - "dev": true, "license": "MIT", "engines": { "node": ">= 0.8", @@ -1753,7 +1758,6 @@ "version": "1.0.1", "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz", "integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==", - "dev": true, "license": "MIT", "dependencies": { "call-bind-apply-helpers": "^1.0.1", @@ -1775,7 +1779,6 @@ "version": "1.1.1", "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz", "integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==", - "dev": true, "license": "MIT" }, "node_modules/emoji-regex": { @@ -1789,7 +1792,6 @@ "version": "2.0.0", "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-2.0.0.tgz", "integrity": "sha512-Q0n9HRi4m6JuGIV1eFlmvJB7ZEVxu93IrMyiMsGC0lrMJMWzRgx6WGquyfQgZVb31vhGgXnfmPNNXmxnOkRBrg==", - "dev": true, "license": "MIT", "engines": { "node": ">= 0.8" @@ -1799,7 +1801,6 @@ "version": "1.0.1", "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz", "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==", - "dev": true, "license": "MIT", "engines": { "node": ">= 0.4" @@ -1809,7 +1810,6 @@ "version": "1.3.0", "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz", "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==", - "dev": true, "license": "MIT", "engines": { "node": ">= 0.4" @@ -1819,7 +1819,6 @@ "version": "1.1.1", "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.1.tgz", "integrity": "sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==", - "dev": true, "license": "MIT", "dependencies": { "es-errors": "^1.3.0" @@ -1832,7 +1831,6 @@ "version": "1.0.3", "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz", "integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==", - "dev": true, "license": "MIT" }, "node_modules/escape-string-regexp": { @@ -1926,9 +1924,9 @@ } }, "node_modules/eslint-visitor-keys": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-4.2.0.tgz", - "integrity": "sha512-UyLnSehNt62FFhSwjZlHmeokpRK59rcz29j+F1/aDgbkbRTk7wIc9XzdoasMUbRNKDM0qQt/+BJ4BrpFeABemw==", + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-4.2.1.tgz", + "integrity": "sha512-Uhdk5sfqcee/9H/rCOJikYz67o0a2Tw2hGRPOG2Y1R2dg7brRe1uG0yaNQDHu+TO/uQPF/5eCapvYSmHUjt7JQ==", "dev": true, "license": "Apache-2.0", "engines": { @@ -2006,7 +2004,6 @@ "version": "1.8.1", "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz", "integrity": "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==", - "dev": true, "license": "MIT", "engines": { "node": ">= 0.6" @@ -2016,7 +2013,6 @@ "version": "3.0.5", "resolved": "https://registry.npmjs.org/eventsource/-/eventsource-3.0.5.tgz", "integrity": "sha512-LT/5J605bx5SNyE+ITBDiM3FxffBiq9un7Vx0EwMDM3vg8sWKx/tO2zC+LMqZ+smAM0F2hblaDZUVZF0te2pSw==", - "dev": true, "license": "MIT", "dependencies": { "eventsource-parser": "^3.0.0" @@ -2029,7 +2025,6 @@ "version": "3.0.0", "resolved": "https://registry.npmjs.org/eventsource-parser/-/eventsource-parser-3.0.0.tgz", "integrity": "sha512-T1C0XCUimhxVQzW4zFipdx0SficT651NnkR0ZSH3yQwh+mFMdLfgjABVi4YtMTtaL4s168593DaoaRLMqryavA==", - "dev": true, "license": "MIT", "engines": { "node": ">=18.0.0" @@ -2039,7 +2034,6 @@ "version": "4.21.2", "resolved": "https://registry.npmjs.org/express/-/express-4.21.2.tgz", "integrity": "sha512-28HqgMZAmih1Czt9ny7qr6ek2qddF4FclbMzwhCREB6OFfH+rXAnuNCwo1/wFvrtbgsQDb4kSbX9de9lFbrXnA==", - "dev": true, "license": "MIT", "dependencies": { "accepts": "~1.3.8", @@ -2086,7 +2080,6 @@ "version": "7.5.0", "resolved": "https://registry.npmjs.org/express-rate-limit/-/express-rate-limit-7.5.0.tgz", "integrity": "sha512-eB5zbQh5h+VenMPM3fh+nw1YExi5nMr6HUCR62ELSP11huvxm/Uir1H1QEyTkk5QX6A58pX6NmaTMceKZ0Eodg==", - "dev": true, "license": "MIT", "engines": { "node": ">= 16" @@ -2102,7 +2095,6 @@ "version": "2.6.9", "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dev": true, "license": "MIT", "dependencies": { "ms": "2.0.0" @@ -2112,7 +2104,6 @@ "version": "2.0.0", "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", - "dev": true, "license": "MIT" }, "node_modules/fast-deep-equal": { @@ -2167,9 +2158,9 @@ "license": "MIT" }, "node_modules/fastq": { - "version": "1.19.0", - "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.19.0.tgz", - "integrity": "sha512-7SFSRCNjBQIZH/xZR3iy5iQYR8aGBE0h3VG6/cwlbrpdciNYBMotQav8c1XI3HjHH+NikUpP53nPdlZSdWmFzA==", + "version": "1.19.1", + "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.19.1.tgz", + "integrity": "sha512-GwLTyxkCXjXbxqIhTsMI2Nui8huMPtnxg7krajPJAjnEG/iiOS7i+zCtWGZR9G0NBKbXKh6X9m9UIsYX/N6vvQ==", "dev": true, "license": "ISC", "dependencies": { @@ -2206,7 +2197,6 @@ "version": "1.3.1", "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.3.1.tgz", "integrity": "sha512-6BN9trH7bp3qvnrRyzsBz+g3lZxTNZTbVO2EV1CS0WIcDbawYVdYvGflME/9QP0h0pYlCDBCTjYa9nZzMDpyxQ==", - "dev": true, "license": "MIT", "dependencies": { "debug": "2.6.9", @@ -2225,7 +2215,6 @@ "version": "2.6.9", "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dev": true, "license": "MIT", "dependencies": { "ms": "2.0.0" @@ -2235,7 +2224,6 @@ "version": "2.0.0", "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", - "dev": true, "license": "MIT" }, "node_modules/find-up": { @@ -2297,7 +2285,6 @@ "version": "0.2.0", "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz", "integrity": "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==", - "dev": true, "license": "MIT", "engines": { "node": ">= 0.6" @@ -2307,7 +2294,6 @@ "version": "0.5.2", "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz", "integrity": "sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q==", - "dev": true, "license": "MIT", "engines": { "node": ">= 0.6" @@ -2332,7 +2318,6 @@ "version": "1.1.2", "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", - "dev": true, "license": "MIT", "funding": { "url": "https://github.com/sponsors/ljharb" @@ -2342,7 +2327,6 @@ "version": "1.3.0", "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz", "integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==", - "dev": true, "license": "MIT", "dependencies": { "call-bind-apply-helpers": "^1.0.2", @@ -2367,7 +2351,6 @@ "version": "1.0.1", "resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz", "integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==", - "dev": true, "license": "MIT", "dependencies": { "dunder-proto": "^1.0.1", @@ -2454,7 +2437,6 @@ "version": "1.2.0", "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz", "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==", - "dev": true, "license": "MIT", "engines": { "node": ">= 0.4" @@ -2484,7 +2466,6 @@ "version": "1.1.0", "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz", "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==", - "dev": true, "license": "MIT", "engines": { "node": ">= 0.4" @@ -2497,7 +2478,6 @@ "version": "2.0.2", "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz", "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==", - "dev": true, "license": "MIT", "dependencies": { "function-bind": "^1.1.2" @@ -2510,7 +2490,6 @@ "version": "2.0.0", "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.0.tgz", "integrity": "sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ==", - "dev": true, "license": "MIT", "dependencies": { "depd": "2.0.0", @@ -2527,7 +2506,6 @@ "version": "0.4.24", "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", - "dev": true, "license": "MIT", "dependencies": { "safer-buffer": ">= 2.1.2 < 3" @@ -2577,14 +2555,12 @@ "version": "2.0.4", "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", - "dev": true, "license": "ISC" }, "node_modules/ipaddr.js": { "version": "1.9.1", "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz", "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==", - "dev": true, "license": "MIT", "engines": { "node": ">= 0.10" @@ -2650,7 +2626,6 @@ "version": "4.0.0", "resolved": "https://registry.npmjs.org/is-promise/-/is-promise-4.0.0.tgz", "integrity": "sha512-hvpoI6korhJMnej285dSg6nu1+e6uxs7zG3BYAm5byqDsgJNWwxzM6z6iZiAgQR4TJ30JmBTOwqZUw3WlyH3AQ==", - "dev": true, "license": "MIT" }, "node_modules/isexe": { @@ -2768,7 +2743,6 @@ "version": "1.1.0", "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz", "integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==", - "dev": true, "license": "MIT", "engines": { "node": ">= 0.4" @@ -2778,7 +2752,6 @@ "version": "0.3.0", "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz", "integrity": "sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ==", - "dev": true, "license": "MIT", "engines": { "node": ">= 0.6" @@ -2788,7 +2761,6 @@ "version": "1.0.3", "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.3.tgz", "integrity": "sha512-gaNvAS7TZ897/rVaZ0nMtAyxNyi/pdbjbAwUpFQpN70GqnVfOiXpeUUMKRBmzXaSQ8DdTX4/0ms62r2K+hE6mQ==", - "dev": true, "license": "MIT", "funding": { "url": "https://github.com/sponsors/sindresorhus" @@ -2808,7 +2780,6 @@ "version": "1.1.2", "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz", "integrity": "sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w==", - "dev": true, "license": "MIT", "engines": { "node": ">= 0.6" @@ -2832,7 +2803,6 @@ "version": "1.6.0", "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz", "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==", - "dev": true, "license": "MIT", "bin": { "mime": "cli.js" @@ -2845,7 +2815,6 @@ "version": "1.52.0", "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", - "dev": true, "license": "MIT", "engines": { "node": ">= 0.6" @@ -2855,7 +2824,6 @@ "version": "2.1.35", "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", - "dev": true, "license": "MIT", "dependencies": { "mime-db": "1.52.0" @@ -2907,7 +2875,6 @@ "version": "2.1.3", "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", - "dev": true, "license": "MIT" }, "node_modules/natural-compare": { @@ -2921,7 +2888,6 @@ "version": "0.6.3", "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.3.tgz", "integrity": "sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==", - "dev": true, "license": "MIT", "engines": { "node": ">= 0.6" @@ -2941,7 +2907,6 @@ "version": "4.1.1", "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==", - "dev": true, "license": "MIT", "engines": { "node": ">=0.10.0" @@ -2951,7 +2916,6 @@ "version": "1.13.4", "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.4.tgz", "integrity": "sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew==", - "dev": true, "license": "MIT", "engines": { "node": ">= 0.4" @@ -2964,7 +2928,6 @@ "version": "2.4.1", "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.4.1.tgz", "integrity": "sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==", - "dev": true, "license": "MIT", "dependencies": { "ee-first": "1.1.1" @@ -2977,7 +2940,6 @@ "version": "1.4.0", "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", - "dev": true, "license": "ISC", "dependencies": { "wrappy": "1" @@ -3057,7 +3019,6 @@ "version": "1.3.3", "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz", "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==", - "dev": true, "license": "MIT", "engines": { "node": ">= 0.8" @@ -3104,7 +3065,6 @@ "version": "0.1.12", "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.12.tgz", "integrity": "sha512-RA1GjUVMnvYFxuqovrEqZoxxW5NUZqbwKtYz/Tt7nXerk0LbLblQmrsgdeOxV5SFHf0UDggjS/bSeOZwt1pmEQ==", - "dev": true, "license": "MIT" }, "node_modules/picomatch": { @@ -3124,7 +3084,6 @@ "version": "4.1.0", "resolved": "https://registry.npmjs.org/pkce-challenge/-/pkce-challenge-4.1.0.tgz", "integrity": "sha512-ZBmhE1C9LcPoH9XZSdwiPtbPHZROwAnMy+kIFQVrnMCxY4Cudlz3gBOpzilgc0jOgRaiT3sIWfpMomW2ar2orQ==", - "dev": true, "license": "MIT", "engines": { "node": ">=16.20.0" @@ -3157,7 +3116,6 @@ "version": "2.0.7", "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz", "integrity": "sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==", - "dev": true, "license": "MIT", "dependencies": { "forwarded": "0.2.0", @@ -3181,7 +3139,6 @@ "version": "6.13.0", "resolved": "https://registry.npmjs.org/qs/-/qs-6.13.0.tgz", "integrity": "sha512-+38qI9SOr8tfZ4QmJNplMUxqjbe7LKvvZgWdExBOmd+egZTtjLB67Gu0HRX3u/XOq7UU2Nx6nsjvS16Z9uwfpg==", - "dev": true, "license": "BSD-3-Clause", "dependencies": { "side-channel": "^1.0.6" @@ -3218,7 +3175,6 @@ "version": "1.2.1", "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz", "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==", - "dev": true, "license": "MIT", "engines": { "node": ">= 0.6" @@ -3228,7 +3184,6 @@ "version": "3.0.0", "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-3.0.0.tgz", "integrity": "sha512-RmkhL8CAyCRPXCE28MMH0z2PNWQBNk2Q09ZdxM9IOOXwxwZbN+qbWaatPkdkWIKL2ZVDImrN/pK5HTRz2PcS4g==", - "dev": true, "license": "MIT", "dependencies": { "bytes": "3.1.2", @@ -3244,7 +3199,6 @@ "version": "0.6.3", "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz", "integrity": "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==", - "dev": true, "license": "MIT", "dependencies": { "safer-buffer": ">= 2.1.2 < 3.0.0" @@ -3305,9 +3259,9 @@ } }, "node_modules/reusify": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz", - "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.1.0.tgz", + "integrity": "sha512-g6QUff04oZpHs0eG5p83rFLhHeV00ug/Yf9nZM6fLeUrPguBTkTQOdpAWWspMh55TZfVQDPaN3NQJfbVRAxdIw==", "dev": true, "license": "MIT", "engines": { @@ -3335,7 +3289,6 @@ "version": "2.1.0", "resolved": "https://registry.npmjs.org/router/-/router-2.1.0.tgz", "integrity": "sha512-/m/NSLxeYEgWNtyC+WtNHCF7jbGxOibVWKnn+1Psff4dJGOfoXP+MuC/f2CwSmyiHdOIzYnYFp4W6GxWfekaLA==", - "dev": true, "license": "MIT", "dependencies": { "is-promise": "^4.0.0", @@ -3350,7 +3303,6 @@ "version": "8.2.0", "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-8.2.0.tgz", "integrity": "sha512-TdrF7fW9Rphjq4RjrW0Kp2AW0Ahwu9sRGTkS6bvDi0SCwZlEZYmcfDbEsTz8RVk0EHIS/Vd1bv3JhG+1xZuAyQ==", - "dev": true, "license": "MIT", "engines": { "node": ">=16" @@ -3384,7 +3336,6 @@ "version": "5.2.1", "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", - "dev": true, "funding": [ { "type": "github", @@ -3405,13 +3356,12 @@ "version": "2.1.2", "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", - "dev": true, "license": "MIT" }, "node_modules/semver": { - "version": "7.7.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.1.tgz", - "integrity": "sha512-hlq8tAfn0m/61p4BVRcPzIGr6LKiMwo4VM6dGi6pt4qcRkmNzTcWq6eCEjEh+qXjkMDvPlOFFSGwQjoEa6gyMA==", + "version": "7.7.3", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.3.tgz", + "integrity": "sha512-SdsKMrI9TdgjdweUSR9MweHA4EJ8YxHn8DFaDisvhVlUOe4BF1tLD7GAj0lIqWVl+dPb/rExr0Btby5loQm20Q==", "dev": true, "license": "ISC", "bin": { @@ -3425,7 +3375,6 @@ "version": "0.19.0", "resolved": "https://registry.npmjs.org/send/-/send-0.19.0.tgz", "integrity": "sha512-dW41u5VfLXu8SJh5bwRmyYUbAoSB3c9uQh6L8h/KtsFREPWpbX1lrljJo186Jc4nmci/sGUZ9a0a0J2zgfq2hw==", - "dev": true, "license": "MIT", "dependencies": { "debug": "2.6.9", @@ -3450,7 +3399,6 @@ "version": "2.6.9", "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dev": true, "license": "MIT", "dependencies": { "ms": "2.0.0" @@ -3460,14 +3408,12 @@ "version": "2.0.0", "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", - "dev": true, "license": "MIT" }, "node_modules/send/node_modules/encodeurl": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz", "integrity": "sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w==", - "dev": true, "license": "MIT", "engines": { "node": ">= 0.8" @@ -3477,7 +3423,6 @@ "version": "1.16.2", "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.16.2.tgz", "integrity": "sha512-VqpjJZKadQB/PEbEwvFdO43Ax5dFBZ2UECszz8bQ7pi7wt//PWe1P6MN7eCnjsatYtBT6EuiClbjSWP2WrIoTw==", - "dev": true, "license": "MIT", "dependencies": { "encodeurl": "~2.0.0", @@ -3493,7 +3438,6 @@ "version": "1.2.0", "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz", "integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==", - "dev": true, "license": "ISC" }, "node_modules/shebang-command": { @@ -3523,7 +3467,6 @@ "version": "1.1.0", "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.1.0.tgz", "integrity": "sha512-ZX99e6tRweoUXqR+VBrslhda51Nh5MTQwou5tnUDgbtyM0dBgmhEDtWGP/xbKn6hqfPRHujUNwz5fy/wbbhnpw==", - "dev": true, "license": "MIT", "dependencies": { "es-errors": "^1.3.0", @@ -3543,7 +3486,6 @@ "version": "1.0.0", "resolved": "https://registry.npmjs.org/side-channel-list/-/side-channel-list-1.0.0.tgz", "integrity": "sha512-FCLHtRD/gnpCiCHEiJLOwdmFP+wzCmDEkc9y7NsYxeF4u7Btsn1ZuwgwJGxImImHicJArLP4R0yX4c2KCrMrTA==", - "dev": true, "license": "MIT", "dependencies": { "es-errors": "^1.3.0", @@ -3560,7 +3502,6 @@ "version": "1.0.1", "resolved": "https://registry.npmjs.org/side-channel-map/-/side-channel-map-1.0.1.tgz", "integrity": "sha512-VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA==", - "dev": true, "license": "MIT", "dependencies": { "call-bound": "^1.0.2", @@ -3579,7 +3520,6 @@ "version": "1.0.2", "resolved": "https://registry.npmjs.org/side-channel-weakmap/-/side-channel-weakmap-1.0.2.tgz", "integrity": "sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A==", - "dev": true, "license": "MIT", "dependencies": { "call-bound": "^1.0.2", @@ -3612,7 +3552,6 @@ "version": "2.0.1", "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.1.tgz", "integrity": "sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==", - "dev": true, "license": "MIT", "engines": { "node": ">= 0.8" @@ -3787,16 +3726,15 @@ "version": "1.0.1", "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz", "integrity": "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==", - "dev": true, "license": "MIT", "engines": { "node": ">=0.6" } }, "node_modules/ts-api-utils": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/ts-api-utils/-/ts-api-utils-2.0.1.tgz", - "integrity": "sha512-dnlgjFSVetynI8nzgJ+qF62efpglpWRk8isUEWZGWlJYySCTD6aKvbUDu+zbPeDakk3bg5H4XpitHukgfL1m9w==", + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/ts-api-utils/-/ts-api-utils-2.1.0.tgz", + "integrity": "sha512-CUgTZL1irw8u29bzrOD/nH85jqyc74D6SshFgujOIA7osm2Rz7dYH77agkx7H4FBNxDq7Cjf+IjaX/8zwFW+ZQ==", "dev": true, "license": "MIT", "engines": { @@ -3888,7 +3826,6 @@ "version": "1.6.18", "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz", "integrity": "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==", - "dev": true, "license": "MIT", "dependencies": { "media-typer": "0.3.0", @@ -3899,9 +3836,9 @@ } }, "node_modules/typescript": { - "version": "5.7.3", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.7.3.tgz", - "integrity": "sha512-84MVSjMEHP+FQRPy3pX9sTVV/INIex71s9TL2Gm5FG/WG1SqXeKyZ0k7/blY/4FdOzI12CBy1vGc4og/eus0fw==", + "version": "5.8.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.8.3.tgz", + "integrity": "sha512-p1diW6TqL9L07nNxvRMM7hMMw4c5XOo/1ibL4aAIGmSAt9slTE1Xgw5KWuof2uTOvCg9BY7ZRi+GaF+7sfgPeQ==", "dev": true, "license": "Apache-2.0", "bin": { @@ -3913,15 +3850,16 @@ } }, "node_modules/typescript-eslint": { - "version": "8.23.0", - "resolved": "https://registry.npmjs.org/typescript-eslint/-/typescript-eslint-8.23.0.tgz", - "integrity": "sha512-/LBRo3HrXr5LxmrdYSOCvoAMm7p2jNizNfbIpCgvG4HMsnoprRUOce/+8VJ9BDYWW68rqIENE/haVLWPeFZBVQ==", + "version": "8.46.4", + "resolved": "https://registry.npmjs.org/typescript-eslint/-/typescript-eslint-8.46.4.tgz", + "integrity": "sha512-KALyxkpYV5Ix7UhvjTwJXZv76VWsHG+NjNlt/z+a17SOQSiOcBdUXdbJdyXi7RPxrBFECtFOiPwUJQusJuCqrg==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/eslint-plugin": "8.23.0", - "@typescript-eslint/parser": "8.23.0", - "@typescript-eslint/utils": "8.23.0" + "@typescript-eslint/eslint-plugin": "8.46.4", + "@typescript-eslint/parser": "8.46.4", + "@typescript-eslint/typescript-estree": "8.46.4", + "@typescript-eslint/utils": "8.46.4" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -3932,7 +3870,7 @@ }, "peerDependencies": { "eslint": "^8.57.0 || ^9.0.0", - "typescript": ">=4.8.4 <5.8.0" + "typescript": ">=4.8.4 <6.0.0" } }, "node_modules/undici-types": { @@ -3946,7 +3884,6 @@ "version": "1.0.0", "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz", "integrity": "sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==", - "dev": true, "license": "MIT", "engines": { "node": ">= 0.8" @@ -3966,7 +3903,6 @@ "version": "1.0.1", "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz", "integrity": "sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA==", - "dev": true, "license": "MIT", "engines": { "node": ">= 0.4.0" @@ -3976,7 +3912,6 @@ "version": "1.1.2", "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz", "integrity": "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==", - "dev": true, "license": "MIT", "engines": { "node": ">= 0.8" @@ -4114,7 +4049,6 @@ "version": "1.0.2", "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", - "dev": true, "license": "ISC" }, "node_modules/yocto-queue": { @@ -4143,7 +4077,6 @@ "version": "3.24.3", "resolved": "https://registry.npmjs.org/zod-to-json-schema/-/zod-to-json-schema-3.24.3.tgz", "integrity": "sha512-HIAfWdYIt1sssHfYZFCXp4rU1w2r8hVVXYIlmoa0r0gABLs5di3RCqPU5DDROogVz1pAdYBaz7HK5n9pSUNs3A==", - "dev": true, "license": "ISC", "peerDependencies": { "zod": "^3.24.1" diff --git a/package.json b/package.json index 5cfc19f1..1ac4bf88 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@inkeep/inkeep-analytics", - "version": "0.2.4-alpha.33", + "version": "0.2.4-alpha.34", "author": "Speakeasy", "type": "module", "bin": { @@ -34,15 +34,11 @@ "prepublishOnly": "npm run build" }, "peerDependencies": { - "@modelcontextprotocol/sdk": ">=1.5.0 <1.10.0", "@tanstack/react-query": "^5", "react": "^18 || ^19", "react-dom": "^18 || ^19" }, "peerDependenciesMeta": { - "@modelcontextprotocol/sdk": { - "optional": true - }, "@tanstack/react-query": { "optional": true }, @@ -55,7 +51,6 @@ }, "devDependencies": { "@eslint/js": "^9.19.0", - "@modelcontextprotocol/sdk": ">=1.5.0 <1.10.0", "@stricli/core": "^1.1.1", "@tanstack/react-query": "^5.61.4", "@types/express": "^4.17.21", @@ -66,11 +61,12 @@ "express": "^4.21.2", "globals": "^15.14.0", "tshy": "^2.0.0", - "typescript": "^5.4.5", - "typescript-eslint": "^8.22.0" + "typescript": "~5.8.3", + "typescript-eslint": "^8.26.0" }, "dependencies": { - "zod": "^3.20.0" + "@modelcontextprotocol/sdk": ">=1.5.0 <1.10.0", + "zod": "^3.25.0 || ^4.0.0" }, "exports": { ".": { diff --git a/src/funcs/conversationGetConversationByExternalId.ts b/src/funcs/conversationGetConversationByExternalId.ts index c6ef5689..3f540f73 100644 --- a/src/funcs/conversationGetConversationByExternalId.ts +++ b/src/funcs/conversationGetConversationByExternalId.ts @@ -120,7 +120,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "getConversationByExternalId", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/conversationsList.ts b/src/funcs/conversationsList.ts index a41d7eb2..55ea3f95 100644 --- a/src/funcs/conversationsList.ts +++ b/src/funcs/conversationsList.ts @@ -116,7 +116,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "getAllConversation", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/feedbackDeleteFeedbackById.ts b/src/funcs/feedbackDeleteFeedbackById.ts index 53a5338f..848b44dc 100644 --- a/src/funcs/feedbackDeleteFeedbackById.ts +++ b/src/funcs/feedbackDeleteFeedbackById.ts @@ -118,7 +118,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "deleteFeedbackById", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/feedbackGetFeedbackById.ts b/src/funcs/feedbackGetFeedbackById.ts index f19687bb..5701a339 100644 --- a/src/funcs/feedbackGetFeedbackById.ts +++ b/src/funcs/feedbackGetFeedbackById.ts @@ -118,7 +118,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "getFeedbackById", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/feedbackList.ts b/src/funcs/feedbackList.ts index ffb00997..8fe6c9d5 100644 --- a/src/funcs/feedbackList.ts +++ b/src/funcs/feedbackList.ts @@ -117,7 +117,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "getAllFeedback", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/feedbackSubmit.ts b/src/funcs/feedbackSubmit.ts index 3fb084da..6cd3590c 100644 --- a/src/funcs/feedbackSubmit.ts +++ b/src/funcs/feedbackSubmit.ts @@ -115,7 +115,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "logFeedback", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/queryConversations.ts b/src/funcs/queryConversations.ts index fca0c627..bcdbac91 100644 --- a/src/funcs/queryConversations.ts +++ b/src/funcs/queryConversations.ts @@ -111,7 +111,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "queryConversations", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/queryExportSemanticThreadsQueryResults.ts b/src/funcs/queryExportSemanticThreadsQueryResults.ts index bfb91756..011ee787 100644 --- a/src/funcs/queryExportSemanticThreadsQueryResults.ts +++ b/src/funcs/queryExportSemanticThreadsQueryResults.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { InkeepAnalyticsCore } from "../core.js"; import { encodeJSON } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; @@ -112,7 +112,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "exportSemanticThreadsQueryResults", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/queryQueryEvents.ts b/src/funcs/queryQueryEvents.ts index c71a7231..f8986cbc 100644 --- a/src/funcs/queryQueryEvents.ts +++ b/src/funcs/queryQueryEvents.ts @@ -110,7 +110,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "queryEvents", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/queryQueryFeedback.ts b/src/funcs/queryQueryFeedback.ts index 6de2c702..7d3707c2 100644 --- a/src/funcs/queryQueryFeedback.ts +++ b/src/funcs/queryQueryFeedback.ts @@ -110,7 +110,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "queryFeedback", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/queryQueryPropertyKeys.ts b/src/funcs/queryQueryPropertyKeys.ts index 99cbf6f5..76846897 100644 --- a/src/funcs/queryQueryPropertyKeys.ts +++ b/src/funcs/queryQueryPropertyKeys.ts @@ -113,7 +113,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "queryPropertyKeys", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/queryQueryPropertyValues.ts b/src/funcs/queryQueryPropertyValues.ts index 09c4beaa..cf6ada97 100644 --- a/src/funcs/queryQueryPropertyValues.ts +++ b/src/funcs/queryQueryPropertyValues.ts @@ -115,7 +115,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "queryPropertyValues", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/queryQuerySemanticThreads.ts b/src/funcs/queryQuerySemanticThreads.ts index 24deecfd..6ef31cec 100644 --- a/src/funcs/queryQuerySemanticThreads.ts +++ b/src/funcs/queryQuerySemanticThreads.ts @@ -111,7 +111,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "querySemanticThreads", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/topSearchQueries.ts b/src/funcs/topSearchQueries.ts index f63d6a56..64a7e04b 100644 --- a/src/funcs/topSearchQueries.ts +++ b/src/funcs/topSearchQueries.ts @@ -114,7 +114,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "topSearchQueries", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/funcs/weeklySearchUsers.ts b/src/funcs/weeklySearchUsers.ts index f8d22de0..a3304ead 100644 --- a/src/funcs/weeklySearchUsers.ts +++ b/src/funcs/weeklySearchUsers.ts @@ -114,7 +114,7 @@ async function $do( options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", operationID: "weeklySearchUsers", - oAuth2Scopes: [], + oAuth2Scopes: null, resolvedSecurity: requestSecurity, diff --git a/src/lib/base64.ts b/src/lib/base64.ts index c2d5b389..0aebd8b0 100644 --- a/src/lib/base64.ts +++ b/src/lib/base64.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; export function bytesToBase64(u8arr: Uint8Array): string { return btoa(String.fromCodePoint(...u8arr)); diff --git a/src/lib/config.ts b/src/lib/config.ts index 14e58629..9a731535 100644 --- a/src/lib/config.ts +++ b/src/lib/config.ts @@ -58,8 +58,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null { export const SDK_METADATA = { language: "typescript", openapiDocVersion: "0.1.1", - sdkVersion: "0.2.4-alpha.33", - genVersion: "2.672.0", + sdkVersion: "0.2.4-alpha.34", + genVersion: "2.755.6", userAgent: - "speakeasy-sdk/typescript 0.2.4-alpha.33 2.672.0 0.1.1 @inkeep/inkeep-analytics", + "speakeasy-sdk/typescript 0.2.4-alpha.34 2.755.6 0.1.1 @inkeep/inkeep-analytics", } as const; diff --git a/src/lib/env.ts b/src/lib/env.ts index 68dd5a42..35bdbd92 100644 --- a/src/lib/env.ts +++ b/src/lib/env.ts @@ -2,10 +2,9 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import * as z from "zod/v3"; import { dlv } from "./dlv.js"; -import * as z from "zod"; - export interface Env { INKEEPANALYTICS_API_INTEGRATION_KEY?: string | undefined; @@ -18,6 +17,18 @@ export const envSchema: z.ZodType = z.object({ INKEEPANALYTICS_DEBUG: z.coerce.boolean().optional(), }); +/** + * Checks for the existence of the Deno global object to determine the environment. + * @returns {boolean} True if the runtime is Deno, false otherwise. + */ +function isDeno() { + if ("Deno" in globalThis) { + return true; + } + + return false; +} + let envMemo: Env | undefined = undefined; /** * Reads and validates environment variables. @@ -27,9 +38,14 @@ export function env(): Env { return envMemo; } - envMemo = envSchema.parse( - dlv(globalThis, "process.env") ?? dlv(globalThis, "Deno.env") ?? {}, - ); + let envObject: Record = {}; + if (isDeno()) { + envObject = (globalThis as any).Deno?.env?.toObject?.() ?? {}; + } else { + envObject = dlv(globalThis, "process.env") ?? {}; + } + + envMemo = envSchema.parse(envObject); return envMemo; } diff --git a/src/lib/schemas.ts b/src/lib/schemas.ts index 0e340b7e..47edb972 100644 --- a/src/lib/schemas.ts +++ b/src/lib/schemas.ts @@ -9,7 +9,7 @@ import { ZodObject, ZodRawShape, ZodTypeAny, -} from "zod"; +} from "zod/v3"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import { ERR, OK, Result } from "../types/fp.js"; diff --git a/src/lib/security.ts b/src/lib/security.ts index c2ee5410..235f7a3f 100644 --- a/src/lib/security.ts +++ b/src/lib/security.ts @@ -84,7 +84,10 @@ type SecurityInputOAuth2 = { type SecurityInputOAuth2ClientCredentials = { type: "oauth2:client_credentials"; value: - | { clientID?: string | undefined; clientSecret?: string | undefined } + | { + clientID?: string | undefined; + clientSecret?: string | undefined; + } | null | string | undefined; diff --git a/src/lib/url.ts b/src/lib/url.ts index 6bc6356e..f3a8de6c 100644 --- a/src/lib/url.ts +++ b/src/lib/url.ts @@ -10,7 +10,7 @@ export function pathToFunc( pathPattern: string, options?: { charEncoding?: "percent" | "none" }, ): (params?: Params) => string { - const paramRE = /\{([a-zA-Z0-9_]+?)\}/g; + const paramRE = /\{([a-zA-Z0-9_][a-zA-Z0-9_-]*?)\}/g; return function buildURLPath(params: Record = {}): string { return pathPattern.replace(paramRE, function (_, placeholder) { diff --git a/src/mcp-server/cli/start/command.ts b/src/mcp-server/cli/start/command.ts index 199b756a..f70db999 100644 --- a/src/mcp-server/cli/start/command.ts +++ b/src/mcp-server/cli/start/command.ts @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import { buildCommand } from "@stricli/core"; -import { numberParser } from "@stricli/core"; -import * as z from "zod"; +import { buildCommand, numberParser } from "@stricli/core"; +import * as z from "zod/v3"; import { consoleLoggerLevels } from "../../console-logger.js"; export const startCommand = buildCommand({ diff --git a/src/mcp-server/extensions.ts b/src/mcp-server/extensions.ts index 7aab2809..0955a573 100644 --- a/src/mcp-server/extensions.ts +++ b/src/mcp-server/extensions.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import { ZodRawShape } from "zod"; +import { ZodRawShape } from "zod/v3"; import { PromptArgsRawShape, PromptDefinition } from "./prompts.js"; import { ResourceDefinition, ResourceTemplateDefinition } from "./resources.js"; import { ToolDefinition } from "./tools.js"; diff --git a/src/mcp-server/mcp-server.ts b/src/mcp-server/mcp-server.ts index c8550eb4..69baf123 100644 --- a/src/mcp-server/mcp-server.ts +++ b/src/mcp-server/mcp-server.ts @@ -19,7 +19,7 @@ const routes = buildRouteMap({ export const app = buildApplication(routes, { name: "mcp", versionInfo: { - currentVersion: "0.2.4-alpha.33", + currentVersion: "0.2.4-alpha.34", }, }); diff --git a/src/mcp-server/prompts.ts b/src/mcp-server/prompts.ts index 8f1e6fc8..9ef4cb66 100644 --- a/src/mcp-server/prompts.ts +++ b/src/mcp-server/prompts.ts @@ -11,7 +11,7 @@ import { ZodType, ZodTypeAny, ZodTypeDef, -} from "zod"; +} from "zod/v3"; import { InkeepAnalyticsCore } from "../core.js"; import { ConsoleLogger } from "./console-logger.js"; import { MCPScope } from "./scopes.js"; diff --git a/src/mcp-server/server.ts b/src/mcp-server/server.ts index 3a9af76b..425d2326 100644 --- a/src/mcp-server/server.ts +++ b/src/mcp-server/server.ts @@ -39,7 +39,7 @@ export function createMCPServer(deps: { }) { const server = new McpServer({ name: "InkeepAnalytics", - version: "0.2.4-alpha.33", + version: "0.2.4-alpha.34", }); const client = new InkeepAnalyticsCore({ diff --git a/src/mcp-server/shared.ts b/src/mcp-server/shared.ts index 9dc6d2f6..3e94144d 100644 --- a/src/mcp-server/shared.ts +++ b/src/mcp-server/shared.ts @@ -2,9 +2,8 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { bytesToBase64 } from "../lib/base64.js"; - type BinaryData = | Uint8Array | ArrayBuffer diff --git a/src/mcp-server/tools.ts b/src/mcp-server/tools.ts index 041583de..7ca5559e 100644 --- a/src/mcp-server/tools.ts +++ b/src/mcp-server/tools.ts @@ -5,7 +5,7 @@ import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js"; import { RequestHandlerExtra } from "@modelcontextprotocol/sdk/shared/protocol.js"; import { CallToolResult } from "@modelcontextprotocol/sdk/types.js"; -import { objectOutputType, ZodRawShape, ZodTypeAny } from "zod"; +import { objectOutputType, ZodRawShape, ZodTypeAny } from "zod/v3"; import { InkeepAnalyticsCore } from "../core.js"; import { ConsoleLogger } from "./console-logger.js"; import { MCPScope } from "./scopes.js"; diff --git a/src/models/components/conversation.ts b/src/models/components/conversation.ts index b2c2f462..577406b5 100644 --- a/src/models/components/conversation.ts +++ b/src/models/components/conversation.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -52,7 +52,6 @@ export const Conversation$inboundSchema: z.ZodType< })), ), ]); - /** @internal */ export type Conversation$Outbound = | (OpenAIConversation$Outbound & { type: "openai" }) @@ -82,23 +81,9 @@ export const Conversation$outboundSchema: z.ZodType< ), ]); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Conversation$ { - /** @deprecated use `Conversation$inboundSchema` instead. */ - export const inboundSchema = Conversation$inboundSchema; - /** @deprecated use `Conversation$outboundSchema` instead. */ - export const outboundSchema = Conversation$outboundSchema; - /** @deprecated use `Conversation$Outbound` instead. */ - export type Outbound = Conversation$Outbound; -} - export function conversationToJSON(conversation: Conversation): string { return JSON.stringify(Conversation$outboundSchema.parse(conversation)); } - export function conversationFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/conversationsaggregationselection.ts b/src/models/components/conversationsaggregationselection.ts index b27cb08f..92a6562c 100644 --- a/src/models/components/conversationsaggregationselection.ts +++ b/src/models/components/conversationsaggregationselection.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -50,64 +50,26 @@ export const ConversationsAggregationSelectionType$inboundSchema: z.ZodNativeEnum = z.nativeEnum( ConversationsAggregationSelectionType, ); - /** @internal */ export const ConversationsAggregationSelectionType$outboundSchema: z.ZodNativeEnum = ConversationsAggregationSelectionType$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ConversationsAggregationSelectionType$ { - /** @deprecated use `ConversationsAggregationSelectionType$inboundSchema` instead. */ - export const inboundSchema = - ConversationsAggregationSelectionType$inboundSchema; - /** @deprecated use `ConversationsAggregationSelectionType$outboundSchema` instead. */ - export const outboundSchema = - ConversationsAggregationSelectionType$outboundSchema; -} - /** @internal */ export const Aggregation$inboundSchema: z.ZodNativeEnum = z .nativeEnum(Aggregation); - /** @internal */ export const Aggregation$outboundSchema: z.ZodNativeEnum = Aggregation$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Aggregation$ { - /** @deprecated use `Aggregation$inboundSchema` instead. */ - export const inboundSchema = Aggregation$inboundSchema; - /** @deprecated use `Aggregation$outboundSchema` instead. */ - export const outboundSchema = Aggregation$outboundSchema; -} - /** @internal */ export const Field$inboundSchema: z.ZodNativeEnum = z.nativeEnum( Field, ); - /** @internal */ export const Field$outboundSchema: z.ZodNativeEnum = Field$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Field$ { - /** @deprecated use `Field$inboundSchema` instead. */ - export const inboundSchema = Field$inboundSchema; - /** @deprecated use `Field$outboundSchema` instead. */ - export const outboundSchema = Field$outboundSchema; -} - /** @internal */ export const ConversationsAggregationSelection$inboundSchema: z.ZodType< ConversationsAggregationSelection, @@ -119,7 +81,6 @@ export const ConversationsAggregationSelection$inboundSchema: z.ZodType< field: Field$inboundSchema.optional(), path: z.array(z.string()).optional(), }); - /** @internal */ export type ConversationsAggregationSelection$Outbound = { type: string; @@ -140,20 +101,6 @@ export const ConversationsAggregationSelection$outboundSchema: z.ZodType< path: z.array(z.string()).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ConversationsAggregationSelection$ { - /** @deprecated use `ConversationsAggregationSelection$inboundSchema` instead. */ - export const inboundSchema = ConversationsAggregationSelection$inboundSchema; - /** @deprecated use `ConversationsAggregationSelection$outboundSchema` instead. */ - export const outboundSchema = - ConversationsAggregationSelection$outboundSchema; - /** @deprecated use `ConversationsAggregationSelection$Outbound` instead. */ - export type Outbound = ConversationsAggregationSelection$Outbound; -} - export function conversationsAggregationSelectionToJSON( conversationsAggregationSelection: ConversationsAggregationSelection, ): string { @@ -163,7 +110,6 @@ export function conversationsAggregationSelectionToJSON( ), ); } - export function conversationsAggregationSelectionFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/conversationsfield.ts b/src/models/components/conversationsfield.ts index 17b5f286..0bcded1e 100644 --- a/src/models/components/conversationsfield.ts +++ b/src/models/components/conversationsfield.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; /** @@ -28,19 +28,7 @@ export type ConversationsField = ClosedEnum; export const ConversationsField$inboundSchema: z.ZodNativeEnum< typeof ConversationsField > = z.nativeEnum(ConversationsField); - /** @internal */ export const ConversationsField$outboundSchema: z.ZodNativeEnum< typeof ConversationsField > = ConversationsField$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ConversationsField$ { - /** @deprecated use `ConversationsField$inboundSchema` instead. */ - export const inboundSchema = ConversationsField$inboundSchema; - /** @deprecated use `ConversationsField$outboundSchema` instead. */ - export const outboundSchema = ConversationsField$outboundSchema; -} diff --git a/src/models/components/conversationsfilter.ts b/src/models/components/conversationsfilter.ts index 81b92c3a..4ec96669 100644 --- a/src/models/components/conversationsfilter.ts +++ b/src/models/components/conversationsfilter.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -40,7 +40,6 @@ export const ConversationsFilter$inboundSchema: z.ZodType< z.lazy(() => ConversationsFilterAND$inboundSchema), z.lazy(() => ConversationsFilterOR$inboundSchema), ]); - /** @internal */ export type ConversationsFilter$Outbound = | ConversationsFilterCondition$Outbound @@ -58,19 +57,6 @@ export const ConversationsFilter$outboundSchema: z.ZodType< z.lazy(() => ConversationsFilterOR$outboundSchema), ]); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ConversationsFilter$ { - /** @deprecated use `ConversationsFilter$inboundSchema` instead. */ - export const inboundSchema = ConversationsFilter$inboundSchema; - /** @deprecated use `ConversationsFilter$outboundSchema` instead. */ - export const outboundSchema = ConversationsFilter$outboundSchema; - /** @deprecated use `ConversationsFilter$Outbound` instead. */ - export type Outbound = ConversationsFilter$Outbound; -} - export function conversationsFilterToJSON( conversationsFilter: ConversationsFilter, ): string { @@ -78,7 +64,6 @@ export function conversationsFilterToJSON( ConversationsFilter$outboundSchema.parse(conversationsFilter), ); } - export function conversationsFilterFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/conversationsfilterand.ts b/src/models/components/conversationsfilterand.ts index 4c102bb1..20e76277 100644 --- a/src/models/components/conversationsfilterand.ts +++ b/src/models/components/conversationsfilterand.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -33,7 +33,6 @@ export const ConversationsFilterAND$inboundSchema: z.ZodType< > = z.object({ and: z.array(z.lazy(() => ConversationsFilter$inboundSchema)), }); - /** @internal */ export type ConversationsFilterAND$Outbound = { and: Array; @@ -48,19 +47,6 @@ export const ConversationsFilterAND$outboundSchema: z.ZodType< and: z.array(z.lazy(() => ConversationsFilter$outboundSchema)), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ConversationsFilterAND$ { - /** @deprecated use `ConversationsFilterAND$inboundSchema` instead. */ - export const inboundSchema = ConversationsFilterAND$inboundSchema; - /** @deprecated use `ConversationsFilterAND$outboundSchema` instead. */ - export const outboundSchema = ConversationsFilterAND$outboundSchema; - /** @deprecated use `ConversationsFilterAND$Outbound` instead. */ - export type Outbound = ConversationsFilterAND$Outbound; -} - export function conversationsFilterANDToJSON( conversationsFilterAND: ConversationsFilterAND, ): string { @@ -68,7 +54,6 @@ export function conversationsFilterANDToJSON( ConversationsFilterAND$outboundSchema.parse(conversationsFilterAND), ); } - export function conversationsFilterANDFromJSON( jsonString: string, ): SafeParseResult { @@ -83,7 +68,6 @@ export function conversationsFilterANDFromJSON( export const And$inboundSchema: z.ZodType = z.lazy( () => ConversationsFilter$inboundSchema ); - /** @internal */ export type And$Outbound = ConversationsFilter$Outbound; @@ -91,23 +75,9 @@ export type And$Outbound = ConversationsFilter$Outbound; export const And$outboundSchema: z.ZodType = z .lazy(() => ConversationsFilter$outboundSchema); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace And$ { - /** @deprecated use `And$inboundSchema` instead. */ - export const inboundSchema = And$inboundSchema; - /** @deprecated use `And$outboundSchema` instead. */ - export const outboundSchema = And$outboundSchema; - /** @deprecated use `And$Outbound` instead. */ - export type Outbound = And$Outbound; -} - export function andToJSON(and: And): string { return JSON.stringify(And$outboundSchema.parse(and)); } - export function andFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/conversationsfiltercondition.ts b/src/models/components/conversationsfiltercondition.ts index 04783b40..043c1025 100644 --- a/src/models/components/conversationsfiltercondition.ts +++ b/src/models/components/conversationsfiltercondition.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -57,7 +57,6 @@ export type ConversationsFilterCondition = { /** @internal */ export const Four$inboundSchema: z.ZodType = z .union([z.string(), z.number(), z.boolean()]); - /** @internal */ export type Four$Outbound = string | number | boolean; @@ -65,23 +64,9 @@ export type Four$Outbound = string | number | boolean; export const Four$outboundSchema: z.ZodType = z.union([z.string(), z.number(), z.boolean()]); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Four$ { - /** @deprecated use `Four$inboundSchema` instead. */ - export const inboundSchema = Four$inboundSchema; - /** @deprecated use `Four$outboundSchema` instead. */ - export const outboundSchema = Four$outboundSchema; - /** @deprecated use `Four$Outbound` instead. */ - export type Outbound = Four$Outbound; -} - export function fourToJSON(four: Four): string { return JSON.stringify(Four$outboundSchema.parse(four)); } - export function fourFromJSON( jsonString: string, ): SafeParseResult { @@ -100,7 +85,6 @@ export const Value$inboundSchema: z.ZodType = z z.boolean(), z.array(z.nullable(z.union([z.string(), z.number(), z.boolean()]))), ]); - /** @internal */ export type Value$Outbound = | string @@ -120,23 +104,9 @@ export const Value$outboundSchema: z.ZodType< z.array(z.nullable(z.union([z.string(), z.number(), z.boolean()]))), ]); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Value$ { - /** @deprecated use `Value$inboundSchema` instead. */ - export const inboundSchema = Value$inboundSchema; - /** @deprecated use `Value$outboundSchema` instead. */ - export const outboundSchema = Value$outboundSchema; - /** @deprecated use `Value$Outbound` instead. */ - export type Outbound = Value$Outbound; -} - export function valueToJSON(value: Value): string { return JSON.stringify(Value$outboundSchema.parse(value)); } - export function valueFromJSON( jsonString: string, ): SafeParseResult { @@ -160,7 +130,6 @@ export const Seven$inboundSchema: z.ZodType = z ]), ), }); - /** @internal */ export type Seven$Outbound = { path: Array; @@ -189,23 +158,9 @@ export const Seven$outboundSchema: z.ZodType< ), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Seven$ { - /** @deprecated use `Seven$inboundSchema` instead. */ - export const inboundSchema = Seven$inboundSchema; - /** @deprecated use `Seven$outboundSchema` instead. */ - export const outboundSchema = Seven$outboundSchema; - /** @deprecated use `Seven$Outbound` instead. */ - export type Outbound = Seven$Outbound; -} - export function sevenToJSON(seven: Seven): string { return JSON.stringify(Seven$outboundSchema.parse(seven)); } - export function sevenFromJSON( jsonString: string, ): SafeParseResult { @@ -226,7 +181,6 @@ export const Condition$inboundSchema: z.ZodType< operator: FilterOperator$inboundSchema, value: z.any().optional(), }); - /** @internal */ export type Condition$Outbound = { field: string; @@ -245,23 +199,9 @@ export const Condition$outboundSchema: z.ZodType< value: z.any().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Condition$ { - /** @deprecated use `Condition$inboundSchema` instead. */ - export const inboundSchema = Condition$inboundSchema; - /** @deprecated use `Condition$outboundSchema` instead. */ - export const outboundSchema = Condition$outboundSchema; - /** @deprecated use `Condition$Outbound` instead. */ - export type Outbound = Condition$Outbound; -} - export function conditionToJSON(condition: Condition): string { return JSON.stringify(Condition$outboundSchema.parse(condition)); } - export function conditionFromJSON( jsonString: string, ): SafeParseResult { @@ -280,7 +220,6 @@ export const ConversationsFilterCondition$inboundSchema: z.ZodType< > = z.object({ condition: z.lazy(() => Condition$inboundSchema), }); - /** @internal */ export type ConversationsFilterCondition$Outbound = { condition: Condition$Outbound; @@ -295,19 +234,6 @@ export const ConversationsFilterCondition$outboundSchema: z.ZodType< condition: z.lazy(() => Condition$outboundSchema), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ConversationsFilterCondition$ { - /** @deprecated use `ConversationsFilterCondition$inboundSchema` instead. */ - export const inboundSchema = ConversationsFilterCondition$inboundSchema; - /** @deprecated use `ConversationsFilterCondition$outboundSchema` instead. */ - export const outboundSchema = ConversationsFilterCondition$outboundSchema; - /** @deprecated use `ConversationsFilterCondition$Outbound` instead. */ - export type Outbound = ConversationsFilterCondition$Outbound; -} - export function conversationsFilterConditionToJSON( conversationsFilterCondition: ConversationsFilterCondition, ): string { @@ -317,7 +243,6 @@ export function conversationsFilterConditionToJSON( ), ); } - export function conversationsFilterConditionFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/conversationsfilteror.ts b/src/models/components/conversationsfilteror.ts index 68b5aa72..f11cdc94 100644 --- a/src/models/components/conversationsfilteror.ts +++ b/src/models/components/conversationsfilteror.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -33,7 +33,6 @@ export const ConversationsFilterOR$inboundSchema: z.ZodType< > = z.object({ or: z.array(z.lazy(() => ConversationsFilter$inboundSchema)), }); - /** @internal */ export type ConversationsFilterOR$Outbound = { or: Array; @@ -48,19 +47,6 @@ export const ConversationsFilterOR$outboundSchema: z.ZodType< or: z.array(z.lazy(() => ConversationsFilter$outboundSchema)), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ConversationsFilterOR$ { - /** @deprecated use `ConversationsFilterOR$inboundSchema` instead. */ - export const inboundSchema = ConversationsFilterOR$inboundSchema; - /** @deprecated use `ConversationsFilterOR$outboundSchema` instead. */ - export const outboundSchema = ConversationsFilterOR$outboundSchema; - /** @deprecated use `ConversationsFilterOR$Outbound` instead. */ - export type Outbound = ConversationsFilterOR$Outbound; -} - export function conversationsFilterORToJSON( conversationsFilterOR: ConversationsFilterOR, ): string { @@ -68,7 +54,6 @@ export function conversationsFilterORToJSON( ConversationsFilterOR$outboundSchema.parse(conversationsFilterOR), ); } - export function conversationsFilterORFromJSON( jsonString: string, ): SafeParseResult { @@ -83,7 +68,6 @@ export function conversationsFilterORFromJSON( export const Or$inboundSchema: z.ZodType = z.lazy( () => ConversationsFilter$inboundSchema ); - /** @internal */ export type Or$Outbound = ConversationsFilter$Outbound; @@ -91,23 +75,9 @@ export type Or$Outbound = ConversationsFilter$Outbound; export const Or$outboundSchema: z.ZodType = z .lazy(() => ConversationsFilter$outboundSchema); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Or$ { - /** @deprecated use `Or$inboundSchema` instead. */ - export const inboundSchema = Or$inboundSchema; - /** @deprecated use `Or$outboundSchema` instead. */ - export const outboundSchema = Or$outboundSchema; - /** @deprecated use `Or$Outbound` instead. */ - export type Outbound = Or$Outbound; -} - export function orToJSON(or: Or): string { return JSON.stringify(Or$outboundSchema.parse(or)); } - export function orFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/conversationsgroupby.ts b/src/models/components/conversationsgroupby.ts index 3751d40f..ef7657cb 100644 --- a/src/models/components/conversationsgroupby.ts +++ b/src/models/components/conversationsgroupby.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -34,7 +34,6 @@ export const ConversationsGroupBy$inboundSchema: z.ZodType< path: z.array(z.string()).optional(), includeInSelect: z.boolean().default(true), }); - /** @internal */ export type ConversationsGroupBy$Outbound = { field: string; @@ -53,19 +52,6 @@ export const ConversationsGroupBy$outboundSchema: z.ZodType< includeInSelect: z.boolean().default(true), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ConversationsGroupBy$ { - /** @deprecated use `ConversationsGroupBy$inboundSchema` instead. */ - export const inboundSchema = ConversationsGroupBy$inboundSchema; - /** @deprecated use `ConversationsGroupBy$outboundSchema` instead. */ - export const outboundSchema = ConversationsGroupBy$outboundSchema; - /** @deprecated use `ConversationsGroupBy$Outbound` instead. */ - export type Outbound = ConversationsGroupBy$Outbound; -} - export function conversationsGroupByToJSON( conversationsGroupBy: ConversationsGroupBy, ): string { @@ -73,7 +59,6 @@ export function conversationsGroupByToJSON( ConversationsGroupBy$outboundSchema.parse(conversationsGroupBy), ); } - export function conversationsGroupByFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/conversationsorderby.ts b/src/models/components/conversationsorderby.ts index 7dbcd206..e1ce1ef0 100644 --- a/src/models/components/conversationsorderby.ts +++ b/src/models/components/conversationsorderby.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -122,42 +122,18 @@ export type ConversationsOrderBy = { export const ConversationsOrderByField$inboundSchema: z.ZodNativeEnum< typeof ConversationsOrderByField > = z.nativeEnum(ConversationsOrderByField); - /** @internal */ export const ConversationsOrderByField$outboundSchema: z.ZodNativeEnum< typeof ConversationsOrderByField > = ConversationsOrderByField$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ConversationsOrderByField$ { - /** @deprecated use `ConversationsOrderByField$inboundSchema` instead. */ - export const inboundSchema = ConversationsOrderByField$inboundSchema; - /** @deprecated use `ConversationsOrderByField$outboundSchema` instead. */ - export const outboundSchema = ConversationsOrderByField$outboundSchema; -} - /** @internal */ export const Direction$inboundSchema: z.ZodNativeEnum = z .nativeEnum(Direction); - /** @internal */ export const Direction$outboundSchema: z.ZodNativeEnum = Direction$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Direction$ { - /** @deprecated use `Direction$inboundSchema` instead. */ - export const inboundSchema = Direction$inboundSchema; - /** @deprecated use `Direction$outboundSchema` instead. */ - export const outboundSchema = Direction$outboundSchema; -} - /** @internal */ export const ConversationsOrderBy$inboundSchema: z.ZodType< ConversationsOrderBy, @@ -167,7 +143,6 @@ export const ConversationsOrderBy$inboundSchema: z.ZodType< field: ConversationsOrderByField$inboundSchema, direction: Direction$inboundSchema, }); - /** @internal */ export type ConversationsOrderBy$Outbound = { field: string; @@ -184,19 +159,6 @@ export const ConversationsOrderBy$outboundSchema: z.ZodType< direction: Direction$outboundSchema, }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ConversationsOrderBy$ { - /** @deprecated use `ConversationsOrderBy$inboundSchema` instead. */ - export const inboundSchema = ConversationsOrderBy$inboundSchema; - /** @deprecated use `ConversationsOrderBy$outboundSchema` instead. */ - export const outboundSchema = ConversationsOrderBy$outboundSchema; - /** @deprecated use `ConversationsOrderBy$Outbound` instead. */ - export type Outbound = ConversationsOrderBy$Outbound; -} - export function conversationsOrderByToJSON( conversationsOrderBy: ConversationsOrderBy, ): string { @@ -204,7 +166,6 @@ export function conversationsOrderByToJSON( ConversationsOrderBy$outboundSchema.parse(conversationsOrderBy), ); } - export function conversationsOrderByFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/conversationsselection.ts b/src/models/components/conversationsselection.ts index 106ec9d5..8be2f5dd 100644 --- a/src/models/components/conversationsselection.ts +++ b/src/models/components/conversationsselection.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -51,7 +51,6 @@ export const ConversationsSelection$inboundSchema: z.ZodType< z.object({ type: z.literal("field") }).transform((v) => ({ type: v.type })), ), ]); - /** @internal */ export type ConversationsSelection$Outbound = | (ConversationsAggregationSelection$Outbound & { type: "aggregation" }) @@ -77,19 +76,6 @@ export const ConversationsSelection$outboundSchema: z.ZodType< ), ]); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ConversationsSelection$ { - /** @deprecated use `ConversationsSelection$inboundSchema` instead. */ - export const inboundSchema = ConversationsSelection$inboundSchema; - /** @deprecated use `ConversationsSelection$outboundSchema` instead. */ - export const outboundSchema = ConversationsSelection$outboundSchema; - /** @deprecated use `ConversationsSelection$Outbound` instead. */ - export type Outbound = ConversationsSelection$Outbound; -} - export function conversationsSelectionToJSON( conversationsSelection: ConversationsSelection, ): string { @@ -97,7 +83,6 @@ export function conversationsSelectionToJSON( ConversationsSelection$outboundSchema.parse(conversationsSelection), ); } - export function conversationsSelectionFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/conversationssimplefieldselection.ts b/src/models/components/conversationssimplefieldselection.ts index bfcbebbc..96c4adb3 100644 --- a/src/models/components/conversationssimplefieldselection.ts +++ b/src/models/components/conversationssimplefieldselection.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -41,49 +41,21 @@ export const ConversationsSimpleFieldSelectionType$inboundSchema: z.ZodNativeEnum = z.nativeEnum( ConversationsSimpleFieldSelectionType, ); - /** @internal */ export const ConversationsSimpleFieldSelectionType$outboundSchema: z.ZodNativeEnum = ConversationsSimpleFieldSelectionType$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ConversationsSimpleFieldSelectionType$ { - /** @deprecated use `ConversationsSimpleFieldSelectionType$inboundSchema` instead. */ - export const inboundSchema = - ConversationsSimpleFieldSelectionType$inboundSchema; - /** @deprecated use `ConversationsSimpleFieldSelectionType$outboundSchema` instead. */ - export const outboundSchema = - ConversationsSimpleFieldSelectionType$outboundSchema; -} - /** @internal */ export const ConversationsSimpleFieldSelectionField$inboundSchema: z.ZodNativeEnum = z.nativeEnum( ConversationsSimpleFieldSelectionField, ); - /** @internal */ export const ConversationsSimpleFieldSelectionField$outboundSchema: z.ZodNativeEnum = ConversationsSimpleFieldSelectionField$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ConversationsSimpleFieldSelectionField$ { - /** @deprecated use `ConversationsSimpleFieldSelectionField$inboundSchema` instead. */ - export const inboundSchema = - ConversationsSimpleFieldSelectionField$inboundSchema; - /** @deprecated use `ConversationsSimpleFieldSelectionField$outboundSchema` instead. */ - export const outboundSchema = - ConversationsSimpleFieldSelectionField$outboundSchema; -} - /** @internal */ export const ConversationsSimpleFieldSelection$inboundSchema: z.ZodType< ConversationsSimpleFieldSelection, @@ -94,7 +66,6 @@ export const ConversationsSimpleFieldSelection$inboundSchema: z.ZodType< field: ConversationsSimpleFieldSelectionField$inboundSchema, path: z.array(z.string()).optional(), }); - /** @internal */ export type ConversationsSimpleFieldSelection$Outbound = { type: string; @@ -113,20 +84,6 @@ export const ConversationsSimpleFieldSelection$outboundSchema: z.ZodType< path: z.array(z.string()).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ConversationsSimpleFieldSelection$ { - /** @deprecated use `ConversationsSimpleFieldSelection$inboundSchema` instead. */ - export const inboundSchema = ConversationsSimpleFieldSelection$inboundSchema; - /** @deprecated use `ConversationsSimpleFieldSelection$outboundSchema` instead. */ - export const outboundSchema = - ConversationsSimpleFieldSelection$outboundSchema; - /** @deprecated use `ConversationsSimpleFieldSelection$Outbound` instead. */ - export type Outbound = ConversationsSimpleFieldSelection$Outbound; -} - export function conversationsSimpleFieldSelectionToJSON( conversationsSimpleFieldSelection: ConversationsSimpleFieldSelection, ): string { @@ -136,7 +93,6 @@ export function conversationsSimpleFieldSelectionToJSON( ), ); } - export function conversationsSimpleFieldSelectionFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/conversationstimebasedgroupbyselection.ts b/src/models/components/conversationstimebasedgroupbyselection.ts index 5bb2e11d..244ceab7 100644 --- a/src/models/components/conversationstimebasedgroupbyselection.ts +++ b/src/models/components/conversationstimebasedgroupbyselection.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -48,48 +48,20 @@ export type ConversationsTimeBasedGroupBySelection = { export const ConversationsTimeBasedGroupBySelectionType$inboundSchema: z.ZodNativeEnum = z .nativeEnum(ConversationsTimeBasedGroupBySelectionType); - /** @internal */ export const ConversationsTimeBasedGroupBySelectionType$outboundSchema: z.ZodNativeEnum = ConversationsTimeBasedGroupBySelectionType$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ConversationsTimeBasedGroupBySelectionType$ { - /** @deprecated use `ConversationsTimeBasedGroupBySelectionType$inboundSchema` instead. */ - export const inboundSchema = - ConversationsTimeBasedGroupBySelectionType$inboundSchema; - /** @deprecated use `ConversationsTimeBasedGroupBySelectionType$outboundSchema` instead. */ - export const outboundSchema = - ConversationsTimeBasedGroupBySelectionType$outboundSchema; -} - /** @internal */ export const ConversationsTimeBasedGroupBySelectionField$inboundSchema: z.ZodNativeEnum = z .nativeEnum(ConversationsTimeBasedGroupBySelectionField); - /** @internal */ export const ConversationsTimeBasedGroupBySelectionField$outboundSchema: z.ZodNativeEnum = ConversationsTimeBasedGroupBySelectionField$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ConversationsTimeBasedGroupBySelectionField$ { - /** @deprecated use `ConversationsTimeBasedGroupBySelectionField$inboundSchema` instead. */ - export const inboundSchema = - ConversationsTimeBasedGroupBySelectionField$inboundSchema; - /** @deprecated use `ConversationsTimeBasedGroupBySelectionField$outboundSchema` instead. */ - export const outboundSchema = - ConversationsTimeBasedGroupBySelectionField$outboundSchema; -} - /** @internal */ export const ConversationsTimeBasedGroupBySelection$inboundSchema: z.ZodType< ConversationsTimeBasedGroupBySelection, @@ -100,7 +72,6 @@ export const ConversationsTimeBasedGroupBySelection$inboundSchema: z.ZodType< timeUnit: TimeUnit$inboundSchema, field: ConversationsTimeBasedGroupBySelectionField$inboundSchema.optional(), }); - /** @internal */ export type ConversationsTimeBasedGroupBySelection$Outbound = { type: string; @@ -119,21 +90,6 @@ export const ConversationsTimeBasedGroupBySelection$outboundSchema: z.ZodType< field: ConversationsTimeBasedGroupBySelectionField$outboundSchema.optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ConversationsTimeBasedGroupBySelection$ { - /** @deprecated use `ConversationsTimeBasedGroupBySelection$inboundSchema` instead. */ - export const inboundSchema = - ConversationsTimeBasedGroupBySelection$inboundSchema; - /** @deprecated use `ConversationsTimeBasedGroupBySelection$outboundSchema` instead. */ - export const outboundSchema = - ConversationsTimeBasedGroupBySelection$outboundSchema; - /** @deprecated use `ConversationsTimeBasedGroupBySelection$Outbound` instead. */ - export type Outbound = ConversationsTimeBasedGroupBySelection$Outbound; -} - export function conversationsTimeBasedGroupBySelectionToJSON( conversationsTimeBasedGroupBySelection: ConversationsTimeBasedGroupBySelection, @@ -144,7 +100,6 @@ export function conversationsTimeBasedGroupBySelectionToJSON( ), ); } - export function conversationsTimeBasedGroupBySelectionFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/createconversation.ts b/src/models/components/createconversation.ts index 9d7f28d6..80a63802 100644 --- a/src/models/components/createconversation.ts +++ b/src/models/components/createconversation.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -52,7 +52,6 @@ export const CreateConversation$inboundSchema: z.ZodType< })), ), ]); - /** @internal */ export type CreateConversation$Outbound = | (CreateOpenAIConversation$Outbound & { type: "openai" }) @@ -82,19 +81,6 @@ export const CreateConversation$outboundSchema: z.ZodType< ), ]); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateConversation$ { - /** @deprecated use `CreateConversation$inboundSchema` instead. */ - export const inboundSchema = CreateConversation$inboundSchema; - /** @deprecated use `CreateConversation$outboundSchema` instead. */ - export const outboundSchema = CreateConversation$outboundSchema; - /** @deprecated use `CreateConversation$Outbound` instead. */ - export type Outbound = CreateConversation$Outbound; -} - export function createConversationToJSON( createConversation: CreateConversation, ): string { @@ -102,7 +88,6 @@ export function createConversationToJSON( CreateConversation$outboundSchema.parse(createConversation), ); } - export function createConversationFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/createopenaiconversation.ts b/src/models/components/createopenaiconversation.ts index 2b5abc58..b5fceb6d 100644 --- a/src/models/components/createopenaiconversation.ts +++ b/src/models/components/createopenaiconversation.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { collectExtraKeys as collectExtraKeys$, @@ -63,7 +63,7 @@ export type UserProperties = { * The type of user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. */ userType?: string | null | undefined; - additionalProperties?: { [k: string]: any }; + additionalProperties?: { [k: string]: any } | undefined; }; export const Visibility = { @@ -145,7 +145,7 @@ export type CreateOpenAIConversationUserProperties = { * The type of user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. */ userType?: string | null | undefined; - additionalProperties?: { [k: string]: any }; + additionalProperties?: { [k: string]: any } | undefined; }; export type Messages = { @@ -211,28 +211,15 @@ export type CreateOpenAIConversation = { export const Type$inboundSchema: z.ZodNativeEnum = z.nativeEnum( Type, ); - /** @internal */ export const Type$outboundSchema: z.ZodNativeEnum = Type$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Type$ { - /** @deprecated use `Type$inboundSchema` instead. */ - export const inboundSchema = Type$inboundSchema; - /** @deprecated use `Type$outboundSchema` instead. */ - export const outboundSchema = Type$outboundSchema; -} - /** @internal */ export const Id$inboundSchema: z.ZodType = z.union([ z.string(), z.number(), ]); - /** @internal */ export type Id$Outbound = string | number; @@ -240,23 +227,9 @@ export type Id$Outbound = string | number; export const Id$outboundSchema: z.ZodType = z .union([z.string(), z.number()]); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Id$ { - /** @deprecated use `Id$inboundSchema` instead. */ - export const inboundSchema = Id$inboundSchema; - /** @deprecated use `Id$outboundSchema` instead. */ - export const outboundSchema = Id$outboundSchema; - /** @deprecated use `Id$Outbound` instead. */ - export type Outbound = Id$Outbound; -} - export function idToJSON(id: Id): string { return JSON.stringify(Id$outboundSchema.parse(id)); } - export function idFromJSON( jsonString: string, ): SafeParseResult { @@ -270,7 +243,6 @@ export function idFromJSON( /** @internal */ export const UserId$inboundSchema: z.ZodType = z .union([z.string(), z.number()]); - /** @internal */ export type UserId$Outbound = string | number; @@ -281,23 +253,9 @@ export const UserId$outboundSchema: z.ZodType< UserId > = z.union([z.string(), z.number()]); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UserId$ { - /** @deprecated use `UserId$inboundSchema` instead. */ - export const inboundSchema = UserId$inboundSchema; - /** @deprecated use `UserId$outboundSchema` instead. */ - export const outboundSchema = UserId$outboundSchema; - /** @deprecated use `UserId$Outbound` instead. */ - export type Outbound = UserId$Outbound; -} - export function userIdToJSON(userId: UserId): string { return JSON.stringify(UserId$outboundSchema.parse(userId)); } - export function userIdFromJSON( jsonString: string, ): SafeParseResult { @@ -324,7 +282,6 @@ export const UserProperties$inboundSchema: z.ZodType< "additionalProperties", true, ); - /** @internal */ export type UserProperties$Outbound = { id?: string | number | null | undefined; @@ -346,7 +303,7 @@ export const UserProperties$outboundSchema: z.ZodType< userId: z.nullable(z.union([z.string(), z.number()])).optional(), supportAgentName: z.nullable(z.string()).optional(), userType: z.nullable(z.string()).optional(), - additionalProperties: z.record(z.any()), + additionalProperties: z.record(z.any()).optional(), }).transform((v) => { return { ...v.additionalProperties, @@ -356,23 +313,9 @@ export const UserProperties$outboundSchema: z.ZodType< }; }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UserProperties$ { - /** @deprecated use `UserProperties$inboundSchema` instead. */ - export const inboundSchema = UserProperties$inboundSchema; - /** @deprecated use `UserProperties$outboundSchema` instead. */ - export const outboundSchema = UserProperties$outboundSchema; - /** @deprecated use `UserProperties$Outbound` instead. */ - export type Outbound = UserProperties$Outbound; -} - export function userPropertiesToJSON(userProperties: UserProperties): string { return JSON.stringify(UserProperties$outboundSchema.parse(userProperties)); } - export function userPropertiesFromJSON( jsonString: string, ): SafeParseResult { @@ -386,50 +329,25 @@ export function userPropertiesFromJSON( /** @internal */ export const Visibility$inboundSchema: z.ZodNativeEnum = z .nativeEnum(Visibility); - /** @internal */ export const Visibility$outboundSchema: z.ZodNativeEnum = Visibility$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Visibility$ { - /** @deprecated use `Visibility$inboundSchema` instead. */ - export const inboundSchema = Visibility$inboundSchema; - /** @deprecated use `Visibility$outboundSchema` instead. */ - export const outboundSchema = Visibility$outboundSchema; -} - /** @internal */ export const CreateOpenAIConversationRole$inboundSchema: z.ZodNativeEnum< typeof CreateOpenAIConversationRole > = z.nativeEnum(CreateOpenAIConversationRole); - /** @internal */ export const CreateOpenAIConversationRole$outboundSchema: z.ZodNativeEnum< typeof CreateOpenAIConversationRole > = CreateOpenAIConversationRole$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateOpenAIConversationRole$ { - /** @deprecated use `CreateOpenAIConversationRole$inboundSchema` instead. */ - export const inboundSchema = CreateOpenAIConversationRole$inboundSchema; - /** @deprecated use `CreateOpenAIConversationRole$outboundSchema` instead. */ - export const outboundSchema = CreateOpenAIConversationRole$outboundSchema; -} - /** @internal */ export const CreateOpenAIConversationContent$inboundSchema: z.ZodType< CreateOpenAIConversationContent, z.ZodTypeDef, unknown > = z.union([z.string(), z.array(OpenAIContentItem$inboundSchema)]); - /** @internal */ export type CreateOpenAIConversationContent$Outbound = | string @@ -442,19 +360,6 @@ export const CreateOpenAIConversationContent$outboundSchema: z.ZodType< CreateOpenAIConversationContent > = z.union([z.string(), z.array(OpenAIContentItem$outboundSchema)]); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateOpenAIConversationContent$ { - /** @deprecated use `CreateOpenAIConversationContent$inboundSchema` instead. */ - export const inboundSchema = CreateOpenAIConversationContent$inboundSchema; - /** @deprecated use `CreateOpenAIConversationContent$outboundSchema` instead. */ - export const outboundSchema = CreateOpenAIConversationContent$outboundSchema; - /** @deprecated use `CreateOpenAIConversationContent$Outbound` instead. */ - export type Outbound = CreateOpenAIConversationContent$Outbound; -} - export function createOpenAIConversationContentToJSON( createOpenAIConversationContent: CreateOpenAIConversationContent, ): string { @@ -464,7 +369,6 @@ export function createOpenAIConversationContentToJSON( ), ); } - export function createOpenAIConversationContentFromJSON( jsonString: string, ): SafeParseResult { @@ -479,30 +383,17 @@ export function createOpenAIConversationContentFromJSON( export const CreateOpenAIConversationType1$inboundSchema: z.ZodNativeEnum< typeof CreateOpenAIConversationType1 > = z.nativeEnum(CreateOpenAIConversationType1); - /** @internal */ export const CreateOpenAIConversationType1$outboundSchema: z.ZodNativeEnum< typeof CreateOpenAIConversationType1 > = CreateOpenAIConversationType1$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateOpenAIConversationType1$ { - /** @deprecated use `CreateOpenAIConversationType1$inboundSchema` instead. */ - export const inboundSchema = CreateOpenAIConversationType1$inboundSchema; - /** @deprecated use `CreateOpenAIConversationType1$outboundSchema` instead. */ - export const outboundSchema = CreateOpenAIConversationType1$outboundSchema; -} - /** @internal */ export const CreateOpenAIConversationType$inboundSchema: z.ZodType< CreateOpenAIConversationType, z.ZodTypeDef, unknown > = z.union([CreateOpenAIConversationType1$inboundSchema, z.string()]); - /** @internal */ export type CreateOpenAIConversationType$Outbound = string | string; @@ -513,19 +404,6 @@ export const CreateOpenAIConversationType$outboundSchema: z.ZodType< CreateOpenAIConversationType > = z.union([CreateOpenAIConversationType1$outboundSchema, z.string()]); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateOpenAIConversationType$ { - /** @deprecated use `CreateOpenAIConversationType$inboundSchema` instead. */ - export const inboundSchema = CreateOpenAIConversationType$inboundSchema; - /** @deprecated use `CreateOpenAIConversationType$outboundSchema` instead. */ - export const outboundSchema = CreateOpenAIConversationType$outboundSchema; - /** @deprecated use `CreateOpenAIConversationType$Outbound` instead. */ - export type Outbound = CreateOpenAIConversationType$Outbound; -} - export function createOpenAIConversationTypeToJSON( createOpenAIConversationType: CreateOpenAIConversationType, ): string { @@ -535,7 +413,6 @@ export function createOpenAIConversationTypeToJSON( ), ); } - export function createOpenAIConversationTypeFromJSON( jsonString: string, ): SafeParseResult { @@ -561,7 +438,6 @@ export const CreateOpenAIConversationLinks$inboundSchema: z.ZodType< ).optional(), breadcrumbs: z.nullable(z.array(z.string())).optional(), }); - /** @internal */ export type CreateOpenAIConversationLinks$Outbound = { label?: string | null | undefined; @@ -588,19 +464,6 @@ export const CreateOpenAIConversationLinks$outboundSchema: z.ZodType< breadcrumbs: z.nullable(z.array(z.string())).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateOpenAIConversationLinks$ { - /** @deprecated use `CreateOpenAIConversationLinks$inboundSchema` instead. */ - export const inboundSchema = CreateOpenAIConversationLinks$inboundSchema; - /** @deprecated use `CreateOpenAIConversationLinks$outboundSchema` instead. */ - export const outboundSchema = CreateOpenAIConversationLinks$outboundSchema; - /** @deprecated use `CreateOpenAIConversationLinks$Outbound` instead. */ - export type Outbound = CreateOpenAIConversationLinks$Outbound; -} - export function createOpenAIConversationLinksToJSON( createOpenAIConversationLinks: CreateOpenAIConversationLinks, ): string { @@ -610,7 +473,6 @@ export function createOpenAIConversationLinksToJSON( ), ); } - export function createOpenAIConversationLinksFromJSON( jsonString: string, ): SafeParseResult { @@ -627,7 +489,6 @@ export const CreateOpenAIConversationId$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.union([z.string(), z.number()]); - /** @internal */ export type CreateOpenAIConversationId$Outbound = string | number; @@ -638,19 +499,6 @@ export const CreateOpenAIConversationId$outboundSchema: z.ZodType< CreateOpenAIConversationId > = z.union([z.string(), z.number()]); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateOpenAIConversationId$ { - /** @deprecated use `CreateOpenAIConversationId$inboundSchema` instead. */ - export const inboundSchema = CreateOpenAIConversationId$inboundSchema; - /** @deprecated use `CreateOpenAIConversationId$outboundSchema` instead. */ - export const outboundSchema = CreateOpenAIConversationId$outboundSchema; - /** @deprecated use `CreateOpenAIConversationId$Outbound` instead. */ - export type Outbound = CreateOpenAIConversationId$Outbound; -} - export function createOpenAIConversationIdToJSON( createOpenAIConversationId: CreateOpenAIConversationId, ): string { @@ -658,7 +506,6 @@ export function createOpenAIConversationIdToJSON( CreateOpenAIConversationId$outboundSchema.parse(createOpenAIConversationId), ); } - export function createOpenAIConversationIdFromJSON( jsonString: string, ): SafeParseResult { @@ -675,7 +522,6 @@ export const CreateOpenAIConversationUserId$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.union([z.string(), z.number()]); - /** @internal */ export type CreateOpenAIConversationUserId$Outbound = string | number; @@ -686,19 +532,6 @@ export const CreateOpenAIConversationUserId$outboundSchema: z.ZodType< CreateOpenAIConversationUserId > = z.union([z.string(), z.number()]); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateOpenAIConversationUserId$ { - /** @deprecated use `CreateOpenAIConversationUserId$inboundSchema` instead. */ - export const inboundSchema = CreateOpenAIConversationUserId$inboundSchema; - /** @deprecated use `CreateOpenAIConversationUserId$outboundSchema` instead. */ - export const outboundSchema = CreateOpenAIConversationUserId$outboundSchema; - /** @deprecated use `CreateOpenAIConversationUserId$Outbound` instead. */ - export type Outbound = CreateOpenAIConversationUserId$Outbound; -} - export function createOpenAIConversationUserIdToJSON( createOpenAIConversationUserId: CreateOpenAIConversationUserId, ): string { @@ -708,7 +541,6 @@ export function createOpenAIConversationUserIdToJSON( ), ); } - export function createOpenAIConversationUserIdFromJSON( jsonString: string, ): SafeParseResult { @@ -735,7 +567,6 @@ export const CreateOpenAIConversationUserProperties$inboundSchema: z.ZodType< "additionalProperties", true, ); - /** @internal */ export type CreateOpenAIConversationUserProperties$Outbound = { id?: string | number | null | undefined; @@ -757,7 +588,7 @@ export const CreateOpenAIConversationUserProperties$outboundSchema: z.ZodType< userId: z.nullable(z.union([z.string(), z.number()])).optional(), supportAgentName: z.nullable(z.string()).optional(), userType: z.nullable(z.string()).optional(), - additionalProperties: z.record(z.any()), + additionalProperties: z.record(z.any()).optional(), }).transform((v) => { return { ...v.additionalProperties, @@ -767,21 +598,6 @@ export const CreateOpenAIConversationUserProperties$outboundSchema: z.ZodType< }; }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateOpenAIConversationUserProperties$ { - /** @deprecated use `CreateOpenAIConversationUserProperties$inboundSchema` instead. */ - export const inboundSchema = - CreateOpenAIConversationUserProperties$inboundSchema; - /** @deprecated use `CreateOpenAIConversationUserProperties$outboundSchema` instead. */ - export const outboundSchema = - CreateOpenAIConversationUserProperties$outboundSchema; - /** @deprecated use `CreateOpenAIConversationUserProperties$Outbound` instead. */ - export type Outbound = CreateOpenAIConversationUserProperties$Outbound; -} - export function createOpenAIConversationUserPropertiesToJSON( createOpenAIConversationUserProperties: CreateOpenAIConversationUserProperties, @@ -792,7 +608,6 @@ export function createOpenAIConversationUserPropertiesToJSON( ), ); } - export function createOpenAIConversationUserPropertiesFromJSON( jsonString: string, ): SafeParseResult { @@ -835,7 +650,6 @@ export const Messages$inboundSchema: z.ZodType< "tool_calls": "toolCalls", }); }); - /** @internal */ export type Messages$Outbound = { id?: string | undefined; @@ -883,23 +697,9 @@ export const Messages$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Messages$ { - /** @deprecated use `Messages$inboundSchema` instead. */ - export const inboundSchema = Messages$inboundSchema; - /** @deprecated use `Messages$outboundSchema` instead. */ - export const outboundSchema = Messages$outboundSchema; - /** @deprecated use `Messages$Outbound` instead. */ - export type Outbound = Messages$Outbound; -} - export function messagesToJSON(messages: Messages): string { return JSON.stringify(Messages$outboundSchema.parse(messages)); } - export function messagesFromJSON( jsonString: string, ): SafeParseResult { @@ -936,7 +736,6 @@ export const CreateOpenAIConversation$inboundSchema: z.ZodType< visibility: z.nullable(Visibility$inboundSchema).optional(), messages: z.array(z.lazy(() => Messages$inboundSchema)), }); - /** @internal */ export type CreateOpenAIConversation$Outbound = { id?: string | undefined; @@ -978,19 +777,6 @@ export const CreateOpenAIConversation$outboundSchema: z.ZodType< messages: z.array(z.lazy(() => Messages$outboundSchema)), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateOpenAIConversation$ { - /** @deprecated use `CreateOpenAIConversation$inboundSchema` instead. */ - export const inboundSchema = CreateOpenAIConversation$inboundSchema; - /** @deprecated use `CreateOpenAIConversation$outboundSchema` instead. */ - export const outboundSchema = CreateOpenAIConversation$outboundSchema; - /** @deprecated use `CreateOpenAIConversation$Outbound` instead. */ - export type Outbound = CreateOpenAIConversation$Outbound; -} - export function createOpenAIConversationToJSON( createOpenAIConversation: CreateOpenAIConversation, ): string { @@ -998,7 +784,6 @@ export function createOpenAIConversationToJSON( CreateOpenAIConversation$outboundSchema.parse(createOpenAIConversation), ); } - export function createOpenAIConversationFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/createsupportcopilotconversation.ts b/src/models/components/createsupportcopilotconversation.ts index 045c4d1d..d5fc3895 100644 --- a/src/models/components/createsupportcopilotconversation.ts +++ b/src/models/components/createsupportcopilotconversation.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { collectExtraKeys as collectExtraKeys$, @@ -53,7 +53,7 @@ export type CreateSupportCopilotConversationUserProperties = { * The type of user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. */ userType?: string | null | undefined; - additionalProperties?: { [k: string]: any }; + additionalProperties?: { [k: string]: any } | undefined; }; export const CreateSupportCopilotConversationVisibility = { @@ -126,7 +126,7 @@ export type CreateSupportCopilotConversationMessagesUserProperties = { * The type of user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. */ userType?: string | null | undefined; - additionalProperties?: { [k: string]: any }; + additionalProperties?: { [k: string]: any } | undefined; }; export type CreateSupportCopilotConversationMessages = { @@ -195,32 +195,17 @@ export const CreateSupportCopilotConversationType$inboundSchema: z.ZodNativeEnum = z.nativeEnum( CreateSupportCopilotConversationType, ); - /** @internal */ export const CreateSupportCopilotConversationType$outboundSchema: z.ZodNativeEnum = CreateSupportCopilotConversationType$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateSupportCopilotConversationType$ { - /** @deprecated use `CreateSupportCopilotConversationType$inboundSchema` instead. */ - export const inboundSchema = - CreateSupportCopilotConversationType$inboundSchema; - /** @deprecated use `CreateSupportCopilotConversationType$outboundSchema` instead. */ - export const outboundSchema = - CreateSupportCopilotConversationType$outboundSchema; -} - /** @internal */ export const CreateSupportCopilotConversationId$inboundSchema: z.ZodType< CreateSupportCopilotConversationId, z.ZodTypeDef, unknown > = z.union([z.string(), z.number()]); - /** @internal */ export type CreateSupportCopilotConversationId$Outbound = string | number; @@ -231,20 +216,6 @@ export const CreateSupportCopilotConversationId$outboundSchema: z.ZodType< CreateSupportCopilotConversationId > = z.union([z.string(), z.number()]); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateSupportCopilotConversationId$ { - /** @deprecated use `CreateSupportCopilotConversationId$inboundSchema` instead. */ - export const inboundSchema = CreateSupportCopilotConversationId$inboundSchema; - /** @deprecated use `CreateSupportCopilotConversationId$outboundSchema` instead. */ - export const outboundSchema = - CreateSupportCopilotConversationId$outboundSchema; - /** @deprecated use `CreateSupportCopilotConversationId$Outbound` instead. */ - export type Outbound = CreateSupportCopilotConversationId$Outbound; -} - export function createSupportCopilotConversationIdToJSON( createSupportCopilotConversationId: CreateSupportCopilotConversationId, ): string { @@ -254,7 +225,6 @@ export function createSupportCopilotConversationIdToJSON( ), ); } - export function createSupportCopilotConversationIdFromJSON( jsonString: string, ): SafeParseResult { @@ -272,7 +242,6 @@ export const CreateSupportCopilotConversationUserId$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.union([z.string(), z.number()]); - /** @internal */ export type CreateSupportCopilotConversationUserId$Outbound = string | number; @@ -283,21 +252,6 @@ export const CreateSupportCopilotConversationUserId$outboundSchema: z.ZodType< CreateSupportCopilotConversationUserId > = z.union([z.string(), z.number()]); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateSupportCopilotConversationUserId$ { - /** @deprecated use `CreateSupportCopilotConversationUserId$inboundSchema` instead. */ - export const inboundSchema = - CreateSupportCopilotConversationUserId$inboundSchema; - /** @deprecated use `CreateSupportCopilotConversationUserId$outboundSchema` instead. */ - export const outboundSchema = - CreateSupportCopilotConversationUserId$outboundSchema; - /** @deprecated use `CreateSupportCopilotConversationUserId$Outbound` instead. */ - export type Outbound = CreateSupportCopilotConversationUserId$Outbound; -} - export function createSupportCopilotConversationUserIdToJSON( createSupportCopilotConversationUserId: CreateSupportCopilotConversationUserId, @@ -308,7 +262,6 @@ export function createSupportCopilotConversationUserIdToJSON( ), ); } - export function createSupportCopilotConversationUserIdFromJSON( jsonString: string, ): SafeParseResult { @@ -337,7 +290,6 @@ export const CreateSupportCopilotConversationUserProperties$inboundSchema: "additionalProperties", true, ); - /** @internal */ export type CreateSupportCopilotConversationUserProperties$Outbound = { id?: string | number | null | undefined; @@ -360,7 +312,7 @@ export const CreateSupportCopilotConversationUserProperties$outboundSchema: userId: z.nullable(z.union([z.string(), z.number()])).optional(), supportAgentName: z.nullable(z.string()).optional(), userType: z.nullable(z.string()).optional(), - additionalProperties: z.record(z.any()), + additionalProperties: z.record(z.any()).optional(), }).transform((v) => { return { ...v.additionalProperties, @@ -370,22 +322,6 @@ export const CreateSupportCopilotConversationUserProperties$outboundSchema: }; }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateSupportCopilotConversationUserProperties$ { - /** @deprecated use `CreateSupportCopilotConversationUserProperties$inboundSchema` instead. */ - export const inboundSchema = - CreateSupportCopilotConversationUserProperties$inboundSchema; - /** @deprecated use `CreateSupportCopilotConversationUserProperties$outboundSchema` instead. */ - export const outboundSchema = - CreateSupportCopilotConversationUserProperties$outboundSchema; - /** @deprecated use `CreateSupportCopilotConversationUserProperties$Outbound` instead. */ - export type Outbound = - CreateSupportCopilotConversationUserProperties$Outbound; -} - export function createSupportCopilotConversationUserPropertiesToJSON( createSupportCopilotConversationUserProperties: CreateSupportCopilotConversationUserProperties, @@ -396,7 +332,6 @@ export function createSupportCopilotConversationUserPropertiesToJSON( ), ); } - export function createSupportCopilotConversationUserPropertiesFromJSON( jsonString: string, ): SafeParseResult< @@ -417,49 +352,21 @@ export function createSupportCopilotConversationUserPropertiesFromJSON( export const CreateSupportCopilotConversationVisibility$inboundSchema: z.ZodNativeEnum = z .nativeEnum(CreateSupportCopilotConversationVisibility); - /** @internal */ export const CreateSupportCopilotConversationVisibility$outboundSchema: z.ZodNativeEnum = CreateSupportCopilotConversationVisibility$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateSupportCopilotConversationVisibility$ { - /** @deprecated use `CreateSupportCopilotConversationVisibility$inboundSchema` instead. */ - export const inboundSchema = - CreateSupportCopilotConversationVisibility$inboundSchema; - /** @deprecated use `CreateSupportCopilotConversationVisibility$outboundSchema` instead. */ - export const outboundSchema = - CreateSupportCopilotConversationVisibility$outboundSchema; -} - /** @internal */ export const CreateSupportCopilotConversationType1$inboundSchema: z.ZodNativeEnum = z.nativeEnum( CreateSupportCopilotConversationType1, ); - /** @internal */ export const CreateSupportCopilotConversationType1$outboundSchema: z.ZodNativeEnum = CreateSupportCopilotConversationType1$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateSupportCopilotConversationType1$ { - /** @deprecated use `CreateSupportCopilotConversationType1$inboundSchema` instead. */ - export const inboundSchema = - CreateSupportCopilotConversationType1$inboundSchema; - /** @deprecated use `CreateSupportCopilotConversationType1$outboundSchema` instead. */ - export const outboundSchema = - CreateSupportCopilotConversationType1$outboundSchema; -} - /** @internal */ export const CreateSupportCopilotConversationMessagesType$inboundSchema: z.ZodType< @@ -470,7 +377,6 @@ export const CreateSupportCopilotConversationMessagesType$inboundSchema: CreateSupportCopilotConversationType1$inboundSchema, z.string(), ]); - /** @internal */ export type CreateSupportCopilotConversationMessagesType$Outbound = | string @@ -487,21 +393,6 @@ export const CreateSupportCopilotConversationMessagesType$outboundSchema: z.string(), ]); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateSupportCopilotConversationMessagesType$ { - /** @deprecated use `CreateSupportCopilotConversationMessagesType$inboundSchema` instead. */ - export const inboundSchema = - CreateSupportCopilotConversationMessagesType$inboundSchema; - /** @deprecated use `CreateSupportCopilotConversationMessagesType$outboundSchema` instead. */ - export const outboundSchema = - CreateSupportCopilotConversationMessagesType$outboundSchema; - /** @deprecated use `CreateSupportCopilotConversationMessagesType$Outbound` instead. */ - export type Outbound = CreateSupportCopilotConversationMessagesType$Outbound; -} - export function createSupportCopilotConversationMessagesTypeToJSON( createSupportCopilotConversationMessagesType: CreateSupportCopilotConversationMessagesType, @@ -512,7 +403,6 @@ export function createSupportCopilotConversationMessagesTypeToJSON( ), ); } - export function createSupportCopilotConversationMessagesTypeFromJSON( jsonString: string, ): SafeParseResult< @@ -544,7 +434,6 @@ export const CreateSupportCopilotConversationLinks$inboundSchema: z.ZodType< ).optional(), breadcrumbs: z.nullable(z.array(z.string())).optional(), }); - /** @internal */ export type CreateSupportCopilotConversationLinks$Outbound = { label?: string | null | undefined; @@ -571,21 +460,6 @@ export const CreateSupportCopilotConversationLinks$outboundSchema: z.ZodType< breadcrumbs: z.nullable(z.array(z.string())).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateSupportCopilotConversationLinks$ { - /** @deprecated use `CreateSupportCopilotConversationLinks$inboundSchema` instead. */ - export const inboundSchema = - CreateSupportCopilotConversationLinks$inboundSchema; - /** @deprecated use `CreateSupportCopilotConversationLinks$outboundSchema` instead. */ - export const outboundSchema = - CreateSupportCopilotConversationLinks$outboundSchema; - /** @deprecated use `CreateSupportCopilotConversationLinks$Outbound` instead. */ - export type Outbound = CreateSupportCopilotConversationLinks$Outbound; -} - export function createSupportCopilotConversationLinksToJSON( createSupportCopilotConversationLinks: CreateSupportCopilotConversationLinks, ): string { @@ -595,7 +469,6 @@ export function createSupportCopilotConversationLinksToJSON( ), ); } - export function createSupportCopilotConversationLinksFromJSON( jsonString: string, ): SafeParseResult { @@ -611,7 +484,6 @@ export function createSupportCopilotConversationLinksFromJSON( export const CreateSupportCopilotConversationMessagesId$inboundSchema: z.ZodType = z.union([z.string(), z.number()]); - /** @internal */ export type CreateSupportCopilotConversationMessagesId$Outbound = | string @@ -625,21 +497,6 @@ export const CreateSupportCopilotConversationMessagesId$outboundSchema: CreateSupportCopilotConversationMessagesId > = z.union([z.string(), z.number()]); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateSupportCopilotConversationMessagesId$ { - /** @deprecated use `CreateSupportCopilotConversationMessagesId$inboundSchema` instead. */ - export const inboundSchema = - CreateSupportCopilotConversationMessagesId$inboundSchema; - /** @deprecated use `CreateSupportCopilotConversationMessagesId$outboundSchema` instead. */ - export const outboundSchema = - CreateSupportCopilotConversationMessagesId$outboundSchema; - /** @deprecated use `CreateSupportCopilotConversationMessagesId$Outbound` instead. */ - export type Outbound = CreateSupportCopilotConversationMessagesId$Outbound; -} - export function createSupportCopilotConversationMessagesIdToJSON( createSupportCopilotConversationMessagesId: CreateSupportCopilotConversationMessagesId, @@ -650,7 +507,6 @@ export function createSupportCopilotConversationMessagesIdToJSON( ), ); } - export function createSupportCopilotConversationMessagesIdFromJSON( jsonString: string, ): SafeParseResult< @@ -674,7 +530,6 @@ export const CreateSupportCopilotConversationMessagesUserId$inboundSchema: z.ZodTypeDef, unknown > = z.union([z.string(), z.number()]); - /** @internal */ export type CreateSupportCopilotConversationMessagesUserId$Outbound = | string @@ -688,22 +543,6 @@ export const CreateSupportCopilotConversationMessagesUserId$outboundSchema: CreateSupportCopilotConversationMessagesUserId > = z.union([z.string(), z.number()]); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateSupportCopilotConversationMessagesUserId$ { - /** @deprecated use `CreateSupportCopilotConversationMessagesUserId$inboundSchema` instead. */ - export const inboundSchema = - CreateSupportCopilotConversationMessagesUserId$inboundSchema; - /** @deprecated use `CreateSupportCopilotConversationMessagesUserId$outboundSchema` instead. */ - export const outboundSchema = - CreateSupportCopilotConversationMessagesUserId$outboundSchema; - /** @deprecated use `CreateSupportCopilotConversationMessagesUserId$Outbound` instead. */ - export type Outbound = - CreateSupportCopilotConversationMessagesUserId$Outbound; -} - export function createSupportCopilotConversationMessagesUserIdToJSON( createSupportCopilotConversationMessagesUserId: CreateSupportCopilotConversationMessagesUserId, @@ -714,7 +553,6 @@ export function createSupportCopilotConversationMessagesUserIdToJSON( ), ); } - export function createSupportCopilotConversationMessagesUserIdFromJSON( jsonString: string, ): SafeParseResult< @@ -748,7 +586,6 @@ export const CreateSupportCopilotConversationMessagesUserProperties$inboundSchem "additionalProperties", true, ); - /** @internal */ export type CreateSupportCopilotConversationMessagesUserProperties$Outbound = { id?: string | number | null | undefined; @@ -771,7 +608,7 @@ export const CreateSupportCopilotConversationMessagesUserProperties$outboundSche userId: z.nullable(z.union([z.string(), z.number()])).optional(), supportAgentName: z.nullable(z.string()).optional(), userType: z.nullable(z.string()).optional(), - additionalProperties: z.record(z.any()), + additionalProperties: z.record(z.any()).optional(), }).transform((v) => { return { ...v.additionalProperties, @@ -781,22 +618,6 @@ export const CreateSupportCopilotConversationMessagesUserProperties$outboundSche }; }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateSupportCopilotConversationMessagesUserProperties$ { - /** @deprecated use `CreateSupportCopilotConversationMessagesUserProperties$inboundSchema` instead. */ - export const inboundSchema = - CreateSupportCopilotConversationMessagesUserProperties$inboundSchema; - /** @deprecated use `CreateSupportCopilotConversationMessagesUserProperties$outboundSchema` instead. */ - export const outboundSchema = - CreateSupportCopilotConversationMessagesUserProperties$outboundSchema; - /** @deprecated use `CreateSupportCopilotConversationMessagesUserProperties$Outbound` instead. */ - export type Outbound = - CreateSupportCopilotConversationMessagesUserProperties$Outbound; -} - export function createSupportCopilotConversationMessagesUserPropertiesToJSON( createSupportCopilotConversationMessagesUserProperties: CreateSupportCopilotConversationMessagesUserProperties, @@ -807,7 +628,6 @@ export function createSupportCopilotConversationMessagesUserPropertiesToJSON( ), ); } - export function createSupportCopilotConversationMessagesUserPropertiesFromJSON( jsonString: string, ): SafeParseResult< @@ -851,7 +671,6 @@ export const CreateSupportCopilotConversationMessages$inboundSchema: z.ZodType< ), ).optional(), }); - /** @internal */ export type CreateSupportCopilotConversationMessages$Outbound = { id?: string | undefined; @@ -898,21 +717,6 @@ export const CreateSupportCopilotConversationMessages$outboundSchema: z.ZodType< ).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateSupportCopilotConversationMessages$ { - /** @deprecated use `CreateSupportCopilotConversationMessages$inboundSchema` instead. */ - export const inboundSchema = - CreateSupportCopilotConversationMessages$inboundSchema; - /** @deprecated use `CreateSupportCopilotConversationMessages$outboundSchema` instead. */ - export const outboundSchema = - CreateSupportCopilotConversationMessages$outboundSchema; - /** @deprecated use `CreateSupportCopilotConversationMessages$Outbound` instead. */ - export type Outbound = CreateSupportCopilotConversationMessages$Outbound; -} - export function createSupportCopilotConversationMessagesToJSON( createSupportCopilotConversationMessages: CreateSupportCopilotConversationMessages, @@ -923,7 +727,6 @@ export function createSupportCopilotConversationMessagesToJSON( ), ); } - export function createSupportCopilotConversationMessagesFromJSON( jsonString: string, ): SafeParseResult< @@ -971,7 +774,6 @@ export const CreateSupportCopilotConversation$inboundSchema: z.ZodType< z.lazy(() => CreateSupportCopilotConversationMessages$inboundSchema), ), }); - /** @internal */ export type CreateSupportCopilotConversation$Outbound = { id?: string | undefined; @@ -1021,19 +823,6 @@ export const CreateSupportCopilotConversation$outboundSchema: z.ZodType< ), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateSupportCopilotConversation$ { - /** @deprecated use `CreateSupportCopilotConversation$inboundSchema` instead. */ - export const inboundSchema = CreateSupportCopilotConversation$inboundSchema; - /** @deprecated use `CreateSupportCopilotConversation$outboundSchema` instead. */ - export const outboundSchema = CreateSupportCopilotConversation$outboundSchema; - /** @deprecated use `CreateSupportCopilotConversation$Outbound` instead. */ - export type Outbound = CreateSupportCopilotConversation$Outbound; -} - export function createSupportCopilotConversationToJSON( createSupportCopilotConversation: CreateSupportCopilotConversation, ): string { @@ -1043,7 +832,6 @@ export function createSupportCopilotConversationToJSON( ), ); } - export function createSupportCopilotConversationFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/createsupportticketconversation.ts b/src/models/components/createsupportticketconversation.ts index c2588225..b8861210 100644 --- a/src/models/components/createsupportticketconversation.ts +++ b/src/models/components/createsupportticketconversation.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { collectExtraKeys as collectExtraKeys$, @@ -53,7 +53,7 @@ export type CreateSupportTicketConversationUserProperties = { * The type of user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. */ userType?: string | null | undefined; - additionalProperties?: { [k: string]: any }; + additionalProperties?: { [k: string]: any } | undefined; }; export const CreateSupportTicketConversationVisibility = { @@ -126,7 +126,7 @@ export type CreateSupportTicketConversationMessagesUserProperties = { * The type of user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. */ userType?: string | null | undefined; - additionalProperties?: { [k: string]: any }; + additionalProperties?: { [k: string]: any } | undefined; }; export type CreateSupportTicketConversationMessages = { @@ -194,32 +194,17 @@ export type CreateSupportTicketConversation = { export const CreateSupportTicketConversationType$inboundSchema: z.ZodNativeEnum< typeof CreateSupportTicketConversationType > = z.nativeEnum(CreateSupportTicketConversationType); - /** @internal */ export const CreateSupportTicketConversationType$outboundSchema: z.ZodNativeEnum = CreateSupportTicketConversationType$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateSupportTicketConversationType$ { - /** @deprecated use `CreateSupportTicketConversationType$inboundSchema` instead. */ - export const inboundSchema = - CreateSupportTicketConversationType$inboundSchema; - /** @deprecated use `CreateSupportTicketConversationType$outboundSchema` instead. */ - export const outboundSchema = - CreateSupportTicketConversationType$outboundSchema; -} - /** @internal */ export const CreateSupportTicketConversationId$inboundSchema: z.ZodType< CreateSupportTicketConversationId, z.ZodTypeDef, unknown > = z.union([z.string(), z.number()]); - /** @internal */ export type CreateSupportTicketConversationId$Outbound = string | number; @@ -230,20 +215,6 @@ export const CreateSupportTicketConversationId$outboundSchema: z.ZodType< CreateSupportTicketConversationId > = z.union([z.string(), z.number()]); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateSupportTicketConversationId$ { - /** @deprecated use `CreateSupportTicketConversationId$inboundSchema` instead. */ - export const inboundSchema = CreateSupportTicketConversationId$inboundSchema; - /** @deprecated use `CreateSupportTicketConversationId$outboundSchema` instead. */ - export const outboundSchema = - CreateSupportTicketConversationId$outboundSchema; - /** @deprecated use `CreateSupportTicketConversationId$Outbound` instead. */ - export type Outbound = CreateSupportTicketConversationId$Outbound; -} - export function createSupportTicketConversationIdToJSON( createSupportTicketConversationId: CreateSupportTicketConversationId, ): string { @@ -253,7 +224,6 @@ export function createSupportTicketConversationIdToJSON( ), ); } - export function createSupportTicketConversationIdFromJSON( jsonString: string, ): SafeParseResult { @@ -270,7 +240,6 @@ export const CreateSupportTicketConversationUserId$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.union([z.string(), z.number()]); - /** @internal */ export type CreateSupportTicketConversationUserId$Outbound = string | number; @@ -281,21 +250,6 @@ export const CreateSupportTicketConversationUserId$outboundSchema: z.ZodType< CreateSupportTicketConversationUserId > = z.union([z.string(), z.number()]); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateSupportTicketConversationUserId$ { - /** @deprecated use `CreateSupportTicketConversationUserId$inboundSchema` instead. */ - export const inboundSchema = - CreateSupportTicketConversationUserId$inboundSchema; - /** @deprecated use `CreateSupportTicketConversationUserId$outboundSchema` instead. */ - export const outboundSchema = - CreateSupportTicketConversationUserId$outboundSchema; - /** @deprecated use `CreateSupportTicketConversationUserId$Outbound` instead. */ - export type Outbound = CreateSupportTicketConversationUserId$Outbound; -} - export function createSupportTicketConversationUserIdToJSON( createSupportTicketConversationUserId: CreateSupportTicketConversationUserId, ): string { @@ -305,7 +259,6 @@ export function createSupportTicketConversationUserIdToJSON( ), ); } - export function createSupportTicketConversationUserIdFromJSON( jsonString: string, ): SafeParseResult { @@ -334,7 +287,6 @@ export const CreateSupportTicketConversationUserProperties$inboundSchema: "additionalProperties", true, ); - /** @internal */ export type CreateSupportTicketConversationUserProperties$Outbound = { id?: string | number | null | undefined; @@ -357,7 +309,7 @@ export const CreateSupportTicketConversationUserProperties$outboundSchema: userId: z.nullable(z.union([z.string(), z.number()])).optional(), supportAgentName: z.nullable(z.string()).optional(), userType: z.nullable(z.string()).optional(), - additionalProperties: z.record(z.any()), + additionalProperties: z.record(z.any()).optional(), }).transform((v) => { return { ...v.additionalProperties, @@ -367,21 +319,6 @@ export const CreateSupportTicketConversationUserProperties$outboundSchema: }; }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateSupportTicketConversationUserProperties$ { - /** @deprecated use `CreateSupportTicketConversationUserProperties$inboundSchema` instead. */ - export const inboundSchema = - CreateSupportTicketConversationUserProperties$inboundSchema; - /** @deprecated use `CreateSupportTicketConversationUserProperties$outboundSchema` instead. */ - export const outboundSchema = - CreateSupportTicketConversationUserProperties$outboundSchema; - /** @deprecated use `CreateSupportTicketConversationUserProperties$Outbound` instead. */ - export type Outbound = CreateSupportTicketConversationUserProperties$Outbound; -} - export function createSupportTicketConversationUserPropertiesToJSON( createSupportTicketConversationUserProperties: CreateSupportTicketConversationUserProperties, @@ -392,7 +329,6 @@ export function createSupportTicketConversationUserPropertiesToJSON( ), ); } - export function createSupportTicketConversationUserPropertiesFromJSON( jsonString: string, ): SafeParseResult< @@ -413,49 +349,21 @@ export function createSupportTicketConversationUserPropertiesFromJSON( export const CreateSupportTicketConversationVisibility$inboundSchema: z.ZodNativeEnum = z .nativeEnum(CreateSupportTicketConversationVisibility); - /** @internal */ export const CreateSupportTicketConversationVisibility$outboundSchema: z.ZodNativeEnum = CreateSupportTicketConversationVisibility$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateSupportTicketConversationVisibility$ { - /** @deprecated use `CreateSupportTicketConversationVisibility$inboundSchema` instead. */ - export const inboundSchema = - CreateSupportTicketConversationVisibility$inboundSchema; - /** @deprecated use `CreateSupportTicketConversationVisibility$outboundSchema` instead. */ - export const outboundSchema = - CreateSupportTicketConversationVisibility$outboundSchema; -} - /** @internal */ export const CreateSupportTicketConversationType1$inboundSchema: z.ZodNativeEnum = z.nativeEnum( CreateSupportTicketConversationType1, ); - /** @internal */ export const CreateSupportTicketConversationType1$outboundSchema: z.ZodNativeEnum = CreateSupportTicketConversationType1$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateSupportTicketConversationType1$ { - /** @deprecated use `CreateSupportTicketConversationType1$inboundSchema` instead. */ - export const inboundSchema = - CreateSupportTicketConversationType1$inboundSchema; - /** @deprecated use `CreateSupportTicketConversationType1$outboundSchema` instead. */ - export const outboundSchema = - CreateSupportTicketConversationType1$outboundSchema; -} - /** @internal */ export const CreateSupportTicketConversationMessagesType$inboundSchema: z.ZodType< @@ -463,7 +371,6 @@ export const CreateSupportTicketConversationMessagesType$inboundSchema: z.ZodTypeDef, unknown > = z.union([CreateSupportTicketConversationType1$inboundSchema, z.string()]); - /** @internal */ export type CreateSupportTicketConversationMessagesType$Outbound = | string @@ -480,21 +387,6 @@ export const CreateSupportTicketConversationMessagesType$outboundSchema: z.string(), ]); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateSupportTicketConversationMessagesType$ { - /** @deprecated use `CreateSupportTicketConversationMessagesType$inboundSchema` instead. */ - export const inboundSchema = - CreateSupportTicketConversationMessagesType$inboundSchema; - /** @deprecated use `CreateSupportTicketConversationMessagesType$outboundSchema` instead. */ - export const outboundSchema = - CreateSupportTicketConversationMessagesType$outboundSchema; - /** @deprecated use `CreateSupportTicketConversationMessagesType$Outbound` instead. */ - export type Outbound = CreateSupportTicketConversationMessagesType$Outbound; -} - export function createSupportTicketConversationMessagesTypeToJSON( createSupportTicketConversationMessagesType: CreateSupportTicketConversationMessagesType, @@ -505,7 +397,6 @@ export function createSupportTicketConversationMessagesTypeToJSON( ), ); } - export function createSupportTicketConversationMessagesTypeFromJSON( jsonString: string, ): SafeParseResult< @@ -537,7 +428,6 @@ export const CreateSupportTicketConversationLinks$inboundSchema: z.ZodType< ).optional(), breadcrumbs: z.nullable(z.array(z.string())).optional(), }); - /** @internal */ export type CreateSupportTicketConversationLinks$Outbound = { label?: string | null | undefined; @@ -564,21 +454,6 @@ export const CreateSupportTicketConversationLinks$outboundSchema: z.ZodType< breadcrumbs: z.nullable(z.array(z.string())).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateSupportTicketConversationLinks$ { - /** @deprecated use `CreateSupportTicketConversationLinks$inboundSchema` instead. */ - export const inboundSchema = - CreateSupportTicketConversationLinks$inboundSchema; - /** @deprecated use `CreateSupportTicketConversationLinks$outboundSchema` instead. */ - export const outboundSchema = - CreateSupportTicketConversationLinks$outboundSchema; - /** @deprecated use `CreateSupportTicketConversationLinks$Outbound` instead. */ - export type Outbound = CreateSupportTicketConversationLinks$Outbound; -} - export function createSupportTicketConversationLinksToJSON( createSupportTicketConversationLinks: CreateSupportTicketConversationLinks, ): string { @@ -588,7 +463,6 @@ export function createSupportTicketConversationLinksToJSON( ), ); } - export function createSupportTicketConversationLinksFromJSON( jsonString: string, ): SafeParseResult { @@ -606,7 +480,6 @@ export const CreateSupportTicketConversationMessagesId$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.union([z.string(), z.number()]); - /** @internal */ export type CreateSupportTicketConversationMessagesId$Outbound = | string @@ -620,21 +493,6 @@ export const CreateSupportTicketConversationMessagesId$outboundSchema: CreateSupportTicketConversationMessagesId > = z.union([z.string(), z.number()]); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateSupportTicketConversationMessagesId$ { - /** @deprecated use `CreateSupportTicketConversationMessagesId$inboundSchema` instead. */ - export const inboundSchema = - CreateSupportTicketConversationMessagesId$inboundSchema; - /** @deprecated use `CreateSupportTicketConversationMessagesId$outboundSchema` instead. */ - export const outboundSchema = - CreateSupportTicketConversationMessagesId$outboundSchema; - /** @deprecated use `CreateSupportTicketConversationMessagesId$Outbound` instead. */ - export type Outbound = CreateSupportTicketConversationMessagesId$Outbound; -} - export function createSupportTicketConversationMessagesIdToJSON( createSupportTicketConversationMessagesId: CreateSupportTicketConversationMessagesId, @@ -645,7 +503,6 @@ export function createSupportTicketConversationMessagesIdToJSON( ), ); } - export function createSupportTicketConversationMessagesIdFromJSON( jsonString: string, ): SafeParseResult< @@ -669,7 +526,6 @@ export const CreateSupportTicketConversationMessagesUserId$inboundSchema: z.ZodTypeDef, unknown > = z.union([z.string(), z.number()]); - /** @internal */ export type CreateSupportTicketConversationMessagesUserId$Outbound = | string @@ -683,21 +539,6 @@ export const CreateSupportTicketConversationMessagesUserId$outboundSchema: CreateSupportTicketConversationMessagesUserId > = z.union([z.string(), z.number()]); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateSupportTicketConversationMessagesUserId$ { - /** @deprecated use `CreateSupportTicketConversationMessagesUserId$inboundSchema` instead. */ - export const inboundSchema = - CreateSupportTicketConversationMessagesUserId$inboundSchema; - /** @deprecated use `CreateSupportTicketConversationMessagesUserId$outboundSchema` instead. */ - export const outboundSchema = - CreateSupportTicketConversationMessagesUserId$outboundSchema; - /** @deprecated use `CreateSupportTicketConversationMessagesUserId$Outbound` instead. */ - export type Outbound = CreateSupportTicketConversationMessagesUserId$Outbound; -} - export function createSupportTicketConversationMessagesUserIdToJSON( createSupportTicketConversationMessagesUserId: CreateSupportTicketConversationMessagesUserId, @@ -708,7 +549,6 @@ export function createSupportTicketConversationMessagesUserIdToJSON( ), ); } - export function createSupportTicketConversationMessagesUserIdFromJSON( jsonString: string, ): SafeParseResult< @@ -742,7 +582,6 @@ export const CreateSupportTicketConversationMessagesUserProperties$inboundSchema "additionalProperties", true, ); - /** @internal */ export type CreateSupportTicketConversationMessagesUserProperties$Outbound = { id?: string | number | null | undefined; @@ -765,7 +604,7 @@ export const CreateSupportTicketConversationMessagesUserProperties$outboundSchem userId: z.nullable(z.union([z.string(), z.number()])).optional(), supportAgentName: z.nullable(z.string()).optional(), userType: z.nullable(z.string()).optional(), - additionalProperties: z.record(z.any()), + additionalProperties: z.record(z.any()).optional(), }).transform((v) => { return { ...v.additionalProperties, @@ -775,22 +614,6 @@ export const CreateSupportTicketConversationMessagesUserProperties$outboundSchem }; }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateSupportTicketConversationMessagesUserProperties$ { - /** @deprecated use `CreateSupportTicketConversationMessagesUserProperties$inboundSchema` instead. */ - export const inboundSchema = - CreateSupportTicketConversationMessagesUserProperties$inboundSchema; - /** @deprecated use `CreateSupportTicketConversationMessagesUserProperties$outboundSchema` instead. */ - export const outboundSchema = - CreateSupportTicketConversationMessagesUserProperties$outboundSchema; - /** @deprecated use `CreateSupportTicketConversationMessagesUserProperties$Outbound` instead. */ - export type Outbound = - CreateSupportTicketConversationMessagesUserProperties$Outbound; -} - export function createSupportTicketConversationMessagesUserPropertiesToJSON( createSupportTicketConversationMessagesUserProperties: CreateSupportTicketConversationMessagesUserProperties, @@ -801,7 +624,6 @@ export function createSupportTicketConversationMessagesUserPropertiesToJSON( ), ); } - export function createSupportTicketConversationMessagesUserPropertiesFromJSON( jsonString: string, ): SafeParseResult< @@ -846,7 +668,6 @@ export const CreateSupportTicketConversationMessages$inboundSchema: z.ZodType< ), ).optional(), }); - /** @internal */ export type CreateSupportTicketConversationMessages$Outbound = { id?: string | undefined; @@ -893,21 +714,6 @@ export const CreateSupportTicketConversationMessages$outboundSchema: z.ZodType< ).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateSupportTicketConversationMessages$ { - /** @deprecated use `CreateSupportTicketConversationMessages$inboundSchema` instead. */ - export const inboundSchema = - CreateSupportTicketConversationMessages$inboundSchema; - /** @deprecated use `CreateSupportTicketConversationMessages$outboundSchema` instead. */ - export const outboundSchema = - CreateSupportTicketConversationMessages$outboundSchema; - /** @deprecated use `CreateSupportTicketConversationMessages$Outbound` instead. */ - export type Outbound = CreateSupportTicketConversationMessages$Outbound; -} - export function createSupportTicketConversationMessagesToJSON( createSupportTicketConversationMessages: CreateSupportTicketConversationMessages, @@ -918,7 +724,6 @@ export function createSupportTicketConversationMessagesToJSON( ), ); } - export function createSupportTicketConversationMessagesFromJSON( jsonString: string, ): SafeParseResult< @@ -966,7 +771,6 @@ export const CreateSupportTicketConversation$inboundSchema: z.ZodType< z.lazy(() => CreateSupportTicketConversationMessages$inboundSchema), ), }); - /** @internal */ export type CreateSupportTicketConversation$Outbound = { id?: string | undefined; @@ -1016,19 +820,6 @@ export const CreateSupportTicketConversation$outboundSchema: z.ZodType< ), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateSupportTicketConversation$ { - /** @deprecated use `CreateSupportTicketConversation$inboundSchema` instead. */ - export const inboundSchema = CreateSupportTicketConversation$inboundSchema; - /** @deprecated use `CreateSupportTicketConversation$outboundSchema` instead. */ - export const outboundSchema = CreateSupportTicketConversation$outboundSchema; - /** @deprecated use `CreateSupportTicketConversation$Outbound` instead. */ - export type Outbound = CreateSupportTicketConversation$Outbound; -} - export function createSupportTicketConversationToJSON( createSupportTicketConversation: CreateSupportTicketConversation, ): string { @@ -1038,7 +829,6 @@ export function createSupportTicketConversationToJSON( ), ); } - export function createSupportTicketConversationFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/eventsaggregationselection.ts b/src/models/components/eventsaggregationselection.ts index f7786afa..3752f37a 100644 --- a/src/models/components/eventsaggregationselection.ts +++ b/src/models/components/eventsaggregationselection.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -56,68 +56,30 @@ export type EventsAggregationSelection = { export const EventsAggregationSelectionType$inboundSchema: z.ZodNativeEnum< typeof EventsAggregationSelectionType > = z.nativeEnum(EventsAggregationSelectionType); - /** @internal */ export const EventsAggregationSelectionType$outboundSchema: z.ZodNativeEnum< typeof EventsAggregationSelectionType > = EventsAggregationSelectionType$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EventsAggregationSelectionType$ { - /** @deprecated use `EventsAggregationSelectionType$inboundSchema` instead. */ - export const inboundSchema = EventsAggregationSelectionType$inboundSchema; - /** @deprecated use `EventsAggregationSelectionType$outboundSchema` instead. */ - export const outboundSchema = EventsAggregationSelectionType$outboundSchema; -} - /** @internal */ export const EventsAggregationSelectionAggregation$inboundSchema: z.ZodNativeEnum = z.nativeEnum( EventsAggregationSelectionAggregation, ); - /** @internal */ export const EventsAggregationSelectionAggregation$outboundSchema: z.ZodNativeEnum = EventsAggregationSelectionAggregation$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EventsAggregationSelectionAggregation$ { - /** @deprecated use `EventsAggregationSelectionAggregation$inboundSchema` instead. */ - export const inboundSchema = - EventsAggregationSelectionAggregation$inboundSchema; - /** @deprecated use `EventsAggregationSelectionAggregation$outboundSchema` instead. */ - export const outboundSchema = - EventsAggregationSelectionAggregation$outboundSchema; -} - /** @internal */ export const EventsAggregationSelectionField$inboundSchema: z.ZodNativeEnum< typeof EventsAggregationSelectionField > = z.nativeEnum(EventsAggregationSelectionField); - /** @internal */ export const EventsAggregationSelectionField$outboundSchema: z.ZodNativeEnum< typeof EventsAggregationSelectionField > = EventsAggregationSelectionField$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EventsAggregationSelectionField$ { - /** @deprecated use `EventsAggregationSelectionField$inboundSchema` instead. */ - export const inboundSchema = EventsAggregationSelectionField$inboundSchema; - /** @deprecated use `EventsAggregationSelectionField$outboundSchema` instead. */ - export const outboundSchema = EventsAggregationSelectionField$outboundSchema; -} - /** @internal */ export const EventsAggregationSelection$inboundSchema: z.ZodType< EventsAggregationSelection, @@ -129,7 +91,6 @@ export const EventsAggregationSelection$inboundSchema: z.ZodType< field: EventsAggregationSelectionField$inboundSchema.optional(), path: z.array(z.string()).optional(), }); - /** @internal */ export type EventsAggregationSelection$Outbound = { type: string; @@ -150,19 +111,6 @@ export const EventsAggregationSelection$outboundSchema: z.ZodType< path: z.array(z.string()).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EventsAggregationSelection$ { - /** @deprecated use `EventsAggregationSelection$inboundSchema` instead. */ - export const inboundSchema = EventsAggregationSelection$inboundSchema; - /** @deprecated use `EventsAggregationSelection$outboundSchema` instead. */ - export const outboundSchema = EventsAggregationSelection$outboundSchema; - /** @deprecated use `EventsAggregationSelection$Outbound` instead. */ - export type Outbound = EventsAggregationSelection$Outbound; -} - export function eventsAggregationSelectionToJSON( eventsAggregationSelection: EventsAggregationSelection, ): string { @@ -170,7 +118,6 @@ export function eventsAggregationSelectionToJSON( EventsAggregationSelection$outboundSchema.parse(eventsAggregationSelection), ); } - export function eventsAggregationSelectionFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/eventsfield.ts b/src/models/components/eventsfield.ts index 17da9b4d..1456771f 100644 --- a/src/models/components/eventsfield.ts +++ b/src/models/components/eventsfield.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; /** @@ -30,18 +30,6 @@ export type EventsField = ClosedEnum; /** @internal */ export const EventsField$inboundSchema: z.ZodNativeEnum = z .nativeEnum(EventsField); - /** @internal */ export const EventsField$outboundSchema: z.ZodNativeEnum = EventsField$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EventsField$ { - /** @deprecated use `EventsField$inboundSchema` instead. */ - export const inboundSchema = EventsField$inboundSchema; - /** @deprecated use `EventsField$outboundSchema` instead. */ - export const outboundSchema = EventsField$outboundSchema; -} diff --git a/src/models/components/eventsfilter.ts b/src/models/components/eventsfilter.ts index be0b88b5..dc7e92f7 100644 --- a/src/models/components/eventsfilter.ts +++ b/src/models/components/eventsfilter.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -40,7 +40,6 @@ export const EventsFilter$inboundSchema: z.ZodType< z.lazy(() => EventsFilterAND$inboundSchema), z.lazy(() => EventsFilterOR$inboundSchema), ]); - /** @internal */ export type EventsFilter$Outbound = | EventsFilterCondition$Outbound @@ -58,23 +57,9 @@ export const EventsFilter$outboundSchema: z.ZodType< z.lazy(() => EventsFilterOR$outboundSchema), ]); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EventsFilter$ { - /** @deprecated use `EventsFilter$inboundSchema` instead. */ - export const inboundSchema = EventsFilter$inboundSchema; - /** @deprecated use `EventsFilter$outboundSchema` instead. */ - export const outboundSchema = EventsFilter$outboundSchema; - /** @deprecated use `EventsFilter$Outbound` instead. */ - export type Outbound = EventsFilter$Outbound; -} - export function eventsFilterToJSON(eventsFilter: EventsFilter): string { return JSON.stringify(EventsFilter$outboundSchema.parse(eventsFilter)); } - export function eventsFilterFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/eventsfilterand.ts b/src/models/components/eventsfilterand.ts index f29c059a..0deeee8e 100644 --- a/src/models/components/eventsfilterand.ts +++ b/src/models/components/eventsfilterand.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -33,7 +33,6 @@ export const EventsFilterAND$inboundSchema: z.ZodType< > = z.object({ and: z.array(z.lazy(() => EventsFilter$inboundSchema)), }); - /** @internal */ export type EventsFilterAND$Outbound = { and: Array; @@ -48,25 +47,11 @@ export const EventsFilterAND$outboundSchema: z.ZodType< and: z.array(z.lazy(() => EventsFilter$outboundSchema)), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EventsFilterAND$ { - /** @deprecated use `EventsFilterAND$inboundSchema` instead. */ - export const inboundSchema = EventsFilterAND$inboundSchema; - /** @deprecated use `EventsFilterAND$outboundSchema` instead. */ - export const outboundSchema = EventsFilterAND$outboundSchema; - /** @deprecated use `EventsFilterAND$Outbound` instead. */ - export type Outbound = EventsFilterAND$Outbound; -} - export function eventsFilterANDToJSON( eventsFilterAND: EventsFilterAND, ): string { return JSON.stringify(EventsFilterAND$outboundSchema.parse(eventsFilterAND)); } - export function eventsFilterANDFromJSON( jsonString: string, ): SafeParseResult { @@ -83,7 +68,6 @@ export const EventsFilterANDAND$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.lazy(() => EventsFilter$inboundSchema); - /** @internal */ export type EventsFilterANDAND$Outbound = EventsFilter$Outbound; @@ -94,19 +78,6 @@ export const EventsFilterANDAND$outboundSchema: z.ZodType< EventsFilterANDAND > = z.lazy(() => EventsFilter$outboundSchema); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EventsFilterANDAND$ { - /** @deprecated use `EventsFilterANDAND$inboundSchema` instead. */ - export const inboundSchema = EventsFilterANDAND$inboundSchema; - /** @deprecated use `EventsFilterANDAND$outboundSchema` instead. */ - export const outboundSchema = EventsFilterANDAND$outboundSchema; - /** @deprecated use `EventsFilterANDAND$Outbound` instead. */ - export type Outbound = EventsFilterANDAND$Outbound; -} - export function eventsFilterANDANDToJSON( eventsFilterANDAND: EventsFilterANDAND, ): string { @@ -114,7 +85,6 @@ export function eventsFilterANDANDToJSON( EventsFilterANDAND$outboundSchema.parse(eventsFilterANDAND), ); } - export function eventsFilterANDANDFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/eventsfiltercondition.ts b/src/models/components/eventsfiltercondition.ts index 7bc66ce9..03fa0713 100644 --- a/src/models/components/eventsfiltercondition.ts +++ b/src/models/components/eventsfiltercondition.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -57,7 +57,6 @@ export type EventsFilterCondition = { /** @internal */ export const Value4$inboundSchema: z.ZodType = z .union([z.string(), z.number(), z.boolean()]); - /** @internal */ export type Value4$Outbound = string | number | boolean; @@ -68,23 +67,9 @@ export const Value4$outboundSchema: z.ZodType< Value4 > = z.union([z.string(), z.number(), z.boolean()]); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Value4$ { - /** @deprecated use `Value4$inboundSchema` instead. */ - export const inboundSchema = Value4$inboundSchema; - /** @deprecated use `Value4$outboundSchema` instead. */ - export const outboundSchema = Value4$outboundSchema; - /** @deprecated use `Value4$Outbound` instead. */ - export type Outbound = Value4$Outbound; -} - export function value4ToJSON(value4: Value4): string { return JSON.stringify(Value4$outboundSchema.parse(value4)); } - export function value4FromJSON( jsonString: string, ): SafeParseResult { @@ -106,7 +91,6 @@ export const EventsFilterConditionValueValue$inboundSchema: z.ZodType< z.boolean(), z.array(z.nullable(z.union([z.string(), z.number(), z.boolean()]))), ]); - /** @internal */ export type EventsFilterConditionValueValue$Outbound = | string @@ -126,19 +110,6 @@ export const EventsFilterConditionValueValue$outboundSchema: z.ZodType< z.array(z.nullable(z.union([z.string(), z.number(), z.boolean()]))), ]); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EventsFilterConditionValueValue$ { - /** @deprecated use `EventsFilterConditionValueValue$inboundSchema` instead. */ - export const inboundSchema = EventsFilterConditionValueValue$inboundSchema; - /** @deprecated use `EventsFilterConditionValueValue$outboundSchema` instead. */ - export const outboundSchema = EventsFilterConditionValueValue$outboundSchema; - /** @deprecated use `EventsFilterConditionValueValue$Outbound` instead. */ - export type Outbound = EventsFilterConditionValueValue$Outbound; -} - export function eventsFilterConditionValueValueToJSON( eventsFilterConditionValueValue: EventsFilterConditionValueValue, ): string { @@ -148,7 +119,6 @@ export function eventsFilterConditionValueValueToJSON( ), ); } - export function eventsFilterConditionValueValueFromJSON( jsonString: string, ): SafeParseResult { @@ -175,7 +145,6 @@ export const EventsFilterConditionValue7$inboundSchema: z.ZodType< ]), ), }); - /** @internal */ export type EventsFilterConditionValue7$Outbound = { path: Array; @@ -204,19 +173,6 @@ export const EventsFilterConditionValue7$outboundSchema: z.ZodType< ), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EventsFilterConditionValue7$ { - /** @deprecated use `EventsFilterConditionValue7$inboundSchema` instead. */ - export const inboundSchema = EventsFilterConditionValue7$inboundSchema; - /** @deprecated use `EventsFilterConditionValue7$outboundSchema` instead. */ - export const outboundSchema = EventsFilterConditionValue7$outboundSchema; - /** @deprecated use `EventsFilterConditionValue7$Outbound` instead. */ - export type Outbound = EventsFilterConditionValue7$Outbound; -} - export function eventsFilterConditionValue7ToJSON( eventsFilterConditionValue7: EventsFilterConditionValue7, ): string { @@ -226,7 +182,6 @@ export function eventsFilterConditionValue7ToJSON( ), ); } - export function eventsFilterConditionValue7FromJSON( jsonString: string, ): SafeParseResult { @@ -247,7 +202,6 @@ export const EventsFilterConditionCondition$inboundSchema: z.ZodType< operator: FilterOperator$inboundSchema, value: z.any().optional(), }); - /** @internal */ export type EventsFilterConditionCondition$Outbound = { field: string; @@ -266,19 +220,6 @@ export const EventsFilterConditionCondition$outboundSchema: z.ZodType< value: z.any().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EventsFilterConditionCondition$ { - /** @deprecated use `EventsFilterConditionCondition$inboundSchema` instead. */ - export const inboundSchema = EventsFilterConditionCondition$inboundSchema; - /** @deprecated use `EventsFilterConditionCondition$outboundSchema` instead. */ - export const outboundSchema = EventsFilterConditionCondition$outboundSchema; - /** @deprecated use `EventsFilterConditionCondition$Outbound` instead. */ - export type Outbound = EventsFilterConditionCondition$Outbound; -} - export function eventsFilterConditionConditionToJSON( eventsFilterConditionCondition: EventsFilterConditionCondition, ): string { @@ -288,7 +229,6 @@ export function eventsFilterConditionConditionToJSON( ), ); } - export function eventsFilterConditionConditionFromJSON( jsonString: string, ): SafeParseResult { @@ -307,7 +247,6 @@ export const EventsFilterCondition$inboundSchema: z.ZodType< > = z.object({ condition: z.lazy(() => EventsFilterConditionCondition$inboundSchema), }); - /** @internal */ export type EventsFilterCondition$Outbound = { condition: EventsFilterConditionCondition$Outbound; @@ -322,19 +261,6 @@ export const EventsFilterCondition$outboundSchema: z.ZodType< condition: z.lazy(() => EventsFilterConditionCondition$outboundSchema), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EventsFilterCondition$ { - /** @deprecated use `EventsFilterCondition$inboundSchema` instead. */ - export const inboundSchema = EventsFilterCondition$inboundSchema; - /** @deprecated use `EventsFilterCondition$outboundSchema` instead. */ - export const outboundSchema = EventsFilterCondition$outboundSchema; - /** @deprecated use `EventsFilterCondition$Outbound` instead. */ - export type Outbound = EventsFilterCondition$Outbound; -} - export function eventsFilterConditionToJSON( eventsFilterCondition: EventsFilterCondition, ): string { @@ -342,7 +268,6 @@ export function eventsFilterConditionToJSON( EventsFilterCondition$outboundSchema.parse(eventsFilterCondition), ); } - export function eventsFilterConditionFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/eventsfilteror.ts b/src/models/components/eventsfilteror.ts index 369331b2..4fa86642 100644 --- a/src/models/components/eventsfilteror.ts +++ b/src/models/components/eventsfilteror.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -33,7 +33,6 @@ export const EventsFilterOR$inboundSchema: z.ZodType< > = z.object({ or: z.array(z.lazy(() => EventsFilter$inboundSchema)), }); - /** @internal */ export type EventsFilterOR$Outbound = { or: Array; @@ -48,23 +47,9 @@ export const EventsFilterOR$outboundSchema: z.ZodType< or: z.array(z.lazy(() => EventsFilter$outboundSchema)), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EventsFilterOR$ { - /** @deprecated use `EventsFilterOR$inboundSchema` instead. */ - export const inboundSchema = EventsFilterOR$inboundSchema; - /** @deprecated use `EventsFilterOR$outboundSchema` instead. */ - export const outboundSchema = EventsFilterOR$outboundSchema; - /** @deprecated use `EventsFilterOR$Outbound` instead. */ - export type Outbound = EventsFilterOR$Outbound; -} - export function eventsFilterORToJSON(eventsFilterOR: EventsFilterOR): string { return JSON.stringify(EventsFilterOR$outboundSchema.parse(eventsFilterOR)); } - export function eventsFilterORFromJSON( jsonString: string, ): SafeParseResult { @@ -81,7 +66,6 @@ export const EventsFilterOROR$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.lazy(() => EventsFilter$inboundSchema); - /** @internal */ export type EventsFilterOROR$Outbound = EventsFilter$Outbound; @@ -92,19 +76,6 @@ export const EventsFilterOROR$outboundSchema: z.ZodType< EventsFilterOROR > = z.lazy(() => EventsFilter$outboundSchema); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EventsFilterOROR$ { - /** @deprecated use `EventsFilterOROR$inboundSchema` instead. */ - export const inboundSchema = EventsFilterOROR$inboundSchema; - /** @deprecated use `EventsFilterOROR$outboundSchema` instead. */ - export const outboundSchema = EventsFilterOROR$outboundSchema; - /** @deprecated use `EventsFilterOROR$Outbound` instead. */ - export type Outbound = EventsFilterOROR$Outbound; -} - export function eventsFilterORORToJSON( eventsFilterOROR: EventsFilterOROR, ): string { @@ -112,7 +83,6 @@ export function eventsFilterORORToJSON( EventsFilterOROR$outboundSchema.parse(eventsFilterOROR), ); } - export function eventsFilterORORFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/eventsgroupby.ts b/src/models/components/eventsgroupby.ts index af9c1288..03400312 100644 --- a/src/models/components/eventsgroupby.ts +++ b/src/models/components/eventsgroupby.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -34,7 +34,6 @@ export const EventsGroupBy$inboundSchema: z.ZodType< path: z.array(z.string()).optional(), includeInSelect: z.boolean().default(true), }); - /** @internal */ export type EventsGroupBy$Outbound = { field: string; @@ -53,23 +52,9 @@ export const EventsGroupBy$outboundSchema: z.ZodType< includeInSelect: z.boolean().default(true), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EventsGroupBy$ { - /** @deprecated use `EventsGroupBy$inboundSchema` instead. */ - export const inboundSchema = EventsGroupBy$inboundSchema; - /** @deprecated use `EventsGroupBy$outboundSchema` instead. */ - export const outboundSchema = EventsGroupBy$outboundSchema; - /** @deprecated use `EventsGroupBy$Outbound` instead. */ - export type Outbound = EventsGroupBy$Outbound; -} - export function eventsGroupByToJSON(eventsGroupBy: EventsGroupBy): string { return JSON.stringify(EventsGroupBy$outboundSchema.parse(eventsGroupBy)); } - export function eventsGroupByFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/eventsorderby.ts b/src/models/components/eventsorderby.ts index 772261a8..7a8f7a76 100644 --- a/src/models/components/eventsorderby.ts +++ b/src/models/components/eventsorderby.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -150,44 +150,20 @@ export type EventsOrderBy = { export const EventsOrderByField$inboundSchema: z.ZodNativeEnum< typeof EventsOrderByField > = z.nativeEnum(EventsOrderByField); - /** @internal */ export const EventsOrderByField$outboundSchema: z.ZodNativeEnum< typeof EventsOrderByField > = EventsOrderByField$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EventsOrderByField$ { - /** @deprecated use `EventsOrderByField$inboundSchema` instead. */ - export const inboundSchema = EventsOrderByField$inboundSchema; - /** @deprecated use `EventsOrderByField$outboundSchema` instead. */ - export const outboundSchema = EventsOrderByField$outboundSchema; -} - /** @internal */ export const EventsOrderByDirection$inboundSchema: z.ZodNativeEnum< typeof EventsOrderByDirection > = z.nativeEnum(EventsOrderByDirection); - /** @internal */ export const EventsOrderByDirection$outboundSchema: z.ZodNativeEnum< typeof EventsOrderByDirection > = EventsOrderByDirection$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EventsOrderByDirection$ { - /** @deprecated use `EventsOrderByDirection$inboundSchema` instead. */ - export const inboundSchema = EventsOrderByDirection$inboundSchema; - /** @deprecated use `EventsOrderByDirection$outboundSchema` instead. */ - export const outboundSchema = EventsOrderByDirection$outboundSchema; -} - /** @internal */ export const EventsOrderBy$inboundSchema: z.ZodType< EventsOrderBy, @@ -197,7 +173,6 @@ export const EventsOrderBy$inboundSchema: z.ZodType< field: EventsOrderByField$inboundSchema, direction: EventsOrderByDirection$inboundSchema, }); - /** @internal */ export type EventsOrderBy$Outbound = { field: string; @@ -214,23 +189,9 @@ export const EventsOrderBy$outboundSchema: z.ZodType< direction: EventsOrderByDirection$outboundSchema, }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EventsOrderBy$ { - /** @deprecated use `EventsOrderBy$inboundSchema` instead. */ - export const inboundSchema = EventsOrderBy$inboundSchema; - /** @deprecated use `EventsOrderBy$outboundSchema` instead. */ - export const outboundSchema = EventsOrderBy$outboundSchema; - /** @deprecated use `EventsOrderBy$Outbound` instead. */ - export type Outbound = EventsOrderBy$Outbound; -} - export function eventsOrderByToJSON(eventsOrderBy: EventsOrderBy): string { return JSON.stringify(EventsOrderBy$outboundSchema.parse(eventsOrderBy)); } - export function eventsOrderByFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/eventsselection.ts b/src/models/components/eventsselection.ts index c89dcac2..b443d1d4 100644 --- a/src/models/components/eventsselection.ts +++ b/src/models/components/eventsselection.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -51,7 +51,6 @@ export const EventsSelection$inboundSchema: z.ZodType< z.object({ type: z.literal("field") }).transform((v) => ({ type: v.type })), ), ]); - /** @internal */ export type EventsSelection$Outbound = | (EventsAggregationSelection$Outbound & { type: "aggregation" }) @@ -77,25 +76,11 @@ export const EventsSelection$outboundSchema: z.ZodType< ), ]); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EventsSelection$ { - /** @deprecated use `EventsSelection$inboundSchema` instead. */ - export const inboundSchema = EventsSelection$inboundSchema; - /** @deprecated use `EventsSelection$outboundSchema` instead. */ - export const outboundSchema = EventsSelection$outboundSchema; - /** @deprecated use `EventsSelection$Outbound` instead. */ - export type Outbound = EventsSelection$Outbound; -} - export function eventsSelectionToJSON( eventsSelection: EventsSelection, ): string { return JSON.stringify(EventsSelection$outboundSchema.parse(eventsSelection)); } - export function eventsSelectionFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/eventssimplefieldselection.ts b/src/models/components/eventssimplefieldselection.ts index 90fa8265..61dd30f1 100644 --- a/src/models/components/eventssimplefieldselection.ts +++ b/src/models/components/eventssimplefieldselection.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -43,44 +43,20 @@ export type EventsSimpleFieldSelection = { export const EventsSimpleFieldSelectionType$inboundSchema: z.ZodNativeEnum< typeof EventsSimpleFieldSelectionType > = z.nativeEnum(EventsSimpleFieldSelectionType); - /** @internal */ export const EventsSimpleFieldSelectionType$outboundSchema: z.ZodNativeEnum< typeof EventsSimpleFieldSelectionType > = EventsSimpleFieldSelectionType$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EventsSimpleFieldSelectionType$ { - /** @deprecated use `EventsSimpleFieldSelectionType$inboundSchema` instead. */ - export const inboundSchema = EventsSimpleFieldSelectionType$inboundSchema; - /** @deprecated use `EventsSimpleFieldSelectionType$outboundSchema` instead. */ - export const outboundSchema = EventsSimpleFieldSelectionType$outboundSchema; -} - /** @internal */ export const EventsSimpleFieldSelectionField$inboundSchema: z.ZodNativeEnum< typeof EventsSimpleFieldSelectionField > = z.nativeEnum(EventsSimpleFieldSelectionField); - /** @internal */ export const EventsSimpleFieldSelectionField$outboundSchema: z.ZodNativeEnum< typeof EventsSimpleFieldSelectionField > = EventsSimpleFieldSelectionField$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EventsSimpleFieldSelectionField$ { - /** @deprecated use `EventsSimpleFieldSelectionField$inboundSchema` instead. */ - export const inboundSchema = EventsSimpleFieldSelectionField$inboundSchema; - /** @deprecated use `EventsSimpleFieldSelectionField$outboundSchema` instead. */ - export const outboundSchema = EventsSimpleFieldSelectionField$outboundSchema; -} - /** @internal */ export const EventsSimpleFieldSelection$inboundSchema: z.ZodType< EventsSimpleFieldSelection, @@ -91,7 +67,6 @@ export const EventsSimpleFieldSelection$inboundSchema: z.ZodType< field: EventsSimpleFieldSelectionField$inboundSchema, path: z.array(z.string()).optional(), }); - /** @internal */ export type EventsSimpleFieldSelection$Outbound = { type: string; @@ -110,19 +85,6 @@ export const EventsSimpleFieldSelection$outboundSchema: z.ZodType< path: z.array(z.string()).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EventsSimpleFieldSelection$ { - /** @deprecated use `EventsSimpleFieldSelection$inboundSchema` instead. */ - export const inboundSchema = EventsSimpleFieldSelection$inboundSchema; - /** @deprecated use `EventsSimpleFieldSelection$outboundSchema` instead. */ - export const outboundSchema = EventsSimpleFieldSelection$outboundSchema; - /** @deprecated use `EventsSimpleFieldSelection$Outbound` instead. */ - export type Outbound = EventsSimpleFieldSelection$Outbound; -} - export function eventsSimpleFieldSelectionToJSON( eventsSimpleFieldSelection: EventsSimpleFieldSelection, ): string { @@ -130,7 +92,6 @@ export function eventsSimpleFieldSelectionToJSON( EventsSimpleFieldSelection$outboundSchema.parse(eventsSimpleFieldSelection), ); } - export function eventsSimpleFieldSelectionFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/eventstimebasedgroupbyselection.ts b/src/models/components/eventstimebasedgroupbyselection.ts index b94ab784..e86e8100 100644 --- a/src/models/components/eventstimebasedgroupbyselection.ts +++ b/src/models/components/eventstimebasedgroupbyselection.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -51,49 +51,21 @@ export type EventsTimeBasedGroupBySelection = { export const EventsTimeBasedGroupBySelectionType$inboundSchema: z.ZodNativeEnum< typeof EventsTimeBasedGroupBySelectionType > = z.nativeEnum(EventsTimeBasedGroupBySelectionType); - /** @internal */ export const EventsTimeBasedGroupBySelectionType$outboundSchema: z.ZodNativeEnum = EventsTimeBasedGroupBySelectionType$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EventsTimeBasedGroupBySelectionType$ { - /** @deprecated use `EventsTimeBasedGroupBySelectionType$inboundSchema` instead. */ - export const inboundSchema = - EventsTimeBasedGroupBySelectionType$inboundSchema; - /** @deprecated use `EventsTimeBasedGroupBySelectionType$outboundSchema` instead. */ - export const outboundSchema = - EventsTimeBasedGroupBySelectionType$outboundSchema; -} - /** @internal */ export const EventsTimeBasedGroupBySelectionField$inboundSchema: z.ZodNativeEnum = z.nativeEnum( EventsTimeBasedGroupBySelectionField, ); - /** @internal */ export const EventsTimeBasedGroupBySelectionField$outboundSchema: z.ZodNativeEnum = EventsTimeBasedGroupBySelectionField$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EventsTimeBasedGroupBySelectionField$ { - /** @deprecated use `EventsTimeBasedGroupBySelectionField$inboundSchema` instead. */ - export const inboundSchema = - EventsTimeBasedGroupBySelectionField$inboundSchema; - /** @deprecated use `EventsTimeBasedGroupBySelectionField$outboundSchema` instead. */ - export const outboundSchema = - EventsTimeBasedGroupBySelectionField$outboundSchema; -} - /** @internal */ export const EventsTimeBasedGroupBySelection$inboundSchema: z.ZodType< EventsTimeBasedGroupBySelection, @@ -104,7 +76,6 @@ export const EventsTimeBasedGroupBySelection$inboundSchema: z.ZodType< timeUnit: TimeUnit$inboundSchema, field: EventsTimeBasedGroupBySelectionField$inboundSchema.optional(), }); - /** @internal */ export type EventsTimeBasedGroupBySelection$Outbound = { type: string; @@ -123,19 +94,6 @@ export const EventsTimeBasedGroupBySelection$outboundSchema: z.ZodType< field: EventsTimeBasedGroupBySelectionField$outboundSchema.optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EventsTimeBasedGroupBySelection$ { - /** @deprecated use `EventsTimeBasedGroupBySelection$inboundSchema` instead. */ - export const inboundSchema = EventsTimeBasedGroupBySelection$inboundSchema; - /** @deprecated use `EventsTimeBasedGroupBySelection$outboundSchema` instead. */ - export const outboundSchema = EventsTimeBasedGroupBySelection$outboundSchema; - /** @deprecated use `EventsTimeBasedGroupBySelection$Outbound` instead. */ - export type Outbound = EventsTimeBasedGroupBySelection$Outbound; -} - export function eventsTimeBasedGroupBySelectionToJSON( eventsTimeBasedGroupBySelection: EventsTimeBasedGroupBySelection, ): string { @@ -145,7 +103,6 @@ export function eventsTimeBasedGroupBySelectionToJSON( ), ); } - export function eventsTimeBasedGroupBySelectionFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/feedbackaggregationselection.ts b/src/models/components/feedbackaggregationselection.ts index 71066af3..85fd4255 100644 --- a/src/models/components/feedbackaggregationselection.ts +++ b/src/models/components/feedbackaggregationselection.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -58,68 +58,29 @@ export type FeedbackAggregationSelection = { export const FeedbackAggregationSelectionType$inboundSchema: z.ZodNativeEnum< typeof FeedbackAggregationSelectionType > = z.nativeEnum(FeedbackAggregationSelectionType); - /** @internal */ export const FeedbackAggregationSelectionType$outboundSchema: z.ZodNativeEnum< typeof FeedbackAggregationSelectionType > = FeedbackAggregationSelectionType$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace FeedbackAggregationSelectionType$ { - /** @deprecated use `FeedbackAggregationSelectionType$inboundSchema` instead. */ - export const inboundSchema = FeedbackAggregationSelectionType$inboundSchema; - /** @deprecated use `FeedbackAggregationSelectionType$outboundSchema` instead. */ - export const outboundSchema = FeedbackAggregationSelectionType$outboundSchema; -} - /** @internal */ export const FeedbackAggregationSelectionAggregation$inboundSchema: z.ZodNativeEnum = z .nativeEnum(FeedbackAggregationSelectionAggregation); - /** @internal */ export const FeedbackAggregationSelectionAggregation$outboundSchema: z.ZodNativeEnum = FeedbackAggregationSelectionAggregation$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace FeedbackAggregationSelectionAggregation$ { - /** @deprecated use `FeedbackAggregationSelectionAggregation$inboundSchema` instead. */ - export const inboundSchema = - FeedbackAggregationSelectionAggregation$inboundSchema; - /** @deprecated use `FeedbackAggregationSelectionAggregation$outboundSchema` instead. */ - export const outboundSchema = - FeedbackAggregationSelectionAggregation$outboundSchema; -} - /** @internal */ export const FeedbackAggregationSelectionField$inboundSchema: z.ZodNativeEnum< typeof FeedbackAggregationSelectionField > = z.nativeEnum(FeedbackAggregationSelectionField); - /** @internal */ export const FeedbackAggregationSelectionField$outboundSchema: z.ZodNativeEnum< typeof FeedbackAggregationSelectionField > = FeedbackAggregationSelectionField$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace FeedbackAggregationSelectionField$ { - /** @deprecated use `FeedbackAggregationSelectionField$inboundSchema` instead. */ - export const inboundSchema = FeedbackAggregationSelectionField$inboundSchema; - /** @deprecated use `FeedbackAggregationSelectionField$outboundSchema` instead. */ - export const outboundSchema = - FeedbackAggregationSelectionField$outboundSchema; -} - /** @internal */ export const FeedbackAggregationSelection$inboundSchema: z.ZodType< FeedbackAggregationSelection, @@ -131,7 +92,6 @@ export const FeedbackAggregationSelection$inboundSchema: z.ZodType< field: FeedbackAggregationSelectionField$inboundSchema.optional(), path: z.array(z.string()).optional(), }); - /** @internal */ export type FeedbackAggregationSelection$Outbound = { type: string; @@ -152,19 +112,6 @@ export const FeedbackAggregationSelection$outboundSchema: z.ZodType< path: z.array(z.string()).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace FeedbackAggregationSelection$ { - /** @deprecated use `FeedbackAggregationSelection$inboundSchema` instead. */ - export const inboundSchema = FeedbackAggregationSelection$inboundSchema; - /** @deprecated use `FeedbackAggregationSelection$outboundSchema` instead. */ - export const outboundSchema = FeedbackAggregationSelection$outboundSchema; - /** @deprecated use `FeedbackAggregationSelection$Outbound` instead. */ - export type Outbound = FeedbackAggregationSelection$Outbound; -} - export function feedbackAggregationSelectionToJSON( feedbackAggregationSelection: FeedbackAggregationSelection, ): string { @@ -174,7 +121,6 @@ export function feedbackAggregationSelectionToJSON( ), ); } - export function feedbackAggregationSelectionFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/feedbackfield.ts b/src/models/components/feedbackfield.ts index b248b365..cbd389b2 100644 --- a/src/models/components/feedbackfield.ts +++ b/src/models/components/feedbackfield.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; /** @@ -33,19 +33,7 @@ export type FeedbackField = ClosedEnum; export const FeedbackField$inboundSchema: z.ZodNativeEnum< typeof FeedbackField > = z.nativeEnum(FeedbackField); - /** @internal */ export const FeedbackField$outboundSchema: z.ZodNativeEnum< typeof FeedbackField > = FeedbackField$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace FeedbackField$ { - /** @deprecated use `FeedbackField$inboundSchema` instead. */ - export const inboundSchema = FeedbackField$inboundSchema; - /** @deprecated use `FeedbackField$outboundSchema` instead. */ - export const outboundSchema = FeedbackField$outboundSchema; -} diff --git a/src/models/components/feedbackfilter.ts b/src/models/components/feedbackfilter.ts index 03d029d1..73c7afea 100644 --- a/src/models/components/feedbackfilter.ts +++ b/src/models/components/feedbackfilter.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -40,7 +40,6 @@ export const FeedbackFilter$inboundSchema: z.ZodType< z.lazy(() => FeedbackFilterAND$inboundSchema), z.lazy(() => FeedbackFilterOR$inboundSchema), ]); - /** @internal */ export type FeedbackFilter$Outbound = | FeedbackFilterCondition$Outbound @@ -58,23 +57,9 @@ export const FeedbackFilter$outboundSchema: z.ZodType< z.lazy(() => FeedbackFilterOR$outboundSchema), ]); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace FeedbackFilter$ { - /** @deprecated use `FeedbackFilter$inboundSchema` instead. */ - export const inboundSchema = FeedbackFilter$inboundSchema; - /** @deprecated use `FeedbackFilter$outboundSchema` instead. */ - export const outboundSchema = FeedbackFilter$outboundSchema; - /** @deprecated use `FeedbackFilter$Outbound` instead. */ - export type Outbound = FeedbackFilter$Outbound; -} - export function feedbackFilterToJSON(feedbackFilter: FeedbackFilter): string { return JSON.stringify(FeedbackFilter$outboundSchema.parse(feedbackFilter)); } - export function feedbackFilterFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/feedbackfilterand.ts b/src/models/components/feedbackfilterand.ts index 69c535b0..0b9f47b3 100644 --- a/src/models/components/feedbackfilterand.ts +++ b/src/models/components/feedbackfilterand.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -33,7 +33,6 @@ export const FeedbackFilterAND$inboundSchema: z.ZodType< > = z.object({ and: z.array(z.lazy(() => FeedbackFilter$inboundSchema)), }); - /** @internal */ export type FeedbackFilterAND$Outbound = { and: Array; @@ -48,19 +47,6 @@ export const FeedbackFilterAND$outboundSchema: z.ZodType< and: z.array(z.lazy(() => FeedbackFilter$outboundSchema)), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace FeedbackFilterAND$ { - /** @deprecated use `FeedbackFilterAND$inboundSchema` instead. */ - export const inboundSchema = FeedbackFilterAND$inboundSchema; - /** @deprecated use `FeedbackFilterAND$outboundSchema` instead. */ - export const outboundSchema = FeedbackFilterAND$outboundSchema; - /** @deprecated use `FeedbackFilterAND$Outbound` instead. */ - export type Outbound = FeedbackFilterAND$Outbound; -} - export function feedbackFilterANDToJSON( feedbackFilterAND: FeedbackFilterAND, ): string { @@ -68,7 +54,6 @@ export function feedbackFilterANDToJSON( FeedbackFilterAND$outboundSchema.parse(feedbackFilterAND), ); } - export function feedbackFilterANDFromJSON( jsonString: string, ): SafeParseResult { @@ -85,7 +70,6 @@ export const FeedbackFilterANDAND$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.lazy(() => FeedbackFilter$inboundSchema); - /** @internal */ export type FeedbackFilterANDAND$Outbound = FeedbackFilter$Outbound; @@ -96,19 +80,6 @@ export const FeedbackFilterANDAND$outboundSchema: z.ZodType< FeedbackFilterANDAND > = z.lazy(() => FeedbackFilter$outboundSchema); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace FeedbackFilterANDAND$ { - /** @deprecated use `FeedbackFilterANDAND$inboundSchema` instead. */ - export const inboundSchema = FeedbackFilterANDAND$inboundSchema; - /** @deprecated use `FeedbackFilterANDAND$outboundSchema` instead. */ - export const outboundSchema = FeedbackFilterANDAND$outboundSchema; - /** @deprecated use `FeedbackFilterANDAND$Outbound` instead. */ - export type Outbound = FeedbackFilterANDAND$Outbound; -} - export function feedbackFilterANDANDToJSON( feedbackFilterANDAND: FeedbackFilterANDAND, ): string { @@ -116,7 +87,6 @@ export function feedbackFilterANDANDToJSON( FeedbackFilterANDAND$outboundSchema.parse(feedbackFilterANDAND), ); } - export function feedbackFilterANDANDFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/feedbackfiltercondition.ts b/src/models/components/feedbackfiltercondition.ts index c0e55921..7aca921c 100644 --- a/src/models/components/feedbackfiltercondition.ts +++ b/src/models/components/feedbackfiltercondition.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -60,7 +60,6 @@ export const FeedbackFilterConditionValueValue4$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.union([z.string(), z.number(), z.boolean()]); - /** @internal */ export type FeedbackFilterConditionValueValue4$Outbound = | string @@ -74,20 +73,6 @@ export const FeedbackFilterConditionValueValue4$outboundSchema: z.ZodType< FeedbackFilterConditionValueValue4 > = z.union([z.string(), z.number(), z.boolean()]); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace FeedbackFilterConditionValueValue4$ { - /** @deprecated use `FeedbackFilterConditionValueValue4$inboundSchema` instead. */ - export const inboundSchema = FeedbackFilterConditionValueValue4$inboundSchema; - /** @deprecated use `FeedbackFilterConditionValueValue4$outboundSchema` instead. */ - export const outboundSchema = - FeedbackFilterConditionValueValue4$outboundSchema; - /** @deprecated use `FeedbackFilterConditionValueValue4$Outbound` instead. */ - export type Outbound = FeedbackFilterConditionValueValue4$Outbound; -} - export function feedbackFilterConditionValueValue4ToJSON( feedbackFilterConditionValueValue4: FeedbackFilterConditionValueValue4, ): string { @@ -97,7 +82,6 @@ export function feedbackFilterConditionValueValue4ToJSON( ), ); } - export function feedbackFilterConditionValueValue4FromJSON( jsonString: string, ): SafeParseResult { @@ -120,7 +104,6 @@ export const FeedbackFilterConditionValueValue$inboundSchema: z.ZodType< z.boolean(), z.array(z.nullable(z.union([z.string(), z.number(), z.boolean()]))), ]); - /** @internal */ export type FeedbackFilterConditionValueValue$Outbound = | string @@ -140,20 +123,6 @@ export const FeedbackFilterConditionValueValue$outboundSchema: z.ZodType< z.array(z.nullable(z.union([z.string(), z.number(), z.boolean()]))), ]); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace FeedbackFilterConditionValueValue$ { - /** @deprecated use `FeedbackFilterConditionValueValue$inboundSchema` instead. */ - export const inboundSchema = FeedbackFilterConditionValueValue$inboundSchema; - /** @deprecated use `FeedbackFilterConditionValueValue$outboundSchema` instead. */ - export const outboundSchema = - FeedbackFilterConditionValueValue$outboundSchema; - /** @deprecated use `FeedbackFilterConditionValueValue$Outbound` instead. */ - export type Outbound = FeedbackFilterConditionValueValue$Outbound; -} - export function feedbackFilterConditionValueValueToJSON( feedbackFilterConditionValueValue: FeedbackFilterConditionValueValue, ): string { @@ -163,7 +132,6 @@ export function feedbackFilterConditionValueValueToJSON( ), ); } - export function feedbackFilterConditionValueValueFromJSON( jsonString: string, ): SafeParseResult { @@ -190,7 +158,6 @@ export const FeedbackFilterConditionValue7$inboundSchema: z.ZodType< ]), ), }); - /** @internal */ export type FeedbackFilterConditionValue7$Outbound = { path: Array; @@ -219,19 +186,6 @@ export const FeedbackFilterConditionValue7$outboundSchema: z.ZodType< ), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace FeedbackFilterConditionValue7$ { - /** @deprecated use `FeedbackFilterConditionValue7$inboundSchema` instead. */ - export const inboundSchema = FeedbackFilterConditionValue7$inboundSchema; - /** @deprecated use `FeedbackFilterConditionValue7$outboundSchema` instead. */ - export const outboundSchema = FeedbackFilterConditionValue7$outboundSchema; - /** @deprecated use `FeedbackFilterConditionValue7$Outbound` instead. */ - export type Outbound = FeedbackFilterConditionValue7$Outbound; -} - export function feedbackFilterConditionValue7ToJSON( feedbackFilterConditionValue7: FeedbackFilterConditionValue7, ): string { @@ -241,7 +195,6 @@ export function feedbackFilterConditionValue7ToJSON( ), ); } - export function feedbackFilterConditionValue7FromJSON( jsonString: string, ): SafeParseResult { @@ -262,7 +215,6 @@ export const FeedbackFilterConditionCondition$inboundSchema: z.ZodType< operator: FilterOperator$inboundSchema, value: z.any().optional(), }); - /** @internal */ export type FeedbackFilterConditionCondition$Outbound = { field: string; @@ -281,19 +233,6 @@ export const FeedbackFilterConditionCondition$outboundSchema: z.ZodType< value: z.any().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace FeedbackFilterConditionCondition$ { - /** @deprecated use `FeedbackFilterConditionCondition$inboundSchema` instead. */ - export const inboundSchema = FeedbackFilterConditionCondition$inboundSchema; - /** @deprecated use `FeedbackFilterConditionCondition$outboundSchema` instead. */ - export const outboundSchema = FeedbackFilterConditionCondition$outboundSchema; - /** @deprecated use `FeedbackFilterConditionCondition$Outbound` instead. */ - export type Outbound = FeedbackFilterConditionCondition$Outbound; -} - export function feedbackFilterConditionConditionToJSON( feedbackFilterConditionCondition: FeedbackFilterConditionCondition, ): string { @@ -303,7 +242,6 @@ export function feedbackFilterConditionConditionToJSON( ), ); } - export function feedbackFilterConditionConditionFromJSON( jsonString: string, ): SafeParseResult { @@ -322,7 +260,6 @@ export const FeedbackFilterCondition$inboundSchema: z.ZodType< > = z.object({ condition: z.lazy(() => FeedbackFilterConditionCondition$inboundSchema), }); - /** @internal */ export type FeedbackFilterCondition$Outbound = { condition: FeedbackFilterConditionCondition$Outbound; @@ -337,19 +274,6 @@ export const FeedbackFilterCondition$outboundSchema: z.ZodType< condition: z.lazy(() => FeedbackFilterConditionCondition$outboundSchema), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace FeedbackFilterCondition$ { - /** @deprecated use `FeedbackFilterCondition$inboundSchema` instead. */ - export const inboundSchema = FeedbackFilterCondition$inboundSchema; - /** @deprecated use `FeedbackFilterCondition$outboundSchema` instead. */ - export const outboundSchema = FeedbackFilterCondition$outboundSchema; - /** @deprecated use `FeedbackFilterCondition$Outbound` instead. */ - export type Outbound = FeedbackFilterCondition$Outbound; -} - export function feedbackFilterConditionToJSON( feedbackFilterCondition: FeedbackFilterCondition, ): string { @@ -357,7 +281,6 @@ export function feedbackFilterConditionToJSON( FeedbackFilterCondition$outboundSchema.parse(feedbackFilterCondition), ); } - export function feedbackFilterConditionFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/feedbackfilteror.ts b/src/models/components/feedbackfilteror.ts index 9d9560e5..9c3e744c 100644 --- a/src/models/components/feedbackfilteror.ts +++ b/src/models/components/feedbackfilteror.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -33,7 +33,6 @@ export const FeedbackFilterOR$inboundSchema: z.ZodType< > = z.object({ or: z.array(z.lazy(() => FeedbackFilter$inboundSchema)), }); - /** @internal */ export type FeedbackFilterOR$Outbound = { or: Array; @@ -48,19 +47,6 @@ export const FeedbackFilterOR$outboundSchema: z.ZodType< or: z.array(z.lazy(() => FeedbackFilter$outboundSchema)), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace FeedbackFilterOR$ { - /** @deprecated use `FeedbackFilterOR$inboundSchema` instead. */ - export const inboundSchema = FeedbackFilterOR$inboundSchema; - /** @deprecated use `FeedbackFilterOR$outboundSchema` instead. */ - export const outboundSchema = FeedbackFilterOR$outboundSchema; - /** @deprecated use `FeedbackFilterOR$Outbound` instead. */ - export type Outbound = FeedbackFilterOR$Outbound; -} - export function feedbackFilterORToJSON( feedbackFilterOR: FeedbackFilterOR, ): string { @@ -68,7 +54,6 @@ export function feedbackFilterORToJSON( FeedbackFilterOR$outboundSchema.parse(feedbackFilterOR), ); } - export function feedbackFilterORFromJSON( jsonString: string, ): SafeParseResult { @@ -85,7 +70,6 @@ export const FeedbackFilterOROR$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.lazy(() => FeedbackFilter$inboundSchema); - /** @internal */ export type FeedbackFilterOROR$Outbound = FeedbackFilter$Outbound; @@ -96,19 +80,6 @@ export const FeedbackFilterOROR$outboundSchema: z.ZodType< FeedbackFilterOROR > = z.lazy(() => FeedbackFilter$outboundSchema); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace FeedbackFilterOROR$ { - /** @deprecated use `FeedbackFilterOROR$inboundSchema` instead. */ - export const inboundSchema = FeedbackFilterOROR$inboundSchema; - /** @deprecated use `FeedbackFilterOROR$outboundSchema` instead. */ - export const outboundSchema = FeedbackFilterOROR$outboundSchema; - /** @deprecated use `FeedbackFilterOROR$Outbound` instead. */ - export type Outbound = FeedbackFilterOROR$Outbound; -} - export function feedbackFilterORORToJSON( feedbackFilterOROR: FeedbackFilterOROR, ): string { @@ -116,7 +87,6 @@ export function feedbackFilterORORToJSON( FeedbackFilterOROR$outboundSchema.parse(feedbackFilterOROR), ); } - export function feedbackFilterORORFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/feedbackgroupby.ts b/src/models/components/feedbackgroupby.ts index 81767cdb..580aef82 100644 --- a/src/models/components/feedbackgroupby.ts +++ b/src/models/components/feedbackgroupby.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -34,7 +34,6 @@ export const FeedbackGroupBy$inboundSchema: z.ZodType< path: z.array(z.string()).optional(), includeInSelect: z.boolean().default(true), }); - /** @internal */ export type FeedbackGroupBy$Outbound = { field: string; @@ -53,25 +52,11 @@ export const FeedbackGroupBy$outboundSchema: z.ZodType< includeInSelect: z.boolean().default(true), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace FeedbackGroupBy$ { - /** @deprecated use `FeedbackGroupBy$inboundSchema` instead. */ - export const inboundSchema = FeedbackGroupBy$inboundSchema; - /** @deprecated use `FeedbackGroupBy$outboundSchema` instead. */ - export const outboundSchema = FeedbackGroupBy$outboundSchema; - /** @deprecated use `FeedbackGroupBy$Outbound` instead. */ - export type Outbound = FeedbackGroupBy$Outbound; -} - export function feedbackGroupByToJSON( feedbackGroupBy: FeedbackGroupBy, ): string { return JSON.stringify(FeedbackGroupBy$outboundSchema.parse(feedbackGroupBy)); } - export function feedbackGroupByFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/feedbackorderby.ts b/src/models/components/feedbackorderby.ts index 308d0d35..fc820c0e 100644 --- a/src/models/components/feedbackorderby.ts +++ b/src/models/components/feedbackorderby.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -172,44 +172,20 @@ export type FeedbackOrderBy = { export const FeedbackOrderByField$inboundSchema: z.ZodNativeEnum< typeof FeedbackOrderByField > = z.nativeEnum(FeedbackOrderByField); - /** @internal */ export const FeedbackOrderByField$outboundSchema: z.ZodNativeEnum< typeof FeedbackOrderByField > = FeedbackOrderByField$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace FeedbackOrderByField$ { - /** @deprecated use `FeedbackOrderByField$inboundSchema` instead. */ - export const inboundSchema = FeedbackOrderByField$inboundSchema; - /** @deprecated use `FeedbackOrderByField$outboundSchema` instead. */ - export const outboundSchema = FeedbackOrderByField$outboundSchema; -} - /** @internal */ export const FeedbackOrderByDirection$inboundSchema: z.ZodNativeEnum< typeof FeedbackOrderByDirection > = z.nativeEnum(FeedbackOrderByDirection); - /** @internal */ export const FeedbackOrderByDirection$outboundSchema: z.ZodNativeEnum< typeof FeedbackOrderByDirection > = FeedbackOrderByDirection$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace FeedbackOrderByDirection$ { - /** @deprecated use `FeedbackOrderByDirection$inboundSchema` instead. */ - export const inboundSchema = FeedbackOrderByDirection$inboundSchema; - /** @deprecated use `FeedbackOrderByDirection$outboundSchema` instead. */ - export const outboundSchema = FeedbackOrderByDirection$outboundSchema; -} - /** @internal */ export const FeedbackOrderBy$inboundSchema: z.ZodType< FeedbackOrderBy, @@ -219,7 +195,6 @@ export const FeedbackOrderBy$inboundSchema: z.ZodType< field: FeedbackOrderByField$inboundSchema, direction: FeedbackOrderByDirection$inboundSchema, }); - /** @internal */ export type FeedbackOrderBy$Outbound = { field: string; @@ -236,25 +211,11 @@ export const FeedbackOrderBy$outboundSchema: z.ZodType< direction: FeedbackOrderByDirection$outboundSchema, }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace FeedbackOrderBy$ { - /** @deprecated use `FeedbackOrderBy$inboundSchema` instead. */ - export const inboundSchema = FeedbackOrderBy$inboundSchema; - /** @deprecated use `FeedbackOrderBy$outboundSchema` instead. */ - export const outboundSchema = FeedbackOrderBy$outboundSchema; - /** @deprecated use `FeedbackOrderBy$Outbound` instead. */ - export type Outbound = FeedbackOrderBy$Outbound; -} - export function feedbackOrderByToJSON( feedbackOrderBy: FeedbackOrderBy, ): string { return JSON.stringify(FeedbackOrderBy$outboundSchema.parse(feedbackOrderBy)); } - export function feedbackOrderByFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/feedbackselection.ts b/src/models/components/feedbackselection.ts index 471957be..1b760d93 100644 --- a/src/models/components/feedbackselection.ts +++ b/src/models/components/feedbackselection.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -51,7 +51,6 @@ export const FeedbackSelection$inboundSchema: z.ZodType< z.object({ type: z.literal("field") }).transform((v) => ({ type: v.type })), ), ]); - /** @internal */ export type FeedbackSelection$Outbound = | (FeedbackAggregationSelection$Outbound & { type: "aggregation" }) @@ -77,19 +76,6 @@ export const FeedbackSelection$outboundSchema: z.ZodType< ), ]); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace FeedbackSelection$ { - /** @deprecated use `FeedbackSelection$inboundSchema` instead. */ - export const inboundSchema = FeedbackSelection$inboundSchema; - /** @deprecated use `FeedbackSelection$outboundSchema` instead. */ - export const outboundSchema = FeedbackSelection$outboundSchema; - /** @deprecated use `FeedbackSelection$Outbound` instead. */ - export type Outbound = FeedbackSelection$Outbound; -} - export function feedbackSelectionToJSON( feedbackSelection: FeedbackSelection, ): string { @@ -97,7 +83,6 @@ export function feedbackSelectionToJSON( FeedbackSelection$outboundSchema.parse(feedbackSelection), ); } - export function feedbackSelectionFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/feedbacksimplefieldselection.ts b/src/models/components/feedbacksimplefieldselection.ts index 1796ed14..0b0f6be5 100644 --- a/src/models/components/feedbacksimplefieldselection.ts +++ b/src/models/components/feedbacksimplefieldselection.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -45,45 +45,20 @@ export type FeedbackSimpleFieldSelection = { export const FeedbackSimpleFieldSelectionType$inboundSchema: z.ZodNativeEnum< typeof FeedbackSimpleFieldSelectionType > = z.nativeEnum(FeedbackSimpleFieldSelectionType); - /** @internal */ export const FeedbackSimpleFieldSelectionType$outboundSchema: z.ZodNativeEnum< typeof FeedbackSimpleFieldSelectionType > = FeedbackSimpleFieldSelectionType$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace FeedbackSimpleFieldSelectionType$ { - /** @deprecated use `FeedbackSimpleFieldSelectionType$inboundSchema` instead. */ - export const inboundSchema = FeedbackSimpleFieldSelectionType$inboundSchema; - /** @deprecated use `FeedbackSimpleFieldSelectionType$outboundSchema` instead. */ - export const outboundSchema = FeedbackSimpleFieldSelectionType$outboundSchema; -} - /** @internal */ export const FeedbackSimpleFieldSelectionField$inboundSchema: z.ZodNativeEnum< typeof FeedbackSimpleFieldSelectionField > = z.nativeEnum(FeedbackSimpleFieldSelectionField); - /** @internal */ export const FeedbackSimpleFieldSelectionField$outboundSchema: z.ZodNativeEnum< typeof FeedbackSimpleFieldSelectionField > = FeedbackSimpleFieldSelectionField$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace FeedbackSimpleFieldSelectionField$ { - /** @deprecated use `FeedbackSimpleFieldSelectionField$inboundSchema` instead. */ - export const inboundSchema = FeedbackSimpleFieldSelectionField$inboundSchema; - /** @deprecated use `FeedbackSimpleFieldSelectionField$outboundSchema` instead. */ - export const outboundSchema = - FeedbackSimpleFieldSelectionField$outboundSchema; -} - /** @internal */ export const FeedbackSimpleFieldSelection$inboundSchema: z.ZodType< FeedbackSimpleFieldSelection, @@ -94,7 +69,6 @@ export const FeedbackSimpleFieldSelection$inboundSchema: z.ZodType< field: FeedbackSimpleFieldSelectionField$inboundSchema, path: z.array(z.string()).optional(), }); - /** @internal */ export type FeedbackSimpleFieldSelection$Outbound = { type: string; @@ -113,19 +87,6 @@ export const FeedbackSimpleFieldSelection$outboundSchema: z.ZodType< path: z.array(z.string()).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace FeedbackSimpleFieldSelection$ { - /** @deprecated use `FeedbackSimpleFieldSelection$inboundSchema` instead. */ - export const inboundSchema = FeedbackSimpleFieldSelection$inboundSchema; - /** @deprecated use `FeedbackSimpleFieldSelection$outboundSchema` instead. */ - export const outboundSchema = FeedbackSimpleFieldSelection$outboundSchema; - /** @deprecated use `FeedbackSimpleFieldSelection$Outbound` instead. */ - export type Outbound = FeedbackSimpleFieldSelection$Outbound; -} - export function feedbackSimpleFieldSelectionToJSON( feedbackSimpleFieldSelection: FeedbackSimpleFieldSelection, ): string { @@ -135,7 +96,6 @@ export function feedbackSimpleFieldSelectionToJSON( ), ); } - export function feedbackSimpleFieldSelectionFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/feedbacktimebasedgroupbyselection.ts b/src/models/components/feedbacktimebasedgroupbyselection.ts index 4f326d5b..6bfc8584 100644 --- a/src/models/components/feedbacktimebasedgroupbyselection.ts +++ b/src/models/components/feedbacktimebasedgroupbyselection.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -54,49 +54,21 @@ export const FeedbackTimeBasedGroupBySelectionType$inboundSchema: z.ZodNativeEnum = z.nativeEnum( FeedbackTimeBasedGroupBySelectionType, ); - /** @internal */ export const FeedbackTimeBasedGroupBySelectionType$outboundSchema: z.ZodNativeEnum = FeedbackTimeBasedGroupBySelectionType$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace FeedbackTimeBasedGroupBySelectionType$ { - /** @deprecated use `FeedbackTimeBasedGroupBySelectionType$inboundSchema` instead. */ - export const inboundSchema = - FeedbackTimeBasedGroupBySelectionType$inboundSchema; - /** @deprecated use `FeedbackTimeBasedGroupBySelectionType$outboundSchema` instead. */ - export const outboundSchema = - FeedbackTimeBasedGroupBySelectionType$outboundSchema; -} - /** @internal */ export const FeedbackTimeBasedGroupBySelectionField$inboundSchema: z.ZodNativeEnum = z.nativeEnum( FeedbackTimeBasedGroupBySelectionField, ); - /** @internal */ export const FeedbackTimeBasedGroupBySelectionField$outboundSchema: z.ZodNativeEnum = FeedbackTimeBasedGroupBySelectionField$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace FeedbackTimeBasedGroupBySelectionField$ { - /** @deprecated use `FeedbackTimeBasedGroupBySelectionField$inboundSchema` instead. */ - export const inboundSchema = - FeedbackTimeBasedGroupBySelectionField$inboundSchema; - /** @deprecated use `FeedbackTimeBasedGroupBySelectionField$outboundSchema` instead. */ - export const outboundSchema = - FeedbackTimeBasedGroupBySelectionField$outboundSchema; -} - /** @internal */ export const FeedbackTimeBasedGroupBySelection$inboundSchema: z.ZodType< FeedbackTimeBasedGroupBySelection, @@ -107,7 +79,6 @@ export const FeedbackTimeBasedGroupBySelection$inboundSchema: z.ZodType< timeUnit: TimeUnit$inboundSchema, field: FeedbackTimeBasedGroupBySelectionField$inboundSchema.optional(), }); - /** @internal */ export type FeedbackTimeBasedGroupBySelection$Outbound = { type: string; @@ -126,20 +97,6 @@ export const FeedbackTimeBasedGroupBySelection$outboundSchema: z.ZodType< field: FeedbackTimeBasedGroupBySelectionField$outboundSchema.optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace FeedbackTimeBasedGroupBySelection$ { - /** @deprecated use `FeedbackTimeBasedGroupBySelection$inboundSchema` instead. */ - export const inboundSchema = FeedbackTimeBasedGroupBySelection$inboundSchema; - /** @deprecated use `FeedbackTimeBasedGroupBySelection$outboundSchema` instead. */ - export const outboundSchema = - FeedbackTimeBasedGroupBySelection$outboundSchema; - /** @deprecated use `FeedbackTimeBasedGroupBySelection$Outbound` instead. */ - export type Outbound = FeedbackTimeBasedGroupBySelection$Outbound; -} - export function feedbackTimeBasedGroupBySelectionToJSON( feedbackTimeBasedGroupBySelection: FeedbackTimeBasedGroupBySelection, ): string { @@ -149,7 +106,6 @@ export function feedbackTimeBasedGroupBySelectionToJSON( ), ); } - export function feedbackTimeBasedGroupBySelectionFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/filteroperator.ts b/src/models/components/filteroperator.ts index 344b02af..ffee00b3 100644 --- a/src/models/components/filteroperator.ts +++ b/src/models/components/filteroperator.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; /** @@ -36,19 +36,7 @@ export type FilterOperator = ClosedEnum; export const FilterOperator$inboundSchema: z.ZodNativeEnum< typeof FilterOperator > = z.nativeEnum(FilterOperator); - /** @internal */ export const FilterOperator$outboundSchema: z.ZodNativeEnum< typeof FilterOperator > = FilterOperator$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace FilterOperator$ { - /** @deprecated use `FilterOperator$inboundSchema` instead. */ - export const inboundSchema = FilterOperator$inboundSchema; - /** @deprecated use `FilterOperator$outboundSchema` instead. */ - export const outboundSchema = FilterOperator$outboundSchema; -} diff --git a/src/models/components/getallfeedbackresponse.ts b/src/models/components/getallfeedbackresponse.ts index 06354ad5..c4d9ad63 100644 --- a/src/models/components/getallfeedbackresponse.ts +++ b/src/models/components/getallfeedbackresponse.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { collectExtraKeys as collectExtraKeys$, @@ -71,7 +71,7 @@ export type GetAllFeedbackResponseUserProperties = { * The type of user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. */ userType?: string | null | undefined; - additionalProperties?: { [k: string]: any }; + additionalProperties?: { [k: string]: any } | undefined; }; export const GetAllFeedbackResponsePositiveFeedbackType = { @@ -157,7 +157,7 @@ export type GetAllFeedbackResponseNegativeFeedbackUserProperties = { * The type of user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. */ userType?: string | null | undefined; - additionalProperties?: { [k: string]: any }; + additionalProperties?: { [k: string]: any } | undefined; }; export const GetAllFeedbackResponseNegativeFeedbackSourcesType = { @@ -210,30 +210,17 @@ export type GetAllFeedbackResponse = { export const GetAllFeedbackResponseType$inboundSchema: z.ZodNativeEnum< typeof GetAllFeedbackResponseType > = z.nativeEnum(GetAllFeedbackResponseType); - /** @internal */ export const GetAllFeedbackResponseType$outboundSchema: z.ZodNativeEnum< typeof GetAllFeedbackResponseType > = GetAllFeedbackResponseType$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAllFeedbackResponseType$ { - /** @deprecated use `GetAllFeedbackResponseType$inboundSchema` instead. */ - export const inboundSchema = GetAllFeedbackResponseType$inboundSchema; - /** @deprecated use `GetAllFeedbackResponseType$outboundSchema` instead. */ - export const outboundSchema = GetAllFeedbackResponseType$outboundSchema; -} - /** @internal */ export const Reasons$inboundSchema: z.ZodType = z.object({ label: z.string(), details: z.string(), }); - /** @internal */ export type Reasons$Outbound = { label: string; @@ -250,23 +237,9 @@ export const Reasons$outboundSchema: z.ZodType< details: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Reasons$ { - /** @deprecated use `Reasons$inboundSchema` instead. */ - export const inboundSchema = Reasons$inboundSchema; - /** @deprecated use `Reasons$outboundSchema` instead. */ - export const outboundSchema = Reasons$outboundSchema; - /** @deprecated use `Reasons$Outbound` instead. */ - export type Outbound = Reasons$Outbound; -} - export function reasonsToJSON(reasons: Reasons): string { return JSON.stringify(Reasons$outboundSchema.parse(reasons)); } - export function reasonsFromJSON( jsonString: string, ): SafeParseResult { @@ -283,7 +256,6 @@ export const GetAllFeedbackResponseId$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.union([z.string(), z.number()]); - /** @internal */ export type GetAllFeedbackResponseId$Outbound = string | number; @@ -294,19 +266,6 @@ export const GetAllFeedbackResponseId$outboundSchema: z.ZodType< GetAllFeedbackResponseId > = z.union([z.string(), z.number()]); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAllFeedbackResponseId$ { - /** @deprecated use `GetAllFeedbackResponseId$inboundSchema` instead. */ - export const inboundSchema = GetAllFeedbackResponseId$inboundSchema; - /** @deprecated use `GetAllFeedbackResponseId$outboundSchema` instead. */ - export const outboundSchema = GetAllFeedbackResponseId$outboundSchema; - /** @deprecated use `GetAllFeedbackResponseId$Outbound` instead. */ - export type Outbound = GetAllFeedbackResponseId$Outbound; -} - export function getAllFeedbackResponseIdToJSON( getAllFeedbackResponseId: GetAllFeedbackResponseId, ): string { @@ -314,7 +273,6 @@ export function getAllFeedbackResponseIdToJSON( GetAllFeedbackResponseId$outboundSchema.parse(getAllFeedbackResponseId), ); } - export function getAllFeedbackResponseIdFromJSON( jsonString: string, ): SafeParseResult { @@ -331,7 +289,6 @@ export const GetAllFeedbackResponseUserId$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.union([z.string(), z.number()]); - /** @internal */ export type GetAllFeedbackResponseUserId$Outbound = string | number; @@ -342,19 +299,6 @@ export const GetAllFeedbackResponseUserId$outboundSchema: z.ZodType< GetAllFeedbackResponseUserId > = z.union([z.string(), z.number()]); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAllFeedbackResponseUserId$ { - /** @deprecated use `GetAllFeedbackResponseUserId$inboundSchema` instead. */ - export const inboundSchema = GetAllFeedbackResponseUserId$inboundSchema; - /** @deprecated use `GetAllFeedbackResponseUserId$outboundSchema` instead. */ - export const outboundSchema = GetAllFeedbackResponseUserId$outboundSchema; - /** @deprecated use `GetAllFeedbackResponseUserId$Outbound` instead. */ - export type Outbound = GetAllFeedbackResponseUserId$Outbound; -} - export function getAllFeedbackResponseUserIdToJSON( getAllFeedbackResponseUserId: GetAllFeedbackResponseUserId, ): string { @@ -364,7 +308,6 @@ export function getAllFeedbackResponseUserIdToJSON( ), ); } - export function getAllFeedbackResponseUserIdFromJSON( jsonString: string, ): SafeParseResult { @@ -391,7 +334,6 @@ export const GetAllFeedbackResponseUserProperties$inboundSchema: z.ZodType< "additionalProperties", true, ); - /** @internal */ export type GetAllFeedbackResponseUserProperties$Outbound = { id?: string | number | null | undefined; @@ -413,7 +355,7 @@ export const GetAllFeedbackResponseUserProperties$outboundSchema: z.ZodType< userId: z.nullable(z.union([z.string(), z.number()])).optional(), supportAgentName: z.nullable(z.string()).optional(), userType: z.nullable(z.string()).optional(), - additionalProperties: z.record(z.any()), + additionalProperties: z.record(z.any()).optional(), }).transform((v) => { return { ...v.additionalProperties, @@ -423,21 +365,6 @@ export const GetAllFeedbackResponseUserProperties$outboundSchema: z.ZodType< }; }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAllFeedbackResponseUserProperties$ { - /** @deprecated use `GetAllFeedbackResponseUserProperties$inboundSchema` instead. */ - export const inboundSchema = - GetAllFeedbackResponseUserProperties$inboundSchema; - /** @deprecated use `GetAllFeedbackResponseUserProperties$outboundSchema` instead. */ - export const outboundSchema = - GetAllFeedbackResponseUserProperties$outboundSchema; - /** @deprecated use `GetAllFeedbackResponseUserProperties$Outbound` instead. */ - export type Outbound = GetAllFeedbackResponseUserProperties$Outbound; -} - export function getAllFeedbackResponseUserPropertiesToJSON( getAllFeedbackResponseUserProperties: GetAllFeedbackResponseUserProperties, ): string { @@ -447,7 +374,6 @@ export function getAllFeedbackResponseUserPropertiesToJSON( ), ); } - export function getAllFeedbackResponseUserPropertiesFromJSON( jsonString: string, ): SafeParseResult { @@ -463,25 +389,11 @@ export function getAllFeedbackResponseUserPropertiesFromJSON( export const GetAllFeedbackResponsePositiveFeedbackType$inboundSchema: z.ZodNativeEnum = z .nativeEnum(GetAllFeedbackResponsePositiveFeedbackType); - /** @internal */ export const GetAllFeedbackResponsePositiveFeedbackType$outboundSchema: z.ZodNativeEnum = GetAllFeedbackResponsePositiveFeedbackType$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAllFeedbackResponsePositiveFeedbackType$ { - /** @deprecated use `GetAllFeedbackResponsePositiveFeedbackType$inboundSchema` instead. */ - export const inboundSchema = - GetAllFeedbackResponsePositiveFeedbackType$inboundSchema; - /** @deprecated use `GetAllFeedbackResponsePositiveFeedbackType$outboundSchema` instead. */ - export const outboundSchema = - GetAllFeedbackResponsePositiveFeedbackType$outboundSchema; -} - /** @internal */ export const Sources$inboundSchema: z.ZodType = z.object({ @@ -489,7 +401,6 @@ export const Sources$inboundSchema: z.ZodType = title: z.nullable(z.string()).optional(), url: z.nullable(z.string()).optional(), }); - /** @internal */ export type Sources$Outbound = { type: string | null; @@ -508,23 +419,9 @@ export const Sources$outboundSchema: z.ZodType< url: z.nullable(z.string()).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Sources$ { - /** @deprecated use `Sources$inboundSchema` instead. */ - export const inboundSchema = Sources$inboundSchema; - /** @deprecated use `Sources$outboundSchema` instead. */ - export const outboundSchema = Sources$outboundSchema; - /** @deprecated use `Sources$Outbound` instead. */ - export type Outbound = Sources$Outbound; -} - export function sourcesToJSON(sources: Sources): string { return JSON.stringify(Sources$outboundSchema.parse(sources)); } - export function sourcesFromJSON( jsonString: string, ): SafeParseResult { @@ -556,7 +453,6 @@ export const PositiveFeedback$inboundSchema: z.ZodType< conversation: Conversation$inboundSchema, message: Message$inboundSchema, }); - /** @internal */ export type PositiveFeedback$Outbound = { id: string; @@ -598,19 +494,6 @@ export const PositiveFeedback$outboundSchema: z.ZodType< message: Message$outboundSchema, }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PositiveFeedback$ { - /** @deprecated use `PositiveFeedback$inboundSchema` instead. */ - export const inboundSchema = PositiveFeedback$inboundSchema; - /** @deprecated use `PositiveFeedback$outboundSchema` instead. */ - export const outboundSchema = PositiveFeedback$outboundSchema; - /** @deprecated use `PositiveFeedback$Outbound` instead. */ - export type Outbound = PositiveFeedback$Outbound; -} - export function positiveFeedbackToJSON( positiveFeedback: PositiveFeedback, ): string { @@ -618,7 +501,6 @@ export function positiveFeedbackToJSON( PositiveFeedback$outboundSchema.parse(positiveFeedback), ); } - export function positiveFeedbackFromJSON( jsonString: string, ): SafeParseResult { @@ -633,25 +515,11 @@ export function positiveFeedbackFromJSON( export const GetAllFeedbackResponseNegativeFeedbackType$inboundSchema: z.ZodNativeEnum = z .nativeEnum(GetAllFeedbackResponseNegativeFeedbackType); - /** @internal */ export const GetAllFeedbackResponseNegativeFeedbackType$outboundSchema: z.ZodNativeEnum = GetAllFeedbackResponseNegativeFeedbackType$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAllFeedbackResponseNegativeFeedbackType$ { - /** @deprecated use `GetAllFeedbackResponseNegativeFeedbackType$inboundSchema` instead. */ - export const inboundSchema = - GetAllFeedbackResponseNegativeFeedbackType$inboundSchema; - /** @deprecated use `GetAllFeedbackResponseNegativeFeedbackType$outboundSchema` instead. */ - export const outboundSchema = - GetAllFeedbackResponseNegativeFeedbackType$outboundSchema; -} - /** @internal */ export const GetAllFeedbackResponseReasons$inboundSchema: z.ZodType< GetAllFeedbackResponseReasons, @@ -661,7 +529,6 @@ export const GetAllFeedbackResponseReasons$inboundSchema: z.ZodType< label: z.string(), details: z.string(), }); - /** @internal */ export type GetAllFeedbackResponseReasons$Outbound = { label: string; @@ -678,19 +545,6 @@ export const GetAllFeedbackResponseReasons$outboundSchema: z.ZodType< details: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAllFeedbackResponseReasons$ { - /** @deprecated use `GetAllFeedbackResponseReasons$inboundSchema` instead. */ - export const inboundSchema = GetAllFeedbackResponseReasons$inboundSchema; - /** @deprecated use `GetAllFeedbackResponseReasons$outboundSchema` instead. */ - export const outboundSchema = GetAllFeedbackResponseReasons$outboundSchema; - /** @deprecated use `GetAllFeedbackResponseReasons$Outbound` instead. */ - export type Outbound = GetAllFeedbackResponseReasons$Outbound; -} - export function getAllFeedbackResponseReasonsToJSON( getAllFeedbackResponseReasons: GetAllFeedbackResponseReasons, ): string { @@ -700,7 +554,6 @@ export function getAllFeedbackResponseReasonsToJSON( ), ); } - export function getAllFeedbackResponseReasonsFromJSON( jsonString: string, ): SafeParseResult { @@ -717,7 +570,6 @@ export const GetAllFeedbackResponseNegativeFeedbackId$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.union([z.string(), z.number()]); - /** @internal */ export type GetAllFeedbackResponseNegativeFeedbackId$Outbound = string | number; @@ -728,21 +580,6 @@ export const GetAllFeedbackResponseNegativeFeedbackId$outboundSchema: z.ZodType< GetAllFeedbackResponseNegativeFeedbackId > = z.union([z.string(), z.number()]); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAllFeedbackResponseNegativeFeedbackId$ { - /** @deprecated use `GetAllFeedbackResponseNegativeFeedbackId$inboundSchema` instead. */ - export const inboundSchema = - GetAllFeedbackResponseNegativeFeedbackId$inboundSchema; - /** @deprecated use `GetAllFeedbackResponseNegativeFeedbackId$outboundSchema` instead. */ - export const outboundSchema = - GetAllFeedbackResponseNegativeFeedbackId$outboundSchema; - /** @deprecated use `GetAllFeedbackResponseNegativeFeedbackId$Outbound` instead. */ - export type Outbound = GetAllFeedbackResponseNegativeFeedbackId$Outbound; -} - export function getAllFeedbackResponseNegativeFeedbackIdToJSON( getAllFeedbackResponseNegativeFeedbackId: GetAllFeedbackResponseNegativeFeedbackId, @@ -753,7 +590,6 @@ export function getAllFeedbackResponseNegativeFeedbackIdToJSON( ), ); } - export function getAllFeedbackResponseNegativeFeedbackIdFromJSON( jsonString: string, ): SafeParseResult< @@ -777,7 +613,6 @@ export const GetAllFeedbackResponseNegativeFeedbackUserId$inboundSchema: z.ZodTypeDef, unknown > = z.union([z.string(), z.number()]); - /** @internal */ export type GetAllFeedbackResponseNegativeFeedbackUserId$Outbound = | string @@ -791,21 +626,6 @@ export const GetAllFeedbackResponseNegativeFeedbackUserId$outboundSchema: GetAllFeedbackResponseNegativeFeedbackUserId > = z.union([z.string(), z.number()]); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAllFeedbackResponseNegativeFeedbackUserId$ { - /** @deprecated use `GetAllFeedbackResponseNegativeFeedbackUserId$inboundSchema` instead. */ - export const inboundSchema = - GetAllFeedbackResponseNegativeFeedbackUserId$inboundSchema; - /** @deprecated use `GetAllFeedbackResponseNegativeFeedbackUserId$outboundSchema` instead. */ - export const outboundSchema = - GetAllFeedbackResponseNegativeFeedbackUserId$outboundSchema; - /** @deprecated use `GetAllFeedbackResponseNegativeFeedbackUserId$Outbound` instead. */ - export type Outbound = GetAllFeedbackResponseNegativeFeedbackUserId$Outbound; -} - export function getAllFeedbackResponseNegativeFeedbackUserIdToJSON( getAllFeedbackResponseNegativeFeedbackUserId: GetAllFeedbackResponseNegativeFeedbackUserId, @@ -816,7 +636,6 @@ export function getAllFeedbackResponseNegativeFeedbackUserIdToJSON( ), ); } - export function getAllFeedbackResponseNegativeFeedbackUserIdFromJSON( jsonString: string, ): SafeParseResult< @@ -850,7 +669,6 @@ export const GetAllFeedbackResponseNegativeFeedbackUserProperties$inboundSchema: "additionalProperties", true, ); - /** @internal */ export type GetAllFeedbackResponseNegativeFeedbackUserProperties$Outbound = { id?: string | number | null | undefined; @@ -873,7 +691,7 @@ export const GetAllFeedbackResponseNegativeFeedbackUserProperties$outboundSchema userId: z.nullable(z.union([z.string(), z.number()])).optional(), supportAgentName: z.nullable(z.string()).optional(), userType: z.nullable(z.string()).optional(), - additionalProperties: z.record(z.any()), + additionalProperties: z.record(z.any()).optional(), }).transform((v) => { return { ...v.additionalProperties, @@ -883,22 +701,6 @@ export const GetAllFeedbackResponseNegativeFeedbackUserProperties$outboundSchema }; }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAllFeedbackResponseNegativeFeedbackUserProperties$ { - /** @deprecated use `GetAllFeedbackResponseNegativeFeedbackUserProperties$inboundSchema` instead. */ - export const inboundSchema = - GetAllFeedbackResponseNegativeFeedbackUserProperties$inboundSchema; - /** @deprecated use `GetAllFeedbackResponseNegativeFeedbackUserProperties$outboundSchema` instead. */ - export const outboundSchema = - GetAllFeedbackResponseNegativeFeedbackUserProperties$outboundSchema; - /** @deprecated use `GetAllFeedbackResponseNegativeFeedbackUserProperties$Outbound` instead. */ - export type Outbound = - GetAllFeedbackResponseNegativeFeedbackUserProperties$Outbound; -} - export function getAllFeedbackResponseNegativeFeedbackUserPropertiesToJSON( getAllFeedbackResponseNegativeFeedbackUserProperties: GetAllFeedbackResponseNegativeFeedbackUserProperties, @@ -909,7 +711,6 @@ export function getAllFeedbackResponseNegativeFeedbackUserPropertiesToJSON( ), ); } - export function getAllFeedbackResponseNegativeFeedbackUserPropertiesFromJSON( jsonString: string, ): SafeParseResult< @@ -930,25 +731,11 @@ export function getAllFeedbackResponseNegativeFeedbackUserPropertiesFromJSON( export const GetAllFeedbackResponseNegativeFeedbackSourcesType$inboundSchema: z.ZodNativeEnum = z .nativeEnum(GetAllFeedbackResponseNegativeFeedbackSourcesType); - /** @internal */ export const GetAllFeedbackResponseNegativeFeedbackSourcesType$outboundSchema: z.ZodNativeEnum = GetAllFeedbackResponseNegativeFeedbackSourcesType$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAllFeedbackResponseNegativeFeedbackSourcesType$ { - /** @deprecated use `GetAllFeedbackResponseNegativeFeedbackSourcesType$inboundSchema` instead. */ - export const inboundSchema = - GetAllFeedbackResponseNegativeFeedbackSourcesType$inboundSchema; - /** @deprecated use `GetAllFeedbackResponseNegativeFeedbackSourcesType$outboundSchema` instead. */ - export const outboundSchema = - GetAllFeedbackResponseNegativeFeedbackSourcesType$outboundSchema; -} - /** @internal */ export const GetAllFeedbackResponseSources$inboundSchema: z.ZodType< GetAllFeedbackResponseSources, @@ -961,7 +748,6 @@ export const GetAllFeedbackResponseSources$inboundSchema: z.ZodType< title: z.nullable(z.string()).optional(), url: z.nullable(z.string()).optional(), }); - /** @internal */ export type GetAllFeedbackResponseSources$Outbound = { type: string | null; @@ -982,19 +768,6 @@ export const GetAllFeedbackResponseSources$outboundSchema: z.ZodType< url: z.nullable(z.string()).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAllFeedbackResponseSources$ { - /** @deprecated use `GetAllFeedbackResponseSources$inboundSchema` instead. */ - export const inboundSchema = GetAllFeedbackResponseSources$inboundSchema; - /** @deprecated use `GetAllFeedbackResponseSources$outboundSchema` instead. */ - export const outboundSchema = GetAllFeedbackResponseSources$outboundSchema; - /** @deprecated use `GetAllFeedbackResponseSources$Outbound` instead. */ - export type Outbound = GetAllFeedbackResponseSources$Outbound; -} - export function getAllFeedbackResponseSourcesToJSON( getAllFeedbackResponseSources: GetAllFeedbackResponseSources, ): string { @@ -1004,7 +777,6 @@ export function getAllFeedbackResponseSourcesToJSON( ), ); } - export function getAllFeedbackResponseSourcesFromJSON( jsonString: string, ): SafeParseResult { @@ -1042,7 +814,6 @@ export const NegativeFeedback$inboundSchema: z.ZodType< conversation: Conversation$inboundSchema, message: Message$inboundSchema, }); - /** @internal */ export type NegativeFeedback$Outbound = { id: string; @@ -1090,19 +861,6 @@ export const NegativeFeedback$outboundSchema: z.ZodType< message: Message$outboundSchema, }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace NegativeFeedback$ { - /** @deprecated use `NegativeFeedback$inboundSchema` instead. */ - export const inboundSchema = NegativeFeedback$inboundSchema; - /** @deprecated use `NegativeFeedback$outboundSchema` instead. */ - export const outboundSchema = NegativeFeedback$outboundSchema; - /** @deprecated use `NegativeFeedback$Outbound` instead. */ - export type Outbound = NegativeFeedback$Outbound; -} - export function negativeFeedbackToJSON( negativeFeedback: NegativeFeedback, ): string { @@ -1110,7 +868,6 @@ export function negativeFeedbackToJSON( NegativeFeedback$outboundSchema.parse(negativeFeedback), ); } - export function negativeFeedbackFromJSON( jsonString: string, ): SafeParseResult { @@ -1132,7 +889,6 @@ export const GetAllFeedbackResponse$inboundSchema: z.ZodType< positiveFeedback: z.array(z.lazy(() => PositiveFeedback$inboundSchema)), negativeFeedback: z.array(z.lazy(() => NegativeFeedback$inboundSchema)), }); - /** @internal */ export type GetAllFeedbackResponse$Outbound = { positiveFeedbackCount: number; @@ -1153,19 +909,6 @@ export const GetAllFeedbackResponse$outboundSchema: z.ZodType< negativeFeedback: z.array(z.lazy(() => NegativeFeedback$outboundSchema)), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAllFeedbackResponse$ { - /** @deprecated use `GetAllFeedbackResponse$inboundSchema` instead. */ - export const inboundSchema = GetAllFeedbackResponse$inboundSchema; - /** @deprecated use `GetAllFeedbackResponse$outboundSchema` instead. */ - export const outboundSchema = GetAllFeedbackResponse$outboundSchema; - /** @deprecated use `GetAllFeedbackResponse$Outbound` instead. */ - export type Outbound = GetAllFeedbackResponse$Outbound; -} - export function getAllFeedbackResponseToJSON( getAllFeedbackResponse: GetAllFeedbackResponse, ): string { @@ -1173,7 +916,6 @@ export function getAllFeedbackResponseToJSON( GetAllFeedbackResponse$outboundSchema.parse(getAllFeedbackResponse), ); } - export function getAllFeedbackResponseFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/insertconversationevent.ts b/src/models/components/insertconversationevent.ts index b002afe9..55712a81 100644 --- a/src/models/components/insertconversationevent.ts +++ b/src/models/components/insertconversationevent.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { collectExtraKeys as collectExtraKeys$, @@ -46,7 +46,7 @@ export type InsertConversationEventUserProperties = { * The type of user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. */ userType?: string | null | undefined; - additionalProperties?: { [k: string]: any }; + additionalProperties?: { [k: string]: any } | undefined; }; export const InsertConversationEventEntityType = { @@ -83,7 +83,6 @@ export const InsertConversationEventId$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.union([z.string(), z.number()]); - /** @internal */ export type InsertConversationEventId$Outbound = string | number; @@ -94,19 +93,6 @@ export const InsertConversationEventId$outboundSchema: z.ZodType< InsertConversationEventId > = z.union([z.string(), z.number()]); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace InsertConversationEventId$ { - /** @deprecated use `InsertConversationEventId$inboundSchema` instead. */ - export const inboundSchema = InsertConversationEventId$inboundSchema; - /** @deprecated use `InsertConversationEventId$outboundSchema` instead. */ - export const outboundSchema = InsertConversationEventId$outboundSchema; - /** @deprecated use `InsertConversationEventId$Outbound` instead. */ - export type Outbound = InsertConversationEventId$Outbound; -} - export function insertConversationEventIdToJSON( insertConversationEventId: InsertConversationEventId, ): string { @@ -114,7 +100,6 @@ export function insertConversationEventIdToJSON( InsertConversationEventId$outboundSchema.parse(insertConversationEventId), ); } - export function insertConversationEventIdFromJSON( jsonString: string, ): SafeParseResult { @@ -131,7 +116,6 @@ export const InsertConversationEventUserId$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.union([z.string(), z.number()]); - /** @internal */ export type InsertConversationEventUserId$Outbound = string | number; @@ -142,19 +126,6 @@ export const InsertConversationEventUserId$outboundSchema: z.ZodType< InsertConversationEventUserId > = z.union([z.string(), z.number()]); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace InsertConversationEventUserId$ { - /** @deprecated use `InsertConversationEventUserId$inboundSchema` instead. */ - export const inboundSchema = InsertConversationEventUserId$inboundSchema; - /** @deprecated use `InsertConversationEventUserId$outboundSchema` instead. */ - export const outboundSchema = InsertConversationEventUserId$outboundSchema; - /** @deprecated use `InsertConversationEventUserId$Outbound` instead. */ - export type Outbound = InsertConversationEventUserId$Outbound; -} - export function insertConversationEventUserIdToJSON( insertConversationEventUserId: InsertConversationEventUserId, ): string { @@ -164,7 +135,6 @@ export function insertConversationEventUserIdToJSON( ), ); } - export function insertConversationEventUserIdFromJSON( jsonString: string, ): SafeParseResult { @@ -191,7 +161,6 @@ export const InsertConversationEventUserProperties$inboundSchema: z.ZodType< "additionalProperties", true, ); - /** @internal */ export type InsertConversationEventUserProperties$Outbound = { id?: string | number | null | undefined; @@ -213,7 +182,7 @@ export const InsertConversationEventUserProperties$outboundSchema: z.ZodType< userId: z.nullable(z.union([z.string(), z.number()])).optional(), supportAgentName: z.nullable(z.string()).optional(), userType: z.nullable(z.string()).optional(), - additionalProperties: z.record(z.any()), + additionalProperties: z.record(z.any()).optional(), }).transform((v) => { return { ...v.additionalProperties, @@ -223,21 +192,6 @@ export const InsertConversationEventUserProperties$outboundSchema: z.ZodType< }; }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace InsertConversationEventUserProperties$ { - /** @deprecated use `InsertConversationEventUserProperties$inboundSchema` instead. */ - export const inboundSchema = - InsertConversationEventUserProperties$inboundSchema; - /** @deprecated use `InsertConversationEventUserProperties$outboundSchema` instead. */ - export const outboundSchema = - InsertConversationEventUserProperties$outboundSchema; - /** @deprecated use `InsertConversationEventUserProperties$Outbound` instead. */ - export type Outbound = InsertConversationEventUserProperties$Outbound; -} - export function insertConversationEventUserPropertiesToJSON( insertConversationEventUserProperties: InsertConversationEventUserProperties, ): string { @@ -247,7 +201,6 @@ export function insertConversationEventUserPropertiesToJSON( ), ); } - export function insertConversationEventUserPropertiesFromJSON( jsonString: string, ): SafeParseResult { @@ -263,24 +216,11 @@ export function insertConversationEventUserPropertiesFromJSON( export const InsertConversationEventEntityType$inboundSchema: z.ZodNativeEnum< typeof InsertConversationEventEntityType > = z.nativeEnum(InsertConversationEventEntityType); - /** @internal */ export const InsertConversationEventEntityType$outboundSchema: z.ZodNativeEnum< typeof InsertConversationEventEntityType > = InsertConversationEventEntityType$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace InsertConversationEventEntityType$ { - /** @deprecated use `InsertConversationEventEntityType$inboundSchema` instead. */ - export const inboundSchema = InsertConversationEventEntityType$inboundSchema; - /** @deprecated use `InsertConversationEventEntityType$outboundSchema` instead. */ - export const outboundSchema = - InsertConversationEventEntityType$outboundSchema; -} - /** @internal */ export const InsertConversationEvent$inboundSchema: z.ZodType< InsertConversationEvent, @@ -301,7 +241,6 @@ export const InsertConversationEvent$inboundSchema: z.ZodType< ).optional(), entityType: InsertConversationEventEntityType$inboundSchema, }); - /** @internal */ export type InsertConversationEvent$Outbound = { id?: string | undefined; @@ -337,19 +276,6 @@ export const InsertConversationEvent$outboundSchema: z.ZodType< entityType: InsertConversationEventEntityType$outboundSchema, }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace InsertConversationEvent$ { - /** @deprecated use `InsertConversationEvent$inboundSchema` instead. */ - export const inboundSchema = InsertConversationEvent$inboundSchema; - /** @deprecated use `InsertConversationEvent$outboundSchema` instead. */ - export const outboundSchema = InsertConversationEvent$outboundSchema; - /** @deprecated use `InsertConversationEvent$Outbound` instead. */ - export type Outbound = InsertConversationEvent$Outbound; -} - export function insertConversationEventToJSON( insertConversationEvent: InsertConversationEvent, ): string { @@ -357,7 +283,6 @@ export function insertConversationEventToJSON( InsertConversationEvent$outboundSchema.parse(insertConversationEvent), ); } - export function insertConversationEventFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/insertevent.ts b/src/models/components/insertevent.ts index de7e53c6..5134aac0 100644 --- a/src/models/components/insertevent.ts +++ b/src/models/components/insertevent.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -52,7 +52,6 @@ export const InsertEvent$inboundSchema: z.ZodType< })), ), ]); - /** @internal */ export type InsertEvent$Outbound = | (InsertMessageEvent$Outbound & { entityType: "message" }) @@ -82,23 +81,9 @@ export const InsertEvent$outboundSchema: z.ZodType< ), ]); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace InsertEvent$ { - /** @deprecated use `InsertEvent$inboundSchema` instead. */ - export const inboundSchema = InsertEvent$inboundSchema; - /** @deprecated use `InsertEvent$outboundSchema` instead. */ - export const outboundSchema = InsertEvent$outboundSchema; - /** @deprecated use `InsertEvent$Outbound` instead. */ - export type Outbound = InsertEvent$Outbound; -} - export function insertEventToJSON(insertEvent: InsertEvent): string { return JSON.stringify(InsertEvent$outboundSchema.parse(insertEvent)); } - export function insertEventFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/insertmessageevent.ts b/src/models/components/insertmessageevent.ts index 763153a2..7e39eec2 100644 --- a/src/models/components/insertmessageevent.ts +++ b/src/models/components/insertmessageevent.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { collectExtraKeys as collectExtraKeys$, @@ -46,7 +46,7 @@ export type InsertMessageEventUserProperties = { * The type of user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. */ userType?: string | null | undefined; - additionalProperties?: { [k: string]: any }; + additionalProperties?: { [k: string]: any } | undefined; }; export const EntityType = { @@ -81,7 +81,6 @@ export const InsertMessageEventId$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.union([z.string(), z.number()]); - /** @internal */ export type InsertMessageEventId$Outbound = string | number; @@ -92,19 +91,6 @@ export const InsertMessageEventId$outboundSchema: z.ZodType< InsertMessageEventId > = z.union([z.string(), z.number()]); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace InsertMessageEventId$ { - /** @deprecated use `InsertMessageEventId$inboundSchema` instead. */ - export const inboundSchema = InsertMessageEventId$inboundSchema; - /** @deprecated use `InsertMessageEventId$outboundSchema` instead. */ - export const outboundSchema = InsertMessageEventId$outboundSchema; - /** @deprecated use `InsertMessageEventId$Outbound` instead. */ - export type Outbound = InsertMessageEventId$Outbound; -} - export function insertMessageEventIdToJSON( insertMessageEventId: InsertMessageEventId, ): string { @@ -112,7 +98,6 @@ export function insertMessageEventIdToJSON( InsertMessageEventId$outboundSchema.parse(insertMessageEventId), ); } - export function insertMessageEventIdFromJSON( jsonString: string, ): SafeParseResult { @@ -129,7 +114,6 @@ export const InsertMessageEventUserId$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.union([z.string(), z.number()]); - /** @internal */ export type InsertMessageEventUserId$Outbound = string | number; @@ -140,19 +124,6 @@ export const InsertMessageEventUserId$outboundSchema: z.ZodType< InsertMessageEventUserId > = z.union([z.string(), z.number()]); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace InsertMessageEventUserId$ { - /** @deprecated use `InsertMessageEventUserId$inboundSchema` instead. */ - export const inboundSchema = InsertMessageEventUserId$inboundSchema; - /** @deprecated use `InsertMessageEventUserId$outboundSchema` instead. */ - export const outboundSchema = InsertMessageEventUserId$outboundSchema; - /** @deprecated use `InsertMessageEventUserId$Outbound` instead. */ - export type Outbound = InsertMessageEventUserId$Outbound; -} - export function insertMessageEventUserIdToJSON( insertMessageEventUserId: InsertMessageEventUserId, ): string { @@ -160,7 +131,6 @@ export function insertMessageEventUserIdToJSON( InsertMessageEventUserId$outboundSchema.parse(insertMessageEventUserId), ); } - export function insertMessageEventUserIdFromJSON( jsonString: string, ): SafeParseResult { @@ -187,7 +157,6 @@ export const InsertMessageEventUserProperties$inboundSchema: z.ZodType< "additionalProperties", true, ); - /** @internal */ export type InsertMessageEventUserProperties$Outbound = { id?: string | number | null | undefined; @@ -209,7 +178,7 @@ export const InsertMessageEventUserProperties$outboundSchema: z.ZodType< userId: z.nullable(z.union([z.string(), z.number()])).optional(), supportAgentName: z.nullable(z.string()).optional(), userType: z.nullable(z.string()).optional(), - additionalProperties: z.record(z.any()), + additionalProperties: z.record(z.any()).optional(), }).transform((v) => { return { ...v.additionalProperties, @@ -219,19 +188,6 @@ export const InsertMessageEventUserProperties$outboundSchema: z.ZodType< }; }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace InsertMessageEventUserProperties$ { - /** @deprecated use `InsertMessageEventUserProperties$inboundSchema` instead. */ - export const inboundSchema = InsertMessageEventUserProperties$inboundSchema; - /** @deprecated use `InsertMessageEventUserProperties$outboundSchema` instead. */ - export const outboundSchema = InsertMessageEventUserProperties$outboundSchema; - /** @deprecated use `InsertMessageEventUserProperties$Outbound` instead. */ - export type Outbound = InsertMessageEventUserProperties$Outbound; -} - export function insertMessageEventUserPropertiesToJSON( insertMessageEventUserProperties: InsertMessageEventUserProperties, ): string { @@ -241,7 +197,6 @@ export function insertMessageEventUserPropertiesToJSON( ), ); } - export function insertMessageEventUserPropertiesFromJSON( jsonString: string, ): SafeParseResult { @@ -255,22 +210,10 @@ export function insertMessageEventUserPropertiesFromJSON( /** @internal */ export const EntityType$inboundSchema: z.ZodNativeEnum = z .nativeEnum(EntityType); - /** @internal */ export const EntityType$outboundSchema: z.ZodNativeEnum = EntityType$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EntityType$ { - /** @deprecated use `EntityType$inboundSchema` instead. */ - export const inboundSchema = EntityType$inboundSchema; - /** @deprecated use `EntityType$outboundSchema` instead. */ - export const outboundSchema = EntityType$outboundSchema; -} - /** @internal */ export const InsertMessageEvent$inboundSchema: z.ZodType< InsertMessageEvent, @@ -291,7 +234,6 @@ export const InsertMessageEvent$inboundSchema: z.ZodType< ).optional(), entityType: EntityType$inboundSchema, }); - /** @internal */ export type InsertMessageEvent$Outbound = { id?: string | undefined; @@ -324,19 +266,6 @@ export const InsertMessageEvent$outboundSchema: z.ZodType< entityType: EntityType$outboundSchema, }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace InsertMessageEvent$ { - /** @deprecated use `InsertMessageEvent$inboundSchema` instead. */ - export const inboundSchema = InsertMessageEvent$inboundSchema; - /** @deprecated use `InsertMessageEvent$outboundSchema` instead. */ - export const outboundSchema = InsertMessageEvent$outboundSchema; - /** @deprecated use `InsertMessageEvent$Outbound` instead. */ - export type Outbound = InsertMessageEvent$Outbound; -} - export function insertMessageEventToJSON( insertMessageEvent: InsertMessageEvent, ): string { @@ -344,7 +273,6 @@ export function insertMessageEventToJSON( InsertMessageEvent$outboundSchema.parse(insertMessageEvent), ); } - export function insertMessageEventFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/insertsearchevent.ts b/src/models/components/insertsearchevent.ts index 6611c123..51871e86 100644 --- a/src/models/components/insertsearchevent.ts +++ b/src/models/components/insertsearchevent.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { collectExtraKeys as collectExtraKeys$, @@ -46,7 +46,7 @@ export type InsertSearchEventUserProperties = { * The type of user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. */ userType?: string | null | undefined; - additionalProperties?: { [k: string]: any }; + additionalProperties?: { [k: string]: any } | undefined; }; export const InsertSearchEventEntityType = { @@ -83,7 +83,6 @@ export const InsertSearchEventId$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.union([z.string(), z.number()]); - /** @internal */ export type InsertSearchEventId$Outbound = string | number; @@ -94,19 +93,6 @@ export const InsertSearchEventId$outboundSchema: z.ZodType< InsertSearchEventId > = z.union([z.string(), z.number()]); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace InsertSearchEventId$ { - /** @deprecated use `InsertSearchEventId$inboundSchema` instead. */ - export const inboundSchema = InsertSearchEventId$inboundSchema; - /** @deprecated use `InsertSearchEventId$outboundSchema` instead. */ - export const outboundSchema = InsertSearchEventId$outboundSchema; - /** @deprecated use `InsertSearchEventId$Outbound` instead. */ - export type Outbound = InsertSearchEventId$Outbound; -} - export function insertSearchEventIdToJSON( insertSearchEventId: InsertSearchEventId, ): string { @@ -114,7 +100,6 @@ export function insertSearchEventIdToJSON( InsertSearchEventId$outboundSchema.parse(insertSearchEventId), ); } - export function insertSearchEventIdFromJSON( jsonString: string, ): SafeParseResult { @@ -131,7 +116,6 @@ export const InsertSearchEventUserId$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.union([z.string(), z.number()]); - /** @internal */ export type InsertSearchEventUserId$Outbound = string | number; @@ -142,19 +126,6 @@ export const InsertSearchEventUserId$outboundSchema: z.ZodType< InsertSearchEventUserId > = z.union([z.string(), z.number()]); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace InsertSearchEventUserId$ { - /** @deprecated use `InsertSearchEventUserId$inboundSchema` instead. */ - export const inboundSchema = InsertSearchEventUserId$inboundSchema; - /** @deprecated use `InsertSearchEventUserId$outboundSchema` instead. */ - export const outboundSchema = InsertSearchEventUserId$outboundSchema; - /** @deprecated use `InsertSearchEventUserId$Outbound` instead. */ - export type Outbound = InsertSearchEventUserId$Outbound; -} - export function insertSearchEventUserIdToJSON( insertSearchEventUserId: InsertSearchEventUserId, ): string { @@ -162,7 +133,6 @@ export function insertSearchEventUserIdToJSON( InsertSearchEventUserId$outboundSchema.parse(insertSearchEventUserId), ); } - export function insertSearchEventUserIdFromJSON( jsonString: string, ): SafeParseResult { @@ -189,7 +159,6 @@ export const InsertSearchEventUserProperties$inboundSchema: z.ZodType< "additionalProperties", true, ); - /** @internal */ export type InsertSearchEventUserProperties$Outbound = { id?: string | number | null | undefined; @@ -211,7 +180,7 @@ export const InsertSearchEventUserProperties$outboundSchema: z.ZodType< userId: z.nullable(z.union([z.string(), z.number()])).optional(), supportAgentName: z.nullable(z.string()).optional(), userType: z.nullable(z.string()).optional(), - additionalProperties: z.record(z.any()), + additionalProperties: z.record(z.any()).optional(), }).transform((v) => { return { ...v.additionalProperties, @@ -221,19 +190,6 @@ export const InsertSearchEventUserProperties$outboundSchema: z.ZodType< }; }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace InsertSearchEventUserProperties$ { - /** @deprecated use `InsertSearchEventUserProperties$inboundSchema` instead. */ - export const inboundSchema = InsertSearchEventUserProperties$inboundSchema; - /** @deprecated use `InsertSearchEventUserProperties$outboundSchema` instead. */ - export const outboundSchema = InsertSearchEventUserProperties$outboundSchema; - /** @deprecated use `InsertSearchEventUserProperties$Outbound` instead. */ - export type Outbound = InsertSearchEventUserProperties$Outbound; -} - export function insertSearchEventUserPropertiesToJSON( insertSearchEventUserProperties: InsertSearchEventUserProperties, ): string { @@ -243,7 +199,6 @@ export function insertSearchEventUserPropertiesToJSON( ), ); } - export function insertSearchEventUserPropertiesFromJSON( jsonString: string, ): SafeParseResult { @@ -258,23 +213,11 @@ export function insertSearchEventUserPropertiesFromJSON( export const InsertSearchEventEntityType$inboundSchema: z.ZodNativeEnum< typeof InsertSearchEventEntityType > = z.nativeEnum(InsertSearchEventEntityType); - /** @internal */ export const InsertSearchEventEntityType$outboundSchema: z.ZodNativeEnum< typeof InsertSearchEventEntityType > = InsertSearchEventEntityType$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace InsertSearchEventEntityType$ { - /** @deprecated use `InsertSearchEventEntityType$inboundSchema` instead. */ - export const inboundSchema = InsertSearchEventEntityType$inboundSchema; - /** @deprecated use `InsertSearchEventEntityType$outboundSchema` instead. */ - export const outboundSchema = InsertSearchEventEntityType$outboundSchema; -} - /** @internal */ export const InsertSearchEvent$inboundSchema: z.ZodType< InsertSearchEvent, @@ -295,7 +238,6 @@ export const InsertSearchEvent$inboundSchema: z.ZodType< ).optional(), entityType: InsertSearchEventEntityType$inboundSchema, }); - /** @internal */ export type InsertSearchEvent$Outbound = { id?: string | undefined; @@ -328,19 +270,6 @@ export const InsertSearchEvent$outboundSchema: z.ZodType< entityType: InsertSearchEventEntityType$outboundSchema, }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace InsertSearchEvent$ { - /** @deprecated use `InsertSearchEvent$inboundSchema` instead. */ - export const inboundSchema = InsertSearchEvent$inboundSchema; - /** @deprecated use `InsertSearchEvent$outboundSchema` instead. */ - export const outboundSchema = InsertSearchEvent$outboundSchema; - /** @deprecated use `InsertSearchEvent$Outbound` instead. */ - export type Outbound = InsertSearchEvent$Outbound; -} - export function insertSearchEventToJSON( insertSearchEvent: InsertSearchEvent, ): string { @@ -348,7 +277,6 @@ export function insertSearchEventToJSON( InsertSearchEvent$outboundSchema.parse(insertSearchEvent), ); } - export function insertSearchEventFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/message.ts b/src/models/components/message.ts index 7167402a..639be2e5 100644 --- a/src/models/components/message.ts +++ b/src/models/components/message.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -49,7 +49,6 @@ export const Message$inboundSchema: z.ZodType = })), ), ]); - /** @internal */ export type Message$Outbound = | (OpenAIExtendedMessage$Outbound & { type: "openai" }) @@ -79,23 +78,9 @@ export const Message$outboundSchema: z.ZodType< ), ]); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Message$ { - /** @deprecated use `Message$inboundSchema` instead. */ - export const inboundSchema = Message$inboundSchema; - /** @deprecated use `Message$outboundSchema` instead. */ - export const outboundSchema = Message$outboundSchema; - /** @deprecated use `Message$Outbound` instead. */ - export type Outbound = Message$Outbound; -} - export function messageToJSON(message: Message): string { return JSON.stringify(Message$outboundSchema.parse(message)); } - export function messageFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/openaichatcompletionmessage.ts b/src/models/components/openaichatcompletionmessage.ts index fa7daf61..a1dddd09 100644 --- a/src/models/components/openaichatcompletionmessage.ts +++ b/src/models/components/openaichatcompletionmessage.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; @@ -45,30 +45,17 @@ export type OpenAIChatCompletionMessage = { export const OpenAIChatCompletionMessageRole$inboundSchema: z.ZodNativeEnum< typeof OpenAIChatCompletionMessageRole > = z.nativeEnum(OpenAIChatCompletionMessageRole); - /** @internal */ export const OpenAIChatCompletionMessageRole$outboundSchema: z.ZodNativeEnum< typeof OpenAIChatCompletionMessageRole > = OpenAIChatCompletionMessageRole$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace OpenAIChatCompletionMessageRole$ { - /** @deprecated use `OpenAIChatCompletionMessageRole$inboundSchema` instead. */ - export const inboundSchema = OpenAIChatCompletionMessageRole$inboundSchema; - /** @deprecated use `OpenAIChatCompletionMessageRole$outboundSchema` instead. */ - export const outboundSchema = OpenAIChatCompletionMessageRole$outboundSchema; -} - /** @internal */ export const OpenAIChatCompletionMessageContent$inboundSchema: z.ZodType< OpenAIChatCompletionMessageContent, z.ZodTypeDef, unknown > = z.union([z.string(), z.array(OpenAIContentItem$inboundSchema)]); - /** @internal */ export type OpenAIChatCompletionMessageContent$Outbound = | string @@ -81,20 +68,6 @@ export const OpenAIChatCompletionMessageContent$outboundSchema: z.ZodType< OpenAIChatCompletionMessageContent > = z.union([z.string(), z.array(OpenAIContentItem$outboundSchema)]); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace OpenAIChatCompletionMessageContent$ { - /** @deprecated use `OpenAIChatCompletionMessageContent$inboundSchema` instead. */ - export const inboundSchema = OpenAIChatCompletionMessageContent$inboundSchema; - /** @deprecated use `OpenAIChatCompletionMessageContent$outboundSchema` instead. */ - export const outboundSchema = - OpenAIChatCompletionMessageContent$outboundSchema; - /** @deprecated use `OpenAIChatCompletionMessageContent$Outbound` instead. */ - export type Outbound = OpenAIChatCompletionMessageContent$Outbound; -} - export function openAIChatCompletionMessageContentToJSON( openAIChatCompletionMessageContent: OpenAIChatCompletionMessageContent, ): string { @@ -104,7 +77,6 @@ export function openAIChatCompletionMessageContentToJSON( ), ); } - export function openAIChatCompletionMessageContentFromJSON( jsonString: string, ): SafeParseResult { @@ -131,7 +103,6 @@ export const OpenAIChatCompletionMessage$inboundSchema: z.ZodType< "tool_calls": "toolCalls", }); }); - /** @internal */ export type OpenAIChatCompletionMessage$Outbound = { role: string; @@ -156,19 +127,6 @@ export const OpenAIChatCompletionMessage$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace OpenAIChatCompletionMessage$ { - /** @deprecated use `OpenAIChatCompletionMessage$inboundSchema` instead. */ - export const inboundSchema = OpenAIChatCompletionMessage$inboundSchema; - /** @deprecated use `OpenAIChatCompletionMessage$outboundSchema` instead. */ - export const outboundSchema = OpenAIChatCompletionMessage$outboundSchema; - /** @deprecated use `OpenAIChatCompletionMessage$Outbound` instead. */ - export type Outbound = OpenAIChatCompletionMessage$Outbound; -} - export function openAIChatCompletionMessageToJSON( openAIChatCompletionMessage: OpenAIChatCompletionMessage, ): string { @@ -178,7 +136,6 @@ export function openAIChatCompletionMessageToJSON( ), ); } - export function openAIChatCompletionMessageFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/openaicontentitem.ts b/src/models/components/openaicontentitem.ts index 2c50bf80..1f31a9b9 100644 --- a/src/models/components/openaicontentitem.ts +++ b/src/models/components/openaicontentitem.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; @@ -31,23 +31,11 @@ export type OpenAIContentItem = { export const OpenAIContentItemType$inboundSchema: z.ZodNativeEnum< typeof OpenAIContentItemType > = z.nativeEnum(OpenAIContentItemType); - /** @internal */ export const OpenAIContentItemType$outboundSchema: z.ZodNativeEnum< typeof OpenAIContentItemType > = OpenAIContentItemType$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace OpenAIContentItemType$ { - /** @deprecated use `OpenAIContentItemType$inboundSchema` instead. */ - export const inboundSchema = OpenAIContentItemType$inboundSchema; - /** @deprecated use `OpenAIContentItemType$outboundSchema` instead. */ - export const outboundSchema = OpenAIContentItemType$outboundSchema; -} - /** @internal */ export const OpenAIContentItem$inboundSchema: z.ZodType< OpenAIContentItem, @@ -62,7 +50,6 @@ export const OpenAIContentItem$inboundSchema: z.ZodType< "image_url": "imageUrl", }); }); - /** @internal */ export type OpenAIContentItem$Outbound = { type: string; @@ -85,19 +72,6 @@ export const OpenAIContentItem$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace OpenAIContentItem$ { - /** @deprecated use `OpenAIContentItem$inboundSchema` instead. */ - export const inboundSchema = OpenAIContentItem$inboundSchema; - /** @deprecated use `OpenAIContentItem$outboundSchema` instead. */ - export const outboundSchema = OpenAIContentItem$outboundSchema; - /** @deprecated use `OpenAIContentItem$Outbound` instead. */ - export type Outbound = OpenAIContentItem$Outbound; -} - export function openAIContentItemToJSON( openAIContentItem: OpenAIContentItem, ): string { @@ -105,7 +79,6 @@ export function openAIContentItemToJSON( OpenAIContentItem$outboundSchema.parse(openAIContentItem), ); } - export function openAIContentItemFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/openaiconversation.ts b/src/models/components/openaiconversation.ts index c97bf427..8de3b621 100644 --- a/src/models/components/openaiconversation.ts +++ b/src/models/components/openaiconversation.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { collectExtraKeys as collectExtraKeys$, @@ -63,7 +63,7 @@ export type OpenAIConversationUserProperties = { * The type of user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. */ userType?: string | null | undefined; - additionalProperties?: { [k: string]: any }; + additionalProperties?: { [k: string]: any } | undefined; }; export const OpenAIConversationVisibility = { @@ -105,30 +105,17 @@ export type OpenAIConversation = { export const OpenAIConversationType$inboundSchema: z.ZodNativeEnum< typeof OpenAIConversationType > = z.nativeEnum(OpenAIConversationType); - /** @internal */ export const OpenAIConversationType$outboundSchema: z.ZodNativeEnum< typeof OpenAIConversationType > = OpenAIConversationType$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace OpenAIConversationType$ { - /** @deprecated use `OpenAIConversationType$inboundSchema` instead. */ - export const inboundSchema = OpenAIConversationType$inboundSchema; - /** @deprecated use `OpenAIConversationType$outboundSchema` instead. */ - export const outboundSchema = OpenAIConversationType$outboundSchema; -} - /** @internal */ export const OpenAIConversationId$inboundSchema: z.ZodType< OpenAIConversationId, z.ZodTypeDef, unknown > = z.union([z.string(), z.number()]); - /** @internal */ export type OpenAIConversationId$Outbound = string | number; @@ -139,19 +126,6 @@ export const OpenAIConversationId$outboundSchema: z.ZodType< OpenAIConversationId > = z.union([z.string(), z.number()]); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace OpenAIConversationId$ { - /** @deprecated use `OpenAIConversationId$inboundSchema` instead. */ - export const inboundSchema = OpenAIConversationId$inboundSchema; - /** @deprecated use `OpenAIConversationId$outboundSchema` instead. */ - export const outboundSchema = OpenAIConversationId$outboundSchema; - /** @deprecated use `OpenAIConversationId$Outbound` instead. */ - export type Outbound = OpenAIConversationId$Outbound; -} - export function openAIConversationIdToJSON( openAIConversationId: OpenAIConversationId, ): string { @@ -159,7 +133,6 @@ export function openAIConversationIdToJSON( OpenAIConversationId$outboundSchema.parse(openAIConversationId), ); } - export function openAIConversationIdFromJSON( jsonString: string, ): SafeParseResult { @@ -176,7 +149,6 @@ export const OpenAIConversationUserId$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.union([z.string(), z.number()]); - /** @internal */ export type OpenAIConversationUserId$Outbound = string | number; @@ -187,19 +159,6 @@ export const OpenAIConversationUserId$outboundSchema: z.ZodType< OpenAIConversationUserId > = z.union([z.string(), z.number()]); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace OpenAIConversationUserId$ { - /** @deprecated use `OpenAIConversationUserId$inboundSchema` instead. */ - export const inboundSchema = OpenAIConversationUserId$inboundSchema; - /** @deprecated use `OpenAIConversationUserId$outboundSchema` instead. */ - export const outboundSchema = OpenAIConversationUserId$outboundSchema; - /** @deprecated use `OpenAIConversationUserId$Outbound` instead. */ - export type Outbound = OpenAIConversationUserId$Outbound; -} - export function openAIConversationUserIdToJSON( openAIConversationUserId: OpenAIConversationUserId, ): string { @@ -207,7 +166,6 @@ export function openAIConversationUserIdToJSON( OpenAIConversationUserId$outboundSchema.parse(openAIConversationUserId), ); } - export function openAIConversationUserIdFromJSON( jsonString: string, ): SafeParseResult { @@ -234,7 +192,6 @@ export const OpenAIConversationUserProperties$inboundSchema: z.ZodType< "additionalProperties", true, ); - /** @internal */ export type OpenAIConversationUserProperties$Outbound = { id?: string | number | null | undefined; @@ -256,7 +213,7 @@ export const OpenAIConversationUserProperties$outboundSchema: z.ZodType< userId: z.nullable(z.union([z.string(), z.number()])).optional(), supportAgentName: z.nullable(z.string()).optional(), userType: z.nullable(z.string()).optional(), - additionalProperties: z.record(z.any()), + additionalProperties: z.record(z.any()).optional(), }).transform((v) => { return { ...v.additionalProperties, @@ -266,19 +223,6 @@ export const OpenAIConversationUserProperties$outboundSchema: z.ZodType< }; }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace OpenAIConversationUserProperties$ { - /** @deprecated use `OpenAIConversationUserProperties$inboundSchema` instead. */ - export const inboundSchema = OpenAIConversationUserProperties$inboundSchema; - /** @deprecated use `OpenAIConversationUserProperties$outboundSchema` instead. */ - export const outboundSchema = OpenAIConversationUserProperties$outboundSchema; - /** @deprecated use `OpenAIConversationUserProperties$Outbound` instead. */ - export type Outbound = OpenAIConversationUserProperties$Outbound; -} - export function openAIConversationUserPropertiesToJSON( openAIConversationUserProperties: OpenAIConversationUserProperties, ): string { @@ -288,7 +232,6 @@ export function openAIConversationUserPropertiesToJSON( ), ); } - export function openAIConversationUserPropertiesFromJSON( jsonString: string, ): SafeParseResult { @@ -303,23 +246,11 @@ export function openAIConversationUserPropertiesFromJSON( export const OpenAIConversationVisibility$inboundSchema: z.ZodNativeEnum< typeof OpenAIConversationVisibility > = z.nativeEnum(OpenAIConversationVisibility); - /** @internal */ export const OpenAIConversationVisibility$outboundSchema: z.ZodNativeEnum< typeof OpenAIConversationVisibility > = OpenAIConversationVisibility$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace OpenAIConversationVisibility$ { - /** @deprecated use `OpenAIConversationVisibility$inboundSchema` instead. */ - export const inboundSchema = OpenAIConversationVisibility$inboundSchema; - /** @deprecated use `OpenAIConversationVisibility$outboundSchema` instead. */ - export const outboundSchema = OpenAIConversationVisibility$outboundSchema; -} - /** @internal */ export const OpenAIConversation$inboundSchema: z.ZodType< OpenAIConversation, @@ -344,7 +275,6 @@ export const OpenAIConversation$inboundSchema: z.ZodType< messages: z.array(OpenAIExtendedMessage$inboundSchema), messagesOpenAIFormat: z.array(OpenAIChatCompletionMessage$inboundSchema), }); - /** @internal */ export type OpenAIConversation$Outbound = { id: string; @@ -389,19 +319,6 @@ export const OpenAIConversation$outboundSchema: z.ZodType< messagesOpenAIFormat: z.array(OpenAIChatCompletionMessage$outboundSchema), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace OpenAIConversation$ { - /** @deprecated use `OpenAIConversation$inboundSchema` instead. */ - export const inboundSchema = OpenAIConversation$inboundSchema; - /** @deprecated use `OpenAIConversation$outboundSchema` instead. */ - export const outboundSchema = OpenAIConversation$outboundSchema; - /** @deprecated use `OpenAIConversation$Outbound` instead. */ - export type Outbound = OpenAIConversation$Outbound; -} - export function openAIConversationToJSON( openAIConversation: OpenAIConversation, ): string { @@ -409,7 +326,6 @@ export function openAIConversationToJSON( OpenAIConversation$outboundSchema.parse(openAIConversation), ); } - export function openAIConversationFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/openaiextendedmessage.ts b/src/models/components/openaiextendedmessage.ts index 2c54104f..9ab54f83 100644 --- a/src/models/components/openaiextendedmessage.ts +++ b/src/models/components/openaiextendedmessage.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { collectExtraKeys as collectExtraKeys$, @@ -98,7 +98,7 @@ export type OpenAIExtendedMessageUserProperties = { * The type of user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. */ userType?: string | null | undefined; - additionalProperties?: { [k: string]: any }; + additionalProperties?: { [k: string]: any } | undefined; }; /** @@ -131,47 +131,22 @@ export type OpenAIExtendedMessage = { export const OpenAIExtendedMessageType$inboundSchema: z.ZodNativeEnum< typeof OpenAIExtendedMessageType > = z.nativeEnum(OpenAIExtendedMessageType); - /** @internal */ export const OpenAIExtendedMessageType$outboundSchema: z.ZodNativeEnum< typeof OpenAIExtendedMessageType > = OpenAIExtendedMessageType$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace OpenAIExtendedMessageType$ { - /** @deprecated use `OpenAIExtendedMessageType$inboundSchema` instead. */ - export const inboundSchema = OpenAIExtendedMessageType$inboundSchema; - /** @deprecated use `OpenAIExtendedMessageType$outboundSchema` instead. */ - export const outboundSchema = OpenAIExtendedMessageType$outboundSchema; -} - /** @internal */ export const Role$inboundSchema: z.ZodNativeEnum = z.nativeEnum( Role, ); - /** @internal */ export const Role$outboundSchema: z.ZodNativeEnum = Role$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Role$ { - /** @deprecated use `Role$inboundSchema` instead. */ - export const inboundSchema = Role$inboundSchema; - /** @deprecated use `Role$outboundSchema` instead. */ - export const outboundSchema = Role$outboundSchema; -} - /** @internal */ export const Content$inboundSchema: z.ZodType = z.union([z.string(), z.array(OpenAIContentItem$inboundSchema)]); - /** @internal */ export type Content$Outbound = string | Array; @@ -182,23 +157,9 @@ export const Content$outboundSchema: z.ZodType< Content > = z.union([z.string(), z.array(OpenAIContentItem$outboundSchema)]); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Content$ { - /** @deprecated use `Content$inboundSchema` instead. */ - export const inboundSchema = Content$inboundSchema; - /** @deprecated use `Content$outboundSchema` instead. */ - export const outboundSchema = Content$outboundSchema; - /** @deprecated use `Content$Outbound` instead. */ - export type Outbound = Content$Outbound; -} - export function contentToJSON(content: Content): string { return JSON.stringify(Content$outboundSchema.parse(content)); } - export function contentFromJSON( jsonString: string, ): SafeParseResult { @@ -211,29 +172,16 @@ export function contentFromJSON( /** @internal */ export const One$inboundSchema: z.ZodNativeEnum = z.nativeEnum(One); - /** @internal */ export const One$outboundSchema: z.ZodNativeEnum = One$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace One$ { - /** @deprecated use `One$inboundSchema` instead. */ - export const inboundSchema = One$inboundSchema; - /** @deprecated use `One$outboundSchema` instead. */ - export const outboundSchema = One$outboundSchema; -} - /** @internal */ export const OpenAIExtendedMessageLinksType$inboundSchema: z.ZodType< OpenAIExtendedMessageLinksType, z.ZodTypeDef, unknown > = z.union([One$inboundSchema, z.string()]); - /** @internal */ export type OpenAIExtendedMessageLinksType$Outbound = string | string; @@ -244,19 +192,6 @@ export const OpenAIExtendedMessageLinksType$outboundSchema: z.ZodType< OpenAIExtendedMessageLinksType > = z.union([One$outboundSchema, z.string()]); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace OpenAIExtendedMessageLinksType$ { - /** @deprecated use `OpenAIExtendedMessageLinksType$inboundSchema` instead. */ - export const inboundSchema = OpenAIExtendedMessageLinksType$inboundSchema; - /** @deprecated use `OpenAIExtendedMessageLinksType$outboundSchema` instead. */ - export const outboundSchema = OpenAIExtendedMessageLinksType$outboundSchema; - /** @deprecated use `OpenAIExtendedMessageLinksType$Outbound` instead. */ - export type Outbound = OpenAIExtendedMessageLinksType$Outbound; -} - export function openAIExtendedMessageLinksTypeToJSON( openAIExtendedMessageLinksType: OpenAIExtendedMessageLinksType, ): string { @@ -266,7 +201,6 @@ export function openAIExtendedMessageLinksTypeToJSON( ), ); } - export function openAIExtendedMessageLinksTypeFromJSON( jsonString: string, ): SafeParseResult { @@ -287,7 +221,6 @@ export const Links$inboundSchema: z.ZodType = z type: z.nullable(z.union([One$inboundSchema, z.string()])).optional(), breadcrumbs: z.nullable(z.array(z.string())).optional(), }); - /** @internal */ export type Links$Outbound = { label?: string | null | undefined; @@ -312,23 +245,9 @@ export const Links$outboundSchema: z.ZodType< breadcrumbs: z.nullable(z.array(z.string())).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Links$ { - /** @deprecated use `Links$inboundSchema` instead. */ - export const inboundSchema = Links$inboundSchema; - /** @deprecated use `Links$outboundSchema` instead. */ - export const outboundSchema = Links$outboundSchema; - /** @deprecated use `Links$Outbound` instead. */ - export type Outbound = Links$Outbound; -} - export function linksToJSON(links: Links): string { return JSON.stringify(Links$outboundSchema.parse(links)); } - export function linksFromJSON( jsonString: string, ): SafeParseResult { @@ -345,7 +264,6 @@ export const OpenAIExtendedMessageId$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.union([z.string(), z.number()]); - /** @internal */ export type OpenAIExtendedMessageId$Outbound = string | number; @@ -356,19 +274,6 @@ export const OpenAIExtendedMessageId$outboundSchema: z.ZodType< OpenAIExtendedMessageId > = z.union([z.string(), z.number()]); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace OpenAIExtendedMessageId$ { - /** @deprecated use `OpenAIExtendedMessageId$inboundSchema` instead. */ - export const inboundSchema = OpenAIExtendedMessageId$inboundSchema; - /** @deprecated use `OpenAIExtendedMessageId$outboundSchema` instead. */ - export const outboundSchema = OpenAIExtendedMessageId$outboundSchema; - /** @deprecated use `OpenAIExtendedMessageId$Outbound` instead. */ - export type Outbound = OpenAIExtendedMessageId$Outbound; -} - export function openAIExtendedMessageIdToJSON( openAIExtendedMessageId: OpenAIExtendedMessageId, ): string { @@ -376,7 +281,6 @@ export function openAIExtendedMessageIdToJSON( OpenAIExtendedMessageId$outboundSchema.parse(openAIExtendedMessageId), ); } - export function openAIExtendedMessageIdFromJSON( jsonString: string, ): SafeParseResult { @@ -393,7 +297,6 @@ export const OpenAIExtendedMessageUserId$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.union([z.string(), z.number()]); - /** @internal */ export type OpenAIExtendedMessageUserId$Outbound = string | number; @@ -404,19 +307,6 @@ export const OpenAIExtendedMessageUserId$outboundSchema: z.ZodType< OpenAIExtendedMessageUserId > = z.union([z.string(), z.number()]); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace OpenAIExtendedMessageUserId$ { - /** @deprecated use `OpenAIExtendedMessageUserId$inboundSchema` instead. */ - export const inboundSchema = OpenAIExtendedMessageUserId$inboundSchema; - /** @deprecated use `OpenAIExtendedMessageUserId$outboundSchema` instead. */ - export const outboundSchema = OpenAIExtendedMessageUserId$outboundSchema; - /** @deprecated use `OpenAIExtendedMessageUserId$Outbound` instead. */ - export type Outbound = OpenAIExtendedMessageUserId$Outbound; -} - export function openAIExtendedMessageUserIdToJSON( openAIExtendedMessageUserId: OpenAIExtendedMessageUserId, ): string { @@ -426,7 +316,6 @@ export function openAIExtendedMessageUserIdToJSON( ), ); } - export function openAIExtendedMessageUserIdFromJSON( jsonString: string, ): SafeParseResult { @@ -453,7 +342,6 @@ export const OpenAIExtendedMessageUserProperties$inboundSchema: z.ZodType< "additionalProperties", true, ); - /** @internal */ export type OpenAIExtendedMessageUserProperties$Outbound = { id?: string | number | null | undefined; @@ -475,7 +363,7 @@ export const OpenAIExtendedMessageUserProperties$outboundSchema: z.ZodType< userId: z.nullable(z.union([z.string(), z.number()])).optional(), supportAgentName: z.nullable(z.string()).optional(), userType: z.nullable(z.string()).optional(), - additionalProperties: z.record(z.any()), + additionalProperties: z.record(z.any()).optional(), }).transform((v) => { return { ...v.additionalProperties, @@ -485,21 +373,6 @@ export const OpenAIExtendedMessageUserProperties$outboundSchema: z.ZodType< }; }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace OpenAIExtendedMessageUserProperties$ { - /** @deprecated use `OpenAIExtendedMessageUserProperties$inboundSchema` instead. */ - export const inboundSchema = - OpenAIExtendedMessageUserProperties$inboundSchema; - /** @deprecated use `OpenAIExtendedMessageUserProperties$outboundSchema` instead. */ - export const outboundSchema = - OpenAIExtendedMessageUserProperties$outboundSchema; - /** @deprecated use `OpenAIExtendedMessageUserProperties$Outbound` instead. */ - export type Outbound = OpenAIExtendedMessageUserProperties$Outbound; -} - export function openAIExtendedMessageUserPropertiesToJSON( openAIExtendedMessageUserProperties: OpenAIExtendedMessageUserProperties, ): string { @@ -509,7 +382,6 @@ export function openAIExtendedMessageUserPropertiesToJSON( ), ); } - export function openAIExtendedMessageUserPropertiesFromJSON( jsonString: string, ): SafeParseResult { @@ -548,7 +420,6 @@ export const OpenAIExtendedMessage$inboundSchema: z.ZodType< "tool_calls": "toolCalls", }); }); - /** @internal */ export type OpenAIExtendedMessage$Outbound = { id: string; @@ -598,19 +469,6 @@ export const OpenAIExtendedMessage$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace OpenAIExtendedMessage$ { - /** @deprecated use `OpenAIExtendedMessage$inboundSchema` instead. */ - export const inboundSchema = OpenAIExtendedMessage$inboundSchema; - /** @deprecated use `OpenAIExtendedMessage$outboundSchema` instead. */ - export const outboundSchema = OpenAIExtendedMessage$outboundSchema; - /** @deprecated use `OpenAIExtendedMessage$Outbound` instead. */ - export type Outbound = OpenAIExtendedMessage$Outbound; -} - export function openAIExtendedMessageToJSON( openAIExtendedMessage: OpenAIExtendedMessage, ): string { @@ -618,7 +476,6 @@ export function openAIExtendedMessageToJSON( OpenAIExtendedMessage$outboundSchema.parse(openAIExtendedMessage), ); } - export function openAIExtendedMessageFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/openaiimageurlobject.ts b/src/models/components/openaiimageurlobject.ts index d1d5f0ab..ca92b298 100644 --- a/src/models/components/openaiimageurlobject.ts +++ b/src/models/components/openaiimageurlobject.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -23,22 +23,10 @@ export type OpenAIImageUrlObject = { /** @internal */ export const Detail$inboundSchema: z.ZodNativeEnum = z .nativeEnum(Detail); - /** @internal */ export const Detail$outboundSchema: z.ZodNativeEnum = Detail$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Detail$ { - /** @deprecated use `Detail$inboundSchema` instead. */ - export const inboundSchema = Detail$inboundSchema; - /** @deprecated use `Detail$outboundSchema` instead. */ - export const outboundSchema = Detail$outboundSchema; -} - /** @internal */ export const OpenAIImageUrlObject$inboundSchema: z.ZodType< OpenAIImageUrlObject, @@ -48,7 +36,6 @@ export const OpenAIImageUrlObject$inboundSchema: z.ZodType< url: z.string(), detail: Detail$inboundSchema.default("auto"), }); - /** @internal */ export type OpenAIImageUrlObject$Outbound = { url: string; @@ -65,19 +52,6 @@ export const OpenAIImageUrlObject$outboundSchema: z.ZodType< detail: Detail$outboundSchema.default("auto"), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace OpenAIImageUrlObject$ { - /** @deprecated use `OpenAIImageUrlObject$inboundSchema` instead. */ - export const inboundSchema = OpenAIImageUrlObject$inboundSchema; - /** @deprecated use `OpenAIImageUrlObject$outboundSchema` instead. */ - export const outboundSchema = OpenAIImageUrlObject$outboundSchema; - /** @deprecated use `OpenAIImageUrlObject$Outbound` instead. */ - export type Outbound = OpenAIImageUrlObject$Outbound; -} - export function openAIImageUrlObjectToJSON( openAIImageUrlObject: OpenAIImageUrlObject, ): string { @@ -85,7 +59,6 @@ export function openAIImageUrlObjectToJSON( OpenAIImageUrlObject$outboundSchema.parse(openAIImageUrlObject), ); } - export function openAIImageUrlObjectFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/openaitoolcall.ts b/src/models/components/openaitoolcall.ts index 897d86f7..ebbe4485 100644 --- a/src/models/components/openaitoolcall.ts +++ b/src/models/components/openaitoolcall.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -29,23 +29,11 @@ export type OpenAIToolCall = { export const OpenAIToolCallType$inboundSchema: z.ZodNativeEnum< typeof OpenAIToolCallType > = z.nativeEnum(OpenAIToolCallType); - /** @internal */ export const OpenAIToolCallType$outboundSchema: z.ZodNativeEnum< typeof OpenAIToolCallType > = OpenAIToolCallType$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace OpenAIToolCallType$ { - /** @deprecated use `OpenAIToolCallType$inboundSchema` instead. */ - export const inboundSchema = OpenAIToolCallType$inboundSchema; - /** @deprecated use `OpenAIToolCallType$outboundSchema` instead. */ - export const outboundSchema = OpenAIToolCallType$outboundSchema; -} - /** @internal */ export const OpenAIToolCall$inboundSchema: z.ZodType< OpenAIToolCall, @@ -56,7 +44,6 @@ export const OpenAIToolCall$inboundSchema: z.ZodType< type: OpenAIToolCallType$inboundSchema, function: OpenAIToolCallFunction$inboundSchema, }); - /** @internal */ export type OpenAIToolCall$Outbound = { id: string; @@ -75,23 +62,9 @@ export const OpenAIToolCall$outboundSchema: z.ZodType< function: OpenAIToolCallFunction$outboundSchema, }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace OpenAIToolCall$ { - /** @deprecated use `OpenAIToolCall$inboundSchema` instead. */ - export const inboundSchema = OpenAIToolCall$inboundSchema; - /** @deprecated use `OpenAIToolCall$outboundSchema` instead. */ - export const outboundSchema = OpenAIToolCall$outboundSchema; - /** @deprecated use `OpenAIToolCall$Outbound` instead. */ - export type Outbound = OpenAIToolCall$Outbound; -} - export function openAIToolCallToJSON(openAIToolCall: OpenAIToolCall): string { return JSON.stringify(OpenAIToolCall$outboundSchema.parse(openAIToolCall)); } - export function openAIToolCallFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/openaitoolcallfunction.ts b/src/models/components/openaitoolcallfunction.ts index caaef35a..169dd011 100644 --- a/src/models/components/openaitoolcallfunction.ts +++ b/src/models/components/openaitoolcallfunction.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -21,7 +21,6 @@ export const OpenAIToolCallFunction$inboundSchema: z.ZodType< name: z.string(), arguments: z.string(), }); - /** @internal */ export type OpenAIToolCallFunction$Outbound = { name: string; @@ -38,19 +37,6 @@ export const OpenAIToolCallFunction$outboundSchema: z.ZodType< arguments: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace OpenAIToolCallFunction$ { - /** @deprecated use `OpenAIToolCallFunction$inboundSchema` instead. */ - export const inboundSchema = OpenAIToolCallFunction$inboundSchema; - /** @deprecated use `OpenAIToolCallFunction$outboundSchema` instead. */ - export const outboundSchema = OpenAIToolCallFunction$outboundSchema; - /** @deprecated use `OpenAIToolCallFunction$Outbound` instead. */ - export type Outbound = OpenAIToolCallFunction$Outbound; -} - export function openAIToolCallFunctionToJSON( openAIToolCallFunction: OpenAIToolCallFunction, ): string { @@ -58,7 +44,6 @@ export function openAIToolCallFunctionToJSON( OpenAIToolCallFunction$outboundSchema.parse(openAIToolCallFunction), ); } - export function openAIToolCallFunctionFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/propertykeysrequestbody.ts b/src/models/components/propertykeysrequestbody.ts index bc1298e8..9ea4d482 100644 --- a/src/models/components/propertykeysrequestbody.ts +++ b/src/models/components/propertykeysrequestbody.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -139,43 +139,19 @@ export type PropertyKeysRequestBody = { export const PropertyKeysRequestBodyField$inboundSchema: z.ZodNativeEnum< typeof PropertyKeysRequestBodyField > = z.nativeEnum(PropertyKeysRequestBodyField); - /** @internal */ export const PropertyKeysRequestBodyField$outboundSchema: z.ZodNativeEnum< typeof PropertyKeysRequestBodyField > = PropertyKeysRequestBodyField$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PropertyKeysRequestBodyField$ { - /** @deprecated use `PropertyKeysRequestBodyField$inboundSchema` instead. */ - export const inboundSchema = PropertyKeysRequestBodyField$inboundSchema; - /** @deprecated use `PropertyKeysRequestBodyField$outboundSchema` instead. */ - export const outboundSchema = PropertyKeysRequestBodyField$outboundSchema; -} - /** @internal */ export const Views$inboundSchema: z.ZodNativeEnum = z.nativeEnum( Views, ); - /** @internal */ export const Views$outboundSchema: z.ZodNativeEnum = Views$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Views$ { - /** @deprecated use `Views$inboundSchema` instead. */ - export const inboundSchema = Views$inboundSchema; - /** @deprecated use `Views$outboundSchema` instead. */ - export const outboundSchema = Views$outboundSchema; -} - /** @internal */ export const Where$inboundSchema: z.ZodType = z .union([ @@ -192,7 +168,6 @@ export const Where$inboundSchema: z.ZodType = z FeedbackFilterAND$inboundSchema, FeedbackFilterOR$inboundSchema, ]); - /** @internal */ export type Where$Outbound = | EventsFilterCondition$Outbound @@ -228,23 +203,9 @@ export const Where$outboundSchema: z.ZodType< FeedbackFilterOR$outboundSchema, ]); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Where$ { - /** @deprecated use `Where$inboundSchema` instead. */ - export const inboundSchema = Where$inboundSchema; - /** @deprecated use `Where$outboundSchema` instead. */ - export const outboundSchema = Where$outboundSchema; - /** @deprecated use `Where$Outbound` instead. */ - export type Outbound = Where$Outbound; -} - export function whereToJSON(where: Where): string { return JSON.stringify(Where$outboundSchema.parse(where)); } - export function whereFromJSON( jsonString: string, ): SafeParseResult { @@ -278,7 +239,6 @@ export const PropertyKeysRequestBody$inboundSchema: z.ZodType< FeedbackFilterOR$inboundSchema, ]).optional(), }); - /** @internal */ export type PropertyKeysRequestBody$Outbound = { field: string; @@ -323,19 +283,6 @@ export const PropertyKeysRequestBody$outboundSchema: z.ZodType< ]).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PropertyKeysRequestBody$ { - /** @deprecated use `PropertyKeysRequestBody$inboundSchema` instead. */ - export const inboundSchema = PropertyKeysRequestBody$inboundSchema; - /** @deprecated use `PropertyKeysRequestBody$outboundSchema` instead. */ - export const outboundSchema = PropertyKeysRequestBody$outboundSchema; - /** @deprecated use `PropertyKeysRequestBody$Outbound` instead. */ - export type Outbound = PropertyKeysRequestBody$Outbound; -} - export function propertyKeysRequestBodyToJSON( propertyKeysRequestBody: PropertyKeysRequestBody, ): string { @@ -343,7 +290,6 @@ export function propertyKeysRequestBodyToJSON( PropertyKeysRequestBody$outboundSchema.parse(propertyKeysRequestBody), ); } - export function propertyKeysRequestBodyFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/propertykeysresponsebody.ts b/src/models/components/propertykeysresponsebody.ts index 66827c10..7933c083 100644 --- a/src/models/components/propertykeysresponsebody.ts +++ b/src/models/components/propertykeysresponsebody.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -19,7 +19,6 @@ export const PropertyKeysResponseBody$inboundSchema: z.ZodType< > = z.object({ results: z.array(z.string()), }); - /** @internal */ export type PropertyKeysResponseBody$Outbound = { results: Array; @@ -34,19 +33,6 @@ export const PropertyKeysResponseBody$outboundSchema: z.ZodType< results: z.array(z.string()), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PropertyKeysResponseBody$ { - /** @deprecated use `PropertyKeysResponseBody$inboundSchema` instead. */ - export const inboundSchema = PropertyKeysResponseBody$inboundSchema; - /** @deprecated use `PropertyKeysResponseBody$outboundSchema` instead. */ - export const outboundSchema = PropertyKeysResponseBody$outboundSchema; - /** @deprecated use `PropertyKeysResponseBody$Outbound` instead. */ - export type Outbound = PropertyKeysResponseBody$Outbound; -} - export function propertyKeysResponseBodyToJSON( propertyKeysResponseBody: PropertyKeysResponseBody, ): string { @@ -54,7 +40,6 @@ export function propertyKeysResponseBodyToJSON( PropertyKeysResponseBody$outboundSchema.parse(propertyKeysResponseBody), ); } - export function propertyKeysResponseBodyFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/propertyvaluesrequestbody.ts b/src/models/components/propertyvaluesrequestbody.ts index 39508454..3c67bb86 100644 --- a/src/models/components/propertyvaluesrequestbody.ts +++ b/src/models/components/propertyvaluesrequestbody.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -58,44 +58,20 @@ export type PropertyValuesRequestBody = { export const PropertyValuesRequestBodyField$inboundSchema: z.ZodNativeEnum< typeof PropertyValuesRequestBodyField > = z.nativeEnum(PropertyValuesRequestBodyField); - /** @internal */ export const PropertyValuesRequestBodyField$outboundSchema: z.ZodNativeEnum< typeof PropertyValuesRequestBodyField > = PropertyValuesRequestBodyField$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PropertyValuesRequestBodyField$ { - /** @deprecated use `PropertyValuesRequestBodyField$inboundSchema` instead. */ - export const inboundSchema = PropertyValuesRequestBodyField$inboundSchema; - /** @deprecated use `PropertyValuesRequestBodyField$outboundSchema` instead. */ - export const outboundSchema = PropertyValuesRequestBodyField$outboundSchema; -} - /** @internal */ export const PropertyValuesRequestBodyViews$inboundSchema: z.ZodNativeEnum< typeof PropertyValuesRequestBodyViews > = z.nativeEnum(PropertyValuesRequestBodyViews); - /** @internal */ export const PropertyValuesRequestBodyViews$outboundSchema: z.ZodNativeEnum< typeof PropertyValuesRequestBodyViews > = PropertyValuesRequestBodyViews$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PropertyValuesRequestBodyViews$ { - /** @deprecated use `PropertyValuesRequestBodyViews$inboundSchema` instead. */ - export const inboundSchema = PropertyValuesRequestBodyViews$inboundSchema; - /** @deprecated use `PropertyValuesRequestBodyViews$outboundSchema` instead. */ - export const outboundSchema = PropertyValuesRequestBodyViews$outboundSchema; -} - /** @internal */ export const PropertyValuesRequestBody$inboundSchema: z.ZodType< PropertyValuesRequestBody, @@ -107,7 +83,6 @@ export const PropertyValuesRequestBody$inboundSchema: z.ZodType< views: z.array(PropertyValuesRequestBodyViews$inboundSchema).optional(), limit: z.number().default(100), }); - /** @internal */ export type PropertyValuesRequestBody$Outbound = { field: string; @@ -128,19 +103,6 @@ export const PropertyValuesRequestBody$outboundSchema: z.ZodType< limit: z.number().default(100), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PropertyValuesRequestBody$ { - /** @deprecated use `PropertyValuesRequestBody$inboundSchema` instead. */ - export const inboundSchema = PropertyValuesRequestBody$inboundSchema; - /** @deprecated use `PropertyValuesRequestBody$outboundSchema` instead. */ - export const outboundSchema = PropertyValuesRequestBody$outboundSchema; - /** @deprecated use `PropertyValuesRequestBody$Outbound` instead. */ - export type Outbound = PropertyValuesRequestBody$Outbound; -} - export function propertyValuesRequestBodyToJSON( propertyValuesRequestBody: PropertyValuesRequestBody, ): string { @@ -148,7 +110,6 @@ export function propertyValuesRequestBodyToJSON( PropertyValuesRequestBody$outboundSchema.parse(propertyValuesRequestBody), ); } - export function propertyValuesRequestBodyFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/propertyvaluesresponsebody.ts b/src/models/components/propertyvaluesresponsebody.ts index 68843f4f..80496b17 100644 --- a/src/models/components/propertyvaluesresponsebody.ts +++ b/src/models/components/propertyvaluesresponsebody.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -19,7 +19,6 @@ export const PropertyValuesResponseBody$inboundSchema: z.ZodType< > = z.object({ results: z.array(z.string()), }); - /** @internal */ export type PropertyValuesResponseBody$Outbound = { results: Array; @@ -34,19 +33,6 @@ export const PropertyValuesResponseBody$outboundSchema: z.ZodType< results: z.array(z.string()), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace PropertyValuesResponseBody$ { - /** @deprecated use `PropertyValuesResponseBody$inboundSchema` instead. */ - export const inboundSchema = PropertyValuesResponseBody$inboundSchema; - /** @deprecated use `PropertyValuesResponseBody$outboundSchema` instead. */ - export const outboundSchema = PropertyValuesResponseBody$outboundSchema; - /** @deprecated use `PropertyValuesResponseBody$Outbound` instead. */ - export type Outbound = PropertyValuesResponseBody$Outbound; -} - export function propertyValuesResponseBodyToJSON( propertyValuesResponseBody: PropertyValuesResponseBody, ): string { @@ -54,7 +40,6 @@ export function propertyValuesResponseBodyToJSON( PropertyValuesResponseBody$outboundSchema.parse(propertyValuesResponseBody), ); } - export function propertyValuesResponseBodyFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/queryconversationsrequestbody.ts b/src/models/components/queryconversationsrequestbody.ts index 8b302b9e..ca452810 100644 --- a/src/models/components/queryconversationsrequestbody.ts +++ b/src/models/components/queryconversationsrequestbody.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -57,7 +57,6 @@ export const QueryConversationsRequestBody$inboundSchema: z.ZodType< orderBy: z.array(ConversationsOrderBy$inboundSchema).optional(), notes: z.string().optional(), }); - /** @internal */ export type QueryConversationsRequestBody$Outbound = { select?: Array | undefined; @@ -80,19 +79,6 @@ export const QueryConversationsRequestBody$outboundSchema: z.ZodType< notes: z.string().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace QueryConversationsRequestBody$ { - /** @deprecated use `QueryConversationsRequestBody$inboundSchema` instead. */ - export const inboundSchema = QueryConversationsRequestBody$inboundSchema; - /** @deprecated use `QueryConversationsRequestBody$outboundSchema` instead. */ - export const outboundSchema = QueryConversationsRequestBody$outboundSchema; - /** @deprecated use `QueryConversationsRequestBody$Outbound` instead. */ - export type Outbound = QueryConversationsRequestBody$Outbound; -} - export function queryConversationsRequestBodyToJSON( queryConversationsRequestBody: QueryConversationsRequestBody, ): string { @@ -102,7 +88,6 @@ export function queryConversationsRequestBodyToJSON( ), ); } - export function queryConversationsRequestBodyFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/queryconversationsresponsebody.ts b/src/models/components/queryconversationsresponsebody.ts index 1dc3b3ca..d3e881de 100644 --- a/src/models/components/queryconversationsresponsebody.ts +++ b/src/models/components/queryconversationsresponsebody.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -42,22 +42,10 @@ export type QueryConversationsResponseBody = { /** @internal */ export const Status$inboundSchema: z.ZodNativeEnum = z .nativeEnum(Status); - /** @internal */ export const Status$outboundSchema: z.ZodNativeEnum = Status$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Status$ { - /** @deprecated use `Status$inboundSchema` instead. */ - export const inboundSchema = Status$inboundSchema; - /** @deprecated use `Status$outboundSchema` instead. */ - export const outboundSchema = Status$outboundSchema; -} - /** @internal */ export const QueryConversationsResponseBody$inboundSchema: z.ZodType< QueryConversationsResponseBody, @@ -67,7 +55,6 @@ export const QueryConversationsResponseBody$inboundSchema: z.ZodType< status: Status$inboundSchema, data: QueryConversationsResponseData$inboundSchema, }); - /** @internal */ export type QueryConversationsResponseBody$Outbound = { status: string; @@ -84,19 +71,6 @@ export const QueryConversationsResponseBody$outboundSchema: z.ZodType< data: QueryConversationsResponseData$outboundSchema, }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace QueryConversationsResponseBody$ { - /** @deprecated use `QueryConversationsResponseBody$inboundSchema` instead. */ - export const inboundSchema = QueryConversationsResponseBody$inboundSchema; - /** @deprecated use `QueryConversationsResponseBody$outboundSchema` instead. */ - export const outboundSchema = QueryConversationsResponseBody$outboundSchema; - /** @deprecated use `QueryConversationsResponseBody$Outbound` instead. */ - export type Outbound = QueryConversationsResponseBody$Outbound; -} - export function queryConversationsResponseBodyToJSON( queryConversationsResponseBody: QueryConversationsResponseBody, ): string { @@ -106,7 +80,6 @@ export function queryConversationsResponseBodyToJSON( ), ); } - export function queryConversationsResponseBodyFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/queryconversationsresponsedata.ts b/src/models/components/queryconversationsresponsedata.ts index 4b71aa26..df9c00e6 100644 --- a/src/models/components/queryconversationsresponsedata.ts +++ b/src/models/components/queryconversationsresponsedata.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { collectExtraKeys as collectExtraKeys$, @@ -55,7 +55,7 @@ export type QueryConversationsResponseDataUserProperties = { * The type of user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. */ userType?: string | null | undefined; - additionalProperties?: { [k: string]: any }; + additionalProperties?: { [k: string]: any } | undefined; }; export type ConversationsResultItem = { @@ -191,7 +191,7 @@ export type ConversationsResultItem = { propertiesSupportAgentName?: string | null | undefined; userPropertiesUserId?: string | null | undefined; userPropertiesSupportAgentName?: string | null | undefined; - additionalProperties?: { [k: string]: any }; + additionalProperties?: { [k: string]: any } | undefined; }; /** @@ -217,31 +217,17 @@ export type QueryConversationsResponseData = { export const QueryConversationsResponseDataType$inboundSchema: z.ZodNativeEnum< typeof QueryConversationsResponseDataType > = z.nativeEnum(QueryConversationsResponseDataType); - /** @internal */ export const QueryConversationsResponseDataType$outboundSchema: z.ZodNativeEnum< typeof QueryConversationsResponseDataType > = QueryConversationsResponseDataType$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace QueryConversationsResponseDataType$ { - /** @deprecated use `QueryConversationsResponseDataType$inboundSchema` instead. */ - export const inboundSchema = QueryConversationsResponseDataType$inboundSchema; - /** @deprecated use `QueryConversationsResponseDataType$outboundSchema` instead. */ - export const outboundSchema = - QueryConversationsResponseDataType$outboundSchema; -} - /** @internal */ export const QueryConversationsResponseDataId$inboundSchema: z.ZodType< QueryConversationsResponseDataId, z.ZodTypeDef, unknown > = z.union([z.string(), z.number()]); - /** @internal */ export type QueryConversationsResponseDataId$Outbound = string | number; @@ -252,19 +238,6 @@ export const QueryConversationsResponseDataId$outboundSchema: z.ZodType< QueryConversationsResponseDataId > = z.union([z.string(), z.number()]); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace QueryConversationsResponseDataId$ { - /** @deprecated use `QueryConversationsResponseDataId$inboundSchema` instead. */ - export const inboundSchema = QueryConversationsResponseDataId$inboundSchema; - /** @deprecated use `QueryConversationsResponseDataId$outboundSchema` instead. */ - export const outboundSchema = QueryConversationsResponseDataId$outboundSchema; - /** @deprecated use `QueryConversationsResponseDataId$Outbound` instead. */ - export type Outbound = QueryConversationsResponseDataId$Outbound; -} - export function queryConversationsResponseDataIdToJSON( queryConversationsResponseDataId: QueryConversationsResponseDataId, ): string { @@ -274,7 +247,6 @@ export function queryConversationsResponseDataIdToJSON( ), ); } - export function queryConversationsResponseDataIdFromJSON( jsonString: string, ): SafeParseResult { @@ -291,7 +263,6 @@ export const QueryConversationsResponseDataUserId$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.union([z.string(), z.number()]); - /** @internal */ export type QueryConversationsResponseDataUserId$Outbound = string | number; @@ -302,21 +273,6 @@ export const QueryConversationsResponseDataUserId$outboundSchema: z.ZodType< QueryConversationsResponseDataUserId > = z.union([z.string(), z.number()]); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace QueryConversationsResponseDataUserId$ { - /** @deprecated use `QueryConversationsResponseDataUserId$inboundSchema` instead. */ - export const inboundSchema = - QueryConversationsResponseDataUserId$inboundSchema; - /** @deprecated use `QueryConversationsResponseDataUserId$outboundSchema` instead. */ - export const outboundSchema = - QueryConversationsResponseDataUserId$outboundSchema; - /** @deprecated use `QueryConversationsResponseDataUserId$Outbound` instead. */ - export type Outbound = QueryConversationsResponseDataUserId$Outbound; -} - export function queryConversationsResponseDataUserIdToJSON( queryConversationsResponseDataUserId: QueryConversationsResponseDataUserId, ): string { @@ -326,7 +282,6 @@ export function queryConversationsResponseDataUserIdToJSON( ), ); } - export function queryConversationsResponseDataUserIdFromJSON( jsonString: string, ): SafeParseResult { @@ -355,7 +310,6 @@ export const QueryConversationsResponseDataUserProperties$inboundSchema: "additionalProperties", true, ); - /** @internal */ export type QueryConversationsResponseDataUserProperties$Outbound = { id?: string | number | null | undefined; @@ -378,7 +332,7 @@ export const QueryConversationsResponseDataUserProperties$outboundSchema: userId: z.nullable(z.union([z.string(), z.number()])).optional(), supportAgentName: z.nullable(z.string()).optional(), userType: z.nullable(z.string()).optional(), - additionalProperties: z.record(z.any()), + additionalProperties: z.record(z.any()).optional(), }).transform((v) => { return { ...v.additionalProperties, @@ -388,21 +342,6 @@ export const QueryConversationsResponseDataUserProperties$outboundSchema: }; }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace QueryConversationsResponseDataUserProperties$ { - /** @deprecated use `QueryConversationsResponseDataUserProperties$inboundSchema` instead. */ - export const inboundSchema = - QueryConversationsResponseDataUserProperties$inboundSchema; - /** @deprecated use `QueryConversationsResponseDataUserProperties$outboundSchema` instead. */ - export const outboundSchema = - QueryConversationsResponseDataUserProperties$outboundSchema; - /** @deprecated use `QueryConversationsResponseDataUserProperties$Outbound` instead. */ - export type Outbound = QueryConversationsResponseDataUserProperties$Outbound; -} - export function queryConversationsResponseDataUserPropertiesToJSON( queryConversationsResponseDataUserProperties: QueryConversationsResponseDataUserProperties, @@ -413,7 +352,6 @@ export function queryConversationsResponseDataUserPropertiesToJSON( ), ); } - export function queryConversationsResponseDataUserPropertiesFromJSON( jsonString: string, ): SafeParseResult< @@ -684,7 +622,6 @@ export const ConversationsResultItem$inboundSchema: z.ZodType< "userProperties.supportAgentName": "userPropertiesSupportAgentName", }); }); - /** @internal */ export type ConversationsResultItem$Outbound = { id?: string | undefined; @@ -948,7 +885,7 @@ export const ConversationsResultItem$outboundSchema: z.ZodType< propertiesSupportAgentName: z.nullable(z.string()).optional(), userPropertiesUserId: z.nullable(z.string()).optional(), userPropertiesSupportAgentName: z.nullable(z.string()).optional(), - additionalProperties: z.record(z.any()), + additionalProperties: z.record(z.any()).optional(), }).transform((v) => { return { ...v.additionalProperties, @@ -1070,19 +1007,6 @@ export const ConversationsResultItem$outboundSchema: z.ZodType< }; }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ConversationsResultItem$ { - /** @deprecated use `ConversationsResultItem$inboundSchema` instead. */ - export const inboundSchema = ConversationsResultItem$inboundSchema; - /** @deprecated use `ConversationsResultItem$outboundSchema` instead. */ - export const outboundSchema = ConversationsResultItem$outboundSchema; - /** @deprecated use `ConversationsResultItem$Outbound` instead. */ - export type Outbound = ConversationsResultItem$Outbound; -} - export function conversationsResultItemToJSON( conversationsResultItem: ConversationsResultItem, ): string { @@ -1090,7 +1014,6 @@ export function conversationsResultItemToJSON( ConversationsResultItem$outboundSchema.parse(conversationsResultItem), ); } - export function conversationsResultItemFromJSON( jsonString: string, ): SafeParseResult { @@ -1112,7 +1035,6 @@ export const QueryConversationsResponseData$inboundSchema: z.ZodType< pageSize: z.number(), count: z.number(), }); - /** @internal */ export type QueryConversationsResponseData$Outbound = { result: Array; @@ -1133,19 +1055,6 @@ export const QueryConversationsResponseData$outboundSchema: z.ZodType< count: z.number(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace QueryConversationsResponseData$ { - /** @deprecated use `QueryConversationsResponseData$inboundSchema` instead. */ - export const inboundSchema = QueryConversationsResponseData$inboundSchema; - /** @deprecated use `QueryConversationsResponseData$outboundSchema` instead. */ - export const outboundSchema = QueryConversationsResponseData$outboundSchema; - /** @deprecated use `QueryConversationsResponseData$Outbound` instead. */ - export type Outbound = QueryConversationsResponseData$Outbound; -} - export function queryConversationsResponseDataToJSON( queryConversationsResponseData: QueryConversationsResponseData, ): string { @@ -1155,7 +1064,6 @@ export function queryConversationsResponseDataToJSON( ), ); } - export function queryConversationsResponseDataFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/queryeventsrequestbody.ts b/src/models/components/queryeventsrequestbody.ts index 914f4401..a2ae78e1 100644 --- a/src/models/components/queryeventsrequestbody.ts +++ b/src/models/components/queryeventsrequestbody.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -57,7 +57,6 @@ export const QueryEventsRequestBody$inboundSchema: z.ZodType< orderBy: z.array(EventsOrderBy$inboundSchema).optional(), notes: z.string().optional(), }); - /** @internal */ export type QueryEventsRequestBody$Outbound = { select?: Array | undefined; @@ -80,19 +79,6 @@ export const QueryEventsRequestBody$outboundSchema: z.ZodType< notes: z.string().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace QueryEventsRequestBody$ { - /** @deprecated use `QueryEventsRequestBody$inboundSchema` instead. */ - export const inboundSchema = QueryEventsRequestBody$inboundSchema; - /** @deprecated use `QueryEventsRequestBody$outboundSchema` instead. */ - export const outboundSchema = QueryEventsRequestBody$outboundSchema; - /** @deprecated use `QueryEventsRequestBody$Outbound` instead. */ - export type Outbound = QueryEventsRequestBody$Outbound; -} - export function queryEventsRequestBodyToJSON( queryEventsRequestBody: QueryEventsRequestBody, ): string { @@ -100,7 +86,6 @@ export function queryEventsRequestBodyToJSON( QueryEventsRequestBody$outboundSchema.parse(queryEventsRequestBody), ); } - export function queryEventsRequestBodyFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/queryeventsresponsebody.ts b/src/models/components/queryeventsresponsebody.ts index 6e47da64..408e252d 100644 --- a/src/models/components/queryeventsresponsebody.ts +++ b/src/models/components/queryeventsresponsebody.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -45,23 +45,11 @@ export type QueryEventsResponseBody = { export const QueryEventsResponseBodyStatus$inboundSchema: z.ZodNativeEnum< typeof QueryEventsResponseBodyStatus > = z.nativeEnum(QueryEventsResponseBodyStatus); - /** @internal */ export const QueryEventsResponseBodyStatus$outboundSchema: z.ZodNativeEnum< typeof QueryEventsResponseBodyStatus > = QueryEventsResponseBodyStatus$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace QueryEventsResponseBodyStatus$ { - /** @deprecated use `QueryEventsResponseBodyStatus$inboundSchema` instead. */ - export const inboundSchema = QueryEventsResponseBodyStatus$inboundSchema; - /** @deprecated use `QueryEventsResponseBodyStatus$outboundSchema` instead. */ - export const outboundSchema = QueryEventsResponseBodyStatus$outboundSchema; -} - /** @internal */ export const QueryEventsResponseBody$inboundSchema: z.ZodType< QueryEventsResponseBody, @@ -71,7 +59,6 @@ export const QueryEventsResponseBody$inboundSchema: z.ZodType< status: QueryEventsResponseBodyStatus$inboundSchema, data: QueryEventsResponseData$inboundSchema, }); - /** @internal */ export type QueryEventsResponseBody$Outbound = { status: string; @@ -88,19 +75,6 @@ export const QueryEventsResponseBody$outboundSchema: z.ZodType< data: QueryEventsResponseData$outboundSchema, }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace QueryEventsResponseBody$ { - /** @deprecated use `QueryEventsResponseBody$inboundSchema` instead. */ - export const inboundSchema = QueryEventsResponseBody$inboundSchema; - /** @deprecated use `QueryEventsResponseBody$outboundSchema` instead. */ - export const outboundSchema = QueryEventsResponseBody$outboundSchema; - /** @deprecated use `QueryEventsResponseBody$Outbound` instead. */ - export type Outbound = QueryEventsResponseBody$Outbound; -} - export function queryEventsResponseBodyToJSON( queryEventsResponseBody: QueryEventsResponseBody, ): string { @@ -108,7 +82,6 @@ export function queryEventsResponseBodyToJSON( QueryEventsResponseBody$outboundSchema.parse(queryEventsResponseBody), ); } - export function queryEventsResponseBodyFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/queryeventsresponsedata.ts b/src/models/components/queryeventsresponsedata.ts index d0ed9d7b..c7739c4b 100644 --- a/src/models/components/queryeventsresponsedata.ts +++ b/src/models/components/queryeventsresponsedata.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { collectExtraKeys as collectExtraKeys$, @@ -165,7 +165,7 @@ export type EventsResultItem = { propertiesSupportAgentName?: string | null | undefined; userPropertiesUserId?: string | null | undefined; userPropertiesSupportAgentName?: string | null | undefined; - additionalProperties?: { [k: string]: any }; + additionalProperties?: { [k: string]: any } | undefined; }; /** @@ -493,7 +493,6 @@ export const EventsResultItem$inboundSchema: z.ZodType< "userProperties.supportAgentName": "userPropertiesSupportAgentName", }); }); - /** @internal */ export type EventsResultItem$Outbound = { id?: string | undefined; @@ -811,7 +810,7 @@ export const EventsResultItem$outboundSchema: z.ZodType< propertiesSupportAgentName: z.nullable(z.string()).optional(), userPropertiesUserId: z.nullable(z.string()).optional(), userPropertiesSupportAgentName: z.nullable(z.string()).optional(), - additionalProperties: z.record(z.any()), + additionalProperties: z.record(z.any()).optional(), }).transform((v) => { return { ...v.additionalProperties, @@ -960,19 +959,6 @@ export const EventsResultItem$outboundSchema: z.ZodType< }; }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace EventsResultItem$ { - /** @deprecated use `EventsResultItem$inboundSchema` instead. */ - export const inboundSchema = EventsResultItem$inboundSchema; - /** @deprecated use `EventsResultItem$outboundSchema` instead. */ - export const outboundSchema = EventsResultItem$outboundSchema; - /** @deprecated use `EventsResultItem$Outbound` instead. */ - export type Outbound = EventsResultItem$Outbound; -} - export function eventsResultItemToJSON( eventsResultItem: EventsResultItem, ): string { @@ -980,7 +966,6 @@ export function eventsResultItemToJSON( EventsResultItem$outboundSchema.parse(eventsResultItem), ); } - export function eventsResultItemFromJSON( jsonString: string, ): SafeParseResult { @@ -1002,7 +987,6 @@ export const QueryEventsResponseData$inboundSchema: z.ZodType< pageSize: z.number(), count: z.number(), }); - /** @internal */ export type QueryEventsResponseData$Outbound = { result: Array; @@ -1023,19 +1007,6 @@ export const QueryEventsResponseData$outboundSchema: z.ZodType< count: z.number(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace QueryEventsResponseData$ { - /** @deprecated use `QueryEventsResponseData$inboundSchema` instead. */ - export const inboundSchema = QueryEventsResponseData$inboundSchema; - /** @deprecated use `QueryEventsResponseData$outboundSchema` instead. */ - export const outboundSchema = QueryEventsResponseData$outboundSchema; - /** @deprecated use `QueryEventsResponseData$Outbound` instead. */ - export type Outbound = QueryEventsResponseData$Outbound; -} - export function queryEventsResponseDataToJSON( queryEventsResponseData: QueryEventsResponseData, ): string { @@ -1043,7 +1014,6 @@ export function queryEventsResponseDataToJSON( QueryEventsResponseData$outboundSchema.parse(queryEventsResponseData), ); } - export function queryEventsResponseDataFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/queryfeedbackrequestbody.ts b/src/models/components/queryfeedbackrequestbody.ts index b5a442de..a727a5e8 100644 --- a/src/models/components/queryfeedbackrequestbody.ts +++ b/src/models/components/queryfeedbackrequestbody.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -57,7 +57,6 @@ export const QueryFeedbackRequestBody$inboundSchema: z.ZodType< orderBy: z.array(FeedbackOrderBy$inboundSchema).optional(), notes: z.string().optional(), }); - /** @internal */ export type QueryFeedbackRequestBody$Outbound = { select?: Array | undefined; @@ -80,19 +79,6 @@ export const QueryFeedbackRequestBody$outboundSchema: z.ZodType< notes: z.string().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace QueryFeedbackRequestBody$ { - /** @deprecated use `QueryFeedbackRequestBody$inboundSchema` instead. */ - export const inboundSchema = QueryFeedbackRequestBody$inboundSchema; - /** @deprecated use `QueryFeedbackRequestBody$outboundSchema` instead. */ - export const outboundSchema = QueryFeedbackRequestBody$outboundSchema; - /** @deprecated use `QueryFeedbackRequestBody$Outbound` instead. */ - export type Outbound = QueryFeedbackRequestBody$Outbound; -} - export function queryFeedbackRequestBodyToJSON( queryFeedbackRequestBody: QueryFeedbackRequestBody, ): string { @@ -100,7 +86,6 @@ export function queryFeedbackRequestBodyToJSON( QueryFeedbackRequestBody$outboundSchema.parse(queryFeedbackRequestBody), ); } - export function queryFeedbackRequestBodyFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/queryfeedbackresponsebody.ts b/src/models/components/queryfeedbackresponsebody.ts index f64abeb4..ba2a976c 100644 --- a/src/models/components/queryfeedbackresponsebody.ts +++ b/src/models/components/queryfeedbackresponsebody.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -45,23 +45,11 @@ export type QueryFeedbackResponseBody = { export const QueryFeedbackResponseBodyStatus$inboundSchema: z.ZodNativeEnum< typeof QueryFeedbackResponseBodyStatus > = z.nativeEnum(QueryFeedbackResponseBodyStatus); - /** @internal */ export const QueryFeedbackResponseBodyStatus$outboundSchema: z.ZodNativeEnum< typeof QueryFeedbackResponseBodyStatus > = QueryFeedbackResponseBodyStatus$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace QueryFeedbackResponseBodyStatus$ { - /** @deprecated use `QueryFeedbackResponseBodyStatus$inboundSchema` instead. */ - export const inboundSchema = QueryFeedbackResponseBodyStatus$inboundSchema; - /** @deprecated use `QueryFeedbackResponseBodyStatus$outboundSchema` instead. */ - export const outboundSchema = QueryFeedbackResponseBodyStatus$outboundSchema; -} - /** @internal */ export const QueryFeedbackResponseBody$inboundSchema: z.ZodType< QueryFeedbackResponseBody, @@ -71,7 +59,6 @@ export const QueryFeedbackResponseBody$inboundSchema: z.ZodType< status: QueryFeedbackResponseBodyStatus$inboundSchema, data: QueryFeedbackResponseData$inboundSchema, }); - /** @internal */ export type QueryFeedbackResponseBody$Outbound = { status: string; @@ -88,19 +75,6 @@ export const QueryFeedbackResponseBody$outboundSchema: z.ZodType< data: QueryFeedbackResponseData$outboundSchema, }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace QueryFeedbackResponseBody$ { - /** @deprecated use `QueryFeedbackResponseBody$inboundSchema` instead. */ - export const inboundSchema = QueryFeedbackResponseBody$inboundSchema; - /** @deprecated use `QueryFeedbackResponseBody$outboundSchema` instead. */ - export const outboundSchema = QueryFeedbackResponseBody$outboundSchema; - /** @deprecated use `QueryFeedbackResponseBody$Outbound` instead. */ - export type Outbound = QueryFeedbackResponseBody$Outbound; -} - export function queryFeedbackResponseBodyToJSON( queryFeedbackResponseBody: QueryFeedbackResponseBody, ): string { @@ -108,7 +82,6 @@ export function queryFeedbackResponseBodyToJSON( QueryFeedbackResponseBody$outboundSchema.parse(queryFeedbackResponseBody), ); } - export function queryFeedbackResponseBodyFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/queryfeedbackresponsedata.ts b/src/models/components/queryfeedbackresponsedata.ts index 4d761e47..2a50c9b4 100644 --- a/src/models/components/queryfeedbackresponsedata.ts +++ b/src/models/components/queryfeedbackresponsedata.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { collectExtraKeys as collectExtraKeys$, @@ -74,7 +74,7 @@ export type QueryFeedbackResponseDataUserProperties = { * The type of user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. */ userType?: string | null | undefined; - additionalProperties?: { [k: string]: any }; + additionalProperties?: { [k: string]: any } | undefined; }; export type FeedbackResultItem = { @@ -257,7 +257,7 @@ export type FeedbackResultItem = { propertiesSupportAgentName?: string | null | undefined; userPropertiesUserId?: string | null | undefined; userPropertiesSupportAgentName?: string | null | undefined; - additionalProperties?: { [k: string]: any }; + additionalProperties?: { [k: string]: any } | undefined; }; /** @@ -283,23 +283,11 @@ export type QueryFeedbackResponseData = { export const QueryFeedbackResponseDataType$inboundSchema: z.ZodNativeEnum< typeof QueryFeedbackResponseDataType > = z.nativeEnum(QueryFeedbackResponseDataType); - /** @internal */ export const QueryFeedbackResponseDataType$outboundSchema: z.ZodNativeEnum< typeof QueryFeedbackResponseDataType > = QueryFeedbackResponseDataType$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace QueryFeedbackResponseDataType$ { - /** @deprecated use `QueryFeedbackResponseDataType$inboundSchema` instead. */ - export const inboundSchema = QueryFeedbackResponseDataType$inboundSchema; - /** @deprecated use `QueryFeedbackResponseDataType$outboundSchema` instead. */ - export const outboundSchema = QueryFeedbackResponseDataType$outboundSchema; -} - /** @internal */ export const QueryFeedbackResponseDataReasons$inboundSchema: z.ZodType< QueryFeedbackResponseDataReasons, @@ -309,7 +297,6 @@ export const QueryFeedbackResponseDataReasons$inboundSchema: z.ZodType< label: z.string(), details: z.string(), }); - /** @internal */ export type QueryFeedbackResponseDataReasons$Outbound = { label: string; @@ -326,19 +313,6 @@ export const QueryFeedbackResponseDataReasons$outboundSchema: z.ZodType< details: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace QueryFeedbackResponseDataReasons$ { - /** @deprecated use `QueryFeedbackResponseDataReasons$inboundSchema` instead. */ - export const inboundSchema = QueryFeedbackResponseDataReasons$inboundSchema; - /** @deprecated use `QueryFeedbackResponseDataReasons$outboundSchema` instead. */ - export const outboundSchema = QueryFeedbackResponseDataReasons$outboundSchema; - /** @deprecated use `QueryFeedbackResponseDataReasons$Outbound` instead. */ - export type Outbound = QueryFeedbackResponseDataReasons$Outbound; -} - export function queryFeedbackResponseDataReasonsToJSON( queryFeedbackResponseDataReasons: QueryFeedbackResponseDataReasons, ): string { @@ -348,7 +322,6 @@ export function queryFeedbackResponseDataReasonsToJSON( ), ); } - export function queryFeedbackResponseDataReasonsFromJSON( jsonString: string, ): SafeParseResult { @@ -363,25 +336,11 @@ export function queryFeedbackResponseDataReasonsFromJSON( export const QueryFeedbackResponseDataResultType$inboundSchema: z.ZodNativeEnum< typeof QueryFeedbackResponseDataResultType > = z.nativeEnum(QueryFeedbackResponseDataResultType); - /** @internal */ export const QueryFeedbackResponseDataResultType$outboundSchema: z.ZodNativeEnum = QueryFeedbackResponseDataResultType$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace QueryFeedbackResponseDataResultType$ { - /** @deprecated use `QueryFeedbackResponseDataResultType$inboundSchema` instead. */ - export const inboundSchema = - QueryFeedbackResponseDataResultType$inboundSchema; - /** @deprecated use `QueryFeedbackResponseDataResultType$outboundSchema` instead. */ - export const outboundSchema = - QueryFeedbackResponseDataResultType$outboundSchema; -} - /** @internal */ export const QueryFeedbackResponseDataSources$inboundSchema: z.ZodType< QueryFeedbackResponseDataSources, @@ -392,7 +351,6 @@ export const QueryFeedbackResponseDataSources$inboundSchema: z.ZodType< title: z.nullable(z.string()).optional(), url: z.nullable(z.string()).optional(), }); - /** @internal */ export type QueryFeedbackResponseDataSources$Outbound = { type: string | null; @@ -411,19 +369,6 @@ export const QueryFeedbackResponseDataSources$outboundSchema: z.ZodType< url: z.nullable(z.string()).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace QueryFeedbackResponseDataSources$ { - /** @deprecated use `QueryFeedbackResponseDataSources$inboundSchema` instead. */ - export const inboundSchema = QueryFeedbackResponseDataSources$inboundSchema; - /** @deprecated use `QueryFeedbackResponseDataSources$outboundSchema` instead. */ - export const outboundSchema = QueryFeedbackResponseDataSources$outboundSchema; - /** @deprecated use `QueryFeedbackResponseDataSources$Outbound` instead. */ - export type Outbound = QueryFeedbackResponseDataSources$Outbound; -} - export function queryFeedbackResponseDataSourcesToJSON( queryFeedbackResponseDataSources: QueryFeedbackResponseDataSources, ): string { @@ -433,7 +378,6 @@ export function queryFeedbackResponseDataSourcesToJSON( ), ); } - export function queryFeedbackResponseDataSourcesFromJSON( jsonString: string, ): SafeParseResult { @@ -450,7 +394,6 @@ export const QueryFeedbackResponseDataId$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.union([z.string(), z.number()]); - /** @internal */ export type QueryFeedbackResponseDataId$Outbound = string | number; @@ -461,19 +404,6 @@ export const QueryFeedbackResponseDataId$outboundSchema: z.ZodType< QueryFeedbackResponseDataId > = z.union([z.string(), z.number()]); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace QueryFeedbackResponseDataId$ { - /** @deprecated use `QueryFeedbackResponseDataId$inboundSchema` instead. */ - export const inboundSchema = QueryFeedbackResponseDataId$inboundSchema; - /** @deprecated use `QueryFeedbackResponseDataId$outboundSchema` instead. */ - export const outboundSchema = QueryFeedbackResponseDataId$outboundSchema; - /** @deprecated use `QueryFeedbackResponseDataId$Outbound` instead. */ - export type Outbound = QueryFeedbackResponseDataId$Outbound; -} - export function queryFeedbackResponseDataIdToJSON( queryFeedbackResponseDataId: QueryFeedbackResponseDataId, ): string { @@ -483,7 +413,6 @@ export function queryFeedbackResponseDataIdToJSON( ), ); } - export function queryFeedbackResponseDataIdFromJSON( jsonString: string, ): SafeParseResult { @@ -500,7 +429,6 @@ export const QueryFeedbackResponseDataUserId$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.union([z.string(), z.number()]); - /** @internal */ export type QueryFeedbackResponseDataUserId$Outbound = string | number; @@ -511,19 +439,6 @@ export const QueryFeedbackResponseDataUserId$outboundSchema: z.ZodType< QueryFeedbackResponseDataUserId > = z.union([z.string(), z.number()]); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace QueryFeedbackResponseDataUserId$ { - /** @deprecated use `QueryFeedbackResponseDataUserId$inboundSchema` instead. */ - export const inboundSchema = QueryFeedbackResponseDataUserId$inboundSchema; - /** @deprecated use `QueryFeedbackResponseDataUserId$outboundSchema` instead. */ - export const outboundSchema = QueryFeedbackResponseDataUserId$outboundSchema; - /** @deprecated use `QueryFeedbackResponseDataUserId$Outbound` instead. */ - export type Outbound = QueryFeedbackResponseDataUserId$Outbound; -} - export function queryFeedbackResponseDataUserIdToJSON( queryFeedbackResponseDataUserId: QueryFeedbackResponseDataUserId, ): string { @@ -533,7 +448,6 @@ export function queryFeedbackResponseDataUserIdToJSON( ), ); } - export function queryFeedbackResponseDataUserIdFromJSON( jsonString: string, ): SafeParseResult { @@ -560,7 +474,6 @@ export const QueryFeedbackResponseDataUserProperties$inboundSchema: z.ZodType< "additionalProperties", true, ); - /** @internal */ export type QueryFeedbackResponseDataUserProperties$Outbound = { id?: string | number | null | undefined; @@ -582,7 +495,7 @@ export const QueryFeedbackResponseDataUserProperties$outboundSchema: z.ZodType< userId: z.nullable(z.union([z.string(), z.number()])).optional(), supportAgentName: z.nullable(z.string()).optional(), userType: z.nullable(z.string()).optional(), - additionalProperties: z.record(z.any()), + additionalProperties: z.record(z.any()).optional(), }).transform((v) => { return { ...v.additionalProperties, @@ -592,21 +505,6 @@ export const QueryFeedbackResponseDataUserProperties$outboundSchema: z.ZodType< }; }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace QueryFeedbackResponseDataUserProperties$ { - /** @deprecated use `QueryFeedbackResponseDataUserProperties$inboundSchema` instead. */ - export const inboundSchema = - QueryFeedbackResponseDataUserProperties$inboundSchema; - /** @deprecated use `QueryFeedbackResponseDataUserProperties$outboundSchema` instead. */ - export const outboundSchema = - QueryFeedbackResponseDataUserProperties$outboundSchema; - /** @deprecated use `QueryFeedbackResponseDataUserProperties$Outbound` instead. */ - export type Outbound = QueryFeedbackResponseDataUserProperties$Outbound; -} - export function queryFeedbackResponseDataUserPropertiesToJSON( queryFeedbackResponseDataUserProperties: QueryFeedbackResponseDataUserProperties, @@ -617,7 +515,6 @@ export function queryFeedbackResponseDataUserPropertiesToJSON( ), ); } - export function queryFeedbackResponseDataUserPropertiesFromJSON( jsonString: string, ): SafeParseResult< @@ -984,7 +881,6 @@ export const FeedbackResultItem$inboundSchema: z.ZodType< "userProperties.supportAgentName": "userPropertiesSupportAgentName", }); }); - /** @internal */ export type FeedbackResultItem$Outbound = { id?: string | undefined; @@ -1351,7 +1247,7 @@ export const FeedbackResultItem$outboundSchema: z.ZodType< propertiesSupportAgentName: z.nullable(z.string()).optional(), userPropertiesUserId: z.nullable(z.string()).optional(), userPropertiesSupportAgentName: z.nullable(z.string()).optional(), - additionalProperties: z.record(z.any()), + additionalProperties: z.record(z.any()).optional(), }).transform((v) => { return { ...v.additionalProperties, @@ -1518,19 +1414,6 @@ export const FeedbackResultItem$outboundSchema: z.ZodType< }; }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace FeedbackResultItem$ { - /** @deprecated use `FeedbackResultItem$inboundSchema` instead. */ - export const inboundSchema = FeedbackResultItem$inboundSchema; - /** @deprecated use `FeedbackResultItem$outboundSchema` instead. */ - export const outboundSchema = FeedbackResultItem$outboundSchema; - /** @deprecated use `FeedbackResultItem$Outbound` instead. */ - export type Outbound = FeedbackResultItem$Outbound; -} - export function feedbackResultItemToJSON( feedbackResultItem: FeedbackResultItem, ): string { @@ -1538,7 +1421,6 @@ export function feedbackResultItemToJSON( FeedbackResultItem$outboundSchema.parse(feedbackResultItem), ); } - export function feedbackResultItemFromJSON( jsonString: string, ): SafeParseResult { @@ -1560,7 +1442,6 @@ export const QueryFeedbackResponseData$inboundSchema: z.ZodType< pageSize: z.number(), count: z.number(), }); - /** @internal */ export type QueryFeedbackResponseData$Outbound = { result: Array; @@ -1581,19 +1462,6 @@ export const QueryFeedbackResponseData$outboundSchema: z.ZodType< count: z.number(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace QueryFeedbackResponseData$ { - /** @deprecated use `QueryFeedbackResponseData$inboundSchema` instead. */ - export const inboundSchema = QueryFeedbackResponseData$inboundSchema; - /** @deprecated use `QueryFeedbackResponseData$outboundSchema` instead. */ - export const outboundSchema = QueryFeedbackResponseData$outboundSchema; - /** @deprecated use `QueryFeedbackResponseData$Outbound` instead. */ - export type Outbound = QueryFeedbackResponseData$Outbound; -} - export function queryFeedbackResponseDataToJSON( queryFeedbackResponseData: QueryFeedbackResponseData, ): string { @@ -1601,7 +1469,6 @@ export function queryFeedbackResponseDataToJSON( QueryFeedbackResponseData$outboundSchema.parse(queryFeedbackResponseData), ); } - export function queryFeedbackResponseDataFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/querysemanticthreadsrequestbody.ts b/src/models/components/querysemanticthreadsrequestbody.ts index 4e49a107..e56fe26c 100644 --- a/src/models/components/querysemanticthreadsrequestbody.ts +++ b/src/models/components/querysemanticthreadsrequestbody.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -59,7 +59,6 @@ export const QuerySemanticThreadsRequestBody$inboundSchema: z.ZodType< orderBy: z.array(SemanticThreadOrderBy$inboundSchema).optional(), notes: z.string().optional(), }); - /** @internal */ export type QuerySemanticThreadsRequestBody$Outbound = { query?: string | undefined; @@ -84,19 +83,6 @@ export const QuerySemanticThreadsRequestBody$outboundSchema: z.ZodType< notes: z.string().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace QuerySemanticThreadsRequestBody$ { - /** @deprecated use `QuerySemanticThreadsRequestBody$inboundSchema` instead. */ - export const inboundSchema = QuerySemanticThreadsRequestBody$inboundSchema; - /** @deprecated use `QuerySemanticThreadsRequestBody$outboundSchema` instead. */ - export const outboundSchema = QuerySemanticThreadsRequestBody$outboundSchema; - /** @deprecated use `QuerySemanticThreadsRequestBody$Outbound` instead. */ - export type Outbound = QuerySemanticThreadsRequestBody$Outbound; -} - export function querySemanticThreadsRequestBodyToJSON( querySemanticThreadsRequestBody: QuerySemanticThreadsRequestBody, ): string { @@ -106,7 +92,6 @@ export function querySemanticThreadsRequestBodyToJSON( ), ); } - export function querySemanticThreadsRequestBodyFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/querysemanticthreadsresponsebody.ts b/src/models/components/querysemanticthreadsresponsebody.ts index 054edd6f..667a7004 100644 --- a/src/models/components/querysemanticthreadsresponsebody.ts +++ b/src/models/components/querysemanticthreadsresponsebody.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -46,25 +46,11 @@ export const QuerySemanticThreadsResponseBodyStatus$inboundSchema: z.ZodNativeEnum = z.nativeEnum( QuerySemanticThreadsResponseBodyStatus, ); - /** @internal */ export const QuerySemanticThreadsResponseBodyStatus$outboundSchema: z.ZodNativeEnum = QuerySemanticThreadsResponseBodyStatus$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace QuerySemanticThreadsResponseBodyStatus$ { - /** @deprecated use `QuerySemanticThreadsResponseBodyStatus$inboundSchema` instead. */ - export const inboundSchema = - QuerySemanticThreadsResponseBodyStatus$inboundSchema; - /** @deprecated use `QuerySemanticThreadsResponseBodyStatus$outboundSchema` instead. */ - export const outboundSchema = - QuerySemanticThreadsResponseBodyStatus$outboundSchema; -} - /** @internal */ export const QuerySemanticThreadsResponseBody$inboundSchema: z.ZodType< QuerySemanticThreadsResponseBody, @@ -74,7 +60,6 @@ export const QuerySemanticThreadsResponseBody$inboundSchema: z.ZodType< status: QuerySemanticThreadsResponseBodyStatus$inboundSchema, data: QuerySemanticThreadsResponseData$inboundSchema, }); - /** @internal */ export type QuerySemanticThreadsResponseBody$Outbound = { status: string; @@ -91,19 +76,6 @@ export const QuerySemanticThreadsResponseBody$outboundSchema: z.ZodType< data: QuerySemanticThreadsResponseData$outboundSchema, }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace QuerySemanticThreadsResponseBody$ { - /** @deprecated use `QuerySemanticThreadsResponseBody$inboundSchema` instead. */ - export const inboundSchema = QuerySemanticThreadsResponseBody$inboundSchema; - /** @deprecated use `QuerySemanticThreadsResponseBody$outboundSchema` instead. */ - export const outboundSchema = QuerySemanticThreadsResponseBody$outboundSchema; - /** @deprecated use `QuerySemanticThreadsResponseBody$Outbound` instead. */ - export type Outbound = QuerySemanticThreadsResponseBody$Outbound; -} - export function querySemanticThreadsResponseBodyToJSON( querySemanticThreadsResponseBody: QuerySemanticThreadsResponseBody, ): string { @@ -113,7 +85,6 @@ export function querySemanticThreadsResponseBodyToJSON( ), ); } - export function querySemanticThreadsResponseBodyFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/querysemanticthreadsresponsedata.ts b/src/models/components/querysemanticthreadsresponsedata.ts index e0c6af2d..93aee367 100644 --- a/src/models/components/querysemanticthreadsresponsedata.ts +++ b/src/models/components/querysemanticthreadsresponsedata.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { collectExtraKeys as collectExtraKeys$, @@ -45,7 +45,7 @@ export type QuerySemanticThreadsResponseDataUserProperties = { * The type of user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. */ userType?: string | null | undefined; - additionalProperties?: { [k: string]: any }; + additionalProperties?: { [k: string]: any } | undefined; }; export type SemanticThreadResultItem = { @@ -393,7 +393,7 @@ export type SemanticThreadResultItem = { maxConversationIds?: number | undefined; maxAreAIAnnotationsVerified?: number | undefined; maxIsInitialQuestionAnswer?: number | undefined; - additionalProperties?: { [k: string]: any }; + additionalProperties?: { [k: string]: any } | undefined; }; /** @@ -421,7 +421,6 @@ export const QuerySemanticThreadsResponseDataId$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.union([z.string(), z.number()]); - /** @internal */ export type QuerySemanticThreadsResponseDataId$Outbound = string | number; @@ -432,20 +431,6 @@ export const QuerySemanticThreadsResponseDataId$outboundSchema: z.ZodType< QuerySemanticThreadsResponseDataId > = z.union([z.string(), z.number()]); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace QuerySemanticThreadsResponseDataId$ { - /** @deprecated use `QuerySemanticThreadsResponseDataId$inboundSchema` instead. */ - export const inboundSchema = QuerySemanticThreadsResponseDataId$inboundSchema; - /** @deprecated use `QuerySemanticThreadsResponseDataId$outboundSchema` instead. */ - export const outboundSchema = - QuerySemanticThreadsResponseDataId$outboundSchema; - /** @deprecated use `QuerySemanticThreadsResponseDataId$Outbound` instead. */ - export type Outbound = QuerySemanticThreadsResponseDataId$Outbound; -} - export function querySemanticThreadsResponseDataIdToJSON( querySemanticThreadsResponseDataId: QuerySemanticThreadsResponseDataId, ): string { @@ -455,7 +440,6 @@ export function querySemanticThreadsResponseDataIdToJSON( ), ); } - export function querySemanticThreadsResponseDataIdFromJSON( jsonString: string, ): SafeParseResult { @@ -473,7 +457,6 @@ export const QuerySemanticThreadsResponseDataUserId$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.union([z.string(), z.number()]); - /** @internal */ export type QuerySemanticThreadsResponseDataUserId$Outbound = string | number; @@ -484,21 +467,6 @@ export const QuerySemanticThreadsResponseDataUserId$outboundSchema: z.ZodType< QuerySemanticThreadsResponseDataUserId > = z.union([z.string(), z.number()]); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace QuerySemanticThreadsResponseDataUserId$ { - /** @deprecated use `QuerySemanticThreadsResponseDataUserId$inboundSchema` instead. */ - export const inboundSchema = - QuerySemanticThreadsResponseDataUserId$inboundSchema; - /** @deprecated use `QuerySemanticThreadsResponseDataUserId$outboundSchema` instead. */ - export const outboundSchema = - QuerySemanticThreadsResponseDataUserId$outboundSchema; - /** @deprecated use `QuerySemanticThreadsResponseDataUserId$Outbound` instead. */ - export type Outbound = QuerySemanticThreadsResponseDataUserId$Outbound; -} - export function querySemanticThreadsResponseDataUserIdToJSON( querySemanticThreadsResponseDataUserId: QuerySemanticThreadsResponseDataUserId, @@ -509,7 +477,6 @@ export function querySemanticThreadsResponseDataUserIdToJSON( ), ); } - export function querySemanticThreadsResponseDataUserIdFromJSON( jsonString: string, ): SafeParseResult { @@ -538,7 +505,6 @@ export const QuerySemanticThreadsResponseDataUserProperties$inboundSchema: "additionalProperties", true, ); - /** @internal */ export type QuerySemanticThreadsResponseDataUserProperties$Outbound = { id?: string | number | null | undefined; @@ -561,7 +527,7 @@ export const QuerySemanticThreadsResponseDataUserProperties$outboundSchema: userId: z.nullable(z.union([z.string(), z.number()])).optional(), supportAgentName: z.nullable(z.string()).optional(), userType: z.nullable(z.string()).optional(), - additionalProperties: z.record(z.any()), + additionalProperties: z.record(z.any()).optional(), }).transform((v) => { return { ...v.additionalProperties, @@ -571,22 +537,6 @@ export const QuerySemanticThreadsResponseDataUserProperties$outboundSchema: }; }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace QuerySemanticThreadsResponseDataUserProperties$ { - /** @deprecated use `QuerySemanticThreadsResponseDataUserProperties$inboundSchema` instead. */ - export const inboundSchema = - QuerySemanticThreadsResponseDataUserProperties$inboundSchema; - /** @deprecated use `QuerySemanticThreadsResponseDataUserProperties$outboundSchema` instead. */ - export const outboundSchema = - QuerySemanticThreadsResponseDataUserProperties$outboundSchema; - /** @deprecated use `QuerySemanticThreadsResponseDataUserProperties$Outbound` instead. */ - export type Outbound = - QuerySemanticThreadsResponseDataUserProperties$Outbound; -} - export function querySemanticThreadsResponseDataUserPropertiesToJSON( querySemanticThreadsResponseDataUserProperties: QuerySemanticThreadsResponseDataUserProperties, @@ -597,7 +547,6 @@ export function querySemanticThreadsResponseDataUserPropertiesToJSON( ), ); } - export function querySemanticThreadsResponseDataUserPropertiesFromJSON( jsonString: string, ): SafeParseResult< @@ -1270,7 +1219,6 @@ export const SemanticThreadResultItem$inboundSchema: z.ZodType< "max_isInitialQuestionAnswer": "maxIsInitialQuestionAnswer", }); }); - /** @internal */ export type SemanticThreadResultItem$Outbound = { id?: string | undefined; @@ -1957,7 +1905,7 @@ export const SemanticThreadResultItem$outboundSchema: z.ZodType< maxConversationIds: z.number().optional(), maxAreAIAnnotationsVerified: z.number().optional(), maxIsInitialQuestionAnswer: z.number().optional(), - additionalProperties: z.record(z.any()), + additionalProperties: z.record(z.any()).optional(), }).transform((v) => { return { ...v.additionalProperties, @@ -2264,19 +2212,6 @@ export const SemanticThreadResultItem$outboundSchema: z.ZodType< }; }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SemanticThreadResultItem$ { - /** @deprecated use `SemanticThreadResultItem$inboundSchema` instead. */ - export const inboundSchema = SemanticThreadResultItem$inboundSchema; - /** @deprecated use `SemanticThreadResultItem$outboundSchema` instead. */ - export const outboundSchema = SemanticThreadResultItem$outboundSchema; - /** @deprecated use `SemanticThreadResultItem$Outbound` instead. */ - export type Outbound = SemanticThreadResultItem$Outbound; -} - export function semanticThreadResultItemToJSON( semanticThreadResultItem: SemanticThreadResultItem, ): string { @@ -2284,7 +2219,6 @@ export function semanticThreadResultItemToJSON( SemanticThreadResultItem$outboundSchema.parse(semanticThreadResultItem), ); } - export function semanticThreadResultItemFromJSON( jsonString: string, ): SafeParseResult { @@ -2306,7 +2240,6 @@ export const QuerySemanticThreadsResponseData$inboundSchema: z.ZodType< pageSize: z.number(), count: z.number(), }); - /** @internal */ export type QuerySemanticThreadsResponseData$Outbound = { result: Array; @@ -2327,19 +2260,6 @@ export const QuerySemanticThreadsResponseData$outboundSchema: z.ZodType< count: z.number(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace QuerySemanticThreadsResponseData$ { - /** @deprecated use `QuerySemanticThreadsResponseData$inboundSchema` instead. */ - export const inboundSchema = QuerySemanticThreadsResponseData$inboundSchema; - /** @deprecated use `QuerySemanticThreadsResponseData$outboundSchema` instead. */ - export const outboundSchema = QuerySemanticThreadsResponseData$outboundSchema; - /** @deprecated use `QuerySemanticThreadsResponseData$Outbound` instead. */ - export type Outbound = QuerySemanticThreadsResponseData$Outbound; -} - export function querySemanticThreadsResponseDataToJSON( querySemanticThreadsResponseData: QuerySemanticThreadsResponseData, ): string { @@ -2349,7 +2269,6 @@ export function querySemanticThreadsResponseDataToJSON( ), ); } - export function querySemanticThreadsResponseDataFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/security.ts b/src/models/components/security.ts index 2191c01b..0ab9585d 100644 --- a/src/models/components/security.ts +++ b/src/models/components/security.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -24,7 +24,6 @@ export const Security$inboundSchema: z.ZodType< "ApiIntegrationKey": "apiIntegrationKey", }); }); - /** @internal */ export type Security$Outbound = { ApiIntegrationKey?: string | undefined; @@ -43,23 +42,9 @@ export const Security$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Security$ { - /** @deprecated use `Security$inboundSchema` instead. */ - export const inboundSchema = Security$inboundSchema; - /** @deprecated use `Security$outboundSchema` instead. */ - export const outboundSchema = Security$outboundSchema; - /** @deprecated use `Security$Outbound` instead. */ - export type Outbound = Security$Outbound; -} - export function securityToJSON(security: Security): string { return JSON.stringify(Security$outboundSchema.parse(security)); } - export function securityFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/selectconversationevent.ts b/src/models/components/selectconversationevent.ts index b1e90023..cfe72da4 100644 --- a/src/models/components/selectconversationevent.ts +++ b/src/models/components/selectconversationevent.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { collectExtraKeys as collectExtraKeys$, @@ -46,7 +46,7 @@ export type SelectConversationEventUserProperties = { * The type of user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. */ userType?: string | null | undefined; - additionalProperties?: { [k: string]: any }; + additionalProperties?: { [k: string]: any } | undefined; }; export const SelectConversationEventEntityType = { @@ -80,7 +80,6 @@ export const SelectConversationEventId$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.union([z.string(), z.number()]); - /** @internal */ export type SelectConversationEventId$Outbound = string | number; @@ -91,19 +90,6 @@ export const SelectConversationEventId$outboundSchema: z.ZodType< SelectConversationEventId > = z.union([z.string(), z.number()]); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SelectConversationEventId$ { - /** @deprecated use `SelectConversationEventId$inboundSchema` instead. */ - export const inboundSchema = SelectConversationEventId$inboundSchema; - /** @deprecated use `SelectConversationEventId$outboundSchema` instead. */ - export const outboundSchema = SelectConversationEventId$outboundSchema; - /** @deprecated use `SelectConversationEventId$Outbound` instead. */ - export type Outbound = SelectConversationEventId$Outbound; -} - export function selectConversationEventIdToJSON( selectConversationEventId: SelectConversationEventId, ): string { @@ -111,7 +97,6 @@ export function selectConversationEventIdToJSON( SelectConversationEventId$outboundSchema.parse(selectConversationEventId), ); } - export function selectConversationEventIdFromJSON( jsonString: string, ): SafeParseResult { @@ -128,7 +113,6 @@ export const SelectConversationEventUserId$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.union([z.string(), z.number()]); - /** @internal */ export type SelectConversationEventUserId$Outbound = string | number; @@ -139,19 +123,6 @@ export const SelectConversationEventUserId$outboundSchema: z.ZodType< SelectConversationEventUserId > = z.union([z.string(), z.number()]); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SelectConversationEventUserId$ { - /** @deprecated use `SelectConversationEventUserId$inboundSchema` instead. */ - export const inboundSchema = SelectConversationEventUserId$inboundSchema; - /** @deprecated use `SelectConversationEventUserId$outboundSchema` instead. */ - export const outboundSchema = SelectConversationEventUserId$outboundSchema; - /** @deprecated use `SelectConversationEventUserId$Outbound` instead. */ - export type Outbound = SelectConversationEventUserId$Outbound; -} - export function selectConversationEventUserIdToJSON( selectConversationEventUserId: SelectConversationEventUserId, ): string { @@ -161,7 +132,6 @@ export function selectConversationEventUserIdToJSON( ), ); } - export function selectConversationEventUserIdFromJSON( jsonString: string, ): SafeParseResult { @@ -188,7 +158,6 @@ export const SelectConversationEventUserProperties$inboundSchema: z.ZodType< "additionalProperties", true, ); - /** @internal */ export type SelectConversationEventUserProperties$Outbound = { id?: string | number | null | undefined; @@ -210,7 +179,7 @@ export const SelectConversationEventUserProperties$outboundSchema: z.ZodType< userId: z.nullable(z.union([z.string(), z.number()])).optional(), supportAgentName: z.nullable(z.string()).optional(), userType: z.nullable(z.string()).optional(), - additionalProperties: z.record(z.any()), + additionalProperties: z.record(z.any()).optional(), }).transform((v) => { return { ...v.additionalProperties, @@ -220,21 +189,6 @@ export const SelectConversationEventUserProperties$outboundSchema: z.ZodType< }; }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SelectConversationEventUserProperties$ { - /** @deprecated use `SelectConversationEventUserProperties$inboundSchema` instead. */ - export const inboundSchema = - SelectConversationEventUserProperties$inboundSchema; - /** @deprecated use `SelectConversationEventUserProperties$outboundSchema` instead. */ - export const outboundSchema = - SelectConversationEventUserProperties$outboundSchema; - /** @deprecated use `SelectConversationEventUserProperties$Outbound` instead. */ - export type Outbound = SelectConversationEventUserProperties$Outbound; -} - export function selectConversationEventUserPropertiesToJSON( selectConversationEventUserProperties: SelectConversationEventUserProperties, ): string { @@ -244,7 +198,6 @@ export function selectConversationEventUserPropertiesToJSON( ), ); } - export function selectConversationEventUserPropertiesFromJSON( jsonString: string, ): SafeParseResult { @@ -260,24 +213,11 @@ export function selectConversationEventUserPropertiesFromJSON( export const SelectConversationEventEntityType$inboundSchema: z.ZodNativeEnum< typeof SelectConversationEventEntityType > = z.nativeEnum(SelectConversationEventEntityType); - /** @internal */ export const SelectConversationEventEntityType$outboundSchema: z.ZodNativeEnum< typeof SelectConversationEventEntityType > = SelectConversationEventEntityType$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SelectConversationEventEntityType$ { - /** @deprecated use `SelectConversationEventEntityType$inboundSchema` instead. */ - export const inboundSchema = SelectConversationEventEntityType$inboundSchema; - /** @deprecated use `SelectConversationEventEntityType$outboundSchema` instead. */ - export const outboundSchema = - SelectConversationEventEntityType$outboundSchema; -} - /** @internal */ export const SelectConversationEvent$inboundSchema: z.ZodType< SelectConversationEvent, @@ -296,7 +236,6 @@ export const SelectConversationEvent$inboundSchema: z.ZodType< ).optional(), entityType: SelectConversationEventEntityType$inboundSchema, }); - /** @internal */ export type SelectConversationEvent$Outbound = { id: string; @@ -332,19 +271,6 @@ export const SelectConversationEvent$outboundSchema: z.ZodType< entityType: SelectConversationEventEntityType$outboundSchema, }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SelectConversationEvent$ { - /** @deprecated use `SelectConversationEvent$inboundSchema` instead. */ - export const inboundSchema = SelectConversationEvent$inboundSchema; - /** @deprecated use `SelectConversationEvent$outboundSchema` instead. */ - export const outboundSchema = SelectConversationEvent$outboundSchema; - /** @deprecated use `SelectConversationEvent$Outbound` instead. */ - export type Outbound = SelectConversationEvent$Outbound; -} - export function selectConversationEventToJSON( selectConversationEvent: SelectConversationEvent, ): string { @@ -352,7 +278,6 @@ export function selectConversationEventToJSON( SelectConversationEvent$outboundSchema.parse(selectConversationEvent), ); } - export function selectConversationEventFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/selectevent.ts b/src/models/components/selectevent.ts index 71edd01c..7c7677e3 100644 --- a/src/models/components/selectevent.ts +++ b/src/models/components/selectevent.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -52,7 +52,6 @@ export const SelectEvent$inboundSchema: z.ZodType< })), ), ]); - /** @internal */ export type SelectEvent$Outbound = | (SelectMessageEvent$Outbound & { entityType: "message" }) @@ -82,23 +81,9 @@ export const SelectEvent$outboundSchema: z.ZodType< ), ]); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SelectEvent$ { - /** @deprecated use `SelectEvent$inboundSchema` instead. */ - export const inboundSchema = SelectEvent$inboundSchema; - /** @deprecated use `SelectEvent$outboundSchema` instead. */ - export const outboundSchema = SelectEvent$outboundSchema; - /** @deprecated use `SelectEvent$Outbound` instead. */ - export type Outbound = SelectEvent$Outbound; -} - export function selectEventToJSON(selectEvent: SelectEvent): string { return JSON.stringify(SelectEvent$outboundSchema.parse(selectEvent)); } - export function selectEventFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/selectmessageevent.ts b/src/models/components/selectmessageevent.ts index 6353683d..cec5c11b 100644 --- a/src/models/components/selectmessageevent.ts +++ b/src/models/components/selectmessageevent.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { collectExtraKeys as collectExtraKeys$, @@ -46,7 +46,7 @@ export type SelectMessageEventUserProperties = { * The type of user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. */ userType?: string | null | undefined; - additionalProperties?: { [k: string]: any }; + additionalProperties?: { [k: string]: any } | undefined; }; export const SelectMessageEventEntityType = { @@ -80,7 +80,6 @@ export const SelectMessageEventId$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.union([z.string(), z.number()]); - /** @internal */ export type SelectMessageEventId$Outbound = string | number; @@ -91,19 +90,6 @@ export const SelectMessageEventId$outboundSchema: z.ZodType< SelectMessageEventId > = z.union([z.string(), z.number()]); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SelectMessageEventId$ { - /** @deprecated use `SelectMessageEventId$inboundSchema` instead. */ - export const inboundSchema = SelectMessageEventId$inboundSchema; - /** @deprecated use `SelectMessageEventId$outboundSchema` instead. */ - export const outboundSchema = SelectMessageEventId$outboundSchema; - /** @deprecated use `SelectMessageEventId$Outbound` instead. */ - export type Outbound = SelectMessageEventId$Outbound; -} - export function selectMessageEventIdToJSON( selectMessageEventId: SelectMessageEventId, ): string { @@ -111,7 +97,6 @@ export function selectMessageEventIdToJSON( SelectMessageEventId$outboundSchema.parse(selectMessageEventId), ); } - export function selectMessageEventIdFromJSON( jsonString: string, ): SafeParseResult { @@ -128,7 +113,6 @@ export const SelectMessageEventUserId$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.union([z.string(), z.number()]); - /** @internal */ export type SelectMessageEventUserId$Outbound = string | number; @@ -139,19 +123,6 @@ export const SelectMessageEventUserId$outboundSchema: z.ZodType< SelectMessageEventUserId > = z.union([z.string(), z.number()]); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SelectMessageEventUserId$ { - /** @deprecated use `SelectMessageEventUserId$inboundSchema` instead. */ - export const inboundSchema = SelectMessageEventUserId$inboundSchema; - /** @deprecated use `SelectMessageEventUserId$outboundSchema` instead. */ - export const outboundSchema = SelectMessageEventUserId$outboundSchema; - /** @deprecated use `SelectMessageEventUserId$Outbound` instead. */ - export type Outbound = SelectMessageEventUserId$Outbound; -} - export function selectMessageEventUserIdToJSON( selectMessageEventUserId: SelectMessageEventUserId, ): string { @@ -159,7 +130,6 @@ export function selectMessageEventUserIdToJSON( SelectMessageEventUserId$outboundSchema.parse(selectMessageEventUserId), ); } - export function selectMessageEventUserIdFromJSON( jsonString: string, ): SafeParseResult { @@ -186,7 +156,6 @@ export const SelectMessageEventUserProperties$inboundSchema: z.ZodType< "additionalProperties", true, ); - /** @internal */ export type SelectMessageEventUserProperties$Outbound = { id?: string | number | null | undefined; @@ -208,7 +177,7 @@ export const SelectMessageEventUserProperties$outboundSchema: z.ZodType< userId: z.nullable(z.union([z.string(), z.number()])).optional(), supportAgentName: z.nullable(z.string()).optional(), userType: z.nullable(z.string()).optional(), - additionalProperties: z.record(z.any()), + additionalProperties: z.record(z.any()).optional(), }).transform((v) => { return { ...v.additionalProperties, @@ -218,19 +187,6 @@ export const SelectMessageEventUserProperties$outboundSchema: z.ZodType< }; }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SelectMessageEventUserProperties$ { - /** @deprecated use `SelectMessageEventUserProperties$inboundSchema` instead. */ - export const inboundSchema = SelectMessageEventUserProperties$inboundSchema; - /** @deprecated use `SelectMessageEventUserProperties$outboundSchema` instead. */ - export const outboundSchema = SelectMessageEventUserProperties$outboundSchema; - /** @deprecated use `SelectMessageEventUserProperties$Outbound` instead. */ - export type Outbound = SelectMessageEventUserProperties$Outbound; -} - export function selectMessageEventUserPropertiesToJSON( selectMessageEventUserProperties: SelectMessageEventUserProperties, ): string { @@ -240,7 +196,6 @@ export function selectMessageEventUserPropertiesToJSON( ), ); } - export function selectMessageEventUserPropertiesFromJSON( jsonString: string, ): SafeParseResult { @@ -255,23 +210,11 @@ export function selectMessageEventUserPropertiesFromJSON( export const SelectMessageEventEntityType$inboundSchema: z.ZodNativeEnum< typeof SelectMessageEventEntityType > = z.nativeEnum(SelectMessageEventEntityType); - /** @internal */ export const SelectMessageEventEntityType$outboundSchema: z.ZodNativeEnum< typeof SelectMessageEventEntityType > = SelectMessageEventEntityType$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SelectMessageEventEntityType$ { - /** @deprecated use `SelectMessageEventEntityType$inboundSchema` instead. */ - export const inboundSchema = SelectMessageEventEntityType$inboundSchema; - /** @deprecated use `SelectMessageEventEntityType$outboundSchema` instead. */ - export const outboundSchema = SelectMessageEventEntityType$outboundSchema; -} - /** @internal */ export const SelectMessageEvent$inboundSchema: z.ZodType< SelectMessageEvent, @@ -290,7 +233,6 @@ export const SelectMessageEvent$inboundSchema: z.ZodType< ).optional(), entityType: SelectMessageEventEntityType$inboundSchema, }); - /** @internal */ export type SelectMessageEvent$Outbound = { id: string; @@ -323,19 +265,6 @@ export const SelectMessageEvent$outboundSchema: z.ZodType< entityType: SelectMessageEventEntityType$outboundSchema, }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SelectMessageEvent$ { - /** @deprecated use `SelectMessageEvent$inboundSchema` instead. */ - export const inboundSchema = SelectMessageEvent$inboundSchema; - /** @deprecated use `SelectMessageEvent$outboundSchema` instead. */ - export const outboundSchema = SelectMessageEvent$outboundSchema; - /** @deprecated use `SelectMessageEvent$Outbound` instead. */ - export type Outbound = SelectMessageEvent$Outbound; -} - export function selectMessageEventToJSON( selectMessageEvent: SelectMessageEvent, ): string { @@ -343,7 +272,6 @@ export function selectMessageEventToJSON( SelectMessageEvent$outboundSchema.parse(selectMessageEvent), ); } - export function selectMessageEventFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/selectsearchevent.ts b/src/models/components/selectsearchevent.ts index 0fe8d5e1..2191c8a4 100644 --- a/src/models/components/selectsearchevent.ts +++ b/src/models/components/selectsearchevent.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { collectExtraKeys as collectExtraKeys$, @@ -46,7 +46,7 @@ export type SelectSearchEventUserProperties = { * The type of user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. */ userType?: string | null | undefined; - additionalProperties?: { [k: string]: any }; + additionalProperties?: { [k: string]: any } | undefined; }; export const SelectSearchEventEntityType = { @@ -80,7 +80,6 @@ export const SelectSearchEventId$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.union([z.string(), z.number()]); - /** @internal */ export type SelectSearchEventId$Outbound = string | number; @@ -91,19 +90,6 @@ export const SelectSearchEventId$outboundSchema: z.ZodType< SelectSearchEventId > = z.union([z.string(), z.number()]); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SelectSearchEventId$ { - /** @deprecated use `SelectSearchEventId$inboundSchema` instead. */ - export const inboundSchema = SelectSearchEventId$inboundSchema; - /** @deprecated use `SelectSearchEventId$outboundSchema` instead. */ - export const outboundSchema = SelectSearchEventId$outboundSchema; - /** @deprecated use `SelectSearchEventId$Outbound` instead. */ - export type Outbound = SelectSearchEventId$Outbound; -} - export function selectSearchEventIdToJSON( selectSearchEventId: SelectSearchEventId, ): string { @@ -111,7 +97,6 @@ export function selectSearchEventIdToJSON( SelectSearchEventId$outboundSchema.parse(selectSearchEventId), ); } - export function selectSearchEventIdFromJSON( jsonString: string, ): SafeParseResult { @@ -128,7 +113,6 @@ export const SelectSearchEventUserId$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.union([z.string(), z.number()]); - /** @internal */ export type SelectSearchEventUserId$Outbound = string | number; @@ -139,19 +123,6 @@ export const SelectSearchEventUserId$outboundSchema: z.ZodType< SelectSearchEventUserId > = z.union([z.string(), z.number()]); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SelectSearchEventUserId$ { - /** @deprecated use `SelectSearchEventUserId$inboundSchema` instead. */ - export const inboundSchema = SelectSearchEventUserId$inboundSchema; - /** @deprecated use `SelectSearchEventUserId$outboundSchema` instead. */ - export const outboundSchema = SelectSearchEventUserId$outboundSchema; - /** @deprecated use `SelectSearchEventUserId$Outbound` instead. */ - export type Outbound = SelectSearchEventUserId$Outbound; -} - export function selectSearchEventUserIdToJSON( selectSearchEventUserId: SelectSearchEventUserId, ): string { @@ -159,7 +130,6 @@ export function selectSearchEventUserIdToJSON( SelectSearchEventUserId$outboundSchema.parse(selectSearchEventUserId), ); } - export function selectSearchEventUserIdFromJSON( jsonString: string, ): SafeParseResult { @@ -186,7 +156,6 @@ export const SelectSearchEventUserProperties$inboundSchema: z.ZodType< "additionalProperties", true, ); - /** @internal */ export type SelectSearchEventUserProperties$Outbound = { id?: string | number | null | undefined; @@ -208,7 +177,7 @@ export const SelectSearchEventUserProperties$outboundSchema: z.ZodType< userId: z.nullable(z.union([z.string(), z.number()])).optional(), supportAgentName: z.nullable(z.string()).optional(), userType: z.nullable(z.string()).optional(), - additionalProperties: z.record(z.any()), + additionalProperties: z.record(z.any()).optional(), }).transform((v) => { return { ...v.additionalProperties, @@ -218,19 +187,6 @@ export const SelectSearchEventUserProperties$outboundSchema: z.ZodType< }; }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SelectSearchEventUserProperties$ { - /** @deprecated use `SelectSearchEventUserProperties$inboundSchema` instead. */ - export const inboundSchema = SelectSearchEventUserProperties$inboundSchema; - /** @deprecated use `SelectSearchEventUserProperties$outboundSchema` instead. */ - export const outboundSchema = SelectSearchEventUserProperties$outboundSchema; - /** @deprecated use `SelectSearchEventUserProperties$Outbound` instead. */ - export type Outbound = SelectSearchEventUserProperties$Outbound; -} - export function selectSearchEventUserPropertiesToJSON( selectSearchEventUserProperties: SelectSearchEventUserProperties, ): string { @@ -240,7 +196,6 @@ export function selectSearchEventUserPropertiesToJSON( ), ); } - export function selectSearchEventUserPropertiesFromJSON( jsonString: string, ): SafeParseResult { @@ -255,23 +210,11 @@ export function selectSearchEventUserPropertiesFromJSON( export const SelectSearchEventEntityType$inboundSchema: z.ZodNativeEnum< typeof SelectSearchEventEntityType > = z.nativeEnum(SelectSearchEventEntityType); - /** @internal */ export const SelectSearchEventEntityType$outboundSchema: z.ZodNativeEnum< typeof SelectSearchEventEntityType > = SelectSearchEventEntityType$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SelectSearchEventEntityType$ { - /** @deprecated use `SelectSearchEventEntityType$inboundSchema` instead. */ - export const inboundSchema = SelectSearchEventEntityType$inboundSchema; - /** @deprecated use `SelectSearchEventEntityType$outboundSchema` instead. */ - export const outboundSchema = SelectSearchEventEntityType$outboundSchema; -} - /** @internal */ export const SelectSearchEvent$inboundSchema: z.ZodType< SelectSearchEvent, @@ -290,7 +233,6 @@ export const SelectSearchEvent$inboundSchema: z.ZodType< ).optional(), entityType: SelectSearchEventEntityType$inboundSchema, }); - /** @internal */ export type SelectSearchEvent$Outbound = { id: string; @@ -323,19 +265,6 @@ export const SelectSearchEvent$outboundSchema: z.ZodType< entityType: SelectSearchEventEntityType$outboundSchema, }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SelectSearchEvent$ { - /** @deprecated use `SelectSearchEvent$inboundSchema` instead. */ - export const inboundSchema = SelectSearchEvent$inboundSchema; - /** @deprecated use `SelectSearchEvent$outboundSchema` instead. */ - export const outboundSchema = SelectSearchEvent$outboundSchema; - /** @deprecated use `SelectSearchEvent$Outbound` instead. */ - export type Outbound = SelectSearchEvent$Outbound; -} - export function selectSearchEventToJSON( selectSearchEvent: SelectSearchEvent, ): string { @@ -343,7 +272,6 @@ export function selectSearchEventToJSON( SelectSearchEvent$outboundSchema.parse(selectSearchEvent), ); } - export function selectSearchEventFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/semanticthreadaggregationselection.ts b/src/models/components/semanticthreadaggregationselection.ts index 87afe1fe..6f0b11bd 100644 --- a/src/models/components/semanticthreadaggregationselection.ts +++ b/src/models/components/semanticthreadaggregationselection.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -78,71 +78,29 @@ export const SemanticThreadAggregationSelectionType$inboundSchema: z.ZodNativeEnum = z.nativeEnum( SemanticThreadAggregationSelectionType, ); - /** @internal */ export const SemanticThreadAggregationSelectionType$outboundSchema: z.ZodNativeEnum = SemanticThreadAggregationSelectionType$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SemanticThreadAggregationSelectionType$ { - /** @deprecated use `SemanticThreadAggregationSelectionType$inboundSchema` instead. */ - export const inboundSchema = - SemanticThreadAggregationSelectionType$inboundSchema; - /** @deprecated use `SemanticThreadAggregationSelectionType$outboundSchema` instead. */ - export const outboundSchema = - SemanticThreadAggregationSelectionType$outboundSchema; -} - /** @internal */ export const SemanticThreadAggregationSelectionAggregation$inboundSchema: z.ZodNativeEnum = z .nativeEnum(SemanticThreadAggregationSelectionAggregation); - /** @internal */ export const SemanticThreadAggregationSelectionAggregation$outboundSchema: z.ZodNativeEnum = SemanticThreadAggregationSelectionAggregation$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SemanticThreadAggregationSelectionAggregation$ { - /** @deprecated use `SemanticThreadAggregationSelectionAggregation$inboundSchema` instead. */ - export const inboundSchema = - SemanticThreadAggregationSelectionAggregation$inboundSchema; - /** @deprecated use `SemanticThreadAggregationSelectionAggregation$outboundSchema` instead. */ - export const outboundSchema = - SemanticThreadAggregationSelectionAggregation$outboundSchema; -} - /** @internal */ export const SemanticThreadAggregationSelectionField$inboundSchema: z.ZodNativeEnum = z .nativeEnum(SemanticThreadAggregationSelectionField); - /** @internal */ export const SemanticThreadAggregationSelectionField$outboundSchema: z.ZodNativeEnum = SemanticThreadAggregationSelectionField$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SemanticThreadAggregationSelectionField$ { - /** @deprecated use `SemanticThreadAggregationSelectionField$inboundSchema` instead. */ - export const inboundSchema = - SemanticThreadAggregationSelectionField$inboundSchema; - /** @deprecated use `SemanticThreadAggregationSelectionField$outboundSchema` instead. */ - export const outboundSchema = - SemanticThreadAggregationSelectionField$outboundSchema; -} - /** @internal */ export const SemanticThreadAggregationSelection$inboundSchema: z.ZodType< SemanticThreadAggregationSelection, @@ -154,7 +112,6 @@ export const SemanticThreadAggregationSelection$inboundSchema: z.ZodType< field: SemanticThreadAggregationSelectionField$inboundSchema.optional(), path: z.array(z.string()).optional(), }); - /** @internal */ export type SemanticThreadAggregationSelection$Outbound = { type: string; @@ -175,20 +132,6 @@ export const SemanticThreadAggregationSelection$outboundSchema: z.ZodType< path: z.array(z.string()).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SemanticThreadAggregationSelection$ { - /** @deprecated use `SemanticThreadAggregationSelection$inboundSchema` instead. */ - export const inboundSchema = SemanticThreadAggregationSelection$inboundSchema; - /** @deprecated use `SemanticThreadAggregationSelection$outboundSchema` instead. */ - export const outboundSchema = - SemanticThreadAggregationSelection$outboundSchema; - /** @deprecated use `SemanticThreadAggregationSelection$Outbound` instead. */ - export type Outbound = SemanticThreadAggregationSelection$Outbound; -} - export function semanticThreadAggregationSelectionToJSON( semanticThreadAggregationSelection: SemanticThreadAggregationSelection, ): string { @@ -198,7 +141,6 @@ export function semanticThreadAggregationSelectionToJSON( ), ); } - export function semanticThreadAggregationSelectionFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/semanticthreadfield.ts b/src/models/components/semanticthreadfield.ts index f31bbed2..ea4eeabc 100644 --- a/src/models/components/semanticthreadfield.ts +++ b/src/models/components/semanticthreadfield.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; /** @@ -52,19 +52,7 @@ export type SemanticThreadField = ClosedEnum; export const SemanticThreadField$inboundSchema: z.ZodNativeEnum< typeof SemanticThreadField > = z.nativeEnum(SemanticThreadField); - /** @internal */ export const SemanticThreadField$outboundSchema: z.ZodNativeEnum< typeof SemanticThreadField > = SemanticThreadField$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SemanticThreadField$ { - /** @deprecated use `SemanticThreadField$inboundSchema` instead. */ - export const inboundSchema = SemanticThreadField$inboundSchema; - /** @deprecated use `SemanticThreadField$outboundSchema` instead. */ - export const outboundSchema = SemanticThreadField$outboundSchema; -} diff --git a/src/models/components/semanticthreadfilter.ts b/src/models/components/semanticthreadfilter.ts index ce3a3a9e..6aff67c3 100644 --- a/src/models/components/semanticthreadfilter.ts +++ b/src/models/components/semanticthreadfilter.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -40,7 +40,6 @@ export const SemanticThreadFilter$inboundSchema: z.ZodType< z.lazy(() => SemanticThreadFilterAND$inboundSchema), z.lazy(() => SemanticThreadFilterOR$inboundSchema), ]); - /** @internal */ export type SemanticThreadFilter$Outbound = | SemanticThreadFilterCondition$Outbound @@ -58,19 +57,6 @@ export const SemanticThreadFilter$outboundSchema: z.ZodType< z.lazy(() => SemanticThreadFilterOR$outboundSchema), ]); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SemanticThreadFilter$ { - /** @deprecated use `SemanticThreadFilter$inboundSchema` instead. */ - export const inboundSchema = SemanticThreadFilter$inboundSchema; - /** @deprecated use `SemanticThreadFilter$outboundSchema` instead. */ - export const outboundSchema = SemanticThreadFilter$outboundSchema; - /** @deprecated use `SemanticThreadFilter$Outbound` instead. */ - export type Outbound = SemanticThreadFilter$Outbound; -} - export function semanticThreadFilterToJSON( semanticThreadFilter: SemanticThreadFilter, ): string { @@ -78,7 +64,6 @@ export function semanticThreadFilterToJSON( SemanticThreadFilter$outboundSchema.parse(semanticThreadFilter), ); } - export function semanticThreadFilterFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/semanticthreadfilterand.ts b/src/models/components/semanticthreadfilterand.ts index bacb0eab..0afb359c 100644 --- a/src/models/components/semanticthreadfilterand.ts +++ b/src/models/components/semanticthreadfilterand.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -33,7 +33,6 @@ export const SemanticThreadFilterAND$inboundSchema: z.ZodType< > = z.object({ and: z.array(z.lazy(() => SemanticThreadFilter$inboundSchema)), }); - /** @internal */ export type SemanticThreadFilterAND$Outbound = { and: Array; @@ -48,19 +47,6 @@ export const SemanticThreadFilterAND$outboundSchema: z.ZodType< and: z.array(z.lazy(() => SemanticThreadFilter$outboundSchema)), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SemanticThreadFilterAND$ { - /** @deprecated use `SemanticThreadFilterAND$inboundSchema` instead. */ - export const inboundSchema = SemanticThreadFilterAND$inboundSchema; - /** @deprecated use `SemanticThreadFilterAND$outboundSchema` instead. */ - export const outboundSchema = SemanticThreadFilterAND$outboundSchema; - /** @deprecated use `SemanticThreadFilterAND$Outbound` instead. */ - export type Outbound = SemanticThreadFilterAND$Outbound; -} - export function semanticThreadFilterANDToJSON( semanticThreadFilterAND: SemanticThreadFilterAND, ): string { @@ -68,7 +54,6 @@ export function semanticThreadFilterANDToJSON( SemanticThreadFilterAND$outboundSchema.parse(semanticThreadFilterAND), ); } - export function semanticThreadFilterANDFromJSON( jsonString: string, ): SafeParseResult { @@ -85,7 +70,6 @@ export const SemanticThreadFilterANDAND$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.lazy(() => SemanticThreadFilter$inboundSchema); - /** @internal */ export type SemanticThreadFilterANDAND$Outbound = SemanticThreadFilter$Outbound; @@ -96,19 +80,6 @@ export const SemanticThreadFilterANDAND$outboundSchema: z.ZodType< SemanticThreadFilterANDAND > = z.lazy(() => SemanticThreadFilter$outboundSchema); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SemanticThreadFilterANDAND$ { - /** @deprecated use `SemanticThreadFilterANDAND$inboundSchema` instead. */ - export const inboundSchema = SemanticThreadFilterANDAND$inboundSchema; - /** @deprecated use `SemanticThreadFilterANDAND$outboundSchema` instead. */ - export const outboundSchema = SemanticThreadFilterANDAND$outboundSchema; - /** @deprecated use `SemanticThreadFilterANDAND$Outbound` instead. */ - export type Outbound = SemanticThreadFilterANDAND$Outbound; -} - export function semanticThreadFilterANDANDToJSON( semanticThreadFilterANDAND: SemanticThreadFilterANDAND, ): string { @@ -116,7 +87,6 @@ export function semanticThreadFilterANDANDToJSON( SemanticThreadFilterANDAND$outboundSchema.parse(semanticThreadFilterANDAND), ); } - export function semanticThreadFilterANDANDFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/semanticthreadfiltercondition.ts b/src/models/components/semanticthreadfiltercondition.ts index 37549582..b5309bb6 100644 --- a/src/models/components/semanticthreadfiltercondition.ts +++ b/src/models/components/semanticthreadfiltercondition.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -63,7 +63,6 @@ export const SemanticThreadFilterConditionValueValue4$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.union([z.string(), z.number(), z.boolean()]); - /** @internal */ export type SemanticThreadFilterConditionValueValue4$Outbound = | string @@ -77,21 +76,6 @@ export const SemanticThreadFilterConditionValueValue4$outboundSchema: z.ZodType< SemanticThreadFilterConditionValueValue4 > = z.union([z.string(), z.number(), z.boolean()]); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SemanticThreadFilterConditionValueValue4$ { - /** @deprecated use `SemanticThreadFilterConditionValueValue4$inboundSchema` instead. */ - export const inboundSchema = - SemanticThreadFilterConditionValueValue4$inboundSchema; - /** @deprecated use `SemanticThreadFilterConditionValueValue4$outboundSchema` instead. */ - export const outboundSchema = - SemanticThreadFilterConditionValueValue4$outboundSchema; - /** @deprecated use `SemanticThreadFilterConditionValueValue4$Outbound` instead. */ - export type Outbound = SemanticThreadFilterConditionValueValue4$Outbound; -} - export function semanticThreadFilterConditionValueValue4ToJSON( semanticThreadFilterConditionValueValue4: SemanticThreadFilterConditionValueValue4, @@ -102,7 +86,6 @@ export function semanticThreadFilterConditionValueValue4ToJSON( ), ); } - export function semanticThreadFilterConditionValueValue4FromJSON( jsonString: string, ): SafeParseResult< @@ -130,7 +113,6 @@ export const SemanticThreadFilterConditionValueValue$inboundSchema: z.ZodType< z.boolean(), z.array(z.nullable(z.union([z.string(), z.number(), z.boolean()]))), ]); - /** @internal */ export type SemanticThreadFilterConditionValueValue$Outbound = | string @@ -150,21 +132,6 @@ export const SemanticThreadFilterConditionValueValue$outboundSchema: z.ZodType< z.array(z.nullable(z.union([z.string(), z.number(), z.boolean()]))), ]); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SemanticThreadFilterConditionValueValue$ { - /** @deprecated use `SemanticThreadFilterConditionValueValue$inboundSchema` instead. */ - export const inboundSchema = - SemanticThreadFilterConditionValueValue$inboundSchema; - /** @deprecated use `SemanticThreadFilterConditionValueValue$outboundSchema` instead. */ - export const outboundSchema = - SemanticThreadFilterConditionValueValue$outboundSchema; - /** @deprecated use `SemanticThreadFilterConditionValueValue$Outbound` instead. */ - export type Outbound = SemanticThreadFilterConditionValueValue$Outbound; -} - export function semanticThreadFilterConditionValueValueToJSON( semanticThreadFilterConditionValueValue: SemanticThreadFilterConditionValueValue, @@ -175,7 +142,6 @@ export function semanticThreadFilterConditionValueValueToJSON( ), ); } - export function semanticThreadFilterConditionValueValueFromJSON( jsonString: string, ): SafeParseResult< @@ -208,7 +174,6 @@ export const SemanticThreadFilterConditionValue7$inboundSchema: z.ZodType< ]), ), }); - /** @internal */ export type SemanticThreadFilterConditionValue7$Outbound = { path: Array; @@ -237,21 +202,6 @@ export const SemanticThreadFilterConditionValue7$outboundSchema: z.ZodType< ), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SemanticThreadFilterConditionValue7$ { - /** @deprecated use `SemanticThreadFilterConditionValue7$inboundSchema` instead. */ - export const inboundSchema = - SemanticThreadFilterConditionValue7$inboundSchema; - /** @deprecated use `SemanticThreadFilterConditionValue7$outboundSchema` instead. */ - export const outboundSchema = - SemanticThreadFilterConditionValue7$outboundSchema; - /** @deprecated use `SemanticThreadFilterConditionValue7$Outbound` instead. */ - export type Outbound = SemanticThreadFilterConditionValue7$Outbound; -} - export function semanticThreadFilterConditionValue7ToJSON( semanticThreadFilterConditionValue7: SemanticThreadFilterConditionValue7, ): string { @@ -261,7 +211,6 @@ export function semanticThreadFilterConditionValue7ToJSON( ), ); } - export function semanticThreadFilterConditionValue7FromJSON( jsonString: string, ): SafeParseResult { @@ -283,7 +232,6 @@ export const SemanticThreadFilterConditionCondition$inboundSchema: z.ZodType< operator: FilterOperator$inboundSchema, value: z.any().optional(), }); - /** @internal */ export type SemanticThreadFilterConditionCondition$Outbound = { field: string; @@ -302,21 +250,6 @@ export const SemanticThreadFilterConditionCondition$outboundSchema: z.ZodType< value: z.any().optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SemanticThreadFilterConditionCondition$ { - /** @deprecated use `SemanticThreadFilterConditionCondition$inboundSchema` instead. */ - export const inboundSchema = - SemanticThreadFilterConditionCondition$inboundSchema; - /** @deprecated use `SemanticThreadFilterConditionCondition$outboundSchema` instead. */ - export const outboundSchema = - SemanticThreadFilterConditionCondition$outboundSchema; - /** @deprecated use `SemanticThreadFilterConditionCondition$Outbound` instead. */ - export type Outbound = SemanticThreadFilterConditionCondition$Outbound; -} - export function semanticThreadFilterConditionConditionToJSON( semanticThreadFilterConditionCondition: SemanticThreadFilterConditionCondition, @@ -327,7 +260,6 @@ export function semanticThreadFilterConditionConditionToJSON( ), ); } - export function semanticThreadFilterConditionConditionFromJSON( jsonString: string, ): SafeParseResult { @@ -347,7 +279,6 @@ export const SemanticThreadFilterCondition$inboundSchema: z.ZodType< > = z.object({ condition: z.lazy(() => SemanticThreadFilterConditionCondition$inboundSchema), }); - /** @internal */ export type SemanticThreadFilterCondition$Outbound = { condition: SemanticThreadFilterConditionCondition$Outbound; @@ -364,19 +295,6 @@ export const SemanticThreadFilterCondition$outboundSchema: z.ZodType< ), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SemanticThreadFilterCondition$ { - /** @deprecated use `SemanticThreadFilterCondition$inboundSchema` instead. */ - export const inboundSchema = SemanticThreadFilterCondition$inboundSchema; - /** @deprecated use `SemanticThreadFilterCondition$outboundSchema` instead. */ - export const outboundSchema = SemanticThreadFilterCondition$outboundSchema; - /** @deprecated use `SemanticThreadFilterCondition$Outbound` instead. */ - export type Outbound = SemanticThreadFilterCondition$Outbound; -} - export function semanticThreadFilterConditionToJSON( semanticThreadFilterCondition: SemanticThreadFilterCondition, ): string { @@ -386,7 +304,6 @@ export function semanticThreadFilterConditionToJSON( ), ); } - export function semanticThreadFilterConditionFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/semanticthreadfilteror.ts b/src/models/components/semanticthreadfilteror.ts index 62e21c99..9584c512 100644 --- a/src/models/components/semanticthreadfilteror.ts +++ b/src/models/components/semanticthreadfilteror.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -33,7 +33,6 @@ export const SemanticThreadFilterOR$inboundSchema: z.ZodType< > = z.object({ or: z.array(z.lazy(() => SemanticThreadFilter$inboundSchema)), }); - /** @internal */ export type SemanticThreadFilterOR$Outbound = { or: Array; @@ -48,19 +47,6 @@ export const SemanticThreadFilterOR$outboundSchema: z.ZodType< or: z.array(z.lazy(() => SemanticThreadFilter$outboundSchema)), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SemanticThreadFilterOR$ { - /** @deprecated use `SemanticThreadFilterOR$inboundSchema` instead. */ - export const inboundSchema = SemanticThreadFilterOR$inboundSchema; - /** @deprecated use `SemanticThreadFilterOR$outboundSchema` instead. */ - export const outboundSchema = SemanticThreadFilterOR$outboundSchema; - /** @deprecated use `SemanticThreadFilterOR$Outbound` instead. */ - export type Outbound = SemanticThreadFilterOR$Outbound; -} - export function semanticThreadFilterORToJSON( semanticThreadFilterOR: SemanticThreadFilterOR, ): string { @@ -68,7 +54,6 @@ export function semanticThreadFilterORToJSON( SemanticThreadFilterOR$outboundSchema.parse(semanticThreadFilterOR), ); } - export function semanticThreadFilterORFromJSON( jsonString: string, ): SafeParseResult { @@ -85,7 +70,6 @@ export const SemanticThreadFilterOROR$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.lazy(() => SemanticThreadFilter$inboundSchema); - /** @internal */ export type SemanticThreadFilterOROR$Outbound = SemanticThreadFilter$Outbound; @@ -96,19 +80,6 @@ export const SemanticThreadFilterOROR$outboundSchema: z.ZodType< SemanticThreadFilterOROR > = z.lazy(() => SemanticThreadFilter$outboundSchema); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SemanticThreadFilterOROR$ { - /** @deprecated use `SemanticThreadFilterOROR$inboundSchema` instead. */ - export const inboundSchema = SemanticThreadFilterOROR$inboundSchema; - /** @deprecated use `SemanticThreadFilterOROR$outboundSchema` instead. */ - export const outboundSchema = SemanticThreadFilterOROR$outboundSchema; - /** @deprecated use `SemanticThreadFilterOROR$Outbound` instead. */ - export type Outbound = SemanticThreadFilterOROR$Outbound; -} - export function semanticThreadFilterORORToJSON( semanticThreadFilterOROR: SemanticThreadFilterOROR, ): string { @@ -116,7 +87,6 @@ export function semanticThreadFilterORORToJSON( SemanticThreadFilterOROR$outboundSchema.parse(semanticThreadFilterOROR), ); } - export function semanticThreadFilterORORFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/semanticthreadgroupby.ts b/src/models/components/semanticthreadgroupby.ts index 04b7d673..2ecfff7f 100644 --- a/src/models/components/semanticthreadgroupby.ts +++ b/src/models/components/semanticthreadgroupby.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -34,7 +34,6 @@ export const SemanticThreadGroupBy$inboundSchema: z.ZodType< path: z.array(z.string()).optional(), includeInSelect: z.boolean().default(true), }); - /** @internal */ export type SemanticThreadGroupBy$Outbound = { field: string; @@ -53,19 +52,6 @@ export const SemanticThreadGroupBy$outboundSchema: z.ZodType< includeInSelect: z.boolean().default(true), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SemanticThreadGroupBy$ { - /** @deprecated use `SemanticThreadGroupBy$inboundSchema` instead. */ - export const inboundSchema = SemanticThreadGroupBy$inboundSchema; - /** @deprecated use `SemanticThreadGroupBy$outboundSchema` instead. */ - export const outboundSchema = SemanticThreadGroupBy$outboundSchema; - /** @deprecated use `SemanticThreadGroupBy$Outbound` instead. */ - export type Outbound = SemanticThreadGroupBy$Outbound; -} - export function semanticThreadGroupByToJSON( semanticThreadGroupBy: SemanticThreadGroupBy, ): string { @@ -73,7 +59,6 @@ export function semanticThreadGroupByToJSON( SemanticThreadGroupBy$outboundSchema.parse(semanticThreadGroupBy), ); } - export function semanticThreadGroupByFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/semanticthreadorderby.ts b/src/models/components/semanticthreadorderby.ts index 65ea9185..c6b91d18 100644 --- a/src/models/components/semanticthreadorderby.ts +++ b/src/models/components/semanticthreadorderby.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -364,44 +364,20 @@ export type SemanticThreadOrderBy = { export const SemanticThreadOrderByField$inboundSchema: z.ZodNativeEnum< typeof SemanticThreadOrderByField > = z.nativeEnum(SemanticThreadOrderByField); - /** @internal */ export const SemanticThreadOrderByField$outboundSchema: z.ZodNativeEnum< typeof SemanticThreadOrderByField > = SemanticThreadOrderByField$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SemanticThreadOrderByField$ { - /** @deprecated use `SemanticThreadOrderByField$inboundSchema` instead. */ - export const inboundSchema = SemanticThreadOrderByField$inboundSchema; - /** @deprecated use `SemanticThreadOrderByField$outboundSchema` instead. */ - export const outboundSchema = SemanticThreadOrderByField$outboundSchema; -} - /** @internal */ export const SemanticThreadOrderByDirection$inboundSchema: z.ZodNativeEnum< typeof SemanticThreadOrderByDirection > = z.nativeEnum(SemanticThreadOrderByDirection); - /** @internal */ export const SemanticThreadOrderByDirection$outboundSchema: z.ZodNativeEnum< typeof SemanticThreadOrderByDirection > = SemanticThreadOrderByDirection$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SemanticThreadOrderByDirection$ { - /** @deprecated use `SemanticThreadOrderByDirection$inboundSchema` instead. */ - export const inboundSchema = SemanticThreadOrderByDirection$inboundSchema; - /** @deprecated use `SemanticThreadOrderByDirection$outboundSchema` instead. */ - export const outboundSchema = SemanticThreadOrderByDirection$outboundSchema; -} - /** @internal */ export const SemanticThreadOrderBy$inboundSchema: z.ZodType< SemanticThreadOrderBy, @@ -411,7 +387,6 @@ export const SemanticThreadOrderBy$inboundSchema: z.ZodType< field: SemanticThreadOrderByField$inboundSchema, direction: SemanticThreadOrderByDirection$inboundSchema, }); - /** @internal */ export type SemanticThreadOrderBy$Outbound = { field: string; @@ -428,19 +403,6 @@ export const SemanticThreadOrderBy$outboundSchema: z.ZodType< direction: SemanticThreadOrderByDirection$outboundSchema, }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SemanticThreadOrderBy$ { - /** @deprecated use `SemanticThreadOrderBy$inboundSchema` instead. */ - export const inboundSchema = SemanticThreadOrderBy$inboundSchema; - /** @deprecated use `SemanticThreadOrderBy$outboundSchema` instead. */ - export const outboundSchema = SemanticThreadOrderBy$outboundSchema; - /** @deprecated use `SemanticThreadOrderBy$Outbound` instead. */ - export type Outbound = SemanticThreadOrderBy$Outbound; -} - export function semanticThreadOrderByToJSON( semanticThreadOrderBy: SemanticThreadOrderBy, ): string { @@ -448,7 +410,6 @@ export function semanticThreadOrderByToJSON( SemanticThreadOrderBy$outboundSchema.parse(semanticThreadOrderBy), ); } - export function semanticThreadOrderByFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/semanticthreadselection.ts b/src/models/components/semanticthreadselection.ts index 48ee3b22..e36e3616 100644 --- a/src/models/components/semanticthreadselection.ts +++ b/src/models/components/semanticthreadselection.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -51,7 +51,6 @@ export const SemanticThreadSelection$inboundSchema: z.ZodType< z.object({ type: z.literal("field") }).transform((v) => ({ type: v.type })), ), ]); - /** @internal */ export type SemanticThreadSelection$Outbound = | (SemanticThreadAggregationSelection$Outbound & { type: "aggregation" }) @@ -77,19 +76,6 @@ export const SemanticThreadSelection$outboundSchema: z.ZodType< ), ]); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SemanticThreadSelection$ { - /** @deprecated use `SemanticThreadSelection$inboundSchema` instead. */ - export const inboundSchema = SemanticThreadSelection$inboundSchema; - /** @deprecated use `SemanticThreadSelection$outboundSchema` instead. */ - export const outboundSchema = SemanticThreadSelection$outboundSchema; - /** @deprecated use `SemanticThreadSelection$Outbound` instead. */ - export type Outbound = SemanticThreadSelection$Outbound; -} - export function semanticThreadSelectionToJSON( semanticThreadSelection: SemanticThreadSelection, ): string { @@ -97,7 +83,6 @@ export function semanticThreadSelectionToJSON( SemanticThreadSelection$outboundSchema.parse(semanticThreadSelection), ); } - export function semanticThreadSelectionFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/semanticthreadsimplefieldselection.ts b/src/models/components/semanticthreadsimplefieldselection.ts index 7c262865..b4138111 100644 --- a/src/models/components/semanticthreadsimplefieldselection.ts +++ b/src/models/components/semanticthreadsimplefieldselection.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -65,48 +65,20 @@ export const SemanticThreadSimpleFieldSelectionType$inboundSchema: z.ZodNativeEnum = z.nativeEnum( SemanticThreadSimpleFieldSelectionType, ); - /** @internal */ export const SemanticThreadSimpleFieldSelectionType$outboundSchema: z.ZodNativeEnum = SemanticThreadSimpleFieldSelectionType$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SemanticThreadSimpleFieldSelectionType$ { - /** @deprecated use `SemanticThreadSimpleFieldSelectionType$inboundSchema` instead. */ - export const inboundSchema = - SemanticThreadSimpleFieldSelectionType$inboundSchema; - /** @deprecated use `SemanticThreadSimpleFieldSelectionType$outboundSchema` instead. */ - export const outboundSchema = - SemanticThreadSimpleFieldSelectionType$outboundSchema; -} - /** @internal */ export const SemanticThreadSimpleFieldSelectionField$inboundSchema: z.ZodNativeEnum = z .nativeEnum(SemanticThreadSimpleFieldSelectionField); - /** @internal */ export const SemanticThreadSimpleFieldSelectionField$outboundSchema: z.ZodNativeEnum = SemanticThreadSimpleFieldSelectionField$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SemanticThreadSimpleFieldSelectionField$ { - /** @deprecated use `SemanticThreadSimpleFieldSelectionField$inboundSchema` instead. */ - export const inboundSchema = - SemanticThreadSimpleFieldSelectionField$inboundSchema; - /** @deprecated use `SemanticThreadSimpleFieldSelectionField$outboundSchema` instead. */ - export const outboundSchema = - SemanticThreadSimpleFieldSelectionField$outboundSchema; -} - /** @internal */ export const SemanticThreadSimpleFieldSelection$inboundSchema: z.ZodType< SemanticThreadSimpleFieldSelection, @@ -117,7 +89,6 @@ export const SemanticThreadSimpleFieldSelection$inboundSchema: z.ZodType< field: SemanticThreadSimpleFieldSelectionField$inboundSchema, path: z.array(z.string()).optional(), }); - /** @internal */ export type SemanticThreadSimpleFieldSelection$Outbound = { type: string; @@ -136,20 +107,6 @@ export const SemanticThreadSimpleFieldSelection$outboundSchema: z.ZodType< path: z.array(z.string()).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SemanticThreadSimpleFieldSelection$ { - /** @deprecated use `SemanticThreadSimpleFieldSelection$inboundSchema` instead. */ - export const inboundSchema = SemanticThreadSimpleFieldSelection$inboundSchema; - /** @deprecated use `SemanticThreadSimpleFieldSelection$outboundSchema` instead. */ - export const outboundSchema = - SemanticThreadSimpleFieldSelection$outboundSchema; - /** @deprecated use `SemanticThreadSimpleFieldSelection$Outbound` instead. */ - export type Outbound = SemanticThreadSimpleFieldSelection$Outbound; -} - export function semanticThreadSimpleFieldSelectionToJSON( semanticThreadSimpleFieldSelection: SemanticThreadSimpleFieldSelection, ): string { @@ -159,7 +116,6 @@ export function semanticThreadSimpleFieldSelectionToJSON( ), ); } - export function semanticThreadSimpleFieldSelectionFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/semanticthreadtimebasedgroupbyselection.ts b/src/models/components/semanticthreadtimebasedgroupbyselection.ts index 790e679d..f753a9ea 100644 --- a/src/models/components/semanticthreadtimebasedgroupbyselection.ts +++ b/src/models/components/semanticthreadtimebasedgroupbyselection.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -72,48 +72,20 @@ export type SemanticThreadTimeBasedGroupBySelection = { export const SemanticThreadTimeBasedGroupBySelectionType$inboundSchema: z.ZodNativeEnum = z .nativeEnum(SemanticThreadTimeBasedGroupBySelectionType); - /** @internal */ export const SemanticThreadTimeBasedGroupBySelectionType$outboundSchema: z.ZodNativeEnum = SemanticThreadTimeBasedGroupBySelectionType$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SemanticThreadTimeBasedGroupBySelectionType$ { - /** @deprecated use `SemanticThreadTimeBasedGroupBySelectionType$inboundSchema` instead. */ - export const inboundSchema = - SemanticThreadTimeBasedGroupBySelectionType$inboundSchema; - /** @deprecated use `SemanticThreadTimeBasedGroupBySelectionType$outboundSchema` instead. */ - export const outboundSchema = - SemanticThreadTimeBasedGroupBySelectionType$outboundSchema; -} - /** @internal */ export const SemanticThreadTimeBasedGroupBySelectionField$inboundSchema: z.ZodNativeEnum = z .nativeEnum(SemanticThreadTimeBasedGroupBySelectionField); - /** @internal */ export const SemanticThreadTimeBasedGroupBySelectionField$outboundSchema: z.ZodNativeEnum = SemanticThreadTimeBasedGroupBySelectionField$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SemanticThreadTimeBasedGroupBySelectionField$ { - /** @deprecated use `SemanticThreadTimeBasedGroupBySelectionField$inboundSchema` instead. */ - export const inboundSchema = - SemanticThreadTimeBasedGroupBySelectionField$inboundSchema; - /** @deprecated use `SemanticThreadTimeBasedGroupBySelectionField$outboundSchema` instead. */ - export const outboundSchema = - SemanticThreadTimeBasedGroupBySelectionField$outboundSchema; -} - /** @internal */ export const SemanticThreadTimeBasedGroupBySelection$inboundSchema: z.ZodType< SemanticThreadTimeBasedGroupBySelection, @@ -124,7 +96,6 @@ export const SemanticThreadTimeBasedGroupBySelection$inboundSchema: z.ZodType< timeUnit: TimeUnit$inboundSchema, field: SemanticThreadTimeBasedGroupBySelectionField$inboundSchema.optional(), }); - /** @internal */ export type SemanticThreadTimeBasedGroupBySelection$Outbound = { type: string; @@ -143,21 +114,6 @@ export const SemanticThreadTimeBasedGroupBySelection$outboundSchema: z.ZodType< field: SemanticThreadTimeBasedGroupBySelectionField$outboundSchema.optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SemanticThreadTimeBasedGroupBySelection$ { - /** @deprecated use `SemanticThreadTimeBasedGroupBySelection$inboundSchema` instead. */ - export const inboundSchema = - SemanticThreadTimeBasedGroupBySelection$inboundSchema; - /** @deprecated use `SemanticThreadTimeBasedGroupBySelection$outboundSchema` instead. */ - export const outboundSchema = - SemanticThreadTimeBasedGroupBySelection$outboundSchema; - /** @deprecated use `SemanticThreadTimeBasedGroupBySelection$Outbound` instead. */ - export type Outbound = SemanticThreadTimeBasedGroupBySelection$Outbound; -} - export function semanticThreadTimeBasedGroupBySelectionToJSON( semanticThreadTimeBasedGroupBySelection: SemanticThreadTimeBasedGroupBySelection, @@ -168,7 +124,6 @@ export function semanticThreadTimeBasedGroupBySelectionToJSON( ), ); } - export function semanticThreadTimeBasedGroupBySelectionFromJSON( jsonString: string, ): SafeParseResult< diff --git a/src/models/components/supportcopilotconversation.ts b/src/models/components/supportcopilotconversation.ts index a01533a6..8465da39 100644 --- a/src/models/components/supportcopilotconversation.ts +++ b/src/models/components/supportcopilotconversation.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { collectExtraKeys as collectExtraKeys$, @@ -59,7 +59,7 @@ export type SupportCopilotConversationUserProperties = { * The type of user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. */ userType?: string | null | undefined; - additionalProperties?: { [k: string]: any }; + additionalProperties?: { [k: string]: any } | undefined; }; export const SupportCopilotConversationVisibility = { @@ -100,30 +100,17 @@ export type SupportCopilotConversation = { export const SupportCopilotConversationType$inboundSchema: z.ZodNativeEnum< typeof SupportCopilotConversationType > = z.nativeEnum(SupportCopilotConversationType); - /** @internal */ export const SupportCopilotConversationType$outboundSchema: z.ZodNativeEnum< typeof SupportCopilotConversationType > = SupportCopilotConversationType$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SupportCopilotConversationType$ { - /** @deprecated use `SupportCopilotConversationType$inboundSchema` instead. */ - export const inboundSchema = SupportCopilotConversationType$inboundSchema; - /** @deprecated use `SupportCopilotConversationType$outboundSchema` instead. */ - export const outboundSchema = SupportCopilotConversationType$outboundSchema; -} - /** @internal */ export const SupportCopilotConversationId$inboundSchema: z.ZodType< SupportCopilotConversationId, z.ZodTypeDef, unknown > = z.union([z.string(), z.number()]); - /** @internal */ export type SupportCopilotConversationId$Outbound = string | number; @@ -134,19 +121,6 @@ export const SupportCopilotConversationId$outboundSchema: z.ZodType< SupportCopilotConversationId > = z.union([z.string(), z.number()]); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SupportCopilotConversationId$ { - /** @deprecated use `SupportCopilotConversationId$inboundSchema` instead. */ - export const inboundSchema = SupportCopilotConversationId$inboundSchema; - /** @deprecated use `SupportCopilotConversationId$outboundSchema` instead. */ - export const outboundSchema = SupportCopilotConversationId$outboundSchema; - /** @deprecated use `SupportCopilotConversationId$Outbound` instead. */ - export type Outbound = SupportCopilotConversationId$Outbound; -} - export function supportCopilotConversationIdToJSON( supportCopilotConversationId: SupportCopilotConversationId, ): string { @@ -156,7 +130,6 @@ export function supportCopilotConversationIdToJSON( ), ); } - export function supportCopilotConversationIdFromJSON( jsonString: string, ): SafeParseResult { @@ -173,7 +146,6 @@ export const SupportCopilotConversationUserId$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.union([z.string(), z.number()]); - /** @internal */ export type SupportCopilotConversationUserId$Outbound = string | number; @@ -184,19 +156,6 @@ export const SupportCopilotConversationUserId$outboundSchema: z.ZodType< SupportCopilotConversationUserId > = z.union([z.string(), z.number()]); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SupportCopilotConversationUserId$ { - /** @deprecated use `SupportCopilotConversationUserId$inboundSchema` instead. */ - export const inboundSchema = SupportCopilotConversationUserId$inboundSchema; - /** @deprecated use `SupportCopilotConversationUserId$outboundSchema` instead. */ - export const outboundSchema = SupportCopilotConversationUserId$outboundSchema; - /** @deprecated use `SupportCopilotConversationUserId$Outbound` instead. */ - export type Outbound = SupportCopilotConversationUserId$Outbound; -} - export function supportCopilotConversationUserIdToJSON( supportCopilotConversationUserId: SupportCopilotConversationUserId, ): string { @@ -206,7 +165,6 @@ export function supportCopilotConversationUserIdToJSON( ), ); } - export function supportCopilotConversationUserIdFromJSON( jsonString: string, ): SafeParseResult { @@ -233,7 +191,6 @@ export const SupportCopilotConversationUserProperties$inboundSchema: z.ZodType< "additionalProperties", true, ); - /** @internal */ export type SupportCopilotConversationUserProperties$Outbound = { id?: string | number | null | undefined; @@ -255,7 +212,7 @@ export const SupportCopilotConversationUserProperties$outboundSchema: z.ZodType< userId: z.nullable(z.union([z.string(), z.number()])).optional(), supportAgentName: z.nullable(z.string()).optional(), userType: z.nullable(z.string()).optional(), - additionalProperties: z.record(z.any()), + additionalProperties: z.record(z.any()).optional(), }).transform((v) => { return { ...v.additionalProperties, @@ -265,21 +222,6 @@ export const SupportCopilotConversationUserProperties$outboundSchema: z.ZodType< }; }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SupportCopilotConversationUserProperties$ { - /** @deprecated use `SupportCopilotConversationUserProperties$inboundSchema` instead. */ - export const inboundSchema = - SupportCopilotConversationUserProperties$inboundSchema; - /** @deprecated use `SupportCopilotConversationUserProperties$outboundSchema` instead. */ - export const outboundSchema = - SupportCopilotConversationUserProperties$outboundSchema; - /** @deprecated use `SupportCopilotConversationUserProperties$Outbound` instead. */ - export type Outbound = SupportCopilotConversationUserProperties$Outbound; -} - export function supportCopilotConversationUserPropertiesToJSON( supportCopilotConversationUserProperties: SupportCopilotConversationUserProperties, @@ -290,7 +232,6 @@ export function supportCopilotConversationUserPropertiesToJSON( ), ); } - export function supportCopilotConversationUserPropertiesFromJSON( jsonString: string, ): SafeParseResult< @@ -312,25 +253,11 @@ export const SupportCopilotConversationVisibility$inboundSchema: z.ZodNativeEnum = z.nativeEnum( SupportCopilotConversationVisibility, ); - /** @internal */ export const SupportCopilotConversationVisibility$outboundSchema: z.ZodNativeEnum = SupportCopilotConversationVisibility$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SupportCopilotConversationVisibility$ { - /** @deprecated use `SupportCopilotConversationVisibility$inboundSchema` instead. */ - export const inboundSchema = - SupportCopilotConversationVisibility$inboundSchema; - /** @deprecated use `SupportCopilotConversationVisibility$outboundSchema` instead. */ - export const outboundSchema = - SupportCopilotConversationVisibility$outboundSchema; -} - /** @internal */ export const SupportCopilotConversation$inboundSchema: z.ZodType< SupportCopilotConversation, @@ -354,7 +281,6 @@ export const SupportCopilotConversation$inboundSchema: z.ZodType< visibility: z.nullable(SupportCopilotConversationVisibility$inboundSchema), messages: z.array(SupportCopilotMessage$inboundSchema), }); - /** @internal */ export type SupportCopilotConversation$Outbound = { id: string; @@ -400,19 +326,6 @@ export const SupportCopilotConversation$outboundSchema: z.ZodType< messages: z.array(SupportCopilotMessage$outboundSchema), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SupportCopilotConversation$ { - /** @deprecated use `SupportCopilotConversation$inboundSchema` instead. */ - export const inboundSchema = SupportCopilotConversation$inboundSchema; - /** @deprecated use `SupportCopilotConversation$outboundSchema` instead. */ - export const outboundSchema = SupportCopilotConversation$outboundSchema; - /** @deprecated use `SupportCopilotConversation$Outbound` instead. */ - export type Outbound = SupportCopilotConversation$Outbound; -} - export function supportCopilotConversationToJSON( supportCopilotConversation: SupportCopilotConversation, ): string { @@ -420,7 +333,6 @@ export function supportCopilotConversationToJSON( SupportCopilotConversation$outboundSchema.parse(supportCopilotConversation), ); } - export function supportCopilotConversationFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/supportcopilotmessage.ts b/src/models/components/supportcopilotmessage.ts index 9915f9b7..bbcf1c56 100644 --- a/src/models/components/supportcopilotmessage.ts +++ b/src/models/components/supportcopilotmessage.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { collectExtraKeys as collectExtraKeys$, @@ -81,7 +81,7 @@ export type SupportCopilotMessageUserProperties = { * The type of user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. */ userType?: string | null | undefined; - additionalProperties?: { [k: string]: any }; + additionalProperties?: { [k: string]: any } | undefined; }; export type SupportCopilotMessage = { @@ -110,51 +110,26 @@ export type SupportCopilotMessage = { export const SupportCopilotMessageType$inboundSchema: z.ZodNativeEnum< typeof SupportCopilotMessageType > = z.nativeEnum(SupportCopilotMessageType); - /** @internal */ export const SupportCopilotMessageType$outboundSchema: z.ZodNativeEnum< typeof SupportCopilotMessageType > = SupportCopilotMessageType$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SupportCopilotMessageType$ { - /** @deprecated use `SupportCopilotMessageType$inboundSchema` instead. */ - export const inboundSchema = SupportCopilotMessageType$inboundSchema; - /** @deprecated use `SupportCopilotMessageType$outboundSchema` instead. */ - export const outboundSchema = SupportCopilotMessageType$outboundSchema; -} - /** @internal */ export const SupportCopilotMessageType1$inboundSchema: z.ZodNativeEnum< typeof SupportCopilotMessageType1 > = z.nativeEnum(SupportCopilotMessageType1); - /** @internal */ export const SupportCopilotMessageType1$outboundSchema: z.ZodNativeEnum< typeof SupportCopilotMessageType1 > = SupportCopilotMessageType1$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SupportCopilotMessageType1$ { - /** @deprecated use `SupportCopilotMessageType1$inboundSchema` instead. */ - export const inboundSchema = SupportCopilotMessageType1$inboundSchema; - /** @deprecated use `SupportCopilotMessageType1$outboundSchema` instead. */ - export const outboundSchema = SupportCopilotMessageType1$outboundSchema; -} - /** @internal */ export const SupportCopilotMessageLinksType$inboundSchema: z.ZodType< SupportCopilotMessageLinksType, z.ZodTypeDef, unknown > = z.union([SupportCopilotMessageType1$inboundSchema, z.string()]); - /** @internal */ export type SupportCopilotMessageLinksType$Outbound = string | string; @@ -165,19 +140,6 @@ export const SupportCopilotMessageLinksType$outboundSchema: z.ZodType< SupportCopilotMessageLinksType > = z.union([SupportCopilotMessageType1$outboundSchema, z.string()]); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SupportCopilotMessageLinksType$ { - /** @deprecated use `SupportCopilotMessageLinksType$inboundSchema` instead. */ - export const inboundSchema = SupportCopilotMessageLinksType$inboundSchema; - /** @deprecated use `SupportCopilotMessageLinksType$outboundSchema` instead. */ - export const outboundSchema = SupportCopilotMessageLinksType$outboundSchema; - /** @deprecated use `SupportCopilotMessageLinksType$Outbound` instead. */ - export type Outbound = SupportCopilotMessageLinksType$Outbound; -} - export function supportCopilotMessageLinksTypeToJSON( supportCopilotMessageLinksType: SupportCopilotMessageLinksType, ): string { @@ -187,7 +149,6 @@ export function supportCopilotMessageLinksTypeToJSON( ), ); } - export function supportCopilotMessageLinksTypeFromJSON( jsonString: string, ): SafeParseResult { @@ -213,7 +174,6 @@ export const SupportCopilotMessageLinks$inboundSchema: z.ZodType< ).optional(), breadcrumbs: z.nullable(z.array(z.string())).optional(), }); - /** @internal */ export type SupportCopilotMessageLinks$Outbound = { label?: string | null | undefined; @@ -240,19 +200,6 @@ export const SupportCopilotMessageLinks$outboundSchema: z.ZodType< breadcrumbs: z.nullable(z.array(z.string())).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SupportCopilotMessageLinks$ { - /** @deprecated use `SupportCopilotMessageLinks$inboundSchema` instead. */ - export const inboundSchema = SupportCopilotMessageLinks$inboundSchema; - /** @deprecated use `SupportCopilotMessageLinks$outboundSchema` instead. */ - export const outboundSchema = SupportCopilotMessageLinks$outboundSchema; - /** @deprecated use `SupportCopilotMessageLinks$Outbound` instead. */ - export type Outbound = SupportCopilotMessageLinks$Outbound; -} - export function supportCopilotMessageLinksToJSON( supportCopilotMessageLinks: SupportCopilotMessageLinks, ): string { @@ -260,7 +207,6 @@ export function supportCopilotMessageLinksToJSON( SupportCopilotMessageLinks$outboundSchema.parse(supportCopilotMessageLinks), ); } - export function supportCopilotMessageLinksFromJSON( jsonString: string, ): SafeParseResult { @@ -277,7 +223,6 @@ export const SupportCopilotMessageId$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.union([z.string(), z.number()]); - /** @internal */ export type SupportCopilotMessageId$Outbound = string | number; @@ -288,19 +233,6 @@ export const SupportCopilotMessageId$outboundSchema: z.ZodType< SupportCopilotMessageId > = z.union([z.string(), z.number()]); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SupportCopilotMessageId$ { - /** @deprecated use `SupportCopilotMessageId$inboundSchema` instead. */ - export const inboundSchema = SupportCopilotMessageId$inboundSchema; - /** @deprecated use `SupportCopilotMessageId$outboundSchema` instead. */ - export const outboundSchema = SupportCopilotMessageId$outboundSchema; - /** @deprecated use `SupportCopilotMessageId$Outbound` instead. */ - export type Outbound = SupportCopilotMessageId$Outbound; -} - export function supportCopilotMessageIdToJSON( supportCopilotMessageId: SupportCopilotMessageId, ): string { @@ -308,7 +240,6 @@ export function supportCopilotMessageIdToJSON( SupportCopilotMessageId$outboundSchema.parse(supportCopilotMessageId), ); } - export function supportCopilotMessageIdFromJSON( jsonString: string, ): SafeParseResult { @@ -325,7 +256,6 @@ export const SupportCopilotMessageUserId$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.union([z.string(), z.number()]); - /** @internal */ export type SupportCopilotMessageUserId$Outbound = string | number; @@ -336,19 +266,6 @@ export const SupportCopilotMessageUserId$outboundSchema: z.ZodType< SupportCopilotMessageUserId > = z.union([z.string(), z.number()]); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SupportCopilotMessageUserId$ { - /** @deprecated use `SupportCopilotMessageUserId$inboundSchema` instead. */ - export const inboundSchema = SupportCopilotMessageUserId$inboundSchema; - /** @deprecated use `SupportCopilotMessageUserId$outboundSchema` instead. */ - export const outboundSchema = SupportCopilotMessageUserId$outboundSchema; - /** @deprecated use `SupportCopilotMessageUserId$Outbound` instead. */ - export type Outbound = SupportCopilotMessageUserId$Outbound; -} - export function supportCopilotMessageUserIdToJSON( supportCopilotMessageUserId: SupportCopilotMessageUserId, ): string { @@ -358,7 +275,6 @@ export function supportCopilotMessageUserIdToJSON( ), ); } - export function supportCopilotMessageUserIdFromJSON( jsonString: string, ): SafeParseResult { @@ -385,7 +301,6 @@ export const SupportCopilotMessageUserProperties$inboundSchema: z.ZodType< "additionalProperties", true, ); - /** @internal */ export type SupportCopilotMessageUserProperties$Outbound = { id?: string | number | null | undefined; @@ -407,7 +322,7 @@ export const SupportCopilotMessageUserProperties$outboundSchema: z.ZodType< userId: z.nullable(z.union([z.string(), z.number()])).optional(), supportAgentName: z.nullable(z.string()).optional(), userType: z.nullable(z.string()).optional(), - additionalProperties: z.record(z.any()), + additionalProperties: z.record(z.any()).optional(), }).transform((v) => { return { ...v.additionalProperties, @@ -417,21 +332,6 @@ export const SupportCopilotMessageUserProperties$outboundSchema: z.ZodType< }; }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SupportCopilotMessageUserProperties$ { - /** @deprecated use `SupportCopilotMessageUserProperties$inboundSchema` instead. */ - export const inboundSchema = - SupportCopilotMessageUserProperties$inboundSchema; - /** @deprecated use `SupportCopilotMessageUserProperties$outboundSchema` instead. */ - export const outboundSchema = - SupportCopilotMessageUserProperties$outboundSchema; - /** @deprecated use `SupportCopilotMessageUserProperties$Outbound` instead. */ - export type Outbound = SupportCopilotMessageUserProperties$Outbound; -} - export function supportCopilotMessageUserPropertiesToJSON( supportCopilotMessageUserProperties: SupportCopilotMessageUserProperties, ): string { @@ -441,7 +341,6 @@ export function supportCopilotMessageUserPropertiesToJSON( ), ); } - export function supportCopilotMessageUserPropertiesFromJSON( jsonString: string, ): SafeParseResult { @@ -477,7 +376,6 @@ export const SupportCopilotMessage$inboundSchema: z.ZodType< z.lazy(() => SupportCopilotMessageUserProperties$inboundSchema), ).optional(), }); - /** @internal */ export type SupportCopilotMessage$Outbound = { id: string; @@ -523,19 +421,6 @@ export const SupportCopilotMessage$outboundSchema: z.ZodType< ).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SupportCopilotMessage$ { - /** @deprecated use `SupportCopilotMessage$inboundSchema` instead. */ - export const inboundSchema = SupportCopilotMessage$inboundSchema; - /** @deprecated use `SupportCopilotMessage$outboundSchema` instead. */ - export const outboundSchema = SupportCopilotMessage$outboundSchema; - /** @deprecated use `SupportCopilotMessage$Outbound` instead. */ - export type Outbound = SupportCopilotMessage$Outbound; -} - export function supportCopilotMessageToJSON( supportCopilotMessage: SupportCopilotMessage, ): string { @@ -543,7 +428,6 @@ export function supportCopilotMessageToJSON( SupportCopilotMessage$outboundSchema.parse(supportCopilotMessage), ); } - export function supportCopilotMessageFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/supportticketconversation.ts b/src/models/components/supportticketconversation.ts index 75277ca3..3c31527c 100644 --- a/src/models/components/supportticketconversation.ts +++ b/src/models/components/supportticketconversation.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { collectExtraKeys as collectExtraKeys$, @@ -59,7 +59,7 @@ export type SupportTicketConversationUserProperties = { * The type of user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. */ userType?: string | null | undefined; - additionalProperties?: { [k: string]: any }; + additionalProperties?: { [k: string]: any } | undefined; }; export const SupportTicketConversationVisibility = { @@ -100,30 +100,17 @@ export type SupportTicketConversation = { export const SupportTicketConversationType$inboundSchema: z.ZodNativeEnum< typeof SupportTicketConversationType > = z.nativeEnum(SupportTicketConversationType); - /** @internal */ export const SupportTicketConversationType$outboundSchema: z.ZodNativeEnum< typeof SupportTicketConversationType > = SupportTicketConversationType$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SupportTicketConversationType$ { - /** @deprecated use `SupportTicketConversationType$inboundSchema` instead. */ - export const inboundSchema = SupportTicketConversationType$inboundSchema; - /** @deprecated use `SupportTicketConversationType$outboundSchema` instead. */ - export const outboundSchema = SupportTicketConversationType$outboundSchema; -} - /** @internal */ export const SupportTicketConversationId$inboundSchema: z.ZodType< SupportTicketConversationId, z.ZodTypeDef, unknown > = z.union([z.string(), z.number()]); - /** @internal */ export type SupportTicketConversationId$Outbound = string | number; @@ -134,19 +121,6 @@ export const SupportTicketConversationId$outboundSchema: z.ZodType< SupportTicketConversationId > = z.union([z.string(), z.number()]); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SupportTicketConversationId$ { - /** @deprecated use `SupportTicketConversationId$inboundSchema` instead. */ - export const inboundSchema = SupportTicketConversationId$inboundSchema; - /** @deprecated use `SupportTicketConversationId$outboundSchema` instead. */ - export const outboundSchema = SupportTicketConversationId$outboundSchema; - /** @deprecated use `SupportTicketConversationId$Outbound` instead. */ - export type Outbound = SupportTicketConversationId$Outbound; -} - export function supportTicketConversationIdToJSON( supportTicketConversationId: SupportTicketConversationId, ): string { @@ -156,7 +130,6 @@ export function supportTicketConversationIdToJSON( ), ); } - export function supportTicketConversationIdFromJSON( jsonString: string, ): SafeParseResult { @@ -173,7 +146,6 @@ export const SupportTicketConversationUserId$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.union([z.string(), z.number()]); - /** @internal */ export type SupportTicketConversationUserId$Outbound = string | number; @@ -184,19 +156,6 @@ export const SupportTicketConversationUserId$outboundSchema: z.ZodType< SupportTicketConversationUserId > = z.union([z.string(), z.number()]); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SupportTicketConversationUserId$ { - /** @deprecated use `SupportTicketConversationUserId$inboundSchema` instead. */ - export const inboundSchema = SupportTicketConversationUserId$inboundSchema; - /** @deprecated use `SupportTicketConversationUserId$outboundSchema` instead. */ - export const outboundSchema = SupportTicketConversationUserId$outboundSchema; - /** @deprecated use `SupportTicketConversationUserId$Outbound` instead. */ - export type Outbound = SupportTicketConversationUserId$Outbound; -} - export function supportTicketConversationUserIdToJSON( supportTicketConversationUserId: SupportTicketConversationUserId, ): string { @@ -206,7 +165,6 @@ export function supportTicketConversationUserIdToJSON( ), ); } - export function supportTicketConversationUserIdFromJSON( jsonString: string, ): SafeParseResult { @@ -233,7 +191,6 @@ export const SupportTicketConversationUserProperties$inboundSchema: z.ZodType< "additionalProperties", true, ); - /** @internal */ export type SupportTicketConversationUserProperties$Outbound = { id?: string | number | null | undefined; @@ -255,7 +212,7 @@ export const SupportTicketConversationUserProperties$outboundSchema: z.ZodType< userId: z.nullable(z.union([z.string(), z.number()])).optional(), supportAgentName: z.nullable(z.string()).optional(), userType: z.nullable(z.string()).optional(), - additionalProperties: z.record(z.any()), + additionalProperties: z.record(z.any()).optional(), }).transform((v) => { return { ...v.additionalProperties, @@ -265,21 +222,6 @@ export const SupportTicketConversationUserProperties$outboundSchema: z.ZodType< }; }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SupportTicketConversationUserProperties$ { - /** @deprecated use `SupportTicketConversationUserProperties$inboundSchema` instead. */ - export const inboundSchema = - SupportTicketConversationUserProperties$inboundSchema; - /** @deprecated use `SupportTicketConversationUserProperties$outboundSchema` instead. */ - export const outboundSchema = - SupportTicketConversationUserProperties$outboundSchema; - /** @deprecated use `SupportTicketConversationUserProperties$Outbound` instead. */ - export type Outbound = SupportTicketConversationUserProperties$Outbound; -} - export function supportTicketConversationUserPropertiesToJSON( supportTicketConversationUserProperties: SupportTicketConversationUserProperties, @@ -290,7 +232,6 @@ export function supportTicketConversationUserPropertiesToJSON( ), ); } - export function supportTicketConversationUserPropertiesFromJSON( jsonString: string, ): SafeParseResult< @@ -311,25 +252,11 @@ export function supportTicketConversationUserPropertiesFromJSON( export const SupportTicketConversationVisibility$inboundSchema: z.ZodNativeEnum< typeof SupportTicketConversationVisibility > = z.nativeEnum(SupportTicketConversationVisibility); - /** @internal */ export const SupportTicketConversationVisibility$outboundSchema: z.ZodNativeEnum = SupportTicketConversationVisibility$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SupportTicketConversationVisibility$ { - /** @deprecated use `SupportTicketConversationVisibility$inboundSchema` instead. */ - export const inboundSchema = - SupportTicketConversationVisibility$inboundSchema; - /** @deprecated use `SupportTicketConversationVisibility$outboundSchema` instead. */ - export const outboundSchema = - SupportTicketConversationVisibility$outboundSchema; -} - /** @internal */ export const SupportTicketConversation$inboundSchema: z.ZodType< SupportTicketConversation, @@ -353,7 +280,6 @@ export const SupportTicketConversation$inboundSchema: z.ZodType< visibility: z.nullable(SupportTicketConversationVisibility$inboundSchema), messages: z.array(SupportTicketMessage$inboundSchema), }); - /** @internal */ export type SupportTicketConversation$Outbound = { id: string; @@ -399,19 +325,6 @@ export const SupportTicketConversation$outboundSchema: z.ZodType< messages: z.array(SupportTicketMessage$outboundSchema), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SupportTicketConversation$ { - /** @deprecated use `SupportTicketConversation$inboundSchema` instead. */ - export const inboundSchema = SupportTicketConversation$inboundSchema; - /** @deprecated use `SupportTicketConversation$outboundSchema` instead. */ - export const outboundSchema = SupportTicketConversation$outboundSchema; - /** @deprecated use `SupportTicketConversation$Outbound` instead. */ - export type Outbound = SupportTicketConversation$Outbound; -} - export function supportTicketConversationToJSON( supportTicketConversation: SupportTicketConversation, ): string { @@ -419,7 +332,6 @@ export function supportTicketConversationToJSON( SupportTicketConversation$outboundSchema.parse(supportTicketConversation), ); } - export function supportTicketConversationFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/supportticketmessage.ts b/src/models/components/supportticketmessage.ts index f53132d6..926d4f7b 100644 --- a/src/models/components/supportticketmessage.ts +++ b/src/models/components/supportticketmessage.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { collectExtraKeys as collectExtraKeys$, @@ -77,7 +77,7 @@ export type SupportTicketMessageUserProperties = { * The type of user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. */ userType?: string | null | undefined; - additionalProperties?: { [k: string]: any }; + additionalProperties?: { [k: string]: any } | undefined; }; export type SupportTicketMessage = { @@ -106,50 +106,25 @@ export type SupportTicketMessage = { export const SupportTicketMessageType$inboundSchema: z.ZodNativeEnum< typeof SupportTicketMessageType > = z.nativeEnum(SupportTicketMessageType); - /** @internal */ export const SupportTicketMessageType$outboundSchema: z.ZodNativeEnum< typeof SupportTicketMessageType > = SupportTicketMessageType$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SupportTicketMessageType$ { - /** @deprecated use `SupportTicketMessageType$inboundSchema` instead. */ - export const inboundSchema = SupportTicketMessageType$inboundSchema; - /** @deprecated use `SupportTicketMessageType$outboundSchema` instead. */ - export const outboundSchema = SupportTicketMessageType$outboundSchema; -} - /** @internal */ export const Type1$inboundSchema: z.ZodNativeEnum = z.nativeEnum( Type1, ); - /** @internal */ export const Type1$outboundSchema: z.ZodNativeEnum = Type1$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Type1$ { - /** @deprecated use `Type1$inboundSchema` instead. */ - export const inboundSchema = Type1$inboundSchema; - /** @deprecated use `Type1$outboundSchema` instead. */ - export const outboundSchema = Type1$outboundSchema; -} - /** @internal */ export const SupportTicketMessageLinksType$inboundSchema: z.ZodType< SupportTicketMessageLinksType, z.ZodTypeDef, unknown > = z.union([Type1$inboundSchema, z.string()]); - /** @internal */ export type SupportTicketMessageLinksType$Outbound = string | string; @@ -160,19 +135,6 @@ export const SupportTicketMessageLinksType$outboundSchema: z.ZodType< SupportTicketMessageLinksType > = z.union([Type1$outboundSchema, z.string()]); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SupportTicketMessageLinksType$ { - /** @deprecated use `SupportTicketMessageLinksType$inboundSchema` instead. */ - export const inboundSchema = SupportTicketMessageLinksType$inboundSchema; - /** @deprecated use `SupportTicketMessageLinksType$outboundSchema` instead. */ - export const outboundSchema = SupportTicketMessageLinksType$outboundSchema; - /** @deprecated use `SupportTicketMessageLinksType$Outbound` instead. */ - export type Outbound = SupportTicketMessageLinksType$Outbound; -} - export function supportTicketMessageLinksTypeToJSON( supportTicketMessageLinksType: SupportTicketMessageLinksType, ): string { @@ -182,7 +144,6 @@ export function supportTicketMessageLinksTypeToJSON( ), ); } - export function supportTicketMessageLinksTypeFromJSON( jsonString: string, ): SafeParseResult { @@ -206,7 +167,6 @@ export const SupportTicketMessageLinks$inboundSchema: z.ZodType< type: z.nullable(z.union([Type1$inboundSchema, z.string()])).optional(), breadcrumbs: z.nullable(z.array(z.string())).optional(), }); - /** @internal */ export type SupportTicketMessageLinks$Outbound = { label?: string | null | undefined; @@ -231,19 +191,6 @@ export const SupportTicketMessageLinks$outboundSchema: z.ZodType< breadcrumbs: z.nullable(z.array(z.string())).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SupportTicketMessageLinks$ { - /** @deprecated use `SupportTicketMessageLinks$inboundSchema` instead. */ - export const inboundSchema = SupportTicketMessageLinks$inboundSchema; - /** @deprecated use `SupportTicketMessageLinks$outboundSchema` instead. */ - export const outboundSchema = SupportTicketMessageLinks$outboundSchema; - /** @deprecated use `SupportTicketMessageLinks$Outbound` instead. */ - export type Outbound = SupportTicketMessageLinks$Outbound; -} - export function supportTicketMessageLinksToJSON( supportTicketMessageLinks: SupportTicketMessageLinks, ): string { @@ -251,7 +198,6 @@ export function supportTicketMessageLinksToJSON( SupportTicketMessageLinks$outboundSchema.parse(supportTicketMessageLinks), ); } - export function supportTicketMessageLinksFromJSON( jsonString: string, ): SafeParseResult { @@ -268,7 +214,6 @@ export const SupportTicketMessageId$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.union([z.string(), z.number()]); - /** @internal */ export type SupportTicketMessageId$Outbound = string | number; @@ -279,19 +224,6 @@ export const SupportTicketMessageId$outboundSchema: z.ZodType< SupportTicketMessageId > = z.union([z.string(), z.number()]); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SupportTicketMessageId$ { - /** @deprecated use `SupportTicketMessageId$inboundSchema` instead. */ - export const inboundSchema = SupportTicketMessageId$inboundSchema; - /** @deprecated use `SupportTicketMessageId$outboundSchema` instead. */ - export const outboundSchema = SupportTicketMessageId$outboundSchema; - /** @deprecated use `SupportTicketMessageId$Outbound` instead. */ - export type Outbound = SupportTicketMessageId$Outbound; -} - export function supportTicketMessageIdToJSON( supportTicketMessageId: SupportTicketMessageId, ): string { @@ -299,7 +231,6 @@ export function supportTicketMessageIdToJSON( SupportTicketMessageId$outboundSchema.parse(supportTicketMessageId), ); } - export function supportTicketMessageIdFromJSON( jsonString: string, ): SafeParseResult { @@ -316,7 +247,6 @@ export const SupportTicketMessageUserId$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.union([z.string(), z.number()]); - /** @internal */ export type SupportTicketMessageUserId$Outbound = string | number; @@ -327,19 +257,6 @@ export const SupportTicketMessageUserId$outboundSchema: z.ZodType< SupportTicketMessageUserId > = z.union([z.string(), z.number()]); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SupportTicketMessageUserId$ { - /** @deprecated use `SupportTicketMessageUserId$inboundSchema` instead. */ - export const inboundSchema = SupportTicketMessageUserId$inboundSchema; - /** @deprecated use `SupportTicketMessageUserId$outboundSchema` instead. */ - export const outboundSchema = SupportTicketMessageUserId$outboundSchema; - /** @deprecated use `SupportTicketMessageUserId$Outbound` instead. */ - export type Outbound = SupportTicketMessageUserId$Outbound; -} - export function supportTicketMessageUserIdToJSON( supportTicketMessageUserId: SupportTicketMessageUserId, ): string { @@ -347,7 +264,6 @@ export function supportTicketMessageUserIdToJSON( SupportTicketMessageUserId$outboundSchema.parse(supportTicketMessageUserId), ); } - export function supportTicketMessageUserIdFromJSON( jsonString: string, ): SafeParseResult { @@ -374,7 +290,6 @@ export const SupportTicketMessageUserProperties$inboundSchema: z.ZodType< "additionalProperties", true, ); - /** @internal */ export type SupportTicketMessageUserProperties$Outbound = { id?: string | number | null | undefined; @@ -396,7 +311,7 @@ export const SupportTicketMessageUserProperties$outboundSchema: z.ZodType< userId: z.nullable(z.union([z.string(), z.number()])).optional(), supportAgentName: z.nullable(z.string()).optional(), userType: z.nullable(z.string()).optional(), - additionalProperties: z.record(z.any()), + additionalProperties: z.record(z.any()).optional(), }).transform((v) => { return { ...v.additionalProperties, @@ -406,20 +321,6 @@ export const SupportTicketMessageUserProperties$outboundSchema: z.ZodType< }; }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SupportTicketMessageUserProperties$ { - /** @deprecated use `SupportTicketMessageUserProperties$inboundSchema` instead. */ - export const inboundSchema = SupportTicketMessageUserProperties$inboundSchema; - /** @deprecated use `SupportTicketMessageUserProperties$outboundSchema` instead. */ - export const outboundSchema = - SupportTicketMessageUserProperties$outboundSchema; - /** @deprecated use `SupportTicketMessageUserProperties$Outbound` instead. */ - export type Outbound = SupportTicketMessageUserProperties$Outbound; -} - export function supportTicketMessageUserPropertiesToJSON( supportTicketMessageUserProperties: SupportTicketMessageUserProperties, ): string { @@ -429,7 +330,6 @@ export function supportTicketMessageUserPropertiesToJSON( ), ); } - export function supportTicketMessageUserPropertiesFromJSON( jsonString: string, ): SafeParseResult { @@ -465,7 +365,6 @@ export const SupportTicketMessage$inboundSchema: z.ZodType< z.lazy(() => SupportTicketMessageUserProperties$inboundSchema), ).optional(), }); - /** @internal */ export type SupportTicketMessage$Outbound = { id: string; @@ -511,19 +410,6 @@ export const SupportTicketMessage$outboundSchema: z.ZodType< ).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SupportTicketMessage$ { - /** @deprecated use `SupportTicketMessage$inboundSchema` instead. */ - export const inboundSchema = SupportTicketMessage$inboundSchema; - /** @deprecated use `SupportTicketMessage$outboundSchema` instead. */ - export const outboundSchema = SupportTicketMessage$outboundSchema; - /** @deprecated use `SupportTicketMessage$Outbound` instead. */ - export type Outbound = SupportTicketMessage$Outbound; -} - export function supportTicketMessageToJSON( supportTicketMessage: SupportTicketMessage, ): string { @@ -531,7 +417,6 @@ export function supportTicketMessageToJSON( SupportTicketMessage$outboundSchema.parse(supportTicketMessage), ); } - export function supportTicketMessageFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/components/timeunit.ts b/src/models/components/timeunit.ts index 8c019dab..670e1e22 100644 --- a/src/models/components/timeunit.ts +++ b/src/models/components/timeunit.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; /** @@ -22,18 +22,6 @@ export type TimeUnit = ClosedEnum; /** @internal */ export const TimeUnit$inboundSchema: z.ZodNativeEnum = z .nativeEnum(TimeUnit); - /** @internal */ export const TimeUnit$outboundSchema: z.ZodNativeEnum = TimeUnit$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace TimeUnit$ { - /** @deprecated use `TimeUnit$inboundSchema` instead. */ - export const inboundSchema = TimeUnit$inboundSchema; - /** @deprecated use `TimeUnit$outboundSchema` instead. */ - export const outboundSchema = TimeUnit$outboundSchema; -} diff --git a/src/models/errors/badrequest.ts b/src/models/errors/badrequest.ts index aada2a15..ac94d601 100644 --- a/src/models/errors/badrequest.ts +++ b/src/models/errors/badrequest.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -133,50 +133,25 @@ export class BadRequest extends InkeepAnalyticsError { export const Code$inboundSchema: z.ZodNativeEnum = z.nativeEnum( Code, ); - /** @internal */ export const Code$outboundSchema: z.ZodNativeEnum = Code$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Code$ { - /** @deprecated use `Code$inboundSchema` instead. */ - export const inboundSchema = Code$inboundSchema; - /** @deprecated use `Code$outboundSchema` instead. */ - export const outboundSchema = Code$outboundSchema; -} - /** @internal */ export const BadRequestCode$inboundSchema: z.ZodNativeEnum< typeof BadRequestCode > = z.nativeEnum(BadRequestCode); - /** @internal */ export const BadRequestCode$outboundSchema: z.ZodNativeEnum< typeof BadRequestCode > = BadRequestCode$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace BadRequestCode$ { - /** @deprecated use `BadRequestCode$inboundSchema` instead. */ - export const inboundSchema = BadRequestCode$inboundSchema; - /** @deprecated use `BadRequestCode$outboundSchema` instead. */ - export const outboundSchema = BadRequestCode$outboundSchema; -} - /** @internal */ export const ErrorT$inboundSchema: z.ZodType = z .object({ code: BadRequestCode$inboundSchema, message: z.string(), }); - /** @internal */ export type ErrorT$Outbound = { code: string; @@ -193,23 +168,9 @@ export const ErrorT$outboundSchema: z.ZodType< message: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ErrorT$ { - /** @deprecated use `ErrorT$inboundSchema` instead. */ - export const inboundSchema = ErrorT$inboundSchema; - /** @deprecated use `ErrorT$outboundSchema` instead. */ - export const outboundSchema = ErrorT$outboundSchema; - /** @deprecated use `ErrorT$Outbound` instead. */ - export type Outbound = ErrorT$Outbound; -} - export function errorToJSON(errorT: ErrorT): string { return JSON.stringify(ErrorT$outboundSchema.parse(errorT)); } - export function errorFromJSON( jsonString: string, ): SafeParseResult { @@ -272,16 +233,3 @@ export const BadRequest$outboundSchema: z.ZodType< code: Code$outboundSchema, error: z.lazy(() => ErrorT$outboundSchema), })); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace BadRequest$ { - /** @deprecated use `BadRequest$inboundSchema` instead. */ - export const inboundSchema = BadRequest$inboundSchema; - /** @deprecated use `BadRequest$outboundSchema` instead. */ - export const outboundSchema = BadRequest$outboundSchema; - /** @deprecated use `BadRequest$Outbound` instead. */ - export type Outbound = BadRequest$Outbound; -} diff --git a/src/models/errors/forbidden.ts b/src/models/errors/forbidden.ts index 11badcc4..4a6b2f83 100644 --- a/src/models/errors/forbidden.ts +++ b/src/models/errors/forbidden.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -133,44 +133,20 @@ export class Forbidden extends InkeepAnalyticsError { export const ForbiddenCode$inboundSchema: z.ZodNativeEnum< typeof ForbiddenCode > = z.nativeEnum(ForbiddenCode); - /** @internal */ export const ForbiddenCode$outboundSchema: z.ZodNativeEnum< typeof ForbiddenCode > = ForbiddenCode$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ForbiddenCode$ { - /** @deprecated use `ForbiddenCode$inboundSchema` instead. */ - export const inboundSchema = ForbiddenCode$inboundSchema; - /** @deprecated use `ForbiddenCode$outboundSchema` instead. */ - export const outboundSchema = ForbiddenCode$outboundSchema; -} - /** @internal */ export const ForbiddenErrorCode$inboundSchema: z.ZodNativeEnum< typeof ForbiddenErrorCode > = z.nativeEnum(ForbiddenErrorCode); - /** @internal */ export const ForbiddenErrorCode$outboundSchema: z.ZodNativeEnum< typeof ForbiddenErrorCode > = ForbiddenErrorCode$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ForbiddenErrorCode$ { - /** @deprecated use `ForbiddenErrorCode$inboundSchema` instead. */ - export const inboundSchema = ForbiddenErrorCode$inboundSchema; - /** @deprecated use `ForbiddenErrorCode$outboundSchema` instead. */ - export const outboundSchema = ForbiddenErrorCode$outboundSchema; -} - /** @internal */ export const ForbiddenError$inboundSchema: z.ZodType< ForbiddenError, @@ -180,7 +156,6 @@ export const ForbiddenError$inboundSchema: z.ZodType< code: ForbiddenErrorCode$inboundSchema, message: z.string(), }); - /** @internal */ export type ForbiddenError$Outbound = { code: string; @@ -197,23 +172,9 @@ export const ForbiddenError$outboundSchema: z.ZodType< message: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace ForbiddenError$ { - /** @deprecated use `ForbiddenError$inboundSchema` instead. */ - export const inboundSchema = ForbiddenError$inboundSchema; - /** @deprecated use `ForbiddenError$outboundSchema` instead. */ - export const outboundSchema = ForbiddenError$outboundSchema; - /** @deprecated use `ForbiddenError$Outbound` instead. */ - export type Outbound = ForbiddenError$Outbound; -} - export function forbiddenErrorToJSON(forbiddenError: ForbiddenError): string { return JSON.stringify(ForbiddenError$outboundSchema.parse(forbiddenError)); } - export function forbiddenErrorFromJSON( jsonString: string, ): SafeParseResult { @@ -276,16 +237,3 @@ export const Forbidden$outboundSchema: z.ZodType< code: ForbiddenCode$outboundSchema, error: z.lazy(() => ForbiddenError$outboundSchema), })); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Forbidden$ { - /** @deprecated use `Forbidden$inboundSchema` instead. */ - export const inboundSchema = Forbidden$inboundSchema; - /** @deprecated use `Forbidden$outboundSchema` instead. */ - export const outboundSchema = Forbidden$outboundSchema; - /** @deprecated use `Forbidden$Outbound` instead. */ - export type Outbound = Forbidden$Outbound; -} diff --git a/src/models/errors/index.ts b/src/models/errors/index.ts index 8e85807a..cd108d51 100644 --- a/src/models/errors/index.ts +++ b/src/models/errors/index.ts @@ -6,6 +6,7 @@ export * from "./apierror.js"; export * from "./badrequest.js"; export * from "./forbidden.js"; export * from "./httpclienterrors.js"; +export * from "./inkeepanalyticserror.js"; export * from "./internalservererror.js"; export * from "./notfound.js"; export * from "./responsevalidationerror.js"; diff --git a/src/models/errors/internalservererror.ts b/src/models/errors/internalservererror.ts index 83d70f42..9f2d548c 100644 --- a/src/models/errors/internalservererror.ts +++ b/src/models/errors/internalservererror.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -137,44 +137,20 @@ export class InternalServerError extends InkeepAnalyticsError { export const InternalServerErrorCode$inboundSchema: z.ZodNativeEnum< typeof InternalServerErrorCode > = z.nativeEnum(InternalServerErrorCode); - /** @internal */ export const InternalServerErrorCode$outboundSchema: z.ZodNativeEnum< typeof InternalServerErrorCode > = InternalServerErrorCode$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace InternalServerErrorCode$ { - /** @deprecated use `InternalServerErrorCode$inboundSchema` instead. */ - export const inboundSchema = InternalServerErrorCode$inboundSchema; - /** @deprecated use `InternalServerErrorCode$outboundSchema` instead. */ - export const outboundSchema = InternalServerErrorCode$outboundSchema; -} - /** @internal */ export const InternalServerErrorErrorCode$inboundSchema: z.ZodNativeEnum< typeof InternalServerErrorErrorCode > = z.nativeEnum(InternalServerErrorErrorCode); - /** @internal */ export const InternalServerErrorErrorCode$outboundSchema: z.ZodNativeEnum< typeof InternalServerErrorErrorCode > = InternalServerErrorErrorCode$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace InternalServerErrorErrorCode$ { - /** @deprecated use `InternalServerErrorErrorCode$inboundSchema` instead. */ - export const inboundSchema = InternalServerErrorErrorCode$inboundSchema; - /** @deprecated use `InternalServerErrorErrorCode$outboundSchema` instead. */ - export const outboundSchema = InternalServerErrorErrorCode$outboundSchema; -} - /** @internal */ export const InternalServerErrorError$inboundSchema: z.ZodType< InternalServerErrorError, @@ -184,7 +160,6 @@ export const InternalServerErrorError$inboundSchema: z.ZodType< code: InternalServerErrorErrorCode$inboundSchema, message: z.string(), }); - /** @internal */ export type InternalServerErrorError$Outbound = { code: string; @@ -201,19 +176,6 @@ export const InternalServerErrorError$outboundSchema: z.ZodType< message: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace InternalServerErrorError$ { - /** @deprecated use `InternalServerErrorError$inboundSchema` instead. */ - export const inboundSchema = InternalServerErrorError$inboundSchema; - /** @deprecated use `InternalServerErrorError$outboundSchema` instead. */ - export const outboundSchema = InternalServerErrorError$outboundSchema; - /** @deprecated use `InternalServerErrorError$Outbound` instead. */ - export type Outbound = InternalServerErrorError$Outbound; -} - export function internalServerErrorErrorToJSON( internalServerErrorError: InternalServerErrorError, ): string { @@ -221,7 +183,6 @@ export function internalServerErrorErrorToJSON( InternalServerErrorError$outboundSchema.parse(internalServerErrorError), ); } - export function internalServerErrorErrorFromJSON( jsonString: string, ): SafeParseResult { @@ -284,16 +245,3 @@ export const InternalServerError$outboundSchema: z.ZodType< code: InternalServerErrorCode$outboundSchema, error: z.lazy(() => InternalServerErrorError$outboundSchema), })); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace InternalServerError$ { - /** @deprecated use `InternalServerError$inboundSchema` instead. */ - export const inboundSchema = InternalServerError$inboundSchema; - /** @deprecated use `InternalServerError$outboundSchema` instead. */ - export const outboundSchema = InternalServerError$outboundSchema; - /** @deprecated use `InternalServerError$Outbound` instead. */ - export type Outbound = InternalServerError$Outbound; -} diff --git a/src/models/errors/notfound.ts b/src/models/errors/notfound.ts index 956c789b..f44d313f 100644 --- a/src/models/errors/notfound.ts +++ b/src/models/errors/notfound.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -132,43 +132,19 @@ export class NotFound extends InkeepAnalyticsError { /** @internal */ export const NotFoundCode$inboundSchema: z.ZodNativeEnum = z.nativeEnum(NotFoundCode); - /** @internal */ export const NotFoundCode$outboundSchema: z.ZodNativeEnum = NotFoundCode$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace NotFoundCode$ { - /** @deprecated use `NotFoundCode$inboundSchema` instead. */ - export const inboundSchema = NotFoundCode$inboundSchema; - /** @deprecated use `NotFoundCode$outboundSchema` instead. */ - export const outboundSchema = NotFoundCode$outboundSchema; -} - /** @internal */ export const NotFoundErrorCode$inboundSchema: z.ZodNativeEnum< typeof NotFoundErrorCode > = z.nativeEnum(NotFoundErrorCode); - /** @internal */ export const NotFoundErrorCode$outboundSchema: z.ZodNativeEnum< typeof NotFoundErrorCode > = NotFoundErrorCode$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace NotFoundErrorCode$ { - /** @deprecated use `NotFoundErrorCode$inboundSchema` instead. */ - export const inboundSchema = NotFoundErrorCode$inboundSchema; - /** @deprecated use `NotFoundErrorCode$outboundSchema` instead. */ - export const outboundSchema = NotFoundErrorCode$outboundSchema; -} - /** @internal */ export const NotFoundError$inboundSchema: z.ZodType< NotFoundError, @@ -178,7 +154,6 @@ export const NotFoundError$inboundSchema: z.ZodType< code: NotFoundErrorCode$inboundSchema, message: z.string(), }); - /** @internal */ export type NotFoundError$Outbound = { code: string; @@ -195,23 +170,9 @@ export const NotFoundError$outboundSchema: z.ZodType< message: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace NotFoundError$ { - /** @deprecated use `NotFoundError$inboundSchema` instead. */ - export const inboundSchema = NotFoundError$inboundSchema; - /** @deprecated use `NotFoundError$outboundSchema` instead. */ - export const outboundSchema = NotFoundError$outboundSchema; - /** @deprecated use `NotFoundError$Outbound` instead. */ - export type Outbound = NotFoundError$Outbound; -} - export function notFoundErrorToJSON(notFoundError: NotFoundError): string { return JSON.stringify(NotFoundError$outboundSchema.parse(notFoundError)); } - export function notFoundErrorFromJSON( jsonString: string, ): SafeParseResult { @@ -274,16 +235,3 @@ export const NotFound$outboundSchema: z.ZodType< code: NotFoundCode$outboundSchema, error: z.lazy(() => NotFoundError$outboundSchema), })); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace NotFound$ { - /** @deprecated use `NotFound$inboundSchema` instead. */ - export const inboundSchema = NotFound$inboundSchema; - /** @deprecated use `NotFound$outboundSchema` instead. */ - export const outboundSchema = NotFound$outboundSchema; - /** @deprecated use `NotFound$Outbound` instead. */ - export type Outbound = NotFound$Outbound; -} diff --git a/src/models/errors/responsevalidationerror.ts b/src/models/errors/responsevalidationerror.ts index 5e3ad455..39de82ef 100644 --- a/src/models/errors/responsevalidationerror.ts +++ b/src/models/errors/responsevalidationerror.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { InkeepAnalyticsError } from "./inkeepanalyticserror.js"; import { formatZodError } from "./sdkvalidationerror.js"; diff --git a/src/models/errors/sdkvalidationerror.ts b/src/models/errors/sdkvalidationerror.ts index 37face8a..6826e120 100644 --- a/src/models/errors/sdkvalidationerror.ts +++ b/src/models/errors/sdkvalidationerror.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; export class SDKValidationError extends Error { /** diff --git a/src/models/errors/unauthorized.ts b/src/models/errors/unauthorized.ts index 8e250ae9..5942bbad 100644 --- a/src/models/errors/unauthorized.ts +++ b/src/models/errors/unauthorized.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -133,44 +133,20 @@ export class Unauthorized extends InkeepAnalyticsError { export const UnauthorizedCode$inboundSchema: z.ZodNativeEnum< typeof UnauthorizedCode > = z.nativeEnum(UnauthorizedCode); - /** @internal */ export const UnauthorizedCode$outboundSchema: z.ZodNativeEnum< typeof UnauthorizedCode > = UnauthorizedCode$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UnauthorizedCode$ { - /** @deprecated use `UnauthorizedCode$inboundSchema` instead. */ - export const inboundSchema = UnauthorizedCode$inboundSchema; - /** @deprecated use `UnauthorizedCode$outboundSchema` instead. */ - export const outboundSchema = UnauthorizedCode$outboundSchema; -} - /** @internal */ export const UnauthorizedErrorCode$inboundSchema: z.ZodNativeEnum< typeof UnauthorizedErrorCode > = z.nativeEnum(UnauthorizedErrorCode); - /** @internal */ export const UnauthorizedErrorCode$outboundSchema: z.ZodNativeEnum< typeof UnauthorizedErrorCode > = UnauthorizedErrorCode$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UnauthorizedErrorCode$ { - /** @deprecated use `UnauthorizedErrorCode$inboundSchema` instead. */ - export const inboundSchema = UnauthorizedErrorCode$inboundSchema; - /** @deprecated use `UnauthorizedErrorCode$outboundSchema` instead. */ - export const outboundSchema = UnauthorizedErrorCode$outboundSchema; -} - /** @internal */ export const UnauthorizedError$inboundSchema: z.ZodType< UnauthorizedError, @@ -180,7 +156,6 @@ export const UnauthorizedError$inboundSchema: z.ZodType< code: UnauthorizedErrorCode$inboundSchema, message: z.string(), }); - /** @internal */ export type UnauthorizedError$Outbound = { code: string; @@ -197,19 +172,6 @@ export const UnauthorizedError$outboundSchema: z.ZodType< message: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UnauthorizedError$ { - /** @deprecated use `UnauthorizedError$inboundSchema` instead. */ - export const inboundSchema = UnauthorizedError$inboundSchema; - /** @deprecated use `UnauthorizedError$outboundSchema` instead. */ - export const outboundSchema = UnauthorizedError$outboundSchema; - /** @deprecated use `UnauthorizedError$Outbound` instead. */ - export type Outbound = UnauthorizedError$Outbound; -} - export function unauthorizedErrorToJSON( unauthorizedError: UnauthorizedError, ): string { @@ -217,7 +179,6 @@ export function unauthorizedErrorToJSON( UnauthorizedError$outboundSchema.parse(unauthorizedError), ); } - export function unauthorizedErrorFromJSON( jsonString: string, ): SafeParseResult { @@ -280,16 +241,3 @@ export const Unauthorized$outboundSchema: z.ZodType< code: UnauthorizedCode$outboundSchema, error: z.lazy(() => UnauthorizedError$outboundSchema), })); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Unauthorized$ { - /** @deprecated use `Unauthorized$inboundSchema` instead. */ - export const inboundSchema = Unauthorized$inboundSchema; - /** @deprecated use `Unauthorized$outboundSchema` instead. */ - export const outboundSchema = Unauthorized$outboundSchema; - /** @deprecated use `Unauthorized$Outbound` instead. */ - export type Outbound = Unauthorized$Outbound; -} diff --git a/src/models/errors/unprocessableentity.ts b/src/models/errors/unprocessableentity.ts index 167f0b9e..25e0b462 100644 --- a/src/models/errors/unprocessableentity.ts +++ b/src/models/errors/unprocessableentity.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -137,44 +137,20 @@ export class UnprocessableEntity extends InkeepAnalyticsError { export const UnprocessableEntityCode$inboundSchema: z.ZodNativeEnum< typeof UnprocessableEntityCode > = z.nativeEnum(UnprocessableEntityCode); - /** @internal */ export const UnprocessableEntityCode$outboundSchema: z.ZodNativeEnum< typeof UnprocessableEntityCode > = UnprocessableEntityCode$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UnprocessableEntityCode$ { - /** @deprecated use `UnprocessableEntityCode$inboundSchema` instead. */ - export const inboundSchema = UnprocessableEntityCode$inboundSchema; - /** @deprecated use `UnprocessableEntityCode$outboundSchema` instead. */ - export const outboundSchema = UnprocessableEntityCode$outboundSchema; -} - /** @internal */ export const UnprocessableEntityErrorCode$inboundSchema: z.ZodNativeEnum< typeof UnprocessableEntityErrorCode > = z.nativeEnum(UnprocessableEntityErrorCode); - /** @internal */ export const UnprocessableEntityErrorCode$outboundSchema: z.ZodNativeEnum< typeof UnprocessableEntityErrorCode > = UnprocessableEntityErrorCode$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UnprocessableEntityErrorCode$ { - /** @deprecated use `UnprocessableEntityErrorCode$inboundSchema` instead. */ - export const inboundSchema = UnprocessableEntityErrorCode$inboundSchema; - /** @deprecated use `UnprocessableEntityErrorCode$outboundSchema` instead. */ - export const outboundSchema = UnprocessableEntityErrorCode$outboundSchema; -} - /** @internal */ export const UnprocessableEntityError$inboundSchema: z.ZodType< UnprocessableEntityError, @@ -184,7 +160,6 @@ export const UnprocessableEntityError$inboundSchema: z.ZodType< code: UnprocessableEntityErrorCode$inboundSchema, message: z.string(), }); - /** @internal */ export type UnprocessableEntityError$Outbound = { code: string; @@ -201,19 +176,6 @@ export const UnprocessableEntityError$outboundSchema: z.ZodType< message: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UnprocessableEntityError$ { - /** @deprecated use `UnprocessableEntityError$inboundSchema` instead. */ - export const inboundSchema = UnprocessableEntityError$inboundSchema; - /** @deprecated use `UnprocessableEntityError$outboundSchema` instead. */ - export const outboundSchema = UnprocessableEntityError$outboundSchema; - /** @deprecated use `UnprocessableEntityError$Outbound` instead. */ - export type Outbound = UnprocessableEntityError$Outbound; -} - export function unprocessableEntityErrorToJSON( unprocessableEntityError: UnprocessableEntityError, ): string { @@ -221,7 +183,6 @@ export function unprocessableEntityErrorToJSON( UnprocessableEntityError$outboundSchema.parse(unprocessableEntityError), ); } - export function unprocessableEntityErrorFromJSON( jsonString: string, ): SafeParseResult { @@ -284,16 +245,3 @@ export const UnprocessableEntity$outboundSchema: z.ZodType< code: UnprocessableEntityCode$outboundSchema, error: z.lazy(() => UnprocessableEntityError$outboundSchema), })); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UnprocessableEntity$ { - /** @deprecated use `UnprocessableEntity$inboundSchema` instead. */ - export const inboundSchema = UnprocessableEntity$inboundSchema; - /** @deprecated use `UnprocessableEntity$outboundSchema` instead. */ - export const outboundSchema = UnprocessableEntity$outboundSchema; - /** @deprecated use `UnprocessableEntity$Outbound` instead. */ - export type Outbound = UnprocessableEntity$Outbound; -} diff --git a/src/models/operations/deleteconversation.ts b/src/models/operations/deleteconversation.ts index ad3777fc..ae977463 100644 --- a/src/models/operations/deleteconversation.ts +++ b/src/models/operations/deleteconversation.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -39,7 +39,6 @@ export const DeleteConversationSecurity$inboundSchema: z.ZodType< "ApiIntegrationKey": "apiIntegrationKey", }); }); - /** @internal */ export type DeleteConversationSecurity$Outbound = { WebIntegrationKey?: string | undefined; @@ -61,19 +60,6 @@ export const DeleteConversationSecurity$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeleteConversationSecurity$ { - /** @deprecated use `DeleteConversationSecurity$inboundSchema` instead. */ - export const inboundSchema = DeleteConversationSecurity$inboundSchema; - /** @deprecated use `DeleteConversationSecurity$outboundSchema` instead. */ - export const outboundSchema = DeleteConversationSecurity$outboundSchema; - /** @deprecated use `DeleteConversationSecurity$Outbound` instead. */ - export type Outbound = DeleteConversationSecurity$Outbound; -} - export function deleteConversationSecurityToJSON( deleteConversationSecurity: DeleteConversationSecurity, ): string { @@ -81,7 +67,6 @@ export function deleteConversationSecurityToJSON( DeleteConversationSecurity$outboundSchema.parse(deleteConversationSecurity), ); } - export function deleteConversationSecurityFromJSON( jsonString: string, ): SafeParseResult { @@ -100,7 +85,6 @@ export const DeleteConversationRequest$inboundSchema: z.ZodType< > = z.object({ id: z.string(), }); - /** @internal */ export type DeleteConversationRequest$Outbound = { id: string; @@ -115,19 +99,6 @@ export const DeleteConversationRequest$outboundSchema: z.ZodType< id: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeleteConversationRequest$ { - /** @deprecated use `DeleteConversationRequest$inboundSchema` instead. */ - export const inboundSchema = DeleteConversationRequest$inboundSchema; - /** @deprecated use `DeleteConversationRequest$outboundSchema` instead. */ - export const outboundSchema = DeleteConversationRequest$outboundSchema; - /** @deprecated use `DeleteConversationRequest$Outbound` instead. */ - export type Outbound = DeleteConversationRequest$Outbound; -} - export function deleteConversationRequestToJSON( deleteConversationRequest: DeleteConversationRequest, ): string { @@ -135,7 +106,6 @@ export function deleteConversationRequestToJSON( DeleteConversationRequest$outboundSchema.parse(deleteConversationRequest), ); } - export function deleteConversationRequestFromJSON( jsonString: string, ): SafeParseResult { @@ -155,7 +125,6 @@ export const DeleteConversationResponseBody$inboundSchema: z.ZodType< success: z.boolean(), message: z.string(), }); - /** @internal */ export type DeleteConversationResponseBody$Outbound = { success: boolean; @@ -172,19 +141,6 @@ export const DeleteConversationResponseBody$outboundSchema: z.ZodType< message: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeleteConversationResponseBody$ { - /** @deprecated use `DeleteConversationResponseBody$inboundSchema` instead. */ - export const inboundSchema = DeleteConversationResponseBody$inboundSchema; - /** @deprecated use `DeleteConversationResponseBody$outboundSchema` instead. */ - export const outboundSchema = DeleteConversationResponseBody$outboundSchema; - /** @deprecated use `DeleteConversationResponseBody$Outbound` instead. */ - export type Outbound = DeleteConversationResponseBody$Outbound; -} - export function deleteConversationResponseBodyToJSON( deleteConversationResponseBody: DeleteConversationResponseBody, ): string { @@ -194,7 +150,6 @@ export function deleteConversationResponseBodyToJSON( ), ); } - export function deleteConversationResponseBodyFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/deletefeedbackbyid.ts b/src/models/operations/deletefeedbackbyid.ts index 13a49f55..49f45f42 100644 --- a/src/models/operations/deletefeedbackbyid.ts +++ b/src/models/operations/deletefeedbackbyid.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -27,7 +27,6 @@ export const DeleteFeedbackByIdRequest$inboundSchema: z.ZodType< > = z.object({ id: z.string(), }); - /** @internal */ export type DeleteFeedbackByIdRequest$Outbound = { id: string; @@ -42,19 +41,6 @@ export const DeleteFeedbackByIdRequest$outboundSchema: z.ZodType< id: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeleteFeedbackByIdRequest$ { - /** @deprecated use `DeleteFeedbackByIdRequest$inboundSchema` instead. */ - export const inboundSchema = DeleteFeedbackByIdRequest$inboundSchema; - /** @deprecated use `DeleteFeedbackByIdRequest$outboundSchema` instead. */ - export const outboundSchema = DeleteFeedbackByIdRequest$outboundSchema; - /** @deprecated use `DeleteFeedbackByIdRequest$Outbound` instead. */ - export type Outbound = DeleteFeedbackByIdRequest$Outbound; -} - export function deleteFeedbackByIdRequestToJSON( deleteFeedbackByIdRequest: DeleteFeedbackByIdRequest, ): string { @@ -62,7 +48,6 @@ export function deleteFeedbackByIdRequestToJSON( DeleteFeedbackByIdRequest$outboundSchema.parse(deleteFeedbackByIdRequest), ); } - export function deleteFeedbackByIdRequestFromJSON( jsonString: string, ): SafeParseResult { @@ -82,7 +67,6 @@ export const DeleteFeedbackByIdResponseBody$inboundSchema: z.ZodType< success: z.boolean(), message: z.string(), }); - /** @internal */ export type DeleteFeedbackByIdResponseBody$Outbound = { success: boolean; @@ -99,19 +83,6 @@ export const DeleteFeedbackByIdResponseBody$outboundSchema: z.ZodType< message: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace DeleteFeedbackByIdResponseBody$ { - /** @deprecated use `DeleteFeedbackByIdResponseBody$inboundSchema` instead. */ - export const inboundSchema = DeleteFeedbackByIdResponseBody$inboundSchema; - /** @deprecated use `DeleteFeedbackByIdResponseBody$outboundSchema` instead. */ - export const outboundSchema = DeleteFeedbackByIdResponseBody$outboundSchema; - /** @deprecated use `DeleteFeedbackByIdResponseBody$Outbound` instead. */ - export type Outbound = DeleteFeedbackByIdResponseBody$Outbound; -} - export function deleteFeedbackByIdResponseBodyToJSON( deleteFeedbackByIdResponseBody: DeleteFeedbackByIdResponseBody, ): string { @@ -121,7 +92,6 @@ export function deleteFeedbackByIdResponseBodyToJSON( ), ); } - export function deleteFeedbackByIdResponseBodyFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/getallconversation.ts b/src/models/operations/getallconversation.ts index 8acab22a..6d8fbec3 100644 --- a/src/models/operations/getallconversation.ts +++ b/src/models/operations/getallconversation.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import * as components from "../components/index.js"; @@ -32,7 +32,6 @@ export const GetAllConversationRequest$inboundSchema: z.ZodType< limit: z.nullable(z.number().int().default(20)), offset: z.nullable(z.number().int().default(0)), }); - /** @internal */ export type GetAllConversationRequest$Outbound = { limit: number | null; @@ -49,19 +48,6 @@ export const GetAllConversationRequest$outboundSchema: z.ZodType< offset: z.nullable(z.number().int().default(0)), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAllConversationRequest$ { - /** @deprecated use `GetAllConversationRequest$inboundSchema` instead. */ - export const inboundSchema = GetAllConversationRequest$inboundSchema; - /** @deprecated use `GetAllConversationRequest$outboundSchema` instead. */ - export const outboundSchema = GetAllConversationRequest$outboundSchema; - /** @deprecated use `GetAllConversationRequest$Outbound` instead. */ - export type Outbound = GetAllConversationRequest$Outbound; -} - export function getAllConversationRequestToJSON( getAllConversationRequest: GetAllConversationRequest, ): string { @@ -69,7 +55,6 @@ export function getAllConversationRequestToJSON( GetAllConversationRequest$outboundSchema.parse(getAllConversationRequest), ); } - export function getAllConversationRequestFromJSON( jsonString: string, ): SafeParseResult { @@ -91,7 +76,6 @@ export const GetAllConversationResponseBody$inboundSchema: z.ZodType< pageSize: z.number(), count: z.number(), }); - /** @internal */ export type GetAllConversationResponseBody$Outbound = { conversations: Array; @@ -112,19 +96,6 @@ export const GetAllConversationResponseBody$outboundSchema: z.ZodType< count: z.number(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAllConversationResponseBody$ { - /** @deprecated use `GetAllConversationResponseBody$inboundSchema` instead. */ - export const inboundSchema = GetAllConversationResponseBody$inboundSchema; - /** @deprecated use `GetAllConversationResponseBody$outboundSchema` instead. */ - export const outboundSchema = GetAllConversationResponseBody$outboundSchema; - /** @deprecated use `GetAllConversationResponseBody$Outbound` instead. */ - export type Outbound = GetAllConversationResponseBody$Outbound; -} - export function getAllConversationResponseBodyToJSON( getAllConversationResponseBody: GetAllConversationResponseBody, ): string { @@ -134,7 +105,6 @@ export function getAllConversationResponseBodyToJSON( ), ); } - export function getAllConversationResponseBodyFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/getallfeedback.ts b/src/models/operations/getallfeedback.ts index 4080840a..046463dc 100644 --- a/src/models/operations/getallfeedback.ts +++ b/src/models/operations/getallfeedback.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -21,7 +21,6 @@ export const GetAllFeedbackRequest$inboundSchema: z.ZodType< limit: z.nullable(z.number().int().default(10)), offset: z.nullable(z.number().int().default(0)), }); - /** @internal */ export type GetAllFeedbackRequest$Outbound = { limit: number | null; @@ -38,19 +37,6 @@ export const GetAllFeedbackRequest$outboundSchema: z.ZodType< offset: z.nullable(z.number().int().default(0)), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAllFeedbackRequest$ { - /** @deprecated use `GetAllFeedbackRequest$inboundSchema` instead. */ - export const inboundSchema = GetAllFeedbackRequest$inboundSchema; - /** @deprecated use `GetAllFeedbackRequest$outboundSchema` instead. */ - export const outboundSchema = GetAllFeedbackRequest$outboundSchema; - /** @deprecated use `GetAllFeedbackRequest$Outbound` instead. */ - export type Outbound = GetAllFeedbackRequest$Outbound; -} - export function getAllFeedbackRequestToJSON( getAllFeedbackRequest: GetAllFeedbackRequest, ): string { @@ -58,7 +44,6 @@ export function getAllFeedbackRequestToJSON( GetAllFeedbackRequest$outboundSchema.parse(getAllFeedbackRequest), ); } - export function getAllFeedbackRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/getconversation.ts b/src/models/operations/getconversation.ts index dcd1f3b1..05835c29 100644 --- a/src/models/operations/getconversation.ts +++ b/src/models/operations/getconversation.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -31,7 +31,6 @@ export const GetConversationSecurity$inboundSchema: z.ZodType< "ApiIntegrationKey": "apiIntegrationKey", }); }); - /** @internal */ export type GetConversationSecurity$Outbound = { WebIntegrationKey?: string | undefined; @@ -53,19 +52,6 @@ export const GetConversationSecurity$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetConversationSecurity$ { - /** @deprecated use `GetConversationSecurity$inboundSchema` instead. */ - export const inboundSchema = GetConversationSecurity$inboundSchema; - /** @deprecated use `GetConversationSecurity$outboundSchema` instead. */ - export const outboundSchema = GetConversationSecurity$outboundSchema; - /** @deprecated use `GetConversationSecurity$Outbound` instead. */ - export type Outbound = GetConversationSecurity$Outbound; -} - export function getConversationSecurityToJSON( getConversationSecurity: GetConversationSecurity, ): string { @@ -73,7 +59,6 @@ export function getConversationSecurityToJSON( GetConversationSecurity$outboundSchema.parse(getConversationSecurity), ); } - export function getConversationSecurityFromJSON( jsonString: string, ): SafeParseResult { @@ -92,7 +77,6 @@ export const GetConversationRequest$inboundSchema: z.ZodType< > = z.object({ id: z.string(), }); - /** @internal */ export type GetConversationRequest$Outbound = { id: string; @@ -107,19 +91,6 @@ export const GetConversationRequest$outboundSchema: z.ZodType< id: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetConversationRequest$ { - /** @deprecated use `GetConversationRequest$inboundSchema` instead. */ - export const inboundSchema = GetConversationRequest$inboundSchema; - /** @deprecated use `GetConversationRequest$outboundSchema` instead. */ - export const outboundSchema = GetConversationRequest$outboundSchema; - /** @deprecated use `GetConversationRequest$Outbound` instead. */ - export type Outbound = GetConversationRequest$Outbound; -} - export function getConversationRequestToJSON( getConversationRequest: GetConversationRequest, ): string { @@ -127,7 +98,6 @@ export function getConversationRequestToJSON( GetConversationRequest$outboundSchema.parse(getConversationRequest), ); } - export function getConversationRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/getconversationbyexternalid.ts b/src/models/operations/getconversationbyexternalid.ts index 105fe645..8c229891 100644 --- a/src/models/operations/getconversationbyexternalid.ts +++ b/src/models/operations/getconversationbyexternalid.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -19,7 +19,6 @@ export const GetConversationByExternalIdRequest$inboundSchema: z.ZodType< > = z.object({ externalId: z.string(), }); - /** @internal */ export type GetConversationByExternalIdRequest$Outbound = { externalId: string; @@ -34,20 +33,6 @@ export const GetConversationByExternalIdRequest$outboundSchema: z.ZodType< externalId: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetConversationByExternalIdRequest$ { - /** @deprecated use `GetConversationByExternalIdRequest$inboundSchema` instead. */ - export const inboundSchema = GetConversationByExternalIdRequest$inboundSchema; - /** @deprecated use `GetConversationByExternalIdRequest$outboundSchema` instead. */ - export const outboundSchema = - GetConversationByExternalIdRequest$outboundSchema; - /** @deprecated use `GetConversationByExternalIdRequest$Outbound` instead. */ - export type Outbound = GetConversationByExternalIdRequest$Outbound; -} - export function getConversationByExternalIdRequestToJSON( getConversationByExternalIdRequest: GetConversationByExternalIdRequest, ): string { @@ -57,7 +42,6 @@ export function getConversationByExternalIdRequestToJSON( ), ); } - export function getConversationByExternalIdRequestFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/getfeedbackbyid.ts b/src/models/operations/getfeedbackbyid.ts index e57de637..17add605 100644 --- a/src/models/operations/getfeedbackbyid.ts +++ b/src/models/operations/getfeedbackbyid.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { collectExtraKeys as collectExtraKeys$, @@ -62,7 +62,7 @@ export type GetFeedbackByIdUserProperties = { * The type of user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. */ userType?: string | null | undefined; - additionalProperties?: { [k: string]: any }; + additionalProperties?: { [k: string]: any } | undefined; }; export const GetFeedbackByIdFeedbackType = { @@ -112,7 +112,6 @@ export const GetFeedbackByIdRequest$inboundSchema: z.ZodType< > = z.object({ id: z.string(), }); - /** @internal */ export type GetFeedbackByIdRequest$Outbound = { id: string; @@ -127,19 +126,6 @@ export const GetFeedbackByIdRequest$outboundSchema: z.ZodType< id: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetFeedbackByIdRequest$ { - /** @deprecated use `GetFeedbackByIdRequest$inboundSchema` instead. */ - export const inboundSchema = GetFeedbackByIdRequest$inboundSchema; - /** @deprecated use `GetFeedbackByIdRequest$outboundSchema` instead. */ - export const outboundSchema = GetFeedbackByIdRequest$outboundSchema; - /** @deprecated use `GetFeedbackByIdRequest$Outbound` instead. */ - export type Outbound = GetFeedbackByIdRequest$Outbound; -} - export function getFeedbackByIdRequestToJSON( getFeedbackByIdRequest: GetFeedbackByIdRequest, ): string { @@ -147,7 +133,6 @@ export function getFeedbackByIdRequestToJSON( GetFeedbackByIdRequest$outboundSchema.parse(getFeedbackByIdRequest), ); } - export function getFeedbackByIdRequestFromJSON( jsonString: string, ): SafeParseResult { @@ -162,23 +147,11 @@ export function getFeedbackByIdRequestFromJSON( export const GetFeedbackByIdType$inboundSchema: z.ZodNativeEnum< typeof GetFeedbackByIdType > = z.nativeEnum(GetFeedbackByIdType); - /** @internal */ export const GetFeedbackByIdType$outboundSchema: z.ZodNativeEnum< typeof GetFeedbackByIdType > = GetFeedbackByIdType$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetFeedbackByIdType$ { - /** @deprecated use `GetFeedbackByIdType$inboundSchema` instead. */ - export const inboundSchema = GetFeedbackByIdType$inboundSchema; - /** @deprecated use `GetFeedbackByIdType$outboundSchema` instead. */ - export const outboundSchema = GetFeedbackByIdType$outboundSchema; -} - /** @internal */ export const GetFeedbackByIdReasons$inboundSchema: z.ZodType< GetFeedbackByIdReasons, @@ -188,7 +161,6 @@ export const GetFeedbackByIdReasons$inboundSchema: z.ZodType< label: z.string(), details: z.string(), }); - /** @internal */ export type GetFeedbackByIdReasons$Outbound = { label: string; @@ -205,19 +177,6 @@ export const GetFeedbackByIdReasons$outboundSchema: z.ZodType< details: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetFeedbackByIdReasons$ { - /** @deprecated use `GetFeedbackByIdReasons$inboundSchema` instead. */ - export const inboundSchema = GetFeedbackByIdReasons$inboundSchema; - /** @deprecated use `GetFeedbackByIdReasons$outboundSchema` instead. */ - export const outboundSchema = GetFeedbackByIdReasons$outboundSchema; - /** @deprecated use `GetFeedbackByIdReasons$Outbound` instead. */ - export type Outbound = GetFeedbackByIdReasons$Outbound; -} - export function getFeedbackByIdReasonsToJSON( getFeedbackByIdReasons: GetFeedbackByIdReasons, ): string { @@ -225,7 +184,6 @@ export function getFeedbackByIdReasonsToJSON( GetFeedbackByIdReasons$outboundSchema.parse(getFeedbackByIdReasons), ); } - export function getFeedbackByIdReasonsFromJSON( jsonString: string, ): SafeParseResult { @@ -242,7 +200,6 @@ export const GetFeedbackByIdId$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.union([z.string(), z.number()]); - /** @internal */ export type GetFeedbackByIdId$Outbound = string | number; @@ -253,19 +210,6 @@ export const GetFeedbackByIdId$outboundSchema: z.ZodType< GetFeedbackByIdId > = z.union([z.string(), z.number()]); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetFeedbackByIdId$ { - /** @deprecated use `GetFeedbackByIdId$inboundSchema` instead. */ - export const inboundSchema = GetFeedbackByIdId$inboundSchema; - /** @deprecated use `GetFeedbackByIdId$outboundSchema` instead. */ - export const outboundSchema = GetFeedbackByIdId$outboundSchema; - /** @deprecated use `GetFeedbackByIdId$Outbound` instead. */ - export type Outbound = GetFeedbackByIdId$Outbound; -} - export function getFeedbackByIdIdToJSON( getFeedbackByIdId: GetFeedbackByIdId, ): string { @@ -273,7 +217,6 @@ export function getFeedbackByIdIdToJSON( GetFeedbackByIdId$outboundSchema.parse(getFeedbackByIdId), ); } - export function getFeedbackByIdIdFromJSON( jsonString: string, ): SafeParseResult { @@ -290,7 +233,6 @@ export const GetFeedbackByIdUserId$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.union([z.string(), z.number()]); - /** @internal */ export type GetFeedbackByIdUserId$Outbound = string | number; @@ -301,19 +243,6 @@ export const GetFeedbackByIdUserId$outboundSchema: z.ZodType< GetFeedbackByIdUserId > = z.union([z.string(), z.number()]); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetFeedbackByIdUserId$ { - /** @deprecated use `GetFeedbackByIdUserId$inboundSchema` instead. */ - export const inboundSchema = GetFeedbackByIdUserId$inboundSchema; - /** @deprecated use `GetFeedbackByIdUserId$outboundSchema` instead. */ - export const outboundSchema = GetFeedbackByIdUserId$outboundSchema; - /** @deprecated use `GetFeedbackByIdUserId$Outbound` instead. */ - export type Outbound = GetFeedbackByIdUserId$Outbound; -} - export function getFeedbackByIdUserIdToJSON( getFeedbackByIdUserId: GetFeedbackByIdUserId, ): string { @@ -321,7 +250,6 @@ export function getFeedbackByIdUserIdToJSON( GetFeedbackByIdUserId$outboundSchema.parse(getFeedbackByIdUserId), ); } - export function getFeedbackByIdUserIdFromJSON( jsonString: string, ): SafeParseResult { @@ -348,7 +276,6 @@ export const GetFeedbackByIdUserProperties$inboundSchema: z.ZodType< "additionalProperties", true, ); - /** @internal */ export type GetFeedbackByIdUserProperties$Outbound = { id?: string | number | null | undefined; @@ -370,7 +297,7 @@ export const GetFeedbackByIdUserProperties$outboundSchema: z.ZodType< userId: z.nullable(z.union([z.string(), z.number()])).optional(), supportAgentName: z.nullable(z.string()).optional(), userType: z.nullable(z.string()).optional(), - additionalProperties: z.record(z.any()), + additionalProperties: z.record(z.any()).optional(), }).transform((v) => { return { ...v.additionalProperties, @@ -380,19 +307,6 @@ export const GetFeedbackByIdUserProperties$outboundSchema: z.ZodType< }; }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetFeedbackByIdUserProperties$ { - /** @deprecated use `GetFeedbackByIdUserProperties$inboundSchema` instead. */ - export const inboundSchema = GetFeedbackByIdUserProperties$inboundSchema; - /** @deprecated use `GetFeedbackByIdUserProperties$outboundSchema` instead. */ - export const outboundSchema = GetFeedbackByIdUserProperties$outboundSchema; - /** @deprecated use `GetFeedbackByIdUserProperties$Outbound` instead. */ - export type Outbound = GetFeedbackByIdUserProperties$Outbound; -} - export function getFeedbackByIdUserPropertiesToJSON( getFeedbackByIdUserProperties: GetFeedbackByIdUserProperties, ): string { @@ -402,7 +316,6 @@ export function getFeedbackByIdUserPropertiesToJSON( ), ); } - export function getFeedbackByIdUserPropertiesFromJSON( jsonString: string, ): SafeParseResult { @@ -417,23 +330,11 @@ export function getFeedbackByIdUserPropertiesFromJSON( export const GetFeedbackByIdFeedbackType$inboundSchema: z.ZodNativeEnum< typeof GetFeedbackByIdFeedbackType > = z.nativeEnum(GetFeedbackByIdFeedbackType); - /** @internal */ export const GetFeedbackByIdFeedbackType$outboundSchema: z.ZodNativeEnum< typeof GetFeedbackByIdFeedbackType > = GetFeedbackByIdFeedbackType$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetFeedbackByIdFeedbackType$ { - /** @deprecated use `GetFeedbackByIdFeedbackType$inboundSchema` instead. */ - export const inboundSchema = GetFeedbackByIdFeedbackType$inboundSchema; - /** @deprecated use `GetFeedbackByIdFeedbackType$outboundSchema` instead. */ - export const outboundSchema = GetFeedbackByIdFeedbackType$outboundSchema; -} - /** @internal */ export const GetFeedbackByIdSources$inboundSchema: z.ZodType< GetFeedbackByIdSources, @@ -444,7 +345,6 @@ export const GetFeedbackByIdSources$inboundSchema: z.ZodType< title: z.nullable(z.string()).optional(), url: z.nullable(z.string()).optional(), }); - /** @internal */ export type GetFeedbackByIdSources$Outbound = { type: string | null; @@ -463,19 +363,6 @@ export const GetFeedbackByIdSources$outboundSchema: z.ZodType< url: z.nullable(z.string()).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetFeedbackByIdSources$ { - /** @deprecated use `GetFeedbackByIdSources$inboundSchema` instead. */ - export const inboundSchema = GetFeedbackByIdSources$inboundSchema; - /** @deprecated use `GetFeedbackByIdSources$outboundSchema` instead. */ - export const outboundSchema = GetFeedbackByIdSources$outboundSchema; - /** @deprecated use `GetFeedbackByIdSources$Outbound` instead. */ - export type Outbound = GetFeedbackByIdSources$Outbound; -} - export function getFeedbackByIdSourcesToJSON( getFeedbackByIdSources: GetFeedbackByIdSources, ): string { @@ -483,7 +370,6 @@ export function getFeedbackByIdSourcesToJSON( GetFeedbackByIdSources$outboundSchema.parse(getFeedbackByIdSources), ); } - export function getFeedbackByIdSourcesFromJSON( jsonString: string, ): SafeParseResult { @@ -519,7 +405,6 @@ export const GetFeedbackByIdResponseBody$inboundSchema: z.ZodType< conversation: components.Conversation$inboundSchema, message: components.Message$inboundSchema, }); - /** @internal */ export type GetFeedbackByIdResponseBody$Outbound = { id: string; @@ -562,19 +447,6 @@ export const GetFeedbackByIdResponseBody$outboundSchema: z.ZodType< message: components.Message$outboundSchema, }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetFeedbackByIdResponseBody$ { - /** @deprecated use `GetFeedbackByIdResponseBody$inboundSchema` instead. */ - export const inboundSchema = GetFeedbackByIdResponseBody$inboundSchema; - /** @deprecated use `GetFeedbackByIdResponseBody$outboundSchema` instead. */ - export const outboundSchema = GetFeedbackByIdResponseBody$outboundSchema; - /** @deprecated use `GetFeedbackByIdResponseBody$Outbound` instead. */ - export type Outbound = GetFeedbackByIdResponseBody$Outbound; -} - export function getFeedbackByIdResponseBodyToJSON( getFeedbackByIdResponseBody: GetFeedbackByIdResponseBody, ): string { @@ -584,7 +456,6 @@ export function getFeedbackByIdResponseBodyToJSON( ), ); } - export function getFeedbackByIdResponseBodyFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/logconversation.ts b/src/models/operations/logconversation.ts index 653711dc..4cea7c1e 100644 --- a/src/models/operations/logconversation.ts +++ b/src/models/operations/logconversation.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -27,7 +27,6 @@ export const LogConversationSecurity$inboundSchema: z.ZodType< "ApiIntegrationKey": "apiIntegrationKey", }); }); - /** @internal */ export type LogConversationSecurity$Outbound = { WebIntegrationKey?: string | undefined; @@ -49,19 +48,6 @@ export const LogConversationSecurity$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace LogConversationSecurity$ { - /** @deprecated use `LogConversationSecurity$inboundSchema` instead. */ - export const inboundSchema = LogConversationSecurity$inboundSchema; - /** @deprecated use `LogConversationSecurity$outboundSchema` instead. */ - export const outboundSchema = LogConversationSecurity$outboundSchema; - /** @deprecated use `LogConversationSecurity$Outbound` instead. */ - export type Outbound = LogConversationSecurity$Outbound; -} - export function logConversationSecurityToJSON( logConversationSecurity: LogConversationSecurity, ): string { @@ -69,7 +55,6 @@ export function logConversationSecurityToJSON( LogConversationSecurity$outboundSchema.parse(logConversationSecurity), ); } - export function logConversationSecurityFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/logevent.ts b/src/models/operations/logevent.ts index e92aa20a..0fb7090b 100644 --- a/src/models/operations/logevent.ts +++ b/src/models/operations/logevent.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -27,7 +27,6 @@ export const LogEventSecurity$inboundSchema: z.ZodType< "ApiIntegrationKey": "apiIntegrationKey", }); }); - /** @internal */ export type LogEventSecurity$Outbound = { WebIntegrationKey?: string | undefined; @@ -49,19 +48,6 @@ export const LogEventSecurity$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace LogEventSecurity$ { - /** @deprecated use `LogEventSecurity$inboundSchema` instead. */ - export const inboundSchema = LogEventSecurity$inboundSchema; - /** @deprecated use `LogEventSecurity$outboundSchema` instead. */ - export const outboundSchema = LogEventSecurity$outboundSchema; - /** @deprecated use `LogEventSecurity$Outbound` instead. */ - export type Outbound = LogEventSecurity$Outbound; -} - export function logEventSecurityToJSON( logEventSecurity: LogEventSecurity, ): string { @@ -69,7 +55,6 @@ export function logEventSecurityToJSON( LogEventSecurity$outboundSchema.parse(logEventSecurity), ); } - export function logEventSecurityFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/logfeedback.ts b/src/models/operations/logfeedback.ts index 45f4060b..0e804637 100644 --- a/src/models/operations/logfeedback.ts +++ b/src/models/operations/logfeedback.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { collectExtraKeys as collectExtraKeys$, @@ -57,7 +57,7 @@ export type UserProperties = { * The type of user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. */ userType?: string | null | undefined; - additionalProperties?: { [k: string]: any }; + additionalProperties?: { [k: string]: any } | undefined; }; export const LogFeedbackType = { @@ -148,7 +148,7 @@ export type LogFeedbackUserProperties = { * The type of user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. */ userType?: string | null | undefined; - additionalProperties?: { [k: string]: any }; + additionalProperties?: { [k: string]: any } | undefined; }; export const LogFeedbackFeedbackResponseType = { @@ -192,29 +192,16 @@ export type LogFeedbackResponseBody = { export const Type$inboundSchema: z.ZodNativeEnum = z.nativeEnum( Type, ); - /** @internal */ export const Type$outboundSchema: z.ZodNativeEnum = Type$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Type$ { - /** @deprecated use `Type$inboundSchema` instead. */ - export const inboundSchema = Type$inboundSchema; - /** @deprecated use `Type$outboundSchema` instead. */ - export const outboundSchema = Type$outboundSchema; -} - /** @internal */ export const Reasons$inboundSchema: z.ZodType = z.object({ label: z.string(), details: z.string(), }); - /** @internal */ export type Reasons$Outbound = { label: string; @@ -231,23 +218,9 @@ export const Reasons$outboundSchema: z.ZodType< details: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Reasons$ { - /** @deprecated use `Reasons$inboundSchema` instead. */ - export const inboundSchema = Reasons$inboundSchema; - /** @deprecated use `Reasons$outboundSchema` instead. */ - export const outboundSchema = Reasons$outboundSchema; - /** @deprecated use `Reasons$Outbound` instead. */ - export type Outbound = Reasons$Outbound; -} - export function reasonsToJSON(reasons: Reasons): string { return JSON.stringify(Reasons$outboundSchema.parse(reasons)); } - export function reasonsFromJSON( jsonString: string, ): SafeParseResult { @@ -263,7 +236,6 @@ export const Id$inboundSchema: z.ZodType = z.union([ z.string(), z.number(), ]); - /** @internal */ export type Id$Outbound = string | number; @@ -271,23 +243,9 @@ export type Id$Outbound = string | number; export const Id$outboundSchema: z.ZodType = z .union([z.string(), z.number()]); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Id$ { - /** @deprecated use `Id$inboundSchema` instead. */ - export const inboundSchema = Id$inboundSchema; - /** @deprecated use `Id$outboundSchema` instead. */ - export const outboundSchema = Id$outboundSchema; - /** @deprecated use `Id$Outbound` instead. */ - export type Outbound = Id$Outbound; -} - export function idToJSON(id: Id): string { return JSON.stringify(Id$outboundSchema.parse(id)); } - export function idFromJSON( jsonString: string, ): SafeParseResult { @@ -301,7 +259,6 @@ export function idFromJSON( /** @internal */ export const UserId$inboundSchema: z.ZodType = z .union([z.string(), z.number()]); - /** @internal */ export type UserId$Outbound = string | number; @@ -312,23 +269,9 @@ export const UserId$outboundSchema: z.ZodType< UserId > = z.union([z.string(), z.number()]); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UserId$ { - /** @deprecated use `UserId$inboundSchema` instead. */ - export const inboundSchema = UserId$inboundSchema; - /** @deprecated use `UserId$outboundSchema` instead. */ - export const outboundSchema = UserId$outboundSchema; - /** @deprecated use `UserId$Outbound` instead. */ - export type Outbound = UserId$Outbound; -} - export function userIdToJSON(userId: UserId): string { return JSON.stringify(UserId$outboundSchema.parse(userId)); } - export function userIdFromJSON( jsonString: string, ): SafeParseResult { @@ -355,7 +298,6 @@ export const UserProperties$inboundSchema: z.ZodType< "additionalProperties", true, ); - /** @internal */ export type UserProperties$Outbound = { id?: string | number | null | undefined; @@ -377,7 +319,7 @@ export const UserProperties$outboundSchema: z.ZodType< userId: z.nullable(z.union([z.string(), z.number()])).optional(), supportAgentName: z.nullable(z.string()).optional(), userType: z.nullable(z.string()).optional(), - additionalProperties: z.record(z.any()), + additionalProperties: z.record(z.any()).optional(), }).transform((v) => { return { ...v.additionalProperties, @@ -387,23 +329,9 @@ export const UserProperties$outboundSchema: z.ZodType< }; }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UserProperties$ { - /** @deprecated use `UserProperties$inboundSchema` instead. */ - export const inboundSchema = UserProperties$inboundSchema; - /** @deprecated use `UserProperties$outboundSchema` instead. */ - export const outboundSchema = UserProperties$outboundSchema; - /** @deprecated use `UserProperties$Outbound` instead. */ - export type Outbound = UserProperties$Outbound; -} - export function userPropertiesToJSON(userProperties: UserProperties): string { return JSON.stringify(UserProperties$outboundSchema.parse(userProperties)); } - export function userPropertiesFromJSON( jsonString: string, ): SafeParseResult { @@ -418,23 +346,11 @@ export function userPropertiesFromJSON( export const LogFeedbackType$inboundSchema: z.ZodNativeEnum< typeof LogFeedbackType > = z.nativeEnum(LogFeedbackType); - /** @internal */ export const LogFeedbackType$outboundSchema: z.ZodNativeEnum< typeof LogFeedbackType > = LogFeedbackType$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace LogFeedbackType$ { - /** @deprecated use `LogFeedbackType$inboundSchema` instead. */ - export const inboundSchema = LogFeedbackType$inboundSchema; - /** @deprecated use `LogFeedbackType$outboundSchema` instead. */ - export const outboundSchema = LogFeedbackType$outboundSchema; -} - /** @internal */ export const Sources$inboundSchema: z.ZodType = z.object({ @@ -442,7 +358,6 @@ export const Sources$inboundSchema: z.ZodType = title: z.nullable(z.string()).optional(), url: z.nullable(z.string()).optional(), }); - /** @internal */ export type Sources$Outbound = { type: string | null; @@ -461,23 +376,9 @@ export const Sources$outboundSchema: z.ZodType< url: z.nullable(z.string()).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Sources$ { - /** @deprecated use `Sources$inboundSchema` instead. */ - export const inboundSchema = Sources$inboundSchema; - /** @deprecated use `Sources$outboundSchema` instead. */ - export const outboundSchema = Sources$outboundSchema; - /** @deprecated use `Sources$Outbound` instead. */ - export type Outbound = Sources$Outbound; -} - export function sourcesToJSON(sources: Sources): string { return JSON.stringify(Sources$outboundSchema.parse(sources)); } - export function sourcesFromJSON( jsonString: string, ): SafeParseResult { @@ -510,7 +411,6 @@ export const LogFeedbackRequestBody$inboundSchema: z.ZodType< .optional(), sources: z.nullable(z.array(z.lazy(() => Sources$inboundSchema))).optional(), }); - /** @internal */ export type LogFeedbackRequestBody$Outbound = { id?: string | undefined; @@ -544,19 +444,6 @@ export const LogFeedbackRequestBody$outboundSchema: z.ZodType< sources: z.nullable(z.array(z.lazy(() => Sources$outboundSchema))).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace LogFeedbackRequestBody$ { - /** @deprecated use `LogFeedbackRequestBody$inboundSchema` instead. */ - export const inboundSchema = LogFeedbackRequestBody$inboundSchema; - /** @deprecated use `LogFeedbackRequestBody$outboundSchema` instead. */ - export const outboundSchema = LogFeedbackRequestBody$outboundSchema; - /** @deprecated use `LogFeedbackRequestBody$Outbound` instead. */ - export type Outbound = LogFeedbackRequestBody$Outbound; -} - export function logFeedbackRequestBodyToJSON( logFeedbackRequestBody: LogFeedbackRequestBody, ): string { @@ -564,7 +451,6 @@ export function logFeedbackRequestBodyToJSON( LogFeedbackRequestBody$outboundSchema.parse(logFeedbackRequestBody), ); } - export function logFeedbackRequestBodyFromJSON( jsonString: string, ): SafeParseResult { @@ -579,23 +465,11 @@ export function logFeedbackRequestBodyFromJSON( export const LogFeedbackFeedbackType$inboundSchema: z.ZodNativeEnum< typeof LogFeedbackFeedbackType > = z.nativeEnum(LogFeedbackFeedbackType); - /** @internal */ export const LogFeedbackFeedbackType$outboundSchema: z.ZodNativeEnum< typeof LogFeedbackFeedbackType > = LogFeedbackFeedbackType$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace LogFeedbackFeedbackType$ { - /** @deprecated use `LogFeedbackFeedbackType$inboundSchema` instead. */ - export const inboundSchema = LogFeedbackFeedbackType$inboundSchema; - /** @deprecated use `LogFeedbackFeedbackType$outboundSchema` instead. */ - export const outboundSchema = LogFeedbackFeedbackType$outboundSchema; -} - /** @internal */ export const LogFeedbackReasons$inboundSchema: z.ZodType< LogFeedbackReasons, @@ -605,7 +479,6 @@ export const LogFeedbackReasons$inboundSchema: z.ZodType< label: z.string(), details: z.string(), }); - /** @internal */ export type LogFeedbackReasons$Outbound = { label: string; @@ -622,19 +495,6 @@ export const LogFeedbackReasons$outboundSchema: z.ZodType< details: z.string(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace LogFeedbackReasons$ { - /** @deprecated use `LogFeedbackReasons$inboundSchema` instead. */ - export const inboundSchema = LogFeedbackReasons$inboundSchema; - /** @deprecated use `LogFeedbackReasons$outboundSchema` instead. */ - export const outboundSchema = LogFeedbackReasons$outboundSchema; - /** @deprecated use `LogFeedbackReasons$Outbound` instead. */ - export type Outbound = LogFeedbackReasons$Outbound; -} - export function logFeedbackReasonsToJSON( logFeedbackReasons: LogFeedbackReasons, ): string { @@ -642,7 +502,6 @@ export function logFeedbackReasonsToJSON( LogFeedbackReasons$outboundSchema.parse(logFeedbackReasons), ); } - export function logFeedbackReasonsFromJSON( jsonString: string, ): SafeParseResult { @@ -659,7 +518,6 @@ export const LogFeedbackId$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.union([z.string(), z.number()]); - /** @internal */ export type LogFeedbackId$Outbound = string | number; @@ -670,23 +528,9 @@ export const LogFeedbackId$outboundSchema: z.ZodType< LogFeedbackId > = z.union([z.string(), z.number()]); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace LogFeedbackId$ { - /** @deprecated use `LogFeedbackId$inboundSchema` instead. */ - export const inboundSchema = LogFeedbackId$inboundSchema; - /** @deprecated use `LogFeedbackId$outboundSchema` instead. */ - export const outboundSchema = LogFeedbackId$outboundSchema; - /** @deprecated use `LogFeedbackId$Outbound` instead. */ - export type Outbound = LogFeedbackId$Outbound; -} - export function logFeedbackIdToJSON(logFeedbackId: LogFeedbackId): string { return JSON.stringify(LogFeedbackId$outboundSchema.parse(logFeedbackId)); } - export function logFeedbackIdFromJSON( jsonString: string, ): SafeParseResult { @@ -703,7 +547,6 @@ export const LogFeedbackUserId$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.union([z.string(), z.number()]); - /** @internal */ export type LogFeedbackUserId$Outbound = string | number; @@ -714,19 +557,6 @@ export const LogFeedbackUserId$outboundSchema: z.ZodType< LogFeedbackUserId > = z.union([z.string(), z.number()]); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace LogFeedbackUserId$ { - /** @deprecated use `LogFeedbackUserId$inboundSchema` instead. */ - export const inboundSchema = LogFeedbackUserId$inboundSchema; - /** @deprecated use `LogFeedbackUserId$outboundSchema` instead. */ - export const outboundSchema = LogFeedbackUserId$outboundSchema; - /** @deprecated use `LogFeedbackUserId$Outbound` instead. */ - export type Outbound = LogFeedbackUserId$Outbound; -} - export function logFeedbackUserIdToJSON( logFeedbackUserId: LogFeedbackUserId, ): string { @@ -734,7 +564,6 @@ export function logFeedbackUserIdToJSON( LogFeedbackUserId$outboundSchema.parse(logFeedbackUserId), ); } - export function logFeedbackUserIdFromJSON( jsonString: string, ): SafeParseResult { @@ -761,7 +590,6 @@ export const LogFeedbackUserProperties$inboundSchema: z.ZodType< "additionalProperties", true, ); - /** @internal */ export type LogFeedbackUserProperties$Outbound = { id?: string | number | null | undefined; @@ -783,7 +611,7 @@ export const LogFeedbackUserProperties$outboundSchema: z.ZodType< userId: z.nullable(z.union([z.string(), z.number()])).optional(), supportAgentName: z.nullable(z.string()).optional(), userType: z.nullable(z.string()).optional(), - additionalProperties: z.record(z.any()), + additionalProperties: z.record(z.any()).optional(), }).transform((v) => { return { ...v.additionalProperties, @@ -793,19 +621,6 @@ export const LogFeedbackUserProperties$outboundSchema: z.ZodType< }; }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace LogFeedbackUserProperties$ { - /** @deprecated use `LogFeedbackUserProperties$inboundSchema` instead. */ - export const inboundSchema = LogFeedbackUserProperties$inboundSchema; - /** @deprecated use `LogFeedbackUserProperties$outboundSchema` instead. */ - export const outboundSchema = LogFeedbackUserProperties$outboundSchema; - /** @deprecated use `LogFeedbackUserProperties$Outbound` instead. */ - export type Outbound = LogFeedbackUserProperties$Outbound; -} - export function logFeedbackUserPropertiesToJSON( logFeedbackUserProperties: LogFeedbackUserProperties, ): string { @@ -813,7 +628,6 @@ export function logFeedbackUserPropertiesToJSON( LogFeedbackUserProperties$outboundSchema.parse(logFeedbackUserProperties), ); } - export function logFeedbackUserPropertiesFromJSON( jsonString: string, ): SafeParseResult { @@ -828,23 +642,11 @@ export function logFeedbackUserPropertiesFromJSON( export const LogFeedbackFeedbackResponseType$inboundSchema: z.ZodNativeEnum< typeof LogFeedbackFeedbackResponseType > = z.nativeEnum(LogFeedbackFeedbackResponseType); - /** @internal */ export const LogFeedbackFeedbackResponseType$outboundSchema: z.ZodNativeEnum< typeof LogFeedbackFeedbackResponseType > = LogFeedbackFeedbackResponseType$inboundSchema; -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace LogFeedbackFeedbackResponseType$ { - /** @deprecated use `LogFeedbackFeedbackResponseType$inboundSchema` instead. */ - export const inboundSchema = LogFeedbackFeedbackResponseType$inboundSchema; - /** @deprecated use `LogFeedbackFeedbackResponseType$outboundSchema` instead. */ - export const outboundSchema = LogFeedbackFeedbackResponseType$outboundSchema; -} - /** @internal */ export const LogFeedbackSources$inboundSchema: z.ZodType< LogFeedbackSources, @@ -855,7 +657,6 @@ export const LogFeedbackSources$inboundSchema: z.ZodType< title: z.nullable(z.string()).optional(), url: z.nullable(z.string()).optional(), }); - /** @internal */ export type LogFeedbackSources$Outbound = { type: string | null; @@ -874,19 +675,6 @@ export const LogFeedbackSources$outboundSchema: z.ZodType< url: z.nullable(z.string()).optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace LogFeedbackSources$ { - /** @deprecated use `LogFeedbackSources$inboundSchema` instead. */ - export const inboundSchema = LogFeedbackSources$inboundSchema; - /** @deprecated use `LogFeedbackSources$outboundSchema` instead. */ - export const outboundSchema = LogFeedbackSources$outboundSchema; - /** @deprecated use `LogFeedbackSources$Outbound` instead. */ - export type Outbound = LogFeedbackSources$Outbound; -} - export function logFeedbackSourcesToJSON( logFeedbackSources: LogFeedbackSources, ): string { @@ -894,7 +682,6 @@ export function logFeedbackSourcesToJSON( LogFeedbackSources$outboundSchema.parse(logFeedbackSources), ); } - export function logFeedbackSourcesFromJSON( jsonString: string, ): SafeParseResult { @@ -926,7 +713,6 @@ export const LogFeedbackResponseBody$inboundSchema: z.ZodType< sources: z.nullable(z.array(z.lazy(() => LogFeedbackSources$inboundSchema))) .optional(), }); - /** @internal */ export type LogFeedbackResponseBody$Outbound = { id: string; @@ -963,19 +749,6 @@ export const LogFeedbackResponseBody$outboundSchema: z.ZodType< .optional(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace LogFeedbackResponseBody$ { - /** @deprecated use `LogFeedbackResponseBody$inboundSchema` instead. */ - export const inboundSchema = LogFeedbackResponseBody$inboundSchema; - /** @deprecated use `LogFeedbackResponseBody$outboundSchema` instead. */ - export const outboundSchema = LogFeedbackResponseBody$outboundSchema; - /** @deprecated use `LogFeedbackResponseBody$Outbound` instead. */ - export type Outbound = LogFeedbackResponseBody$Outbound; -} - export function logFeedbackResponseBodyToJSON( logFeedbackResponseBody: LogFeedbackResponseBody, ): string { @@ -983,7 +756,6 @@ export function logFeedbackResponseBodyToJSON( LogFeedbackResponseBody$outboundSchema.parse(logFeedbackResponseBody), ); } - export function logFeedbackResponseBodyFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/topsearchqueries.ts b/src/models/operations/topsearchqueries.ts index f58c2b81..0c514ba4 100644 --- a/src/models/operations/topsearchqueries.ts +++ b/src/models/operations/topsearchqueries.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -43,7 +43,6 @@ export const TopSearchQueriesRequest$inboundSchema: z.ZodType< "project_id": "projectId", }); }); - /** @internal */ export type TopSearchQueriesRequest$Outbound = { after?: string | undefined; @@ -64,19 +63,6 @@ export const TopSearchQueriesRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace TopSearchQueriesRequest$ { - /** @deprecated use `TopSearchQueriesRequest$inboundSchema` instead. */ - export const inboundSchema = TopSearchQueriesRequest$inboundSchema; - /** @deprecated use `TopSearchQueriesRequest$outboundSchema` instead. */ - export const outboundSchema = TopSearchQueriesRequest$outboundSchema; - /** @deprecated use `TopSearchQueriesRequest$Outbound` instead. */ - export type Outbound = TopSearchQueriesRequest$Outbound; -} - export function topSearchQueriesRequestToJSON( topSearchQueriesRequest: TopSearchQueriesRequest, ): string { @@ -84,7 +70,6 @@ export function topSearchQueriesRequestToJSON( TopSearchQueriesRequest$outboundSchema.parse(topSearchQueriesRequest), ); } - export function topSearchQueriesRequestFromJSON( jsonString: string, ): SafeParseResult { @@ -105,7 +90,6 @@ export const Result$inboundSchema: z.ZodType = z "search_query": "searchQuery", }); }); - /** @internal */ export type Result$Outbound = { search_query: string; @@ -126,23 +110,9 @@ export const Result$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Result$ { - /** @deprecated use `Result$inboundSchema` instead. */ - export const inboundSchema = Result$inboundSchema; - /** @deprecated use `Result$outboundSchema` instead. */ - export const outboundSchema = Result$outboundSchema; - /** @deprecated use `Result$Outbound` instead. */ - export type Outbound = Result$Outbound; -} - export function resultToJSON(result: Result): string { return JSON.stringify(Result$outboundSchema.parse(result)); } - export function resultFromJSON( jsonString: string, ): SafeParseResult { @@ -159,7 +129,6 @@ export const Data$inboundSchema: z.ZodType = z result: z.array(z.lazy(() => Result$inboundSchema)), total: z.number(), }); - /** @internal */ export type Data$Outbound = { result: Array; @@ -173,23 +142,9 @@ export const Data$outboundSchema: z.ZodType = total: z.number(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace Data$ { - /** @deprecated use `Data$inboundSchema` instead. */ - export const inboundSchema = Data$inboundSchema; - /** @deprecated use `Data$outboundSchema` instead. */ - export const outboundSchema = Data$outboundSchema; - /** @deprecated use `Data$Outbound` instead. */ - export type Outbound = Data$Outbound; -} - export function dataToJSON(data: Data): string { return JSON.stringify(Data$outboundSchema.parse(data)); } - export function dataFromJSON( jsonString: string, ): SafeParseResult { @@ -208,7 +163,6 @@ export const TopSearchQueriesResponseBody$inboundSchema: z.ZodType< > = z.object({ data: z.lazy(() => Data$inboundSchema), }); - /** @internal */ export type TopSearchQueriesResponseBody$Outbound = { data: Data$Outbound; @@ -223,19 +177,6 @@ export const TopSearchQueriesResponseBody$outboundSchema: z.ZodType< data: z.lazy(() => Data$outboundSchema), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace TopSearchQueriesResponseBody$ { - /** @deprecated use `TopSearchQueriesResponseBody$inboundSchema` instead. */ - export const inboundSchema = TopSearchQueriesResponseBody$inboundSchema; - /** @deprecated use `TopSearchQueriesResponseBody$outboundSchema` instead. */ - export const outboundSchema = TopSearchQueriesResponseBody$outboundSchema; - /** @deprecated use `TopSearchQueriesResponseBody$Outbound` instead. */ - export type Outbound = TopSearchQueriesResponseBody$Outbound; -} - export function topSearchQueriesResponseBodyToJSON( topSearchQueriesResponseBody: TopSearchQueriesResponseBody, ): string { @@ -245,7 +186,6 @@ export function topSearchQueriesResponseBodyToJSON( ), ); } - export function topSearchQueriesResponseBodyFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/models/operations/weeklysearchusers.ts b/src/models/operations/weeklysearchusers.ts index 4c015f23..7a45dbc8 100644 --- a/src/models/operations/weeklysearchusers.ts +++ b/src/models/operations/weeklysearchusers.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; @@ -43,7 +43,6 @@ export const WeeklySearchUsersRequest$inboundSchema: z.ZodType< "project_id": "projectId", }); }); - /** @internal */ export type WeeklySearchUsersRequest$Outbound = { after?: string | undefined; @@ -64,19 +63,6 @@ export const WeeklySearchUsersRequest$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace WeeklySearchUsersRequest$ { - /** @deprecated use `WeeklySearchUsersRequest$inboundSchema` instead. */ - export const inboundSchema = WeeklySearchUsersRequest$inboundSchema; - /** @deprecated use `WeeklySearchUsersRequest$outboundSchema` instead. */ - export const outboundSchema = WeeklySearchUsersRequest$outboundSchema; - /** @deprecated use `WeeklySearchUsersRequest$Outbound` instead. */ - export type Outbound = WeeklySearchUsersRequest$Outbound; -} - export function weeklySearchUsersRequestToJSON( weeklySearchUsersRequest: WeeklySearchUsersRequest, ): string { @@ -84,7 +70,6 @@ export function weeklySearchUsersRequestToJSON( WeeklySearchUsersRequest$outboundSchema.parse(weeklySearchUsersRequest), ); } - export function weeklySearchUsersRequestFromJSON( jsonString: string, ): SafeParseResult { @@ -108,7 +93,6 @@ export const WeeklySearchUsersResult$inboundSchema: z.ZodType< "unique_users": "uniqueUsers", }); }); - /** @internal */ export type WeeklySearchUsersResult$Outbound = { week: string; @@ -129,19 +113,6 @@ export const WeeklySearchUsersResult$outboundSchema: z.ZodType< }); }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace WeeklySearchUsersResult$ { - /** @deprecated use `WeeklySearchUsersResult$inboundSchema` instead. */ - export const inboundSchema = WeeklySearchUsersResult$inboundSchema; - /** @deprecated use `WeeklySearchUsersResult$outboundSchema` instead. */ - export const outboundSchema = WeeklySearchUsersResult$outboundSchema; - /** @deprecated use `WeeklySearchUsersResult$Outbound` instead. */ - export type Outbound = WeeklySearchUsersResult$Outbound; -} - export function weeklySearchUsersResultToJSON( weeklySearchUsersResult: WeeklySearchUsersResult, ): string { @@ -149,7 +120,6 @@ export function weeklySearchUsersResultToJSON( WeeklySearchUsersResult$outboundSchema.parse(weeklySearchUsersResult), ); } - export function weeklySearchUsersResultFromJSON( jsonString: string, ): SafeParseResult { @@ -169,7 +139,6 @@ export const WeeklySearchUsersData$inboundSchema: z.ZodType< result: z.array(z.lazy(() => WeeklySearchUsersResult$inboundSchema)), total: z.number(), }); - /** @internal */ export type WeeklySearchUsersData$Outbound = { result: Array; @@ -186,19 +155,6 @@ export const WeeklySearchUsersData$outboundSchema: z.ZodType< total: z.number(), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace WeeklySearchUsersData$ { - /** @deprecated use `WeeklySearchUsersData$inboundSchema` instead. */ - export const inboundSchema = WeeklySearchUsersData$inboundSchema; - /** @deprecated use `WeeklySearchUsersData$outboundSchema` instead. */ - export const outboundSchema = WeeklySearchUsersData$outboundSchema; - /** @deprecated use `WeeklySearchUsersData$Outbound` instead. */ - export type Outbound = WeeklySearchUsersData$Outbound; -} - export function weeklySearchUsersDataToJSON( weeklySearchUsersData: WeeklySearchUsersData, ): string { @@ -206,7 +162,6 @@ export function weeklySearchUsersDataToJSON( WeeklySearchUsersData$outboundSchema.parse(weeklySearchUsersData), ); } - export function weeklySearchUsersDataFromJSON( jsonString: string, ): SafeParseResult { @@ -225,7 +180,6 @@ export const WeeklySearchUsersResponseBody$inboundSchema: z.ZodType< > = z.object({ data: z.lazy(() => WeeklySearchUsersData$inboundSchema), }); - /** @internal */ export type WeeklySearchUsersResponseBody$Outbound = { data: WeeklySearchUsersData$Outbound; @@ -240,19 +194,6 @@ export const WeeklySearchUsersResponseBody$outboundSchema: z.ZodType< data: z.lazy(() => WeeklySearchUsersData$outboundSchema), }); -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace WeeklySearchUsersResponseBody$ { - /** @deprecated use `WeeklySearchUsersResponseBody$inboundSchema` instead. */ - export const inboundSchema = WeeklySearchUsersResponseBody$inboundSchema; - /** @deprecated use `WeeklySearchUsersResponseBody$outboundSchema` instead. */ - export const outboundSchema = WeeklySearchUsersResponseBody$outboundSchema; - /** @deprecated use `WeeklySearchUsersResponseBody$Outbound` instead. */ - export type Outbound = WeeklySearchUsersResponseBody$Outbound; -} - export function weeklySearchUsersResponseBodyToJSON( weeklySearchUsersResponseBody: WeeklySearchUsersResponseBody, ): string { @@ -262,7 +203,6 @@ export function weeklySearchUsersResponseBodyToJSON( ), ); } - export function weeklySearchUsersResponseBodyFromJSON( jsonString: string, ): SafeParseResult { diff --git a/src/types/blobs.ts b/src/types/blobs.ts index 4ce84602..cce2892d 100644 --- a/src/types/blobs.ts +++ b/src/types/blobs.ts @@ -2,13 +2,14 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; -export const blobLikeSchema: z.ZodType = - z.custom(isBlobLike, { - message: "expected a Blob, File or Blob-like object", - fatal: true, - }); +export const blobLikeSchema: z.ZodType = z.custom< + Blob +>(isBlobLike, { + message: "expected a Blob, File or Blob-like object", + fatal: true, +}); export function isBlobLike(val: unknown): val is Blob { if (val instanceof Blob) { diff --git a/src/types/constdatetime.ts b/src/types/constdatetime.ts index eeff4dde..fe62144e 100644 --- a/src/types/constdatetime.ts +++ b/src/types/constdatetime.ts @@ -2,7 +2,7 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import * as z from "zod"; +import * as z from "zod/v3"; export function constDateTime( val: string, diff --git a/src/types/enums.ts b/src/types/enums.ts index 6fb6d910..32ad7bcf 100644 --- a/src/types/enums.ts +++ b/src/types/enums.ts @@ -2,15 +2,64 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ +import * as z from "zod/v3"; + declare const __brand: unique symbol; export type Unrecognized = T & { [__brand]: "unrecognized" }; +export type ClosedEnum>> = + T[keyof T]; +export type OpenEnum>> = + | T[keyof T] + | Unrecognized; -export function catchUnrecognizedEnum(value: T): Unrecognized { +function unrecognized(value: T): Unrecognized { + unrecognizedCount++; return value as Unrecognized; } -type Prettify = { [K in keyof T]: T[K] } & {}; -export type ClosedEnum = T[keyof T]; -export type OpenEnum = - | Prettify - | Unrecognized; +let unrecognizedCount = 0; +let refCount = 0; +export function unrecognizedCounter() { + refCount++; + const start = unrecognizedCount; + return { + count: () => { + const count = unrecognizedCount - start; + if (--refCount === 0) unrecognizedCount = 0; + return count; + }, + }; +} + +export function inboundSchema>( + enumObj: T, +): z.ZodType, z.ZodTypeDef, unknown> { + const options = Object.values(enumObj); + return z.union([ + ...options.map(x => z.literal(x)), + z.string().transform(x => unrecognized(x)), + ] as any); +} + +export function inboundSchemaInt>( + enumObj: T, +): z.ZodType, z.ZodTypeDef, unknown> { + // For numeric enums, Object.values returns both numbers and string keys + const options = Object.values(enumObj).filter(v => typeof v === "number"); + return z.union([ + ...options.map(x => z.literal(x)), + z.number().int().transform(x => unrecognized(x)), + ] as any); +} + +export function outboundSchema>( + _: T, +): z.ZodType> { + return z.string() as any; +} + +export function outboundSchemaInt>( + _: T, +): z.ZodType> { + return z.number().int() as any; +} diff --git a/src/types/index.ts b/src/types/index.ts index e124e817..92d9f734 100644 --- a/src/types/index.ts +++ b/src/types/index.ts @@ -3,7 +3,6 @@ */ export { blobLikeSchema, isBlobLike } from "./blobs.js"; -export { catchUnrecognizedEnum } from "./enums.js"; export type { ClosedEnum, OpenEnum, Unrecognized } from "./enums.js"; export type { Result } from "./fp.js"; export type { PageIterator, Paginator } from "./operations.js";